]> git.saurik.com Git - wxWidgets.git/blame - configure
final part of SF patch #904166 (DMC fix)
[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.
32ddf007 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#
32ddf007 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
32ddf007 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
32ddf007 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
32ddf007 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
32ddf007 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.
32ddf007 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.
32ddf007 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
243f8ae5 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
10f2d63a
VZ
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
10f2d63a 645 *)
e6cc62c6
VS
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
32ddf007 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
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
32ddf007 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
32ddf007 824 [PREFIX]
e6cc62c6
VS
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
f93ca9fd
VS
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
e6cc62c6
VS
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
0f87e84c 876 --enable-gpe use GNOME PDA Environment features if possible
e6cc62c6 877 --enable-shared create shared library code
e6cc62c6
VS
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
df5168c4 880 --enable-stl use STL for containers
e6cc62c6
VS
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
e6cc62c6
VS
891 --enable-compat22 enable wxWindows 2.2 compatibility
892 --disable-compat24 disable wxWindows 2.4 compatibility
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
e46d2a18 901 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
e6cc62c6 908 --enable-dialupman use dialup network classes
e6cc62c6
VS
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
918 --enable-geometry use geometry class
919 --enable-log use logging system
e46d2a18
VS
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 924 --enable-streams use wxStream etc classes
e46d2a18
VS
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
e46d2a18 930 --enable-timer use wxTimer class
e6cc62c6 931 --enable-unicode compile wxString with Unicode support
002ed9af 932 --enable-sound use wxSound class
e6cc62c6 933 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 934 --enable-zipstream use wxZipInputStream
7015ef3a 935 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
0e012a93 973 --enable-listbook use wxListbook class
e6cc62c6
VS
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1036 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1037 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1038
1039Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gtk use GTK+
1043 --with-motif use Motif/Lesstif
1044 --with-mac use Mac OS X
1045 --with-cocoa use Cocoa
1046 --with-wine use Wine
1047 --with-msw use MS-Windows
1048 --with-pm use OS/2 Presentation Manager
1049 --with-mgl use SciTech MGL
1050 --with-microwin use MicroWindows
1051 --with-x11 use X11
1052 --with-libpng use libpng (PNG image format)
1053 --with-libjpeg use libjpeg (JPEG file format)
1054 --with-libtiff use libtiff (TIFF file format)
89fe663f 1055 --with-libxpm use libxpm (XPM file format)
3527f29c 1056 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1057 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1058 --with-opengl use OpenGL (or Mesa)
1059 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1060 --with-regex enable support for wxRegEx class
1061 --with-zlib use zlib for LZW compression
1062 --with-odbc use the IODBC and wxODBC classes
672abd7a 1063 --with-expat enable XML support using expat parser
e6cc62c6
VS
1064 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1065 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1066 --with-x use the X Window System
1067 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1068 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1069 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1070
1071Some influential environment variables:
1072 CC C compiler command
1073 CFLAGS C compiler flags
1074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1075 nonstandard directory <lib dir>
1076 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077 headers in a nonstandard directory <include dir>
1078 CPP C preprocessor
1079 CXX C++ compiler command
1080 CXXFLAGS C++ compiler flags
1081 CXXCPP C++ preprocessor
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086Report bugs to <wx-dev@lists.wxwindows.org>.
1087_ACEOF
1088fi
1089
1090if test "$ac_init_help" = "recursive"; then
1091 # If there are subdirs, report their specific --help.
1092 ac_popdir=`pwd`
1093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094 test -d $ac_dir || continue
1095 ac_builddir=.
1096
1097if test "$ac_dir" != .; then
1098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099 # A "../" for each directory in $ac_dir_suffix.
1100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101else
1102 ac_dir_suffix= ac_top_builddir=
1103fi
1104
1105case $srcdir in
1106 .) # No --srcdir option. We are building in place.
1107 ac_srcdir=.
1108 if test -z "$ac_top_builddir"; then
1109 ac_top_srcdir=.
1110 else
1111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 fi ;;
1113 [\\/]* | ?:[\\/]* ) # Absolute path.
1114 ac_srcdir=$srcdir$ac_dir_suffix;
1115 ac_top_srcdir=$srcdir ;;
1116 *) # Relative path.
1117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119esac
32ddf007
VS
1120
1121# Do not use `cd foo && pwd` to compute absolute paths, because
1122# the directories may not exist.
1123case `pwd` in
1124.) ac_abs_builddir="$ac_dir";;
1125*)
1126 case "$ac_dir" in
1127 .) ac_abs_builddir=`pwd`;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_builddir=${ac_top_builddir}.;;
1134*)
1135 case ${ac_top_builddir}. in
1136 .) ac_abs_top_builddir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_srcdir=$ac_srcdir;;
1143*)
1144 case $ac_srcdir in
1145 .) ac_abs_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_srcdir=$ac_top_srcdir;;
1152*)
1153 case $ac_top_srcdir in
1154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 esac;;
1158esac
e6cc62c6
VS
1159
1160 cd $ac_dir
1161 # Check for guested configure; otherwise get Cygnus style configure.
1162 if test -f $ac_srcdir/configure.gnu; then
1163 echo
1164 $SHELL $ac_srcdir/configure.gnu --help=recursive
1165 elif test -f $ac_srcdir/configure; then
1166 echo
1167 $SHELL $ac_srcdir/configure --help=recursive
1168 elif test -f $ac_srcdir/configure.ac ||
32ddf007 1169 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1170 echo
1171 $ac_configure --help
1172 else
1173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174 fi
e1293dcf 1175 cd "$ac_popdir"
e6cc62c6
VS
1176 done
1177fi
8284b0c5 1178
e6cc62c6
VS
1179test -n "$ac_init_help" && exit 0
1180if $ac_init_version; then
1181 cat <<\_ACEOF
e46d2a18 1182wxWindows configure 2.5.1
32ddf007 1183generated by GNU Autoconf 2.59
10f2d63a 1184
32ddf007 1185Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1186This configure script is free software; the Free Software Foundation
1187gives unlimited permission to copy, distribute and modify it.
1188_ACEOF
1189 exit 0
7c66a493 1190fi
e6cc62c6
VS
1191exec 5>config.log
1192cat >&5 <<_ACEOF
1193This file contains any messages produced by compilers while
1194running configure, to aid debugging if configure makes a mistake.
1195
e46d2a18 1196It was created by wxWindows $as_me 2.5.1, which was
32ddf007 1197generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
1198
1199 $ $0 $@
1200
1201_ACEOF
1202{
1203cat <<_ASUNAME
1204## --------- ##
1205## Platform. ##
1206## --------- ##
1207
1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216
1217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224
1225_ASUNAME
1226
1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228for as_dir in $PATH
1229do
1230 IFS=$as_save_IFS
1231 test -z "$as_dir" && as_dir=.
1232 echo "PATH: $as_dir"
1233done
1234
1235} >&5
1236
1237cat >&5 <<_ACEOF
1238
1239
1240## ----------- ##
1241## Core tests. ##
1242## ----------- ##
1243
1244_ACEOF
1245
1246
1247# Keep a trace of the command line.
1248# Strip out --no-create and --no-recursion so they do not pile up.
1249# Strip out --silent because we don't want to record it for future runs.
1250# Also quote any args containing shell meta-characters.
1251# Make two passes to allow for proper duplicate-argument suppression.
1252ac_configure_args=
1253ac_configure_args0=
1254ac_configure_args1=
1255ac_sep=
1256ac_must_keep_next=false
1257for ac_pass in 1 2
1258do
1259 for ac_arg
1260 do
1261 case $ac_arg in
1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 continue ;;
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 esac
1269 case $ac_pass in
1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 2)
1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273 if test $ac_must_keep_next = true; then
32ddf007 1274 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1275 else
32ddf007
VS
1276 case $ac_arg in
1277 *=* | --config-cache | -C | -disable-* | --disable-* \
1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280 | -with-* | --with-* | -without-* | --without-* | --x)
1281 case "$ac_configure_args0 " in
1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 esac
1284 ;;
1285 -* ) ac_must_keep_next=true ;;
1286 esac
e6cc62c6
VS
1287 fi
1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289 # Get rid of the leading space.
1290 ac_sep=" "
1291 ;;
1292 esac
1293 done
1294done
1295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297
1298# When interrupted or exit'd, cleanup temporary files, and complete
1299# config.log. We remove comments because anyway the quotes in there
1300# would cause problems or look ugly.
1301# WARNING: Be sure not to use single quotes in there, as some shells,
1302# such as our DU 5.0 friend, will then `close' the trap.
1303trap 'exit_status=$?
1304 # Save into config.log some information that might help in debugging.
1305 {
1306 echo
1307
1308 cat <<\_ASBOX
1309## ---------------- ##
1310## Cache variables. ##
1311## ---------------- ##
1312_ASBOX
1313 echo
1314 # The following way of writing the cache mishandles newlines in values,
1315{
1316 (set) 2>&1 |
1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 *ac_space=\ *)
1319 sed -n \
32ddf007
VS
1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1322 ;;
1323 *)
1324 sed -n \
32ddf007 1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1326 ;;
1327 esac;
1328}
1329 echo
1330
1331 cat <<\_ASBOX
1332## ----------------- ##
1333## Output variables. ##
1334## ----------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_vars
1338 do
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1341 done | sort
1342 echo
1343
1344 if test -n "$ac_subst_files"; then
1345 cat <<\_ASBOX
1346## ------------- ##
1347## Output files. ##
1348## ------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_files
1352 do
1353 eval ac_val=$`echo $ac_var`
32ddf007 1354 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1355 done | sort
1356 echo
1357 fi
1358
1359 if test -s confdefs.h; then
1360 cat <<\_ASBOX
1361## ----------- ##
1362## confdefs.h. ##
1363## ----------- ##
1364_ASBOX
1365 echo
1366 sed "/^$/d" confdefs.h | sort
1367 echo
1368 fi
1369 test "$ac_signal" != 0 &&
1370 echo "$as_me: caught signal $ac_signal"
1371 echo "$as_me: exit $exit_status"
1372 } >&5
32ddf007 1373 rm -f core *.core &&
e6cc62c6
VS
1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 exit $exit_status
1376 ' 0
1377for ac_signal in 1 2 13 15; do
1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379done
1380ac_signal=0
1381
1382# confdefs.h avoids OS command line length limits that DEFS can exceed.
1383rm -rf conftest* confdefs.h
1384# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385echo >confdefs.h
1386
1387# Predefined preprocessor variables.
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_NAME "$PACKAGE_NAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_VERSION "$PACKAGE_VERSION"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_STRING "$PACKAGE_STRING"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411_ACEOF
1412
1413
1414# Let the site file select an alternate cache file if it wants to.
1415# Prefer explicitly selected file to automatically selected ones.
1416if test -z "$CONFIG_SITE"; then
1417 if test "x$prefix" != xNONE; then
1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 else
1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 fi
1422fi
1423for ac_site_file in $CONFIG_SITE; do
1424 if test -r "$ac_site_file"; then
1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426echo "$as_me: loading site script $ac_site_file" >&6;}
1427 sed 's/^/| /' "$ac_site_file" >&5
1428 . "$ac_site_file"
1429 fi
1430done
1431
1432if test -r "$cache_file"; then
1433 # Some versions of bash will fail to source /dev/null (special
1434 # files actually), so we avoid doing that.
1435 if test -f "$cache_file"; then
1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437echo "$as_me: loading cache $cache_file" >&6;}
1438 case $cache_file in
1439 [\\/]* | ?:[\\/]* ) . $cache_file;;
1440 *) . ./$cache_file;;
1441 esac
1442 fi
1443else
1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445echo "$as_me: creating cache $cache_file" >&6;}
1446 >$cache_file
1447fi
1448
1449# Check that the precious variables saved in the cache have kept the same
1450# value.
1451ac_cache_corrupted=false
1452for ac_var in `(set) 2>&1 |
32ddf007 1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455 eval ac_new_set=\$ac_env_${ac_var}_set
1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457 eval ac_new_val="\$ac_env_${ac_var}_value"
1458 case $ac_old_set,$ac_new_set in
1459 set,)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,set)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,);;
1468 *)
1469 if test "x$ac_old_val" != "x$ac_new_val"; then
32ddf007 1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
32ddf007 1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1473echo "$as_me: former value: $ac_old_val" >&2;}
32ddf007 1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1475echo "$as_me: current value: $ac_new_val" >&2;}
32ddf007 1476 ac_cache_corrupted=:
e6cc62c6
VS
1477 fi;;
1478 esac
1479 # Pass precious variables to config.status.
1480 if test "$ac_new_set" = set; then
1481 case $ac_new_val in
1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484 *) ac_arg=$ac_var=$ac_new_val ;;
1485 esac
1486 case " $ac_configure_args " in
1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 esac
1490 fi
1491done
1492if $ac_cache_corrupted; then
1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497 { (exit 1); exit 1; }; }
1498fi
1499
1500ac_ext=c
1501ac_cpp='$CPP $CPPFLAGS'
1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
698dcdb6 1522
8284b0c5 1523
7c66a493 1524
a0b9e27f
MB
1525
1526
a0b9e27f 1527
a0b9e27f 1528
a0b9e27f 1529
a0b9e27f 1530
a0b9e27f 1531
a0b9e27f 1532
e6cc62c6
VS
1533
1534
1535ac_aux_dir=
1536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550done
1551if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554 { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560# Make sure we can run config.sub.
1561$ac_config_sub sun4 >/dev/null 2>&1 ||
1562 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1563echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566echo "$as_me:$LINENO: checking build system type" >&5
1567echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568if test "${ac_cv_build+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 ac_cv_build_alias=$build_alias
1572test -z "$ac_cv_build_alias" &&
1573 ac_cv_build_alias=`$ac_config_guess`
1574test -z "$ac_cv_build_alias" &&
1575 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1576echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1577 { (exit 1); exit 1; }; }
1578ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1585echo "${ECHO_T}$ac_cv_build" >&6
1586build=$ac_cv_build
1587build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592echo "$as_me:$LINENO: checking host system type" >&5
1593echo $ECHO_N "checking host system type... $ECHO_C" >&6
1594if test "${ac_cv_host+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 ac_cv_host_alias=$host_alias
1598test -z "$ac_cv_host_alias" &&
1599 ac_cv_host_alias=$ac_cv_build_alias
1600ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1607echo "${ECHO_T}$ac_cv_host" >&6
1608host=$ac_cv_host
1609host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614echo "$as_me:$LINENO: checking target system type" >&5
1615echo $ECHO_N "checking target system type... $ECHO_C" >&6
1616if test "${ac_cv_target+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 ac_cv_target_alias=$target_alias
1620test "x$ac_cv_target_alias" = "x" &&
1621 ac_cv_target_alias=$ac_cv_host_alias
1622ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627fi
1628echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1629echo "${ECHO_T}$ac_cv_target" >&6
1630target=$ac_cv_target
1631target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636# The aliases save the names the user supplied, while $host etc.
1637# will get canonicalized.
1638test -n "$target_alias" &&
7c66a493
VZ
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1640 NONENONEs,x,x, &&
1641 program_prefix=${target_alias}-
8284b0c5
MB
1642
1643
a0b9e27f 1644
10f2d63a 1645WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1646WX_MINOR_VERSION_NUMBER=5
e46d2a18 1647WX_RELEASE_NUMBER=1
10f2d63a 1648
10f2d63a 1649WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1650WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1651
978f1259
RL
1652WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1653
7015ef3a 1654WX_CURRENT=1
6426998c
RL
1655WX_REVISION=0
1656WX_AGE=0
1657
8284b0c5
MB
1658
1659
10f2d63a 1660USE_UNIX=1
73d617c9 1661USE_OS2=0
10f2d63a 1662USE_WIN32=0
f9bc1684 1663USE_DOS=0
b12915c1 1664USE_BEOS=0
1216f52d 1665USE_MAC=0
b12915c1 1666
10f2d63a 1667USE_AIX=
fe0895cf
VS
1668USE_BSD= USE_DARWIN= USE_FREEBSD=
1669USE_GNU= USE_HPUX=
89e3b3e4 1670USE_LINUX=
f6bcfd97 1671USE_NETBSD=
89e3b3e4 1672USE_OPENBSD=
fe0895cf
VS
1673USE_OSF= USE_SGI=
1674USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1675USE_ULTRIX=
89e3b3e4
VZ
1676USE_UNIXWARE=
1677
1678USE_ALPHA=
10f2d63a 1679
ab9b9eab
VZ
1680NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1681
ac0c4cc3 1682ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1683
ac0c4cc3 1684DEFAULT_wxUSE_COCOA=0
10f2d63a 1685DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1686DEFAULT_wxUSE_MAC=0
1687DEFAULT_wxUSE_MGL=0
1725144d 1688DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1689DEFAULT_wxUSE_MOTIF=0
1690DEFAULT_wxUSE_MSW=0
e07802fc 1691DEFAULT_wxUSE_PM=0
f79bd02d 1692DEFAULT_wxUSE_X11=0
10f2d63a 1693
ac0c4cc3 1694DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1695DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1696DEFAULT_DEFAULT_wxUSE_MAC=0
1697DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1698DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1699DEFAULT_DEFAULT_wxUSE_MOTIF=0
1700DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1701DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1702DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1703
d6a55c4b 1704PROGRAM_EXT=
3a922bb4 1705SO_SUFFIX=so
fe0895cf 1706SAMPLES_RPATH_FLAG=
0f1bc9c2 1707SAMPLES_RPATH_POSTLINK=
d6a55c4b 1708
10f2d63a
VZ
1709case "${host}" in
1710 *-hp-hpux* )
1711 USE_HPUX=1
1712 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1713 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1714 SO_SUFFIX=sl
e6cc62c6 1715 cat >>confdefs.h <<\_ACEOF
10f2d63a 1716#define __HPUX__ 1
e6cc62c6 1717_ACEOF
10f2d63a
VZ
1718
1719 ;;
1720 *-*-linux* )
1721 USE_LINUX=1
e6cc62c6 1722 cat >>confdefs.h <<\_ACEOF
10f2d63a 1723#define __LINUX__ 1
e6cc62c6 1724_ACEOF
10f2d63a
VZ
1725
1726 TMP=`uname -m`
1727 if test "x$TMP" = "xalpha"; then
1728 USE_ALPHA=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __ALPHA__ 1
e6cc62c6 1731_ACEOF
fe0895cf
VS
1732
1733 fi
1734 DEFAULT_DEFAULT_wxUSE_GTK=1
1735 ;;
e1293dcf 1736 *-*-gnu* | *-*-k*bsd*-gnu )
fe0895cf 1737 USE_GNU=1
fe0895cf
VS
1738 TMP=`uname -m`
1739 if test "x$TMP" = "xalpha"; then
1740 USE_ALPHA=1
e6cc62c6 1741 cat >>confdefs.h <<\_ACEOF
fe0895cf 1742#define __ALPHA__ 1
e6cc62c6 1743_ACEOF
10f2d63a
VZ
1744
1745 fi
1746 DEFAULT_DEFAULT_wxUSE_GTK=1
1747 ;;
1748 *-*-irix5* | *-*-irix6* )
1749 USE_SGI=1
1750 USE_SVR4=1
e6cc62c6 1751 cat >>confdefs.h <<\_ACEOF
10f2d63a 1752#define __SGI__ 1
e6cc62c6 1753_ACEOF
10f2d63a 1754
e6cc62c6 1755 cat >>confdefs.h <<\_ACEOF
10f2d63a 1756#define __SVR4__ 1
e6cc62c6 1757_ACEOF
10f2d63a
VZ
1758
1759 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1760 ;;
1761 *-*-solaris2* )
1762 USE_SUN=1
1763 USE_SOLARIS=1
1764 USE_SVR4=1
e6cc62c6 1765 cat >>confdefs.h <<\_ACEOF
10f2d63a 1766#define __SUN__ 1
e6cc62c6 1767_ACEOF
10f2d63a 1768
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
10f2d63a 1770#define __SOLARIS__ 1
e6cc62c6 1771_ACEOF
10f2d63a 1772
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
10f2d63a 1774#define __SVR4__ 1
e6cc62c6 1775_ACEOF
10f2d63a
VZ
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1778 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1779 ;;
1780 *-*-sunos4* )
1781 USE_SUN=1
1782 USE_SUNOS=1
1783 USE_BSD=1
e6cc62c6 1784 cat >>confdefs.h <<\_ACEOF
10f2d63a 1785#define __SUN__ 1
e6cc62c6 1786_ACEOF
10f2d63a 1787
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
10f2d63a 1789#define __SUNOS__ 1
e6cc62c6 1790_ACEOF
10f2d63a 1791
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
10f2d63a 1793#define __BSD__ 1
e6cc62c6 1794_ACEOF
10f2d63a
VZ
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 ;;
f6bcfd97 1798 *-*-freebsd*)
10f2d63a
VZ
1799 USE_BSD=1
1800 USE_FREEBSD=1
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
10f2d63a 1802#define __FREEBSD__ 1
e6cc62c6 1803_ACEOF
10f2d63a 1804
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __BSD__ 1
e6cc62c6 1807_ACEOF
95c8801c
VS
1808
1809 DEFAULT_DEFAULT_wxUSE_GTK=1
1810 ;;
1811 *-*-openbsd*)
1812 USE_BSD=1
1813 USE_OPENBSD=1
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1815#define __OPENBSD__ 1
e6cc62c6 1816_ACEOF
95c8801c 1817
e6cc62c6 1818 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1819#define __BSD__ 1
e6cc62c6 1820_ACEOF
f6bcfd97
BP
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-netbsd*)
1825 USE_BSD=1
1826 USE_NETBSD=1
e6cc62c6 1827 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1828#define __NETBSD__ 1
e6cc62c6 1829_ACEOF
f6bcfd97 1830
e6cc62c6 1831 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1832#define __BSD__ 1
e6cc62c6 1833_ACEOF
10f2d63a
VZ
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-osf* )
1838 USE_ALPHA=1
1839 USE_OSF=1
e6cc62c6 1840 cat >>confdefs.h <<\_ACEOF
10f2d63a 1841#define __ALPHA__ 1
e6cc62c6 1842_ACEOF
10f2d63a 1843
e6cc62c6 1844 cat >>confdefs.h <<\_ACEOF
10f2d63a 1845#define __OSF__ 1
e6cc62c6 1846_ACEOF
10f2d63a
VZ
1847
1848 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1849 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1850 ;;
1851 *-*-dgux5* )
1852 USE_ALPHA=1
1853 USE_SVR4=1
e6cc62c6 1854 cat >>confdefs.h <<\_ACEOF
10f2d63a 1855#define __ALPHA__ 1
e6cc62c6 1856_ACEOF
10f2d63a 1857
e6cc62c6 1858 cat >>confdefs.h <<\_ACEOF
10f2d63a 1859#define __SVR4__ 1
e6cc62c6 1860_ACEOF
10f2d63a
VZ
1861
1862 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1863 ;;
1864 *-*-sysv5* )
1865 USE_SYSV=1
1866 USE_SVR4=1
e6cc62c6 1867 cat >>confdefs.h <<\_ACEOF
10f2d63a 1868#define __SYSV__ 1
e6cc62c6 1869_ACEOF
10f2d63a 1870
e6cc62c6 1871 cat >>confdefs.h <<\_ACEOF
10f2d63a 1872#define __SVR4__ 1
e6cc62c6 1873_ACEOF
10f2d63a
VZ
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-aix* )
1878 USE_AIX=1
1879 USE_SYSV=1
1880 USE_SVR4=1
2b5f62a0 1881 SO_SUFFIX=a
e6cc62c6 1882 cat >>confdefs.h <<\_ACEOF
10f2d63a 1883#define __AIX__ 1
e6cc62c6 1884_ACEOF
10f2d63a 1885
e6cc62c6 1886 cat >>confdefs.h <<\_ACEOF
10f2d63a 1887#define __SYSV__ 1
e6cc62c6 1888_ACEOF
10f2d63a 1889
e6cc62c6 1890 cat >>confdefs.h <<\_ACEOF
10f2d63a 1891#define __SVR4__ 1
e6cc62c6 1892_ACEOF
10f2d63a
VZ
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896
89e3b3e4
VZ
1897 *-*-*UnixWare*)
1898 USE_SYSV=1
1899 USE_SVR4=1
1900 USE_UNIXWARE=1
e6cc62c6 1901 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1902#define __UNIXWARE__ 1
e6cc62c6 1903_ACEOF
89e3b3e4
VZ
1904
1905 ;;
1906
1c8183e2 1907 *-*-cygwin* | *-*-mingw32* )
17234b26 1908 SO_SUFFIX=dll
cf27ef00 1909 PROGRAM_EXT=".exe"
7b7a7637 1910 RESCOMP=windres
10f2d63a
VZ
1911 DEFAULT_DEFAULT_wxUSE_MSW=1
1912 ;;
1913
f9bc1684
VS
1914 *-pc-msdosdjgpp )
1915 USE_UNIX=0
1916 USE_DOS=1
e6cc62c6 1917 cat >>confdefs.h <<\_ACEOF
f9bc1684 1918#define __DOS__ 1
e6cc62c6 1919_ACEOF
f9bc1684
VS
1920
1921 PROGRAM_EXT=".exe"
1922 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1923 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1924 ;;
1925
6fa882bd 1926 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1927 cat >>confdefs.h <<\_ACEOF
10f2d63a 1928#define __EMX__ 1
e6cc62c6 1929_ACEOF
10f2d63a 1930
73d617c9 1931 USE_OS2=1
7015ef3a
VZ
1932 cat >>confdefs.h <<\_ACEOF
1933#define __OS2__ 1
1934_ACEOF
1935
cf27ef00 1936 PROGRAM_EXT=".exe"
e07802fc 1937 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1938 CXX=gcc
32ddf007 1939 LDFLAGS="$LDFLAGS -Zcrtdll"
d5fc095c
VS
1940 ac_executable_extensions=".exe"
1941 export ac_executable_extensions
1942 ac_save_IFS="$IFS"
e46d2a18 1943 IFS='\\'
d5fc095c
VS
1944 ac_TEMP_PATH=
1945 for ac_dir in $PATH; do
1946 IFS=$ac_save_IFS
1947 if test -z "$ac_TEMP_PATH"; then
1948 ac_TEMP_PATH="$ac_dir"
1949 else
1950 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1951 fi
1952 done
1953 export PATH="$ac_TEMP_PATH"
1954 unset ac_TEMP_PATH
10f2d63a
VZ
1955 ;;
1956
d08b457b
GD
1957 powerpc-*-darwin* )
1958 USE_BSD=1
f11bdd03 1959 USE_DARWIN=1
3a922bb4 1960 SO_SUFFIX=dylib
e6cc62c6 1961 cat >>confdefs.h <<\_ACEOF
f11bdd03 1962#define __BSD__ 1
e6cc62c6 1963_ACEOF
b4085ce6 1964
e6cc62c6 1965 cat >>confdefs.h <<\_ACEOF
f11bdd03 1966#define __DARWIN__ 1
e6cc62c6 1967_ACEOF
d08b457b 1968
e6cc62c6 1969 cat >>confdefs.h <<\_ACEOF
d08b457b 1970#define __POWERPC__ 1
e6cc62c6 1971_ACEOF
82d43113 1972
e6cc62c6 1973 cat >>confdefs.h <<\_ACEOF
82d43113 1974#define TARGET_CARBON 1
e6cc62c6 1975_ACEOF
b4085ce6
GD
1976
1977 DEFAULT_DEFAULT_wxUSE_MAC=1
1978 ;;
1979
b12915c1
VZ
1980 *-*-beos* )
1981 USE_BEOS=1
e6cc62c6 1982 cat >>confdefs.h <<\_ACEOF
b12915c1 1983#define __BEOS__ 1
e6cc62c6 1984_ACEOF
b12915c1
VZ
1985
1986 ;;
1987
10f2d63a 1988 *)
e6cc62c6
VS
1989 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1990echo "$as_me: error: unknown system type ${host}." >&2;}
1991 { (exit 1); exit 1; }; }
10f2d63a
VZ
1992esac
1993
8284b0c5
MB
1994
1995
1996
1997 wx_arg_cache_file="configarg.cache"
1998 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1999 rm -f ${wx_arg_cache_file}.tmp
2000 touch ${wx_arg_cache_file}.tmp
2001 touch ${wx_arg_cache_file}
e6cc62c6 2002
10f2d63a
VZ
2003
2004DEBUG_CONFIGURE=0
2005if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2006 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2007 DEFAULT_wxUSE_STL=no
1e6feb95 2008
d8356fa3
VZ
2009 DEFAULT_wxUSE_NANOX=no
2010
10f2d63a
VZ
2011 DEFAULT_wxUSE_THREADS=yes
2012
2013 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2014 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2015 DEFAULT_wxUSE_PROFILE=no
2016 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2017 DEFAULT_wxUSE_NO_RTTI=no
2018 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2019 DEFAULT_wxUSE_PERMISSIVE=no
2020 DEFAULT_wxUSE_DEBUG_FLAG=yes
2021 DEFAULT_wxUSE_DEBUG_INFO=yes
2022 DEFAULT_wxUSE_DEBUG_GDB=yes
2023 DEFAULT_wxUSE_MEM_TRACING=no
2024 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2025 DEFAULT_wxUSE_DMALLOC=no
2026 DEFAULT_wxUSE_APPLE_IEEE=no
2027
e46d2a18 2028 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2029 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2030 DEFAULT_wxUSE_LOGWINDOW=no
2031 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2032 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2033
2034 DEFAULT_wxUSE_GUI=yes
1e6feb95 2035 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2036
3e44f09d 2037 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2038 DEFAULT_wxUSE_XML=no
2039 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2040 DEFAULT_wxUSE_ZLIB=no
2041 DEFAULT_wxUSE_LIBPNG=no
2042 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2043 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2044 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2045 DEFAULT_wxUSE_LIBMSPACK=no
2046 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2047 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2048 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2049
eb4efbdc 2050 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2051 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2052 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2053 DEFAULT_wxUSE_CMDLINE_PARSER=no
2054 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2055 DEFAULT_wxUSE_TIMER=no
2056 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2057 DEFAULT_wxUSE_FILE=no
1e6feb95 2058 DEFAULT_wxUSE_FFILE=no
a3a584a7 2059 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2060 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2061 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2062 DEFAULT_wxUSE_INTL=no
2063 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2064 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2065 DEFAULT_wxUSE_STREAMS=no
2066 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2067 DEFAULT_wxUSE_OLE=no
2068 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2069 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2070 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2071 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2072 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2073 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2074 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2075
2076 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2077 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2078 DEFAULT_wxUSE_POSTSCRIPT=no
2079
10f2d63a
VZ
2080 DEFAULT_wxUSE_CLIPBOARD=no
2081 DEFAULT_wxUSE_TOOLTIPS=no
2082 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2083 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2084 DEFAULT_wxUSE_SPLINES=no
2085
2086 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2087 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2088 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2089
10f2d63a
VZ
2090 DEFAULT_wxUSE_RESOURCES=no
2091 DEFAULT_wxUSE_CONSTRAINTS=no
2092 DEFAULT_wxUSE_IPC=no
2093 DEFAULT_wxUSE_HELP=no
29fd3c0c 2094 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2095 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2096 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2097 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2098 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2099 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2100 DEFAULT_wxUSE_PROTOCOL=no
2101 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2102 DEFAULT_wxUSE_PROTOCOL_FTP=no
2103 DEFAULT_wxUSE_PROTOCOL_FILE=no
2104 DEFAULT_wxUSE_URL=no
3bd8fb5f 2105
10f2d63a 2106 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2107 DEFAULT_wxUSE_CHOICEDLG=no
2108 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2109 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2110 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2111 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2112 DEFAULT_wxUSE_FONTDLG=no
2113 DEFAULT_wxUSE_MSGDLG=no
2114 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2115 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2116 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2117 DEFAULT_wxUSE_STARTUP_TIPS=no
2118 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2119 DEFAULT_wxUSE_WIZARDDLG=no
2120
1e6feb95 2121 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2122 DEFAULT_wxUSE_MINIFRAME=no
2123 DEFAULT_wxUSE_HTML=no
24528b0c 2124 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2125 DEFAULT_wxUSE_FS_INET=no
2126 DEFAULT_wxUSE_FS_ZIP=no
2127 DEFAULT_wxUSE_BUSYINFO=no
2128 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2129 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2130 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2131
2132 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2133 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2134 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2135 DEFAULT_wxUSE_CALCTRL=no
2136 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2137 DEFAULT_wxUSE_CHECKBOX=no
2138 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2139 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2140 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2141 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2142 DEFAULT_wxUSE_GAUGE=no
2143 DEFAULT_wxUSE_GRID=no
10f2d63a 2144 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2145 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2146 DEFAULT_wxUSE_LISTBOX=no
2147 DEFAULT_wxUSE_LISTCTRL=no
2148 DEFAULT_wxUSE_NOTEBOOK=no
2149 DEFAULT_wxUSE_RADIOBOX=no
2150 DEFAULT_wxUSE_RADIOBTN=no
2151 DEFAULT_wxUSE_SASH=no
2152 DEFAULT_wxUSE_SCROLLBAR=no
2153 DEFAULT_wxUSE_SLIDER=no
2154 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2155 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2156 DEFAULT_wxUSE_SPLITTER=no
2157 DEFAULT_wxUSE_STATBMP=no
2158 DEFAULT_wxUSE_STATBOX=no
2159 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2160 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2161 DEFAULT_wxUSE_STATUSBAR=yes
2162 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2163 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2164 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2165 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2166 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2167 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2168 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2169 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2170 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2171
2172 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2173 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2174 DEFAULT_wxUSE_WCSRTOMBS=no
2175
edae8572 2176 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2177 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2178 DEFAULT_wxUSE_GIF=no
2179 DEFAULT_wxUSE_PCX=no
2180 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2181 DEFAULT_wxUSE_IFF=no
0046ff7c 2182 DEFAULT_wxUSE_XPM=no
658974ae 2183 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2184 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2185
e9e0dc15 2186 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2187 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2188 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2189else
1e6feb95 2190 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2191 DEFAULT_wxUSE_STL=no
1e6feb95 2192
d8356fa3
VZ
2193 DEFAULT_wxUSE_NANOX=no
2194
10f2d63a
VZ
2195 DEFAULT_wxUSE_THREADS=yes
2196
2197 DEFAULT_wxUSE_SHARED=yes
2198 DEFAULT_wxUSE_OPTIMISE=yes
2199 DEFAULT_wxUSE_PROFILE=no
2200 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2201 DEFAULT_wxUSE_NO_RTTI=no
2202 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2203 DEFAULT_wxUSE_PERMISSIVE=no
2204 DEFAULT_wxUSE_DEBUG_FLAG=no
2205 DEFAULT_wxUSE_DEBUG_INFO=no
2206 DEFAULT_wxUSE_DEBUG_GDB=no
2207 DEFAULT_wxUSE_MEM_TRACING=no
2208 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2209 DEFAULT_wxUSE_DMALLOC=no
2210 DEFAULT_wxUSE_APPLE_IEEE=yes
2211
e46d2a18 2212 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2213 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2214 DEFAULT_wxUSE_LOGWINDOW=yes
2215 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2216 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2217
2218 DEFAULT_wxUSE_GUI=yes
2219
aa2d9ecc 2220 DEFAULT_wxUSE_REGEX=yes
672abd7a 2221 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2222 DEFAULT_wxUSE_EXPAT=yes
2223 DEFAULT_wxUSE_ZLIB=yes
2224 DEFAULT_wxUSE_LIBPNG=yes
2225 DEFAULT_wxUSE_LIBJPEG=yes
2226 DEFAULT_wxUSE_LIBTIFF=yes
2227 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2228 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2229 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2230 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2231 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2232
eb4efbdc 2233 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2234 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2235 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2236 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2237 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2238 DEFAULT_wxUSE_TIMER=yes
2239 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2240 DEFAULT_wxUSE_FILE=yes
1e6feb95 2241 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2242 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2243 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2244 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2245 DEFAULT_wxUSE_INTL=yes
2246 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2247 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2248 DEFAULT_wxUSE_STREAMS=yes
2249 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2250 DEFAULT_wxUSE_OLE=yes
2251 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2252 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2253 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2254 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2255 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2256 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2257 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2258
2259 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2260 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2261 DEFAULT_wxUSE_POSTSCRIPT=yes
2262
10f2d63a
VZ
2263 DEFAULT_wxUSE_CLIPBOARD=yes
2264 DEFAULT_wxUSE_TOOLTIPS=yes
2265 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2266 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2267 DEFAULT_wxUSE_SPLINES=yes
2268
2269 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2270 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2271 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2272
2b5f62a0 2273 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2274 DEFAULT_wxUSE_CONSTRAINTS=yes
2275 DEFAULT_wxUSE_IPC=yes
2276 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2277 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2278 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2279 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2280 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2281 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2282 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2283 DEFAULT_wxUSE_PROTOCOL=yes
2284 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2285 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2286 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2287 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2288
2289 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2290 DEFAULT_wxUSE_CHOICEDLG=yes
2291 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2292 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2293 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2294 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2295 DEFAULT_wxUSE_FONTDLG=yes
2296 DEFAULT_wxUSE_MSGDLG=yes
2297 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2298 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2299 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2300 DEFAULT_wxUSE_STARTUP_TIPS=yes
2301 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2302 DEFAULT_wxUSE_WIZARDDLG=yes
2303
1e6feb95 2304 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2305 DEFAULT_wxUSE_MINIFRAME=yes
2306 DEFAULT_wxUSE_HTML=yes
24528b0c 2307 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2308 DEFAULT_wxUSE_FS_INET=yes
2309 DEFAULT_wxUSE_FS_ZIP=yes
2310 DEFAULT_wxUSE_BUSYINFO=yes
2311 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2312 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2313 DEFAULT_wxUSE_VALIDATORS=yes
2314
2315 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2316 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2317 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2318 DEFAULT_wxUSE_CALCTRL=yes
2319 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2320 DEFAULT_wxUSE_CHECKBOX=yes
2321 DEFAULT_wxUSE_CHECKLST=yes
2322 DEFAULT_wxUSE_CHOICE=yes
2323 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2324 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2325 DEFAULT_wxUSE_GAUGE=yes
2326 DEFAULT_wxUSE_GRID=yes
10f2d63a 2327 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2328 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2329 DEFAULT_wxUSE_LISTBOX=yes
2330 DEFAULT_wxUSE_LISTCTRL=yes
2331 DEFAULT_wxUSE_NOTEBOOK=yes
2332 DEFAULT_wxUSE_RADIOBOX=yes
2333 DEFAULT_wxUSE_RADIOBTN=yes
2334 DEFAULT_wxUSE_SASH=yes
2335 DEFAULT_wxUSE_SCROLLBAR=yes
2336 DEFAULT_wxUSE_SLIDER=yes
2337 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2338 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2339 DEFAULT_wxUSE_SPLITTER=yes
2340 DEFAULT_wxUSE_STATBMP=yes
2341 DEFAULT_wxUSE_STATBOX=yes
2342 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2343 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2344 DEFAULT_wxUSE_STATUSBAR=yes
2345 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2346 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2347 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2348 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2349 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2350 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2351 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2352 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2353 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2354
2355 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2356 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2357 DEFAULT_wxUSE_WCSRTOMBS=no
2358
edae8572 2359 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2360 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2361 DEFAULT_wxUSE_GIF=yes
2362 DEFAULT_wxUSE_PCX=yes
cc0e8480 2363 DEFAULT_wxUSE_IFF=no
10f2d63a 2364 DEFAULT_wxUSE_PNM=yes
0046ff7c 2365 DEFAULT_wxUSE_XPM=yes
658974ae 2366 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2367 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2368
e9e0dc15 2369 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2370 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2371 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2372fi
2373
8284b0c5
MB
2374
2375
10f2d63a 2376for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2377 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2378 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2379 has_toolkit_in_cache=1
2380 eval "DEFAULT_$LINE"
2381 eval "CACHE_$toolkit=1"
2382 fi
2383done
2384
8284b0c5
MB
2385
2386
5005acfe 2387 enablestring=
e6cc62c6
VS
2388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2389echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2390 no_cache=0
2391 # Check whether --enable-gui or --disable-gui was given.
2392if test "${enable_gui+set}" = set; then
2393 enableval="$enable_gui"
e6cc62c6 2394
10f2d63a
VZ
2395 if test "$enableval" = yes; then
2396 ac_cv_use_gui='wxUSE_GUI=yes'
2397 else
2398 ac_cv_use_gui='wxUSE_GUI=no'
2399 fi
e6cc62c6 2400
10f2d63a 2401else
e6cc62c6 2402
10f2d63a
VZ
2403 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2411
e6cc62c6 2412fi;
10f2d63a
VZ
2413
2414 eval "$ac_cv_use_gui"
2415 if test "$no_cache" != 1; then
2416 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2417 fi
2418
2419 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2420 echo "$as_me:$LINENO: result: yes" >&5
2421echo "${ECHO_T}yes" >&6
10f2d63a 2422 else
e6cc62c6
VS
2423 echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
10f2d63a 2425 fi
e6cc62c6 2426
10f2d63a 2427
9747f85d
VS
2428 enablestring=
2429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2430echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2431 no_cache=0
2432 # Check whether --enable-monolithic or --disable-monolithic was given.
2433if test "${enable_monolithic+set}" = set; then
2434 enableval="$enable_monolithic"
2435
2436 if test "$enableval" = yes; then
2437 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2438 else
2439 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2440 fi
2441
2442else
2443
2444 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2445 if test "x$LINE" != x ; then
2446 eval "DEFAULT_$LINE"
2447 else
2448 no_cache=1
2449 fi
2450
2451 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2452
2453fi;
2454
2455 eval "$ac_cv_use_monolithic"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_MONOLITHIC" = yes; then
2461 echo "$as_me:$LINENO: result: yes" >&5
2462echo "${ECHO_T}yes" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6
2466 fi
2467
2468
f93ca9fd
VS
2469 enablestring=
2470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2471echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2472 no_cache=0
2473 # Check whether --enable-plugins or --disable-plugins was given.
2474if test "${enable_plugins+set}" = set; then
2475 enableval="$enable_plugins"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2479 else
2480 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2481 fi
2482
2483else
2484
2485 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2493
2494fi;
2495
2496 eval "$ac_cv_use_plugins"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_PLUGINS" = yes; then
2502 echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6
2504 else
2505 echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6
2507 fi
2508
2509
b12915c1 2510if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2511
8284b0c5 2512
5005acfe 2513 enablestring=
e6cc62c6
VS
2514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2515echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2516 no_cache=0
2517 # Check whether --enable-universal or --disable-universal was given.
2518if test "${enable_universal+set}" = set; then
2519 enableval="$enable_universal"
e6cc62c6 2520
1e6feb95
VZ
2521 if test "$enableval" = yes; then
2522 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2523 else
2524 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2525 fi
e6cc62c6 2526
1e6feb95 2527else
e6cc62c6 2528
1e6feb95
VZ
2529 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2537
e6cc62c6 2538fi;
1e6feb95
VZ
2539
2540 eval "$ac_cv_use_universal"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2546 echo "$as_me:$LINENO: result: yes" >&5
2547echo "${ECHO_T}yes" >&6
1e6feb95 2548 else
e6cc62c6
VS
2549 echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
1e6feb95 2551 fi
e6cc62c6
VS
2552
2553
10f2d63a
VZ
2554# Check whether --with-gtk or --without-gtk was given.
2555if test "${with_gtk+set}" = set; then
2556 withval="$with_gtk"
2557 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2558fi;
10f2d63a
VZ
2559
2560# Check whether --with-motif or --without-motif was given.
2561if test "${with_motif+set}" = set; then
2562 withval="$with_motif"
2563 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2564fi;
10f2d63a 2565
b4085ce6
GD
2566# Check whether --with-mac or --without-mac was given.
2567if test "${with_mac+set}" = set; then
2568 withval="$with_mac"
2569 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2570fi;
b4085ce6 2571
ac0c4cc3
DE
2572# Check whether --with-cocoa or --without-cocoa was given.
2573if test "${with_cocoa+set}" = set; then
2574 withval="$with_cocoa"
2575 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2576fi;
ac0c4cc3 2577
10f2d63a
VZ
2578# Check whether --with-wine or --without-wine was given.
2579if test "${with_wine+set}" = set; then
2580 withval="$with_wine"
89e6bf6d 2581 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2582fi;
10f2d63a 2583
77e13408
RL
2584# Check whether --with-msw or --without-msw was given.
2585if test "${with_msw+set}" = set; then
2586 withval="$with_msw"
b4efce5e 2587 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2588fi;
10f2d63a 2589
e07802fc
VZ
2590# Check whether --with-pm or --without-pm was given.
2591if test "${with_pm+set}" = set; then
2592 withval="$with_pm"
2593 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2594fi;
698dcdb6 2595
1e6feb95
VZ
2596# Check whether --with-mgl or --without-mgl was given.
2597if test "${with_mgl+set}" = set; then
2598 withval="$with_mgl"
6c657b52 2599 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2600fi;
1e6feb95 2601
1725144d
RR
2602# Check whether --with-microwin or --without-microwin was given.
2603if test "${with_microwin+set}" = set; then
2604 withval="$with_microwin"
2605 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2606fi;
1725144d 2607
f79bd02d
JS
2608# Check whether --with-x11 or --without-x11 was given.
2609if test "${with_x11+set}" = set; then
2610 withval="$with_x11"
3c011993 2611 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2612fi;
a0b9e27f 2613
5005acfe 2614 enablestring=
e6cc62c6
VS
2615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2616echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2617 no_cache=0
ba875e66
VZ
2618 # Check whether --enable-nanox or --disable-nanox was given.
2619if test "${enable_nanox+set}" = set; then
2620 enableval="$enable_nanox"
e6cc62c6 2621
d8356fa3 2622 if test "$enableval" = yes; then
ba875e66 2623 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2624 else
ba875e66 2625 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2626 fi
e6cc62c6 2627
d8356fa3 2628else
e6cc62c6 2629
d8356fa3
VZ
2630 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
ba875e66 2637 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2638
e6cc62c6 2639fi;
d8356fa3 2640
ba875e66 2641 eval "$ac_cv_use_nanox"
d8356fa3 2642 if test "$no_cache" != 1; then
ba875e66 2643 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2644 fi
2645
2646 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2647 echo "$as_me:$LINENO: result: yes" >&5
2648echo "${ECHO_T}yes" >&6
d8356fa3 2649 else
e6cc62c6
VS
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
d8356fa3 2652 fi
e6cc62c6 2653
8284b0c5 2654
d74f4b5a 2655
5005acfe 2656 enablestring=
e6cc62c6
VS
2657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2658echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2659 no_cache=0
2660 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2661if test "${enable_gtk2+set}" = set; then
2662 enableval="$enable_gtk2"
e6cc62c6 2663
d74f4b5a
VZ
2664 if test "$enableval" = yes; then
2665 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2666 else
2667 ac_cv_use_gtk2='wxUSE_GTK2=no'
2668 fi
e6cc62c6 2669
10f2d63a 2670else
e6cc62c6 2671
d74f4b5a
VZ
2672 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2680
e6cc62c6 2681fi;
328a083c 2682
d74f4b5a
VZ
2683 eval "$ac_cv_use_gtk2"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2689 echo "$as_me:$LINENO: result: yes" >&5
2690echo "${ECHO_T}yes" >&6
d74f4b5a 2691 else
e6cc62c6
VS
2692 echo "$as_me:$LINENO: result: no" >&5
2693echo "${ECHO_T}no" >&6
d74f4b5a 2694 fi
d74f4b5a 2695
5c6fa7d2 2696
0f87e84c
RR
2697 enablestring=
2698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2699echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2700 no_cache=0
2701 # Check whether --enable-gpe or --disable-gpe was given.
2702if test "${enable_gpe+set}" = set; then
2703 enableval="$enable_gpe"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_gpe='wxUSE_GPE=yes'
2707 else
2708 ac_cv_use_gpe='wxUSE_GPE=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2721
2722fi;
2723
2724 eval "$ac_cv_use_gpe"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_GPE" = yes; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731echo "${ECHO_T}yes" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735 fi
2736
2737
e6cc62c6
VS
2738
2739 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2740echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2741 no_cache=0
e6cc62c6
VS
2742
2743# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2744if test "${with_libpng+set}" = set; then
2745 withval="$with_libpng"
e6cc62c6 2746
10f2d63a 2747 if test "$withval" = yes; then
b12915c1 2748 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2749 elif test "$withval" = no; then
b12915c1 2750 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2751 elif test "$withval" = sys; then
2752 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2753 elif test "$withval" = builtin; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2755 else
e6cc62c6
VS
2756 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2757echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2758 { (exit 1); exit 1; }; }
10f2d63a 2759 fi
e6cc62c6 2760
10f2d63a 2761else
e6cc62c6 2762
b12915c1 2763 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
b12915c1 2770 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2771
e6cc62c6 2772fi;
10f2d63a 2773
b12915c1 2774 eval "$ac_cv_use_libpng"
10f2d63a 2775 if test "$no_cache" != 1; then
b12915c1 2776 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2777 fi
2778
b12915c1 2779 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2780 echo "$as_me:$LINENO: result: yes" >&5
2781echo "${ECHO_T}yes" >&6
422107f9 2782 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
422107f9 2785 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2786 echo "$as_me:$LINENO: result: system version" >&5
2787echo "${ECHO_T}system version" >&6
4f14bcd8 2788 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2789 echo "$as_me:$LINENO: result: builtin version" >&5
2790echo "${ECHO_T}builtin version" >&6
422107f9 2791 else
e6cc62c6
VS
2792 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2793echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2794 { (exit 1); exit 1; }; }
10f2d63a 2795 fi
10f2d63a 2796
e6cc62c6
VS
2797
2798 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2799echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2800 no_cache=0
e6cc62c6
VS
2801
2802# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2803if test "${with_libjpeg+set}" = set; then
2804 withval="$with_libjpeg"
e6cc62c6 2805
10f2d63a 2806 if test "$withval" = yes; then
b12915c1 2807 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2808 elif test "$withval" = no; then
b12915c1 2809 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2810 elif test "$withval" = sys; then
2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2812 elif test "$withval" = builtin; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2814 else
e6cc62c6
VS
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
10f2d63a 2818 fi
e6cc62c6 2819
10f2d63a 2820else
e6cc62c6 2821
b12915c1 2822 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
b12915c1 2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2830
e6cc62c6 2831fi;
10f2d63a 2832
b12915c1 2833 eval "$ac_cv_use_libjpeg"
10f2d63a 2834 if test "$no_cache" != 1; then
b12915c1 2835 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2836 fi
2837
b12915c1 2838 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2839 echo "$as_me:$LINENO: result: yes" >&5
2840echo "${ECHO_T}yes" >&6
422107f9 2841 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2842 echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
422107f9 2844 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2845 echo "$as_me:$LINENO: result: system version" >&5
2846echo "${ECHO_T}system version" >&6
4f14bcd8 2847 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2848 echo "$as_me:$LINENO: result: builtin version" >&5
2849echo "${ECHO_T}builtin version" >&6
422107f9 2850 else
e6cc62c6
VS
2851 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2852echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2853 { (exit 1); exit 1; }; }
10f2d63a 2854 fi
10f2d63a 2855
e6cc62c6
VS
2856
2857 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2858echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2859 no_cache=0
e6cc62c6
VS
2860
2861# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2862if test "${with_libtiff+set}" = set; then
2863 withval="$with_libtiff"
e6cc62c6 2864
10f2d63a 2865 if test "$withval" = yes; then
b12915c1 2866 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2867 elif test "$withval" = no; then
b12915c1 2868 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2869 elif test "$withval" = sys; then
2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2871 elif test "$withval" = builtin; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2873 else
e6cc62c6
VS
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
10f2d63a 2877 fi
e6cc62c6 2878
10f2d63a 2879else
e6cc62c6 2880
b12915c1 2881 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2882 if test "x$LINE" != x ; then
2883 eval "DEFAULT_$LINE"
2884 else
2885 no_cache=1
2886 fi
2887
b12915c1 2888 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2889
e6cc62c6 2890fi;
10f2d63a 2891
b12915c1 2892 eval "$ac_cv_use_libtiff"
10f2d63a 2893 if test "$no_cache" != 1; then
b12915c1 2894 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2895 fi
2896
b12915c1 2897 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2898 echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6
0dcf9893 2900 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
0dcf9893 2903 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2904 echo "$as_me:$LINENO: result: system version" >&5
2905echo "${ECHO_T}system version" >&6
4f14bcd8 2906 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2907 echo "$as_me:$LINENO: result: builtin version" >&5
2908echo "${ECHO_T}builtin version" >&6
0dcf9893 2909 else
e6cc62c6
VS
2910 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2911echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2912 { (exit 1); exit 1; }; }
10f2d63a 2913 fi
10f2d63a 2914
e6cc62c6 2915
89fe663f
VZ
2916 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2917echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2918 no_cache=0
2919
2920# Check whether --with-libxpm or --without-libxpm was given.
2921if test "${with_libxpm+set}" = set; then
2922 withval="$with_libxpm"
2923
2924 if test "$withval" = yes; then
2925 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2926 elif test "$withval" = no; then
2927 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2928 elif test "$withval" = sys; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2930 elif test "$withval" = builtin; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938else
2939
2940 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
2947 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2948
2949fi;
2950
2951 eval "$ac_cv_use_libxpm"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_LIBXPM" = yes; then
2957 echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6
2959 elif test "$wxUSE_LIBXPM" = no; then
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962 elif test "$wxUSE_LIBXPM" = sys; then
2963 echo "$as_me:$LINENO: result: system version" >&5
2964echo "${ECHO_T}system version" >&6
2965 elif test "$wxUSE_LIBXPM" = builtin; then
2966 echo "$as_me:$LINENO: result: builtin version" >&5
2967echo "${ECHO_T}builtin version" >&6
2968 else
2969 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2970echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2971 { (exit 1); exit 1; }; }
2972 fi
2973
2974
3527f29c
VS
2975 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2976echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2977 no_cache=0
2978
2979# Check whether --with-libmspack or --without-libmspack was given.
2980if test "${with_libmspack+set}" = set; then
2981 withval="$with_libmspack"
2982
2983 if test "$withval" = yes; then
2984 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2985 else
2986 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2987 fi
2988
2989else
2990
2991 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2992 if test "x$LINE" != x ; then
2993 eval "DEFAULT_$LINE"
2994 else
2995 no_cache=1
2996 fi
2997
2998 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2999
3000fi;
3001
3002 eval "$ac_cv_use_libmspack"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$wxUSE_LIBMSPACK" = yes; then
3008 echo "$as_me:$LINENO: result: yes" >&5
3009echo "${ECHO_T}yes" >&6
3010 else
3011 echo "$as_me:$LINENO: result: no" >&5
3012echo "${ECHO_T}no" >&6
3013 fi
3014
3015
f93ca9fd
VS
3016 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3017echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3018 no_cache=0
3019
3020# Check whether --with-sdl or --without-sdl was given.
3021if test "${with_sdl+set}" = set; then
3022 withval="$with_sdl"
3023
3024 if test "$withval" = yes; then
3025 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3026 else
3027 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3028 fi
3029
3030else
3031
3032 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3040
3041fi;
3042
3043 eval "$ac_cv_use_sdl"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_LIBSDL" = yes; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
3051 else
3052 echo "$as_me:$LINENO: result: no" >&5
3053echo "${ECHO_T}no" >&6
3054 fi
3055
3056
e6cc62c6
VS
3057 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3058echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 3059 no_cache=0
e6cc62c6
VS
3060
3061# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
3062if test "${with_opengl+set}" = set; then
3063 withval="$with_opengl"
e6cc62c6 3064
10f2d63a 3065 if test "$withval" = yes; then
b12915c1 3066 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 3067 else
b12915c1 3068 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 3069 fi
e6cc62c6 3070
10f2d63a 3071else
e6cc62c6 3072
b12915c1 3073 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3074 if test "x$LINE" != x ; then
3075 eval "DEFAULT_$LINE"
3076 else
3077 no_cache=1
3078 fi
3079
b12915c1 3080 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3081
e6cc62c6 3082fi;
10f2d63a 3083
b12915c1 3084 eval "$ac_cv_use_opengl"
10f2d63a 3085 if test "$no_cache" != 1; then
b12915c1 3086 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3087 fi
3088
b12915c1 3089 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3090 echo "$as_me:$LINENO: result: yes" >&5
3091echo "${ECHO_T}yes" >&6
10f2d63a 3092 else
e6cc62c6
VS
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
10f2d63a 3095 fi
e6cc62c6 3096
10f2d63a 3097
b12915c1
VZ
3098fi
3099
5c6fa7d2 3100
e6cc62c6
VS
3101 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3102echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3103 no_cache=0
e6cc62c6
VS
3104
3105# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3106if test "${with_dmalloc+set}" = set; then
3107 withval="$with_dmalloc"
e6cc62c6 3108
c7a2bf27 3109 if test "$withval" = yes; then
b12915c1 3110 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3111 else
b12915c1 3112 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3113 fi
e6cc62c6 3114
c7a2bf27 3115else
e6cc62c6 3116
b12915c1 3117 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
b12915c1 3124 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3125
e6cc62c6 3126fi;
c7a2bf27 3127
b12915c1 3128 eval "$ac_cv_use_dmalloc"
c7a2bf27 3129 if test "$no_cache" != 1; then
b12915c1 3130 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3131 fi
3132
b12915c1 3133 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
c7a2bf27 3136 else
e6cc62c6
VS
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
c7a2bf27 3139 fi
c7a2bf27 3140
e6cc62c6
VS
3141
3142 echo "$as_me:$LINENO: checking for --with-regex" >&5
3143echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3144 no_cache=0
e6cc62c6
VS
3145
3146# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3147if test "${with_regex+set}" = set; then
3148 withval="$with_regex"
e6cc62c6 3149
3e44f09d
VZ
3150 if test "$withval" = yes; then
3151 ac_cv_use_regex='wxUSE_REGEX=yes'
3152 elif test "$withval" = no; then
3153 ac_cv_use_regex='wxUSE_REGEX=no'
3154 elif test "$withval" = sys; then
3155 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3156 elif test "$withval" = builtin; then
3157 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3158 else
e6cc62c6
VS
3159 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3160echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3161 { (exit 1); exit 1; }; }
3e44f09d 3162 fi
e6cc62c6 3163
3e44f09d 3164else
e6cc62c6 3165
3e44f09d
VZ
3166 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3174
e6cc62c6 3175fi;
3e44f09d
VZ
3176
3177 eval "$ac_cv_use_regex"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3183 echo "$as_me:$LINENO: result: yes" >&5
3184echo "${ECHO_T}yes" >&6
3e44f09d 3185 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3186 echo "$as_me:$LINENO: result: no" >&5
3187echo "${ECHO_T}no" >&6
3e44f09d 3188 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3189 echo "$as_me:$LINENO: result: system version" >&5
3190echo "${ECHO_T}system version" >&6
4f14bcd8 3191 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3192 echo "$as_me:$LINENO: result: builtin version" >&5
3193echo "${ECHO_T}builtin version" >&6
3e44f09d 3194 else
e6cc62c6
VS
3195 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3196echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3197 { (exit 1); exit 1; }; }
3e44f09d 3198 fi
3e44f09d 3199
e6cc62c6
VS
3200
3201 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3202echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3203 no_cache=0
e6cc62c6
VS
3204
3205# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3206if test "${with_zlib+set}" = set; then
3207 withval="$with_zlib"
e6cc62c6 3208
10f2d63a 3209 if test "$withval" = yes; then
b12915c1 3210 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3211 elif test "$withval" = no; then
b12915c1 3212 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3213 elif test "$withval" = sys; then
3214 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3215 elif test "$withval" = builtin; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3217 else
e6cc62c6
VS
3218 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3219echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3220 { (exit 1); exit 1; }; }
10f2d63a 3221 fi
e6cc62c6 3222
10f2d63a 3223else
e6cc62c6 3224
b12915c1 3225 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3226 if test "x$LINE" != x ; then
3227 eval "DEFAULT_$LINE"
3228 else
3229 no_cache=1
3230 fi
3231
b12915c1 3232 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3233
e6cc62c6 3234fi;
10f2d63a 3235
b12915c1 3236 eval "$ac_cv_use_zlib"
10f2d63a 3237 if test "$no_cache" != 1; then
b12915c1 3238 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3239 fi
3240
b12915c1 3241 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3242 echo "$as_me:$LINENO: result: yes" >&5
3243echo "${ECHO_T}yes" >&6
422107f9 3244 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3245 echo "$as_me:$LINENO: result: no" >&5
3246echo "${ECHO_T}no" >&6
422107f9 3247 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3248 echo "$as_me:$LINENO: result: system version" >&5
3249echo "${ECHO_T}system version" >&6
4f14bcd8 3250 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3251 echo "$as_me:$LINENO: result: builtin version" >&5
3252echo "${ECHO_T}builtin version" >&6
422107f9 3253 else
e6cc62c6
VS
3254 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3255echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3256 { (exit 1); exit 1; }; }
10f2d63a 3257 fi
10f2d63a 3258
e6cc62c6
VS
3259
3260 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3261echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3262 no_cache=0
e6cc62c6
VS
3263
3264# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3265if test "${with_odbc+set}" = set; then
3266 withval="$with_odbc"
e6cc62c6 3267
10f2d63a
VZ
3268 if test "$withval" = yes; then
3269 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3270 elif test "$withval" = no; then
10f2d63a 3271 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3272 elif test "$withval" = sys; then
3273 ac_cv_use_odbc='wxUSE_ODBC=sys'
3274 elif test "$withval" = builtin; then
3275 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3276 else
e6cc62c6
VS
3277 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3278echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3279 { (exit 1); exit 1; }; }
10f2d63a 3280 fi
e6cc62c6 3281
10f2d63a 3282else
e6cc62c6 3283
10f2d63a
VZ
3284 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3292
e6cc62c6 3293fi;
10f2d63a
VZ
3294
3295 eval "$ac_cv_use_odbc"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3301 echo "$as_me:$LINENO: result: yes" >&5
3302echo "${ECHO_T}yes" >&6
8647bec6 3303 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
8647bec6 3306 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3307 echo "$as_me:$LINENO: result: system version" >&5
3308echo "${ECHO_T}system version" >&6
8647bec6 3309 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3310 echo "$as_me:$LINENO: result: builtin version" >&5
3311echo "${ECHO_T}builtin version" >&6
8647bec6 3312 else
e6cc62c6
VS
3313 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3314echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3315 { (exit 1); exit 1; }; }
10f2d63a 3316 fi
e6cc62c6 3317
52127426 3318
672abd7a
VS
3319 echo "$as_me:$LINENO: checking for --with-expat" >&5
3320echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3321 no_cache=0
3322
3323# Check whether --with-expat or --without-expat was given.
3324if test "${with_expat+set}" = set; then
3325 withval="$with_expat"
3326
3327 if test "$withval" = yes; then
3328 ac_cv_use_expat='wxUSE_EXPAT=yes'
3329 elif test "$withval" = no; then
3330 ac_cv_use_expat='wxUSE_EXPAT=no'
3331 elif test "$withval" = sys; then
3332 ac_cv_use_expat='wxUSE_EXPAT=sys'
3333 elif test "$withval" = builtin; then
3334 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3335 else
3336 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3337echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3338 { (exit 1); exit 1; }; }
3339 fi
3340
3341else
3342
3343 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
3350 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3351
3352fi;
3353
3354 eval "$ac_cv_use_expat"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_EXPAT" = yes; then
3360 echo "$as_me:$LINENO: result: yes" >&5
3361echo "${ECHO_T}yes" >&6
3362 elif test "$wxUSE_EXPAT" = no; then
3363 echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365 elif test "$wxUSE_EXPAT" = sys; then
3366 echo "$as_me:$LINENO: result: system version" >&5
3367echo "${ECHO_T}system version" >&6
3368 elif test "$wxUSE_EXPAT" = builtin; then
3369 echo "$as_me:$LINENO: result: builtin version" >&5
3370echo "${ECHO_T}builtin version" >&6
3371 else
3372 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3373echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3374 { (exit 1); exit 1; }; }
3375 fi
3376
3377
8284b0c5
MB
3378
3379
5005acfe 3380 enablestring=
e6cc62c6
VS
3381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3382echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3383 no_cache=0
3384 # Check whether --enable-shared or --disable-shared was given.
3385if test "${enable_shared+set}" = set; then
3386 enableval="$enable_shared"
e6cc62c6 3387
10f2d63a
VZ
3388 if test "$enableval" = yes; then
3389 ac_cv_use_shared='wxUSE_SHARED=yes'
3390 else
3391 ac_cv_use_shared='wxUSE_SHARED=no'
3392 fi
e6cc62c6 3393
10f2d63a 3394else
e6cc62c6 3395
10f2d63a
VZ
3396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3404
e6cc62c6 3405fi;
10f2d63a
VZ
3406
3407 eval "$ac_cv_use_shared"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3413 echo "$as_me:$LINENO: result: yes" >&5
3414echo "${ECHO_T}yes" >&6
10f2d63a 3415 else
e6cc62c6
VS
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
10f2d63a 3418 fi
e6cc62c6 3419
10f2d63a 3420
5005acfe 3421 enablestring=
e6cc62c6
VS
3422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3423echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3424 no_cache=0
3425 # Check whether --enable-optimise or --disable-optimise was given.
3426if test "${enable_optimise+set}" = set; then
3427 enableval="$enable_optimise"
e6cc62c6 3428
10f2d63a
VZ
3429 if test "$enableval" = yes; then
3430 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3431 else
3432 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3433 fi
e6cc62c6 3434
10f2d63a 3435else
e6cc62c6 3436
10f2d63a
VZ
3437 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3438 if test "x$LINE" != x ; then
3439 eval "DEFAULT_$LINE"
3440 else
3441 no_cache=1
3442 fi
3443
3444 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3445
e6cc62c6 3446fi;
10f2d63a
VZ
3447
3448 eval "$ac_cv_use_optimise"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3454 echo "$as_me:$LINENO: result: yes" >&5
3455echo "${ECHO_T}yes" >&6
10f2d63a 3456 else
e6cc62c6
VS
3457 echo "$as_me:$LINENO: result: no" >&5
3458echo "${ECHO_T}no" >&6
10f2d63a 3459 fi
e6cc62c6 3460
10f2d63a 3461
5005acfe 3462 enablestring=
e6cc62c6
VS
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3464echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-debug or --disable-debug was given.
3467if test "${enable_debug+set}" = set; then
3468 enableval="$enable_debug"
e6cc62c6 3469
10f2d63a
VZ
3470 if test "$enableval" = yes; then
3471 ac_cv_use_debug='wxUSE_DEBUG=yes'
3472 else
3473 ac_cv_use_debug='wxUSE_DEBUG=no'
3474 fi
e6cc62c6 3475
10f2d63a 3476else
e6cc62c6 3477
10f2d63a
VZ
3478 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3486
e6cc62c6 3487fi;
10f2d63a
VZ
3488
3489 eval "$ac_cv_use_debug"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
10f2d63a 3497 else
e6cc62c6
VS
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
10f2d63a 3500 fi
e6cc62c6 3501
52127426 3502
df5168c4
MB
3503 enablestring=
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3505echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3506 no_cache=0
3507 # Check whether --enable-stl or --disable-stl was given.
3508if test "${enable_stl+set}" = set; then
3509 enableval="$enable_stl"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_stl='wxUSE_STL=yes'
3513 else
3514 ac_cv_use_stl='wxUSE_STL=no'
3515 fi
3516
3517else
3518
3519 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3527
3528fi;
3529
3530 eval "$ac_cv_use_stl"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_STL" = yes; then
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541 fi
3542
3543
10f2d63a
VZ
3544if test "$wxUSE_DEBUG" = "yes"; then
3545 DEFAULT_wxUSE_DEBUG_FLAG=yes
3546 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3547 BUILD=debug
10f2d63a
VZ
3548elif test "$wxUSE_DEBUG" = "no"; then
3549 DEFAULT_wxUSE_DEBUG_FLAG=no
3550 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3551 BUILD=release
10f2d63a
VZ
3552fi
3553
8284b0c5 3554
5005acfe 3555 enablestring=
e6cc62c6
VS
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3557echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3558 no_cache=0
3559 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3560if test "${enable_debug_flag+set}" = set; then
3561 enableval="$enable_debug_flag"
e6cc62c6 3562
10f2d63a
VZ
3563 if test "$enableval" = yes; then
3564 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3565 else
3566 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3567 fi
e6cc62c6 3568
10f2d63a 3569else
e6cc62c6 3570
10f2d63a
VZ
3571 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3579
e6cc62c6 3580fi;
10f2d63a
VZ
3581
3582 eval "$ac_cv_use_debug_flag"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3588 echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
10f2d63a 3590 else
e6cc62c6
VS
3591 echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
10f2d63a 3593 fi
e6cc62c6 3594
10f2d63a 3595
5005acfe 3596 enablestring=
e6cc62c6
VS
3597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3598echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3599 no_cache=0
3600 # Check whether --enable-debug_info or --disable-debug_info was given.
3601if test "${enable_debug_info+set}" = set; then
3602 enableval="$enable_debug_info"
e6cc62c6 3603
10f2d63a
VZ
3604 if test "$enableval" = yes; then
3605 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3606 else
3607 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3608 fi
e6cc62c6 3609
10f2d63a 3610else
e6cc62c6 3611
10f2d63a
VZ
3612 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3620
e6cc62c6 3621fi;
10f2d63a
VZ
3622
3623 eval "$ac_cv_use_debug_info"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3629 echo "$as_me:$LINENO: result: yes" >&5
3630echo "${ECHO_T}yes" >&6
10f2d63a 3631 else
e6cc62c6
VS
3632 echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
10f2d63a 3634 fi
e6cc62c6 3635
10f2d63a 3636
5005acfe 3637 enablestring=
e6cc62c6
VS
3638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3639echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3640 no_cache=0
3641 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3642if test "${enable_debug_gdb+set}" = set; then
3643 enableval="$enable_debug_gdb"
e6cc62c6 3644
10f2d63a
VZ
3645 if test "$enableval" = yes; then
3646 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3647 else
3648 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3649 fi
e6cc62c6 3650
10f2d63a 3651else
e6cc62c6 3652
10f2d63a
VZ
3653 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
3660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3661
e6cc62c6 3662fi;
10f2d63a
VZ
3663
3664 eval "$ac_cv_use_debug_gdb"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3670 echo "$as_me:$LINENO: result: yes" >&5
3671echo "${ECHO_T}yes" >&6
10f2d63a 3672 else
e6cc62c6
VS
3673 echo "$as_me:$LINENO: result: no" >&5
3674echo "${ECHO_T}no" >&6
10f2d63a 3675 fi
e6cc62c6 3676
10f2d63a 3677
5005acfe 3678 enablestring=
e6cc62c6
VS
3679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3680echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3681 no_cache=0
3682 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3683if test "${enable_debug_cntxt+set}" = set; then
3684 enableval="$enable_debug_cntxt"
e6cc62c6 3685
10f2d63a
VZ
3686 if test "$enableval" = yes; then
3687 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3688 else
3689 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3690 fi
e6cc62c6 3691
10f2d63a 3692else
e6cc62c6 3693
10f2d63a
VZ
3694 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3702
e6cc62c6 3703fi;
10f2d63a
VZ
3704
3705 eval "$ac_cv_use_debug_cntxt"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3711 echo "$as_me:$LINENO: result: yes" >&5
3712echo "${ECHO_T}yes" >&6
10f2d63a 3713 else
e6cc62c6
VS
3714 echo "$as_me:$LINENO: result: no" >&5
3715echo "${ECHO_T}no" >&6
10f2d63a 3716 fi
e6cc62c6 3717
10f2d63a 3718
5005acfe 3719 enablestring=
e6cc62c6
VS
3720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3721echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3722 no_cache=0
3723 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3724if test "${enable_mem_tracing+set}" = set; then
3725 enableval="$enable_mem_tracing"
e6cc62c6 3726
10f2d63a
VZ
3727 if test "$enableval" = yes; then
3728 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3729 else
3730 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3731 fi
e6cc62c6 3732
10f2d63a 3733else
e6cc62c6 3734
10f2d63a
VZ
3735 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3743
e6cc62c6 3744fi;
10f2d63a
VZ
3745
3746 eval "$ac_cv_use_mem_tracing"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3752 echo "$as_me:$LINENO: result: yes" >&5
3753echo "${ECHO_T}yes" >&6
10f2d63a 3754 else
e6cc62c6
VS
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
10f2d63a 3757 fi
e6cc62c6 3758
10f2d63a 3759
5005acfe 3760 enablestring=
e6cc62c6
VS
3761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3762echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3763 no_cache=0
3764 # Check whether --enable-profile or --disable-profile was given.
3765if test "${enable_profile+set}" = set; then
3766 enableval="$enable_profile"
e6cc62c6 3767
10f2d63a
VZ
3768 if test "$enableval" = yes; then
3769 ac_cv_use_profile='wxUSE_PROFILE=yes'
3770 else
3771 ac_cv_use_profile='wxUSE_PROFILE=no'
3772 fi
e6cc62c6 3773
10f2d63a 3774else
e6cc62c6 3775
10f2d63a
VZ
3776 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3784
e6cc62c6 3785fi;
10f2d63a
VZ
3786
3787 eval "$ac_cv_use_profile"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3793 echo "$as_me:$LINENO: result: yes" >&5
3794echo "${ECHO_T}yes" >&6
10f2d63a 3795 else
e6cc62c6
VS
3796 echo "$as_me:$LINENO: result: no" >&5
3797echo "${ECHO_T}no" >&6
10f2d63a 3798 fi
e6cc62c6 3799
10f2d63a 3800
5005acfe 3801 enablestring=
e6cc62c6
VS
3802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3803echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3804 no_cache=0
3805 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3806if test "${enable_no_rtti+set}" = set; then
3807 enableval="$enable_no_rtti"
e6cc62c6 3808
10f2d63a
VZ
3809 if test "$enableval" = yes; then
3810 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3811 else
3812 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3813 fi
e6cc62c6 3814
10f2d63a 3815else
e6cc62c6 3816
10f2d63a
VZ
3817 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3825
e6cc62c6 3826fi;
10f2d63a
VZ
3827
3828 eval "$ac_cv_use_no_rtti"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3834 echo "$as_me:$LINENO: result: yes" >&5
3835echo "${ECHO_T}yes" >&6
10f2d63a 3836 else
e6cc62c6
VS
3837 echo "$as_me:$LINENO: result: no" >&5
3838echo "${ECHO_T}no" >&6
10f2d63a 3839 fi
e6cc62c6 3840
10f2d63a 3841
5005acfe 3842 enablestring=
e6cc62c6
VS
3843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3844echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3845 no_cache=0
3846 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3847if test "${enable_no_exceptions+set}" = set; then
3848 enableval="$enable_no_exceptions"
e6cc62c6 3849
10f2d63a
VZ
3850 if test "$enableval" = yes; then
3851 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3852 else
3853 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3854 fi
e6cc62c6 3855
10f2d63a 3856else
e6cc62c6 3857
10f2d63a
VZ
3858 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3866
e6cc62c6 3867fi;
10f2d63a
VZ
3868
3869 eval "$ac_cv_use_no_exceptions"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3875 echo "$as_me:$LINENO: result: yes" >&5
3876echo "${ECHO_T}yes" >&6
10f2d63a 3877 else
e6cc62c6
VS
3878 echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
10f2d63a 3880 fi
e6cc62c6 3881
10f2d63a 3882
5005acfe 3883 enablestring=
e6cc62c6
VS
3884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3885echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3886 no_cache=0
3887 # Check whether --enable-permissive or --disable-permissive was given.
3888if test "${enable_permissive+set}" = set; then
3889 enableval="$enable_permissive"
e6cc62c6 3890
10f2d63a
VZ
3891 if test "$enableval" = yes; then
3892 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3893 else
3894 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3895 fi
e6cc62c6 3896
10f2d63a 3897else
e6cc62c6 3898
10f2d63a
VZ
3899 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3900 if test "x$LINE" != x ; then
3901 eval "DEFAULT_$LINE"
3902 else
3903 no_cache=1
3904 fi
3905
3906 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3907
e6cc62c6 3908fi;
10f2d63a
VZ
3909
3910 eval "$ac_cv_use_permissive"
3911 if test "$no_cache" != 1; then
3912 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3913 fi
3914
3915 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3916 echo "$as_me:$LINENO: result: yes" >&5
3917echo "${ECHO_T}yes" >&6
10f2d63a 3918 else
e6cc62c6
VS
3919 echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
10f2d63a 3921 fi
e6cc62c6 3922
10f2d63a 3923
5005acfe 3924 enablestring=
e6cc62c6
VS
3925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3926echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3927 no_cache=0
3928 # Check whether --enable-no_deps or --disable-no_deps was given.
3929if test "${enable_no_deps+set}" = set; then
3930 enableval="$enable_no_deps"
e6cc62c6 3931
10f2d63a
VZ
3932 if test "$enableval" = yes; then
3933 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3934 else
3935 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3936 fi
e6cc62c6 3937
10f2d63a 3938else
e6cc62c6 3939
10f2d63a
VZ
3940 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3941 if test "x$LINE" != x ; then
3942 eval "DEFAULT_$LINE"
3943 else
3944 no_cache=1
3945 fi
3946
3947 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3948
e6cc62c6 3949fi;
10f2d63a
VZ
3950
3951 eval "$ac_cv_use_no_deps"
3952 if test "$no_cache" != 1; then
3953 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3954 fi
3955
3956 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3957 echo "$as_me:$LINENO: result: yes" >&5
3958echo "${ECHO_T}yes" >&6
10f2d63a 3959 else
e6cc62c6
VS
3960 echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
10f2d63a 3962 fi
e6cc62c6 3963
52127426 3964
8284b0c5 3965
65d8ef1e 3966 enablestring=
e6cc62c6
VS
3967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3968echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3969 no_cache=0
3970 # Check whether --enable-compat22 or --disable-compat22 was given.
3971if test "${enable_compat22+set}" = set; then
3972 enableval="$enable_compat22"
e6cc62c6 3973
54276ccf
VZ
3974 if test "$enableval" = yes; then
3975 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3976 else
3977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3978 fi
e6cc62c6 3979
54276ccf 3980else
e6cc62c6 3981
54276ccf
VZ
3982 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3990
e6cc62c6 3991fi;
54276ccf
VZ
3992
3993 eval "$ac_cv_use_compat22"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3999 echo "$as_me:$LINENO: result: yes" >&5
4000echo "${ECHO_T}yes" >&6
54276ccf 4001 else
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
54276ccf 4004 fi
e6cc62c6 4005
54276ccf 4006
65d8ef1e 4007 enablestring=disable
e6cc62c6
VS
4008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4009echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
4010 no_cache=0
4011 # Check whether --enable-compat24 or --disable-compat24 was given.
4012if test "${enable_compat24+set}" = set; then
4013 enableval="$enable_compat24"
e6cc62c6 4014
65d8ef1e
VS
4015 if test "$enableval" = yes; then
4016 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4017 else
4018 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4019 fi
e6cc62c6 4020
65d8ef1e 4021else
e6cc62c6 4022
65d8ef1e
VS
4023 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 4031
e6cc62c6 4032fi;
65d8ef1e
VS
4033
4034 eval "$ac_cv_use_compat24"
4035 if test "$no_cache" != 1; then
4036 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4037 fi
4038
4039 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
4040 echo "$as_me:$LINENO: result: yes" >&5
4041echo "${ECHO_T}yes" >&6
65d8ef1e 4042 else
e6cc62c6
VS
4043 echo "$as_me:$LINENO: result: no" >&5
4044echo "${ECHO_T}no" >&6
65d8ef1e 4045 fi
e6cc62c6 4046
65d8ef1e 4047
3bd8fb5f
RD
4048# Check whether --enable-rpath or --disable-rpath was given.
4049if test "${enable_rpath+set}" = set; then
4050 enableval="$enable_rpath"
4051 wxRPATH_DIR="$enableval"
e6cc62c6 4052fi;
3bd8fb5f
RD
4053
4054if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4055 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4056fi
4057
8284b0c5
MB
4058
4059
4060
5005acfe 4061 enablestring=
e6cc62c6
VS
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
4064 no_cache=0
4065 # Check whether --enable-intl or --disable-intl was given.
4066if test "${enable_intl+set}" = set; then
4067 enableval="$enable_intl"
e6cc62c6 4068
10f2d63a
VZ
4069 if test "$enableval" = yes; then
4070 ac_cv_use_intl='wxUSE_INTL=yes'
4071 else
4072 ac_cv_use_intl='wxUSE_INTL=no'
4073 fi
e6cc62c6 4074
10f2d63a 4075else
e6cc62c6 4076
10f2d63a
VZ
4077 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4085
e6cc62c6 4086fi;
10f2d63a
VZ
4087
4088 eval "$ac_cv_use_intl"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
10f2d63a 4096 else
e6cc62c6
VS
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
10f2d63a 4099 fi
e6cc62c6 4100
10f2d63a 4101
5005acfe 4102 enablestring=
e6cc62c6
VS
4103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4104echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4105 no_cache=0
4106 # Check whether --enable-config or --disable-config was given.
4107if test "${enable_config+set}" = set; then
4108 enableval="$enable_config"
e6cc62c6 4109
10f2d63a
VZ
4110 if test "$enableval" = yes; then
4111 ac_cv_use_config='wxUSE_CONFIG=yes'
4112 else
4113 ac_cv_use_config='wxUSE_CONFIG=no'
4114 fi
e6cc62c6 4115
10f2d63a 4116else
e6cc62c6 4117
10f2d63a
VZ
4118 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4126
e6cc62c6 4127fi;
10f2d63a
VZ
4128
4129 eval "$ac_cv_use_config"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4135 echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
10f2d63a 4137 else
e6cc62c6
VS
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
10f2d63a 4140 fi
e6cc62c6 4141
52127426 4142
8284b0c5 4143
5005acfe 4144 enablestring=
e6cc62c6
VS
4145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4146echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4147 no_cache=0
4148 # Check whether --enable-protocols or --disable-protocols was given.
4149if test "${enable_protocols+set}" = set; then
4150 enableval="$enable_protocols"
e6cc62c6 4151
a1622950
VZ
4152 if test "$enableval" = yes; then
4153 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4154 else
4155 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4156 fi
e6cc62c6 4157
a1622950 4158else
e6cc62c6 4159
a1622950
VZ
4160 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4168
e6cc62c6 4169fi;
a1622950
VZ
4170
4171 eval "$ac_cv_use_protocols"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4177 echo "$as_me:$LINENO: result: yes" >&5
4178echo "${ECHO_T}yes" >&6
a1622950 4179 else
e6cc62c6
VS
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
a1622950 4182 fi
e6cc62c6 4183
a1622950 4184
5005acfe 4185 enablestring=
e6cc62c6
VS
4186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4187echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4188 no_cache=0
4189 # Check whether --enable-ftp or --disable-ftp was given.
4190if test "${enable_ftp+set}" = set; then
4191 enableval="$enable_ftp"
e6cc62c6 4192
a1622950
VZ
4193 if test "$enableval" = yes; then
4194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4195 else
4196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4197 fi
e6cc62c6 4198
a1622950 4199else
e6cc62c6 4200
a1622950
VZ
4201 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4209
e6cc62c6 4210fi;
a1622950
VZ
4211
4212 eval "$ac_cv_use_ftp"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4218 echo "$as_me:$LINENO: result: yes" >&5
4219echo "${ECHO_T}yes" >&6
a1622950 4220 else
e6cc62c6
VS
4221 echo "$as_me:$LINENO: result: no" >&5
4222echo "${ECHO_T}no" >&6
a1622950 4223 fi
e6cc62c6 4224
a1622950 4225
5005acfe 4226 enablestring=
e6cc62c6
VS
4227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4228echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4229 no_cache=0
4230 # Check whether --enable-http or --disable-http was given.
4231if test "${enable_http+set}" = set; then
4232 enableval="$enable_http"
e6cc62c6 4233
a1622950
VZ
4234 if test "$enableval" = yes; then
4235 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4236 else
4237 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4238 fi
e6cc62c6 4239
a1622950 4240else
e6cc62c6 4241
a1622950
VZ
4242 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4250
e6cc62c6 4251fi;
a1622950
VZ
4252
4253 eval "$ac_cv_use_http"
4254 if test "$no_cache" != 1; then
4255 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4256 fi
4257
4258 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4259 echo "$as_me:$LINENO: result: yes" >&5
4260echo "${ECHO_T}yes" >&6
a1622950 4261 else
e6cc62c6
VS
4262 echo "$as_me:$LINENO: result: no" >&5
4263echo "${ECHO_T}no" >&6
a1622950 4264 fi
e6cc62c6 4265
a1622950 4266
5005acfe 4267 enablestring=
e6cc62c6
VS
4268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4269echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4270 no_cache=0
4271 # Check whether --enable-fileproto or --disable-fileproto was given.
4272if test "${enable_fileproto+set}" = set; then
4273 enableval="$enable_fileproto"
e6cc62c6 4274
a1622950
VZ
4275 if test "$enableval" = yes; then
4276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4277 else
4278 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4279 fi
e6cc62c6 4280
a1622950 4281else
e6cc62c6 4282
a1622950
VZ
4283 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4291
e6cc62c6 4292fi;
a1622950
VZ
4293
4294 eval "$ac_cv_use_fileproto"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4300 echo "$as_me:$LINENO: result: yes" >&5
4301echo "${ECHO_T}yes" >&6
a1622950 4302 else
e6cc62c6
VS
4303 echo "$as_me:$LINENO: result: no" >&5
4304echo "${ECHO_T}no" >&6
a1622950 4305 fi
e6cc62c6 4306
a1622950 4307
5005acfe 4308 enablestring=
e6cc62c6
VS
4309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4310echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4311 no_cache=0
4312 # Check whether --enable-sockets or --disable-sockets was given.
4313if test "${enable_sockets+set}" = set; then
4314 enableval="$enable_sockets"
e6cc62c6 4315
10f2d63a
VZ
4316 if test "$enableval" = yes; then
4317 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4318 else
4319 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4320 fi
e6cc62c6 4321
10f2d63a 4322else
e6cc62c6 4323
10f2d63a
VZ
4324 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4332
e6cc62c6 4333fi;
10f2d63a
VZ
4334
4335 eval "$ac_cv_use_sockets"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4341 echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6
10f2d63a 4343 else
e6cc62c6
VS
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
10f2d63a 4346 fi
e6cc62c6 4347
8284b0c5 4348
5005acfe 4349 enablestring=
e6cc62c6
VS
4350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4351echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4352 no_cache=0
4353 # Check whether --enable-ole or --disable-ole was given.
4354if test "${enable_ole+set}" = set; then
4355 enableval="$enable_ole"
e6cc62c6 4356
3bce6687
JS
4357 if test "$enableval" = yes; then
4358 ac_cv_use_ole='wxUSE_OLE=yes'
4359 else
4360 ac_cv_use_ole='wxUSE_OLE=no'
4361 fi
e6cc62c6 4362
3bce6687 4363else
e6cc62c6 4364
3bce6687
JS
4365 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4373
e6cc62c6 4374fi;
3bce6687
JS
4375
4376 eval "$ac_cv_use_ole"
4377 if test "$no_cache" != 1; then
4378 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4379 fi
4380
4381 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4382 echo "$as_me:$LINENO: result: yes" >&5
4383echo "${ECHO_T}yes" >&6
3bce6687 4384 else
e6cc62c6
VS
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
3bce6687 4387 fi
e6cc62c6 4388
3bce6687 4389
5005acfe 4390 enablestring=
e6cc62c6
VS
4391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4392echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4393 no_cache=0
4394 # Check whether --enable-dataobj or --disable-dataobj was given.
4395if test "${enable_dataobj+set}" = set; then
4396 enableval="$enable_dataobj"
e6cc62c6 4397
3bce6687
JS
4398 if test "$enableval" = yes; then
4399 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4400 else
4401 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4402 fi
e6cc62c6 4403
3bce6687 4404else
e6cc62c6 4405
3bce6687
JS
4406 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4414
e6cc62c6 4415fi;
3bce6687
JS
4416
4417 eval "$ac_cv_use_dataobj"
4418 if test "$no_cache" != 1; then
4419 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4420 fi
4421
4422 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4423 echo "$as_me:$LINENO: result: yes" >&5
4424echo "${ECHO_T}yes" >&6
3bce6687 4425 else
e6cc62c6
VS
4426 echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6
3bce6687 4428 fi
e6cc62c6 4429
3bce6687 4430
52127426 4431
5005acfe 4432 enablestring=
e6cc62c6
VS
4433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4434echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4435 no_cache=0
eb4efbdc
VZ
4436 # Check whether --enable-ipc or --disable-ipc was given.
4437if test "${enable_ipc+set}" = set; then
4438 enableval="$enable_ipc"
e6cc62c6 4439
10f2d63a 4440 if test "$enableval" = yes; then
eb4efbdc 4441 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4442 else
eb4efbdc 4443 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4444 fi
e6cc62c6 4445
10f2d63a 4446else
e6cc62c6 4447
eb4efbdc 4448 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
eb4efbdc 4455 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4456
e6cc62c6 4457fi;
10f2d63a 4458
eb4efbdc 4459 eval "$ac_cv_use_ipc"
10f2d63a 4460 if test "$no_cache" != 1; then
eb4efbdc 4461 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4462 fi
4463
eb4efbdc 4464 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4465 echo "$as_me:$LINENO: result: yes" >&5
4466echo "${ECHO_T}yes" >&6
10f2d63a 4467 else
e6cc62c6
VS
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
10f2d63a 4470 fi
e6cc62c6 4471
52127426 4472
8284b0c5 4473
5005acfe 4474 enablestring=
e46d2a18
VS
4475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4476echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4477 no_cache=0
e46d2a18
VS
4478 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4479if test "${enable_apple_ieee+set}" = set; then
4480 enableval="$enable_apple_ieee"
e6cc62c6 4481
10f2d63a 4482 if test "$enableval" = yes; then
e46d2a18 4483 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4484 else
e46d2a18 4485 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4486 fi
e6cc62c6 4487
10f2d63a 4488else
e6cc62c6 4489
e46d2a18 4490 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4491 if test "x$LINE" != x ; then
4492 eval "DEFAULT_$LINE"
4493 else
4494 no_cache=1
4495 fi
4496
e46d2a18 4497 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4498
e6cc62c6 4499fi;
10f2d63a 4500
e46d2a18 4501 eval "$ac_cv_use_apple_ieee"
10f2d63a 4502 if test "$no_cache" != 1; then
e46d2a18 4503 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4504 fi
4505
e46d2a18 4506 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4507 echo "$as_me:$LINENO: result: yes" >&5
4508echo "${ECHO_T}yes" >&6
10f2d63a 4509 else
e6cc62c6
VS
4510 echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6
10f2d63a 4512 fi
e6cc62c6 4513
10f2d63a 4514
5005acfe 4515 enablestring=
e46d2a18
VS
4516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4517echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4518 no_cache=0
e46d2a18
VS
4519 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4520if test "${enable_catch_segvs+set}" = set; then
4521 enableval="$enable_catch_segvs"
e6cc62c6 4522
10f2d63a 4523 if test "$enableval" = yes; then
e46d2a18 4524 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4525 else
e46d2a18 4526 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4527 fi
e6cc62c6 4528
10f2d63a 4529else
e6cc62c6 4530
e46d2a18 4531 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
e46d2a18 4538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4539
e6cc62c6 4540fi;
10f2d63a 4541
e46d2a18 4542 eval "$ac_cv_use_catch_segvs"
10f2d63a 4543 if test "$no_cache" != 1; then
e46d2a18 4544 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4545 fi
4546
e46d2a18 4547 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4548 echo "$as_me:$LINENO: result: yes" >&5
4549echo "${ECHO_T}yes" >&6
10f2d63a 4550 else
e6cc62c6
VS
4551 echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6
10f2d63a 4553 fi
e6cc62c6 4554
10f2d63a 4555
5005acfe 4556 enablestring=
e46d2a18
VS
4557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4558echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4559 no_cache=0
e46d2a18
VS
4560 # Check whether --enable-cmdline or --disable-cmdline was given.
4561if test "${enable_cmdline+set}" = set; then
4562 enableval="$enable_cmdline"
e6cc62c6 4563
10f2d63a 4564 if test "$enableval" = yes; then
e46d2a18 4565 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4566 else
e46d2a18 4567 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4568 fi
e6cc62c6 4569
10f2d63a 4570else
e6cc62c6 4571
e46d2a18 4572 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4573 if test "x$LINE" != x ; then
4574 eval "DEFAULT_$LINE"
4575 else
4576 no_cache=1
4577 fi
4578
e46d2a18 4579 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4580
e6cc62c6 4581fi;
10f2d63a 4582
e46d2a18 4583 eval "$ac_cv_use_cmdline"
10f2d63a 4584 if test "$no_cache" != 1; then
e46d2a18 4585 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4586 fi
4587
e46d2a18 4588 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4589 echo "$as_me:$LINENO: result: yes" >&5
4590echo "${ECHO_T}yes" >&6
10f2d63a 4591 else
e6cc62c6
VS
4592 echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
10f2d63a 4594 fi
e6cc62c6 4595
10f2d63a 4596
5005acfe 4597 enablestring=
e46d2a18
VS
4598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4599echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4600 no_cache=0
e46d2a18
VS
4601 # Check whether --enable-datetime or --disable-datetime was given.
4602if test "${enable_datetime+set}" = set; then
4603 enableval="$enable_datetime"
e6cc62c6 4604
10f2d63a 4605 if test "$enableval" = yes; then
e46d2a18 4606 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4607 else
e46d2a18 4608 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4609 fi
e6cc62c6 4610
10f2d63a 4611else
e6cc62c6 4612
e46d2a18 4613 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
e46d2a18 4620 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4621
e6cc62c6 4622fi;
10f2d63a 4623
e46d2a18 4624 eval "$ac_cv_use_datetime"
10f2d63a 4625 if test "$no_cache" != 1; then
e46d2a18 4626 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4627 fi
4628
e46d2a18 4629 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4630 echo "$as_me:$LINENO: result: yes" >&5
4631echo "${ECHO_T}yes" >&6
10f2d63a 4632 else
e6cc62c6
VS
4633 echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6
10f2d63a 4635 fi
e6cc62c6 4636
10f2d63a 4637
5005acfe 4638 enablestring=
e46d2a18
VS
4639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4640echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4641 no_cache=0
e46d2a18
VS
4642 # Check whether --enable-dialupman or --disable-dialupman was given.
4643if test "${enable_dialupman+set}" = set; then
4644 enableval="$enable_dialupman"
e6cc62c6 4645
10f2d63a 4646 if test "$enableval" = yes; then
e46d2a18 4647 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4648 else
e46d2a18 4649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4650 fi
e6cc62c6 4651
10f2d63a 4652else
e6cc62c6 4653
e46d2a18 4654 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4655 if test "x$LINE" != x ; then
4656 eval "DEFAULT_$LINE"
4657 else
4658 no_cache=1
4659 fi
4660
e46d2a18 4661 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4662
e6cc62c6 4663fi;
10f2d63a 4664
e46d2a18 4665 eval "$ac_cv_use_dialupman"
10f2d63a 4666 if test "$no_cache" != 1; then
e46d2a18 4667 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4668 fi
4669
e46d2a18 4670 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4671 echo "$as_me:$LINENO: result: yes" >&5
4672echo "${ECHO_T}yes" >&6
10f2d63a 4673 else
e6cc62c6
VS
4674 echo "$as_me:$LINENO: result: no" >&5
4675echo "${ECHO_T}no" >&6
10f2d63a 4676 fi
e6cc62c6 4677
10f2d63a 4678
5005acfe 4679 enablestring=
e6cc62c6
VS
4680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4681echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4682 no_cache=0
4683 # Check whether --enable-dynlib or --disable-dynlib was given.
4684if test "${enable_dynlib+set}" = set; then
4685 enableval="$enable_dynlib"
e6cc62c6 4686
10f2d63a
VZ
4687 if test "$enableval" = yes; then
4688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4689 else
4690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4691 fi
e6cc62c6 4692
10f2d63a 4693else
e6cc62c6 4694
10f2d63a
VZ
4695 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4703
e6cc62c6 4704fi;
10f2d63a
VZ
4705
4706 eval "$ac_cv_use_dynlib"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4712 echo "$as_me:$LINENO: result: yes" >&5
4713echo "${ECHO_T}yes" >&6
10f2d63a 4714 else
e6cc62c6
VS
4715 echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
10f2d63a 4717 fi
e6cc62c6 4718
10f2d63a 4719
5005acfe 4720 enablestring=
e6cc62c6
VS
4721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4722echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4723 no_cache=0
4724 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4725if test "${enable_dynamicloader+set}" = set; then
4726 enableval="$enable_dynamicloader"
e6cc62c6 4727
0b9ab0bd
RL
4728 if test "$enableval" = yes; then
4729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4730 else
4731 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4732 fi
e6cc62c6 4733
0b9ab0bd 4734else
e6cc62c6 4735
0b9ab0bd
RL
4736 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4744
e6cc62c6 4745fi;
0b9ab0bd
RL
4746
4747 eval "$ac_cv_use_dynamicloader"
4748 if test "$no_cache" != 1; then
4749 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4750 fi
4751
4752 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4753 echo "$as_me:$LINENO: result: yes" >&5
4754echo "${ECHO_T}yes" >&6
0b9ab0bd 4755 else
e6cc62c6
VS
4756 echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6
0b9ab0bd 4758 fi
e6cc62c6 4759
0b9ab0bd 4760
5005acfe 4761 enablestring=
e46d2a18
VS
4762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4763echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4764 no_cache=0
e46d2a18
VS
4765 # Check whether --enable-exceptions or --disable-exceptions was given.
4766if test "${enable_exceptions+set}" = set; then
4767 enableval="$enable_exceptions"
e6cc62c6 4768
10f2d63a 4769 if test "$enableval" = yes; then
e46d2a18 4770 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4771 else
e46d2a18 4772 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4773 fi
e6cc62c6 4774
10f2d63a 4775else
e6cc62c6 4776
e46d2a18 4777 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
e46d2a18 4784 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4785
e6cc62c6 4786fi;
10f2d63a 4787
e46d2a18 4788 eval "$ac_cv_use_exceptions"
10f2d63a 4789 if test "$no_cache" != 1; then
e46d2a18 4790 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4791 fi
4792
e46d2a18 4793 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4794 echo "$as_me:$LINENO: result: yes" >&5
4795echo "${ECHO_T}yes" >&6
10f2d63a 4796 else
e6cc62c6
VS
4797 echo "$as_me:$LINENO: result: no" >&5
4798echo "${ECHO_T}no" >&6
10f2d63a 4799 fi
e6cc62c6 4800
10f2d63a 4801
5005acfe 4802 enablestring=
e46d2a18
VS
4803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4804echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4805 no_cache=0
e46d2a18
VS
4806 # Check whether --enable-ffile or --disable-ffile was given.
4807if test "${enable_ffile+set}" = set; then
4808 enableval="$enable_ffile"
e6cc62c6 4809
e8f65ba6 4810 if test "$enableval" = yes; then
e46d2a18 4811 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4812 else
e46d2a18 4813 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4814 fi
e6cc62c6 4815
e8f65ba6 4816else
e6cc62c6 4817
e46d2a18 4818 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4819 if test "x$LINE" != x ; then
4820 eval "DEFAULT_$LINE"
4821 else
4822 no_cache=1
4823 fi
4824
e46d2a18 4825 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4826
e6cc62c6 4827fi;
e8f65ba6 4828
e46d2a18 4829 eval "$ac_cv_use_ffile"
e8f65ba6 4830 if test "$no_cache" != 1; then
e46d2a18 4831 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4832 fi
4833
e46d2a18 4834 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4835 echo "$as_me:$LINENO: result: yes" >&5
4836echo "${ECHO_T}yes" >&6
e8f65ba6 4837 else
e6cc62c6
VS
4838 echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
e8f65ba6 4840 fi
e6cc62c6 4841
e8f65ba6 4842
5005acfe 4843 enablestring=
e46d2a18
VS
4844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4845echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4846 no_cache=0
e46d2a18
VS
4847 # Check whether --enable-file or --disable-file was given.
4848if test "${enable_file+set}" = set; then
4849 enableval="$enable_file"
e6cc62c6 4850
10f2d63a 4851 if test "$enableval" = yes; then
e46d2a18 4852 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4853 else
e46d2a18 4854 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4855 fi
e6cc62c6 4856
10f2d63a 4857else
e6cc62c6 4858
e46d2a18 4859 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
e46d2a18 4866 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4867
e6cc62c6 4868fi;
10f2d63a 4869
e46d2a18 4870 eval "$ac_cv_use_file"
10f2d63a 4871 if test "$no_cache" != 1; then
e46d2a18 4872 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4873 fi
4874
e46d2a18 4875 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4876 echo "$as_me:$LINENO: result: yes" >&5
4877echo "${ECHO_T}yes" >&6
10f2d63a 4878 else
e6cc62c6
VS
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
10f2d63a 4881 fi
e6cc62c6 4882
10f2d63a 4883
5005acfe 4884 enablestring=
e46d2a18
VS
4885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4886echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4887 no_cache=0
e46d2a18
VS
4888 # Check whether --enable-filesystem or --disable-filesystem was given.
4889if test "${enable_filesystem+set}" = set; then
4890 enableval="$enable_filesystem"
e6cc62c6 4891
10f2d63a 4892 if test "$enableval" = yes; then
e46d2a18 4893 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4894 else
e46d2a18 4895 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4896 fi
e6cc62c6 4897
10f2d63a 4898else
e6cc62c6 4899
e46d2a18 4900 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
e46d2a18 4907 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4908
e6cc62c6 4909fi;
10f2d63a 4910
e46d2a18 4911 eval "$ac_cv_use_filesystem"
10f2d63a 4912 if test "$no_cache" != 1; then
e46d2a18 4913 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4914 fi
4915
e46d2a18 4916 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4917 echo "$as_me:$LINENO: result: yes" >&5
4918echo "${ECHO_T}yes" >&6
10f2d63a 4919 else
e6cc62c6
VS
4920 echo "$as_me:$LINENO: result: no" >&5
4921echo "${ECHO_T}no" >&6
10f2d63a 4922 fi
e6cc62c6 4923
10f2d63a 4924
5005acfe 4925 enablestring=
e46d2a18
VS
4926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4927echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4928 no_cache=0
e46d2a18
VS
4929 # Check whether --enable-fontmap or --disable-fontmap was given.
4930if test "${enable_fontmap+set}" = set; then
4931 enableval="$enable_fontmap"
e6cc62c6 4932
10f2d63a 4933 if test "$enableval" = yes; then
e46d2a18 4934 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4935 else
e46d2a18 4936 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4937 fi
e6cc62c6 4938
10f2d63a 4939else
e6cc62c6 4940
e46d2a18 4941 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
e46d2a18 4948 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4949
e6cc62c6 4950fi;
10f2d63a 4951
e46d2a18 4952 eval "$ac_cv_use_fontmap"
10f2d63a 4953 if test "$no_cache" != 1; then
e46d2a18 4954 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4955 fi
4956
e46d2a18 4957 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4958 echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6
10f2d63a 4960 else
e6cc62c6
VS
4961 echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
10f2d63a 4963 fi
e6cc62c6 4964
10f2d63a 4965
5005acfe 4966 enablestring=
e46d2a18
VS
4967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4968echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4969 no_cache=0
e46d2a18
VS
4970 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4971if test "${enable_fs_inet+set}" = set; then
4972 enableval="$enable_fs_inet"
e6cc62c6 4973
10f2d63a 4974 if test "$enableval" = yes; then
e46d2a18 4975 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4976 else
e46d2a18 4977 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4978 fi
e6cc62c6 4979
10f2d63a 4980else
e6cc62c6 4981
e46d2a18 4982 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
e46d2a18 4989 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4990
e6cc62c6 4991fi;
10f2d63a 4992
e46d2a18 4993 eval "$ac_cv_use_fs_inet"
10f2d63a 4994 if test "$no_cache" != 1; then
e46d2a18 4995 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4996 fi
4997
e46d2a18 4998 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4999 echo "$as_me:$LINENO: result: yes" >&5
5000echo "${ECHO_T}yes" >&6
10f2d63a 5001 else
e6cc62c6
VS
5002 echo "$as_me:$LINENO: result: no" >&5
5003echo "${ECHO_T}no" >&6
10f2d63a 5004 fi
e6cc62c6 5005
10f2d63a 5006
5005acfe 5007 enablestring=
e46d2a18
VS
5008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5009echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 5010 no_cache=0
e46d2a18
VS
5011 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5012if test "${enable_fs_zip+set}" = set; then
5013 enableval="$enable_fs_zip"
e6cc62c6 5014
a3a584a7 5015 if test "$enableval" = yes; then
e46d2a18 5016 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 5017 else
e46d2a18 5018 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 5019 fi
e6cc62c6 5020
a3a584a7 5021else
e6cc62c6 5022
e46d2a18 5023 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
5024 if test "x$LINE" != x ; then
5025 eval "DEFAULT_$LINE"
5026 else
5027 no_cache=1
5028 fi
5029
e46d2a18 5030 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 5031
e6cc62c6 5032fi;
a3a584a7 5033
e46d2a18 5034 eval "$ac_cv_use_fs_zip"
a3a584a7 5035 if test "$no_cache" != 1; then
e46d2a18 5036 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
5037 fi
5038
e46d2a18 5039 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5040 echo "$as_me:$LINENO: result: yes" >&5
5041echo "${ECHO_T}yes" >&6
a3a584a7 5042 else
e6cc62c6
VS
5043 echo "$as_me:$LINENO: result: no" >&5
5044echo "${ECHO_T}no" >&6
a3a584a7 5045 fi
e6cc62c6 5046
a3a584a7 5047
5005acfe 5048 enablestring=
e46d2a18
VS
5049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5050echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 5051 no_cache=0
e46d2a18
VS
5052 # Check whether --enable-geometry or --disable-geometry was given.
5053if test "${enable_geometry+set}" = set; then
5054 enableval="$enable_geometry"
e6cc62c6 5055
10f2d63a 5056 if test "$enableval" = yes; then
e46d2a18 5057 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 5058 else
e46d2a18 5059 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 5060 fi
e6cc62c6 5061
10f2d63a 5062else
e6cc62c6 5063
e46d2a18 5064 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
5065 if test "x$LINE" != x ; then
5066 eval "DEFAULT_$LINE"
5067 else
5068 no_cache=1
5069 fi
5070
e46d2a18 5071 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5072
e6cc62c6 5073fi;
10f2d63a 5074
e46d2a18 5075 eval "$ac_cv_use_geometry"
10f2d63a 5076 if test "$no_cache" != 1; then
e46d2a18 5077 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5078 fi
5079
e46d2a18 5080 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5081 echo "$as_me:$LINENO: result: yes" >&5
5082echo "${ECHO_T}yes" >&6
10f2d63a 5083 else
e6cc62c6
VS
5084 echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
10f2d63a 5086 fi
e6cc62c6 5087
10f2d63a 5088
5005acfe 5089 enablestring=
e46d2a18
VS
5090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5091echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5092 no_cache=0
e46d2a18
VS
5093 # Check whether --enable-log or --disable-log was given.
5094if test "${enable_log+set}" = set; then
5095 enableval="$enable_log"
e6cc62c6 5096
10f2d63a 5097 if test "$enableval" = yes; then
e46d2a18 5098 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5099 else
e46d2a18 5100 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5101 fi
e6cc62c6 5102
10f2d63a 5103else
e6cc62c6 5104
e46d2a18 5105 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
e46d2a18 5112 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5113
e6cc62c6 5114fi;
10f2d63a 5115
e46d2a18 5116 eval "$ac_cv_use_log"
10f2d63a 5117 if test "$no_cache" != 1; then
e46d2a18 5118 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5119 fi
5120
e46d2a18 5121 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5122 echo "$as_me:$LINENO: result: yes" >&5
5123echo "${ECHO_T}yes" >&6
10f2d63a 5124 else
e6cc62c6
VS
5125 echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
10f2d63a 5127 fi
e6cc62c6 5128
10f2d63a 5129
5005acfe 5130 enablestring=
e46d2a18
VS
5131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5132echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5133 no_cache=0
e46d2a18
VS
5134 # Check whether --enable-longlong or --disable-longlong was given.
5135if test "${enable_longlong+set}" = set; then
5136 enableval="$enable_longlong"
e6cc62c6 5137
1e6feb95 5138 if test "$enableval" = yes; then
e46d2a18 5139 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5140 else
e46d2a18 5141 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5142 fi
e6cc62c6 5143
1e6feb95 5144else
e6cc62c6 5145
e46d2a18 5146 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
e46d2a18 5153 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5154
e6cc62c6 5155fi;
1e6feb95 5156
e46d2a18 5157 eval "$ac_cv_use_longlong"
1e6feb95 5158 if test "$no_cache" != 1; then
e46d2a18 5159 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5160 fi
5161
e46d2a18
VS
5162 if test "$wxUSE_LONGLONG" = yes; then
5163 echo "$as_me:$LINENO: result: yes" >&5
5164echo "${ECHO_T}yes" >&6
5165 else
5166 echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168 fi
5169
5170
5171 enablestring=
5172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5173echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5174 no_cache=0
5175 # Check whether --enable-mimetype or --disable-mimetype was given.
5176if test "${enable_mimetype+set}" = set; then
5177 enableval="$enable_mimetype"
5178
5179 if test "$enableval" = yes; then
5180 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5181 else
5182 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5183 fi
5184
5185else
5186
5187 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5195
5196fi;
5197
5198 eval "$ac_cv_use_mimetype"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5204 echo "$as_me:$LINENO: result: yes" >&5
5205echo "${ECHO_T}yes" >&6
1e6feb95 5206 else
e6cc62c6
VS
5207 echo "$as_me:$LINENO: result: no" >&5
5208echo "${ECHO_T}no" >&6
1e6feb95 5209 fi
e6cc62c6 5210
1e6feb95 5211
5005acfe 5212 enablestring=
e6cc62c6
VS
5213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5214echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5215 no_cache=0
5216 # Check whether --enable-mslu or --disable-mslu was given.
5217if test "${enable_mslu+set}" = set; then
5218 enableval="$enable_mslu"
e6cc62c6 5219
a72a4bfa
VS
5220 if test "$enableval" = yes; then
5221 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5222 else
5223 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5224 fi
e6cc62c6 5225
a72a4bfa 5226else
e6cc62c6 5227
a72a4bfa
VS
5228 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5236
e6cc62c6 5237fi;
a72a4bfa
VS
5238
5239 eval "$ac_cv_use_mslu"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5245 echo "$as_me:$LINENO: result: yes" >&5
5246echo "${ECHO_T}yes" >&6
a72a4bfa 5247 else
e6cc62c6
VS
5248 echo "$as_me:$LINENO: result: no" >&5
5249echo "${ECHO_T}no" >&6
a72a4bfa 5250 fi
e6cc62c6 5251
a72a4bfa 5252
5005acfe 5253 enablestring=
e46d2a18
VS
5254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5255echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5256 no_cache=0
e46d2a18
VS
5257 # Check whether --enable-snglinst or --disable-snglinst was given.
5258if test "${enable_snglinst+set}" = set; then
5259 enableval="$enable_snglinst"
e6cc62c6 5260
1e6feb95 5261 if test "$enableval" = yes; then
e46d2a18 5262 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5263 else
e46d2a18 5264 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5265 fi
e6cc62c6 5266
10f2d63a 5267else
e6cc62c6 5268
e46d2a18 5269 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
e46d2a18 5276 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5277
e6cc62c6 5278fi;
10f2d63a 5279
e46d2a18 5280 eval "$ac_cv_use_snglinst"
10f2d63a 5281 if test "$no_cache" != 1; then
e46d2a18 5282 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5283 fi
5284
e46d2a18
VS
5285 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5286 echo "$as_me:$LINENO: result: yes" >&5
5287echo "${ECHO_T}yes" >&6
5288 else
5289 echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291 fi
5292
5293
5294 enablestring=
5295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5296echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5297 no_cache=0
5298 # Check whether --enable-streams or --disable-streams was given.
5299if test "${enable_streams+set}" = set; then
5300 enableval="$enable_streams"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_streams='wxUSE_STREAMS=yes'
5304 else
5305 ac_cv_use_streams='wxUSE_STREAMS=no'
5306 fi
5307
5308else
5309
5310 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5318
5319fi;
5320
5321 eval "$ac_cv_use_streams"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5327 echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
10f2d63a 5329 else
e6cc62c6
VS
5330 echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
10f2d63a 5332 fi
e6cc62c6 5333
10f2d63a 5334
5005acfe 5335 enablestring=
e6cc62c6
VS
5336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5337echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5338 no_cache=0
5339 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5340if test "${enable_std_iostreams+set}" = set; then
5341 enableval="$enable_std_iostreams"
e6cc62c6 5342
10f2d63a
VZ
5343 if test "$enableval" = yes; then
5344 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5345 else
5346 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5347 fi
e6cc62c6 5348
10f2d63a 5349else
e6cc62c6 5350
10f2d63a
VZ
5351 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5359
e6cc62c6 5360fi;
10f2d63a
VZ
5361
5362 eval "$ac_cv_use_std_iostreams"
5363 if test "$no_cache" != 1; then
5364 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5365 fi
5366
5367 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5368 echo "$as_me:$LINENO: result: yes" >&5
5369echo "${ECHO_T}yes" >&6
10f2d63a 5370 else
e6cc62c6
VS
5371 echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
10f2d63a 5373 fi
e6cc62c6 5374
10f2d63a 5375
5005acfe 5376 enablestring=
e46d2a18
VS
5377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5378echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5379 no_cache=0
e46d2a18
VS
5380 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5381if test "${enable_stopwatch+set}" = set; then
5382 enableval="$enable_stopwatch"
e6cc62c6 5383
24528b0c 5384 if test "$enableval" = yes; then
e46d2a18 5385 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5386 else
e46d2a18 5387 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5388 fi
e6cc62c6 5389
24528b0c 5390else
e6cc62c6 5391
e46d2a18 5392 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
e46d2a18 5399 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5400
e6cc62c6 5401fi;
24528b0c 5402
e46d2a18 5403 eval "$ac_cv_use_stopwatch"
24528b0c 5404 if test "$no_cache" != 1; then
e46d2a18 5405 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5406 fi
5407
e46d2a18 5408 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5409 echo "$as_me:$LINENO: result: yes" >&5
5410echo "${ECHO_T}yes" >&6
24528b0c 5411 else
e6cc62c6
VS
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
24528b0c 5414 fi
e6cc62c6 5415
24528b0c 5416
5005acfe 5417 enablestring=
e46d2a18
VS
5418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5419echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5420 no_cache=0
e46d2a18
VS
5421 # Check whether --enable-system_options or --disable-system_options was given.
5422if test "${enable_system_options+set}" = set; then
5423 enableval="$enable_system_options"
e6cc62c6 5424
10f2d63a 5425 if test "$enableval" = yes; then
e46d2a18 5426 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5427 else
e46d2a18 5428 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5429 fi
e6cc62c6 5430
10f2d63a 5431else
e6cc62c6 5432
e46d2a18 5433 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
e46d2a18 5440 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5441
e6cc62c6 5442fi;
10f2d63a 5443
e46d2a18 5444 eval "$ac_cv_use_system_options"
10f2d63a 5445 if test "$no_cache" != 1; then
e46d2a18 5446 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5447 fi
5448
e46d2a18 5449 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5450 echo "$as_me:$LINENO: result: yes" >&5
5451echo "${ECHO_T}yes" >&6
10f2d63a 5452 else
e6cc62c6
VS
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
10f2d63a 5455 fi
e6cc62c6 5456
10f2d63a 5457
5005acfe 5458 enablestring=
e46d2a18
VS
5459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5460echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5461 no_cache=0
e46d2a18
VS
5462 # Check whether --enable-textbuf or --disable-textbuf was given.
5463if test "${enable_textbuf+set}" = set; then
5464 enableval="$enable_textbuf"
e6cc62c6 5465
10f2d63a 5466 if test "$enableval" = yes; then
e46d2a18 5467 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5468 else
e46d2a18 5469 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5470 fi
e6cc62c6 5471
10f2d63a 5472else
e6cc62c6 5473
e46d2a18 5474 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
e46d2a18 5481 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5482
e6cc62c6 5483fi;
10f2d63a 5484
e46d2a18 5485 eval "$ac_cv_use_textbuf"
10f2d63a 5486 if test "$no_cache" != 1; then
e46d2a18 5487 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5488 fi
5489
e46d2a18 5490 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5491 echo "$as_me:$LINENO: result: yes" >&5
5492echo "${ECHO_T}yes" >&6
10f2d63a 5493 else
e6cc62c6
VS
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
10f2d63a 5496 fi
e6cc62c6 5497
10f2d63a 5498
5005acfe 5499 enablestring=
e46d2a18
VS
5500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5501echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5502 no_cache=0
e46d2a18
VS
5503 # Check whether --enable-textfile or --disable-textfile was given.
5504if test "${enable_textfile+set}" = set; then
5505 enableval="$enable_textfile"
e6cc62c6 5506
10f2d63a 5507 if test "$enableval" = yes; then
e46d2a18 5508 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5509 else
e46d2a18 5510 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5511 fi
e6cc62c6 5512
10f2d63a 5513else
e6cc62c6 5514
e46d2a18 5515 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
e46d2a18 5522 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5523
e6cc62c6 5524fi;
10f2d63a 5525
e46d2a18 5526 eval "$ac_cv_use_textfile"
10f2d63a 5527 if test "$no_cache" != 1; then
e46d2a18 5528 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5529 fi
5530
e46d2a18 5531 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5532 echo "$as_me:$LINENO: result: yes" >&5
5533echo "${ECHO_T}yes" >&6
10f2d63a 5534 else
e6cc62c6
VS
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
10f2d63a 5537 fi
e6cc62c6 5538
8284b0c5 5539
5005acfe 5540 enablestring=
e46d2a18
VS
5541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5542echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5543 no_cache=0
e46d2a18
VS
5544 # Check whether --enable-timer or --disable-timer was given.
5545if test "${enable_timer+set}" = set; then
5546 enableval="$enable_timer"
e6cc62c6 5547
eb4efbdc 5548 if test "$enableval" = yes; then
e46d2a18 5549 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5550 else
e46d2a18 5551 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5552 fi
e6cc62c6 5553
eb4efbdc 5554else
e6cc62c6 5555
e46d2a18 5556 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
e46d2a18 5563 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5564
e6cc62c6 5565fi;
eb4efbdc 5566
e46d2a18 5567 eval "$ac_cv_use_timer"
eb4efbdc 5568 if test "$no_cache" != 1; then
e46d2a18 5569 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5570 fi
5571
e46d2a18 5572 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5573 echo "$as_me:$LINENO: result: yes" >&5
5574echo "${ECHO_T}yes" >&6
eb4efbdc 5575 else
e6cc62c6
VS
5576 echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
eb4efbdc 5578 fi
e6cc62c6 5579
eb4efbdc 5580
5005acfe 5581 enablestring=
e46d2a18
VS
5582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5583echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5584 no_cache=0
e46d2a18
VS
5585 # Check whether --enable-unicode or --disable-unicode was given.
5586if test "${enable_unicode+set}" = set; then
5587 enableval="$enable_unicode"
e6cc62c6 5588
4f3c5f06 5589 if test "$enableval" = yes; then
e46d2a18 5590 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5591 else
e46d2a18 5592 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5593 fi
e6cc62c6 5594
4f3c5f06 5595else
e6cc62c6 5596
e46d2a18 5597 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 else
5601 no_cache=1
5602 fi
5603
e46d2a18 5604 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5605
e6cc62c6 5606fi;
4f3c5f06 5607
e46d2a18 5608 eval "$ac_cv_use_unicode"
4f3c5f06 5609 if test "$no_cache" != 1; then
e46d2a18 5610 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5611 fi
5612
e46d2a18 5613 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5614 echo "$as_me:$LINENO: result: yes" >&5
5615echo "${ECHO_T}yes" >&6
4f3c5f06 5616 else
e6cc62c6
VS
5617 echo "$as_me:$LINENO: result: no" >&5
5618echo "${ECHO_T}no" >&6
4f3c5f06 5619 fi
e6cc62c6 5620
52127426 5621
e46d2a18 5622 enablestring=
002ed9af
VS
5623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5624echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5625 no_cache=0
002ed9af
VS
5626 # Check whether --enable-sound or --disable-sound was given.
5627if test "${enable_sound+set}" = set; then
5628 enableval="$enable_sound"
e46d2a18
VS
5629
5630 if test "$enableval" = yes; then
002ed9af 5631 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5632 else
002ed9af 5633 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5634 fi
5635
5636else
5637
002ed9af 5638 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
002ed9af 5645 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5646
5647fi;
5648
002ed9af 5649 eval "$ac_cv_use_sound"
e46d2a18 5650 if test "$no_cache" != 1; then
002ed9af 5651 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5652 fi
5653
002ed9af 5654 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5655 echo "$as_me:$LINENO: result: yes" >&5
5656echo "${ECHO_T}yes" >&6
5657 else
5658 echo "$as_me:$LINENO: result: no" >&5
5659echo "${ECHO_T}no" >&6
5660 fi
5661
8284b0c5 5662
5005acfe 5663 enablestring=
e46d2a18
VS
5664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5665echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5666 no_cache=0
e46d2a18
VS
5667 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5668if test "${enable_wxprintfv+set}" = set; then
5669 enableval="$enable_wxprintfv"
e6cc62c6 5670
1e6feb95 5671 if test "$enableval" = yes; then
e46d2a18 5672 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5673 else
e46d2a18 5674 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5675 fi
e6cc62c6 5676
1e6feb95 5677else
e6cc62c6 5678
e46d2a18 5679 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5680 if test "x$LINE" != x ; then
5681 eval "DEFAULT_$LINE"
5682 else
5683 no_cache=1
5684 fi
5685
e46d2a18 5686 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5687
e6cc62c6 5688fi;
1e6feb95 5689
e46d2a18 5690 eval "$ac_cv_use_wxprintfv"
1e6feb95 5691 if test "$no_cache" != 1; then
e46d2a18 5692 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5693 fi
5694
e46d2a18 5695 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5696 echo "$as_me:$LINENO: result: yes" >&5
5697echo "${ECHO_T}yes" >&6
1e6feb95 5698 else
e6cc62c6
VS
5699 echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6
1e6feb95 5701 fi
e6cc62c6 5702
1e6feb95 5703
5005acfe 5704 enablestring=
e46d2a18
VS
5705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5706echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5707 no_cache=0
e46d2a18
VS
5708 # Check whether --enable-zipstream or --disable-zipstream was given.
5709if test "${enable_zipstream+set}" = set; then
5710 enableval="$enable_zipstream"
e6cc62c6 5711
3e44f09d 5712 if test "$enableval" = yes; then
e46d2a18 5713 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5714 else
e46d2a18 5715 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5716 fi
e6cc62c6 5717
3e44f09d 5718else
e6cc62c6 5719
e46d2a18 5720 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5721 if test "x$LINE" != x ; then
5722 eval "DEFAULT_$LINE"
5723 else
5724 no_cache=1
5725 fi
5726
e46d2a18 5727 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5728
e6cc62c6 5729fi;
3e44f09d 5730
e46d2a18 5731 eval "$ac_cv_use_zipstream"
3e44f09d 5732 if test "$no_cache" != 1; then
e46d2a18 5733 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5734 fi
5735
e46d2a18 5736 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5737 echo "$as_me:$LINENO: result: yes" >&5
5738echo "${ECHO_T}yes" >&6
3e44f09d 5739 else
e6cc62c6
VS
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
3e44f09d 5742 fi
e6cc62c6 5743
8284b0c5 5744
7015ef3a
VZ
5745 enablestring=
5746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5747echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5748 no_cache=0
5749 # Check whether --enable-gzstream or --disable-gzstream was given.
5750if test "${enable_gzstream+set}" = set; then
5751 enableval="$enable_gzstream"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5755 else
5756 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5757 fi
5758
5759else
5760
5761 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5769
5770fi;
5771
5772 eval "$ac_cv_use_gzstream"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_GZSTREAM" = yes; then
5778 echo "$as_me:$LINENO: result: yes" >&5
5779echo "${ECHO_T}yes" >&6
5780 else
5781 echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6
5783 fi
5784
5785
52127426 5786
5005acfe 5787 enablestring=
e6cc62c6
VS
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5790 no_cache=0
5791 # Check whether --enable-url or --disable-url was given.
5792if test "${enable_url+set}" = set; then
5793 enableval="$enable_url"
e6cc62c6 5794
4cdb0ab0
VS
5795 if test "$enableval" = yes; then
5796 ac_cv_use_url='wxUSE_URL=yes'
5797 else
5798 ac_cv_use_url='wxUSE_URL=no'
5799 fi
e6cc62c6 5800
4cdb0ab0 5801else
e6cc62c6 5802
4cdb0ab0
VS
5803 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5811
e6cc62c6 5812fi;
4cdb0ab0
VS
5813
5814 eval "$ac_cv_use_url"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
4cdb0ab0 5822 else
e6cc62c6
VS
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
4cdb0ab0 5825 fi
e6cc62c6 5826
4cdb0ab0 5827
5005acfe 5828 enablestring=
e6cc62c6
VS
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5831 no_cache=0
5832 # Check whether --enable-protocol or --disable-protocol was given.
5833if test "${enable_protocol+set}" = set; then
5834 enableval="$enable_protocol"
e6cc62c6 5835
4cdb0ab0
VS
5836 if test "$enableval" = yes; then
5837 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5838 else
5839 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5840 fi
e6cc62c6 5841
4cdb0ab0 5842else
e6cc62c6 5843
4cdb0ab0
VS
5844 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5852
e6cc62c6 5853fi;
4cdb0ab0
VS
5854
5855 eval "$ac_cv_use_protocol"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
4cdb0ab0 5863 else
e6cc62c6
VS
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
4cdb0ab0 5866 fi
e6cc62c6 5867
4cdb0ab0 5868
5005acfe 5869 enablestring=
e6cc62c6
VS
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5872 no_cache=0
5873 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5874if test "${enable_protocol_http+set}" = set; then
5875 enableval="$enable_protocol_http"
e6cc62c6 5876
4cdb0ab0
VS
5877 if test "$enableval" = yes; then
5878 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5879 else
5880 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5881 fi
e6cc62c6 5882
4cdb0ab0 5883else
e6cc62c6 5884
4cdb0ab0
VS
5885 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5893
e6cc62c6 5894fi;
4cdb0ab0
VS
5895
5896 eval "$ac_cv_use_protocol_http"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
4cdb0ab0 5904 else
e6cc62c6
VS
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
4cdb0ab0 5907 fi
e6cc62c6 5908
4cdb0ab0 5909
5005acfe 5910 enablestring=
e6cc62c6
VS
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5913 no_cache=0
5914 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5915if test "${enable_protocol_ftp+set}" = set; then
5916 enableval="$enable_protocol_ftp"
e6cc62c6 5917
4cdb0ab0
VS
5918 if test "$enableval" = yes; then
5919 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5920 else
5921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5922 fi
e6cc62c6 5923
4cdb0ab0 5924else
e6cc62c6 5925
4cdb0ab0
VS
5926 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5934
e6cc62c6 5935fi;
4cdb0ab0
VS
5936
5937 eval "$ac_cv_use_protocol_ftp"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
4cdb0ab0 5945 else
e6cc62c6
VS
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
4cdb0ab0 5948 fi
e6cc62c6 5949
4cdb0ab0 5950
5005acfe 5951 enablestring=
e6cc62c6
VS
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5954 no_cache=0
5955 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5956if test "${enable_protocol_file+set}" = set; then
5957 enableval="$enable_protocol_file"
e6cc62c6 5958
4cdb0ab0
VS
5959 if test "$enableval" = yes; then
5960 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5961 else
5962 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5963 fi
e6cc62c6 5964
4cdb0ab0 5965else
e6cc62c6 5966
4cdb0ab0
VS
5967 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5975
e6cc62c6 5976fi;
4cdb0ab0
VS
5977
5978 eval "$ac_cv_use_protocol_file"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
4cdb0ab0 5986 else
e6cc62c6
VS
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
4cdb0ab0 5989 fi
e6cc62c6 5990
52127426 5991
8284b0c5
MB
5992
5993
5994
5005acfe 5995 enablestring=
e6cc62c6
VS
5996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5997echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5998 no_cache=0
5999 # Check whether --enable-threads or --disable-threads was given.
6000if test "${enable_threads+set}" = set; then
6001 enableval="$enable_threads"
e6cc62c6 6002
10f2d63a
VZ
6003 if test "$enableval" = yes; then
6004 ac_cv_use_threads='wxUSE_THREADS=yes'
6005 else
6006 ac_cv_use_threads='wxUSE_THREADS=no'
6007 fi
e6cc62c6 6008
10f2d63a 6009else
e6cc62c6 6010
10f2d63a
VZ
6011 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6012 if test "x$LINE" != x ; then
6013 eval "DEFAULT_$LINE"
6014 else
6015 no_cache=1
6016 fi
6017
6018 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 6019
e6cc62c6 6020fi;
10f2d63a
VZ
6021
6022 eval "$ac_cv_use_threads"
6023 if test "$no_cache" != 1; then
6024 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6025 fi
6026
6027 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
6028 echo "$as_me:$LINENO: result: yes" >&5
6029echo "${ECHO_T}yes" >&6
10f2d63a 6030 else
e6cc62c6
VS
6031 echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6
10f2d63a 6033 fi
e6cc62c6 6034
10f2d63a 6035
b12915c1
VZ
6036if test "$wxUSE_GUI" = "yes"; then
6037
8284b0c5
MB
6038
6039
5005acfe 6040 enablestring=
e6cc62c6
VS
6041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6042echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
6043 no_cache=0
6044 # Check whether --enable-docview or --disable-docview was given.
6045if test "${enable_docview+set}" = set; then
6046 enableval="$enable_docview"
e6cc62c6 6047
10f2d63a
VZ
6048 if test "$enableval" = yes; then
6049 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6050 else
6051 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6052 fi
e6cc62c6 6053
10f2d63a 6054else
e6cc62c6 6055
10f2d63a
VZ
6056 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 6064
e6cc62c6 6065fi;
10f2d63a
VZ
6066
6067 eval "$ac_cv_use_docview"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6073 echo "$as_me:$LINENO: result: yes" >&5
6074echo "${ECHO_T}yes" >&6
10f2d63a 6075 else
e6cc62c6
VS
6076 echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
10f2d63a 6078 fi
e6cc62c6 6079
10f2d63a 6080
5005acfe 6081 enablestring=
e6cc62c6
VS
6082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6083echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6084 no_cache=0
6085 # Check whether --enable-help or --disable-help was given.
6086if test "${enable_help+set}" = set; then
6087 enableval="$enable_help"
e6cc62c6 6088
10f2d63a
VZ
6089 if test "$enableval" = yes; then
6090 ac_cv_use_help='wxUSE_HELP=yes'
6091 else
6092 ac_cv_use_help='wxUSE_HELP=no'
6093 fi
e6cc62c6 6094
10f2d63a 6095else
e6cc62c6 6096
10f2d63a
VZ
6097 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6098 if test "x$LINE" != x ; then
6099 eval "DEFAULT_$LINE"
6100 else
6101 no_cache=1
6102 fi
6103
6104 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6105
e6cc62c6 6106fi;
10f2d63a
VZ
6107
6108 eval "$ac_cv_use_help"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6114 echo "$as_me:$LINENO: result: yes" >&5
6115echo "${ECHO_T}yes" >&6
10f2d63a 6116 else
e6cc62c6
VS
6117 echo "$as_me:$LINENO: result: no" >&5
6118echo "${ECHO_T}no" >&6
10f2d63a 6119 fi
e6cc62c6 6120
10f2d63a 6121
5005acfe 6122 enablestring=
e6cc62c6
VS
6123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6124echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6125 no_cache=0
6126 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6127if test "${enable_mshtmlhelp+set}" = set; then
6128 enableval="$enable_mshtmlhelp"
e6cc62c6 6129
29fd3c0c
VS
6130 if test "$enableval" = yes; then
6131 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6132 else
6133 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6134 fi
e6cc62c6 6135
29fd3c0c 6136else
e6cc62c6 6137
29fd3c0c
VS
6138 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6146
e6cc62c6 6147fi;
29fd3c0c
VS
6148
6149 eval "$ac_cv_use_mshtmlhelp"
6150 if test "$no_cache" != 1; then
6151 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6152 fi
6153
6154 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6155 echo "$as_me:$LINENO: result: yes" >&5
6156echo "${ECHO_T}yes" >&6
29fd3c0c 6157 else
e6cc62c6
VS
6158 echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6
29fd3c0c 6160 fi
e6cc62c6 6161
29fd3c0c 6162
5005acfe 6163 enablestring=
e6cc62c6
VS
6164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6165echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6166 no_cache=0
6167 # Check whether --enable-html or --disable-html was given.
6168if test "${enable_html+set}" = set; then
6169 enableval="$enable_html"
e6cc62c6 6170
3379ed37
VZ
6171 if test "$enableval" = yes; then
6172 ac_cv_use_html='wxUSE_HTML=yes'
6173 else
6174 ac_cv_use_html='wxUSE_HTML=no'
6175 fi
e6cc62c6 6176
3379ed37 6177else
e6cc62c6 6178
3379ed37
VZ
6179 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6180 if test "x$LINE" != x ; then
6181 eval "DEFAULT_$LINE"
6182 else
6183 no_cache=1
6184 fi
6185
6186 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6187
e6cc62c6 6188fi;
3379ed37
VZ
6189
6190 eval "$ac_cv_use_html"
6191 if test "$no_cache" != 1; then
6192 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6193 fi
6194
6195 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6196 echo "$as_me:$LINENO: result: yes" >&5
6197echo "${ECHO_T}yes" >&6
3379ed37 6198 else
e6cc62c6
VS
6199 echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
3379ed37 6201 fi
e6cc62c6 6202
3379ed37 6203
5005acfe 6204 enablestring=
e6cc62c6
VS
6205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6206echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6207 no_cache=0
6208 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6209if test "${enable_htmlhelp+set}" = set; then
6210 enableval="$enable_htmlhelp"
e6cc62c6 6211
3379ed37
VZ
6212 if test "$enableval" = yes; then
6213 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6214 else
6215 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6216 fi
e6cc62c6 6217
3379ed37 6218else
e6cc62c6 6219
3379ed37
VZ
6220 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6221 if test "x$LINE" != x ; then
6222 eval "DEFAULT_$LINE"
6223 else
6224 no_cache=1
6225 fi
6226
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6228
e6cc62c6 6229fi;
3379ed37
VZ
6230
6231 eval "$ac_cv_use_htmlhelp"
6232 if test "$no_cache" != 1; then
6233 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6234 fi
6235
6236 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6237 echo "$as_me:$LINENO: result: yes" >&5
6238echo "${ECHO_T}yes" >&6
3379ed37 6239 else
e6cc62c6
VS
6240 echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6
3379ed37 6242 fi
e6cc62c6 6243
3379ed37 6244
5005acfe 6245 enablestring=
e6cc62c6
VS
6246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6247echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6248 no_cache=0
6249 # Check whether --enable-constraints or --disable-constraints was given.
6250if test "${enable_constraints+set}" = set; then
6251 enableval="$enable_constraints"
e6cc62c6 6252
10f2d63a
VZ
6253 if test "$enableval" = yes; then
6254 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6255 else
6256 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6257 fi
e6cc62c6 6258
10f2d63a 6259else
e6cc62c6 6260
10f2d63a
VZ
6261 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6262 if test "x$LINE" != x ; then
6263 eval "DEFAULT_$LINE"
6264 else
6265 no_cache=1
6266 fi
6267
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6269
e6cc62c6 6270fi;
10f2d63a
VZ
6271
6272 eval "$ac_cv_use_constraints"
6273 if test "$no_cache" != 1; then
6274 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6275 fi
6276
6277 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6278 echo "$as_me:$LINENO: result: yes" >&5
6279echo "${ECHO_T}yes" >&6
10f2d63a 6280 else
e6cc62c6
VS
6281 echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
10f2d63a 6283 fi
e6cc62c6 6284
10f2d63a 6285
5005acfe 6286 enablestring=
e6cc62c6
VS
6287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6288echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6289 no_cache=0
6290 # Check whether --enable-printarch or --disable-printarch was given.
6291if test "${enable_printarch+set}" = set; then
6292 enableval="$enable_printarch"
e6cc62c6 6293
10f2d63a
VZ
6294 if test "$enableval" = yes; then
6295 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6296 else
6297 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6298 fi
e6cc62c6 6299
10f2d63a 6300else
e6cc62c6 6301
10f2d63a
VZ
6302 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6303 if test "x$LINE" != x ; then
6304 eval "DEFAULT_$LINE"
6305 else
6306 no_cache=1
6307 fi
6308
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6310
e6cc62c6 6311fi;
10f2d63a
VZ
6312
6313 eval "$ac_cv_use_printarch"
6314 if test "$no_cache" != 1; then
6315 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6316 fi
6317
6318 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6319 echo "$as_me:$LINENO: result: yes" >&5
6320echo "${ECHO_T}yes" >&6
10f2d63a 6321 else
e6cc62c6
VS
6322 echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
10f2d63a 6324 fi
e6cc62c6 6325
10f2d63a 6326
5005acfe 6327 enablestring=
e6cc62c6
VS
6328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6329echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6330 no_cache=0
6331 # Check whether --enable-mdi or --disable-mdi was given.
6332if test "${enable_mdi+set}" = set; then
6333 enableval="$enable_mdi"
e6cc62c6 6334
10f2d63a
VZ
6335 if test "$enableval" = yes; then
6336 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6337 else
6338 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6339 fi
e6cc62c6 6340
10f2d63a 6341else
e6cc62c6 6342
10f2d63a
VZ
6343 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6344 if test "x$LINE" != x ; then
6345 eval "DEFAULT_$LINE"
6346 else
6347 no_cache=1
6348 fi
6349
6350 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6351
e6cc62c6 6352fi;
10f2d63a
VZ
6353
6354 eval "$ac_cv_use_mdi"
6355 if test "$no_cache" != 1; then
6356 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6357 fi
6358
6359 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6360 echo "$as_me:$LINENO: result: yes" >&5
6361echo "${ECHO_T}yes" >&6
10f2d63a 6362 else
e6cc62c6
VS
6363 echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6
10f2d63a 6365 fi
e6cc62c6 6366
698dcdb6 6367
5005acfe 6368 enablestring=
e6cc62c6
VS
6369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6370echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6371 no_cache=0
6372 # Check whether --enable-loggui or --disable-loggui was given.
6373if test "${enable_loggui+set}" = set; then
6374 enableval="$enable_loggui"
e6cc62c6 6375
1e6feb95
VZ
6376 if test "$enableval" = yes; then
6377 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6378 else
6379 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6380 fi
e6cc62c6 6381
1e6feb95 6382else
e6cc62c6 6383
1e6feb95
VZ
6384 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6392
e6cc62c6 6393fi;
1e6feb95
VZ
6394
6395 eval "$ac_cv_use_loggui"
6396 if test "$no_cache" != 1; then
6397 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6398 fi
6399
6400 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6401 echo "$as_me:$LINENO: result: yes" >&5
6402echo "${ECHO_T}yes" >&6
1e6feb95 6403 else
e6cc62c6
VS
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
1e6feb95 6406 fi
e6cc62c6 6407
1e6feb95 6408
5005acfe 6409 enablestring=
e6cc62c6
VS
6410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6411echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6412 no_cache=0
6413 # Check whether --enable-logwin or --disable-logwin was given.
6414if test "${enable_logwin+set}" = set; then
6415 enableval="$enable_logwin"
e6cc62c6 6416
1e6feb95
VZ
6417 if test "$enableval" = yes; then
6418 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6419 else
6420 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6421 fi
e6cc62c6 6422
1e6feb95 6423else
e6cc62c6 6424
1e6feb95
VZ
6425 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6426 if test "x$LINE" != x ; then
6427 eval "DEFAULT_$LINE"
6428 else
6429 no_cache=1
6430 fi
6431
6432 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6433
e6cc62c6 6434fi;
1e6feb95
VZ
6435
6436 eval "$ac_cv_use_logwin"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6442 echo "$as_me:$LINENO: result: yes" >&5
6443echo "${ECHO_T}yes" >&6
1e6feb95 6444 else
e6cc62c6
VS
6445 echo "$as_me:$LINENO: result: no" >&5
6446echo "${ECHO_T}no" >&6
1e6feb95 6447 fi
e6cc62c6 6448
1e6feb95 6449
5005acfe 6450 enablestring=
e6cc62c6
VS
6451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6452echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6453 no_cache=0
6454 # Check whether --enable-logdialog or --disable-logdialog was given.
6455if test "${enable_logdialog+set}" = set; then
6456 enableval="$enable_logdialog"
e6cc62c6 6457
69d27ff7
MB
6458 if test "$enableval" = yes; then
6459 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6460 else
6461 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6462 fi
e6cc62c6 6463
69d27ff7 6464else
e6cc62c6 6465
69d27ff7
MB
6466 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6474
e6cc62c6 6475fi;
69d27ff7
MB
6476
6477 eval "$ac_cv_use_logdialog"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6483 echo "$as_me:$LINENO: result: yes" >&5
6484echo "${ECHO_T}yes" >&6
69d27ff7 6485 else
e6cc62c6
VS
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
69d27ff7 6488 fi
e6cc62c6 6489
8284b0c5 6490
52127426 6491
5005acfe 6492 enablestring=
e6cc62c6
VS
6493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6494echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6495 no_cache=0
6496 # Check whether --enable-postscript or --disable-postscript was given.
6497if test "${enable_postscript+set}" = set; then
6498 enableval="$enable_postscript"
e6cc62c6 6499
10f2d63a
VZ
6500 if test "$enableval" = yes; then
6501 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6502 else
6503 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6504 fi
e6cc62c6 6505
10f2d63a 6506else
e6cc62c6 6507
10f2d63a
VZ
6508 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6516
e6cc62c6 6517fi;
10f2d63a
VZ
6518
6519 eval "$ac_cv_use_postscript"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6525 echo "$as_me:$LINENO: result: yes" >&5
6526echo "${ECHO_T}yes" >&6
10f2d63a 6527 else
e6cc62c6
VS
6528 echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6
10f2d63a 6530 fi
e6cc62c6 6531
8284b0c5
MB
6532
6533
52127426 6534
8284b0c5 6535
5005acfe 6536 enablestring=
e6cc62c6
VS
6537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6538echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6539 no_cache=0
3c907f20
VZ
6540 # Check whether --enable-prologio or --disable-prologio was given.
6541if test "${enable_prologio+set}" = set; then
6542 enableval="$enable_prologio"
e6cc62c6 6543
10f2d63a 6544 if test "$enableval" = yes; then
3c907f20 6545 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6546 else
3c907f20 6547 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6548 fi
e6cc62c6 6549
10f2d63a 6550else
e6cc62c6 6551
3c907f20 6552 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
3c907f20 6559 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6560
e6cc62c6 6561fi;
10f2d63a 6562
3c907f20 6563 eval "$ac_cv_use_prologio"
10f2d63a 6564 if test "$no_cache" != 1; then
3c907f20 6565 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6566 fi
6567
3c907f20 6568 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6569 echo "$as_me:$LINENO: result: yes" >&5
6570echo "${ECHO_T}yes" >&6
10f2d63a 6571 else
e6cc62c6
VS
6572 echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6
10f2d63a 6574 fi
e6cc62c6 6575
8284b0c5 6576
5005acfe 6577 enablestring=
e6cc62c6
VS
6578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6579echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6580 no_cache=0
3c907f20
VZ
6581 # Check whether --enable-resources or --disable-resources was given.
6582if test "${enable_resources+set}" = set; then
6583 enableval="$enable_resources"
e6cc62c6 6584
10f2d63a 6585 if test "$enableval" = yes; then
3c907f20 6586 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6587 else
3c907f20 6588 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6589 fi
e6cc62c6 6590
10f2d63a 6591else
e6cc62c6 6592
3c907f20 6593 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
3c907f20 6600 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6601
e6cc62c6 6602fi;
10f2d63a 6603
3c907f20 6604 eval "$ac_cv_use_resources"
10f2d63a 6605 if test "$no_cache" != 1; then
3c907f20 6606 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6607 fi
6608
3c907f20 6609 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6610 echo "$as_me:$LINENO: result: yes" >&5
6611echo "${ECHO_T}yes" >&6
10f2d63a 6612 else
e6cc62c6
VS
6613 echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6
10f2d63a 6615 fi
e6cc62c6 6616
8284b0c5
MB
6617
6618
52127426 6619
5005acfe 6620 enablestring=
e6cc62c6
VS
6621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6622echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6623 no_cache=0
6624 # Check whether --enable-clipboard or --disable-clipboard was given.
6625if test "${enable_clipboard+set}" = set; then
6626 enableval="$enable_clipboard"
e6cc62c6 6627
10f2d63a
VZ
6628 if test "$enableval" = yes; then
6629 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6630 else
6631 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6632 fi
e6cc62c6 6633
10f2d63a 6634else
e6cc62c6 6635
10f2d63a
VZ
6636 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6644
e6cc62c6 6645fi;
10f2d63a
VZ
6646
6647 eval "$ac_cv_use_clipboard"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6653 echo "$as_me:$LINENO: result: yes" >&5
6654echo "${ECHO_T}yes" >&6
10f2d63a 6655 else
e6cc62c6
VS
6656 echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6
10f2d63a 6658 fi
e6cc62c6 6659
10f2d63a 6660
5005acfe 6661 enablestring=
e6cc62c6
VS
6662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6663echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6664 no_cache=0
6665 # Check whether --enable-dnd or --disable-dnd was given.
6666if test "${enable_dnd+set}" = set; then
6667 enableval="$enable_dnd"
e6cc62c6 6668
10f2d63a
VZ
6669 if test "$enableval" = yes; then
6670 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6671 else
6672 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6673 fi
e6cc62c6 6674
10f2d63a 6675else
e6cc62c6 6676
10f2d63a
VZ
6677 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6685
e6cc62c6 6686fi;
10f2d63a
VZ
6687
6688 eval "$ac_cv_use_dnd"
6689 if test "$no_cache" != 1; then
6690 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6691 fi
6692
6693 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6694 echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6
10f2d63a 6696 else
e6cc62c6
VS
6697 echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
10f2d63a 6699 fi
e6cc62c6 6700
10f2d63a 6701
5005acfe 6702 enablestring=
e6cc62c6
VS
6703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6704echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6705 no_cache=0
6706 # Check whether --enable-metafile or --disable-metafile was given.
6707if test "${enable_metafile+set}" = set; then
6708 enableval="$enable_metafile"
e6cc62c6 6709
b64f0a5f
RL
6710 if test "$enableval" = yes; then
6711 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6712 else
6713 ac_cv_use_metafile='wxUSE_METAFILE=no'
6714 fi
e6cc62c6 6715
b64f0a5f 6716else
e6cc62c6 6717
b64f0a5f
RL
6718 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6726
e6cc62c6 6727fi;
b64f0a5f
RL
6728
6729 eval "$ac_cv_use_metafile"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6735 echo "$as_me:$LINENO: result: yes" >&5
6736echo "${ECHO_T}yes" >&6
b64f0a5f 6737 else
e6cc62c6
VS
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
b64f0a5f 6740 fi
e6cc62c6 6741
52127426 6742
8284b0c5 6743
52127426 6744
8284b0c5 6745
5005acfe 6746 enablestring=
e6cc62c6
VS
6747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6748echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6749 no_cache=0
6750 # Check whether --enable-controls or --disable-controls was given.
6751if test "${enable_controls+set}" = set; then
6752 enableval="$enable_controls"
e6cc62c6 6753
10f2d63a
VZ
6754 if test "$enableval" = yes; then
6755 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6756 else
6757 ac_cv_use_controls='wxUSE_CONTROLS=no'
6758 fi
e6cc62c6 6759
10f2d63a 6760else
e6cc62c6 6761
10f2d63a
VZ
6762 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6770
e6cc62c6 6771fi;
10f2d63a
VZ
6772
6773 eval "$ac_cv_use_controls"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6779 echo "$as_me:$LINENO: result: yes" >&5
6780echo "${ECHO_T}yes" >&6
10f2d63a 6781 else
e6cc62c6
VS
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
10f2d63a 6784 fi
e6cc62c6 6785
10f2d63a
VZ
6786
6787if test "$wxUSE_CONTROLS" = "yes"; then
6788 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6789 DEFAULT_wxUSE_BMPBUTTON=yes
6790 DEFAULT_wxUSE_BUTTON=yes
6791 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6792 DEFAULT_wxUSE_CARET=yes
6793 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6794 DEFAULT_wxUSE_CHECKBOX=yes
6795 DEFAULT_wxUSE_CHECKLISTBOX=yes
6796 DEFAULT_wxUSE_CHOICE=yes
6797 DEFAULT_wxUSE_GAUGE=yes
6798 DEFAULT_wxUSE_GRID=yes
10f2d63a 6799 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6800 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6801 DEFAULT_wxUSE_LISTBOX=yes
6802 DEFAULT_wxUSE_LISTCTRL=yes
6803 DEFAULT_wxUSE_NOTEBOOK=yes
6804 DEFAULT_wxUSE_RADIOBOX=yes
6805 DEFAULT_wxUSE_RADIOBTN=yes
6806 DEFAULT_wxUSE_SASH=yes
6807 DEFAULT_wxUSE_SCROLLBAR=yes
6808 DEFAULT_wxUSE_SLIDER=yes
6809 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6810 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6811 DEFAULT_wxUSE_SPLITTER=yes
6812 DEFAULT_wxUSE_STATBMP=yes
6813 DEFAULT_wxUSE_STATBOX=yes
6814 DEFAULT_wxUSE_STATLINE=yes
6815 DEFAULT_wxUSE_STATUSBAR=yes
6816 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6817 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6818 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6819 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6820 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6821 DEFAULT_wxUSE_TOOLTIPS=yes
6822 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6823 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6824 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6825elif test "$wxUSE_CONTROLS" = "no"; then
6826 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6827 DEFAULT_wxUSE_BMPBUTTON=no
6828 DEFAULT_wxUSE_BUTTON=no
6829 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6830 DEFAULT_wxUSE_CARET=no
6831 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6832 DEFAULT_wxUSE_CHECKBOX=no
6833 DEFAULT_wxUSE_CHECKLISTBOX=no
6834 DEFAULT_wxUSE_CHOICE=no
6835 DEFAULT_wxUSE_GAUGE=no
6836 DEFAULT_wxUSE_GRID=no
10f2d63a 6837 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6838 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6839 DEFAULT_wxUSE_LISTBOX=no
6840 DEFAULT_wxUSE_LISTCTRL=no
6841 DEFAULT_wxUSE_NOTEBOOK=no
6842 DEFAULT_wxUSE_RADIOBOX=no
6843 DEFAULT_wxUSE_RADIOBTN=no
6844 DEFAULT_wxUSE_SASH=no
6845 DEFAULT_wxUSE_SCROLLBAR=no
6846 DEFAULT_wxUSE_SLIDER=no
6847 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6848 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6849 DEFAULT_wxUSE_SPLITTER=no
6850 DEFAULT_wxUSE_STATBMP=no
6851 DEFAULT_wxUSE_STATBOX=no
6852 DEFAULT_wxUSE_STATLINE=no
6853 DEFAULT_wxUSE_STATUSBAR=no
6854 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6855 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6856 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6857 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6858 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6859 DEFAULT_wxUSE_TOOLTIPS=no
6860 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6861 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6862 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6863fi
6864
ac0c4cc3
DE
6865## FIXME: This is a blatant hack
6866if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6867 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6868 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6869 # Generic notebook requires tab dialog
6870 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6871 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6872 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6873 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6874fi
6875
8284b0c5 6876
5005acfe 6877 enablestring=
e6cc62c6
VS
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6880 no_cache=0
6881 # Check whether --enable-accel or --disable-accel was given.
6882if test "${enable_accel+set}" = set; then
6883 enableval="$enable_accel"
e6cc62c6 6884
10f2d63a
VZ
6885 if test "$enableval" = yes; then
6886 ac_cv_use_accel='wxUSE_ACCEL=yes'
6887 else
6888 ac_cv_use_accel='wxUSE_ACCEL=no'
6889 fi
e6cc62c6 6890
10f2d63a 6891else
e6cc62c6 6892
10f2d63a
VZ
6893 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6901
e6cc62c6 6902fi;
10f2d63a
VZ
6903
6904 eval "$ac_cv_use_accel"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
10f2d63a 6912 else
e6cc62c6
VS
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
10f2d63a 6915 fi
e6cc62c6 6916
10f2d63a 6917
5005acfe 6918 enablestring=
e6cc62c6
VS
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6921 no_cache=0
1e6feb95
VZ
6922 # Check whether --enable-button or --disable-button was given.
6923if test "${enable_button+set}" = set; then
6924 enableval="$enable_button"
e6cc62c6 6925
10f2d63a 6926 if test "$enableval" = yes; then
1e6feb95 6927 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6928 else
1e6feb95 6929 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6930 fi
e6cc62c6 6931
10f2d63a 6932else
e6cc62c6 6933
1e6feb95 6934 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
1e6feb95 6941 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6942
e6cc62c6 6943fi;
10f2d63a 6944
1e6feb95 6945 eval "$ac_cv_use_button"
10f2d63a 6946 if test "$no_cache" != 1; then
1e6feb95 6947 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6948 fi
6949
1e6feb95 6950 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
10f2d63a 6953 else
e6cc62c6
VS
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
10f2d63a 6956 fi
e6cc62c6 6957
10f2d63a 6958
5005acfe 6959 enablestring=
e6cc62c6
VS
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6962 no_cache=0
6963 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6964if test "${enable_bmpbutton+set}" = set; then
6965 enableval="$enable_bmpbutton"
e6cc62c6 6966
10f2d63a
VZ
6967 if test "$enableval" = yes; then
6968 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6969 else
6970 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6971 fi
e6cc62c6 6972
10f2d63a 6973else
e6cc62c6 6974
10f2d63a
VZ
6975 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6983
e6cc62c6 6984fi;
10f2d63a
VZ
6985
6986 eval "$ac_cv_use_bmpbutton"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
10f2d63a 6994 else
e6cc62c6
VS
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
10f2d63a 6997 fi
e6cc62c6 6998
10f2d63a 6999
5005acfe 7000 enablestring=
e6cc62c6
VS
7001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7002echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
7003 no_cache=0
7004 # Check whether --enable-calendar or --disable-calendar was given.
7005if test "${enable_calendar+set}" = set; then
7006 enableval="$enable_calendar"
e6cc62c6 7007
1e6feb95
VZ
7008 if test "$enableval" = yes; then
7009 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7010 else
7011 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7012 fi
e6cc62c6 7013
1e6feb95 7014else
e6cc62c6 7015
1e6feb95
VZ
7016 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 7024
e6cc62c6 7025fi;
1e6feb95
VZ
7026
7027 eval "$ac_cv_use_calendar"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
7033 echo "$as_me:$LINENO: result: yes" >&5
7034echo "${ECHO_T}yes" >&6
1e6feb95 7035 else
e6cc62c6
VS
7036 echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6
1e6feb95 7038 fi
e6cc62c6 7039
1e6feb95 7040
5005acfe 7041 enablestring=
e6cc62c6
VS
7042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7043echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
7044 no_cache=0
7045 # Check whether --enable-caret or --disable-caret was given.
7046if test "${enable_caret+set}" = set; then
7047 enableval="$enable_caret"
e6cc62c6 7048
1e6feb95
VZ
7049 if test "$enableval" = yes; then
7050 ac_cv_use_caret='wxUSE_CARET=yes'
7051 else
7052 ac_cv_use_caret='wxUSE_CARET=no'
7053 fi
e6cc62c6 7054
1e6feb95 7055else
e6cc62c6 7056
1e6feb95
VZ
7057 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 7065
e6cc62c6 7066fi;
1e6feb95
VZ
7067
7068 eval "$ac_cv_use_caret"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7074 echo "$as_me:$LINENO: result: yes" >&5
7075echo "${ECHO_T}yes" >&6
1e6feb95 7076 else
e6cc62c6
VS
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
1e6feb95 7079 fi
e6cc62c6 7080
1e6feb95 7081
5005acfe 7082 enablestring=
e6cc62c6
VS
7083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7084echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7085 no_cache=0
7086 # Check whether --enable-checkbox or --disable-checkbox was given.
7087if test "${enable_checkbox+set}" = set; then
7088 enableval="$enable_checkbox"
e6cc62c6 7089
10f2d63a
VZ
7090 if test "$enableval" = yes; then
7091 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7092 else
7093 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7094 fi
e6cc62c6 7095
10f2d63a 7096else
e6cc62c6 7097
10f2d63a
VZ
7098 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7106
e6cc62c6 7107fi;
10f2d63a
VZ
7108
7109 eval "$ac_cv_use_checkbox"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7115 echo "$as_me:$LINENO: result: yes" >&5
7116echo "${ECHO_T}yes" >&6
10f2d63a 7117 else
e6cc62c6
VS
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
10f2d63a 7120 fi
e6cc62c6 7121
10f2d63a 7122
5005acfe 7123 enablestring=
e6cc62c6
VS
7124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7125echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7126 no_cache=0
7127 # Check whether --enable-checklst or --disable-checklst was given.
7128if test "${enable_checklst+set}" = set; then
7129 enableval="$enable_checklst"
e6cc62c6 7130
10f2d63a
VZ
7131 if test "$enableval" = yes; then
7132 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7133 else
7134 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7135 fi
e6cc62c6 7136
10f2d63a 7137else
e6cc62c6 7138
10f2d63a
VZ
7139 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7147
e6cc62c6 7148fi;
10f2d63a
VZ
7149
7150 eval "$ac_cv_use_checklst"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
10f2d63a 7158 else
e6cc62c6
VS
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
10f2d63a 7161 fi
e6cc62c6 7162
10f2d63a 7163
5005acfe 7164 enablestring=
e6cc62c6
VS
7165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7166echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7167 no_cache=0
7168 # Check whether --enable-choice or --disable-choice was given.
7169if test "${enable_choice+set}" = set; then
7170 enableval="$enable_choice"
e6cc62c6 7171
10f2d63a
VZ
7172 if test "$enableval" = yes; then
7173 ac_cv_use_choice='wxUSE_CHOICE=yes'
7174 else
7175 ac_cv_use_choice='wxUSE_CHOICE=no'
7176 fi
e6cc62c6 7177
10f2d63a 7178else
e6cc62c6 7179
10f2d63a
VZ
7180 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7188
e6cc62c6 7189fi;
10f2d63a
VZ
7190
7191 eval "$ac_cv_use_choice"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7197 echo "$as_me:$LINENO: result: yes" >&5
7198echo "${ECHO_T}yes" >&6
10f2d63a 7199 else
e6cc62c6
VS
7200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
10f2d63a 7202 fi
e6cc62c6 7203
10f2d63a 7204
5005acfe 7205 enablestring=
e6cc62c6
VS
7206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7207echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7208 no_cache=0
7209 # Check whether --enable-combobox or --disable-combobox was given.
7210if test "${enable_combobox+set}" = set; then
7211 enableval="$enable_combobox"
e6cc62c6 7212
10f2d63a
VZ
7213 if test "$enableval" = yes; then
7214 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7215 else
7216 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7217 fi
e6cc62c6 7218
10f2d63a 7219else
e6cc62c6 7220
10f2d63a
VZ
7221 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7229
e6cc62c6 7230fi;
10f2d63a
VZ
7231
7232 eval "$ac_cv_use_combobox"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7238 echo "$as_me:$LINENO: result: yes" >&5
7239echo "${ECHO_T}yes" >&6
10f2d63a 7240 else
e6cc62c6
VS
7241 echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6
10f2d63a 7243 fi
e6cc62c6 7244
10f2d63a 7245
da494b40 7246 enablestring=
e6cc62c6
VS
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7249 no_cache=0
7250 # Check whether --enable-display or --disable-display was given.
7251if test "${enable_display+set}" = set; then
7252 enableval="$enable_display"
e6cc62c6 7253
da494b40
MB
7254 if test "$enableval" = yes; then
7255 ac_cv_use_display='wxUSE_DISPLAY=yes'
7256 else
7257 ac_cv_use_display='wxUSE_DISPLAY=no'
7258 fi
e6cc62c6 7259
da494b40 7260else
e6cc62c6 7261
da494b40
MB
7262 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7270
e6cc62c6 7271fi;
da494b40
MB
7272
7273 eval "$ac_cv_use_display"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
da494b40 7281 else
e6cc62c6
VS
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
da494b40 7284 fi
e6cc62c6 7285
da494b40 7286
5005acfe 7287 enablestring=
e6cc62c6
VS
7288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7289echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7290 no_cache=0
7291 # Check whether --enable-gauge or --disable-gauge was given.
7292if test "${enable_gauge+set}" = set; then
7293 enableval="$enable_gauge"
e6cc62c6 7294
10f2d63a
VZ
7295 if test "$enableval" = yes; then
7296 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7297 else
7298 ac_cv_use_gauge='wxUSE_GAUGE=no'
7299 fi
e6cc62c6 7300
10f2d63a 7301else
e6cc62c6 7302
10f2d63a
VZ
7303 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7311
e6cc62c6 7312fi;
10f2d63a
VZ
7313
7314 eval "$ac_cv_use_gauge"
7315 if test "$no_cache" != 1; then
7316 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7317 fi
7318
7319 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7320 echo "$as_me:$LINENO: result: yes" >&5
7321echo "${ECHO_T}yes" >&6
10f2d63a 7322 else
e6cc62c6
VS
7323 echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6
10f2d63a 7325 fi
e6cc62c6 7326
10f2d63a 7327
5005acfe 7328 enablestring=
e6cc62c6
VS
7329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7330echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7331 no_cache=0
7332 # Check whether --enable-grid or --disable-grid was given.
7333if test "${enable_grid+set}" = set; then
7334 enableval="$enable_grid"
e6cc62c6 7335
10f2d63a
VZ
7336 if test "$enableval" = yes; then
7337 ac_cv_use_grid='wxUSE_GRID=yes'
7338 else
7339 ac_cv_use_grid='wxUSE_GRID=no'
7340 fi
e6cc62c6 7341
10f2d63a 7342else
e6cc62c6 7343
10f2d63a
VZ
7344 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7352
e6cc62c6 7353fi;
10f2d63a
VZ
7354
7355 eval "$ac_cv_use_grid"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7361 echo "$as_me:$LINENO: result: yes" >&5
7362echo "${ECHO_T}yes" >&6
10f2d63a 7363 else
e6cc62c6
VS
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
10f2d63a 7366 fi
e6cc62c6 7367
10f2d63a 7368
5005acfe 7369 enablestring=
e6cc62c6
VS
7370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7371echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7372 no_cache=0
7373 # Check whether --enable-imaglist or --disable-imaglist was given.
7374if test "${enable_imaglist+set}" = set; then
7375 enableval="$enable_imaglist"
e6cc62c6 7376
10f2d63a
VZ
7377 if test "$enableval" = yes; then
7378 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7379 else
7380 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7381 fi
e6cc62c6 7382
10f2d63a 7383else
e6cc62c6 7384
10f2d63a
VZ
7385 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
7392 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7393
e6cc62c6 7394fi;
10f2d63a
VZ
7395
7396 eval "$ac_cv_use_imaglist"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7402 echo "$as_me:$LINENO: result: yes" >&5
7403echo "${ECHO_T}yes" >&6
10f2d63a 7404 else
e6cc62c6
VS
7405 echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6
10f2d63a 7407 fi
e6cc62c6 7408
10f2d63a 7409
0e012a93
VZ
7410 enablestring=
7411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7412echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7413 no_cache=0
7414 # Check whether --enable-listbook or --disable-listbook was given.
7415if test "${enable_listbook+set}" = set; then
7416 enableval="$enable_listbook"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7420 else
7421 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7422 fi
7423
7424else
7425
7426 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7434
7435fi;
7436
7437 eval "$ac_cv_use_listbook"
7438 if test "$no_cache" != 1; then
7439 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7440 fi
7441
7442 if test "$wxUSE_LISTBOOK" = yes; then
7443 echo "$as_me:$LINENO: result: yes" >&5
7444echo "${ECHO_T}yes" >&6
7445 else
7446 echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6
7448 fi
7449
7450
5005acfe 7451 enablestring=
e6cc62c6
VS
7452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7453echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7454 no_cache=0
7455 # Check whether --enable-listbox or --disable-listbox was given.
7456if test "${enable_listbox+set}" = set; then
7457 enableval="$enable_listbox"
e6cc62c6 7458
10f2d63a
VZ
7459 if test "$enableval" = yes; then
7460 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7461 else
7462 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7463 fi
e6cc62c6 7464
10f2d63a 7465else
e6cc62c6 7466
10f2d63a
VZ
7467 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7468 if test "x$LINE" != x ; then
7469 eval "DEFAULT_$LINE"
7470 else
7471 no_cache=1
7472 fi
7473
7474 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7475
e6cc62c6 7476fi;
10f2d63a
VZ
7477
7478 eval "$ac_cv_use_listbox"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7484 echo "$as_me:$LINENO: result: yes" >&5
7485echo "${ECHO_T}yes" >&6
10f2d63a 7486 else
e6cc62c6
VS
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
10f2d63a 7489 fi
e6cc62c6 7490
10f2d63a 7491
5005acfe 7492 enablestring=
e6cc62c6
VS
7493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7494echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7495 no_cache=0
7496 # Check whether --enable-listctrl or --disable-listctrl was given.
7497if test "${enable_listctrl+set}" = set; then
7498 enableval="$enable_listctrl"
e6cc62c6 7499
10f2d63a
VZ
7500 if test "$enableval" = yes; then
7501 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7502 else
7503 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7504 fi
e6cc62c6 7505
10f2d63a 7506else
e6cc62c6 7507
10f2d63a
VZ
7508 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7509 if test "x$LINE" != x ; then
7510 eval "DEFAULT_$LINE"
7511 else
7512 no_cache=1
7513 fi
7514
7515 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7516
e6cc62c6 7517fi;
10f2d63a
VZ
7518
7519 eval "$ac_cv_use_listctrl"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7525 echo "$as_me:$LINENO: result: yes" >&5
7526echo "${ECHO_T}yes" >&6
10f2d63a 7527 else
e6cc62c6
VS
7528 echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6
10f2d63a 7530 fi
e6cc62c6 7531
10f2d63a 7532
5005acfe 7533 enablestring=
e6cc62c6
VS
7534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7535echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7536 no_cache=0
7537 # Check whether --enable-notebook or --disable-notebook was given.
7538if test "${enable_notebook+set}" = set; then
7539 enableval="$enable_notebook"
e6cc62c6 7540
10f2d63a
VZ
7541 if test "$enableval" = yes; then
7542 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7543 else
7544 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7545 fi
e6cc62c6 7546
10f2d63a 7547else
e6cc62c6 7548
10f2d63a
VZ
7549 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7557
e6cc62c6 7558fi;
10f2d63a
VZ
7559
7560 eval "$ac_cv_use_notebook"
7561 if test "$no_cache" != 1; then
7562 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7563 fi
7564
7565 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7566 echo "$as_me:$LINENO: result: yes" >&5
7567echo "${ECHO_T}yes" >&6
10f2d63a 7568 else
e6cc62c6
VS
7569 echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
10f2d63a 7571 fi
e6cc62c6 7572
10f2d63a 7573
5005acfe 7574 enablestring=
e6cc62c6
VS
7575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7576echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7577 no_cache=0
7578 # Check whether --enable-radiobox or --disable-radiobox was given.
7579if test "${enable_radiobox+set}" = set; then
7580 enableval="$enable_radiobox"
e6cc62c6 7581
10f2d63a
VZ
7582 if test "$enableval" = yes; then
7583 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7584 else
7585 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7586 fi
e6cc62c6 7587
10f2d63a 7588else
e6cc62c6 7589
10f2d63a
VZ
7590 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7598
e6cc62c6 7599fi;
10f2d63a
VZ
7600
7601 eval "$ac_cv_use_radiobox"
7602 if test "$no_cache" != 1; then
7603 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7604 fi
7605
7606 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7607 echo "$as_me:$LINENO: result: yes" >&5
7608echo "${ECHO_T}yes" >&6
10f2d63a 7609 else
e6cc62c6
VS
7610 echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
10f2d63a 7612 fi
e6cc62c6 7613
10f2d63a 7614
5005acfe 7615 enablestring=
e6cc62c6
VS
7616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7617echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7618 no_cache=0
7619 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7620if test "${enable_radiobtn+set}" = set; then
7621 enableval="$enable_radiobtn"
e6cc62c6 7622
10f2d63a
VZ
7623 if test "$enableval" = yes; then
7624 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7625 else
7626 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7627 fi
e6cc62c6 7628
10f2d63a 7629else
e6cc62c6 7630
10f2d63a
VZ
7631 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7632 if test "x$LINE" != x ; then
7633 eval "DEFAULT_$LINE"
7634 else
7635 no_cache=1
7636 fi
7637
7638 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7639
e6cc62c6 7640fi;
10f2d63a
VZ
7641
7642 eval "$ac_cv_use_radiobtn"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7648 echo "$as_me:$LINENO: result: yes" >&5
7649echo "${ECHO_T}yes" >&6
10f2d63a 7650 else
e6cc62c6
VS
7651 echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6
10f2d63a 7653 fi
e6cc62c6 7654
10f2d63a 7655
5005acfe 7656 enablestring=
e6cc62c6
VS
7657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7658echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7659 no_cache=0
7660 # Check whether --enable-sash or --disable-sash was given.
7661if test "${enable_sash+set}" = set; then
7662 enableval="$enable_sash"
e6cc62c6 7663
10f2d63a
VZ
7664 if test "$enableval" = yes; then
7665 ac_cv_use_sash='wxUSE_SASH=yes'
7666 else
7667 ac_cv_use_sash='wxUSE_SASH=no'
7668 fi
e6cc62c6 7669
10f2d63a 7670else
e6cc62c6 7671
10f2d63a
VZ
7672 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7673 if test "x$LINE" != x ; then
7674 eval "DEFAULT_$LINE"
7675 else
7676 no_cache=1
7677 fi
7678
7679 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7680
e6cc62c6 7681fi;
10f2d63a
VZ
7682
7683 eval "$ac_cv_use_sash"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7689 echo "$as_me:$LINENO: result: yes" >&5
7690echo "${ECHO_T}yes" >&6
10f2d63a 7691 else
e6cc62c6
VS
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
10f2d63a 7694 fi
e6cc62c6 7695
10f2d63a 7696
5005acfe 7697 enablestring=
e6cc62c6
VS
7698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7699echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7700 no_cache=0
7701 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7702if test "${enable_scrollbar+set}" = set; then
7703 enableval="$enable_scrollbar"
e6cc62c6 7704
10f2d63a
VZ
7705 if test "$enableval" = yes; then
7706 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7707 else
7708 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7709 fi
e6cc62c6 7710
10f2d63a 7711else
e6cc62c6 7712
10f2d63a
VZ
7713 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7714 if test "x$LINE" != x ; then
7715 eval "DEFAULT_$LINE"
7716 else
7717 no_cache=1
7718 fi
7719
7720 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7721
e6cc62c6 7722fi;
10f2d63a
VZ
7723
7724 eval "$ac_cv_use_scrollbar"
7725 if test "$no_cache" != 1; then
7726 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7727 fi
7728
7729 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7730 echo "$as_me:$LINENO: result: yes" >&5
7731echo "${ECHO_T}yes" >&6
10f2d63a 7732 else
e6cc62c6
VS
7733 echo "$as_me:$LINENO: result: no" >&5
7734echo "${ECHO_T}no" >&6
10f2d63a 7735 fi
e6cc62c6 7736
10f2d63a 7737
5005acfe 7738 enablestring=
e6cc62c6
VS
7739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7740echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7741 no_cache=0
7742 # Check whether --enable-slider or --disable-slider was given.
7743if test "${enable_slider+set}" = set; then
7744 enableval="$enable_slider"
e6cc62c6 7745
10f2d63a
VZ
7746 if test "$enableval" = yes; then
7747 ac_cv_use_slider='wxUSE_SLIDER=yes'
7748 else
7749 ac_cv_use_slider='wxUSE_SLIDER=no'
7750 fi
e6cc62c6 7751
10f2d63a 7752else
e6cc62c6 7753
10f2d63a
VZ
7754 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7755 if test "x$LINE" != x ; then
7756 eval "DEFAULT_$LINE"
7757 else
7758 no_cache=1
7759 fi
7760
7761 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7762
e6cc62c6 7763fi;
10f2d63a
VZ
7764
7765 eval "$ac_cv_use_slider"
7766 if test "$no_cache" != 1; then
7767 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7768 fi
7769
7770 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7771 echo "$as_me:$LINENO: result: yes" >&5
7772echo "${ECHO_T}yes" >&6
10f2d63a 7773 else
e6cc62c6
VS
7774 echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
10f2d63a 7776 fi
e6cc62c6 7777
10f2d63a 7778
5005acfe 7779 enablestring=
e6cc62c6
VS
7780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7781echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7782 no_cache=0
7783 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7784if test "${enable_spinbtn+set}" = set; then
7785 enableval="$enable_spinbtn"
e6cc62c6 7786
10f2d63a
VZ
7787 if test "$enableval" = yes; then
7788 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7789 else
7790 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7791 fi
e6cc62c6 7792
10f2d63a 7793else
e6cc62c6 7794
10f2d63a
VZ
7795 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7796 if test "x$LINE" != x ; then
7797 eval "DEFAULT_$LINE"
7798 else
7799 no_cache=1
7800 fi
7801
7802 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7803
e6cc62c6 7804fi;
10f2d63a
VZ
7805
7806 eval "$ac_cv_use_spinbtn"
7807 if test "$no_cache" != 1; then
7808 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7809 fi
7810
7811 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7812 echo "$as_me:$LINENO: result: yes" >&5
7813echo "${ECHO_T}yes" >&6
10f2d63a 7814 else
e6cc62c6
VS
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
10f2d63a 7817 fi
e6cc62c6 7818
10f2d63a 7819
5005acfe 7820 enablestring=
e6cc62c6
VS
7821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7822echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7823 no_cache=0
7824 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7825if test "${enable_spinctrl+set}" = set; then
7826 enableval="$enable_spinctrl"
e6cc62c6 7827
56cfaa52
RR
7828 if test "$enableval" = yes; then
7829 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7830 else
7831 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7832 fi
e6cc62c6 7833
56cfaa52 7834else
e6cc62c6 7835
56cfaa52
RR
7836 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7837 if test "x$LINE" != x ; then
7838 eval "DEFAULT_$LINE"
7839 else
7840 no_cache=1
7841 fi
7842
7843 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7844
e6cc62c6 7845fi;
56cfaa52
RR
7846
7847 eval "$ac_cv_use_spinctrl"
7848 if test "$no_cache" != 1; then
7849 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7850 fi
7851
7852 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7853 echo "$as_me:$LINENO: result: yes" >&5
7854echo "${ECHO_T}yes" >&6
56cfaa52 7855 else
e6cc62c6
VS
7856 echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6
56cfaa52 7858 fi
e6cc62c6 7859
56cfaa52 7860
5005acfe 7861 enablestring=
e6cc62c6
VS
7862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7863echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7864 no_cache=0
7865 # Check whether --enable-splitter or --disable-splitter was given.
7866if test "${enable_splitter+set}" = set; then
7867 enableval="$enable_splitter"
e6cc62c6 7868
10f2d63a
VZ
7869 if test "$enableval" = yes; then
7870 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7871 else
7872 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7873 fi
e6cc62c6 7874
10f2d63a 7875else
e6cc62c6 7876
10f2d63a
VZ
7877 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7878 if test "x$LINE" != x ; then
7879 eval "DEFAULT_$LINE"
7880 else
7881 no_cache=1
7882 fi
7883
7884 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7885
e6cc62c6 7886fi;
10f2d63a
VZ
7887
7888 eval "$ac_cv_use_splitter"
7889 if test "$no_cache" != 1; then
7890 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7891 fi
7892
7893 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7894 echo "$as_me:$LINENO: result: yes" >&5
7895echo "${ECHO_T}yes" >&6
10f2d63a 7896 else
e6cc62c6
VS
7897 echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6
10f2d63a 7899 fi
e6cc62c6 7900
10f2d63a 7901
5005acfe 7902 enablestring=
e6cc62c6
VS
7903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7904echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7905 no_cache=0
7906 # Check whether --enable-statbmp or --disable-statbmp was given.
7907if test "${enable_statbmp+set}" = set; then
7908 enableval="$enable_statbmp"
e6cc62c6 7909
10f2d63a
VZ
7910 if test "$enableval" = yes; then
7911 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7912 else
7913 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7914 fi
e6cc62c6 7915
10f2d63a 7916else
e6cc62c6 7917
10f2d63a
VZ
7918 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7919 if test "x$LINE" != x ; then
7920 eval "DEFAULT_$LINE"
7921 else
7922 no_cache=1
7923 fi
7924
7925 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7926
e6cc62c6 7927fi;
10f2d63a
VZ
7928
7929 eval "$ac_cv_use_statbmp"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7935 echo "$as_me:$LINENO: result: yes" >&5
7936echo "${ECHO_T}yes" >&6
10f2d63a 7937 else
e6cc62c6
VS
7938 echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6
10f2d63a 7940 fi
e6cc62c6 7941
10f2d63a 7942
5005acfe 7943 enablestring=
e6cc62c6
VS
7944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7945echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7946 no_cache=0
7947 # Check whether --enable-statbox or --disable-statbox was given.
7948if test "${enable_statbox+set}" = set; then
7949 enableval="$enable_statbox"
e6cc62c6 7950
10f2d63a
VZ
7951 if test "$enableval" = yes; then
7952 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7953 else
7954 ac_cv_use_statbox='wxUSE_STATBOX=no'
7955 fi
e6cc62c6 7956
10f2d63a 7957else
e6cc62c6 7958
10f2d63a
VZ
7959 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7960 if test "x$LINE" != x ; then
7961 eval "DEFAULT_$LINE"
7962 else
7963 no_cache=1
7964 fi
7965
7966 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7967
e6cc62c6 7968fi;
10f2d63a
VZ
7969
7970 eval "$ac_cv_use_statbox"
7971 if test "$no_cache" != 1; then
7972 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7973 fi
7974
7975 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7976 echo "$as_me:$LINENO: result: yes" >&5
7977echo "${ECHO_T}yes" >&6
10f2d63a 7978 else
e6cc62c6
VS
7979 echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
10f2d63a 7981 fi
e6cc62c6 7982
10f2d63a 7983
5005acfe 7984 enablestring=
e6cc62c6
VS
7985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7986echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7987 no_cache=0
7988 # Check whether --enable-statline or --disable-statline was given.
7989if test "${enable_statline+set}" = set; then
7990 enableval="$enable_statline"
e6cc62c6 7991
10f2d63a
VZ
7992 if test "$enableval" = yes; then
7993 ac_cv_use_statline='wxUSE_STATLINE=yes'
7994 else
7995 ac_cv_use_statline='wxUSE_STATLINE=no'
7996 fi
e6cc62c6 7997
10f2d63a 7998else
e6cc62c6 7999
10f2d63a
VZ
8000 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 8008
e6cc62c6 8009fi;
10f2d63a
VZ
8010
8011 eval "$ac_cv_use_statline"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
8017 echo "$as_me:$LINENO: result: yes" >&5
8018echo "${ECHO_T}yes" >&6
10f2d63a 8019 else
e6cc62c6
VS
8020 echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
10f2d63a 8022 fi
e6cc62c6 8023
10f2d63a 8024
5005acfe 8025 enablestring=
e6cc62c6
VS
8026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8027echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
8028 no_cache=0
8029 # Check whether --enable-stattext or --disable-stattext was given.
8030if test "${enable_stattext+set}" = set; then
8031 enableval="$enable_stattext"
e6cc62c6 8032
1e6feb95
VZ
8033 if test "$enableval" = yes; then
8034 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8035 else
8036 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8037 fi
e6cc62c6 8038
1e6feb95 8039else
e6cc62c6 8040
1e6feb95
VZ
8041 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8042 if test "x$LINE" != x ; then
8043 eval "DEFAULT_$LINE"
8044 else
8045 no_cache=1
8046 fi
8047
8048 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 8049
e6cc62c6 8050fi;
1e6feb95
VZ
8051
8052 eval "$ac_cv_use_stattext"
8053 if test "$no_cache" != 1; then
8054 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8055 fi
8056
8057 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
8058 echo "$as_me:$LINENO: result: yes" >&5
8059echo "${ECHO_T}yes" >&6
1e6feb95 8060 else
e6cc62c6
VS
8061 echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6
1e6feb95 8063 fi
e6cc62c6 8064
1e6feb95 8065
5005acfe 8066 enablestring=
e6cc62c6
VS
8067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8068echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
8069 no_cache=0
8070 # Check whether --enable-statusbar or --disable-statusbar was given.
8071if test "${enable_statusbar+set}" = set; then
8072 enableval="$enable_statusbar"
e6cc62c6 8073
10f2d63a
VZ
8074 if test "$enableval" = yes; then
8075 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8076 else
8077 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8078 fi
e6cc62c6 8079
10f2d63a 8080else
e6cc62c6 8081
10f2d63a
VZ
8082 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8083 if test "x$LINE" != x ; then
8084 eval "DEFAULT_$LINE"
8085 else
8086 no_cache=1
8087 fi
8088
8089 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8090
e6cc62c6 8091fi;
10f2d63a
VZ
8092
8093 eval "$ac_cv_use_statusbar"
8094 if test "$no_cache" != 1; then
8095 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8096 fi
8097
8098 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8099 echo "$as_me:$LINENO: result: yes" >&5
8100echo "${ECHO_T}yes" >&6
10f2d63a 8101 else
e6cc62c6
VS
8102 echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
10f2d63a 8104 fi
e6cc62c6 8105
10f2d63a 8106
5005acfe 8107 enablestring=
e6cc62c6
VS
8108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8109echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8110 no_cache=0
8111 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8112if test "${enable_tabdialog+set}" = set; then
8113 enableval="$enable_tabdialog"
e6cc62c6 8114
10f2d63a
VZ
8115 if test "$enableval" = yes; then
8116 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8117 else
8118 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8119 fi
e6cc62c6 8120
10f2d63a 8121else
e6cc62c6 8122
10f2d63a
VZ
8123 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8131
e6cc62c6 8132fi;
10f2d63a
VZ
8133
8134 eval "$ac_cv_use_tabdialog"
8135 if test "$no_cache" != 1; then
8136 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8137 fi
8138
8139 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8140 echo "$as_me:$LINENO: result: yes" >&5
8141echo "${ECHO_T}yes" >&6
10f2d63a 8142 else
e6cc62c6
VS
8143 echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
10f2d63a 8145 fi
e6cc62c6 8146
10f2d63a 8147
5005acfe 8148 enablestring=
e6cc62c6
VS
8149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8150echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8151 no_cache=0
8152 # Check whether --enable-textctrl or --disable-textctrl was given.
8153if test "${enable_textctrl+set}" = set; then
8154 enableval="$enable_textctrl"
e6cc62c6 8155
1e6feb95
VZ
8156 if test "$enableval" = yes; then
8157 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8158 else
8159 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8160 fi
e6cc62c6 8161
1e6feb95 8162else
e6cc62c6 8163
1e6feb95
VZ
8164 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8165 if test "x$LINE" != x ; then
8166 eval "DEFAULT_$LINE"
8167 else
8168 no_cache=1
8169 fi
8170
8171 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8172
e6cc62c6 8173fi;
1e6feb95
VZ
8174
8175 eval "$ac_cv_use_textctrl"
8176 if test "$no_cache" != 1; then
8177 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8178 fi
8179
8180 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8181 echo "$as_me:$LINENO: result: yes" >&5
8182echo "${ECHO_T}yes" >&6
1e6feb95 8183 else
e6cc62c6
VS
8184 echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6
1e6feb95 8186 fi
e6cc62c6 8187
1e6feb95 8188
5005acfe 8189 enablestring=
e6cc62c6
VS
8190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8191echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8192 no_cache=0
8193 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8194if test "${enable_togglebtn+set}" = set; then
8195 enableval="$enable_togglebtn"
e6cc62c6 8196
1db8dc4a
VZ
8197 if test "$enableval" = yes; then
8198 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8199 else
8200 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8201 fi
e6cc62c6 8202
1db8dc4a 8203else
e6cc62c6 8204
1db8dc4a
VZ
8205 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8213
e6cc62c6 8214fi;
1db8dc4a
VZ
8215
8216 eval "$ac_cv_use_togglebtn"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8222 echo "$as_me:$LINENO: result: yes" >&5
8223echo "${ECHO_T}yes" >&6
1db8dc4a 8224 else
e6cc62c6
VS
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
1db8dc4a 8227 fi
e6cc62c6 8228
1db8dc4a 8229
5005acfe 8230 enablestring=
e6cc62c6
VS
8231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8232echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8233 no_cache=0
8234 # Check whether --enable-toolbar or --disable-toolbar was given.
8235if test "${enable_toolbar+set}" = set; then
8236 enableval="$enable_toolbar"
e6cc62c6 8237
10f2d63a
VZ
8238 if test "$enableval" = yes; then
8239 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8240 else
8241 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8242 fi
e6cc62c6 8243
10f2d63a 8244else
e6cc62c6 8245
10f2d63a
VZ
8246 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8254
e6cc62c6 8255fi;
10f2d63a
VZ
8256
8257 eval "$ac_cv_use_toolbar"
8258 if test "$no_cache" != 1; then
8259 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8260 fi
8261
8262 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8263 echo "$as_me:$LINENO: result: yes" >&5
8264echo "${ECHO_T}yes" >&6
10f2d63a 8265 else
e6cc62c6
VS
8266 echo "$as_me:$LINENO: result: no" >&5
8267echo "${ECHO_T}no" >&6
10f2d63a 8268 fi
e6cc62c6 8269
10f2d63a 8270
5005acfe 8271 enablestring=
e6cc62c6
VS
8272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8273echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8274 no_cache=0
8275 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8276if test "${enable_tbarnative+set}" = set; then
8277 enableval="$enable_tbarnative"
e6cc62c6 8278
360d6699
VZ
8279 if test "$enableval" = yes; then
8280 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8281 else
8282 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8283 fi
e6cc62c6 8284
360d6699 8285else
e6cc62c6 8286
360d6699
VZ
8287 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8288 if test "x$LINE" != x ; then
8289 eval "DEFAULT_$LINE"
8290 else
8291 no_cache=1
8292 fi
8293
8294 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8295
e6cc62c6 8296fi;
360d6699
VZ
8297
8298 eval "$ac_cv_use_tbarnative"
8299 if test "$no_cache" != 1; then
8300 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8301 fi
8302
8303 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8304 echo "$as_me:$LINENO: result: yes" >&5
8305echo "${ECHO_T}yes" >&6
360d6699 8306 else
e6cc62c6
VS
8307 echo "$as_me:$LINENO: result: no" >&5
8308echo "${ECHO_T}no" >&6
360d6699 8309 fi
e6cc62c6 8310
360d6699 8311
5005acfe 8312 enablestring=
e6cc62c6
VS
8313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8314echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8315 no_cache=0
8316 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8317if test "${enable_tbarsmpl+set}" = set; then
8318 enableval="$enable_tbarsmpl"
e6cc62c6 8319
360d6699
VZ
8320 if test "$enableval" = yes; then
8321 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8322 else
8323 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8324 fi
e6cc62c6 8325
360d6699 8326else
e6cc62c6 8327
360d6699
VZ
8328 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8336
e6cc62c6 8337fi;
360d6699
VZ
8338
8339 eval "$ac_cv_use_tbarsmpl"
8340 if test "$no_cache" != 1; then
8341 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8342 fi
8343
8344 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8345 echo "$as_me:$LINENO: result: yes" >&5
8346echo "${ECHO_T}yes" >&6
360d6699 8347 else
e6cc62c6
VS
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
360d6699 8350 fi
e6cc62c6 8351
360d6699 8352
5005acfe 8353 enablestring=
e6cc62c6
VS
8354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8355echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8356 no_cache=0
8357 # Check whether --enable-treectrl or --disable-treectrl was given.
8358if test "${enable_treectrl+set}" = set; then
8359 enableval="$enable_treectrl"
e6cc62c6 8360
10f2d63a
VZ
8361 if test "$enableval" = yes; then
8362 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8363 else
8364 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8365 fi
e6cc62c6 8366
10f2d63a 8367else
e6cc62c6 8368
10f2d63a
VZ
8369 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8370 if test "x$LINE" != x ; then
8371 eval "DEFAULT_$LINE"
8372 else
8373 no_cache=1
8374 fi
8375
8376 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8377
e6cc62c6 8378fi;
10f2d63a 8379
1e6feb95
VZ
8380 eval "$ac_cv_use_treectrl"
8381 if test "$no_cache" != 1; then
8382 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8383 fi
8384
8385 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8386 echo "$as_me:$LINENO: result: yes" >&5
8387echo "${ECHO_T}yes" >&6
1e6feb95 8388 else
e6cc62c6
VS
8389 echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6
1e6feb95 8391 fi
e6cc62c6 8392
1e6feb95 8393
5005acfe 8394 enablestring=
e6cc62c6
VS
8395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8396echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8397 no_cache=0
8398 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8399if test "${enable_tipwindow+set}" = set; then
8400 enableval="$enable_tipwindow"
e6cc62c6 8401
9926e4a4
VZ
8402 if test "$enableval" = yes; then
8403 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8404 else
8405 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8406 fi
e6cc62c6 8407
9926e4a4 8408else
e6cc62c6 8409
9926e4a4
VZ
8410 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8411 if test "x$LINE" != x ; then
8412 eval "DEFAULT_$LINE"
8413 else
8414 no_cache=1
8415 fi
8416
8417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8418
e6cc62c6 8419fi;
9926e4a4
VZ
8420
8421 eval "$ac_cv_use_tipwindow"
8422 if test "$no_cache" != 1; then
8423 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8424 fi
8425
8426 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8427 echo "$as_me:$LINENO: result: yes" >&5
8428echo "${ECHO_T}yes" >&6
9926e4a4 8429 else
e6cc62c6
VS
8430 echo "$as_me:$LINENO: result: no" >&5
8431echo "${ECHO_T}no" >&6
9926e4a4 8432 fi
e6cc62c6 8433
9926e4a4 8434
5005acfe 8435 enablestring=
e6cc62c6
VS
8436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8437echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8438 no_cache=0
8439 # Check whether --enable-popupwin or --disable-popupwin was given.
8440if test "${enable_popupwin+set}" = set; then
8441 enableval="$enable_popupwin"
e6cc62c6 8442
9f41d601
RR
8443 if test "$enableval" = yes; then
8444 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8445 else
8446 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8447 fi
e6cc62c6 8448
9f41d601 8449else
e6cc62c6 8450
9f41d601
RR
8451 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8452 if test "x$LINE" != x ; then
8453 eval "DEFAULT_$LINE"
8454 else
8455 no_cache=1
8456 fi
8457
8458 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8459
e6cc62c6 8460fi;
9f41d601
RR
8461
8462 eval "$ac_cv_use_popupwin"
8463 if test "$no_cache" != 1; then
8464 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8465 fi
8466
8467 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8468 echo "$as_me:$LINENO: result: yes" >&5
8469echo "${ECHO_T}yes" >&6
9f41d601 8470 else
e6cc62c6
VS
8471 echo "$as_me:$LINENO: result: no" >&5
8472echo "${ECHO_T}no" >&6
9f41d601 8473 fi
e6cc62c6 8474
52127426 8475
8284b0c5
MB
8476
8477
5005acfe 8478 enablestring=
e6cc62c6
VS
8479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8480echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8481 no_cache=0
8482 # Check whether --enable-commondlg or --disable-commondlg was given.
8483if test "${enable_commondlg+set}" = set; then
8484 enableval="$enable_commondlg"
e6cc62c6 8485
1e6feb95
VZ
8486 if test "$enableval" = yes; then
8487 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8488 else
8489 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8490 fi
e6cc62c6 8491
1e6feb95 8492else
e6cc62c6 8493
1e6feb95
VZ
8494 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8495 if test "x$LINE" != x ; then
8496 eval "DEFAULT_$LINE"
8497 else
8498 no_cache=1
8499 fi
8500
8501 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8502
e6cc62c6 8503fi;
1e6feb95
VZ
8504
8505 eval "$ac_cv_use_commondlg"
8506 if test "$no_cache" != 1; then
8507 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8508 fi
8509
8510 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8511 echo "$as_me:$LINENO: result: yes" >&5
8512echo "${ECHO_T}yes" >&6
1e6feb95 8513 else
e6cc62c6
VS
8514 echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
1e6feb95 8516 fi
e6cc62c6 8517
1e6feb95 8518
5005acfe 8519 enablestring=
e6cc62c6
VS
8520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8521echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8522 no_cache=0
8523 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8524if test "${enable_choicedlg+set}" = set; then
8525 enableval="$enable_choicedlg"
e6cc62c6 8526
1e6feb95
VZ
8527 if test "$enableval" = yes; then
8528 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8529 else
8530 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8531 fi
e6cc62c6 8532
1e6feb95 8533else
e6cc62c6 8534
1e6feb95
VZ
8535 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8536 if test "x$LINE" != x ; then
8537 eval "DEFAULT_$LINE"
8538 else
8539 no_cache=1
8540 fi
8541
8542 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8543
e6cc62c6 8544fi;
1e6feb95
VZ
8545
8546 eval "$ac_cv_use_choicedlg"
8547 if test "$no_cache" != 1; then
8548 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8549 fi
8550
8551 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8552 echo "$as_me:$LINENO: result: yes" >&5
8553echo "${ECHO_T}yes" >&6
1e6feb95 8554 else
e6cc62c6
VS
8555 echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
1e6feb95 8557 fi
e6cc62c6 8558
1e6feb95 8559
5005acfe 8560 enablestring=
e6cc62c6
VS
8561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8562echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8563 no_cache=0
8564 # Check whether --enable-coldlg or --disable-coldlg was given.
8565if test "${enable_coldlg+set}" = set; then
8566 enableval="$enable_coldlg"
e6cc62c6 8567
1e6feb95
VZ
8568 if test "$enableval" = yes; then
8569 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8570 else
8571 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8572 fi
e6cc62c6 8573
1e6feb95 8574else
e6cc62c6 8575
1e6feb95
VZ
8576 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8577 if test "x$LINE" != x ; then
8578 eval "DEFAULT_$LINE"
8579 else
8580 no_cache=1
8581 fi
8582
8583 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8584
e6cc62c6 8585fi;
1e6feb95
VZ
8586
8587 eval "$ac_cv_use_coldlg"
8588 if test "$no_cache" != 1; then
8589 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8590 fi
8591
8592 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8593 echo "$as_me:$LINENO: result: yes" >&5
8594echo "${ECHO_T}yes" >&6
1e6feb95 8595 else
e6cc62c6
VS
8596 echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
1e6feb95 8598 fi
e6cc62c6 8599
1e6feb95 8600
5005acfe 8601 enablestring=
e6cc62c6
VS
8602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8603echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8604 no_cache=0
8605 # Check whether --enable-filedlg or --disable-filedlg was given.
8606if test "${enable_filedlg+set}" = set; then
8607 enableval="$enable_filedlg"
e6cc62c6 8608
1e6feb95
VZ
8609 if test "$enableval" = yes; then
8610 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8611 else
8612 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8613 fi
e6cc62c6 8614
1e6feb95 8615else
e6cc62c6 8616
1e6feb95
VZ
8617 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8618 if test "x$LINE" != x ; then
8619 eval "DEFAULT_$LINE"
8620 else
8621 no_cache=1
8622 fi
8623
8624 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8625
e6cc62c6 8626fi;
1e6feb95
VZ
8627
8628 eval "$ac_cv_use_filedlg"
8629 if test "$no_cache" != 1; then
8630 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8631 fi
8632
8633 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8634 echo "$as_me:$LINENO: result: yes" >&5
8635echo "${ECHO_T}yes" >&6
1e6feb95 8636 else
e6cc62c6
VS
8637 echo "$as_me:$LINENO: result: no" >&5
8638echo "${ECHO_T}no" >&6
1e6feb95 8639 fi
e6cc62c6 8640
1e6feb95 8641
5005acfe 8642 enablestring=
e6cc62c6
VS
8643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8644echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8645 no_cache=0
69d27ff7
MB
8646 # Check whether --enable-finddlg or --disable-finddlg was given.
8647if test "${enable_finddlg+set}" = set; then
8648 enableval="$enable_finddlg"
e6cc62c6 8649
8db37e06 8650 if test "$enableval" = yes; then
69d27ff7 8651 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8652 else
69d27ff7 8653 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8654 fi
e6cc62c6 8655
8db37e06 8656else
e6cc62c6 8657
8db37e06
VZ
8658 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8659 if test "x$LINE" != x ; then
8660 eval "DEFAULT_$LINE"
8661 else
8662 no_cache=1
8663 fi
8664
69d27ff7 8665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8666
e6cc62c6 8667fi;
8db37e06 8668
69d27ff7 8669 eval "$ac_cv_use_finddlg"
8db37e06 8670 if test "$no_cache" != 1; then
69d27ff7 8671 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8672 fi
8673
8674 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8675 echo "$as_me:$LINENO: result: yes" >&5
8676echo "${ECHO_T}yes" >&6
8db37e06 8677 else
e6cc62c6
VS
8678 echo "$as_me:$LINENO: result: no" >&5
8679echo "${ECHO_T}no" >&6
8db37e06 8680 fi
e6cc62c6 8681
8db37e06 8682
5005acfe 8683 enablestring=
e6cc62c6
VS
8684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8685echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8686 no_cache=0
8687 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8688if test "${enable_fontdlg+set}" = set; then
8689 enableval="$enable_fontdlg"
e6cc62c6 8690
1e6feb95
VZ
8691 if test "$enableval" = yes; then
8692 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8693 else
8694 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8695 fi
e6cc62c6 8696
1e6feb95 8697else
e6cc62c6 8698
1e6feb95
VZ
8699 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8700 if test "x$LINE" != x ; then
8701 eval "DEFAULT_$LINE"
8702 else
8703 no_cache=1
8704 fi
8705
8706 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8707
e6cc62c6 8708fi;
1e6feb95
VZ
8709
8710 eval "$ac_cv_use_fontdlg"
8711 if test "$no_cache" != 1; then
8712 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8713 fi
8714
8715 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8716 echo "$as_me:$LINENO: result: yes" >&5
8717echo "${ECHO_T}yes" >&6
1e6feb95 8718 else
e6cc62c6
VS
8719 echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
1e6feb95 8721 fi
e6cc62c6 8722
1e6feb95 8723
5005acfe 8724 enablestring=
e6cc62c6
VS
8725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8726echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8727 no_cache=0
8728 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8729if test "${enable_dirdlg+set}" = set; then
8730 enableval="$enable_dirdlg"
e6cc62c6 8731
1e6feb95
VZ
8732 if test "$enableval" = yes; then
8733 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8734 else
8735 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8736 fi
e6cc62c6 8737
1e6feb95 8738else
e6cc62c6 8739
1e6feb95
VZ
8740 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8741 if test "x$LINE" != x ; then
8742 eval "DEFAULT_$LINE"
8743 else
8744 no_cache=1
8745 fi
8746
8747 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8748
e6cc62c6 8749fi;
1e6feb95
VZ
8750
8751 eval "$ac_cv_use_dirdlg"
10f2d63a 8752 if test "$no_cache" != 1; then
1e6feb95 8753 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8754 fi
8755
1e6feb95 8756 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8757 echo "$as_me:$LINENO: result: yes" >&5
8758echo "${ECHO_T}yes" >&6
10f2d63a 8759 else
e6cc62c6
VS
8760 echo "$as_me:$LINENO: result: no" >&5
8761echo "${ECHO_T}no" >&6
10f2d63a 8762 fi
e6cc62c6 8763
698dcdb6 8764
5005acfe 8765 enablestring=
e6cc62c6
VS
8766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8767echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8768 no_cache=0
1e6feb95
VZ
8769 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8770if test "${enable_msgdlg+set}" = set; then
8771 enableval="$enable_msgdlg"
e6cc62c6 8772
10f2d63a 8773 if test "$enableval" = yes; then
1e6feb95 8774 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8775 else
1e6feb95 8776 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8777 fi
e6cc62c6 8778
10f2d63a 8779else
e6cc62c6 8780
1e6feb95 8781 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8782 if test "x$LINE" != x ; then
8783 eval "DEFAULT_$LINE"
8784 else
8785 no_cache=1
8786 fi
8787
1e6feb95 8788 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8789
e6cc62c6 8790fi;
10f2d63a 8791
1e6feb95 8792 eval "$ac_cv_use_msgdlg"
10f2d63a 8793 if test "$no_cache" != 1; then
1e6feb95 8794 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8795 fi
8796
1e6feb95 8797 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8798 echo "$as_me:$LINENO: result: yes" >&5
8799echo "${ECHO_T}yes" >&6
10f2d63a 8800 else
e6cc62c6
VS
8801 echo "$as_me:$LINENO: result: no" >&5
8802echo "${ECHO_T}no" >&6
10f2d63a 8803 fi
e6cc62c6 8804
10f2d63a 8805
5005acfe 8806 enablestring=
e6cc62c6
VS
8807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8808echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8809 no_cache=0
1e6feb95
VZ
8810 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8811if test "${enable_numberdlg+set}" = set; then
8812 enableval="$enable_numberdlg"
e6cc62c6 8813
10f2d63a 8814 if test "$enableval" = yes; then
1e6feb95 8815 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8816 else
1e6feb95 8817 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8818 fi
e6cc62c6 8819
10f2d63a 8820else
e6cc62c6 8821
1e6feb95 8822 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8823 if test "x$LINE" != x ; then
8824 eval "DEFAULT_$LINE"
8825 else
8826 no_cache=1
8827 fi
8828
1e6feb95 8829 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8830
e6cc62c6 8831fi;
10f2d63a 8832
1e6feb95 8833 eval "$ac_cv_use_numberdlg"
10f2d63a 8834 if test "$no_cache" != 1; then
1e6feb95 8835 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8836 fi
8837
1e6feb95 8838 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8839 echo "$as_me:$LINENO: result: yes" >&5
8840echo "${ECHO_T}yes" >&6
10f2d63a 8841 else
e6cc62c6
VS
8842 echo "$as_me:$LINENO: result: no" >&5
8843echo "${ECHO_T}no" >&6
10f2d63a 8844 fi
e6cc62c6 8845
10f2d63a 8846
5005acfe 8847 enablestring=
e6cc62c6
VS
8848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8849echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8850 no_cache=0
8851 # Check whether --enable-splash or --disable-splash was given.
8852if test "${enable_splash+set}" = set; then
8853 enableval="$enable_splash"
e6cc62c6 8854
cbca9943
VZ
8855 if test "$enableval" = yes; then
8856 ac_cv_use_splash='wxUSE_SPLASH=yes'
8857 else
8858 ac_cv_use_splash='wxUSE_SPLASH=no'
8859 fi
e6cc62c6 8860
cbca9943 8861else
e6cc62c6 8862
cbca9943
VZ
8863 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8864 if test "x$LINE" != x ; then
8865 eval "DEFAULT_$LINE"
8866 else
8867 no_cache=1
8868 fi
8869
8870 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8871
e6cc62c6 8872fi;
cbca9943
VZ
8873
8874 eval "$ac_cv_use_splash"
8875 if test "$no_cache" != 1; then
8876 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8877 fi
8878
8879 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8880 echo "$as_me:$LINENO: result: yes" >&5
8881echo "${ECHO_T}yes" >&6
cbca9943 8882 else
e6cc62c6
VS
8883 echo "$as_me:$LINENO: result: no" >&5
8884echo "${ECHO_T}no" >&6
cbca9943 8885 fi
e6cc62c6 8886
cbca9943 8887
5005acfe 8888 enablestring=
e6cc62c6
VS
8889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8890echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8891 no_cache=0
8892 # Check whether --enable-textdlg or --disable-textdlg was given.
8893if test "${enable_textdlg+set}" = set; then
8894 enableval="$enable_textdlg"
e6cc62c6 8895
10f2d63a
VZ
8896 if test "$enableval" = yes; then
8897 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8898 else
8899 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8900 fi
e6cc62c6 8901
10f2d63a 8902else
e6cc62c6 8903
10f2d63a
VZ
8904 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8905 if test "x$LINE" != x ; then
8906 eval "DEFAULT_$LINE"
8907 else
8908 no_cache=1
8909 fi
8910
8911 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8912
e6cc62c6 8913fi;
10f2d63a
VZ
8914
8915 eval "$ac_cv_use_textdlg"
8916 if test "$no_cache" != 1; then
8917 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8918 fi
8919
8920 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8921 echo "$as_me:$LINENO: result: yes" >&5
8922echo "${ECHO_T}yes" >&6
10f2d63a 8923 else
e6cc62c6
VS
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
10f2d63a 8926 fi
e6cc62c6 8927
10f2d63a 8928
5005acfe 8929 enablestring=
e6cc62c6
VS
8930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8931echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8932 no_cache=0
8933 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8934if test "${enable_tipdlg+set}" = set; then
8935 enableval="$enable_tipdlg"
e6cc62c6 8936
10f2d63a
VZ
8937 if test "$enableval" = yes; then
8938 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8939 else
8940 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8941 fi
e6cc62c6 8942
10f2d63a 8943else
e6cc62c6 8944
10f2d63a
VZ
8945 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8946 if test "x$LINE" != x ; then
8947 eval "DEFAULT_$LINE"
8948 else
8949 no_cache=1
8950 fi
8951
8952 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8953
e6cc62c6 8954fi;
10f2d63a
VZ
8955
8956 eval "$ac_cv_use_tipdlg"
8957 if test "$no_cache" != 1; then
8958 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8959 fi
8960
8961 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8962 echo "$as_me:$LINENO: result: yes" >&5
8963echo "${ECHO_T}yes" >&6
10f2d63a 8964 else
e6cc62c6
VS
8965 echo "$as_me:$LINENO: result: no" >&5
8966echo "${ECHO_T}no" >&6
10f2d63a 8967 fi
e6cc62c6 8968
10f2d63a 8969
5005acfe 8970 enablestring=
e6cc62c6
VS
8971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8972echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8973 no_cache=0
8974 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8975if test "${enable_progressdlg+set}" = set; then
8976 enableval="$enable_progressdlg"
e6cc62c6 8977
10f2d63a
VZ
8978 if test "$enableval" = yes; then
8979 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8980 else
8981 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8982 fi
e6cc62c6 8983
10f2d63a 8984else
e6cc62c6 8985
10f2d63a
VZ
8986 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8987 if test "x$LINE" != x ; then
8988 eval "DEFAULT_$LINE"
8989 else
8990 no_cache=1
8991 fi
8992
8993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8994
e6cc62c6 8995fi;
10f2d63a
VZ
8996
8997 eval "$ac_cv_use_progressdlg"
8998 if test "$no_cache" != 1; then
8999 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9000 fi
9001
9002 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
9003 echo "$as_me:$LINENO: result: yes" >&5
9004echo "${ECHO_T}yes" >&6
10f2d63a 9005 else
e6cc62c6
VS
9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
10f2d63a 9008 fi
e6cc62c6 9009
10f2d63a 9010
5005acfe 9011 enablestring=
e6cc62c6
VS
9012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9013echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
9014 no_cache=0
9015 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9016if test "${enable_wizarddlg+set}" = set; then
9017 enableval="$enable_wizarddlg"
e6cc62c6 9018
b1f5d087
VZ
9019 if test "$enableval" = yes; then
9020 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9021 else
9022 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9023 fi
e6cc62c6 9024
b1f5d087 9025else
e6cc62c6 9026
b1f5d087
VZ
9027 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9028 if test "x$LINE" != x ; then
9029 eval "DEFAULT_$LINE"
9030 else
9031 no_cache=1
9032 fi
9033
9034 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 9035
e6cc62c6 9036fi;
b1f5d087
VZ
9037
9038 eval "$ac_cv_use_wizarddlg"
9039 if test "$no_cache" != 1; then
9040 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9041 fi
9042
9043 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
9044 echo "$as_me:$LINENO: result: yes" >&5
9045echo "${ECHO_T}yes" >&6
b1f5d087 9046 else
e6cc62c6
VS
9047 echo "$as_me:$LINENO: result: no" >&5
9048echo "${ECHO_T}no" >&6
b1f5d087 9049 fi
e6cc62c6 9050
8284b0c5
MB
9051
9052
52127426 9053
5005acfe 9054 enablestring=
e6cc62c6
VS
9055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9056echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
9057 no_cache=0
9058 # Check whether --enable-menus or --disable-menus was given.
9059if test "${enable_menus+set}" = set; then
9060 enableval="$enable_menus"
e6cc62c6 9061
1e6feb95
VZ
9062 if test "$enableval" = yes; then
9063 ac_cv_use_menus='wxUSE_MENUS=yes'
9064 else
9065 ac_cv_use_menus='wxUSE_MENUS=no'
9066 fi
e6cc62c6 9067
1e6feb95 9068else
e6cc62c6 9069
1e6feb95
VZ
9070 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9071 if test "x$LINE" != x ; then
9072 eval "DEFAULT_$LINE"
9073 else
9074 no_cache=1
9075 fi
9076
9077 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9078
e6cc62c6 9079fi;
1e6feb95
VZ
9080
9081 eval "$ac_cv_use_menus"
9082 if test "$no_cache" != 1; then
9083 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9084 fi
9085
9086 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9087 echo "$as_me:$LINENO: result: yes" >&5
9088echo "${ECHO_T}yes" >&6
1e6feb95 9089 else
e6cc62c6
VS
9090 echo "$as_me:$LINENO: result: no" >&5
9091echo "${ECHO_T}no" >&6
1e6feb95 9092 fi
e6cc62c6 9093
1e6feb95 9094
5005acfe 9095 enablestring=
e6cc62c6
VS
9096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9097echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9098 no_cache=0
9099 # Check whether --enable-miniframe or --disable-miniframe was given.
9100if test "${enable_miniframe+set}" = set; then
9101 enableval="$enable_miniframe"
e6cc62c6 9102
10f2d63a
VZ
9103 if test "$enableval" = yes; then
9104 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9105 else
9106 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9107 fi
e6cc62c6 9108
10f2d63a 9109else
e6cc62c6 9110
10f2d63a
VZ
9111 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9112 if test "x$LINE" != x ; then
9113 eval "DEFAULT_$LINE"
9114 else
9115 no_cache=1
9116 fi
9117
9118 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9119
e6cc62c6 9120fi;
10f2d63a
VZ
9121
9122 eval "$ac_cv_use_miniframe"
9123 if test "$no_cache" != 1; then
9124 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9125 fi
9126
9127 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9128 echo "$as_me:$LINENO: result: yes" >&5
9129echo "${ECHO_T}yes" >&6
10f2d63a 9130 else
e6cc62c6
VS
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
10f2d63a 9133 fi
e6cc62c6 9134
10f2d63a 9135
5005acfe 9136 enablestring=
e6cc62c6
VS
9137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9138echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9139 no_cache=0
9140 # Check whether --enable-tooltips or --disable-tooltips was given.
9141if test "${enable_tooltips+set}" = set; then
9142 enableval="$enable_tooltips"
e6cc62c6 9143
10f2d63a
VZ
9144 if test "$enableval" = yes; then
9145 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9146 else
9147 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9148 fi
e6cc62c6 9149
10f2d63a 9150else
e6cc62c6 9151
10f2d63a
VZ
9152 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9153 if test "x$LINE" != x ; then
9154 eval "DEFAULT_$LINE"
9155 else
9156 no_cache=1
9157 fi
9158
9159 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9160
e6cc62c6 9161fi;
10f2d63a
VZ
9162
9163 eval "$ac_cv_use_tooltips"
9164 if test "$no_cache" != 1; then
9165 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9166 fi
9167
9168 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9169 echo "$as_me:$LINENO: result: yes" >&5
9170echo "${ECHO_T}yes" >&6
10f2d63a 9171 else
e6cc62c6
VS
9172 echo "$as_me:$LINENO: result: no" >&5
9173echo "${ECHO_T}no" >&6
10f2d63a 9174 fi
e6cc62c6 9175
10f2d63a 9176
5005acfe 9177 enablestring=
e6cc62c6
VS
9178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9179echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9180 no_cache=0
9181 # Check whether --enable-splines or --disable-splines was given.
9182if test "${enable_splines+set}" = set; then
9183 enableval="$enable_splines"
e6cc62c6 9184
10f2d63a
VZ
9185 if test "$enableval" = yes; then
9186 ac_cv_use_splines='wxUSE_SPLINES=yes'
9187 else
9188 ac_cv_use_splines='wxUSE_SPLINES=no'
9189 fi
e6cc62c6 9190
10f2d63a 9191else
e6cc62c6 9192
10f2d63a
VZ
9193 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9194 if test "x$LINE" != x ; then
9195 eval "DEFAULT_$LINE"
9196 else
9197 no_cache=1
9198 fi
9199
9200 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9201
e6cc62c6 9202fi;
10f2d63a
VZ
9203
9204 eval "$ac_cv_use_splines"
9205 if test "$no_cache" != 1; then
9206 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9207 fi
9208
9209 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9210 echo "$as_me:$LINENO: result: yes" >&5
9211echo "${ECHO_T}yes" >&6
10f2d63a 9212 else
e6cc62c6
VS
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
10f2d63a 9215 fi
e6cc62c6 9216
10f2d63a 9217
5005acfe 9218 enablestring=
e6cc62c6
VS
9219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9220echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9221 no_cache=0
9222 # Check whether --enable-validators or --disable-validators was given.
9223if test "${enable_validators+set}" = set; then
9224 enableval="$enable_validators"
e6cc62c6 9225
10f2d63a
VZ
9226 if test "$enableval" = yes; then
9227 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9228 else
9229 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9230 fi
e6cc62c6 9231
10f2d63a 9232else
e6cc62c6 9233
10f2d63a
VZ
9234 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9235 if test "x$LINE" != x ; then
9236 eval "DEFAULT_$LINE"
9237 else
9238 no_cache=1
9239 fi
9240
9241 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9242
e6cc62c6 9243fi;
10f2d63a
VZ
9244
9245 eval "$ac_cv_use_validators"
9246 if test "$no_cache" != 1; then
9247 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9248 fi
9249
9250 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9251 echo "$as_me:$LINENO: result: yes" >&5
9252echo "${ECHO_T}yes" >&6
10f2d63a 9253 else
e6cc62c6
VS
9254 echo "$as_me:$LINENO: result: no" >&5
9255echo "${ECHO_T}no" >&6
10f2d63a 9256 fi
e6cc62c6 9257
10f2d63a 9258
5005acfe 9259 enablestring=
e6cc62c6
VS
9260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9261echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9262 no_cache=0
9263 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9264if test "${enable_busyinfo+set}" = set; then
9265 enableval="$enable_busyinfo"
e6cc62c6 9266
10f2d63a
VZ
9267 if test "$enableval" = yes; then
9268 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9269 else
9270 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9271 fi
e6cc62c6 9272
10f2d63a 9273else
e6cc62c6 9274
10f2d63a
VZ
9275 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9276 if test "x$LINE" != x ; then
9277 eval "DEFAULT_$LINE"
9278 else
9279 no_cache=1
9280 fi
9281
9282 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9283
e6cc62c6 9284fi;
10f2d63a
VZ
9285
9286 eval "$ac_cv_use_busyinfo"
9287 if test "$no_cache" != 1; then
9288 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9289 fi
9290
9291 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
10f2d63a 9294 else
e6cc62c6
VS
9295 echo "$as_me:$LINENO: result: no" >&5
9296echo "${ECHO_T}no" >&6
10f2d63a 9297 fi
e6cc62c6 9298
10f2d63a 9299
5005acfe 9300 enablestring=
e6cc62c6
VS
9301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9302echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9303 no_cache=0
9304 # Check whether --enable-joystick or --disable-joystick was given.
9305if test "${enable_joystick+set}" = set; then
9306 enableval="$enable_joystick"
e6cc62c6 9307
f6bcfd97
BP
9308 if test "$enableval" = yes; then
9309 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9310 else
9311 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9312 fi
e6cc62c6 9313
f6bcfd97 9314else
e6cc62c6 9315
f6bcfd97
BP
9316 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9317 if test "x$LINE" != x ; then
9318 eval "DEFAULT_$LINE"
9319 else
9320 no_cache=1
9321 fi
9322
9323 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9324
e6cc62c6 9325fi;
f6bcfd97
BP
9326
9327 eval "$ac_cv_use_joystick"
9328 if test "$no_cache" != 1; then
9329 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9330 fi
9331
9332 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9333 echo "$as_me:$LINENO: result: yes" >&5
9334echo "${ECHO_T}yes" >&6
f6bcfd97 9335 else
e6cc62c6
VS
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
f6bcfd97 9338 fi
e6cc62c6 9339
698dcdb6 9340
5005acfe 9341 enablestring=
e6cc62c6
VS
9342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9343echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9344 no_cache=0
9345 # Check whether --enable-metafile or --disable-metafile was given.
9346if test "${enable_metafile+set}" = set; then
9347 enableval="$enable_metafile"
e6cc62c6 9348
1e6feb95
VZ
9349 if test "$enableval" = yes; then
9350 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9351 else
9352 ac_cv_use_metafile='wxUSE_METAFILE=no'
9353 fi
e6cc62c6 9354
1e6feb95 9355else
e6cc62c6 9356
1e6feb95
VZ
9357 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9358 if test "x$LINE" != x ; then
9359 eval "DEFAULT_$LINE"
9360 else
9361 no_cache=1
9362 fi
9363
9364 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9365
e6cc62c6 9366fi;
1e6feb95
VZ
9367
9368 eval "$ac_cv_use_metafile"
9369 if test "$no_cache" != 1; then
9370 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9371 fi
9372
9373 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9374 echo "$as_me:$LINENO: result: yes" >&5
9375echo "${ECHO_T}yes" >&6
1e6feb95 9376 else
e6cc62c6
VS
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
1e6feb95 9379 fi
e6cc62c6 9380
1e6feb95 9381
5005acfe 9382 enablestring=
e6cc62c6
VS
9383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9384echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9385 no_cache=0
9386 # Check whether --enable-dragimage or --disable-dragimage was given.
9387if test "${enable_dragimage+set}" = set; then
9388 enableval="$enable_dragimage"
e6cc62c6 9389
24fd6d87
VZ
9390 if test "$enableval" = yes; then
9391 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9392 else
9393 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9394 fi
e6cc62c6 9395
24fd6d87 9396else
e6cc62c6 9397
24fd6d87
VZ
9398 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9399 if test "x$LINE" != x ; then
9400 eval "DEFAULT_$LINE"
9401 else
9402 no_cache=1
9403 fi
9404
9405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9406
e6cc62c6 9407fi;
24fd6d87
VZ
9408
9409 eval "$ac_cv_use_dragimage"
9410 if test "$no_cache" != 1; then
9411 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9412 fi
9413
9414 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9415 echo "$as_me:$LINENO: result: yes" >&5
9416echo "${ECHO_T}yes" >&6
24fd6d87 9417 else
e6cc62c6
VS
9418 echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
24fd6d87 9420 fi
e6cc62c6 9421
52127426 9422
7bb2947d 9423 enablestring=
e6cc62c6
VS
9424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9425echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9426 no_cache=0
9427 # Check whether --enable-accessibility or --disable-accessibility was given.
9428if test "${enable_accessibility+set}" = set; then
9429 enableval="$enable_accessibility"
e6cc62c6 9430
7bb2947d
MB
9431 if test "$enableval" = yes; then
9432 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9433 else
9434 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9435 fi
e6cc62c6 9436
7bb2947d 9437else
e6cc62c6 9438
7bb2947d
MB
9439 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9440 if test "x$LINE" != x ; then
9441 eval "DEFAULT_$LINE"
9442 else
9443 no_cache=1
9444 fi
9445
9446 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9447
e6cc62c6 9448fi;
7bb2947d
MB
9449
9450 eval "$ac_cv_use_accessibility"
9451 if test "$no_cache" != 1; then
9452 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9453 fi
9454
9455 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9456 echo "$as_me:$LINENO: result: yes" >&5
9457echo "${ECHO_T}yes" >&6
7bb2947d 9458 else
e6cc62c6
VS
9459 echo "$as_me:$LINENO: result: no" >&5
9460echo "${ECHO_T}no" >&6
7bb2947d 9461 fi
e6cc62c6 9462
7bb2947d 9463
8284b0c5
MB
9464
9465
5005acfe 9466 enablestring=
e6cc62c6
VS
9467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9468echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9469 no_cache=0
9470 # Check whether --enable-palette or --disable-palette was given.
9471if test "${enable_palette+set}" = set; then
9472 enableval="$enable_palette"
e6cc62c6 9473
edae8572
VZ
9474 if test "$enableval" = yes; then
9475 ac_cv_use_palette='wxUSE_PALETTE=yes'
9476 else
9477 ac_cv_use_palette='wxUSE_PALETTE=no'
9478 fi
e6cc62c6 9479
edae8572 9480else
e6cc62c6 9481
edae8572
VZ
9482 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9483 if test "x$LINE" != x ; then
9484 eval "DEFAULT_$LINE"
9485 else
9486 no_cache=1
9487 fi
9488
9489 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9490
e6cc62c6 9491fi;
edae8572
VZ
9492
9493 eval "$ac_cv_use_palette"
9494 if test "$no_cache" != 1; then
9495 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9496 fi
9497
9498 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9499 echo "$as_me:$LINENO: result: yes" >&5
9500echo "${ECHO_T}yes" >&6
edae8572 9501 else
e6cc62c6
VS
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
edae8572 9504 fi
e6cc62c6 9505
edae8572 9506
5005acfe 9507 enablestring=
e6cc62c6
VS
9508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9509echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9510 no_cache=0
9511 # Check whether --enable-image or --disable-image was given.
9512if test "${enable_image+set}" = set; then
9513 enableval="$enable_image"
e6cc62c6 9514
0046ff7c
VS
9515 if test "$enableval" = yes; then
9516 ac_cv_use_image='wxUSE_IMAGE=yes'
9517 else
9518 ac_cv_use_image='wxUSE_IMAGE=no'
9519 fi
e6cc62c6 9520
0046ff7c 9521else
e6cc62c6 9522
0046ff7c
VS
9523 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9524 if test "x$LINE" != x ; then
9525 eval "DEFAULT_$LINE"
9526 else
9527 no_cache=1
9528 fi
9529
9530 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9531
e6cc62c6 9532fi;
0046ff7c
VS
9533
9534 eval "$ac_cv_use_image"
9535 if test "$no_cache" != 1; then
9536 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9537 fi
9538
9539 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9540 echo "$as_me:$LINENO: result: yes" >&5
9541echo "${ECHO_T}yes" >&6
0046ff7c 9542 else
e6cc62c6
VS
9543 echo "$as_me:$LINENO: result: no" >&5
9544echo "${ECHO_T}no" >&6
0046ff7c 9545 fi
e6cc62c6 9546
0046ff7c 9547
5005acfe 9548 enablestring=
e6cc62c6
VS
9549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9550echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9551 no_cache=0
9552 # Check whether --enable-gif or --disable-gif was given.
9553if test "${enable_gif+set}" = set; then
9554 enableval="$enable_gif"
e6cc62c6 9555
10f2d63a
VZ
9556 if test "$enableval" = yes; then
9557 ac_cv_use_gif='wxUSE_GIF=yes'
9558 else
9559 ac_cv_use_gif='wxUSE_GIF=no'
9560 fi
e6cc62c6 9561
10f2d63a 9562else
e6cc62c6 9563
10f2d63a
VZ
9564 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9565 if test "x$LINE" != x ; then
9566 eval "DEFAULT_$LINE"
9567 else
9568 no_cache=1
9569 fi
9570
9571 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9572
e6cc62c6 9573fi;
10f2d63a
VZ
9574
9575 eval "$ac_cv_use_gif"
9576 if test "$no_cache" != 1; then
9577 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9578 fi
9579
9580 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9581 echo "$as_me:$LINENO: result: yes" >&5
9582echo "${ECHO_T}yes" >&6
10f2d63a 9583 else
e6cc62c6
VS
9584 echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6
10f2d63a 9586 fi
e6cc62c6 9587
10f2d63a 9588
5005acfe 9589 enablestring=
e6cc62c6
VS
9590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9591echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9592 no_cache=0
9593 # Check whether --enable-pcx or --disable-pcx was given.
9594if test "${enable_pcx+set}" = set; then
9595 enableval="$enable_pcx"
e6cc62c6 9596
10f2d63a
VZ
9597 if test "$enableval" = yes; then
9598 ac_cv_use_pcx='wxUSE_PCX=yes'
9599 else
9600 ac_cv_use_pcx='wxUSE_PCX=no'
9601 fi
e6cc62c6 9602
10f2d63a 9603else
e6cc62c6 9604
10f2d63a
VZ
9605 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9606 if test "x$LINE" != x ; then
9607 eval "DEFAULT_$LINE"
9608 else
9609 no_cache=1
9610 fi
9611
9612 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9613
e6cc62c6 9614fi;
10f2d63a
VZ
9615
9616 eval "$ac_cv_use_pcx"
9617 if test "$no_cache" != 1; then
9618 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9619 fi
9620
9621 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9622 echo "$as_me:$LINENO: result: yes" >&5
9623echo "${ECHO_T}yes" >&6
10f2d63a 9624 else
e6cc62c6
VS
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
10f2d63a 9627 fi
e6cc62c6 9628
10f2d63a 9629
5005acfe 9630 enablestring=
e6cc62c6
VS
9631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9632echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9633 no_cache=0
9634 # Check whether --enable-iff or --disable-iff was given.
9635if test "${enable_iff+set}" = set; then
9636 enableval="$enable_iff"
e6cc62c6 9637
4b6b4dfc
RR
9638 if test "$enableval" = yes; then
9639 ac_cv_use_iff='wxUSE_IFF=yes'
9640 else
9641 ac_cv_use_iff='wxUSE_IFF=no'
9642 fi
e6cc62c6 9643
4b6b4dfc 9644else
e6cc62c6 9645
4b6b4dfc
RR
9646 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9647 if test "x$LINE" != x ; then
9648 eval "DEFAULT_$LINE"
9649 else
9650 no_cache=1
9651 fi
9652
9653 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9654
e6cc62c6 9655fi;
4b6b4dfc
RR
9656
9657 eval "$ac_cv_use_iff"
9658 if test "$no_cache" != 1; then
9659 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9660 fi
9661
9662 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9663 echo "$as_me:$LINENO: result: yes" >&5
9664echo "${ECHO_T}yes" >&6
4b6b4dfc 9665 else
e6cc62c6
VS
9666 echo "$as_me:$LINENO: result: no" >&5
9667echo "${ECHO_T}no" >&6
4b6b4dfc 9668 fi
e6cc62c6 9669
4b6b4dfc 9670
5005acfe 9671 enablestring=
e6cc62c6
VS
9672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9673echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9674 no_cache=0
9675 # Check whether --enable-pnm or --disable-pnm was given.
9676if test "${enable_pnm+set}" = set; then
9677 enableval="$enable_pnm"
e6cc62c6 9678
10f2d63a
VZ
9679 if test "$enableval" = yes; then
9680 ac_cv_use_pnm='wxUSE_PNM=yes'
9681 else
9682 ac_cv_use_pnm='wxUSE_PNM=no'
9683 fi
e6cc62c6 9684
10f2d63a 9685else
e6cc62c6 9686
10f2d63a
VZ
9687 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9688 if test "x$LINE" != x ; then
9689 eval "DEFAULT_$LINE"
9690 else
9691 no_cache=1
9692 fi
9693
9694 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9695
e6cc62c6 9696fi;
10f2d63a
VZ
9697
9698 eval "$ac_cv_use_pnm"
9699 if test "$no_cache" != 1; then
9700 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9701 fi
9702
9703 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9704 echo "$as_me:$LINENO: result: yes" >&5
9705echo "${ECHO_T}yes" >&6
10f2d63a 9706 else
e6cc62c6
VS
9707 echo "$as_me:$LINENO: result: no" >&5
9708echo "${ECHO_T}no" >&6
10f2d63a 9709 fi
e6cc62c6 9710
10f2d63a 9711
5005acfe 9712 enablestring=
e6cc62c6
VS
9713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9714echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9715 no_cache=0
69d27ff7
MB
9716 # Check whether --enable-xpm or --disable-xpm was given.
9717if test "${enable_xpm+set}" = set; then
9718 enableval="$enable_xpm"
e6cc62c6 9719
0046ff7c 9720 if test "$enableval" = yes; then
69d27ff7 9721 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9722 else
69d27ff7 9723 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9724 fi
e6cc62c6 9725
0046ff7c 9726else
e6cc62c6 9727
0046ff7c
VS
9728 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9729 if test "x$LINE" != x ; then
9730 eval "DEFAULT_$LINE"
9731 else
9732 no_cache=1
9733 fi
9734
69d27ff7 9735 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9736
e6cc62c6 9737fi;
0046ff7c 9738
69d27ff7 9739 eval "$ac_cv_use_xpm"
0046ff7c 9740 if test "$no_cache" != 1; then
69d27ff7 9741 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9742 fi
9743
9744 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9745 echo "$as_me:$LINENO: result: yes" >&5
9746echo "${ECHO_T}yes" >&6
0046ff7c 9747 else
e6cc62c6
VS
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
0046ff7c 9750 fi
e6cc62c6 9751
0046ff7c 9752
5005acfe 9753 enablestring=
e6cc62c6
VS
9754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9755echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9756 no_cache=0
c7206e64
VS
9757 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9758if test "${enable_ico_cur+set}" = set; then
9759 enableval="$enable_ico_cur"
e6cc62c6 9760
658974ae 9761 if test "$enableval" = yes; then
c7206e64 9762 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9763 else
c7206e64 9764 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9765 fi
e6cc62c6 9766
658974ae 9767else
e6cc62c6 9768
658974ae
VS
9769 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9770 if test "x$LINE" != x ; then
9771 eval "DEFAULT_$LINE"
9772 else
9773 no_cache=1
9774 fi
9775
c7206e64 9776 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9777
e6cc62c6 9778fi;
658974ae 9779
c7206e64 9780 eval "$ac_cv_use_ico_cur"
658974ae 9781 if test "$no_cache" != 1; then
c7206e64 9782 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9783 fi
9784
9785 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9786 echo "$as_me:$LINENO: result: yes" >&5
9787echo "${ECHO_T}yes" >&6
658974ae 9788 else
e6cc62c6
VS
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
658974ae 9791 fi
e6cc62c6 9792
658974ae 9793
b12915c1
VZ
9794fi
9795
029b47ad
VS
9796
9797
9798 enablestring=
9799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9800echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9801 no_cache=0
9802 # Check whether --enable-official_build or --disable-official_build was given.
9803if test "${enable_official_build+set}" = set; then
9804 enableval="$enable_official_build"
9805
9806 if test "$enableval" = yes; then
9807 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9808 else
9809 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9810 fi
9811
9812else
9813
9814 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9815 if test "x$LINE" != x ; then
9816 eval "DEFAULT_$LINE"
9817 else
9818 no_cache=1
9819 fi
9820
9821 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9822
9823fi;
9824
9825 eval "$ac_cv_use_official_build"
9826 if test "$no_cache" != 1; then
9827 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9828 fi
9829
9830 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9831 echo "$as_me:$LINENO: result: yes" >&5
9832echo "${ECHO_T}yes" >&6
9833 else
9834 echo "$as_me:$LINENO: result: no" >&5
9835echo "${ECHO_T}no" >&6
9836 fi
9837
9838# Check whether --enable-vendor or --disable-vendor was given.
9839if test "${enable_vendor+set}" = set; then
9840 enableval="$enable_vendor"
9841 VENDOR="$enableval"
9842fi;
9843if test "x$VENDOR" = "x"; then
9844 VENDOR="custom"
9845fi
9846
d558c907
VS
9847case "${host}" in
9848 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9849 PATH_IFS=';'
d558c907
VS
9850 ;;
9851 *)
9852 PATH_IFS=':'
d558c907
VS
9853 ;;
9854esac
9855
8284b0c5
MB
9856
9857
10f2d63a
VZ
9858 echo "saving argument cache $wx_arg_cache_file"
9859 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9860
8284b0c5 9861
e6cc62c6
VS
9862
9863echo "$as_me:$LINENO: checking for toolkit" >&5
9864echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9865
9866# In Wine, we need to default to MSW, not GTK or MOTIF
9867if test "$wxUSE_WINE" = "yes"; then
9868 DEFAULT_DEFAULT_wxUSE_GTK=0
9869 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9870 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9871 wxUSE_SHARED=no
89e6bf6d 9872fi
10f2d63a
VZ
9873
9874if test "$wxUSE_GUI" = "yes"; then
9875
3a922bb4 9876 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9877 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9878echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9879 { (exit 1); exit 1; }; }
3a922bb4 9880 fi
b12915c1 9881
3a922bb4
RL
9882 if test "$TOOLKIT_GIVEN" = 1; then
9883 for toolkit in `echo $ALL_TOOLKITS`; do
9884 var=wxUSE_$toolkit
9885 eval "value=\$${var}"
9886 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9887 done
10f2d63a 9888 else
3a922bb4
RL
9889 for toolkit in `echo $ALL_TOOLKITS`; do
9890 if test "$has_toolkit_in_cache" != 1; then
9891 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9892 else
9893 var=DEFAULT_wxUSE_$toolkit
9894 fi
9895 eval "wxUSE_$toolkit=\$${var}"
9896 done
10f2d63a 9897 fi
10f2d63a 9898
ac0c4cc3
DE
9899 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9900 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9901 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9902
d558c907 9903 case "${host}" in
6fa882bd 9904 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9905 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9906 esac
10f2d63a 9907
3a922bb4
RL
9908 case "$NUM_TOOLKITS" in
9909 1)
9910 ;;
9911 0)
e6cc62c6
VS
9912 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9913echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9914 { (exit 1); exit 1; }; }
3a922bb4
RL
9915 ;;
9916 *)
e6cc62c6
VS
9917 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9918echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9919 { (exit 1); exit 1; }; }
3a922bb4 9920 esac
10f2d63a 9921
3a922bb4
RL
9922 for toolkit in `echo $ALL_TOOLKITS`; do
9923 var=wxUSE_$toolkit
9924 eval "value=\$${var}"
9925 if test "x$value" != x; then
9926 cache_var=CACHE_$toolkit
9927 eval "cache=\$${cache_var}"
9928 if test "$cache" = 1; then
9929 echo "$var=$value" >> ${wx_arg_cache_file}
9930 fi
9931 if test "$value" = 1; then
89fe663f 9932 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9933 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9934echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9935 fi
9936 fi
9937 done
10f2d63a 9938else
9de9b8f0
VZ
9939 if test "x$host_alias" != "x"; then
9940 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9941echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9942 else
9943 echo "$as_me:$LINENO: result: base only" >&5
9944echo "${ECHO_T}base only" >&6
9945 fi
10f2d63a
VZ
9946fi
9947
43d99b6d
VS
9948wants_win32=0
9949doesnt_want_win32=0
17234b26
MB
9950case "${host}" in
9951 *-*-cygwin*)
9952 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9953 wants_win32=1
9954 else
9955 doesnt_want_win32=1
17234b26
MB
9956 fi
9957 ;;
9958 *-*-mingw*)
43d99b6d 9959 wants_win32=1
17234b26
MB
9960 ;;
9961esac
9962
89e6bf6d
VZ
9963if test "$wxUSE_WINE" = "yes"; then
9964 wants_win32=1
9965 CC=winegcc
9966 CXX=wineg++
9967 RESCOMP=wrc
30f2fa6c 9968 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9969fi
9970
43d99b6d 9971if test "$wants_win32" = 1 ; then
17234b26
MB
9972 USE_UNIX=0
9973 USE_WIN32=1
e6cc62c6 9974 cat >>confdefs.h <<\_ACEOF
17234b26 9975#define __WIN32__ 1
e6cc62c6 9976_ACEOF
17234b26 9977
e6cc62c6 9978 cat >>confdefs.h <<\_ACEOF
17234b26 9979#define __WIN95__ 1
e6cc62c6 9980_ACEOF
17234b26 9981
e6cc62c6 9982 cat >>confdefs.h <<\_ACEOF
17234b26 9983#define __WINDOWS__ 1
e6cc62c6 9984_ACEOF
17234b26 9985
e6cc62c6 9986 cat >>confdefs.h <<\_ACEOF
17234b26 9987#define __GNUWIN32__ 1
e6cc62c6 9988_ACEOF
17234b26 9989
e6cc62c6 9990 cat >>confdefs.h <<\_ACEOF
17234b26 9991#define STRICT 1
e6cc62c6 9992_ACEOF
17234b26 9993
e6cc62c6 9994 cat >>confdefs.h <<\_ACEOF
17234b26 9995#define WINVER 0x0400
e6cc62c6 9996_ACEOF
17234b26 9997
43d99b6d
VS
9998fi
9999if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
10000 USE_UNIX=1
10001 USE_WIN32=0
10002fi
10003
10004if test "$USE_UNIX" = 1 ; then
10005 wxUSE_UNIX=yes
e6cc62c6 10006 cat >>confdefs.h <<\_ACEOF
17234b26 10007#define __UNIX__ 1
e6cc62c6 10008_ACEOF
17234b26
MB
10009
10010fi
10011
8284b0c5 10012
e6cc62c6 10013cat >confcache <<\_ACEOF
10f2d63a
VZ
10014# This file is a shell script that caches the results of configure
10015# tests run on this system so they can be shared between configure
e6cc62c6
VS
10016# scripts and configure runs, see configure's option --config-cache.
10017# It is not useful on other systems. If it contains results you don't
10018# want to keep, you may remove or edit it.
10f2d63a 10019#
e6cc62c6
VS
10020# config.status only pays attention to the cache file if you give it
10021# the --recheck option to rerun configure.
10f2d63a 10022#
e6cc62c6
VS
10023# `ac_cv_env_foo' variables (set or unset) will be overridden when
10024# loading this file, other *unset* `ac_cv_foo' will be assigned the
10025# following values.
10026
10027_ACEOF
10028
10f2d63a
VZ
10029# The following way of writing the cache mishandles newlines in values,
10030# but we know of no workaround that is simple, portable, and efficient.
10031# So, don't put newlines in cache variables' values.
10032# Ultrix sh set writes to stderr and can't be redirected directly,
10033# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
10034{
10035 (set) 2>&1 |
10036 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10037 *ac_space=\ *)
10038 # `set' does not quote correctly, so add quotes (double-quote
10039 # substitution turns \\\\ into \\, and sed turns \\ into \).
10040 sed -n \
32ddf007
VS
10041 "s/'/'\\\\''/g;
10042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
10043 ;;
10044 *)
10045 # `set' quotes correctly as required by POSIX, so do not add quotes.
10046 sed -n \
32ddf007 10047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
10048 ;;
10049 esac;
10050} |
10051 sed '
10052 t clear
10053 : clear
10054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10055 t end
10056 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10057 : end' >>confcache
10058if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 10059 if test -w $cache_file; then
e6cc62c6
VS
10060 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10061 cat confcache >$cache_file
10f2d63a
VZ
10062 else
10063 echo "not updating unwritable cache $cache_file"
10064 fi
10065fi
10066rm -f confcache
10067
e59890c3 10068if test "$build" != "$host" ; then
9d353d4a 10069 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
10070 CC=$host_alias-gcc
10071 CXX=$host_alias-c++
10072 AR=$host_alias-ar
10073 RANLIB=$host_alias-ranlib
10074 DLLTOOL=$host_alias-dlltool
10075 RESCOMP=$host_alias-windres
10076 LD=$host_alias-ld
10077 NM=$host_alias-nm
10078 STRIP=$host_alias-strip
10079 else
e6cc62c6
VS
10080 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10081echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10082 { (exit 1); exit 1; }; }
3a922bb4 10083 fi
10f2d63a
VZ
10084fi
10085
ec603395 10086CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10087ac_ext=c
10088ac_cpp='$CPP $CPPFLAGS'
10089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092if test -n "$ac_tool_prefix"; then
10093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10094set dummy ${ac_tool_prefix}gcc; ac_word=$2
10095echo "$as_me:$LINENO: checking for $ac_word" >&5
10096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097if test "${ac_cv_prog_CC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 if test -n "$CC"; then
10101 ac_cv_prog_CC="$CC" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115done
10116
10117fi
10118fi
10119CC=$ac_cv_prog_CC
10120if test -n "$CC"; then
10121 echo "$as_me:$LINENO: result: $CC" >&5
10122echo "${ECHO_T}$CC" >&6
10123else
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
10126fi
10127
10128fi
10129if test -z "$ac_cv_prog_CC"; then
10130 ac_ct_CC=$CC
10131 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10132set dummy gcc; ac_word=$2
e6cc62c6
VS
10133echo "$as_me:$LINENO: checking for $ac_word" >&5
10134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137else
10138 if test -n "$ac_ct_CC"; then
10139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_ac_ct_CC="gcc"
10149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10151 fi
10152done
10153done
10154
10155fi
10156fi
10157ac_ct_CC=$ac_cv_prog_ac_ct_CC
10158if test -n "$ac_ct_CC"; then
10159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10160echo "${ECHO_T}$ac_ct_CC" >&6
10161else
10162 echo "$as_me:$LINENO: result: no" >&5
10163echo "${ECHO_T}no" >&6
10164fi
10165
10166 CC=$ac_ct_CC
10167else
10168 CC="$ac_cv_prog_CC"
10169fi
10170
10171if test -z "$CC"; then
10172 if test -n "$ac_tool_prefix"; then
10173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10174set dummy ${ac_tool_prefix}cc; ac_word=$2
10175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177if test "${ac_cv_prog_CC+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10179else
10180 if test -n "$CC"; then
10181 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10182else
e6cc62c6
VS
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_CC="${ac_tool_prefix}cc"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
10f2d63a 10197fi
6232543b 10198fi
e6cc62c6 10199CC=$ac_cv_prog_CC
6232543b 10200if test -n "$CC"; then
e6cc62c6
VS
10201 echo "$as_me:$LINENO: result: $CC" >&5
10202echo "${ECHO_T}$CC" >&6
10203else
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206fi
10207
10208fi
10209if test -z "$ac_cv_prog_CC"; then
10210 ac_ct_CC=$CC
10211 # Extract the first word of "cc", so it can be a program name with args.
10212set dummy cc; ac_word=$2
10213echo "$as_me:$LINENO: checking for $ac_word" >&5
10214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10215if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218 if test -n "$ac_ct_CC"; then
10219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10220else
10221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222for as_dir in $PATH
10223do
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_prog_ac_ct_CC="cc"
10229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232done
10233done
10234
10235fi
10236fi
10237ac_ct_CC=$ac_cv_prog_ac_ct_CC
10238if test -n "$ac_ct_CC"; then
10239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10240echo "${ECHO_T}$ac_ct_CC" >&6
10241else
10242 echo "$as_me:$LINENO: result: no" >&5
10243echo "${ECHO_T}no" >&6
10244fi
10245
10246 CC=$ac_ct_CC
247f5006 10247else
e6cc62c6 10248 CC="$ac_cv_prog_CC"
247f5006
VZ
10249fi
10250
e6cc62c6 10251fi
5c6fa7d2
RR
10252if test -z "$CC"; then
10253 # Extract the first word of "cc", so it can be a program name with args.
10254set dummy cc; ac_word=$2
e6cc62c6
VS
10255echo "$as_me:$LINENO: checking for $ac_word" >&5
10256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10257if test "${ac_cv_prog_CC+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10259else
10260 if test -n "$CC"; then
10261 ac_cv_prog_CC="$CC" # Let the user override the test.
10262else
10263 ac_prog_rejected=no
e6cc62c6
VS
10264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265for as_dir in $PATH
10266do
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10272 ac_prog_rejected=yes
10273 continue
10274 fi
10275 ac_cv_prog_CC="cc"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280done
10281
328a083c
RR
10282if test $ac_prog_rejected = yes; then
10283 # We found a bogon in the path, so make sure we never use it.
10284 set dummy $ac_cv_prog_CC
10285 shift
e6cc62c6 10286 if test $# != 0; then
328a083c 10287 # We chose a different compiler from the bogus one.
1e487827
VS
10288 # However, it has the same basename, so the bogon will be chosen
10289 # first if we set CC to just the basename; use the full file name.
10290 shift
e6cc62c6 10291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10292 fi
1e487827
VS
10293fi
10294fi
10295fi
e6cc62c6 10296CC=$ac_cv_prog_CC
1e487827 10297if test -n "$CC"; then
e6cc62c6
VS
10298 echo "$as_me:$LINENO: result: $CC" >&5
10299echo "${ECHO_T}$CC" >&6
703e0a69 10300else
e6cc62c6
VS
10301 echo "$as_me:$LINENO: result: no" >&5
10302echo "${ECHO_T}no" >&6
703e0a69 10303fi
1e487827 10304
e6cc62c6
VS
10305fi
10306if test -z "$CC"; then
10307 if test -n "$ac_tool_prefix"; then
10308 for ac_prog in cl
10309 do
10310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10312echo "$as_me:$LINENO: checking for $ac_word" >&5
10313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10314if test "${ac_cv_prog_CC+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10316else
10317 if test -n "$CC"; then
10318 ac_cv_prog_CC="$CC" # Let the user override the test.
10319else
e6cc62c6
VS
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331done
10332done
10333
f09359cf
VS
10334fi
10335fi
e6cc62c6 10336CC=$ac_cv_prog_CC
f09359cf 10337if test -n "$CC"; then
e6cc62c6
VS
10338 echo "$as_me:$LINENO: result: $CC" >&5
10339echo "${ECHO_T}$CC" >&6
f09359cf 10340else
e6cc62c6
VS
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
5c6fa7d2 10343fi
1e487827 10344
e6cc62c6
VS
10345 test -n "$CC" && break
10346 done
10347fi
10348if test -z "$CC"; then
10349 ac_ct_CC=$CC
10350 for ac_prog in cl
10351do
10352 # Extract the first word of "$ac_prog", so it can be a program name with args.
10353set dummy $ac_prog; ac_word=$2
10354echo "$as_me:$LINENO: checking for $ac_word" >&5
10355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 if test -n "$ac_ct_CC"; then
10360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_ac_ct_CC="$ac_prog"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373done
10374done
f09359cf 10375
e6cc62c6
VS
10376fi
10377fi
10378ac_ct_CC=$ac_cv_prog_ac_ct_CC
10379if test -n "$ac_ct_CC"; then
10380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10381echo "${ECHO_T}$ac_ct_CC" >&6
10382else
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
10385fi
f09359cf 10386
e6cc62c6
VS
10387 test -n "$ac_ct_CC" && break
10388done
247f5006 10389
e6cc62c6
VS
10390 CC=$ac_ct_CC
10391fi
10392
10393fi
10394
10395
10396test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10397See \`config.log' for more details." >&5
10398echo "$as_me: error: no acceptable C compiler found in \$PATH
10399See \`config.log' for more details." >&2;}
10400 { (exit 1); exit 1; }; }
10401
10402# Provide some information about the compiler.
10403echo "$as_me:$LINENO:" \
10404 "checking for C compiler version" >&5
10405ac_compiler=`set X $ac_compile; echo $2`
10406{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10407 (eval $ac_compiler --version </dev/null >&5) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }
10411{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10412 (eval $ac_compiler -v </dev/null >&5) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }
10416{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10417 (eval $ac_compiler -V </dev/null >&5) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }
10421
10422cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
10428
10429int
10430main ()
10431{
247f5006 10432
e6cc62c6
VS
10433 ;
10434 return 0;
10435}
10436_ACEOF
10437ac_clean_files_save=$ac_clean_files
10438ac_clean_files="$ac_clean_files a.out a.exe b.out"
10439# Try to create an executable without -o first, disregard a.out.
10440# It will help us diagnose broken compilers, and finding out an intuition
10441# of exeext.
32ddf007
VS
10442echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10443echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10444ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10445if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10446 (eval $ac_link_default) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
10450 # Find the output, starting from the most likely. This scheme is
10451# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10452# resort.
10453
10454# Be careful to initialize this variable, since it used to be cached.
10455# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10456ac_cv_exeext=
10457# b.out is created by i960 compilers.
10458for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10459do
10460 test -f "$ac_file" || continue
10461 case $ac_file in
10462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
32ddf007 10463 ;;
e6cc62c6 10464 conftest.$ac_ext )
32ddf007
VS
10465 # This is the source file.
10466 ;;
e6cc62c6 10467 [ab].out )
32ddf007
VS
10468 # We found the default executable, but exeext='' is most
10469 # certainly right.
10470 break;;
e6cc62c6 10471 *.* )
32ddf007
VS
10472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10473 # FIXME: I believe we export ac_cv_exeext for Libtool,
10474 # but it would be cool to find out if it's true. Does anybody
10475 # maintain Libtool? --akim.
10476 export ac_cv_exeext
10477 break;;
e6cc62c6 10478 * )
32ddf007 10479 break;;
e6cc62c6
VS
10480 esac
10481done
10482else
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10487See \`config.log' for more details." >&5
10488echo "$as_me: error: C compiler cannot create executables
10489See \`config.log' for more details." >&2;}
10490 { (exit 77); exit 77; }; }
10491fi
10492
10493ac_exeext=$ac_cv_exeext
10494echo "$as_me:$LINENO: result: $ac_file" >&5
10495echo "${ECHO_T}$ac_file" >&6
10496
10497# Check the compiler produces executables we can run. If not, either
10498# the compiler is broken, or we cross compile.
10499echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10500echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10501# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10502# If not cross compiling, check that we can run a simple program.
10503if test "$cross_compiling" != yes; then
10504 if { ac_try='./$ac_file'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 cross_compiling=no
698dcdb6 10511 else
e6cc62c6
VS
10512 if test "$cross_compiling" = maybe; then
10513 cross_compiling=yes
10514 else
10515 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10516If you meant to cross compile, use \`--host'.
10517See \`config.log' for more details." >&5
10518echo "$as_me: error: cannot run C compiled programs.
10519If you meant to cross compile, use \`--host'.
10520See \`config.log' for more details." >&2;}
10521 { (exit 1); exit 1; }; }
10522 fi
698dcdb6 10523 fi
52127426 10524fi
e6cc62c6
VS
10525echo "$as_me:$LINENO: result: yes" >&5
10526echo "${ECHO_T}yes" >&6
10527
10528rm -f a.out a.exe conftest$ac_cv_exeext b.out
10529ac_clean_files=$ac_clean_files_save
10530# Check the compiler produces executables we can run. If not, either
10531# the compiler is broken, or we cross compile.
10532echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10533echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10534echo "$as_me:$LINENO: result: $cross_compiling" >&5
10535echo "${ECHO_T}$cross_compiling" >&6
10536
10537echo "$as_me:$LINENO: checking for suffix of executables" >&5
10538echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; then
10544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10545# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10546# work properly (i.e., refer to `conftest.exe'), while it won't with
10547# `rm'.
10548for ac_file in conftest.exe conftest conftest.*; do
10549 test -f "$ac_file" || continue
10550 case $ac_file in
10551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32ddf007
VS
10553 export ac_cv_exeext
10554 break;;
e6cc62c6
VS
10555 * ) break;;
10556 esac
10557done
5c6fa7d2 10558else
e6cc62c6
VS
10559 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10560See \`config.log' for more details." >&5
10561echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10562See \`config.log' for more details." >&2;}
10563 { (exit 1); exit 1; }; }
10564fi
10565
10566rm -f conftest$ac_cv_exeext
10567echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10568echo "${ECHO_T}$ac_cv_exeext" >&6
10569
10570rm -f conftest.$ac_ext
10571EXEEXT=$ac_cv_exeext
10572ac_exeext=$EXEEXT
10573echo "$as_me:$LINENO: checking for suffix of object files" >&5
10574echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10575if test "${ac_cv_objext+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584
10585int
10586main ()
10587{
f09359cf 10588
e6cc62c6
VS
10589 ;
10590 return 0;
10591}
10592_ACEOF
10593rm -f conftest.o conftest.obj
10594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; then
10599 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10600 case $ac_file in
10601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10603 break;;
10604 esac
10605done
a0b9e27f 10606else
e6cc62c6
VS
10607 echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10611See \`config.log' for more details." >&5
10612echo "$as_me: error: cannot compute suffix of object files: cannot compile
10613See \`config.log' for more details." >&2;}
10614 { (exit 1); exit 1; }; }
a0b9e27f 10615fi
247f5006 10616
e6cc62c6
VS
10617rm -f conftest.$ac_cv_objext conftest.$ac_ext
10618fi
10619echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10620echo "${ECHO_T}$ac_cv_objext" >&6
10621OBJEXT=$ac_cv_objext
10622ac_objext=$OBJEXT
10623echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10624echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10625if test "${ac_cv_c_compiler_gnu+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10627else
e6cc62c6 10628 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
10634
10635int
10636main ()
10637{
10638#ifndef __GNUC__
10639 choke me
10640#endif
10641
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext
10647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10648 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10649 ac_status=$?
32ddf007
VS
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
e6cc62c6
VS
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
e1293dcf 10655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_compiler_gnu=yes
10668else
10669 echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672ac_compiler_gnu=no
10673fi
32ddf007 10674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10675ac_cv_c_compiler_gnu=$ac_compiler_gnu
10676
10677fi
10678echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10679echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10680GCC=`test $ac_compiler_gnu = yes && echo yes`
10681ac_test_CFLAGS=${CFLAGS+set}
10682ac_save_CFLAGS=$CFLAGS
10683CFLAGS="-g"
10684echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10685echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10686if test "${ac_cv_prog_cc_g+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10690/* confdefs.h. */
10691_ACEOF
10692cat confdefs.h >>conftest.$ac_ext
10693cat >>conftest.$ac_ext <<_ACEOF
10694/* end confdefs.h. */
10695
10696int
10697main ()
10698{
10699
10700 ;
10701 return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10706 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10707 ac_status=$?
32ddf007
VS
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
e6cc62c6
VS
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
e1293dcf 10713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10f2d63a
VZ
10725 ac_cv_prog_cc_g=yes
10726else
e6cc62c6
VS
10727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10729
e6cc62c6 10730ac_cv_prog_cc_g=no
10f2d63a 10731fi
32ddf007 10732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10733fi
10734echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10735echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10736if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10737 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10738elif test $ac_cv_prog_cc_g = yes; then
10739 if test "$GCC" = yes; then
10f2d63a
VZ
10740 CFLAGS="-g -O2"
10741 else
f09359cf 10742 CFLAGS="-g"
10f2d63a 10743 fi
5c0a20c3 10744else
f09359cf
VS
10745 if test "$GCC" = yes; then
10746 CFLAGS="-O2"
10747 else
10748 CFLAGS=
10749 fi
10f2d63a 10750fi
e6cc62c6
VS
10751echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10752echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10753if test "${ac_cv_prog_cc_stdc+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 ac_cv_prog_cc_stdc=no
10757ac_save_CC=$CC
10758cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764#include <stdarg.h>
10765#include <stdio.h>
10766#include <sys/types.h>
10767#include <sys/stat.h>
10768/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10769struct buf { int x; };
10770FILE * (*rcsopen) (struct buf *, struct stat *, int);
10771static char *e (p, i)
10772 char **p;
10773 int i;
10774{
10775 return p[i];
10776}
10777static char *f (char * (*g) (char **, int), char **p, ...)
10778{
10779 char *s;
10780 va_list v;
10781 va_start (v,p);
10782 s = g (p, va_arg (v,int));
10783 va_end (v);
10784 return s;
10785}
32ddf007
VS
10786
10787/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10788 function prototypes and stuff, but not '\xHH' hex character constants.
10789 These don't provoke an error unfortunately, instead are silently treated
10790 as 'x'. The following induces an error, until -std1 is added to get
10791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10792 array size at least. It's necessary to write '\x00'==0 to get something
10793 that's true only with -std1. */
10794int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10795
e6cc62c6
VS
10796int test (int i, double x);
10797struct s1 {int (*f) (int a);};
10798struct s2 {int (*f) (double a);};
10799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10800int argc;
10801char **argv;
10802int
10803main ()
10804{
10805return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810# Don't try gcc -ansi; that turns off useful extensions and
10811# breaks some systems' header files.
10812# AIX -qlanglvl=ansi
10813# Ultrix and OSF/1 -std1
10814# HP-UX 10.20 and later -Ae
10815# HP-UX older versions -Aa -D_HPUX_SOURCE
10816# SVR4 -Xc -D__EXTENSIONS__
10817for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10818do
10819 CC="$ac_save_CC $ac_arg"
10820 rm -f conftest.$ac_objext
10821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10822 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10823 ac_status=$?
32ddf007
VS
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
e6cc62c6
VS
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
e1293dcf 10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_prog_cc_stdc=$ac_arg
10842break
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847fi
32ddf007 10848rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10849done
10850rm -f conftest.$ac_ext conftest.$ac_objext
10851CC=$ac_save_CC
10852
10853fi
10854
10855case "x$ac_cv_prog_cc_stdc" in
10856 x|xno)
10857 echo "$as_me:$LINENO: result: none needed" >&5
10858echo "${ECHO_T}none needed" >&6 ;;
10859 *)
10860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10861echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10862 CC="$CC $ac_cv_prog_cc_stdc" ;;
10863esac
10864
10865# Some people use a C++ compiler to compile C. Since we use `exit',
10866# in C++ we need to declare it. In case someone uses the same compiler
10867# for both compiling C and C++ we need to have the C++ compiler decide
10868# the declaration of exit, since it's the most demanding environment.
10869cat >conftest.$ac_ext <<_ACEOF
10870#ifndef __cplusplus
10871 choke me
10872#endif
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10876 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10877 ac_status=$?
32ddf007
VS
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
e6cc62c6
VS
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
e1293dcf 10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 for ac_declaration in \
32ddf007 10896 '' \
e6cc62c6
VS
10897 'extern "C" void std::exit (int) throw (); using std::exit;' \
10898 'extern "C" void std::exit (int); using std::exit;' \
10899 'extern "C" void exit (int) throw ();' \
10900 'extern "C" void exit (int);' \
10901 'void exit (int);'
10902do
10903 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
0f87e84c 10909$ac_declaration
32ddf007 10910#include <stdlib.h>
e6cc62c6
VS
10911int
10912main ()
10913{
10914exit (42);
10915 ;
10916 return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext
10920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10921 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10922 ac_status=$?
32ddf007
VS
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
e6cc62c6
VS
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
e1293dcf 10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 :
10941else
10942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945continue
10946fi
32ddf007 10947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10948 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
10953/* end confdefs.h. */
10954$ac_declaration
10955int
10956main ()
10957{
10958exit (42);
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10965 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10966 ac_status=$?
32ddf007
VS
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
e6cc62c6
VS
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
e1293dcf 10972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; } &&
10978 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 break
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989fi
32ddf007 10990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10991done
10992rm -f conftest*
10993if test -n "$ac_declaration"; then
10994 echo '#ifdef __cplusplus' >>confdefs.h
10995 echo $ac_declaration >>confdefs.h
10996 echo '#endif' >>confdefs.h
10997fi
10998
10999else
11000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003fi
32ddf007 11004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11005ac_ext=c
11006ac_cpp='$CPP $CPPFLAGS'
11007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
11010
11011
e6cc62c6
VS
11012
11013ac_ext=c
11014ac_cpp='$CPP $CPPFLAGS'
11015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11017ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11019echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
11020# On Suns, sometimes $CPP names a directory.
11021if test -n "$CPP" && test -d "$CPP"; then
11022 CPP=
11023fi
11024if test -z "$CPP"; then
e6cc62c6
VS
11025 if test "${ac_cv_prog_CPP+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 # Double quotes because CPP needs to be expanded
11029 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11030 do
11031 ac_preproc_ok=false
11032for ac_c_preproc_warn_flag in '' yes
11033do
11034 # Use a header file that comes with gcc, so configuring glibc
11035 # with a fresh cross-compiler works.
11036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037 # <limits.h> exists even on freestanding compilers.
10f2d63a 11038 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
11039 # not just through cpp. "Syntax error" is here to catch this case.
11040 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046#ifdef __STDC__
11047# include <limits.h>
11048#else
11049# include <assert.h>
11050#endif
32ddf007 11051 Syntax error
e6cc62c6
VS
11052_ACEOF
11053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null; then
11061 if test -s conftest.err; then
11062 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11064 else
11065 ac_cpp_err=
11066 fi
10f2d63a 11067else
e6cc62c6
VS
11068 ac_cpp_err=yes
11069fi
11070if test -z "$ac_cpp_err"; then
a0b9e27f 11071 :
247f5006 11072else
e6cc62c6
VS
11073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 # Broken: fails on valid input.
11077continue
11078fi
11079rm -f conftest.err conftest.$ac_ext
11080
11081 # OK, works on sane cases. Now check whether non-existent headers
11082 # can be detected and how.
11083 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089#include <ac_nonexistent.h>
11090_ACEOF
11091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null; then
11099 if test -s conftest.err; then
11100 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11102 else
11103 ac_cpp_err=
11104 fi
10f2d63a 11105else
e6cc62c6 11106 ac_cpp_err=yes
579d8138 11107fi
e6cc62c6
VS
11108if test -z "$ac_cpp_err"; then
11109 # Broken: success on invalid input.
11110continue
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 # Passes both tests.
11116ac_preproc_ok=:
11117break
52127426 11118fi
e6cc62c6
VS
11119rm -f conftest.err conftest.$ac_ext
11120
11121done
11122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11123rm -f conftest.err conftest.$ac_ext
11124if $ac_preproc_ok; then
11125 break
8284b0c5 11126fi
e6cc62c6
VS
11127
11128 done
11129 ac_cv_prog_CPP=$CPP
11130
11131fi
11132 CPP=$ac_cv_prog_CPP
11133else
11134 ac_cv_prog_CPP=$CPP
11135fi
11136echo "$as_me:$LINENO: result: $CPP" >&5
11137echo "${ECHO_T}$CPP" >&6
11138ac_preproc_ok=false
11139for ac_c_preproc_warn_flag in '' yes
11140do
11141 # Use a header file that comes with gcc, so configuring glibc
11142 # with a fresh cross-compiler works.
11143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144 # <limits.h> exists even on freestanding compilers.
11145 # On the NeXT, cc -E runs the code through the compiler's parser,
11146 # not just through cpp. "Syntax error" is here to catch this case.
11147 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
11153#ifdef __STDC__
11154# include <limits.h>
11155#else
11156# include <assert.h>
11157#endif
32ddf007 11158 Syntax error
e6cc62c6
VS
11159_ACEOF
11160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11171 else
11172 ac_cpp_err=
11173 fi
11174else
11175 ac_cpp_err=yes
11176fi
11177if test -z "$ac_cpp_err"; then
11178 :
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 # Broken: fails on valid input.
11184continue
11185fi
11186rm -f conftest.err conftest.$ac_ext
11187
11188 # OK, works on sane cases. Now check whether non-existent headers
11189 # can be detected and how.
11190 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196#include <ac_nonexistent.h>
11197_ACEOF
11198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } >/dev/null; then
11206 if test -s conftest.err; then
11207 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11209 else
11210 ac_cpp_err=
11211 fi
11212else
11213 ac_cpp_err=yes
11214fi
11215if test -z "$ac_cpp_err"; then
11216 # Broken: success on invalid input.
11217continue
11218else
11219 echo "$as_me: failed program was:" >&5
11220sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 # Passes both tests.
11223ac_preproc_ok=:
11224break
a0b9e27f 11225fi
e6cc62c6
VS
11226rm -f conftest.err conftest.$ac_ext
11227
11228done
11229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11230rm -f conftest.err conftest.$ac_ext
11231if $ac_preproc_ok; then
11232 :
11233else
11234 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11235See \`config.log' for more details." >&5
11236echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11237See \`config.log' for more details." >&2;}
11238 { (exit 1); exit 1; }; }
11239fi
11240
11241ac_ext=c
11242ac_cpp='$CPP $CPPFLAGS'
11243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247
11248echo "$as_me:$LINENO: checking for egrep" >&5
11249echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11250if test "${ac_cv_prog_egrep+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11252else
e6cc62c6
VS
11253 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11254 then ac_cv_prog_egrep='grep -E'
11255 else ac_cv_prog_egrep='egrep'
11256 fi
10f2d63a 11257fi
e6cc62c6
VS
11258echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11259echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11260 EGREP=$ac_cv_prog_egrep
11261
10f2d63a 11262
e6cc62c6
VS
11263if test $ac_cv_c_compiler_gnu = yes; then
11264 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11265echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11266if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11268else
11269 ac_pattern="Autoconf.*'x'"
e6cc62c6 11270 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
10f2d63a
VZ
11276#include <sgtty.h>
11277Autoconf TIOCGETP
e6cc62c6 11278_ACEOF
10f2d63a 11279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11280 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11281 ac_cv_prog_gcc_traditional=yes
11282else
10f2d63a
VZ
11283 ac_cv_prog_gcc_traditional=no
11284fi
11285rm -f conftest*
11286
8284b0c5 11287
10f2d63a 11288 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11289 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11290/* confdefs.h. */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h. */
10f2d63a
VZ
11295#include <termio.h>
11296Autoconf TCGETA
e6cc62c6 11297_ACEOF
10f2d63a 11298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11299 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11300 ac_cv_prog_gcc_traditional=yes
11301fi
11302rm -f conftest*
11303
11304 fi
11305fi
e6cc62c6
VS
11306echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11307echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11308 if test $ac_cv_prog_gcc_traditional = yes; then
11309 CC="$CC -traditional"
11310 fi
11311fi
11312
8284b0c5
MB
11313
11314
e6cc62c6
VS
11315
11316ac_ext=cc
1e487827 11317ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11321
698dcdb6 11322
ec603395 11323CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11324ac_ext=cc
11325ac_cpp='$CXXCPP $CPPFLAGS'
11326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11329if test -n "$ac_tool_prefix"; then
11330 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11331 do
11332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11334echo "$as_me:$LINENO: checking for $ac_word" >&5
11335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11336if test "${ac_cv_prog_CXX+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11338else
11339 if test -n "$CXX"; then
11340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11341else
e6cc62c6
VS
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353done
11354done
11355
10f2d63a
VZ
11356fi
11357fi
e6cc62c6 11358CXX=$ac_cv_prog_CXX
10f2d63a 11359if test -n "$CXX"; then
e6cc62c6
VS
11360 echo "$as_me:$LINENO: result: $CXX" >&5
11361echo "${ECHO_T}$CXX" >&6
10f2d63a 11362else
e6cc62c6
VS
11363 echo "$as_me:$LINENO: result: no" >&5
11364echo "${ECHO_T}no" >&6
10f2d63a
VZ
11365fi
11366
e6cc62c6
VS
11367 test -n "$CXX" && break
11368 done
11369fi
11370if test -z "$CXX"; then
11371 ac_ct_CXX=$CXX
11372 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11373do
11374 # Extract the first word of "$ac_prog", so it can be a program name with args.
11375set dummy $ac_prog; ac_word=$2
11376echo "$as_me:$LINENO: checking for $ac_word" >&5
11377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381 if test -n "$ac_ct_CXX"; then
11382 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11383else
11384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385for as_dir in $PATH
11386do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_prog_ac_ct_CXX="$ac_prog"
11392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11394 fi
11395done
10f2d63a 11396done
a0b9e27f 11397
8284b0c5 11398fi
a0b9e27f 11399fi
e6cc62c6
VS
11400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11401if test -n "$ac_ct_CXX"; then
11402 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11403echo "${ECHO_T}$ac_ct_CXX" >&6
11404else
11405 echo "$as_me:$LINENO: result: no" >&5
11406echo "${ECHO_T}no" >&6
a0b9e27f 11407fi
10f2d63a 11408
e6cc62c6
VS
11409 test -n "$ac_ct_CXX" && break
11410done
11411test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11412
11413 CXX=$ac_ct_CXX
11414fi
11415
11416
11417# Provide some information about the compiler.
11418echo "$as_me:$LINENO:" \
11419 "checking for C++ compiler version" >&5
11420ac_compiler=`set X $ac_compile; echo $2`
11421{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11422 (eval $ac_compiler --version </dev/null >&5) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }
11426{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11427 (eval $ac_compiler -v </dev/null >&5) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }
11431{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11432 (eval $ac_compiler -V </dev/null >&5) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }
11436
11437echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11438echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11439if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441else
11442 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448
11449int
11450main ()
11451{
11452#ifndef __GNUC__
11453 choke me
11454#endif
10f2d63a 11455
e6cc62c6
VS
11456 ;
11457 return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext
11461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11462 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11463 ac_status=$?
32ddf007
VS
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
e6cc62c6
VS
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
e1293dcf 11469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_compiler_gnu=yes
11482else
11483 echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486ac_compiler_gnu=no
11487fi
32ddf007 11488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11489ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11490
11491fi
11492echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11493echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11494GXX=`test $ac_compiler_gnu = yes && echo yes`
11495ac_test_CXXFLAGS=${CXXFLAGS+set}
11496ac_save_CXXFLAGS=$CXXFLAGS
11497CXXFLAGS="-g"
11498echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11499echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11500if test "${ac_cv_prog_cxx_g+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509
11510int
11511main ()
11512{
f09359cf 11513
e6cc62c6
VS
11514 ;
11515 return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11520 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11521 ac_status=$?
32ddf007
VS
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
e6cc62c6
VS
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
e1293dcf 11527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
10f2d63a
VZ
11539 ac_cv_prog_cxx_g=yes
11540else
e6cc62c6
VS
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11543
e6cc62c6 11544ac_cv_prog_cxx_g=no
10f2d63a 11545fi
32ddf007 11546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11547fi
11548echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11549echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11550if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11551 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11552elif test $ac_cv_prog_cxx_g = yes; then
11553 if test "$GXX" = yes; then
10f2d63a
VZ
11554 CXXFLAGS="-g -O2"
11555 else
f09359cf 11556 CXXFLAGS="-g"
10f2d63a 11557 fi
5c0a20c3 11558else
f09359cf
VS
11559 if test "$GXX" = yes; then
11560 CXXFLAGS="-O2"
11561 else
11562 CXXFLAGS=
11563 fi
10f2d63a 11564fi
e6cc62c6 11565for ac_declaration in \
32ddf007 11566 '' \
e6cc62c6
VS
11567 'extern "C" void std::exit (int) throw (); using std::exit;' \
11568 'extern "C" void std::exit (int); using std::exit;' \
11569 'extern "C" void exit (int) throw ();' \
11570 'extern "C" void exit (int);' \
11571 'void exit (int);'
11572do
11573 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
0f87e84c 11579$ac_declaration
32ddf007 11580#include <stdlib.h>
e6cc62c6
VS
11581int
11582main ()
11583{
11584exit (42);
11585 ;
11586 return 0;
11587}
11588_ACEOF
11589rm -f conftest.$ac_objext
11590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11591 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11592 ac_status=$?
32ddf007
VS
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
e6cc62c6
VS
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
e1293dcf 11598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 :
11611else
11612 echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
11615continue
11616fi
32ddf007 11617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11618 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624$ac_declaration
11625int
11626main ()
11627{
11628exit (42);
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext
11634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11635 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11636 ac_status=$?
32ddf007
VS
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
e6cc62c6
VS
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
e1293dcf 11642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 break
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
32ddf007 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11661done
11662rm -f conftest*
11663if test -n "$ac_declaration"; then
11664 echo '#ifdef __cplusplus' >>confdefs.h
11665 echo $ac_declaration >>confdefs.h
11666 echo '#endif' >>confdefs.h
11667fi
11668
11669ac_ext=cc
11670ac_cpp='$CXXCPP $CPPFLAGS'
11671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11674
11675
10f2d63a 11676ac_ext=c
10f2d63a 11677ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11681
11682
243f8ae5
VS
11683echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11684echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11685GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11686if test "$GCC" = "yes" ; then
11687 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11688 sed -n '1,/End of search list\./p' | \
11689 grep '^ */usr/local/include$' 2>&1 /dev/null \
11690 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11691fi
11692echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11693echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11694
e6cc62c6
VS
11695if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11697set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11698echo "$as_me:$LINENO: checking for $ac_word" >&5
11699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700if test "${ac_cv_prog_RANLIB+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11702else
11703 if test -n "$RANLIB"; then
11704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11705else
e6cc62c6
VS
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717done
11718done
11719
10f2d63a
VZ
11720fi
11721fi
e6cc62c6 11722RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11723if test -n "$RANLIB"; then
e6cc62c6
VS
11724 echo "$as_me:$LINENO: result: $RANLIB" >&5
11725echo "${ECHO_T}$RANLIB" >&6
11726else
11727 echo "$as_me:$LINENO: result: no" >&5
11728echo "${ECHO_T}no" >&6
11729fi
11730
11731fi
11732if test -z "$ac_cv_prog_RANLIB"; then
11733 ac_ct_RANLIB=$RANLIB
11734 # Extract the first word of "ranlib", so it can be a program name with args.
11735set dummy ranlib; ac_word=$2
11736echo "$as_me:$LINENO: checking for $ac_word" >&5
11737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11740else
e6cc62c6
VS
11741 if test -n "$ac_ct_RANLIB"; then
11742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_ac_ct_RANLIB="ranlib"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756done
11757
11758 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11759fi
11760fi
11761ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11762if test -n "$ac_ct_RANLIB"; then
11763 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11764echo "${ECHO_T}$ac_ct_RANLIB" >&6
11765else
11766 echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6
11768fi
11769
11770 RANLIB=$ac_ct_RANLIB
11771else
11772 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11773fi
11774
10f2d63a
VZ
11775
11776# Extract the first word of "ar", so it can be a program name with args.
11777set dummy ar; ac_word=$2
e6cc62c6
VS
11778echo "$as_me:$LINENO: checking for $ac_word" >&5
11779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11780if test "${ac_cv_prog_AR+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11782else
11783 if test -n "$AR"; then
11784 ac_cv_prog_AR="$AR" # Let the user override the test.
11785else
e6cc62c6
VS
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_AR="ar"
11794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798done
11799
10f2d63a
VZ
11800fi
11801fi
e6cc62c6 11802AR=$ac_cv_prog_AR
10f2d63a 11803if test -n "$AR"; then
e6cc62c6
VS
11804 echo "$as_me:$LINENO: result: $AR" >&5
11805echo "${ECHO_T}$AR" >&6
10f2d63a 11806else
e6cc62c6
VS
11807 echo "$as_me:$LINENO: result: no" >&5
11808echo "${ECHO_T}no" >&6
10f2d63a
VZ
11809fi
11810
911740e7
VS
11811if test "x$AR" = "x" ; then
11812 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11813echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11814 { (exit 1); exit 1; }; }
11815fi
8284b0c5 11816
6054113a 11817# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11818# so one script is as good as another. But avoid the broken or
11819# incompatible versions:
11820# SysV /etc/install, /usr/sbin/install
11821# SunOS /usr/etc/install
11822# IRIX /sbin/install
11823# AIX /bin/install
e6cc62c6 11824# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11825# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11826# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11827# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 11828# OS/2's system install, which has a completely different semantic
10f2d63a 11829# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11830echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11831echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11832if test -z "$INSTALL"; then
e6cc62c6
VS
11833if test "${ac_cv_path_install+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 # Account for people who put trailing slashes in PATH elements.
11842case $as_dir/ in
11843 ./ | .// | /cC/* | \
11844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 11845 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11846 /usr/ucb/* ) ;;
11847 *)
11848 # OSF1 and SCO ODT 3.0 have their own names for install.
11849 # Don't use installbsd from OSF since it installs stuff as root
11850 # by default.
11851 for ac_prog in ginstall scoinst install; do
11852 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
11853 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11854 if test $ac_prog = install &&
11855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11856 # AIX install. It has an incompatible calling convention.
11857 :
11858 elif test $ac_prog = install &&
11859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11860 # program-specific install script used by HP pwplus--don't use.
11861 :
11862 else
11863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11864 break 3
11865 fi
11866 fi
10f2d63a 11867 done
e6cc62c6
VS
11868 done
11869 ;;
11870esac
11871done
11872
10f2d63a
VZ
11873
11874fi
11875 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11876 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11877 else
11878 # As a last resort, use the slow shell script. We don't cache a
11879 # path for INSTALL within a source directory, because that will
11880 # break other packages using the cache if that directory is
11881 # removed, or if the path is relative.
e6cc62c6 11882 INSTALL=$ac_install_sh
10f2d63a
VZ
11883 fi
11884fi
e6cc62c6
VS
11885echo "$as_me:$LINENO: result: $INSTALL" >&5
11886echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11887
11888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11889# It thinks the first close brace ends the variable substitution.
11890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11891
e6cc62c6 11892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11893
10f2d63a
VZ
11894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11895
8284b0c5 11896
1d1b75ac
VZ
11897case ${INSTALL} in
11898 /* ) # Absolute
11899 ;;
4f5a7f74
VZ
11900 ?:* ) # Drive letter, considered as absolute.
11901 ;;
3bd8fb5f 11902 *)
1d1b75ac
VZ
11903 INSTALL=`pwd`/${INSTALL} ;;
11904esac
11905
4f5a7f74
VZ
11906case ${host} in
11907 *-hp-hpux* )
11908 INSTALL_DIR="mkdir"
11909 ;;
11910
11911 *) INSTALL_DIR="$INSTALL -d"
11912 ;;
11913esac
11914
8284b0c5 11915
6054113a
GD
11916case "${host}" in
11917
b5853384 11918 powerpc-*-darwin* )
eb99ae0b
GD
11919 INSTALL_PROGRAM="cp -fp"
11920 INSTALL_DATA="cp -fp"
6054113a
GD
11921 ;;
11922 *)
11923 ;;
d6853540 11924esac
698dcdb6 11925
10f2d63a
VZ
11926# Extract the first word of "strip", so it can be a program name with args.
11927set dummy strip; ac_word=$2
e6cc62c6
VS
11928echo "$as_me:$LINENO: checking for $ac_word" >&5
11929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930if test "${ac_cv_prog_STRIP+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11932else
11933 if test -n "$STRIP"; then
11934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11935else
e6cc62c6
VS
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_STRIP="strip"
11944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948done
11949
10f2d63a
VZ
11950 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11951fi
11952fi
e6cc62c6 11953STRIP=$ac_cv_prog_STRIP
10f2d63a 11954if test -n "$STRIP"; then
e6cc62c6
VS
11955 echo "$as_me:$LINENO: result: $STRIP" >&5
11956echo "${ECHO_T}$STRIP" >&6
10f2d63a 11957else
e6cc62c6
VS
11958 echo "$as_me:$LINENO: result: no" >&5
11959echo "${ECHO_T}no" >&6
10f2d63a
VZ
11960fi
11961
5c6fa7d2 11962
e6cc62c6
VS
11963echo "$as_me:$LINENO: checking if make is GNU make" >&5
11964echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11965if test "${wx_cv_prog_makeisgnu+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11967else
e6cc62c6 11968
414eab6d 11969 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11970 egrep -s GNU > /dev/null); then
414eab6d
VZ
11971 wx_cv_prog_makeisgnu="yes"
11972 else
11973 wx_cv_prog_makeisgnu="no"
11974 fi
11975
11976fi
e6cc62c6
VS
11977echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11978echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11979
11980if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11981 IF_GNU_MAKE=""
11982else
11983 IF_GNU_MAKE="#"
11984fi
11985
8284b0c5
MB
11986
11987
414eab6d 11988if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11989echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11990echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11991if test "${wx_cv_prog_makevpath+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11993else
e6cc62c6 11994
10f2d63a
VZ
11995cat - << EOF > confMake
11996check : file
11997 cp \$? \$@
11998 cp \$? final_file
11999EOF
12000
12001if test ! -d sub ; then
12002 mkdir sub
12003fi
12004echo dummy > sub/file
f6bcfd97 12005${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
12006RESULT=$?
12007rm -f sub/file check final_file confMake
12008rmdir sub
12009if test "$RESULT" = 0; then
04e7a216 12010 wx_cv_prog_makevpath="yes"
10f2d63a 12011else
04e7a216
VZ
12012 wx_cv_prog_makevpath="no"
12013fi
12014
12015fi
e6cc62c6
VS
12016echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12017echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
12018
12019if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 12020{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
12021You need a make-utility that is able to use the variable
12022VPATH correctly.
12023If your version of make does not support VPATH correctly,
12024please install GNU-make (possibly as gmake), and start
12025configure with the following command:
12026export MAKE=gmake; ./configure for sh-type shells
12027setenv MAKE gmake; ./configure for csh-type shells
12028Also please do remember to use gmake in this case every time
12029you are trying to compile.
e6cc62c6
VS
12030" >&5
12031echo "$as_me: error:
12032You need a make-utility that is able to use the variable
12033VPATH correctly.
12034If your version of make does not support VPATH correctly,
12035please install GNU-make (possibly as gmake), and start
12036configure with the following command:
12037export MAKE=gmake; ./configure for sh-type shells
12038setenv MAKE gmake; ./configure for csh-type shells
12039Also please do remember to use gmake in this case every time
12040you are trying to compile.
12041" >&2;}
12042 { (exit 1); exit 1; }; }
12043fi fi
e6cc62c6
VS
12044echo "$as_me:$LINENO: checking whether ln -s works" >&5
12045echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12046LN_S=$as_ln_s
12047if test "$LN_S" = "ln -s"; then
12048 echo "$as_me:$LINENO: result: yes" >&5
12049echo "${ECHO_T}yes" >&6
10f2d63a 12050else
e6cc62c6
VS
12051 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12052echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 12053fi
5c6fa7d2 12054
247f5006 12055
243f8ae5 12056
2b5f62a0
VZ
12057case "${host}" in
12058 *-pc-os2_emx | *-pc-os2-emx )
243f8ae5 12059 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
12060 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12061echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12062if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 12064else
e6cc62c6 12065 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 12066LIBS="-lcExt $LIBS"
e6cc62c6 12067cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073
2b5f62a0 12074/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12075#ifdef __cplusplus
12076extern "C"
12077#endif
2b5f62a0 12078/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12079 builtin and then its argument prototype would still apply. */
12080char drand48 ();
12081int
12082main ()
12083{
12084drand48 ();
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12091 (eval $ac_link) 2>conftest.er1
e6cc62c6 12092 ac_status=$?
32ddf007
VS
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
e6cc62c6
VS
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
e1293dcf 12098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_lib_cExt_drand48=yes
12111else
12112 echo "$as_me: failed program was:" >&5
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
12115ac_cv_lib_cExt_drand48=no
12116fi
32ddf007
VS
12117rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
12119LIBS=$ac_check_lib_save_LIBS
12120fi
12121echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12122echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12123if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 12124 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
12125fi
12126
12127 else
12128 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12129 fi
32ddf007
VS
12130 echo "$as_me:$LINENO: checking for gcc version" >&5
12131echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12132if test "${wx_cv_gccversion+set}" = set; then
73d617c9
MB
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
12135
12136 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h. */
3527f29c 12142
73d617c9
MB
12143int
12144main ()
12145{
12146
12147 #if (__GNUC__ < 3)
12148 #error old gcc
12149 #endif
12150
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155rm -f conftest.$ac_objext
12156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007
VS
12157 (eval $ac_compile) 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
e1293dcf 12164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176
12177 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183
12184int
12185main ()
12186{
12187
12188 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12189 #error intermediate gcc
12190 #endif
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
73d617c9 12199 ac_status=$?
32ddf007
VS
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
73d617c9
MB
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
e1293dcf 12205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217
32ddf007 12218 wx_cv_gccversion=Innotek
73d617c9
MB
12219
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
12224
32ddf007 12225 wx_cv_gccversion=3
73d617c9
MB
12226
12227
12228fi
32ddf007
VS
12229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230
12231else
12232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235
12236 wx_cv_gccversion=2
12237
73d617c9
MB
12238
12239fi
32ddf007
VS
12240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12241
12242fi
12243echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12244echo "${ECHO_T}$wx_cv_gccversion" >&6
12245 if test "$wx_cv_gccversion" = "2"; then
73d617c9 12246 LIBS="$LIBS -lstdcpp"
32ddf007 12247 LDFLAGS="$LDFLAGS -Zsysv-signals"
73d617c9 12248 else
32ddf007
VS
12249 if test "$wx_cv_gccversion" = "3"; then
12250 LIBS="$LIBS -lstdcxx"
12251 LDFLAGS="$LDFLAGS -Zsysv-signals"
12252 else
12253 LIBS="$LIBS -lstdc++"
12254 fi
73d617c9 12255 fi
243f8ae5
VS
12256 ;;
12257 *)
a0b9e27f 12258
1c2d1459
VZ
12259
12260
243f8ae5 12261 ac_ext=cc
1c2d1459
VZ
12262ac_cpp='$CXXCPP $CPPFLAGS'
12263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12266
12267
12268
12269echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12270echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12271if test "${ac_cv_string_strcasecmp+set}" = set; then
01aa5863
VS
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
1c2d1459 12274
243f8ae5 12275 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281
243f8ae5 12282 #include <string.h>
1c2d1459
VZ
12283
12284int
12285main ()
12286{
12287
243f8ae5 12288 strcasecmp("foo", "bar");
1c2d1459
VZ
12289
12290 ;
12291 return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
12295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12296 (eval $ac_link) 2>conftest.er1
1c2d1459 12297 ac_status=$?
32ddf007
VS
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
1c2d1459
VZ
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
e1293dcf 12303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_string_strcasecmp=yes
12316else
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
12320ac_cv_string_strcasecmp=no
12321
12322fi
32ddf007
VS
12323rm -f conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
1c2d1459
VZ
12325
12326fi
12327echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12328echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12329
243f8ae5
VS
12330 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12331 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12332#define HAVE_STRCASECMP_IN_STRING_H 1
12333_ACEOF
12334
243f8ae5
VS
12335 else
12336 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
1c2d1459
VZ
12337echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12338if test "${ac_cv_strings_strcasecmp+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341
243f8ae5 12342 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
12348
243f8ae5 12349 #include <strings.h>
1c2d1459
VZ
12350
12351int
12352main ()
12353{
12354
243f8ae5 12355 strcasecmp("foo", "bar");
1c2d1459
VZ
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext conftest$ac_exeext
12362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12363 (eval $ac_link) 2>conftest.er1
1c2d1459 12364 ac_status=$?
32ddf007
VS
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
1c2d1459
VZ
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
e1293dcf 12370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_strings_strcasecmp=yes
12383else
12384 echo "$as_me: failed program was:" >&5
12385sed 's/^/| /' conftest.$ac_ext >&5
12386
12387ac_cv_strings_strcasecmp=no
12388
12389fi
32ddf007
VS
12390rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
1c2d1459 12392
01aa5863 12393fi
1c2d1459
VZ
12394echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12395echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12396
243f8ae5
VS
12397 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12398 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12399#define HAVE_STRCASECMP_IN_STRINGS_H 1
12400_ACEOF
12401
243f8ae5
VS
12402 else
12403 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
1c2d1459
VZ
12404echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12405 { (exit 1); exit 1; }; }
243f8ae5
VS
12406 fi
12407 fi
1c2d1459 12408
243f8ae5 12409 ac_ext=c
1c2d1459
VZ
12410ac_cpp='$CPP $CPPFLAGS'
12411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12413ac_compiler_gnu=$ac_cv_c_compiler_gnu
12414
243f8ae5
VS
12415 ;;
12416esac
12417
1c2d1459 12418
01aa5863 12419echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12420echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12421if test "${ac_cv_header_stdc+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423else
12424 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430#include <stdlib.h>
12431#include <stdarg.h>
12432#include <string.h>
12433#include <float.h>
247f5006 12434
e6cc62c6
VS
12435int
12436main ()
12437{
90dd450c 12438
e6cc62c6
VS
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext
12444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12445 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12446 ac_status=$?
32ddf007
VS
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
e6cc62c6
VS
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
e1293dcf 12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_header_stdc=yes
8284b0c5 12465else
e6cc62c6
VS
12466 echo "$as_me: failed program was:" >&5
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469ac_cv_header_stdc=no
21d1c967 12470fi
32ddf007 12471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12472
e6cc62c6
VS
12473if test $ac_cv_header_stdc = yes; then
12474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12475 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12476/* confdefs.h. */
12477_ACEOF
12478cat confdefs.h >>conftest.$ac_ext
12479cat >>conftest.$ac_ext <<_ACEOF
12480/* end confdefs.h. */
12481#include <string.h>
12482
12483_ACEOF
12484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12485 $EGREP "memchr" >/dev/null 2>&1; then
12486 :
12487else
12488 ac_cv_header_stdc=no
3a922bb4 12489fi
a0b9e27f 12490rm -f conftest*
e6cc62c6 12491
90dd450c 12492fi
e6cc62c6
VS
12493
12494if test $ac_cv_header_stdc = yes; then
12495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12496 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502#include <stdlib.h>
12503
12504_ACEOF
12505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12506 $EGREP "free" >/dev/null 2>&1; then
12507 :
a0b9e27f 12508else
e6cc62c6 12509 ac_cv_header_stdc=no
21d1c967 12510fi
e6cc62c6 12511rm -f conftest*
247f5006
VZ
12512
12513fi
e6cc62c6
VS
12514
12515if test $ac_cv_header_stdc = yes; then
12516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12517 if test "$cross_compiling" = yes; then
12518 :
12519else
12520 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526#include <ctype.h>
12527#if ((' ' & 0x0FF) == 0x020)
12528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12530#else
12531# define ISLOWER(c) \
32ddf007
VS
12532 (('a' <= (c) && (c) <= 'i') \
12533 || ('j' <= (c) && (c) <= 'r') \
12534 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12536#endif
12537
12538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12539int
12540main ()
12541{
12542 int i;
12543 for (i = 0; i < 256; i++)
12544 if (XOR (islower (i), ISLOWER (i))
32ddf007 12545 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12546 exit(2);
12547 exit (0);
12548}
12549_ACEOF
12550rm -f conftest$ac_exeext
12551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12552 (eval $ac_link) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 :
a0b9e27f 12562else
e6cc62c6
VS
12563 echo "$as_me: program exited with status $ac_status" >&5
12564echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567( exit $ac_status )
12568ac_cv_header_stdc=no
12569fi
32ddf007 12570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12571fi
12572fi
12573fi
12574echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12575echo "${ECHO_T}$ac_cv_header_stdc" >&6
12576if test $ac_cv_header_stdc = yes; then
12577
12578cat >>confdefs.h <<\_ACEOF
12579#define STDC_HEADERS 1
12580_ACEOF
12581
a0b9e27f 12582fi
e6cc62c6
VS
12583
12584# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
32ddf007 12595 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12596do
12597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12598echo "$as_me:$LINENO: checking for $ac_header" >&5
12599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12600if eval "test \"\${$as_ac_Header+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609$ac_includes_default
12610
12611#include <$ac_header>
12612_ACEOF
12613rm -f conftest.$ac_objext
12614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12615 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12616 ac_status=$?
32ddf007
VS
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
e6cc62c6
VS
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
e1293dcf 12622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 eval "$as_ac_Header=yes"
12635else
12636 echo "$as_me: failed program was:" >&5
12637sed 's/^/| /' conftest.$ac_ext >&5
12638
12639eval "$as_ac_Header=no"
12640fi
32ddf007 12641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12642fi
12643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645if test `eval echo '${'$as_ac_Header'}'` = yes; then
12646 cat >>confdefs.h <<_ACEOF
12647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12648_ACEOF
12649
12650fi
12651
a0b9e27f 12652done
90dd450c 12653
e6cc62c6
VS
12654
12655
e6cc62c6
VS
12656for ac_header in stdlib.h
12657do
12658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12659if eval "test \"\${$as_ac_Header+set}\" = set"; then
12660 echo "$as_me:$LINENO: checking for $ac_header" >&5
12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12662if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664fi
12665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12667else
12668 # Is the header compilable?
12669echo "$as_me:$LINENO: checking $ac_header usability" >&5
12670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12671cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12672/* confdefs.h. */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */
12677$ac_includes_default
12678#include <$ac_header>
12679_ACEOF
12680rm -f conftest.$ac_objext
12681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12682 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12683 ac_status=$?
32ddf007
VS
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
e6cc62c6
VS
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
e1293dcf 12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_header_compiler=yes
12702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706ac_header_compiler=no
12707fi
32ddf007 12708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12710echo "${ECHO_T}$ac_header_compiler" >&6
12711
12712# Is the header present?
12713echo "$as_me:$LINENO: checking $ac_header presence" >&5
12714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12715cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721#include <$ac_header>
12722_ACEOF
12723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } >/dev/null; then
12731 if test -s conftest.err; then
12732 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12734 else
12735 ac_cpp_err=
12736 fi
12737else
12738 ac_cpp_err=yes
12739fi
12740if test -z "$ac_cpp_err"; then
12741 ac_header_preproc=yes
12742else
12743 echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_header_preproc=no
12747fi
12748rm -f conftest.err conftest.$ac_ext
12749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12750echo "${ECHO_T}$ac_header_preproc" >&6
12751
12752# So? What about this header?
32ddf007
VS
12753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12754 yes:no: )
e6cc62c6
VS
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12759 ac_header_preproc=yes
e6cc62c6 12760 ;;
32ddf007 12761 no:yes:* )
e6cc62c6
VS
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12774 (
12775 cat <<\_ASBOX
32ddf007
VS
12776## ----------------------------------------- ##
12777## Report this to wx-dev@lists.wxwindows.org ##
12778## ----------------------------------------- ##
e6cc62c6
VS
12779_ASBOX
12780 ) |
12781 sed "s/^/$as_me: WARNING: /" >&2
12782 ;;
12783esac
12784echo "$as_me:$LINENO: checking for $ac_header" >&5
12785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12788else
32ddf007 12789 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12790fi
12791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793
21d1c967 12794fi
e6cc62c6
VS
12795if test `eval echo '${'$as_ac_Header'}'` = yes; then
12796 cat >>confdefs.h <<_ACEOF
12797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12798_ACEOF
12799
12800fi
12801
21d1c967 12802done
4f14bcd8 12803
5c6fa7d2 12804
e6cc62c6 12805for ac_header in malloc.h
21d1c967 12806do
e6cc62c6
VS
12807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808if eval "test \"\${$as_ac_Header+set}\" = set"; then
12809 echo "$as_me:$LINENO: checking for $ac_header" >&5
12810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12811if eval "test \"\${$as_ac_Header+set}\" = set"; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813fi
12814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12816else
12817 # Is the header compilable?
12818echo "$as_me:$LINENO: checking $ac_header usability" >&5
12819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12820cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826$ac_includes_default
12827#include <$ac_header>
12828_ACEOF
12829rm -f conftest.$ac_objext
12830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12831 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12832 ac_status=$?
32ddf007
VS
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
e6cc62c6
VS
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
e1293dcf 12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_header_compiler=yes
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855ac_header_compiler=no
12856fi
32ddf007 12857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859echo "${ECHO_T}$ac_header_compiler" >&6
12860
12861# Is the header present?
12862echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870#include <$ac_header>
12871_ACEOF
12872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null; then
12880 if test -s conftest.err; then
12881 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12883 else
12884 ac_cpp_err=
12885 fi
12886else
12887 ac_cpp_err=yes
12888fi
12889if test -z "$ac_cpp_err"; then
12890 ac_header_preproc=yes
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_header_preproc=no
12896fi
12897rm -f conftest.err conftest.$ac_ext
12898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899echo "${ECHO_T}$ac_header_preproc" >&6
12900
12901# So? What about this header?
32ddf007
VS
12902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12903 yes:no: )
e6cc62c6
VS
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12908 ac_header_preproc=yes
e6cc62c6 12909 ;;
32ddf007 12910 no:yes:* )
e6cc62c6
VS
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12923 (
12924 cat <<\_ASBOX
32ddf007
VS
12925## ----------------------------------------- ##
12926## Report this to wx-dev@lists.wxwindows.org ##
12927## ----------------------------------------- ##
e6cc62c6
VS
12928_ASBOX
12929 ) |
12930 sed "s/^/$as_me: WARNING: /" >&2
12931 ;;
12932esac
12933echo "$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
12937else
32ddf007 12938 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12939fi
e6cc62c6
VS
12940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942
21d1c967 12943fi
e6cc62c6
VS
12944if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947_ACEOF
12948
12949fi
12950
12951done
12952
12953
12954for ac_header in unistd.h
12955do
12956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962fi
12963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965else
12966 # Is the header compilable?
12967echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
12975$ac_includes_default
12976#include <$ac_header>
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12980 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12981 ac_status=$?
32ddf007
VS
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
e6cc62c6
VS
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
e1293dcf 12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_header_compiler=yes
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
13004ac_header_compiler=no
13005fi
32ddf007 13006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13008echo "${ECHO_T}$ac_header_compiler" >&6
13009
13010# Is the header present?
13011echo "$as_me:$LINENO: checking $ac_header presence" >&5
13012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13013cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
13019#include <$ac_header>
13020_ACEOF
13021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } >/dev/null; then
13029 if test -s conftest.err; then
13030 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13032 else
13033 ac_cpp_err=
13034 fi
a0b9e27f 13035else
e6cc62c6
VS
13036 ac_cpp_err=yes
13037fi
13038if test -z "$ac_cpp_err"; then
13039 ac_header_preproc=yes
13040else
13041 echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_header_preproc=no
13045fi
13046rm -f conftest.err conftest.$ac_ext
13047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13048echo "${ECHO_T}$ac_header_preproc" >&6
13049
13050# So? What about this header?
32ddf007
VS
13051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13052 yes:no: )
e6cc62c6
VS
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13057 ac_header_preproc=yes
e6cc62c6 13058 ;;
32ddf007 13059 no:yes:* )
e6cc62c6
VS
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13072 (
13073 cat <<\_ASBOX
32ddf007
VS
13074## ----------------------------------------- ##
13075## Report this to wx-dev@lists.wxwindows.org ##
13076## ----------------------------------------- ##
e6cc62c6
VS
13077_ASBOX
13078 ) |
13079 sed "s/^/$as_me: WARNING: /" >&2
13080 ;;
13081esac
13082echo "$as_me:$LINENO: checking for $ac_header" >&5
13083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086else
32ddf007 13087 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13088fi
13089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13091
13092fi
13093if test `eval echo '${'$as_ac_Header'}'` = yes; then
13094 cat >>confdefs.h <<_ACEOF
13095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13096_ACEOF
13097
d4158b5d 13098fi
e6cc62c6 13099
21d1c967 13100done
f6bcfd97 13101
e6cc62c6
VS
13102
13103for ac_header in wchar.h
13104do
13105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13106if eval "test \"\${$as_ac_Header+set}\" = set"; then
13107 echo "$as_me:$LINENO: checking for $ac_header" >&5
13108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13109if eval "test \"\${$as_ac_Header+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111fi
13112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13114else
13115 # Is the header compilable?
13116echo "$as_me:$LINENO: checking $ac_header usability" >&5
13117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13118cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124$ac_includes_default
13125#include <$ac_header>
13126_ACEOF
13127rm -f conftest.$ac_objext
13128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13129 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13130 ac_status=$?
32ddf007
VS
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
e6cc62c6
VS
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
e1293dcf 13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_header_compiler=yes
13149else
13150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153ac_header_compiler=no
13154fi
32ddf007 13155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157echo "${ECHO_T}$ac_header_compiler" >&6
13158
13159# Is the header present?
13160echo "$as_me:$LINENO: checking $ac_header presence" >&5
13161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13162cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168#include <$ac_header>
13169_ACEOF
13170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev/null; then
13178 if test -s conftest.err; then
13179 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13181 else
13182 ac_cpp_err=
13183 fi
13184else
13185 ac_cpp_err=yes
13186fi
13187if test -z "$ac_cpp_err"; then
13188 ac_header_preproc=yes
13189else
13190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_header_preproc=no
13194fi
13195rm -f conftest.err conftest.$ac_ext
13196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197echo "${ECHO_T}$ac_header_preproc" >&6
13198
13199# So? What about this header?
32ddf007
VS
13200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 yes:no: )
e6cc62c6
VS
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc=yes
e6cc62c6 13207 ;;
32ddf007 13208 no:yes:* )
e6cc62c6
VS
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13221 (
13222 cat <<\_ASBOX
32ddf007
VS
13223## ----------------------------------------- ##
13224## Report this to wx-dev@lists.wxwindows.org ##
13225## ----------------------------------------- ##
e6cc62c6
VS
13226_ASBOX
13227 ) |
13228 sed "s/^/$as_me: WARNING: /" >&2
13229 ;;
13230esac
13231echo "$as_me:$LINENO: checking for $ac_header" >&5
13232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13233if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
32ddf007 13236 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13237fi
13238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240
90dd450c 13241fi
e6cc62c6
VS
13242if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245_ACEOF
13246
13247fi
13248
13249done
90dd450c 13250
e6cc62c6
VS
13251
13252if test "$ac_cv_header_wchar_h" != "yes"; then
13253
13254for ac_header in wcstr.h
21d1c967 13255do
e6cc62c6
VS
13256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo "$as_me:$LINENO: checking for $ac_header" >&5
13259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262fi
13263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13265else
13266 # Is the header compilable?
13267echo "$as_me:$LINENO: checking $ac_header usability" >&5
13268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13269cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275$ac_includes_default
13276#include <$ac_header>
13277_ACEOF
13278rm -f conftest.$ac_objext
13279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13280 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13281 ac_status=$?
32ddf007
VS
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
e6cc62c6
VS
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
e1293dcf 13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_header_compiler=yes
13300else
13301 echo "$as_me: failed program was:" >&5
13302sed 's/^/| /' conftest.$ac_ext >&5
13303
13304ac_header_compiler=no
13305fi
32ddf007 13306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13308echo "${ECHO_T}$ac_header_compiler" >&6
13309
13310# Is the header present?
13311echo "$as_me:$LINENO: checking $ac_header presence" >&5
13312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13313cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
13319#include <$ac_header>
13320_ACEOF
13321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } >/dev/null; then
13329 if test -s conftest.err; then
13330 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13332 else
13333 ac_cpp_err=
13334 fi
13335else
13336 ac_cpp_err=yes
13337fi
13338if test -z "$ac_cpp_err"; then
13339 ac_header_preproc=yes
13340else
13341 echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ac_header_preproc=no
13345fi
13346rm -f conftest.err conftest.$ac_ext
13347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13348echo "${ECHO_T}$ac_header_preproc" >&6
13349
13350# So? What about this header?
32ddf007
VS
13351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13352 yes:no: )
e6cc62c6
VS
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13357 ac_header_preproc=yes
e6cc62c6 13358 ;;
32ddf007 13359 no:yes:* )
e6cc62c6
VS
13360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13372 (
13373 cat <<\_ASBOX
32ddf007
VS
13374## ----------------------------------------- ##
13375## Report this to wx-dev@lists.wxwindows.org ##
13376## ----------------------------------------- ##
e6cc62c6
VS
13377_ASBOX
13378 ) |
13379 sed "s/^/$as_me: WARNING: /" >&2
13380 ;;
13381esac
13382echo "$as_me:$LINENO: checking for $ac_header" >&5
13383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
32ddf007 13387 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13388fi
e6cc62c6
VS
13389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13391
4f14bcd8 13392fi
e6cc62c6
VS
13393if test `eval echo '${'$as_ac_Header'}'` = yes; then
13394 cat >>confdefs.h <<_ACEOF
13395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13396_ACEOF
13397
13398fi
13399
13400done
13401
13402fi
13403
13404
13405for ac_header in fnmatch.h
13406do
13407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13408if eval "test \"\${$as_ac_Header+set}\" = set"; then
13409 echo "$as_me:$LINENO: checking for $ac_header" >&5
13410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13411if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413fi
13414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13416else
13417 # Is the header compilable?
13418echo "$as_me:$LINENO: checking $ac_header usability" >&5
13419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13420cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426$ac_includes_default
13427#include <$ac_header>
13428_ACEOF
13429rm -f conftest.$ac_objext
13430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13431 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13432 ac_status=$?
32ddf007
VS
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
e6cc62c6
VS
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
e1293dcf 13438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_header_compiler=yes
13451else
13452 echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
13455ac_header_compiler=no
13456fi
32ddf007 13457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13459echo "${ECHO_T}$ac_header_compiler" >&6
13460
13461# Is the header present?
13462echo "$as_me:$LINENO: checking $ac_header presence" >&5
13463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13464cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
13470#include <$ac_header>
13471_ACEOF
13472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13483 else
13484 ac_cpp_err=
13485 fi
13486else
13487 ac_cpp_err=yes
13488fi
13489if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496fi
13497rm -f conftest.err conftest.$ac_ext
13498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499echo "${ECHO_T}$ac_header_preproc" >&6
13500
13501# So? What about this header?
32ddf007
VS
13502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 yes:no: )
e6cc62c6
VS
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
e6cc62c6 13509 ;;
32ddf007 13510 no:yes:* )
e6cc62c6
VS
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13523 (
13524 cat <<\_ASBOX
32ddf007
VS
13525## ----------------------------------------- ##
13526## Report this to wx-dev@lists.wxwindows.org ##
13527## ----------------------------------------- ##
e6cc62c6
VS
13528_ASBOX
13529 ) |
13530 sed "s/^/$as_me: WARNING: /" >&2
13531 ;;
13532esac
13533echo "$as_me:$LINENO: checking for $ac_header" >&5
13534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13535if eval "test \"\${$as_ac_Header+set}\" = set"; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13537else
32ddf007 13538 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13539fi
13540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13542
21d1c967 13543fi
e6cc62c6
VS
13544if test `eval echo '${'$as_ac_Header'}'` = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547_ACEOF
13548
13549fi
13550
21d1c967 13551done
90dd450c 13552
5c6fa7d2 13553
a0b9e27f 13554if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13555
13556for ac_func in fnmatch
21d1c967 13557do
e6cc62c6
VS
13558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13559echo "$as_me:$LINENO: checking for $ac_func" >&5
13560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13561if eval "test \"\${$as_ac_var+set}\" = set"; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563else
13564 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13565/* confdefs.h. */
13566_ACEOF
13567cat confdefs.h >>conftest.$ac_ext
13568cat >>conftest.$ac_ext <<_ACEOF
13569/* end confdefs.h. */
32ddf007
VS
13570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13572#define $ac_func innocuous_$ac_func
13573
a0b9e27f 13574/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13575 which can conflict with char $ac_func (); below.
13576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13577 <limits.h> exists even on freestanding compilers. */
32ddf007 13578
e6cc62c6
VS
13579#ifdef __STDC__
13580# include <limits.h>
13581#else
13582# include <assert.h>
13583#endif
32ddf007
VS
13584
13585#undef $ac_func
13586
a0b9e27f 13587/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13588#ifdef __cplusplus
13589extern "C"
13590{
13591#endif
a0b9e27f 13592/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13593 builtin and then its argument prototype would still apply. */
13594char $ac_func ();
a0b9e27f
MB
13595/* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13599choke me
13600#else
e6cc62c6
VS
13601char (*f) () = $ac_func;
13602#endif
13603#ifdef __cplusplus
13604}
a0b9e27f
MB
13605#endif
13606
e6cc62c6
VS
13607int
13608main ()
13609{
13610return f != $ac_func;
13611 ;
13612 return 0;
13613}
13614_ACEOF
13615rm -f conftest.$ac_objext conftest$ac_exeext
13616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 13617 (eval $ac_link) 2>conftest.er1
e6cc62c6 13618 ac_status=$?
32ddf007
VS
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
e6cc62c6
VS
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
e1293dcf 13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 eval "$as_ac_var=yes"
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641eval "$as_ac_var=no"
13642fi
32ddf007
VS
13643rm -f conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13645fi
13646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13648if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13651_ACEOF
32832908 13652
21d1c967
GD
13653fi
13654done
90dd450c 13655
a0b9e27f 13656fi
90dd450c 13657
e6cc62c6
VS
13658
13659for ac_header in langinfo.h
21d1c967 13660do
e6cc62c6
VS
13661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13662if eval "test \"\${$as_ac_Header+set}\" = set"; then
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667fi
13668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13670else
13671 # Is the header compilable?
13672echo "$as_me:$LINENO: checking $ac_header usability" >&5
13673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13674cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
13680$ac_includes_default
13681#include <$ac_header>
13682_ACEOF
13683rm -f conftest.$ac_objext
13684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13685 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13686 ac_status=$?
32ddf007
VS
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
e6cc62c6
VS
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
e1293dcf 13692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_header_compiler=yes
13705else
13706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709ac_header_compiler=no
13710fi
32ddf007 13711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713echo "${ECHO_T}$ac_header_compiler" >&6
13714
13715# Is the header present?
13716echo "$as_me:$LINENO: checking $ac_header presence" >&5
13717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13718cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
13724#include <$ac_header>
13725_ACEOF
13726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } >/dev/null; then
13734 if test -s conftest.err; then
13735 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13737 else
13738 ac_cpp_err=
13739 fi
13740else
13741 ac_cpp_err=yes
13742fi
13743if test -z "$ac_cpp_err"; then
13744 ac_header_preproc=yes
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 ac_header_preproc=no
13750fi
13751rm -f conftest.err conftest.$ac_ext
13752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753echo "${ECHO_T}$ac_header_preproc" >&6
13754
13755# So? What about this header?
32ddf007
VS
13756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 yes:no: )
e6cc62c6
VS
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13762 ac_header_preproc=yes
e6cc62c6 13763 ;;
32ddf007 13764 no:yes:* )
e6cc62c6
VS
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13777 (
13778 cat <<\_ASBOX
32ddf007
VS
13779## ----------------------------------------- ##
13780## Report this to wx-dev@lists.wxwindows.org ##
13781## ----------------------------------------- ##
e6cc62c6
VS
13782_ASBOX
13783 ) |
13784 sed "s/^/$as_me: WARNING: /" >&2
13785 ;;
13786esac
13787echo "$as_me:$LINENO: checking for $ac_header" >&5
13788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13789if eval "test \"\${$as_ac_Header+set}\" = set"; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13791else
32ddf007 13792 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13793fi
e6cc62c6
VS
13794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796
4f14bcd8 13797fi
e6cc62c6
VS
13798if test `eval echo '${'$as_ac_Header'}'` = yes; then
13799 cat >>confdefs.h <<_ACEOF
13800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13801_ACEOF
13802
21d1c967 13803fi
e6cc62c6 13804
21d1c967 13805done
3a922bb4 13806
8284b0c5 13807
4f5a7f74
VZ
13808case "${host}" in
13809 *-pc-os2_emx | *-pc-os2-emx )
13810 if test $ac_cv_header_langinfo_h = "yes"; then
13811 LIBS="$LIBS -lintl"
13812 fi
13813 ;;
13814esac
1542ea39 13815
a0b9e27f 13816if test "$wxUSE_GUI" = "yes"; then
73d617c9 13817 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13818
eb69fda5 13819for ac_header in X11/Xlib.h
21d1c967 13820do
e6cc62c6
VS
13821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13822if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo "$as_me:$LINENO: checking for $ac_header" >&5
13824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13825if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827fi
13828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830else
13831 # Is the header compilable?
13832echo "$as_me:$LINENO: checking $ac_header usability" >&5
13833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13834cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840$ac_includes_default
13841#include <$ac_header>
13842_ACEOF
13843rm -f conftest.$ac_objext
13844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13845 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13846 ac_status=$?
32ddf007
VS
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
e6cc62c6
VS
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
e1293dcf 13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_header_compiler=yes
13865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
13869ac_header_compiler=no
13870fi
32ddf007 13871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13873echo "${ECHO_T}$ac_header_compiler" >&6
13874
13875# Is the header present?
13876echo "$as_me:$LINENO: checking $ac_header presence" >&5
13877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13878cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884#include <$ac_header>
13885_ACEOF
13886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } >/dev/null; then
13894 if test -s conftest.err; then
13895 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13897 else
13898 ac_cpp_err=
13899 fi
13900else
13901 ac_cpp_err=yes
13902fi
13903if test -z "$ac_cpp_err"; then
13904 ac_header_preproc=yes
13905else
13906 echo "$as_me: failed program was:" >&5
13907sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_header_preproc=no
13910fi
13911rm -f conftest.err conftest.$ac_ext
13912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13913echo "${ECHO_T}$ac_header_preproc" >&6
13914
13915# So? What about this header?
32ddf007
VS
13916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13917 yes:no: )
e6cc62c6
VS
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13922 ac_header_preproc=yes
e6cc62c6 13923 ;;
32ddf007 13924 no:yes:* )
e6cc62c6
VS
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13937 (
13938 cat <<\_ASBOX
32ddf007
VS
13939## ----------------------------------------- ##
13940## Report this to wx-dev@lists.wxwindows.org ##
13941## ----------------------------------------- ##
e6cc62c6
VS
13942_ASBOX
13943 ) |
13944 sed "s/^/$as_me: WARNING: /" >&2
13945 ;;
13946esac
13947echo "$as_me:$LINENO: checking for $ac_header" >&5
13948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13949if eval "test \"\${$as_ac_Header+set}\" = set"; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
32ddf007 13952 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13953fi
e6cc62c6
VS
13954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13956
90dd450c 13957fi
e6cc62c6
VS
13958if test `eval echo '${'$as_ac_Header'}'` = yes; then
13959 cat >>confdefs.h <<_ACEOF
13960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13961_ACEOF
13962
247f5006 13963fi
e6cc62c6 13964
eb69fda5
VS
13965done
13966
13967
13968for ac_header in X11/XKBlib.h
13969do
13970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971echo "$as_me:$LINENO: checking for $ac_header" >&5
13972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13973if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
13976 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982
13983 #if HAVE_X11_XLIB_H
13984 #include <X11/Xlib.h>
13985 #endif
13986
13987
13988#include <$ac_header>
13989_ACEOF
13990rm -f conftest.$ac_objext
13991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13992 (eval $ac_compile) 2>conftest.er1
eb69fda5 13993 ac_status=$?
32ddf007
VS
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
eb69fda5
VS
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
e1293dcf 13999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
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); }; }; then
14011 eval "$as_ac_Header=yes"
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016eval "$as_ac_Header=no"
14017fi
32ddf007 14018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
14019fi
14020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022if test `eval echo '${'$as_ac_Header'}'` = yes; then
14023 cat >>confdefs.h <<_ACEOF
14024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14025_ACEOF
14026
14027fi
14028
247f5006
VZ
14029done
14030
a0b9e27f
MB
14031 fi
14032fi
247f5006 14033
247f5006 14034
e6cc62c6
VS
14035echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14036echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14037if test "${ac_cv_c_const+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
14046
14047int
14048main ()
14049{
14050/* FIXME: Include the comments suggested by Paul. */
14051#ifndef __cplusplus
14052 /* Ultrix mips cc rejects this. */
14053 typedef int charset[2];
14054 const charset x;
14055 /* SunOS 4.1.1 cc rejects this. */
14056 char const *const *ccp;
14057 char **p;
14058 /* NEC SVR4.0.2 mips cc rejects this. */
14059 struct point {int x, y;};
14060 static struct point const zero = {0,0};
14061 /* AIX XL C 1.02.0.0 rejects this.
14062 It does not let you subtract one const X* pointer from another in
14063 an arm of an if-expression whose if-part is not a constant
14064 expression */
14065 const char *g = "string";
14066 ccp = &g + (g ? g-g : 0);
14067 /* HPUX 7.0 cc rejects these. */
14068 ++ccp;
14069 p = (char**) ccp;
14070 ccp = (char const *const *) p;
14071 { /* SCO 3.2v4 cc rejects this. */
14072 char *t;
14073 char const *s = 0 ? (char *) 0 : (char const *) 0;
14074
14075 *t++ = 0;
14076 }
14077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14078 int x[] = {25, 17};
14079 const int *foo = &x[0];
14080 ++foo;
14081 }
14082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14083 typedef const int *iptr;
14084 iptr p = 0;
14085 ++p;
14086 }
14087 { /* AIX XL C 1.02.0.0 rejects this saying
14088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14089 struct s { int j; const int *ap[3]; };
14090 struct s *b; b->j = 5;
14091 }
14092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14093 const int foo = 10;
14094 }
14095#endif
14096
14097 ;
14098 return 0;
14099}
14100_ACEOF
14101rm -f conftest.$ac_objext
14102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14103 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14104 ac_status=$?
32ddf007
VS
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
e6cc62c6
VS
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
e1293dcf 14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
a0b9e27f 14122 ac_cv_c_const=yes
247f5006 14123else
e6cc62c6
VS
14124 echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127ac_cv_c_const=no
247f5006 14128fi
32ddf007 14129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 14130fi
e6cc62c6
VS
14131echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14132echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 14133if test $ac_cv_c_const = no; then
e6cc62c6
VS
14134
14135cat >>confdefs.h <<\_ACEOF
14136#define const
14137_ACEOF
10f2d63a 14138
90dd450c 14139fi
81809c07 14140
e6cc62c6
VS
14141echo "$as_me:$LINENO: checking for inline" >&5
14142echo $ECHO_N "checking for inline... $ECHO_C" >&6
14143if test "${ac_cv_c_inline+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 14145else
a0b9e27f
MB
14146 ac_cv_c_inline=no
14147for ac_kw in inline __inline__ __inline; do
e6cc62c6 14148 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14149/* confdefs.h. */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
14153/* end confdefs.h. */
14154#ifndef __cplusplus
14155typedef int foo_t;
14156static $ac_kw foo_t static_foo () {return 0; }
14157$ac_kw foo_t foo () {return 0; }
14158#endif
a0b9e27f 14159
e6cc62c6
VS
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14163 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14164 ac_status=$?
32ddf007
VS
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
e6cc62c6
VS
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
e1293dcf 14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
a0b9e27f 14182 ac_cv_c_inline=$ac_kw; break
247f5006 14183else
e6cc62c6
VS
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
247f5006 14187fi
32ddf007 14188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14189done
247f5006
VZ
14190
14191fi
e6cc62c6
VS
14192echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14193echo "${ECHO_T}$ac_cv_c_inline" >&6
32ddf007
VS
14194
14195
e6cc62c6 14196case $ac_cv_c_inline in
a0b9e27f 14197 inline | yes) ;;
32ddf007
VS
14198 *)
14199 case $ac_cv_c_inline in
14200 no) ac_val=;;
14201 *) ac_val=$ac_cv_c_inline;;
14202 esac
14203 cat >>confdefs.h <<_ACEOF
14204#ifndef __cplusplus
14205#define inline $ac_val
14206#endif
0f87e84c 14207_ACEOF
32ddf007 14208 ;;
a0b9e27f 14209esac
247f5006 14210
247f5006 14211
e6cc62c6
VS
14212echo "$as_me:$LINENO: checking for char" >&5
14213echo $ECHO_N "checking for char... $ECHO_C" >&6
14214if test "${ac_cv_type_char+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216else
14217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14218/* confdefs.h. */
14219_ACEOF
14220cat confdefs.h >>conftest.$ac_ext
14221cat >>conftest.$ac_ext <<_ACEOF
14222/* end confdefs.h. */
14223$ac_includes_default
14224int
14225main ()
14226{
14227if ((char *) 0)
14228 return 0;
14229if (sizeof (char))
14230 return 0;
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext
14236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14237 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14238 ac_status=$?
32ddf007
VS
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
e6cc62c6
VS
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
e1293dcf 14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_type_char=yes
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261ac_cv_type_char=no
14262fi
32ddf007 14263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14264fi
14265echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14266echo "${ECHO_T}$ac_cv_type_char" >&6
14267
14268echo "$as_me:$LINENO: checking size of char" >&5
14269echo $ECHO_N "checking size of char... $ECHO_C" >&6
14270if test "${ac_cv_sizeof_char+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272else
14273 if test "$ac_cv_type_char" = yes; then
14274 # The cast to unsigned long works around a bug in the HP C Compiler
14275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14277 # This bug is HP SR number 8606223364.
a0b9e27f 14278 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14279 # Depending upon the size, compute the lo and hi bounds.
14280cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
14286$ac_includes_default
14287int
14288main ()
14289{
14290static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14291test_array [0] = 0
14292
14293 ;
14294 return 0;
14295}
14296_ACEOF
14297rm -f conftest.$ac_objext
14298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14299 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14300 ac_status=$?
32ddf007
VS
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
e6cc62c6
VS
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
e1293dcf 14306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_lo=0 ac_mid=0
14319 while :; do
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
32ddf007 14339 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14340 ac_status=$?
32ddf007
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); } &&
e1293dcf 14346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_hi=$ac_mid; break
14359else
14360 echo "$as_me: failed program was:" >&5
14361sed 's/^/| /' conftest.$ac_ext >&5
14362
14363ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14364 if test $ac_lo -le $ac_mid; then
14365 ac_lo= ac_hi=
14366 break
14367 fi
14368 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14369fi
32ddf007 14370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14371 done
a0b9e27f 14372else
e6cc62c6
VS
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382$ac_includes_default
14383int
14384main ()
14385{
14386static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14387test_array [0] = 0
14388
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393rm -f conftest.$ac_objext
14394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14395 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14396 ac_status=$?
32ddf007
VS
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
e6cc62c6
VS
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
e1293dcf 14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_hi=-1 ac_mid=-1
14415 while :; do
14416 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
14422$ac_includes_default
14423int
14424main ()
14425{
14426static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14427test_array [0] = 0
14428
14429 ;
14430 return 0;
14431}
14432_ACEOF
14433rm -f conftest.$ac_objext
14434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14435 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14436 ac_status=$?
32ddf007
VS
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
e6cc62c6
VS
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
e1293dcf 14442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_lo=$ac_mid; break
14455else
14456 echo "$as_me: failed program was:" >&5
14457sed 's/^/| /' conftest.$ac_ext >&5
14458
14459ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14460 if test $ac_mid -le $ac_hi; then
14461 ac_lo= ac_hi=
14462 break
14463 fi
14464 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14465fi
32ddf007 14466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14467 done
14468else
14469 echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472ac_lo= ac_hi=
14473fi
32ddf007 14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14475fi
32ddf007 14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14477# Binary search between lo and hi bounds.
14478while test "x$ac_lo" != "x$ac_hi"; do
14479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14480 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486$ac_includes_default
14487int
14488main ()
14489{
14490static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14491test_array [0] = 0
14492
14493 ;
14494 return 0;
14495}
14496_ACEOF
14497rm -f conftest.$ac_objext
14498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14499 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14500 ac_status=$?
32ddf007
VS
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
e6cc62c6
VS
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
e1293dcf 14506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_hi=$ac_mid
14519else
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
14523ac_lo=`expr '(' $ac_mid ')' + 1`
14524fi
32ddf007 14525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14526done
14527case $ac_lo in
14528?*) ac_cv_sizeof_char=$ac_lo;;
14529'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14530See \`config.log' for more details." >&5
14531echo "$as_me: error: cannot compute sizeof (char), 77
14532See \`config.log' for more details." >&2;}
14533 { (exit 1); exit 1; }; } ;;
14534esac
14535else
14536 if test "$cross_compiling" = yes; then
e1293dcf
RL
14537 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14538echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
14539 { (exit 1); exit 1; }; }
14540else
14541 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14542/* confdefs.h. */
14543_ACEOF
14544cat confdefs.h >>conftest.$ac_ext
14545cat >>conftest.$ac_ext <<_ACEOF
14546/* end confdefs.h. */
14547$ac_includes_default
14548long longval () { return (long) (sizeof (char)); }
14549unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14550#include <stdio.h>
e6cc62c6
VS
14551#include <stdlib.h>
14552int
14553main ()
247f5006 14554{
e6cc62c6
VS
14555
14556 FILE *f = fopen ("conftest.val", "w");
14557 if (! f)
14558 exit (1);
14559 if (((long) (sizeof (char))) < 0)
14560 {
14561 long i = longval ();
14562 if (i != ((long) (sizeof (char))))
14563 exit (1);
14564 fprintf (f, "%ld\n", i);
14565 }
14566 else
14567 {
14568 unsigned long i = ulongval ();
14569 if (i != ((long) (sizeof (char))))
14570 exit (1);
14571 fprintf (f, "%lu\n", i);
14572 }
14573 exit (ferror (f) || fclose (f) != 0);
14574
14575 ;
14576 return 0;
52127426 14577}
e6cc62c6
VS
14578_ACEOF
14579rm -f conftest$ac_exeext
14580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14581 (eval $ac_link) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_cv_sizeof_char=`cat conftest.val`
14591else
14592 echo "$as_me: program exited with status $ac_status" >&5
14593echo "$as_me: failed program was:" >&5
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
14596( exit $ac_status )
14597{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14598See \`config.log' for more details." >&5
14599echo "$as_me: error: cannot compute sizeof (char), 77
14600See \`config.log' for more details." >&2;}
14601 { (exit 1); exit 1; }; }
14602fi
32ddf007 14603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14604fi
14605fi
14606rm -f conftest.val
247f5006 14607else
a0b9e27f 14608 ac_cv_sizeof_char=0
247f5006 14609fi
247f5006 14610fi
e6cc62c6
VS
14611echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14612echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14613cat >>confdefs.h <<_ACEOF
14614#define SIZEOF_CHAR $ac_cv_sizeof_char
14615_ACEOF
14616
14617
14618echo "$as_me:$LINENO: checking for short" >&5
14619echo $ECHO_N "checking for short... $ECHO_C" >&6
14620if test "${ac_cv_type_short+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622else
14623 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629$ac_includes_default
14630int
14631main ()
14632{
14633if ((short *) 0)
14634 return 0;
14635if (sizeof (short))
14636 return 0;
14637 ;
14638 return 0;
14639}
14640_ACEOF
14641rm -f conftest.$ac_objext
14642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14643 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14644 ac_status=$?
32ddf007
VS
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
e6cc62c6
VS
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
e1293dcf 14650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_cv_type_short=yes
14663else
14664 echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
14666
14667ac_cv_type_short=no
14668fi
32ddf007 14669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14670fi
14671echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14672echo "${ECHO_T}$ac_cv_type_short" >&6
14673
14674echo "$as_me:$LINENO: checking size of short" >&5
14675echo $ECHO_N "checking size of short... $ECHO_C" >&6
14676if test "${ac_cv_sizeof_short+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679 if test "$ac_cv_type_short" = yes; then
14680 # The cast to unsigned long works around a bug in the HP C Compiler
14681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14683 # This bug is HP SR number 8606223364.
14684 if test "$cross_compiling" = yes; then
14685 # Depending upon the size, compute the lo and hi bounds.
14686cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14687/* confdefs.h. */
14688_ACEOF
14689cat confdefs.h >>conftest.$ac_ext
14690cat >>conftest.$ac_ext <<_ACEOF
14691/* end confdefs.h. */
14692$ac_includes_default
14693int
14694main ()
14695{
14696static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14697test_array [0] = 0
247f5006 14698
e6cc62c6
VS
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14705 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14706 ac_status=$?
32ddf007
VS
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
e6cc62c6
VS
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
e1293dcf 14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_lo=0 ac_mid=0
14725 while :; do
14726 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14727/* confdefs.h. */
14728_ACEOF
14729cat confdefs.h >>conftest.$ac_ext
14730cat >>conftest.$ac_ext <<_ACEOF
14731/* end confdefs.h. */
14732$ac_includes_default
14733int
14734main ()
14735{
14736static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14737test_array [0] = 0
14738
14739 ;
14740 return 0;
14741}
14742_ACEOF
14743rm -f conftest.$ac_objext
14744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14745 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14746 ac_status=$?
32ddf007
VS
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
e6cc62c6
VS
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
e1293dcf 14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_hi=$ac_mid; break
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14770 if test $ac_lo -le $ac_mid; then
14771 ac_lo= ac_hi=
14772 break
14773 fi
14774 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14775fi
32ddf007 14776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14777 done
14778else
14779 echo "$as_me: failed program was:" >&5
14780sed 's/^/| /' conftest.$ac_ext >&5
14781
14782cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
14788$ac_includes_default
14789int
14790main ()
14791{
14792static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14793test_array [0] = 0
247f5006 14794
e6cc62c6
VS
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14801 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14802 ac_status=$?
32ddf007
VS
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
e6cc62c6
VS
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
e1293dcf 14808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_hi=-1 ac_mid=-1
14821 while :; do
14822 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14823/* confdefs.h. */
14824_ACEOF
14825cat confdefs.h >>conftest.$ac_ext
14826cat >>conftest.$ac_ext <<_ACEOF
14827/* end confdefs.h. */
14828$ac_includes_default
14829int
14830main ()
14831{
14832static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14833test_array [0] = 0
247f5006 14834
e6cc62c6
VS
14835 ;
14836 return 0;
14837}
14838_ACEOF
14839rm -f conftest.$ac_objext
14840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14841 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14842 ac_status=$?
32ddf007
VS
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
e6cc62c6
VS
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
e1293dcf 14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_lo=$ac_mid; break
14861else
14862 echo "$as_me: failed program was:" >&5
14863sed 's/^/| /' conftest.$ac_ext >&5
14864
14865ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14866 if test $ac_mid -le $ac_hi; then
14867 ac_lo= ac_hi=
14868 break
14869 fi
14870 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14871fi
32ddf007 14872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14873 done
247f5006 14874else
e6cc62c6
VS
14875 echo "$as_me: failed program was:" >&5
14876sed 's/^/| /' conftest.$ac_ext >&5
14877
14878ac_lo= ac_hi=
14879fi
32ddf007 14880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14881fi
32ddf007 14882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14883# Binary search between lo and hi bounds.
14884while test "x$ac_lo" != "x$ac_hi"; do
14885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14886 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
14892$ac_includes_default
14893int
14894main ()
14895{
14896static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14897test_array [0] = 0
14898
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14905 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14906 ac_status=$?
32ddf007
VS
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
e6cc62c6
VS
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
e1293dcf 14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_hi=$ac_mid
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929ac_lo=`expr '(' $ac_mid ')' + 1`
14930fi
32ddf007 14931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14932done
14933case $ac_lo in
14934?*) ac_cv_sizeof_short=$ac_lo;;
14935'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14936See \`config.log' for more details." >&5
14937echo "$as_me: error: cannot compute sizeof (short), 77
14938See \`config.log' for more details." >&2;}
14939 { (exit 1); exit 1; }; } ;;
14940esac
247f5006 14941else
e6cc62c6 14942 if test "$cross_compiling" = yes; then
e1293dcf
RL
14943 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14944echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
14945 { (exit 1); exit 1; }; }
14946else
14947 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953$ac_includes_default
14954long longval () { return (long) (sizeof (short)); }
14955unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14956#include <stdio.h>
e6cc62c6
VS
14957#include <stdlib.h>
14958int
14959main ()
a0b9e27f 14960{
e6cc62c6
VS
14961
14962 FILE *f = fopen ("conftest.val", "w");
14963 if (! f)
14964 exit (1);
14965 if (((long) (sizeof (short))) < 0)
14966 {
14967 long i = longval ();
14968 if (i != ((long) (sizeof (short))))
14969 exit (1);
14970 fprintf (f, "%ld\n", i);
14971 }
14972 else
14973 {
14974 unsigned long i = ulongval ();
14975 if (i != ((long) (sizeof (short))))
14976 exit (1);
14977 fprintf (f, "%lu\n", i);
14978 }
14979 exit (ferror (f) || fclose (f) != 0);
14980
14981 ;
14982 return 0;
a0b9e27f 14983}
e6cc62c6
VS
14984_ACEOF
14985rm -f conftest$ac_exeext
14986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_sizeof_short=`cat conftest.val`
14997else
14998 echo "$as_me: program exited with status $ac_status" >&5
14999echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002( exit $ac_status )
15003{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15004See \`config.log' for more details." >&5
15005echo "$as_me: error: cannot compute sizeof (short), 77
15006See \`config.log' for more details." >&2;}
15007 { (exit 1); exit 1; }; }
15008fi
32ddf007 15009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15010fi
15011fi
15012rm -f conftest.val
247f5006 15013else
a0b9e27f 15014 ac_cv_sizeof_short=0
247f5006 15015fi
247f5006 15016fi
e6cc62c6
VS
15017echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15018echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15019cat >>confdefs.h <<_ACEOF
15020#define SIZEOF_SHORT $ac_cv_sizeof_short
15021_ACEOF
15022
15023
15024echo "$as_me:$LINENO: checking for void *" >&5
15025echo $ECHO_N "checking for void *... $ECHO_C" >&6
15026if test "${ac_cv_type_void_p+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035$ac_includes_default
15036int
15037main ()
15038{
15039if ((void * *) 0)
15040 return 0;
15041if (sizeof (void *))
15042 return 0;
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest.$ac_objext
15048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15049 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15050 ac_status=$?
32ddf007
VS
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
e6cc62c6
VS
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
e1293dcf 15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_cv_type_void_p=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073ac_cv_type_void_p=no
15074fi
32ddf007 15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15076fi
15077echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15078echo "${ECHO_T}$ac_cv_type_void_p" >&6
15079
15080echo "$as_me:$LINENO: checking size of void *" >&5
15081echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15082if test "${ac_cv_sizeof_void_p+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 if test "$ac_cv_type_void_p" = yes; then
15086 # The cast to unsigned long works around a bug in the HP C Compiler
15087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15089 # This bug is HP SR number 8606223364.
15090 if test "$cross_compiling" = yes; then
15091 # Depending upon the size, compute the lo and hi bounds.
15092cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098$ac_includes_default
15099int
15100main ()
15101{
15102static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15103test_array [0] = 0
15104
15105 ;
15106 return 0;
15107}
15108_ACEOF
15109rm -f conftest.$ac_objext
15110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15111 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15112 ac_status=$?
32ddf007
VS
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
e6cc62c6
VS
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
e1293dcf 15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_lo=0 ac_mid=0
15131 while :; do
15132 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h. */
15138$ac_includes_default
15139int
15140main ()
15141{
15142static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15143test_array [0] = 0
247f5006 15144
e6cc62c6
VS
15145 ;
15146 return 0;
15147}
15148_ACEOF
15149rm -f conftest.$ac_objext
15150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15151 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15152 ac_status=$?
32ddf007
VS
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
e6cc62c6
VS
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
e1293dcf 15158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_hi=$ac_mid; break
15171else
15172 echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15176 if test $ac_lo -le $ac_mid; then
15177 ac_lo= ac_hi=
15178 break
15179 fi
15180 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15181fi
32ddf007 15182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15183 done
15184else
15185 echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194$ac_includes_default
15195int
15196main ()
15197{
15198static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15199test_array [0] = 0
247f5006 15200
e6cc62c6
VS
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext
15206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15207 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15208 ac_status=$?
32ddf007
VS
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
e6cc62c6
VS
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
e1293dcf 15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_hi=-1 ac_mid=-1
15227 while :; do
15228 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234$ac_includes_default
15235int
15236main ()
15237{
15238static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15239test_array [0] = 0
247f5006 15240
e6cc62c6
VS
15241 ;
15242 return 0;
15243}
15244_ACEOF
15245rm -f conftest.$ac_objext
15246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15247 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15248 ac_status=$?
32ddf007
VS
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
e6cc62c6
VS
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
e1293dcf 15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_lo=$ac_mid; break
15267else
15268 echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15272 if test $ac_mid -le $ac_hi; then
15273 ac_lo= ac_hi=
15274 break
15275 fi
15276 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15277fi
32ddf007 15278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15279 done
a0b9e27f 15280else
e6cc62c6
VS
15281 echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
15284ac_lo= ac_hi=
15285fi
32ddf007 15286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15287fi
32ddf007 15288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15289# Binary search between lo and hi bounds.
15290while test "x$ac_lo" != "x$ac_hi"; do
15291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15292 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
15298$ac_includes_default
15299int
15300main ()
15301{
15302static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15303test_array [0] = 0
15304
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15311 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15312 ac_status=$?
32ddf007
VS
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
e6cc62c6
VS
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
e1293dcf 15318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_hi=$ac_mid
15331else
15332 echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335ac_lo=`expr '(' $ac_mid ')' + 1`
15336fi
32ddf007 15337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15338done
15339case $ac_lo in
15340?*) ac_cv_sizeof_void_p=$ac_lo;;
15341'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15342See \`config.log' for more details." >&5
15343echo "$as_me: error: cannot compute sizeof (void *), 77
15344See \`config.log' for more details." >&2;}
15345 { (exit 1); exit 1; }; } ;;
15346esac
247f5006 15347else
e6cc62c6 15348 if test "$cross_compiling" = yes; then
e1293dcf
RL
15349 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15350echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
15351 { (exit 1); exit 1; }; }
15352else
15353 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15354/* confdefs.h. */
15355_ACEOF
15356cat confdefs.h >>conftest.$ac_ext
15357cat >>conftest.$ac_ext <<_ACEOF
15358/* end confdefs.h. */
15359$ac_includes_default
15360long longval () { return (long) (sizeof (void *)); }
15361unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15362#include <stdio.h>
e6cc62c6
VS
15363#include <stdlib.h>
15364int
15365main ()
247f5006 15366{
e6cc62c6
VS
15367
15368 FILE *f = fopen ("conftest.val", "w");
15369 if (! f)
15370 exit (1);
15371 if (((long) (sizeof (void *))) < 0)
15372 {
15373 long i = longval ();
15374 if (i != ((long) (sizeof (void *))))
15375 exit (1);
15376 fprintf (f, "%ld\n", i);
15377 }
15378 else
15379 {
15380 unsigned long i = ulongval ();
15381 if (i != ((long) (sizeof (void *))))
15382 exit (1);
15383 fprintf (f, "%lu\n", i);
15384 }
15385 exit (ferror (f) || fclose (f) != 0);
15386
15387 ;
15388 return 0;
5c6fa7d2 15389}
e6cc62c6
VS
15390_ACEOF
15391rm -f conftest$ac_exeext
15392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_sizeof_void_p=`cat conftest.val`
15403else
15404 echo "$as_me: program exited with status $ac_status" >&5
15405echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408( exit $ac_status )
15409{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15410See \`config.log' for more details." >&5
15411echo "$as_me: error: cannot compute sizeof (void *), 77
15412See \`config.log' for more details." >&2;}
15413 { (exit 1); exit 1; }; }
15414fi
32ddf007 15415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15416fi
15417fi
15418rm -f conftest.val
a0b9e27f 15419else
a0b9e27f
MB
15420 ac_cv_sizeof_void_p=0
15421fi
a0b9e27f 15422fi
e6cc62c6
VS
15423echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15424echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15425cat >>confdefs.h <<_ACEOF
15426#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15427_ACEOF
15428
15429
15430echo "$as_me:$LINENO: checking for int" >&5
15431echo $ECHO_N "checking for int... $ECHO_C" >&6
15432if test "${ac_cv_type_int+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434else
15435 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442int
15443main ()
15444{
15445if ((int *) 0)
15446 return 0;
15447if (sizeof (int))
15448 return 0;
15449 ;
15450 return 0;
15451}
15452_ACEOF
15453rm -f conftest.$ac_objext
15454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15455 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15456 ac_status=$?
32ddf007
VS
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
e6cc62c6
VS
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
e1293dcf 15462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_type_int=yes
15475else
15476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479ac_cv_type_int=no
15480fi
32ddf007 15481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15482fi
15483echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15484echo "${ECHO_T}$ac_cv_type_int" >&6
15485
15486echo "$as_me:$LINENO: checking size of int" >&5
15487echo $ECHO_N "checking size of int... $ECHO_C" >&6
15488if test "${ac_cv_sizeof_int+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490else
15491 if test "$ac_cv_type_int" = yes; then
15492 # The cast to unsigned long works around a bug in the HP C Compiler
15493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15495 # This bug is HP SR number 8606223364.
15496 if test "$cross_compiling" = yes; then
15497 # Depending upon the size, compute the lo and hi bounds.
15498cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15499/* confdefs.h. */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h. */
15504$ac_includes_default
15505int
15506main ()
15507{
15508static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15509test_array [0] = 0
8284b0c5 15510
e6cc62c6
VS
15511 ;
15512 return 0;
15513}
15514_ACEOF
15515rm -f conftest.$ac_objext
15516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15517 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15518 ac_status=$?
32ddf007
VS
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
e6cc62c6
VS
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
e1293dcf 15524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
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=0 ac_mid=0
15537 while :; do
15538 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544$ac_includes_default
15545int
15546main ()
15547{
15548static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15549test_array [0] = 0
15550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15557 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15558 ac_status=$?
32ddf007
VS
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
e6cc62c6
VS
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
e1293dcf 15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_hi=$ac_mid; break
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15582 if test $ac_lo -le $ac_mid; then
15583 ac_lo= ac_hi=
15584 break
15585 fi
15586 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15587fi
32ddf007 15588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15589 done
15590else
15591 echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
15594cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15595/* confdefs.h. */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h. */
15600$ac_includes_default
15601int
15602main ()
15603{
15604static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15605test_array [0] = 0
247f5006 15606
e6cc62c6
VS
15607 ;
15608 return 0;
15609}
15610_ACEOF
15611rm -f conftest.$ac_objext
15612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15613 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15614 ac_status=$?
32ddf007
VS
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
e6cc62c6
VS
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
e1293dcf 15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_hi=-1 ac_mid=-1
15633 while :; do
15634 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640$ac_includes_default
15641int
15642main ()
15643{
15644static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15645test_array [0] = 0
247f5006 15646
e6cc62c6
VS
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext
15652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15653 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15654 ac_status=$?
32ddf007
VS
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
e6cc62c6
VS
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
e1293dcf 15660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_lo=$ac_mid; break
15673else
15674 echo "$as_me: failed program was:" >&5
15675sed 's/^/| /' conftest.$ac_ext >&5
15676
15677ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15678 if test $ac_mid -le $ac_hi; then
15679 ac_lo= ac_hi=
15680 break
15681 fi
15682 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15683fi
32ddf007 15684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15685 done
247f5006 15686else
e6cc62c6
VS
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690ac_lo= ac_hi=
15691fi
32ddf007 15692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15693fi
32ddf007 15694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15695# Binary search between lo and hi bounds.
15696while test "x$ac_lo" != "x$ac_hi"; do
15697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15698 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
15708static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15717 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15718 ac_status=$?
32ddf007
VS
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
e6cc62c6
VS
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
e1293dcf 15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_lo=`expr '(' $ac_mid ')' + 1`
15742fi
32ddf007 15743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15744done
15745case $ac_lo in
15746?*) ac_cv_sizeof_int=$ac_lo;;
15747'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15748See \`config.log' for more details." >&5
15749echo "$as_me: error: cannot compute sizeof (int), 77
15750See \`config.log' for more details." >&2;}
15751 { (exit 1); exit 1; }; } ;;
15752esac
a0b9e27f 15753else
e6cc62c6 15754 if test "$cross_compiling" = yes; then
e1293dcf
RL
15755 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15756echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
15757 { (exit 1); exit 1; }; }
15758else
15759 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15760/* confdefs.h. */
15761_ACEOF
15762cat confdefs.h >>conftest.$ac_ext
15763cat >>conftest.$ac_ext <<_ACEOF
15764/* end confdefs.h. */
15765$ac_includes_default
15766long longval () { return (long) (sizeof (int)); }
15767unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15768#include <stdio.h>
e6cc62c6
VS
15769#include <stdlib.h>
15770int
15771main ()
247f5006 15772{
e6cc62c6
VS
15773
15774 FILE *f = fopen ("conftest.val", "w");
15775 if (! f)
15776 exit (1);
15777 if (((long) (sizeof (int))) < 0)
15778 {
15779 long i = longval ();
15780 if (i != ((long) (sizeof (int))))
15781 exit (1);
15782 fprintf (f, "%ld\n", i);
15783 }
15784 else
15785 {
15786 unsigned long i = ulongval ();
15787 if (i != ((long) (sizeof (int))))
15788 exit (1);
15789 fprintf (f, "%lu\n", i);
15790 }
15791 exit (ferror (f) || fclose (f) != 0);
15792
15793 ;
15794 return 0;
247f5006 15795}
e6cc62c6
VS
15796_ACEOF
15797rm -f conftest$ac_exeext
15798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_sizeof_int=`cat conftest.val`
15809else
15810 echo "$as_me: program exited with status $ac_status" >&5
15811echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814( exit $ac_status )
15815{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15816See \`config.log' for more details." >&5
15817echo "$as_me: error: cannot compute sizeof (int), 77
15818See \`config.log' for more details." >&2;}
15819 { (exit 1); exit 1; }; }
15820fi
32ddf007 15821rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15822fi
15823fi
15824rm -f conftest.val
6f72b082 15825else
a0b9e27f 15826 ac_cv_sizeof_int=0
21d1c967 15827fi
698dcdb6 15828fi
e6cc62c6
VS
15829echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15830echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15831cat >>confdefs.h <<_ACEOF
15832#define SIZEOF_INT $ac_cv_sizeof_int
15833_ACEOF
15834
15835
15836echo "$as_me:$LINENO: checking for long" >&5
15837echo $ECHO_N "checking for long... $ECHO_C" >&6
15838if test "${ac_cv_type_long+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847$ac_includes_default
15848int
15849main ()
15850{
15851if ((long *) 0)
15852 return 0;
15853if (sizeof (long))
15854 return 0;
15855 ;
15856 return 0;
15857}
15858_ACEOF
15859rm -f conftest.$ac_objext
15860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15861 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15862 ac_status=$?
32ddf007
VS
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
e6cc62c6
VS
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
e1293dcf 15868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 ac_cv_type_long=yes
15881else
15882 echo "$as_me: failed program was:" >&5
15883sed 's/^/| /' conftest.$ac_ext >&5
15884
15885ac_cv_type_long=no
15886fi
32ddf007 15887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15888fi
15889echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15890echo "${ECHO_T}$ac_cv_type_long" >&6
15891
15892echo "$as_me:$LINENO: checking size of long" >&5
15893echo $ECHO_N "checking size of long... $ECHO_C" >&6
15894if test "${ac_cv_sizeof_long+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896else
15897 if test "$ac_cv_type_long" = yes; then
15898 # The cast to unsigned long works around a bug in the HP C Compiler
15899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15901 # This bug is HP SR number 8606223364.
15902 if test "$cross_compiling" = yes; then
15903 # Depending upon the size, compute the lo and hi bounds.
15904cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15905/* confdefs.h. */
15906_ACEOF
15907cat confdefs.h >>conftest.$ac_ext
15908cat >>conftest.$ac_ext <<_ACEOF
15909/* end confdefs.h. */
15910$ac_includes_default
15911int
15912main ()
15913{
15914static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15915test_array [0] = 0
15916
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921rm -f conftest.$ac_objext
15922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15923 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15924 ac_status=$?
32ddf007
VS
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
e6cc62c6
VS
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
e1293dcf 15930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 ac_lo=0 ac_mid=0
15943 while :; do
15944 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
15950$ac_includes_default
15951int
15952main ()
15953{
15954static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15955test_array [0] = 0
4f14bcd8 15956
e6cc62c6
VS
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext
15962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15963 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15964 ac_status=$?
32ddf007
VS
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
e6cc62c6
VS
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
e1293dcf 15970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_hi=$ac_mid; break
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15988 if test $ac_lo -le $ac_mid; then
15989 ac_lo= ac_hi=
15990 break
15991 fi
15992 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15993fi
32ddf007 15994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15995 done
15996else
15997 echo "$as_me: failed program was:" >&5
15998sed 's/^/| /' conftest.$ac_ext >&5
15999
16000cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006$ac_includes_default
16007int
16008main ()
16009{
16010static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16011test_array [0] = 0
4f14bcd8 16012
e6cc62c6
VS
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017rm -f conftest.$ac_objext
16018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16019 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16020 ac_status=$?
32ddf007
VS
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
e6cc62c6
VS
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
e1293dcf 16026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_hi=-1 ac_mid=-1
16039 while :; do
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
16047int
16048main ()
16049{
16050static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16051test_array [0] = 0
5c6fa7d2 16052
e6cc62c6
VS
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057rm -f conftest.$ac_objext
16058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16059 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16060 ac_status=$?
32ddf007
VS
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
e6cc62c6
VS
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
e1293dcf 16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_lo=$ac_mid; break
16079else
16080 echo "$as_me: failed program was:" >&5
16081sed 's/^/| /' conftest.$ac_ext >&5
16082
16083ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16084 if test $ac_mid -le $ac_hi; then
16085 ac_lo= ac_hi=
16086 break
16087 fi
16088 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16089fi
32ddf007 16090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16091 done
247f5006 16092else
e6cc62c6
VS
16093 echo "$as_me: failed program was:" >&5
16094sed 's/^/| /' conftest.$ac_ext >&5
16095
16096ac_lo= ac_hi=
16097fi
32ddf007 16098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16099fi
32ddf007 16100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16101# Binary search between lo and hi bounds.
16102while test "x$ac_lo" != "x$ac_hi"; do
16103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16104 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110$ac_includes_default
16111int
16112main ()
16113{
16114static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16115test_array [0] = 0
16116
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext
16122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16123 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16124 ac_status=$?
32ddf007
VS
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
e6cc62c6
VS
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
e1293dcf 16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=$ac_mid
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147ac_lo=`expr '(' $ac_mid ')' + 1`
16148fi
32ddf007 16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16150done
16151case $ac_lo in
16152?*) ac_cv_sizeof_long=$ac_lo;;
16153'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16154See \`config.log' for more details." >&5
16155echo "$as_me: error: cannot compute sizeof (long), 77
16156See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; } ;;
16158esac
247f5006 16159else
e6cc62c6 16160 if test "$cross_compiling" = yes; then
e1293dcf
RL
16161 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16162echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
16163 { (exit 1); exit 1; }; }
16164else
16165 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16166/* confdefs.h. */
16167_ACEOF
16168cat confdefs.h >>conftest.$ac_ext
16169cat >>conftest.$ac_ext <<_ACEOF
16170/* end confdefs.h. */
16171$ac_includes_default
16172long longval () { return (long) (sizeof (long)); }
16173unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16174#include <stdio.h>
e6cc62c6
VS
16175#include <stdlib.h>
16176int
16177main ()
247f5006 16178{
e6cc62c6
VS
16179
16180 FILE *f = fopen ("conftest.val", "w");
16181 if (! f)
16182 exit (1);
16183 if (((long) (sizeof (long))) < 0)
16184 {
16185 long i = longval ();
16186 if (i != ((long) (sizeof (long))))
16187 exit (1);
16188 fprintf (f, "%ld\n", i);
16189 }
16190 else
16191 {
16192 unsigned long i = ulongval ();
16193 if (i != ((long) (sizeof (long))))
16194 exit (1);
16195 fprintf (f, "%lu\n", i);
16196 }
16197 exit (ferror (f) || fclose (f) != 0);
16198
16199 ;
16200 return 0;
247f5006 16201}
e6cc62c6
VS
16202_ACEOF
16203rm -f conftest$ac_exeext
16204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205 (eval $ac_link) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_sizeof_long=`cat conftest.val`
16215else
16216 echo "$as_me: program exited with status $ac_status" >&5
16217echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220( exit $ac_status )
16221{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16222See \`config.log' for more details." >&5
16223echo "$as_me: error: cannot compute sizeof (long), 77
16224See \`config.log' for more details." >&2;}
16225 { (exit 1); exit 1; }; }
16226fi
32ddf007 16227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16228fi
16229fi
16230rm -f conftest.val
247f5006 16231else
a0b9e27f 16232 ac_cv_sizeof_long=0
247f5006 16233fi
247f5006 16234fi
e6cc62c6
VS
16235echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16236echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16237cat >>confdefs.h <<_ACEOF
a0b9e27f 16238#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16239_ACEOF
247f5006 16240
a0b9e27f 16241
ecfd48ca
VZ
16242echo "$as_me:$LINENO: checking for size_t" >&5
16243echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16244if test "${ac_cv_type_size_t+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254int
16255main ()
16256{
16257if ((size_t *) 0)
16258 return 0;
16259if (sizeof (size_t))
16260 return 0;
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265rm -f conftest.$ac_objext
16266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16267 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16268 ac_status=$?
32ddf007
VS
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
ecfd48ca
VZ
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
e1293dcf 16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_size_t=yes
16287else
16288 echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291ac_cv_type_size_t=no
16292fi
32ddf007 16293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16294fi
16295echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16296echo "${ECHO_T}$ac_cv_type_size_t" >&6
16297
16298echo "$as_me:$LINENO: checking size of size_t" >&5
16299echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16300if test "${ac_cv_sizeof_size_t+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 if test "$ac_cv_type_size_t" = yes; then
16304 # The cast to unsigned long works around a bug in the HP C Compiler
16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16307 # This bug is HP SR number 8606223364.
16308 if test "$cross_compiling" = yes; then
16309 # Depending upon the size, compute the lo and hi bounds.
16310cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316$ac_includes_default
16317int
16318main ()
16319{
16320static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16321test_array [0] = 0
16322
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327rm -f conftest.$ac_objext
16328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16329 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16330 ac_status=$?
32ddf007
VS
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
ecfd48ca
VZ
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
e1293dcf 16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_lo=0 ac_mid=0
16349 while :; do
16350 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356$ac_includes_default
16357int
16358main ()
16359{
16360static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16361test_array [0] = 0
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext
16368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16369 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16370 ac_status=$?
32ddf007
VS
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
ecfd48ca
VZ
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
e1293dcf 16376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_hi=$ac_mid; break
16389else
16390 echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16394 if test $ac_lo -le $ac_mid; then
16395 ac_lo= ac_hi=
16396 break
16397 fi
16398 ac_mid=`expr 2 '*' $ac_mid + 1`
ecfd48ca 16399fi
32ddf007 16400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16401 done
16402else
16403 echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412$ac_includes_default
16413int
16414main ()
16415{
16416static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16417test_array [0] = 0
16418
16419 ;
16420 return 0;
16421}
16422_ACEOF
16423rm -f conftest.$ac_objext
16424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16425 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16426 ac_status=$?
32ddf007
VS
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
ecfd48ca
VZ
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
e1293dcf 16432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_hi=-1 ac_mid=-1
16445 while :; do
16446 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16447/* confdefs.h. */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h. */
16452$ac_includes_default
16453int
16454main ()
16455{
16456static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16457test_array [0] = 0
16458
16459 ;
16460 return 0;
16461}
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16465 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16466 ac_status=$?
32ddf007
VS
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
ecfd48ca
VZ
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
e1293dcf 16472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_lo=$ac_mid; break
16485else
16486 echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16490 if test $ac_mid -le $ac_hi; then
16491 ac_lo= ac_hi=
16492 break
16493 fi
16494 ac_mid=`expr 2 '*' $ac_mid`
ecfd48ca 16495fi
32ddf007 16496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16497 done
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502ac_lo= ac_hi=
16503fi
32ddf007 16504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca 16505fi
32ddf007 16506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16507# Binary search between lo and hi bounds.
16508while test "x$ac_lo" != "x$ac_hi"; do
16509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16510 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517int
16518main ()
16519{
16520static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16521test_array [0] = 0
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16529 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16530 ac_status=$?
32ddf007
VS
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
ecfd48ca
VZ
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
e1293dcf 16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr '(' $ac_mid ')' + 1`
16554fi
32ddf007 16555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16556done
16557case $ac_lo in
16558?*) ac_cv_sizeof_size_t=$ac_lo;;
16559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16560See \`config.log' for more details." >&5
16561echo "$as_me: error: cannot compute sizeof (size_t), 77
16562See \`config.log' for more details." >&2;}
16563 { (exit 1); exit 1; }; } ;;
16564esac
16565else
16566 if test "$cross_compiling" = yes; then
e1293dcf
RL
16567 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16568echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
ecfd48ca
VZ
16569 { (exit 1); exit 1; }; }
16570else
16571 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
16577$ac_includes_default
16578long longval () { return (long) (sizeof (size_t)); }
16579unsigned long ulongval () { return (long) (sizeof (size_t)); }
16580#include <stdio.h>
16581#include <stdlib.h>
16582int
16583main ()
16584{
16585
16586 FILE *f = fopen ("conftest.val", "w");
16587 if (! f)
16588 exit (1);
16589 if (((long) (sizeof (size_t))) < 0)
16590 {
16591 long i = longval ();
16592 if (i != ((long) (sizeof (size_t))))
16593 exit (1);
16594 fprintf (f, "%ld\n", i);
16595 }
16596 else
16597 {
16598 unsigned long i = ulongval ();
16599 if (i != ((long) (sizeof (size_t))))
16600 exit (1);
16601 fprintf (f, "%lu\n", i);
16602 }
16603 exit (ferror (f) || fclose (f) != 0);
16604
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest$ac_exeext
16610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16611 (eval $ac_link) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_sizeof_size_t=`cat conftest.val`
16621else
16622 echo "$as_me: program exited with status $ac_status" >&5
16623echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626( exit $ac_status )
16627{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16628See \`config.log' for more details." >&5
16629echo "$as_me: error: cannot compute sizeof (size_t), 77
16630See \`config.log' for more details." >&2;}
16631 { (exit 1); exit 1; }; }
16632fi
32ddf007 16633rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16634fi
16635fi
16636rm -f conftest.val
16637else
16638 ac_cv_sizeof_size_t=0
16639fi
16640fi
16641echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16642echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16643cat >>confdefs.h <<_ACEOF
16644#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16645_ACEOF
16646
16647
a0b9e27f
MB
16648
16649case "${host}" in
16650 arm-*-linux* )
e6cc62c6
VS
16651 echo "$as_me:$LINENO: checking for long long" >&5
16652echo $ECHO_N "checking for long long... $ECHO_C" >&6
16653if test "${ac_cv_type_long_long+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662$ac_includes_default
16663int
16664main ()
16665{
16666if ((long long *) 0)
16667 return 0;
16668if (sizeof (long long))
16669 return 0;
16670 ;
16671 return 0;
16672}
16673_ACEOF
16674rm -f conftest.$ac_objext
16675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16676 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16677 ac_status=$?
32ddf007
VS
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
e6cc62c6
VS
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
e1293dcf 16683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_type_long_long=yes
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700ac_cv_type_long_long=no
16701fi
32ddf007 16702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16703fi
16704echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16705echo "${ECHO_T}$ac_cv_type_long_long" >&6
16706
16707echo "$as_me:$LINENO: checking size of long long" >&5
16708echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16709if test "${ac_cv_sizeof_long_long+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
16712 if test "$ac_cv_type_long_long" = yes; then
16713 # The cast to unsigned long works around a bug in the HP C Compiler
16714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16716 # This bug is HP SR number 8606223364.
a0b9e27f 16717 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16718 # Depending upon the size, compute the lo and hi bounds.
16719cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16720/* confdefs.h. */
16721_ACEOF
16722cat confdefs.h >>conftest.$ac_ext
16723cat >>conftest.$ac_ext <<_ACEOF
16724/* end confdefs.h. */
16725$ac_includes_default
16726int
16727main ()
16728{
16729static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16730test_array [0] = 0
16731
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest.$ac_objext
16737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16738 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16739 ac_status=$?
32ddf007
VS
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
e6cc62c6
VS
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
e1293dcf 16745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_lo=0 ac_mid=0
16758 while :; do
16759 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16760/* confdefs.h. */
16761_ACEOF
16762cat confdefs.h >>conftest.$ac_ext
16763cat >>conftest.$ac_ext <<_ACEOF
16764/* end confdefs.h. */
16765$ac_includes_default
16766int
16767main ()
16768{
16769static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16770test_array [0] = 0
16771
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776rm -f conftest.$ac_objext
16777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16778 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16779 ac_status=$?
32ddf007
VS
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
e6cc62c6
VS
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
e1293dcf 16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_hi=$ac_mid; break
16798else
16799 echo "$as_me: failed program was:" >&5
16800sed 's/^/| /' conftest.$ac_ext >&5
16801
16802ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16803 if test $ac_lo -le $ac_mid; then
16804 ac_lo= ac_hi=
16805 break
16806 fi
16807 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16808fi
32ddf007 16809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16810 done
16811else
16812 echo "$as_me: failed program was:" >&5
16813sed 's/^/| /' conftest.$ac_ext >&5
16814
16815cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16826test_array [0] = 0
16827
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16834 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16835 ac_status=$?
32ddf007
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
e6cc62c6
VS
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
e1293dcf 16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_hi=-1 ac_mid=-1
16854 while :; do
16855 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h. */
16861$ac_includes_default
16862int
16863main ()
16864{
16865static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16866test_array [0] = 0
16867
16868 ;
16869 return 0;
16870}
16871_ACEOF
16872rm -f conftest.$ac_objext
16873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16874 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16875 ac_status=$?
32ddf007
VS
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
e6cc62c6
VS
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
e1293dcf 16881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_lo=$ac_mid; break
16894else
16895 echo "$as_me: failed program was:" >&5
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
16898ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16899 if test $ac_mid -le $ac_hi; then
16900 ac_lo= ac_hi=
16901 break
16902 fi
16903 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16904fi
32ddf007 16905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16906 done
16907else
16908 echo "$as_me: failed program was:" >&5
16909sed 's/^/| /' conftest.$ac_ext >&5
16910
16911ac_lo= ac_hi=
16912fi
32ddf007 16913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16914fi
32ddf007 16915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16916# Binary search between lo and hi bounds.
16917while test "x$ac_lo" != "x$ac_hi"; do
16918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16919 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925$ac_includes_default
16926int
16927main ()
16928{
16929static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16930test_array [0] = 0
16931
16932 ;
16933 return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext
16937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16938 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16939 ac_status=$?
32ddf007
VS
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
e6cc62c6
VS
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
e1293dcf 16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_hi=$ac_mid
16958else
16959 echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
16962ac_lo=`expr '(' $ac_mid ')' + 1`
16963fi
32ddf007 16964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16965done
16966case $ac_lo in
16967?*) ac_cv_sizeof_long_long=$ac_lo;;
16968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16969See \`config.log' for more details." >&5
16970echo "$as_me: error: cannot compute sizeof (long long), 77
16971See \`config.log' for more details." >&2;}
16972 { (exit 1); exit 1; }; } ;;
16973esac
a0b9e27f 16974else
e6cc62c6 16975 if test "$cross_compiling" = yes; then
e1293dcf
RL
16976 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16977echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
16978 { (exit 1); exit 1; }; }
16979else
16980 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986$ac_includes_default
16987long longval () { return (long) (sizeof (long long)); }
16988unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16989#include <stdio.h>
e6cc62c6
VS
16990#include <stdlib.h>
16991int
16992main ()
247f5006 16993{
e6cc62c6
VS
16994
16995 FILE *f = fopen ("conftest.val", "w");
16996 if (! f)
16997 exit (1);
16998 if (((long) (sizeof (long long))) < 0)
16999 {
17000 long i = longval ();
17001 if (i != ((long) (sizeof (long long))))
17002 exit (1);
17003 fprintf (f, "%ld\n", i);
17004 }
17005 else
17006 {
17007 unsigned long i = ulongval ();
17008 if (i != ((long) (sizeof (long long))))
17009 exit (1);
17010 fprintf (f, "%lu\n", i);
17011 }
17012 exit (ferror (f) || fclose (f) != 0);
17013
17014 ;
17015 return 0;
247f5006 17016}
e6cc62c6
VS
17017_ACEOF
17018rm -f conftest$ac_exeext
17019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_sizeof_long_long=`cat conftest.val`
17030else
17031 echo "$as_me: program exited with status $ac_status" >&5
17032echo "$as_me: failed program was:" >&5
17033sed 's/^/| /' conftest.$ac_ext >&5
17034
17035( exit $ac_status )
17036{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17037See \`config.log' for more details." >&5
17038echo "$as_me: error: cannot compute sizeof (long long), 77
17039See \`config.log' for more details." >&2;}
17040 { (exit 1); exit 1; }; }
17041fi
32ddf007 17042rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17043fi
17044fi
17045rm -f conftest.val
7b4a847f 17046else
a0b9e27f 17047 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
17048fi
17049fi
e6cc62c6
VS
17050echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17051echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17052cat >>confdefs.h <<_ACEOF
17053#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17054_ACEOF
17055
17056
17057 ;;
17058 *-hp-hpux* )
17059 echo "$as_me:$LINENO: checking for long long" >&5
17060echo $ECHO_N "checking for long long... $ECHO_C" >&6
17061if test "${ac_cv_type_long_long+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
17070$ac_includes_default
17071int
17072main ()
17073{
17074if ((long long *) 0)
17075 return 0;
17076if (sizeof (long long))
17077 return 0;
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext
17083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17084 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17085 ac_status=$?
32ddf007
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); } &&
e1293dcf 17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_type_long_long=yes
17104else
17105 echo "$as_me: failed program was:" >&5
17106sed 's/^/| /' conftest.$ac_ext >&5
17107
17108ac_cv_type_long_long=no
17109fi
32ddf007 17110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17111fi
17112echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17113echo "${ECHO_T}$ac_cv_type_long_long" >&6
17114
17115echo "$as_me:$LINENO: checking size of long long" >&5
17116echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17117if test "${ac_cv_sizeof_long_long+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 if test "$ac_cv_type_long_long" = yes; then
17121 # The cast to unsigned long works around a bug in the HP C Compiler
17122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17124 # This bug is HP SR number 8606223364.
17125 if test "$cross_compiling" = yes; then
17126 # Depending upon the size, compute the lo and hi bounds.
17127cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
17133$ac_includes_default
17134int
17135main ()
17136{
17137static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17138test_array [0] = 0
17139
17140 ;
17141 return 0;
17142}
17143_ACEOF
17144rm -f conftest.$ac_objext
17145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17146 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17147 ac_status=$?
32ddf007
VS
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
e6cc62c6
VS
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
e1293dcf 17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_lo=0 ac_mid=0
17166 while :; do
17167 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173$ac_includes_default
17174int
17175main ()
17176{
17177static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17178test_array [0] = 0
8284b0c5 17179
e6cc62c6
VS
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext
17185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17186 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17187 ac_status=$?
32ddf007
VS
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
e6cc62c6
VS
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
e1293dcf 17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_hi=$ac_mid; break
17206else
17207 echo "$as_me: failed program was:" >&5
17208sed 's/^/| /' conftest.$ac_ext >&5
17209
17210ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17211 if test $ac_lo -le $ac_mid; then
17212 ac_lo= ac_hi=
17213 break
17214 fi
17215 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 17216fi
32ddf007 17217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17218 done
17219else
17220 echo "$as_me: failed program was:" >&5
17221sed 's/^/| /' conftest.$ac_ext >&5
17222
17223cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
17229$ac_includes_default
17230int
17231main ()
17232{
17233static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17234test_array [0] = 0
a0b9e27f 17235
e6cc62c6
VS
17236 ;
17237 return 0;
17238}
17239_ACEOF
17240rm -f conftest.$ac_objext
17241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17242 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17243 ac_status=$?
32ddf007
VS
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
e6cc62c6
VS
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
e1293dcf 17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
17261 ac_hi=-1 ac_mid=-1
17262 while :; do
17263 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269$ac_includes_default
17270int
17271main ()
17272{
17273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17274test_array [0] = 0
a0b9e27f 17275
e6cc62c6
VS
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280rm -f conftest.$ac_objext
17281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17282 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17283 ac_status=$?
32ddf007
VS
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
e6cc62c6
VS
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
e1293dcf 17289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_lo=$ac_mid; break
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
17306ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17307 if test $ac_mid -le $ac_hi; then
17308 ac_lo= ac_hi=
17309 break
17310 fi
17311 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17312fi
32ddf007 17313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17314 done
8284b0c5 17315else
e6cc62c6
VS
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319ac_lo= ac_hi=
17320fi
32ddf007 17321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17322fi
32ddf007 17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17324# Binary search between lo and hi bounds.
17325while test "x$ac_lo" != "x$ac_hi"; do
17326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17327 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333$ac_includes_default
17334int
17335main ()
17336{
17337static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17338test_array [0] = 0
17339
17340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext
17345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17346 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17347 ac_status=$?
32ddf007
VS
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
e6cc62c6
VS
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
e1293dcf 17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_hi=$ac_mid
17366else
17367 echo "$as_me: failed program was:" >&5
17368sed 's/^/| /' conftest.$ac_ext >&5
17369
17370ac_lo=`expr '(' $ac_mid ')' + 1`
17371fi
32ddf007 17372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17373done
17374case $ac_lo in
17375?*) ac_cv_sizeof_long_long=$ac_lo;;
17376'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17377See \`config.log' for more details." >&5
17378echo "$as_me: error: cannot compute sizeof (long long), 77
17379See \`config.log' for more details." >&2;}
17380 { (exit 1); exit 1; }; } ;;
17381esac
8284b0c5 17382else
e6cc62c6 17383 if test "$cross_compiling" = yes; then
e1293dcf
RL
17384 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17385echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
17386 { (exit 1); exit 1; }; }
17387else
17388 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
17394$ac_includes_default
17395long longval () { return (long) (sizeof (long long)); }
17396unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 17397#include <stdio.h>
e6cc62c6
VS
17398#include <stdlib.h>
17399int
17400main ()
8284b0c5 17401{
e6cc62c6
VS
17402
17403 FILE *f = fopen ("conftest.val", "w");
17404 if (! f)
17405 exit (1);
17406 if (((long) (sizeof (long long))) < 0)
17407 {
17408 long i = longval ();
17409 if (i != ((long) (sizeof (long long))))
17410 exit (1);
17411 fprintf (f, "%ld\n", i);
17412 }
17413 else
17414 {
17415 unsigned long i = ulongval ();
17416 if (i != ((long) (sizeof (long long))))
17417 exit (1);
17418 fprintf (f, "%lu\n", i);
17419 }
17420 exit (ferror (f) || fclose (f) != 0);
17421
17422 ;
17423 return 0;
8284b0c5 17424}
e6cc62c6
VS
17425_ACEOF
17426rm -f conftest$ac_exeext
17427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_sizeof_long_long=`cat conftest.val`
17438else
17439 echo "$as_me: program exited with status $ac_status" >&5
17440echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443( exit $ac_status )
17444{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17445See \`config.log' for more details." >&5
17446echo "$as_me: error: cannot compute sizeof (long long), 77
17447See \`config.log' for more details." >&2;}
17448 { (exit 1); exit 1; }; }
17449fi
32ddf007 17450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17451fi
17452fi
17453rm -f conftest.val
5c6fa7d2
RR
17454else
17455 ac_cv_sizeof_long_long=0
52127426 17456fi
4f57cf11 17457fi
e6cc62c6
VS
17458echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17459echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17460cat >>confdefs.h <<_ACEOF
4f57cf11 17461#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17462_ACEOF
4f57cf11
GD
17463
17464
17465 if test "$ac_cv_sizeof_long_long" != "0"; then
17466 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17467 fi
17468 ;;
17469 * )
e6cc62c6
VS
17470 echo "$as_me:$LINENO: checking for long long" >&5
17471echo $ECHO_N "checking for long long... $ECHO_C" >&6
17472if test "${ac_cv_type_long_long+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h. */
17481$ac_includes_default
17482int
17483main ()
17484{
17485if ((long long *) 0)
17486 return 0;
17487if (sizeof (long long))
17488 return 0;
17489 ;
17490 return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext
17494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17495 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17496 ac_status=$?
32ddf007
VS
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
e6cc62c6
VS
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
e1293dcf 17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_type_long_long=yes
17515else
17516 echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519ac_cv_type_long_long=no
17520fi
32ddf007 17521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17522fi
17523echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17524echo "${ECHO_T}$ac_cv_type_long_long" >&6
17525
17526echo "$as_me:$LINENO: checking size of long long" >&5
17527echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17528if test "${ac_cv_sizeof_long_long+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530else
17531 if test "$ac_cv_type_long_long" = yes; then
17532 # The cast to unsigned long works around a bug in the HP C Compiler
17533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17535 # This bug is HP SR number 8606223364.
4f57cf11 17536 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17537 # Depending upon the size, compute the lo and hi bounds.
17538cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545int
17546main ()
17547{
17548static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17549test_array [0] = 0
17550
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext
17556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17557 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17558 ac_status=$?
32ddf007
VS
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
e6cc62c6
VS
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
e1293dcf 17564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_lo=0 ac_mid=0
17577 while :; do
17578 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17579/* confdefs.h. */
17580_ACEOF
17581cat confdefs.h >>conftest.$ac_ext
17582cat >>conftest.$ac_ext <<_ACEOF
17583/* end confdefs.h. */
17584$ac_includes_default
17585int
17586main ()
17587{
17588static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17589test_array [0] = 0
17590
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext
17596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17597 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17598 ac_status=$?
32ddf007
VS
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
e6cc62c6
VS
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
e1293dcf 17604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_hi=$ac_mid; break
17617else
17618 echo "$as_me: failed program was:" >&5
17619sed 's/^/| /' conftest.$ac_ext >&5
17620
17621ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17622 if test $ac_lo -le $ac_mid; then
17623 ac_lo= ac_hi=
17624 break
17625 fi
17626 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17627fi
32ddf007 17628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17629 done
17630else
17631 echo "$as_me: failed program was:" >&5
17632sed 's/^/| /' conftest.$ac_ext >&5
17633
17634cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
17640$ac_includes_default
17641int
17642main ()
17643{
17644static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17645test_array [0] = 0
17646
17647 ;
17648 return 0;
17649}
17650_ACEOF
17651rm -f conftest.$ac_objext
17652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17653 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17654 ac_status=$?
32ddf007
VS
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
e6cc62c6
VS
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
e1293dcf 17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_hi=-1 ac_mid=-1
17673 while :; do
17674 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17675/* confdefs.h. */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h. */
17680$ac_includes_default
17681int
17682main ()
17683{
17684static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17685test_array [0] = 0
17686
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext
17692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17693 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17694 ac_status=$?
32ddf007
VS
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
e6cc62c6
VS
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
e1293dcf 17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_lo=$ac_mid; break
17713else
17714 echo "$as_me: failed program was:" >&5
17715sed 's/^/| /' conftest.$ac_ext >&5
17716
17717ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17718 if test $ac_mid -le $ac_hi; then
17719 ac_lo= ac_hi=
17720 break
17721 fi
17722 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17723fi
32ddf007 17724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17725 done
4f57cf11 17726else
e6cc62c6
VS
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730ac_lo= ac_hi=
17731fi
32ddf007 17732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17733fi
32ddf007 17734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17735# Binary search between lo and hi bounds.
17736while test "x$ac_lo" != "x$ac_hi"; do
17737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17738 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744$ac_includes_default
17745int
17746main ()
17747{
17748static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17749test_array [0] = 0
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17757 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17758 ac_status=$?
32ddf007
VS
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
e6cc62c6
VS
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
e1293dcf 17764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_hi=$ac_mid
17777else
17778 echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781ac_lo=`expr '(' $ac_mid ')' + 1`
17782fi
32ddf007 17783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17784done
17785case $ac_lo in
17786?*) ac_cv_sizeof_long_long=$ac_lo;;
17787'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17788See \`config.log' for more details." >&5
17789echo "$as_me: error: cannot compute sizeof (long long), 77
17790See \`config.log' for more details." >&2;}
17791 { (exit 1); exit 1; }; } ;;
17792esac
17793else
17794 if test "$cross_compiling" = yes; then
e1293dcf
RL
17795 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17796echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
e6cc62c6
VS
17797 { (exit 1); exit 1; }; }
17798else
17799 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805$ac_includes_default
17806long longval () { return (long) (sizeof (long long)); }
17807unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17808#include <stdio.h>
e6cc62c6
VS
17809#include <stdlib.h>
17810int
17811main ()
4f57cf11 17812{
e6cc62c6
VS
17813
17814 FILE *f = fopen ("conftest.val", "w");
17815 if (! f)
17816 exit (1);
17817 if (((long) (sizeof (long long))) < 0)
17818 {
17819 long i = longval ();
17820 if (i != ((long) (sizeof (long long))))
17821 exit (1);
17822 fprintf (f, "%ld\n", i);
17823 }
17824 else
17825 {
17826 unsigned long i = ulongval ();
17827 if (i != ((long) (sizeof (long long))))
17828 exit (1);
17829 fprintf (f, "%lu\n", i);
17830 }
17831 exit (ferror (f) || fclose (f) != 0);
17832
17833 ;
17834 return 0;
4f57cf11 17835}
e6cc62c6
VS
17836_ACEOF
17837rm -f conftest$ac_exeext
17838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_sizeof_long_long=`cat conftest.val`
17849else
17850 echo "$as_me: program exited with status $ac_status" >&5
17851echo "$as_me: failed program was:" >&5
17852sed 's/^/| /' conftest.$ac_ext >&5
17853
17854( exit $ac_status )
17855{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17856See \`config.log' for more details." >&5
17857echo "$as_me: error: cannot compute sizeof (long long), 77
17858See \`config.log' for more details." >&2;}
17859 { (exit 1); exit 1; }; }
17860fi
32ddf007 17861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17862fi
17863fi
17864rm -f conftest.val
4f57cf11 17865else
4f57cf11
GD
17866 ac_cv_sizeof_long_long=0
17867fi
7b4a847f 17868fi
e6cc62c6
VS
17869echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17870echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17871cat >>confdefs.h <<_ACEOF
21d1c967 17872#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17873_ACEOF
9e691f46 17874
8284b0c5 17875
21d1c967
GD
17876esac
17877
e6cc62c6
VS
17878echo "$as_me:$LINENO: checking size of wchar_t" >&5
17879echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17880if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17882else
e6cc62c6 17883
21d1c967 17884 if test "$cross_compiling" = yes; then
e6cc62c6 17885
2b5f62a0
VZ
17886 case "${host}" in
17887 *-pc-msdosdjgpp )
17888 wx_cv_sizeof_wchar_t=0
17889 ;;
17890 * )
17891 wx_cv_sizeof_wchar_t=4
17892 ;;
17893 esac
e6cc62c6
VS
17894
17895
6f72b082 17896else
e6cc62c6 17897 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
21d1c967 17903
2b5f62a0
VZ
17904 /* DJGPP only has fake wchar_t: */
17905 #ifdef __DJGPP__
17906 # error "fake wchar_t"
17907 #endif
21d1c967
GD
17908 #ifdef HAVE_WCHAR_H
17909 # ifdef __CYGWIN__
17910 # include <stddef.h>
17911 # endif
17912 # include <wchar.h>
17913 #endif
17914 #ifdef HAVE_STDLIB_H
17915 # include <stdlib.h>
17916 #endif
17917 #include <stdio.h>
17918 int main()
17919 {
17920 FILE *f=fopen("conftestval", "w");
17921 if (!f) exit(1);
17922 fprintf(f, "%i", sizeof(wchar_t));
17923 exit(0);
17924 }
e6cc62c6
VS
17925
17926_ACEOF
17927rm -f conftest$ac_exeext
17928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
21d1c967 17938 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17939else
e6cc62c6
VS
17940 echo "$as_me: program exited with status $ac_status" >&5
17941echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944( exit $ac_status )
17945wx_cv_sizeof_wchar_t=0
6f72b082 17946fi
32ddf007 17947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17948fi
6f72b082 17949
3f345b47 17950fi
e6cc62c6
VS
17951echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17952echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17953
e6cc62c6 17954cat >>confdefs.h <<_ACEOF
21d1c967 17955#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17956_ACEOF
90dd450c 17957
8284b0c5 17958
21d1c967
GD
17959# Check whether --enable-largefile or --disable-largefile was given.
17960if test "${enable_largefile+set}" = set; then
17961 enableval="$enable_largefile"
3f345b47 17962
e6cc62c6 17963fi;
21d1c967
GD
17964if test "$enable_largefile" != no; then
17965 wx_largefile=no
e6cc62c6
VS
17966
17967 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17968echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17969if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972
17973 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17974/* confdefs.h. */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h. */
21d1c967
GD
17979#define _FILE_OFFSET_BITS 64
17980 #include <sys/types.h>
e6cc62c6
VS
17981int
17982main ()
17983{
21d1c967
GD
17984typedef struct {
17985 unsigned int field: sizeof(off_t) == 8;
17986} wxlf;
17987
e6cc62c6
VS
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992rm -f conftest.$ac_objext
17993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17994 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17995 ac_status=$?
32ddf007
VS
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
e6cc62c6
VS
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
e1293dcf 18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
21d1c967 18013 ac_cv_sys_file_offset_bits=64
f6bcfd97 18014else
e6cc62c6
VS
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018ac_cv_sys_file_offset_bits=no
247f5006 18019fi
32ddf007 18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18021
a0b9e27f 18022
e6cc62c6
VS
18023fi
18024echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18025echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
18026
18027 if test "$ac_cv_sys_file_offset_bits" != no; then
18028 wx_largefile=yes
e6cc62c6 18029 cat >>confdefs.h <<_ACEOF
21d1c967 18030#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 18031_ACEOF
21d1c967
GD
18032
18033 fi
18034
18035 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
18036
18037 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18038echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18039if test "${ac_cv_sys_large_files+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041else
18042
18043 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
21d1c967
GD
18049#define _LARGE_FILES 1
18050 #include <sys/types.h>
e6cc62c6
VS
18051int
18052main ()
18053{
21d1c967
GD
18054typedef struct {
18055 unsigned int field: sizeof(off_t) == 8;
18056} wxlf;
18057
e6cc62c6
VS
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext
18063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18064 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18065 ac_status=$?
32ddf007
VS
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
e6cc62c6
VS
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
e1293dcf 18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
21d1c967 18083 ac_cv_sys_large_files=1
f6bcfd97 18084else
e6cc62c6
VS
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088ac_cv_sys_large_files=no
247f5006 18089fi
32ddf007 18090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18091
e6cc62c6
VS
18092
18093fi
18094echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18095echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 18096
21d1c967
GD
18097 if test "$ac_cv_sys_large_files" != no; then
18098 wx_largefile=yes
e6cc62c6 18099 cat >>confdefs.h <<_ACEOF
21d1c967 18100#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 18101_ACEOF
90dd450c 18102
90dd450c
VZ
18103 fi
18104
90dd450c 18105 fi
90dd450c 18106
e6cc62c6
VS
18107 echo "$as_me:$LINENO: checking if large file support is available" >&5
18108echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 18109 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 18110 cat >>confdefs.h <<\_ACEOF
21d1c967 18111#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 18112_ACEOF
90dd450c 18113
90dd450c 18114 fi
e6cc62c6
VS
18115 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18116echo "${ECHO_T}$wx_largefile" >&6
21d1c967 18117fi
90dd450c 18118
8284b0c5 18119
f02444d0 18120if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
18121 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18122 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 18123 else
e26c13cf 18124 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 18125 fi
e26c13cf 18126 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
18127fi
18128
e6cc62c6
VS
18129echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18130echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18131if test "${ac_cv_c_bigendian+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18133else
21d1c967
GD
18134 ac_cv_c_bigendian=unknown
18135# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 18136cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
21d1c967
GD
18142#include <sys/types.h>
18143#include <sys/param.h>
e6cc62c6
VS
18144int
18145main ()
18146{
21d1c967
GD
18147
18148#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18149 bogus endian macros
18150#endif
e6cc62c6
VS
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext
18156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18157 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18158 ac_status=$?
32ddf007
VS
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
e6cc62c6
VS
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
e1293dcf 18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
21d1c967 18176 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 18177cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
21d1c967
GD
18183#include <sys/types.h>
18184#include <sys/param.h>
e6cc62c6
VS
18185int
18186main ()
18187{
21d1c967
GD
18188
18189#if BYTE_ORDER != BIG_ENDIAN
18190 not big endian
18191#endif
e6cc62c6
VS
18192 ;
18193 return 0;
18194}
18195_ACEOF
18196rm -f conftest.$ac_objext
18197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18198 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18199 ac_status=$?
32ddf007
VS
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
e6cc62c6
VS
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
e1293dcf 18205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
21d1c967 18217 ac_cv_c_bigendian=yes
3f345b47 18218else
e6cc62c6
VS
18219 echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222ac_cv_c_bigendian=no
3f345b47 18223fi
32ddf007 18224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 18225else
e6cc62c6
VS
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
3f345b47 18229fi
32ddf007 18230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18231if test $ac_cv_c_bigendian = unknown; then
18232if test "$cross_compiling" = yes; then
18233 ac_cv_c_bigendian=unknown
10f2d63a 18234else
e6cc62c6 18235 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18236/* confdefs.h. */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h. */
21d1c967
GD
18241main () {
18242 /* Are we little or big endian? From Harbison&Steele. */
18243 union
18244 {
18245 long l;
18246 char c[sizeof (long)];
18247 } u;
18248 u.l = 1;
18249 exit (u.c[sizeof (long) - 1] == 1);
18250}
e6cc62c6
VS
18251_ACEOF
18252rm -f conftest$ac_exeext
18253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
21d1c967 18263 ac_cv_c_bigendian=no
3f345b47 18264else
e6cc62c6
VS
18265 echo "$as_me: program exited with status $ac_status" >&5
18266echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269( exit $ac_status )
18270ac_cv_c_bigendian=yes
247f5006 18271fi
32ddf007 18272rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 18273fi
3f345b47 18274fi
8168de4c 18275fi
e6cc62c6
VS
18276echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18277echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 18278if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
18279 { 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
18280echo "$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
18281fi
18282if test $ac_cv_c_bigendian = yes; then
e6cc62c6 18283 cat >>confdefs.h <<\_ACEOF
247f5006 18284#define WORDS_BIGENDIAN 1
e6cc62c6 18285_ACEOF
247f5006
VZ
18286
18287fi
18288
18289
e6cc62c6
VS
18290ac_ext=cc
18291ac_cpp='$CXXCPP $CPPFLAGS'
18292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18295echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18296echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 18297if test -z "$CXXCPP"; then
e6cc62c6
VS
18298 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 # Double quotes because CXXCPP needs to be expanded
18302 for CXXCPP in "$CXX -E" "/lib/cpp"
18303 do
18304 ac_preproc_ok=false
18305for ac_cxx_preproc_warn_flag in '' yes
18306do
18307 # Use a header file that comes with gcc, so configuring glibc
18308 # with a fresh cross-compiler works.
18309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 # <limits.h> exists even on freestanding compilers.
18311 # On the NeXT, cc -E runs the code through the compiler's parser,
18312 # not just through cpp. "Syntax error" is here to catch this case.
18313 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319#ifdef __STDC__
18320# include <limits.h>
18321#else
18322# include <assert.h>
18323#endif
32ddf007 18324 Syntax error
e6cc62c6
VS
18325_ACEOF
18326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } >/dev/null; then
18334 if test -s conftest.err; then
18335 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18337 else
18338 ac_cpp_err=
18339 fi
247f5006 18340else
e6cc62c6
VS
18341 ac_cpp_err=yes
18342fi
18343if test -z "$ac_cpp_err"; then
18344 :
18345else
18346 echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 # Broken: fails on valid input.
18350continue
18351fi
18352rm -f conftest.err conftest.$ac_ext
18353
18354 # OK, works on sane cases. Now check whether non-existent headers
18355 # can be detected and how.
18356 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362#include <ac_nonexistent.h>
18363_ACEOF
18364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } >/dev/null; then
18372 if test -s conftest.err; then
18373 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18375 else
18376 ac_cpp_err=
18377 fi
18378else
18379 ac_cpp_err=yes
18380fi
18381if test -z "$ac_cpp_err"; then
18382 # Broken: success on invalid input.
18383continue
18384else
18385 echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 # Passes both tests.
18389ac_preproc_ok=:
18390break
18391fi
18392rm -f conftest.err conftest.$ac_ext
18393
18394done
18395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18396rm -f conftest.err conftest.$ac_ext
18397if $ac_preproc_ok; then
18398 break
18399fi
18400
18401 done
18402 ac_cv_prog_CXXCPP=$CXXCPP
18403
18404fi
18405 CXXCPP=$ac_cv_prog_CXXCPP
18406else
18407 ac_cv_prog_CXXCPP=$CXXCPP
18408fi
18409echo "$as_me:$LINENO: result: $CXXCPP" >&5
18410echo "${ECHO_T}$CXXCPP" >&6
18411ac_preproc_ok=false
18412for ac_cxx_preproc_warn_flag in '' yes
18413do
18414 # Use a header file that comes with gcc, so configuring glibc
18415 # with a fresh cross-compiler works.
18416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 # <limits.h> exists even on freestanding compilers.
18418 # On the NeXT, cc -E runs the code through the compiler's parser,
18419 # not just through cpp. "Syntax error" is here to catch this case.
18420 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
18426#ifdef __STDC__
18427# include <limits.h>
18428#else
18429# include <assert.h>
18430#endif
32ddf007 18431 Syntax error
e6cc62c6
VS
18432_ACEOF
18433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } >/dev/null; then
18441 if test -s conftest.err; then
18442 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18444 else
18445 ac_cpp_err=
18446 fi
18447else
18448 ac_cpp_err=yes
18449fi
18450if test -z "$ac_cpp_err"; then
21d1c967 18451 :
698dcdb6 18452else
e6cc62c6
VS
18453 echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 # Broken: fails on valid input.
18457continue
18458fi
18459rm -f conftest.err conftest.$ac_ext
18460
18461 # OK, works on sane cases. Now check whether non-existent headers
18462 # can be detected and how.
18463 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18464/* confdefs.h. */
18465_ACEOF
18466cat confdefs.h >>conftest.$ac_ext
18467cat >>conftest.$ac_ext <<_ACEOF
18468/* end confdefs.h. */
18469#include <ac_nonexistent.h>
18470_ACEOF
18471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } >/dev/null; then
18479 if test -s conftest.err; then
18480 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18482 else
18483 ac_cpp_err=
18484 fi
18485else
18486 ac_cpp_err=yes
247f5006 18487fi
e6cc62c6
VS
18488if test -z "$ac_cpp_err"; then
18489 # Broken: success on invalid input.
18490continue
18491else
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 # Passes both tests.
18496ac_preproc_ok=:
18497break
328a083c 18498fi
e6cc62c6
VS
18499rm -f conftest.err conftest.$ac_ext
18500
18501done
18502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18503rm -f conftest.err conftest.$ac_ext
18504if $ac_preproc_ok; then
18505 :
18506else
18507 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18508See \`config.log' for more details." >&5
18509echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18510See \`config.log' for more details." >&2;}
18511 { (exit 1); exit 1; }; }
90dd450c 18512fi
e6cc62c6
VS
18513
18514ac_ext=cc
18515ac_cpp='$CXXCPP $CPPFLAGS'
18516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18519
1e6feb95 18520
1725144d 18521
21d1c967 18522 if test "$cross_compiling" = "yes"; then
e6cc62c6 18523 cat >>confdefs.h <<\_ACEOF
21d1c967 18524#define wxUSE_IOSTREAMH 1
e6cc62c6 18525_ACEOF
ab9b9eab 18526
21d1c967 18527 else
e6cc62c6
VS
18528
18529
18530 ac_ext=cc
5c6fa7d2 18531ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18535
52127426 18536
247f5006 18537
e6cc62c6 18538for ac_header in iostream
21d1c967 18539do
e6cc62c6
VS
18540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18541if eval "test \"\${$as_ac_Header+set}\" = set"; then
18542 echo "$as_me:$LINENO: checking for $ac_header" >&5
18543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18544if eval "test \"\${$as_ac_Header+set}\" = set"; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546fi
18547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18549else
18550 # Is the header compilable?
18551echo "$as_me:$LINENO: checking $ac_header usability" >&5
18552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18553cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18554/* confdefs.h. */
18555_ACEOF
18556cat confdefs.h >>conftest.$ac_ext
18557cat >>conftest.$ac_ext <<_ACEOF
18558/* end confdefs.h. */
18559$ac_includes_default
18560#include <$ac_header>
18561_ACEOF
18562rm -f conftest.$ac_objext
18563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18564 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18565 ac_status=$?
32ddf007
VS
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
e6cc62c6
VS
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
e1293dcf 18571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_header_compiler=yes
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588ac_header_compiler=no
18589fi
32ddf007 18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18592echo "${ECHO_T}$ac_header_compiler" >&6
18593
18594# Is the header present?
18595echo "$as_me:$LINENO: checking $ac_header presence" >&5
18596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18597cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h. */
18603#include <$ac_header>
18604_ACEOF
18605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } >/dev/null; then
18613 if test -s conftest.err; then
18614 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18616 else
18617 ac_cpp_err=
18618 fi
18619else
18620 ac_cpp_err=yes
18621fi
18622if test -z "$ac_cpp_err"; then
18623 ac_header_preproc=yes
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_header_preproc=no
18629fi
18630rm -f conftest.err conftest.$ac_ext
18631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18632echo "${ECHO_T}$ac_header_preproc" >&6
18633
18634# So? What about this header?
32ddf007
VS
18635case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18636 yes:no: )
e6cc62c6
VS
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18641 ac_header_preproc=yes
e6cc62c6 18642 ;;
32ddf007 18643 no:yes:* )
e6cc62c6
VS
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18656 (
18657 cat <<\_ASBOX
32ddf007
VS
18658## ----------------------------------------- ##
18659## Report this to wx-dev@lists.wxwindows.org ##
18660## ----------------------------------------- ##
e6cc62c6
VS
18661_ASBOX
18662 ) |
18663 sed "s/^/$as_me: WARNING: /" >&2
18664 ;;
18665esac
18666echo "$as_me:$LINENO: checking for $ac_header" >&5
18667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18668if eval "test \"\${$as_ac_Header+set}\" = set"; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
32ddf007 18671 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18672fi
e6cc62c6
VS
18673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18675
90dd450c 18676fi
e6cc62c6
VS
18677if test `eval echo '${'$as_ac_Header'}'` = yes; then
18678 cat >>confdefs.h <<_ACEOF
18679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18680_ACEOF
18681
90dd450c 18682fi
e6cc62c6 18683
21d1c967 18684done
10f2d63a 18685
8284b0c5 18686
21d1c967
GD
18687 if test "$ac_cv_header_iostream" = "yes" ; then
18688 :
18689 else
e6cc62c6 18690 cat >>confdefs.h <<\_ACEOF
21d1c967 18691#define wxUSE_IOSTREAMH 1
e6cc62c6 18692_ACEOF
788deba1 18693
90dd450c 18694 fi
ab9b9eab 18695
21d1c967 18696 ac_ext=c
21d1c967 18697ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18701
21d1c967 18702 fi
ab9b9eab 18703
52127426 18704
8284b0c5 18705
e6cc62c6
VS
18706 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18707echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18708if test "${wx_cv_cpp_bool+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18710else
e6cc62c6
VS
18711
18712
18713
18714 ac_ext=cc
5c6fa7d2 18715ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18719
8284b0c5 18720
e6cc62c6 18721 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18722/* confdefs.h. */
18723_ACEOF
18724cat confdefs.h >>conftest.$ac_ext
18725cat >>conftest.$ac_ext <<_ACEOF
18726/* end confdefs.h. */
21d1c967 18727
e6cc62c6
VS
18728
18729int
18730main ()
18731{
21d1c967
GD
18732
18733 bool b = true;
18734
18735 return 0;
e6cc62c6
VS
18736
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext
18742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18743 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18744 ac_status=$?
32ddf007
VS
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
e6cc62c6
VS
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
e1293dcf 18750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762
21d1c967 18763 wx_cv_cpp_bool=yes
e6cc62c6 18764
698dcdb6 18765else
e6cc62c6
VS
18766 echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769
21d1c967 18770 wx_cv_cpp_bool=no
e6cc62c6
VS
18771
18772
698dcdb6 18773fi
32ddf007 18774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18775
18776 ac_ext=c
21d1c967 18777ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18781
a0b9e27f 18782
e6cc62c6
VS
18783fi
18784echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18785echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18786
18787 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18788 cat >>confdefs.h <<\_ACEOF
21d1c967 18789#define HAVE_BOOL 1
e6cc62c6 18790_ACEOF
ab9b9eab 18791
21d1c967
GD
18792 fi
18793
52127426 18794
8284b0c5 18795
e6cc62c6
VS
18796 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18797echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18798if test "${wx_cv_explicit+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18800else
e6cc62c6
VS
18801
18802
18803
18804 ac_ext=cc
5c6fa7d2 18805ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18809
8284b0c5 18810
e6cc62c6 18811 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
986ecc86
VZ
18817
18818 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18819
18820int
18821main ()
18822{
986ecc86
VZ
18823
18824 return 0;
e6cc62c6
VS
18825
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext
18831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18832 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18833 ac_status=$?
32ddf007
VS
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
e6cc62c6
VS
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
e1293dcf 18839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851
18852 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18853/* confdefs.h. */
18854_ACEOF
18855cat confdefs.h >>conftest.$ac_ext
18856cat >>conftest.$ac_ext <<_ACEOF
18857/* end confdefs.h. */
986ecc86
VZ
18858
18859 class Foo { public: explicit Foo(int) {} };
18860 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18861
18862int
18863main ()
18864{
986ecc86
VZ
18865
18866 TakeFoo(17);
18867 return 0;
e6cc62c6
VS
18868
18869 ;
18870 return 0;
18871}
18872_ACEOF
18873rm -f conftest.$ac_objext
18874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18875 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18876 ac_status=$?
32ddf007
VS
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
e6cc62c6
VS
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
e1293dcf 18882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
986ecc86
VZ
18894 wx_cv_explicit=no
18895else
e6cc62c6
VS
18896 echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
18899wx_cv_explicit=yes
18900
986ecc86 18901fi
32ddf007 18902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18903
986ecc86 18904else
e6cc62c6
VS
18905 echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908wx_cv_explicit=no
18909
986ecc86 18910fi
32ddf007 18911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18912
18913 ac_ext=c
986ecc86 18914ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18918
a0b9e27f 18919
e6cc62c6
VS
18920fi
18921echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18922echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18923
18924 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18925 cat >>confdefs.h <<\_ACEOF
986ecc86 18926#define HAVE_EXPLICIT 1
e6cc62c6 18927_ACEOF
986ecc86
VZ
18928
18929 fi
18930
8284b0c5 18931
e6cc62c6
VS
18932echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18933echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18934if test "${ac_cv_cxx_const_cast+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18936else
521196a2 18937
521196a2 18938
e6cc62c6
VS
18939 ac_ext=cc
18940ac_cpp='$CXXCPP $CPPFLAGS'
18941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18944
18945 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
18951
18952int
18953main ()
18954{
521196a2 18955int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest.$ac_objext
18961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18962 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18963 ac_status=$?
32ddf007
VS
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
e6cc62c6
VS
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
e1293dcf 18969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; } &&
18975 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
521196a2
MB
18981 ac_cv_cxx_const_cast=yes
18982else
e6cc62c6
VS
18983 echo "$as_me: failed program was:" >&5
18984sed 's/^/| /' conftest.$ac_ext >&5
18985
18986ac_cv_cxx_const_cast=no
521196a2 18987fi
32ddf007 18988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18989 ac_ext=c
521196a2 18990ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18993ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18994
18995
18996fi
e6cc62c6
VS
18997echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18998echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18999if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
19000
19001cat >>confdefs.h <<\_ACEOF
19002#define HAVE_CONST_CAST
19003_ACEOF
521196a2
MB
19004
19005fi
19006
ecfd48ca
VZ
19007echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19008echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19009if test "${ac_cv_cxx_static_cast+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011else
19012
19013
19014 ac_ext=cc
19015ac_cpp='$CXXCPP $CPPFLAGS'
19016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19019
19020 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
19021/* confdefs.h. */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h. */
19026#include <typeinfo>
19027class Base { public : Base () {} virtual void f () = 0; };
19028class Derived : public Base { public : Derived () {} virtual void f () {} };
19029int g (Derived&) { return 0; }
19030int
19031main ()
19032{
19033
19034Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19035 ;
19036 return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext
19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19041 (eval $ac_compile) 2>conftest.er1
ecfd48ca 19042 ac_status=$?
32ddf007
VS
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
ecfd48ca
VZ
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
e1293dcf 19048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_cv_cxx_static_cast=yes
19061else
19062 echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065ac_cv_cxx_static_cast=no
19066fi
32ddf007 19067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
19068 ac_ext=c
19069ac_cpp='$CPP $CPPFLAGS'
19070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072ac_compiler_gnu=$ac_cv_c_compiler_gnu
19073
19074
19075fi
19076echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19077echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19078if test "$ac_cv_cxx_static_cast" = yes; then
19079
19080cat >>confdefs.h <<\_ACEOF
19081#define HAVE_STATIC_CAST
19082_ACEOF
19083
19084fi
19085
521196a2 19086
e87b7833
MB
19087if test "$wxUSE_STL" = "yes"; then
19088 ac_ext=cc
19089ac_cpp='$CXXCPP $CPPFLAGS'
19090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19093
19094
19095 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19096echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19097 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
19103#include <string>
19104 #include <functional>
19105 #include <algorithm>
19106 #include <vector>
19107 #include <list>
19108int
19109main ()
19110{
19111std::vector<int> moo;
19112 std::list<int> foo;
19113 std::vector<int>::iterator it =
19114 std::find_if(moo.begin(), moo.end(),
19115 std::bind2nd(std::less<int>(), 3));
19116 ;
19117 return 0;
19118}
19119_ACEOF
19120rm -f conftest.$ac_objext
19121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19122 (eval $ac_compile) 2>conftest.er1
e87b7833 19123 ac_status=$?
32ddf007
VS
19124 grep -v '^ *+' conftest.er1 >conftest.err
19125 rm -f conftest.er1
19126 cat conftest.err >&5
e87b7833
MB
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } &&
e1293dcf 19129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 echo "$as_me:$LINENO: result: yes" >&5
19142echo "${ECHO_T}yes" >&6
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147echo "$as_me:$LINENO: result: no" >&5
19148echo "${ECHO_T}no" >&6
19149 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19150echo "$as_me: error: Basic STL functionality missing" >&2;}
19151 { (exit 1); exit 1; }; }
19152fi
32ddf007 19153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19154
19155 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19156echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19157 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163#include <string>
19164int
19165main ()
19166{
19167std::wstring foo;
19168 ;
19169 return 0;
19170}
19171_ACEOF
19172rm -f conftest.$ac_objext
19173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19174 (eval $ac_compile) 2>conftest.er1
e87b7833 19175 ac_status=$?
32ddf007
VS
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
e87b7833
MB
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
e1293dcf 19181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 echo "$as_me:$LINENO: result: yes" >&5
19194echo "${ECHO_T}yes" >&6
19195 cat >>confdefs.h <<\_ACEOF
19196#define HAVE_STD_WSTRING 1
19197_ACEOF
19198
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203echo "$as_me:$LINENO: result: no" >&5
19204echo "${ECHO_T}no" >&6
19205fi
32ddf007 19206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19207
19208 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19209echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19210 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216#include <string>
19217int
19218main ()
19219{
19220std::string foo, bar;
19221 foo.compare(bar);
19222 foo.compare(1, 1, bar);
19223 foo.compare(1, 1, bar, 1, 1);
19224 foo.compare("");
19225 foo.compare(1, 1, "");
19226 foo.compare(1, 1, "", 2);
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19233 (eval $ac_compile) 2>conftest.er1
e87b7833 19234 ac_status=$?
32ddf007
VS
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
e87b7833
MB
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
e1293dcf 19240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 echo "$as_me:$LINENO: result: yes" >&5
19253echo "${ECHO_T}yes" >&6
19254 cat >>confdefs.h <<\_ACEOF
19255#define HAVE_STD_STRING_COMPARE 1
19256_ACEOF
19257
19258else
19259 echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
19262echo "$as_me:$LINENO: result: no" >&5
19263echo "${ECHO_T}no" >&6
19264fi
32ddf007 19265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19266
19267 ac_ext=c
19268ac_cpp='$CPP $CPPFLAGS'
19269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271ac_compiler_gnu=$ac_cv_c_compiler_gnu
19272
19273fi
19274
8284b0c5 19275
21d1c967
GD
19276SEARCH_INCLUDE="\
19277 /usr/local/include \
19278 \
21d1c967 19279 /usr/Motif-2.1/include \
789c5f4a 19280 /usr/Motif-1.2/include \
21d1c967
GD
19281 /usr/include/Motif1.2 \
19282 /opt/xpm/include/X11 \
19283 /opt/GBxpm/include/ \
19284 /opt/GBxpm/X11/include/ \
19285 \
21d1c967
GD
19286 /usr/dt/include \
19287 /usr/openwin/include \
19288 \
19289 /usr/include/Xm \
19290 \
19291 /usr/X11R6/include \
19292 /usr/X11R6.4/include \
19293 /usr/X11R5/include \
19294 /usr/X11R4/include \
19295 \
19296 /usr/include/X11R6 \
19297 /usr/include/X11R5 \
19298 /usr/include/X11R4 \
19299 \
19300 /usr/local/X11R6/include \
19301 /usr/local/X11R5/include \
19302 /usr/local/X11R4/include \
19303 \
19304 /usr/local/include/X11R6 \
19305 /usr/local/include/X11R5 \
19306 /usr/local/include/X11R4 \
19307 \
19308 /usr/X11/include \
19309 /usr/include/X11 \
19310 /usr/local/X11/include \
19311 /usr/local/include/X11 \
19312 \
19313 /usr/X386/include \
19314 /usr/x386/include \
19315 /usr/XFree86/include/X11 \
19316 \
19317 X:/XFree86/include \
19318 X:/XFree86/include/X11 \
19319 \
19320 /usr/include/gtk \
19321 /usr/local/include/gtk \
19322 /usr/include/glib \
19323 /usr/local/include/glib \
19324 \
19325 /usr/include/qt \
19326 /usr/local/include/qt \
19327 \
0f87e84c
RR
19328 /usr/local/arm/3.3.2/include \
19329 \
21d1c967
GD
19330 /usr/include/windows \
19331 /usr/include/wine \
19332 /usr/local/include/wine \
19333 \
19334 /usr/unsupported/include \
19335 /usr/athena/include \
19336 /usr/local/x11r5/include \
19337 /usr/lpp/Xamples/include \
19338 \
2b5f62a0 19339 /usr/openwin/share/include"
21d1c967 19340
b62e750d 19341SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 19342
8284b0c5 19343
e6cc62c6 19344cat >confcache <<\_ACEOF
21d1c967
GD
19345# This file is a shell script that caches the results of configure
19346# tests run on this system so they can be shared between configure
e6cc62c6
VS
19347# scripts and configure runs, see configure's option --config-cache.
19348# It is not useful on other systems. If it contains results you don't
19349# want to keep, you may remove or edit it.
21d1c967 19350#
e6cc62c6
VS
19351# config.status only pays attention to the cache file if you give it
19352# the --recheck option to rerun configure.
21d1c967 19353#
e6cc62c6
VS
19354# `ac_cv_env_foo' variables (set or unset) will be overridden when
19355# loading this file, other *unset* `ac_cv_foo' will be assigned the
19356# following values.
19357
19358_ACEOF
19359
21d1c967
GD
19360# The following way of writing the cache mishandles newlines in values,
19361# but we know of no workaround that is simple, portable, and efficient.
19362# So, don't put newlines in cache variables' values.
19363# Ultrix sh set writes to stderr and can't be redirected directly,
19364# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
19365{
19366 (set) 2>&1 |
19367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19368 *ac_space=\ *)
19369 # `set' does not quote correctly, so add quotes (double-quote
19370 # substitution turns \\\\ into \\, and sed turns \\ into \).
19371 sed -n \
32ddf007
VS
19372 "s/'/'\\\\''/g;
19373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
19374 ;;
19375 *)
19376 # `set' quotes correctly as required by POSIX, so do not add quotes.
19377 sed -n \
32ddf007 19378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
19379 ;;
19380 esac;
19381} |
19382 sed '
19383 t clear
19384 : clear
19385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19386 t end
19387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19388 : end' >>confcache
19389if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 19390 if test -w $cache_file; then
e6cc62c6
VS
19391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19392 cat confcache >$cache_file
21d1c967
GD
19393 else
19394 echo "not updating unwritable cache $cache_file"
19395 fi
ab9b9eab 19396fi
21d1c967 19397rm -f confcache
ab9b9eab 19398
fe0895cf 19399if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
19400 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19401echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19402if test "${wx_cv_lib_glibc21+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404else
19405
19406 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
21d1c967 19412#include <features.h>
e6cc62c6
VS
19413int
19414main ()
19415{
ab9b9eab 19416
21d1c967
GD
19417 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19418 #error not glibc2.1
19419 #endif
e6cc62c6
VS
19420
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest.$ac_objext
19426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19427 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19428 ac_status=$?
32ddf007
VS
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
e6cc62c6
VS
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
e1293dcf 19434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446
21d1c967 19447 wx_cv_lib_glibc21=yes
e6cc62c6 19448
698dcdb6 19449else
e6cc62c6
VS
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453
21d1c967 19454 wx_cv_lib_glibc21=no
e6cc62c6
VS
19455
19456
247f5006 19457fi
32ddf007 19458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19459
e6cc62c6
VS
19460fi
19461echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19462echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 19463 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 19464 cat >>confdefs.h <<\_ACEOF
21d1c967 19465#define wxHAVE_GLIBC2 1
e6cc62c6 19466_ACEOF
1e487827 19467
90dd450c 19468 fi
ab9b9eab
VZ
19469fi
19470
5c0a20c3
VZ
19471if test "x$wx_cv_lib_glibc21" = "xyes"; then
19472 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 19473 cat >>confdefs.h <<\_ACEOF
5c0a20c3 19474#define _GNU_SOURCE 1
e6cc62c6 19475_ACEOF
5c0a20c3
VZ
19476
19477 fi
19478fi
19479
8284b0c5
MB
19480
19481
21d1c967 19482if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 19483 cat >>confdefs.h <<\_ACEOF
21d1c967 19484#define wxUSE_REGEX 1
e6cc62c6 19485_ACEOF
698dcdb6 19486
8284b0c5 19487
30f2fa6c 19488 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
4996f261
VS
19489 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19490echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
30f2fa6c
VS
19491 wxUSE_REGEX=builtin
19492 fi
19493
21d1c967 19494 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
19495 if test "${ac_cv_header_regex_h+set}" = set; then
19496 echo "$as_me:$LINENO: checking for regex.h" >&5
19497echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19498if test "${ac_cv_header_regex_h+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500fi
19501echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19502echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19503else
19504 # Is the header compilable?
19505echo "$as_me:$LINENO: checking regex.h usability" >&5
19506echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19507cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
19513$ac_includes_default
247f5006 19514#include <regex.h>
e6cc62c6
VS
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19518 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19519 ac_status=$?
32ddf007
VS
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
e6cc62c6
VS
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
e1293dcf 19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 ac_header_compiler=yes
19538else
19539 echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542ac_header_compiler=no
19543fi
32ddf007 19544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19546echo "${ECHO_T}$ac_header_compiler" >&6
19547
19548# Is the header present?
19549echo "$as_me:$LINENO: checking regex.h presence" >&5
19550echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19551cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
19557#include <regex.h>
19558_ACEOF
19559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } >/dev/null; then
19567 if test -s conftest.err; then
19568 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 19569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19570 else
19571 ac_cpp_err=
19572 fi
19573else
19574 ac_cpp_err=yes
19575fi
19576if test -z "$ac_cpp_err"; then
19577 ac_header_preproc=yes
19578else
19579 echo "$as_me: failed program was:" >&5
19580sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_header_preproc=no
19583fi
19584rm -f conftest.err conftest.$ac_ext
19585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19586echo "${ECHO_T}$ac_header_preproc" >&6
19587
19588# So? What about this header?
32ddf007
VS
19589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19590 yes:no: )
e6cc62c6
VS
19591 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19592echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
19593 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19594echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19595 ac_header_preproc=yes
e6cc62c6 19596 ;;
32ddf007 19597 no:yes:* )
e6cc62c6
VS
19598 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19599echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
32ddf007
VS
19600 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19601echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19603echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19605echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19606 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19607echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
19608 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19609echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19610 (
19611 cat <<\_ASBOX
32ddf007
VS
19612## ----------------------------------------- ##
19613## Report this to wx-dev@lists.wxwindows.org ##
19614## ----------------------------------------- ##
e6cc62c6
VS
19615_ASBOX
19616 ) |
19617 sed "s/^/$as_me: WARNING: /" >&2
19618 ;;
19619esac
19620echo "$as_me:$LINENO: checking for regex.h" >&5
19621echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19622if test "${ac_cv_header_regex_h+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19626fi
e6cc62c6
VS
19627echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19628echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19629
698dcdb6 19630fi
e6cc62c6
VS
19631if test $ac_cv_header_regex_h = yes; then
19632
19633for ac_func in regcomp
21d1c967 19634do
e6cc62c6
VS
19635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19636echo "$as_me:$LINENO: checking for $ac_func" >&5
19637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19638if eval "test \"\${$as_ac_var+set}\" = set"; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640else
19641 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19642/* confdefs.h. */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h. */
32ddf007
VS
19647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19649#define $ac_func innocuous_$ac_func
19650
a0b9e27f 19651/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19652 which can conflict with char $ac_func (); below.
19653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19654 <limits.h> exists even on freestanding compilers. */
32ddf007 19655
e6cc62c6
VS
19656#ifdef __STDC__
19657# include <limits.h>
19658#else
19659# include <assert.h>
19660#endif
32ddf007
VS
19661
19662#undef $ac_func
19663
21d1c967 19664/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19665#ifdef __cplusplus
19666extern "C"
19667{
19668#endif
21d1c967 19669/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19670 builtin and then its argument prototype would still apply. */
19671char $ac_func ();
21d1c967
GD
19672/* The GNU C library defines this for functions which it implements
19673 to always fail with ENOSYS. Some functions are actually named
19674 something starting with __ and the normal name is an alias. */
19675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19676choke me
19677#else
e6cc62c6
VS
19678char (*f) () = $ac_func;
19679#endif
19680#ifdef __cplusplus
19681}
21d1c967 19682#endif
90dd450c 19683
e6cc62c6
VS
19684int
19685main ()
19686{
19687return f != $ac_func;
19688 ;
19689 return 0;
19690}
19691_ACEOF
19692rm -f conftest.$ac_objext conftest$ac_exeext
19693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 19694 (eval $ac_link) 2>conftest.er1
e6cc62c6 19695 ac_status=$?
32ddf007
VS
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
e6cc62c6
VS
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
e1293dcf 19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 eval "$as_ac_var=yes"
19714else
19715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718eval "$as_ac_var=no"
19719fi
32ddf007
VS
19720rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19722fi
19723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19725if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19728_ACEOF
5c6fa7d2 19729
698dcdb6 19730fi
21d1c967
GD
19731done
19732
ab9b9eab
VZ
19733fi
19734
8284b0c5 19735
e6cc62c6 19736
21d1c967
GD
19737 if test "x$ac_cv_func_regcomp" != "xyes"; then
19738 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19739 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19740echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19741 { (exit 1); exit 1; }; }
21d1c967 19742 else
e6cc62c6
VS
19743 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19744echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19745 wxUSE_REGEX=builtin
19746 fi
19747 else
19748 wxUSE_REGEX=sys
4996f261
VS
19749 cat >>confdefs.h <<\_ACEOF
19750#define WX_NO_REGEX_ADVANCED 1
19751_ACEOF
19752
21d1c967 19753 fi
ab9b9eab 19754 fi
21d1c967 19755fi
90dd450c 19756
8284b0c5 19757
21d1c967
GD
19758ZLIB_LINK=
19759if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19760 cat >>confdefs.h <<\_ACEOF
21d1c967 19761#define wxUSE_ZLIB 1
e6cc62c6 19762_ACEOF
21d1c967 19763
8284b0c5 19764
21d1c967 19765 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19766 if test "$USE_DARWIN" = 1; then
19767 system_zlib_h_ok="yes"
19768 else
e6cc62c6
VS
19769 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19770echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19771if test "${ac_cv_header_zlib_h+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19773else
19774 if test "$cross_compiling" = yes; then
89e6bf6d 19775 unset ac_cv_header_zlib_h
e6cc62c6 19776
d643b80e 19777else
e6cc62c6 19778 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
19784
ef33c576 19785 #include <zlib.h>
d775acfa 19786 #include <stdio.h>
d643b80e 19787
d775acfa
VZ
19788 int main()
19789 {
19790 FILE *f=fopen("conftestval", "w");
19791 if (!f) exit(1);
19792 fprintf(f, "%s",
19793 ZLIB_VERSION[0] == '1' &&
19794 (ZLIB_VERSION[2] > '1' ||
19795 (ZLIB_VERSION[2] == '1' &&
19796 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19797 exit(0);
19798 }
e6cc62c6
VS
19799
19800_ACEOF
19801rm -f conftest$ac_exeext
19802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19803 (eval $ac_link) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
d643b80e
VZ
19812 ac_cv_header_zlib_h=`cat conftestval`
19813else
e6cc62c6
VS
19814 echo "$as_me: program exited with status $ac_status" >&5
19815echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818( exit $ac_status )
19819ac_cv_header_zlib_h=no
d643b80e 19820fi
32ddf007 19821rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19822fi
19823
d643b80e 19824fi
e6cc62c6
VS
19825echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19826echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19827 if test "${ac_cv_header_zlib_h+set}" = set; then
19828 echo "$as_me:$LINENO: checking for zlib.h" >&5
19829echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19830if test "${ac_cv_header_zlib_h+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832fi
19833echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19834echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19835else
e6cc62c6
VS
19836 # Is the header compilable?
19837echo "$as_me:$LINENO: checking zlib.h usability" >&5
19838echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19839cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845$ac_includes_default
89e6bf6d 19846#include <zlib.h>
e6cc62c6
VS
19847_ACEOF
19848rm -f conftest.$ac_objext
19849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19850 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19851 ac_status=$?
32ddf007
VS
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
e6cc62c6
VS
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
e1293dcf 19857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_header_compiler=yes
19870else
19871 echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
19874ac_header_compiler=no
19875fi
32ddf007 19876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19878echo "${ECHO_T}$ac_header_compiler" >&6
19879
19880# Is the header present?
19881echo "$as_me:$LINENO: checking zlib.h presence" >&5
19882echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19883cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889#include <zlib.h>
19890_ACEOF
19891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } >/dev/null; then
19899 if test -s conftest.err; then
19900 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 19901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19902 else
19903 ac_cpp_err=
19904 fi
19905else
19906 ac_cpp_err=yes
19907fi
19908if test -z "$ac_cpp_err"; then
19909 ac_header_preproc=yes
19910else
19911 echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_header_preproc=no
19915fi
19916rm -f conftest.err conftest.$ac_ext
19917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19918echo "${ECHO_T}$ac_header_preproc" >&6
19919
19920# So? What about this header?
32ddf007
VS
19921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19922 yes:no: )
e6cc62c6
VS
19923 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19924echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
19925 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19926echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19927 ac_header_preproc=yes
e6cc62c6 19928 ;;
32ddf007 19929 no:yes:* )
e6cc62c6
VS
19930 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19931echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
32ddf007
VS
19932 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19933echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19935echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19937echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19938 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19939echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
19940 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19941echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19942 (
19943 cat <<\_ASBOX
32ddf007
VS
19944## ----------------------------------------- ##
19945## Report this to wx-dev@lists.wxwindows.org ##
19946## ----------------------------------------- ##
e6cc62c6
VS
19947_ASBOX
19948 ) |
19949 sed "s/^/$as_me: WARNING: /" >&2
19950 ;;
19951esac
19952echo "$as_me:$LINENO: checking for zlib.h" >&5
19953echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19954if test "${ac_cv_header_zlib_h+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19956else
e6cc62c6
VS
19957 ac_cv_header_zlib_h=$ac_header_preproc
19958fi
19959echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19960echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19961
89e6bf6d
VZ
19962fi
19963
d643b80e 19964
e6cc62c6 19965
d775acfa
VZ
19966 system_zlib_h_ok=$ac_cv_header_zlib_h
19967 fi
19968
19969 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19970 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19971echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19972if test "${ac_cv_lib_z_deflate+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19974else
e6cc62c6 19975 ac_check_lib_save_LIBS=$LIBS
21d1c967 19976LIBS="-lz $LIBS"
e6cc62c6 19977cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983
21d1c967 19984/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19985#ifdef __cplusplus
19986extern "C"
19987#endif
21d1c967 19988/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19989 builtin and then its argument prototype would still apply. */
19990char deflate ();
19991int
19992main ()
19993{
19994deflate ();
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext conftest$ac_exeext
20000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20001 (eval $ac_link) 2>conftest.er1
e6cc62c6 20002 ac_status=$?
32ddf007
VS
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
e6cc62c6
VS
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
e1293dcf 20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_z_deflate=yes
20021else
20022 echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025ac_cv_lib_z_deflate=no
20026fi
32ddf007
VS
20027rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20029LIBS=$ac_check_lib_save_LIBS
20030fi
20031echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20032echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20033if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 20034 ZLIB_LINK=" -lz"
a0b9e27f 20035fi
698dcdb6 20036
d643b80e 20037 fi
247f5006 20038
21d1c967
GD
20039 if test "x$ZLIB_LINK" = "x" ; then
20040 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
20041 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20042echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20043 { (exit 1); exit 1; }; }
21d1c967 20044 else
e6cc62c6
VS
20045 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20046echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20047 wxUSE_ZLIB=builtin
20048 fi
20049 else
20050 wxUSE_ZLIB=sys
20051 fi
20052 fi
ab9b9eab
VZ
20053fi
20054
8284b0c5 20055
21d1c967
GD
20056PNG_LINK=
20057if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 20058 cat >>confdefs.h <<\_ACEOF
21d1c967 20059#define wxUSE_LIBPNG 1
e6cc62c6 20060_ACEOF
90dd450c 20061
8284b0c5 20062
21d1c967 20063 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
20064 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20065echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
20066 wxUSE_LIBPNG=sys
20067 fi
90dd450c 20068
21d1c967 20069 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
20070 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20071echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
20072 wxUSE_LIBPNG=builtin
20073 fi
20074
20075 if test "$wxUSE_MGL" != 1 ; then
20076 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
20077 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20078echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20079if test "${ac_cv_header_png_h+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
20081else
20082 if test "$cross_compiling" = yes; then
89e6bf6d 20083 unset ac_cv_header_png_h
e6cc62c6 20084
5d3f766d 20085else
e6cc62c6 20086 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092
ef33c576 20093 #include <png.h>
5d3f766d
VZ
20094 #include <stdio.h>
20095
20096 int main()
20097 {
20098 FILE *f=fopen("conftestval", "w");
20099 if (!f) exit(1);
20100 fprintf(f, "%s",
20101 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20102 exit(0);
20103 }
e6cc62c6
VS
20104
20105_ACEOF
20106rm -f conftest$ac_exeext
20107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20108 (eval $ac_link) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
5d3f766d
VZ
20117 ac_cv_header_png_h=`cat conftestval`
20118else
e6cc62c6
VS
20119 echo "$as_me: program exited with status $ac_status" >&5
20120echo "$as_me: failed program was:" >&5
20121sed 's/^/| /' conftest.$ac_ext >&5
20122
20123( exit $ac_status )
20124ac_cv_header_png_h=no
5d3f766d 20125fi
32ddf007 20126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
20127fi
20128
5d3f766d 20129fi
e6cc62c6
VS
20130echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20131echo "${ECHO_T}$ac_cv_header_png_h" >&6
20132 if test "${ac_cv_header_png_h+set}" = set; then
20133 echo "$as_me:$LINENO: checking for png.h" >&5
20134echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20135if test "${ac_cv_header_png_h+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137fi
20138echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20139echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 20140else
e6cc62c6
VS
20141 # Is the header compilable?
20142echo "$as_me:$LINENO: checking png.h usability" >&5
20143echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20144cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
20150$ac_includes_default
89e6bf6d 20151#include <png.h>
e6cc62c6
VS
20152_ACEOF
20153rm -f conftest.$ac_objext
20154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20155 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20156 ac_status=$?
32ddf007
VS
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
e6cc62c6
VS
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
e1293dcf 20162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179ac_header_compiler=no
20180fi
32ddf007 20181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185# Is the header present?
20186echo "$as_me:$LINENO: checking png.h presence" >&5
20187echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20188cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194#include <png.h>
20195_ACEOF
20196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20207 else
20208 ac_cpp_err=
20209 fi
20210else
20211 ac_cpp_err=yes
20212fi
20213if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20215else
20216 echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_header_preproc=no
20220fi
20221rm -f conftest.err conftest.$ac_ext
20222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225# So? What about this header?
32ddf007
VS
20226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227 yes:no: )
e6cc62c6
VS
20228 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20230 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20231echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
e6cc62c6 20233 ;;
32ddf007 20234 no:yes:* )
e6cc62c6
VS
20235 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20236echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
32ddf007
VS
20237 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20238echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20240echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20242echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20244echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20245 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20246echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20247 (
20248 cat <<\_ASBOX
32ddf007
VS
20249## ----------------------------------------- ##
20250## Report this to wx-dev@lists.wxwindows.org ##
20251## ----------------------------------------- ##
e6cc62c6
VS
20252_ASBOX
20253 ) |
20254 sed "s/^/$as_me: WARNING: /" >&2
20255 ;;
20256esac
20257echo "$as_me:$LINENO: checking for png.h" >&5
20258echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20259if test "${ac_cv_header_png_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 20261else
e6cc62c6
VS
20262 ac_cv_header_png_h=$ac_header_preproc
20263fi
20264echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20265echo "${ECHO_T}$ac_cv_header_png_h" >&6
20266
89e6bf6d
VZ
20267fi
20268
5d3f766d 20269
e6cc62c6 20270
5d3f766d 20271 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
20272 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20273echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20274if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20276else
e6cc62c6 20277 ac_check_lib_save_LIBS=$LIBS
21d1c967 20278LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 20279cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285
21d1c967 20286/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20287#ifdef __cplusplus
20288extern "C"
20289#endif
21d1c967 20290/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20291 builtin and then its argument prototype would still apply. */
20292char png_check_sig ();
20293int
20294main ()
20295{
20296png_check_sig ();
20297 ;
20298 return 0;
20299}
20300_ACEOF
20301rm -f conftest.$ac_objext conftest$ac_exeext
20302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20303 (eval $ac_link) 2>conftest.er1
e6cc62c6 20304 ac_status=$?
32ddf007
VS
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
e6cc62c6
VS
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
e1293dcf 20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } &&
20316 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_lib_png_png_check_sig=yes
20323else
20324 echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327ac_cv_lib_png_png_check_sig=no
20328fi
32ddf007
VS
20329rm -f conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20331LIBS=$ac_check_lib_save_LIBS
20332fi
20333echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20334echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20335if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 20336 PNG_LINK=" -lpng"
a0b9e27f 20337fi
90dd450c 20338
5d3f766d 20339 fi
247f5006 20340
21d1c967
GD
20341 if test "x$PNG_LINK" = "x" ; then
20342 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
20343 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20344echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20345 { (exit 1); exit 1; }; }
21d1c967 20346 else
e6cc62c6
VS
20347 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20348echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20349 wxUSE_LIBPNG=builtin
20350 fi
20351 else
2b5f62a0 20352 wxUSE_LIBPNG=sys
21d1c967
GD
20353 fi
20354 fi
20355 fi
90dd450c 20356
21d1c967 20357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
20358fi
20359
8284b0c5 20360
21d1c967
GD
20361JPEG_LINK=
20362if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 20363 cat >>confdefs.h <<\_ACEOF
21d1c967 20364#define wxUSE_LIBJPEG 1
e6cc62c6 20365_ACEOF
90dd450c 20366
8284b0c5 20367
21d1c967 20368 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
20369 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20370echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
20371 wxUSE_LIBJPEG=sys
20372 fi
90dd450c 20373
21d1c967
GD
20374 if test "$wxUSE_MGL" != 1 ; then
20375 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
20376 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20377echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20378 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20382/* confdefs.h. */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h. */
90dd450c 20387
21d1c967
GD
20388 #undef HAVE_STDLIB_H
20389 #include <stdio.h>
20390 #include <jpeglib.h>
90dd450c 20391
e6cc62c6
VS
20392int
20393main ()
20394{
20395
20396
20397 ;
20398 return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext
20402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20403 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20404 ac_status=$?
32ddf007
VS
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
e6cc62c6
VS
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
e1293dcf 20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
21d1c967 20422 ac_cv_header_jpeglib_h=yes
90dd450c 20423else
e6cc62c6
VS
20424 echo "$as_me: failed program was:" >&5
20425sed 's/^/| /' conftest.$ac_ext >&5
20426
20427ac_cv_header_jpeglib_h=no
20428
90dd450c 20429fi
32ddf007 20430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 20431
90dd450c
VZ
20432fi
20433
e6cc62c6
VS
20434 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20435echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 20436
21d1c967 20437 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
20438 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20439echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20440if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20442else
e6cc62c6 20443 ac_check_lib_save_LIBS=$LIBS
21d1c967 20444LIBS="-ljpeg $LIBS"
e6cc62c6 20445cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
20451
21d1c967 20452/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20453#ifdef __cplusplus
20454extern "C"
20455#endif
21d1c967 20456/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20457 builtin and then its argument prototype would still apply. */
20458char jpeg_read_header ();
20459int
20460main ()
20461{
20462jpeg_read_header ();
20463 ;
20464 return 0;
20465}
20466_ACEOF
20467rm -f conftest.$ac_objext conftest$ac_exeext
20468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20469 (eval $ac_link) 2>conftest.er1
e6cc62c6 20470 ac_status=$?
32ddf007
VS
20471 grep -v '^ *+' conftest.er1 >conftest.err
20472 rm -f conftest.er1
20473 cat conftest.err >&5
e6cc62c6
VS
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
e1293dcf 20476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 ac_cv_lib_jpeg_jpeg_read_header=yes
20489else
20490 echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
20493ac_cv_lib_jpeg_jpeg_read_header=no
20494fi
32ddf007
VS
20495rm -f conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20497LIBS=$ac_check_lib_save_LIBS
20498fi
20499echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20500echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20501if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 20502 JPEG_LINK=" -ljpeg"
90dd450c
VZ
20503fi
20504
21d1c967 20505 fi
90dd450c 20506
21d1c967
GD
20507 if test "x$JPEG_LINK" = "x" ; then
20508 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
20509 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20510echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20511 { (exit 1); exit 1; }; }
21d1c967 20512 else
e6cc62c6
VS
20513 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20514echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
20515 wxUSE_LIBJPEG=builtin
20516 fi
20517 else
20518 wxUSE_LIBJPEG=sys
20519 fi
20520 fi
20521 fi
21d1c967 20522fi
90dd450c 20523
8284b0c5 20524
21d1c967 20525TIFF_LINK=
2b5f62a0 20526TIFF_PREREQ_LINKS=-lm
21d1c967 20527if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 20528 cat >>confdefs.h <<\_ACEOF
21d1c967 20529#define wxUSE_LIBTIFF 1
e6cc62c6 20530_ACEOF
21d1c967 20531
8284b0c5 20532
21d1c967 20533 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
20534 if test "$wxUSE_LIBJPEG" = "sys"; then
20535 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20536 fi
20537 if test "$wxUSE_ZLIB" = "sys"; then
20538 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20539 fi
e6cc62c6
VS
20540 if test "${ac_cv_header_tiffio_h+set}" = set; then
20541 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20542echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20543if test "${ac_cv_header_tiffio_h+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545fi
20546echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20547echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20548else
20549 # Is the header compilable?
20550echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20551echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20552cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
20557/* end confdefs.h. */
20558$ac_includes_default
247f5006 20559#include <tiffio.h>
e6cc62c6
VS
20560_ACEOF
20561rm -f conftest.$ac_objext
20562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20563 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20564 ac_status=$?
32ddf007
VS
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
e6cc62c6
VS
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
e1293dcf 20570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_header_compiler=yes
20583else
20584 echo "$as_me: failed program was:" >&5
20585sed 's/^/| /' conftest.$ac_ext >&5
20586
20587ac_header_compiler=no
20588fi
32ddf007 20589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20590echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20591echo "${ECHO_T}$ac_header_compiler" >&6
20592
20593# Is the header present?
20594echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20595echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20596cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602#include <tiffio.h>
20603_ACEOF
20604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } >/dev/null; then
20612 if test -s conftest.err; then
20613 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20615 else
20616 ac_cpp_err=
20617 fi
20618else
20619 ac_cpp_err=yes
20620fi
20621if test -z "$ac_cpp_err"; then
20622 ac_header_preproc=yes
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_header_preproc=no
20628fi
20629rm -f conftest.err conftest.$ac_ext
20630echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631echo "${ECHO_T}$ac_header_preproc" >&6
20632
20633# So? What about this header?
32ddf007
VS
20634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20635 yes:no: )
e6cc62c6
VS
20636 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20637echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20638 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20639echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20640 ac_header_preproc=yes
e6cc62c6 20641 ;;
32ddf007 20642 no:yes:* )
e6cc62c6
VS
20643 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20644echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
32ddf007
VS
20645 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20646echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20648echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20650echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20651 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20652echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20653 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20654echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20655 (
20656 cat <<\_ASBOX
32ddf007
VS
20657## ----------------------------------------- ##
20658## Report this to wx-dev@lists.wxwindows.org ##
20659## ----------------------------------------- ##
e6cc62c6
VS
20660_ASBOX
20661 ) |
20662 sed "s/^/$as_me: WARNING: /" >&2
20663 ;;
20664esac
20665echo "$as_me:$LINENO: checking for tiffio.h" >&5
20666echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20667if test "${ac_cv_header_tiffio_h+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669else
20670 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20671fi
e6cc62c6
VS
20672echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20673echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20674
21d1c967 20675fi
e6cc62c6 20676if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20677
20678 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20679echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20680if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20682else
e6cc62c6 20683 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20684LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20685cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
20691
ab9b9eab 20692/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20693#ifdef __cplusplus
20694extern "C"
20695#endif
ab9b9eab 20696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20697 builtin and then its argument prototype would still apply. */
20698char TIFFError ();
20699int
20700main ()
20701{
20702TIFFError ();
20703 ;
20704 return 0;
20705}
20706_ACEOF
20707rm -f conftest.$ac_objext conftest$ac_exeext
20708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20709 (eval $ac_link) 2>conftest.er1
e6cc62c6 20710 ac_status=$?
32ddf007
VS
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
e6cc62c6
VS
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
e1293dcf 20716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_lib_tiff_TIFFError=yes
20729else
20730 echo "$as_me: failed program was:" >&5
20731sed 's/^/| /' conftest.$ac_ext >&5
20732
20733ac_cv_lib_tiff_TIFFError=no
20734fi
32ddf007
VS
20735rm -f conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20737LIBS=$ac_check_lib_save_LIBS
20738fi
20739echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20740echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20741if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20742 TIFF_LINK=" -ltiff"
a0b9e27f 20743fi
cd6d6d5b 20744
e6cc62c6 20745
0e012a93 20746
a0b9e27f 20747fi
8284b0c5 20748
247f5006 20749
e6cc62c6 20750
21d1c967
GD
20751 if test "x$TIFF_LINK" = "x" ; then
20752 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20753 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20754echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20755 { (exit 1); exit 1; }; }
90dd450c 20756 else
e6cc62c6
VS
20757 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20758echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20759 wxUSE_LIBTIFF=builtin
d8356fa3 20760 fi
d8356fa3 20761 else
21d1c967 20762 wxUSE_LIBTIFF=sys
d8356fa3 20763 fi
21d1c967 20764 fi
21d1c967 20765fi
10f2d63a 20766
8284b0c5 20767
672abd7a 20768if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20769 wxUSE_XML=yes
672abd7a
VS
20770 cat >>confdefs.h <<\_ACEOF
20771#define wxUSE_EXPAT 1
20772_ACEOF
20773
20774 cat >>confdefs.h <<\_ACEOF
20775#define wxUSE_XML 1
20776_ACEOF
20777
20778
20779 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20780 if test "${ac_cv_header_expat_h+set}" = set; then
20781 echo "$as_me:$LINENO: checking for expat.h" >&5
20782echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20783if test "${ac_cv_header_expat_h+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785fi
20786echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20787echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20788else
20789 # Is the header compilable?
20790echo "$as_me:$LINENO: checking expat.h usability" >&5
20791echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20792cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798$ac_includes_default
20799#include <expat.h>
20800_ACEOF
20801rm -f conftest.$ac_objext
20802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20803 (eval $ac_compile) 2>conftest.er1
672abd7a 20804 ac_status=$?
32ddf007
VS
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
672abd7a
VS
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
e1293dcf 20810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; } &&
20816 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_header_compiler=yes
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827ac_header_compiler=no
20828fi
32ddf007 20829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831echo "${ECHO_T}$ac_header_compiler" >&6
20832
20833# Is the header present?
20834echo "$as_me:$LINENO: checking expat.h presence" >&5
20835echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20836cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20837/* confdefs.h. */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h. */
20842#include <expat.h>
20843_ACEOF
20844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } >/dev/null; then
20852 if test -s conftest.err; then
20853 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20855 else
20856 ac_cpp_err=
20857 fi
20858else
20859 ac_cpp_err=yes
20860fi
20861if test -z "$ac_cpp_err"; then
20862 ac_header_preproc=yes
20863else
20864 echo "$as_me: failed program was:" >&5
20865sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_header_preproc=no
20868fi
20869rm -f conftest.err conftest.$ac_ext
20870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20871echo "${ECHO_T}$ac_header_preproc" >&6
20872
20873# So? What about this header?
32ddf007
VS
20874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20875 yes:no: )
672abd7a
VS
20876 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20877echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20878 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20879echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20880 ac_header_preproc=yes
672abd7a 20881 ;;
32ddf007 20882 no:yes:* )
672abd7a
VS
20883 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20884echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
32ddf007
VS
20885 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20886echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20887 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20888echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20889 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20890echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20891 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20892echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20893 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20894echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20895 (
20896 cat <<\_ASBOX
32ddf007
VS
20897## ----------------------------------------- ##
20898## Report this to wx-dev@lists.wxwindows.org ##
20899## ----------------------------------------- ##
672abd7a
VS
20900_ASBOX
20901 ) |
20902 sed "s/^/$as_me: WARNING: /" >&2
20903 ;;
20904esac
20905echo "$as_me:$LINENO: checking for expat.h" >&5
20906echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20907if test "${ac_cv_header_expat_h+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909else
20910 ac_cv_header_expat_h=$ac_header_preproc
20911fi
20912echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20913echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20914
20915fi
5f0b6dff
VS
20916if test $ac_cv_header_expat_h = yes; then
20917 found_expat_h=1
20918fi
20919
20920
20921 if test "x$found_expat_h" = "x1"; then
20922 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20923echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20924if test "${wx_cv_expat_is_not_broken+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926else
20927
20928
672abd7a 20929
5f0b6dff
VS
20930 ac_ext=cc
20931ac_cpp='$CXXCPP $CPPFLAGS'
20932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
20936 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20937/* confdefs.h. */
20938_ACEOF
20939cat confdefs.h >>conftest.$ac_ext
20940cat >>conftest.$ac_ext <<_ACEOF
20941/* end confdefs.h. */
20942#include <expat.h>
20943int
20944main ()
20945{
672abd7a 20946
5f0b6dff
VS
20947 ;
20948 return 0;
20949}
20950_ACEOF
20951rm -f conftest.$ac_objext
20952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20953 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20954 ac_status=$?
32ddf007
VS
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
5f0b6dff
VS
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
e1293dcf 20960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 wx_cv_expat_is_not_broken=yes
20973else
20974 echo "$as_me: failed program was:" >&5
20975sed 's/^/| /' conftest.$ac_ext >&5
20976
20977wx_cv_expat_is_not_broken=no
20978
20979fi
32ddf007 20980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20981 ac_ext=c
20982ac_cpp='$CPP $CPPFLAGS'
20983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985ac_compiler_gnu=$ac_cv_c_compiler_gnu
20986
20987
20988
20989fi
20990echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20991echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20992 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20993 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20994echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20995if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997else
20998 ac_check_lib_save_LIBS=$LIBS
20999LIBS="-lexpat $LIBS"
21000cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
21001/* confdefs.h. */
21002_ACEOF
21003cat confdefs.h >>conftest.$ac_ext
21004cat >>conftest.$ac_ext <<_ACEOF
21005/* end confdefs.h. */
21006
21007/* Override any gcc2 internal prototype to avoid an error. */
21008#ifdef __cplusplus
21009extern "C"
21010#endif
21011/* We use char because int might match the return type of a gcc2
21012 builtin and then its argument prototype would still apply. */
21013char XML_ParserCreate ();
21014int
21015main ()
21016{
21017XML_ParserCreate ();
21018 ;
21019 return 0;
21020}
21021_ACEOF
21022rm -f conftest.$ac_objext conftest$ac_exeext
21023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21024 (eval $ac_link) 2>conftest.er1
672abd7a 21025 ac_status=$?
32ddf007
VS
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
672abd7a
VS
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
e1293dcf 21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_lib_expat_XML_ParserCreate=yes
21044else
21045 echo "$as_me: failed program was:" >&5
21046sed 's/^/| /' conftest.$ac_ext >&5
21047
21048ac_cv_lib_expat_XML_ParserCreate=no
21049fi
32ddf007
VS
21050rm -f conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
21052LIBS=$ac_check_lib_save_LIBS
21053fi
21054echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21055echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21056if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21057 EXPAT_LINK=" -lexpat"
21058fi
21059
5f0b6dff 21060 fi
672abd7a
VS
21061 fi
21062 if test "x$EXPAT_LINK" = "x" ; then
21063 if test "$wxUSE_EXPAT" = "sys" ; then
21064 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21065echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21066 { (exit 1); exit 1; }; }
21067 else
21068 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21069echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21070 wxUSE_EXPAT=builtin
21071 fi
21072 else
21073 wxUSE_EXPAT=sys
21074 fi
21075 fi
21076 if test "$wxUSE_EXPAT" = "builtin" ; then
21077
21078
21079subdirs="$subdirs src/expat"
21080
21081 fi
21082fi
21083
21084
21085
3527f29c
VS
21086if test "$wxUSE_LIBMSPACK" != "no"; then
21087
21088 if test "${ac_cv_header_mspack_h+set}" = set; then
21089 echo "$as_me:$LINENO: checking for mspack.h" >&5
21090echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21091if test "${ac_cv_header_mspack_h+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093fi
21094echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21095echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21096else
21097 # Is the header compilable?
21098echo "$as_me:$LINENO: checking mspack.h usability" >&5
21099echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21100cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21101/* confdefs.h. */
21102_ACEOF
21103cat confdefs.h >>conftest.$ac_ext
21104cat >>conftest.$ac_ext <<_ACEOF
21105/* end confdefs.h. */
21106$ac_includes_default
21107#include <mspack.h>
21108_ACEOF
21109rm -f conftest.$ac_objext
21110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21111 (eval $ac_compile) 2>conftest.er1
3527f29c 21112 ac_status=$?
32ddf007
VS
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
3527f29c
VS
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
e1293dcf 21118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_header_compiler=yes
21131else
21132 echo "$as_me: failed program was:" >&5
21133sed 's/^/| /' conftest.$ac_ext >&5
21134
21135ac_header_compiler=no
21136fi
32ddf007 21137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
21138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21139echo "${ECHO_T}$ac_header_compiler" >&6
21140
21141# Is the header present?
21142echo "$as_me:$LINENO: checking mspack.h presence" >&5
21143echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21144cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150#include <mspack.h>
21151_ACEOF
21152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } >/dev/null; then
21160 if test -s conftest.err; then
21161 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
21163 else
21164 ac_cpp_err=
21165 fi
21166else
21167 ac_cpp_err=yes
21168fi
21169if test -z "$ac_cpp_err"; then
21170 ac_header_preproc=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_preproc=no
21176fi
21177rm -f conftest.err conftest.$ac_ext
21178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21179echo "${ECHO_T}$ac_header_preproc" >&6
21180
21181# So? What about this header?
32ddf007
VS
21182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21183 yes:no: )
3527f29c
VS
21184 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21185echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21186 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21187echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21188 ac_header_preproc=yes
3527f29c 21189 ;;
32ddf007 21190 no:yes:* )
3527f29c
VS
21191 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21192echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
32ddf007
VS
21193 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21194echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21196echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21198echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
21199 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21200echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21201 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21202echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
21203 (
21204 cat <<\_ASBOX
32ddf007
VS
21205## ----------------------------------------- ##
21206## Report this to wx-dev@lists.wxwindows.org ##
21207## ----------------------------------------- ##
3527f29c
VS
21208_ASBOX
21209 ) |
21210 sed "s/^/$as_me: WARNING: /" >&2
21211 ;;
21212esac
21213echo "$as_me:$LINENO: checking for mspack.h" >&5
21214echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21215if test "${ac_cv_header_mspack_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217else
21218 ac_cv_header_mspack_h=$ac_header_preproc
21219fi
21220echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21221echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21222
21223fi
21224if test $ac_cv_header_mspack_h = yes; then
21225 found_mspack_h=1
21226fi
21227
21228
21229 if test "x$found_mspack_h" = "x1"; then
21230 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21231echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21232if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234else
21235 ac_check_lib_save_LIBS=$LIBS
21236LIBS="-lmspack $LIBS"
21237cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21238/* confdefs.h. */
21239_ACEOF
21240cat confdefs.h >>conftest.$ac_ext
21241cat >>conftest.$ac_ext <<_ACEOF
21242/* end confdefs.h. */
21243
21244/* Override any gcc2 internal prototype to avoid an error. */
21245#ifdef __cplusplus
21246extern "C"
21247#endif
21248/* We use char because int might match the return type of a gcc2
21249 builtin and then its argument prototype would still apply. */
21250char mspack_create_chm_decompressor ();
21251int
21252main ()
21253{
21254mspack_create_chm_decompressor ();
21255 ;
21256 return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext conftest$ac_exeext
21260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21261 (eval $ac_link) 2>conftest.er1
3527f29c 21262 ac_status=$?
32ddf007
VS
21263 grep -v '^ *+' conftest.er1 >conftest.err
21264 rm -f conftest.er1
21265 cat conftest.err >&5
3527f29c
VS
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
e1293dcf 21268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21281else
21282 echo "$as_me: failed program was:" >&5
21283sed 's/^/| /' conftest.$ac_ext >&5
21284
21285ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21286fi
32ddf007
VS
21287rm -f conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
21289LIBS=$ac_check_lib_save_LIBS
21290fi
21291echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21292echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21293if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21294 MSPACK_LINK=" -lmspack"
21295fi
21296
21297 fi
21298 if test "x$MSPACK_LINK" = "x" ; then
21299 wxUSE_LIBMSPACK=no
21300 else
21301 cat >>confdefs.h <<\_ACEOF
21302#define wxUSE_LIBMSPACK 1
21303_ACEOF
21304
21305 fi
21306fi
21307
21308
21309
21d1c967 21310AFMINSTALL=
2b5f62a0 21311WIN32INSTALL=
90dd450c 21312
21d1c967
GD
21313TOOLKIT=
21314TOOLKIT_INCLUDE=
21315WIDGET_SET=
21316
21317if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
21318
21319for ac_header in w32api.h
21d1c967 21320do
e6cc62c6
VS
21321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21322if eval "test \"\${$as_ac_Header+set}\" = set"; then
21323 echo "$as_me:$LINENO: checking for $ac_header" >&5
21324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21325if eval "test \"\${$as_ac_Header+set}\" = set"; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327fi
21328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21330else
21331 # Is the header compilable?
21332echo "$as_me:$LINENO: checking $ac_header usability" >&5
21333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21334cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
21340$ac_includes_default
21341#include <$ac_header>
21342_ACEOF
21343rm -f conftest.$ac_objext
21344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21345 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21346 ac_status=$?
32ddf007
VS
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
e6cc62c6
VS
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
e1293dcf 21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_header_compiler=yes
21365else
21366 echo "$as_me: failed program was:" >&5
21367sed 's/^/| /' conftest.$ac_ext >&5
21368
21369ac_header_compiler=no
21370fi
32ddf007 21371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373echo "${ECHO_T}$ac_header_compiler" >&6
21374
21375# Is the header present?
21376echo "$as_me:$LINENO: checking $ac_header presence" >&5
21377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21378cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21379/* confdefs.h. */
21380_ACEOF
21381cat confdefs.h >>conftest.$ac_ext
21382cat >>conftest.$ac_ext <<_ACEOF
21383/* end confdefs.h. */
21384#include <$ac_header>
21385_ACEOF
21386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null; then
21394 if test -s conftest.err; then
21395 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21397 else
21398 ac_cpp_err=
21399 fi
21400else
21401 ac_cpp_err=yes
21402fi
21403if test -z "$ac_cpp_err"; then
21404 ac_header_preproc=yes
21405else
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 ac_header_preproc=no
21410fi
21411rm -f conftest.err conftest.$ac_ext
21412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21413echo "${ECHO_T}$ac_header_preproc" >&6
21414
21415# So? What about this header?
32ddf007
VS
21416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21417 yes:no: )
e6cc62c6
VS
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21422 ac_header_preproc=yes
e6cc62c6 21423 ;;
32ddf007 21424 no:yes:* )
e6cc62c6
VS
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
21427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21428echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21432echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21437 (
21438 cat <<\_ASBOX
32ddf007
VS
21439## ----------------------------------------- ##
21440## Report this to wx-dev@lists.wxwindows.org ##
21441## ----------------------------------------- ##
e6cc62c6
VS
21442_ASBOX
21443 ) |
21444 sed "s/^/$as_me: WARNING: /" >&2
21445 ;;
21446esac
21447echo "$as_me:$LINENO: checking for $ac_header" >&5
21448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21449if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451else
32ddf007 21452 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 21453fi
e6cc62c6
VS
21454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21456
21d1c967 21457fi
e6cc62c6
VS
21458if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21461_ACEOF
21462
21d1c967 21463fi
e6cc62c6 21464
21d1c967 21465done
f79bd02d 21466
e6cc62c6
VS
21467 if test "${ac_cv_header_windows_h+set}" = set; then
21468 echo "$as_me:$LINENO: checking for windows.h" >&5
21469echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21470if test "${ac_cv_header_windows_h+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472fi
21473echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21474echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21475else
21476 # Is the header compilable?
21477echo "$as_me:$LINENO: checking windows.h usability" >&5
21478echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21479cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
21485$ac_includes_default
247f5006 21486#include <windows.h>
e6cc62c6
VS
21487_ACEOF
21488rm -f conftest.$ac_objext
21489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21490 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21491 ac_status=$?
32ddf007
VS
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
e6cc62c6
VS
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
e1293dcf 21497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_header_compiler=yes
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514ac_header_compiler=no
21515fi
32ddf007 21516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21518echo "${ECHO_T}$ac_header_compiler" >&6
21519
21520# Is the header present?
21521echo "$as_me:$LINENO: checking windows.h presence" >&5
21522echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21523cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
21529#include <windows.h>
21530_ACEOF
21531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } >/dev/null; then
21539 if test -s conftest.err; then
21540 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21542 else
21543 ac_cpp_err=
21544 fi
21545else
21546 ac_cpp_err=yes
21547fi
21548if test -z "$ac_cpp_err"; then
21549 ac_header_preproc=yes
21550else
21551 echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ac_header_preproc=no
21555fi
21556rm -f conftest.err conftest.$ac_ext
21557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21558echo "${ECHO_T}$ac_header_preproc" >&6
21559
21560# So? What about this header?
32ddf007
VS
21561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21562 yes:no: )
e6cc62c6
VS
21563 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21564echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21565 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21566echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21567 ac_header_preproc=yes
e6cc62c6 21568 ;;
32ddf007 21569 no:yes:* )
e6cc62c6
VS
21570 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21571echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
32ddf007
VS
21572 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21573echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21575echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21577echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21578 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21579echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21580 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21581echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21582 (
21583 cat <<\_ASBOX
32ddf007
VS
21584## ----------------------------------------- ##
21585## Report this to wx-dev@lists.wxwindows.org ##
21586## ----------------------------------------- ##
e6cc62c6
VS
21587_ASBOX
21588 ) |
21589 sed "s/^/$as_me: WARNING: /" >&2
21590 ;;
21591esac
21592echo "$as_me:$LINENO: checking for windows.h" >&5
21593echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21594if test "${ac_cv_header_windows_h+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596else
21597 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21598fi
e6cc62c6
VS
21599echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21600echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21601
90dd450c 21602fi
e6cc62c6 21603if test $ac_cv_header_windows_h = yes; then
21d1c967 21604 :
90dd450c 21605else
21d1c967 21606
e6cc62c6
VS
21607 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21608echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21609 { (exit 1); exit 1; }; }
21610
5c6fa7d2 21611fi
7b4a847f 21612
5c6fa7d2 21613
e6cc62c6 21614
b3dfbbc9 21615 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21616
7bb2947d
MB
21617 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21618 LIBS="$LIBS -loleacc"
21619 fi
21620
21d1c967
GD
21621 case "${host}" in
21622 *-*-cygwin* )
b3dfbbc9 21623 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21624 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21625 esac
f79bd02d 21626
8647bec6
RG
21627 if test "$wxUSE_ODBC" = "sys" ; then
21628 wxUSE_ODBC = "yes"
21d1c967 21629 fi
8647bec6
RG
21630 if test "$wxUSE_ODBC" = "yes" ; then
21631 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21632 cat >>confdefs.h <<\_ACEOF
8647bec6 21633#define wxUSE_ODBC 1
e6cc62c6 21634_ACEOF
f79bd02d 21635
8647bec6 21636 fi
e6cc62c6 21637
21d1c967
GD
21638 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21639 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21640
21641 WIN32INSTALL=win32install
f79bd02d 21642fi
f79bd02d 21643
21d1c967
GD
21644if test "$wxUSE_GUI" = "yes"; then
21645 USE_GUI=1
f79bd02d 21646
21d1c967 21647 GUI_TK_LIBRARY=
f79bd02d 21648
21d1c967
GD
21649 WXGTK12=
21650 WXGTK127=
21651 WXGTK20=
0f87e84c 21652 WXGPE=
f79bd02d 21653
21d1c967
GD
21654 if test "$wxUSE_MSW" = 1 ; then
21655 TOOLKIT=MSW
21656 GUIDIST=MSW_DIST
ffef10f6
VS
21657
21658 case "${host}" in
21659 *-*-mingw32* )
21660 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21661 esac
f79bd02d
JS
21662 fi
21663
21d1c967 21664 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21665 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21666echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21667
21668 gtk_version_cached=1
e6cc62c6
VS
21669 if test "${wx_cv_lib_gtk+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21671else
e6cc62c6 21672
21d1c967 21673 gtk_version_cached=0
e6cc62c6
VS
21674 echo "$as_me:$LINENO: result: " >&5
21675echo "${ECHO_T}" >&6
f79bd02d 21676
21d1c967
GD
21677 GTK_MODULES=
21678 if test "$wxUSE_THREADS" = "yes"; then
21679 GTK_MODULES=gthread
21680 fi
f79bd02d 21681
2b5f62a0 21682 wx_cv_lib_gtk=
21d1c967
GD
21683 if test "x$wxUSE_GTK2" = "xyes"; then
21684 # Check whether --enable-gtktest or --disable-gtktest was given.
21685if test "${enable_gtktest+set}" = set; then
21686 enableval="$enable_gtktest"
e6cc62c6 21687
f79bd02d 21688else
21d1c967 21689 enable_gtktest=yes
e6cc62c6 21690fi;
f79bd02d 21691
21d1c967
GD
21692 pkg_config_args=gtk+-2.0
21693 for module in . $GTK_MODULES
21694 do
21695 case "$module" in
e6cc62c6 21696 gthread)
21d1c967
GD
21697 pkg_config_args="$pkg_config_args gthread-2.0"
21698 ;;
21699 esac
21700 done
21701
21702 no_gtk=""
f79bd02d 21703
21d1c967
GD
21704 # Extract the first word of "pkg-config", so it can be a program name with args.
21705set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21706echo "$as_me:$LINENO: checking for $ac_word" >&5
21707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21708if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21710else
e6cc62c6
VS
21711 case $PKG_CONFIG in
21712 [\\/]* | ?:[\\/]*)
21d1c967
GD
21713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21714 ;;
21d1c967 21715 *)
e6cc62c6
VS
21716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717for as_dir in $PATH
21718do
21719 IFS=$as_save_IFS
21720 test -z "$as_dir" && as_dir=.
21721 for ac_exec_ext in '' $ac_executable_extensions; do
21722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21725 break 2
21726 fi
21727done
21728done
21729
21d1c967
GD
21730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21731 ;;
21732esac
f79bd02d 21733fi
e6cc62c6
VS
21734PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21735
21d1c967 21736if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21737 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21738echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21739else
e6cc62c6
VS
21740 echo "$as_me:$LINENO: result: no" >&5
21741echo "${ECHO_T}no" >&6
f79bd02d
JS
21742fi
21743
8284b0c5 21744
21d1c967
GD
21745 if test x$PKG_CONFIG != xno ; then
21746 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21747 :
21748 else
21749 echo *** pkg-config too old; version 0.7 or better required.
21750 no_gtk=yes
21751 PKG_CONFIG=no
21752 fi
21753 else
21754 no_gtk=yes
21755 fi
f79bd02d 21756
21d1c967 21757 min_gtk_version=2.0.0
e6cc62c6
VS
21758 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21759echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21760
21d1c967
GD
21761 if test x$PKG_CONFIG != xno ; then
21762 ## don't try to run the test against uninstalled libtool libs
21763 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21764 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21765 enable_gtktest=no
21766 fi
f79bd02d 21767
21d1c967
GD
21768 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21769 :
21770 else
21771 no_gtk=yes
21772 fi
21773 fi
f79bd02d 21774
21d1c967
GD
21775 if test x"$no_gtk" = x ; then
21776 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21777 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21778 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21780 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21782 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21784 if test "x$enable_gtktest" = "xyes" ; then
21785 ac_save_CFLAGS="$CFLAGS"
21786 ac_save_LIBS="$LIBS"
21787 CFLAGS="$CFLAGS $GTK_CFLAGS"
21788 LIBS="$GTK_LIBS $LIBS"
21789 rm -f conf.gtktest
21790 if test "$cross_compiling" = yes; then
21791 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21792else
e6cc62c6 21793 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
f79bd02d 21799
21d1c967
GD
21800#include <gtk/gtk.h>
21801#include <stdio.h>
21802#include <stdlib.h>
f79bd02d 21803
e6cc62c6 21804int
21d1c967
GD
21805main ()
21806{
21807 int major, minor, micro;
21808 char *tmp_version;
f79bd02d 21809
21d1c967 21810 system ("touch conf.gtktest");
f79bd02d 21811
21d1c967
GD
21812 /* HP/UX 9 (%@#!) writes to sscanf strings */
21813 tmp_version = g_strdup("$min_gtk_version");
21814 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21815 printf("%s, bad version string\n", "$min_gtk_version");
21816 exit(1);
21817 }
f79bd02d 21818
21d1c967
GD
21819 if ((gtk_major_version != $gtk_config_major_version) ||
21820 (gtk_minor_version != $gtk_config_minor_version) ||
21821 (gtk_micro_version != $gtk_config_micro_version))
21822 {
e6cc62c6 21823 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21824 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21825 gtk_major_version, gtk_minor_version, gtk_micro_version);
21826 printf ("*** was found! If pkg-config was correct, then it is best\n");
21827 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21828 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21829 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21830 printf("*** required on your system.\n");
21831 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21832 printf("*** to point to the correct configuration files\n");
e6cc62c6 21833 }
21d1c967
GD
21834 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21835 (gtk_minor_version != GTK_MINOR_VERSION) ||
21836 (gtk_micro_version != GTK_MICRO_VERSION))
21837 {
21838 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21839 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21840 printf("*** library (version %d.%d.%d)\n",
21841 gtk_major_version, gtk_minor_version, gtk_micro_version);
21842 }
21843 else
21844 {
21845 if ((gtk_major_version > major) ||
21846 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21847 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21848 {
21849 return 0;
21850 }
21851 else
21852 {
21853 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21854 gtk_major_version, gtk_minor_version, gtk_micro_version);
21855 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21856 major, minor, micro);
21857 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21858 printf("***\n");
21859 printf("*** If you have already installed a sufficiently new version, this error\n");
21860 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21861 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21862 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21863 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21864 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21865 printf("*** so that the correct libraries are found at run-time))\n");
21866 }
21867 }
21868 return 1;
21869}
f79bd02d 21870
e6cc62c6
VS
21871_ACEOF
21872rm -f conftest$ac_exeext
21873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874 (eval $ac_link) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21d1c967 21883 :
f79bd02d 21884else
e6cc62c6
VS
21885 echo "$as_me: program exited with status $ac_status" >&5
21886echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889( exit $ac_status )
21890no_gtk=yes
f79bd02d 21891fi
32ddf007 21892rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21893fi
21d1c967
GD
21894 CFLAGS="$ac_save_CFLAGS"
21895 LIBS="$ac_save_LIBS"
21896 fi
21897 fi
21898 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21899 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21900echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21901 wx_cv_lib_gtk=2.0
21d1c967 21902 else
e6cc62c6
VS
21903 echo "$as_me:$LINENO: result: no" >&5
21904echo "${ECHO_T}no" >&6
21d1c967
GD
21905 if test "$PKG_CONFIG" = "no" ; then
21906 echo "*** A new enough version of pkg-config was not found."
21907 echo "*** See http://pkgconfig.sourceforge.net"
21908 else
21909 if test -f conf.gtktest ; then
21910 :
21911 else
21912 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21913 ac_save_CFLAGS="$CFLAGS"
21914 ac_save_LIBS="$LIBS"
21d1c967
GD
21915 CFLAGS="$CFLAGS $GTK_CFLAGS"
21916 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21917 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21918/* confdefs.h. */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h. */
21d1c967
GD
21923
21924#include <gtk/gtk.h>
21925#include <stdio.h>
f79bd02d 21926
e6cc62c6
VS
21927int
21928main ()
21929{
21930 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21931 ;
21932 return 0;
21933}
21934_ACEOF
21935rm -f conftest.$ac_objext conftest$ac_exeext
21936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21937 (eval $ac_link) 2>conftest.er1
e6cc62c6 21938 ac_status=$?
32ddf007
VS
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
e6cc62c6
VS
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } &&
e1293dcf 21944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; } &&
21950 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21d1c967
GD
21956 echo "*** The test program compiled, but did not run. This usually means"
21957 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21958 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21959 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21960 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21961 echo "*** is required on your system"
21962 echo "***"
21963 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21964 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21965else
e6cc62c6
VS
21966 echo "$as_me: failed program was:" >&5
21967sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21970 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21971fi
32ddf007
VS
21972rm -f conftest.err conftest.$ac_objext \
21973 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21974 CFLAGS="$ac_save_CFLAGS"
21975 LIBS="$ac_save_LIBS"
21976 fi
21977 fi
21978 GTK_CFLAGS=""
21979 GTK_LIBS=""
21980 :
21981 fi
e6cc62c6
VS
21982
21983
21d1c967 21984 rm -f conf.gtktest
f79bd02d 21985
2b5f62a0 21986 else
e6cc62c6
VS
21987
21988# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21989if test "${with_gtk_prefix+set}" = set; then
21990 withval="$with_gtk_prefix"
21991 gtk_config_prefix="$withval"
21992else
21993 gtk_config_prefix=""
e6cc62c6 21994fi;
f79bd02d 21995
21d1c967
GD
21996# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21997if test "${with_gtk_exec_prefix+set}" = set; then
21998 withval="$with_gtk_exec_prefix"
21999 gtk_config_exec_prefix="$withval"
22000else
22001 gtk_config_exec_prefix=""
e6cc62c6 22002fi;
21d1c967
GD
22003# Check whether --enable-gtktest or --disable-gtktest was given.
22004if test "${enable_gtktest+set}" = set; then
22005 enableval="$enable_gtktest"
e6cc62c6 22006
21d1c967
GD
22007else
22008 enable_gtktest=yes
e6cc62c6 22009fi;
21d1c967
GD
22010
22011 for module in . $GTK_MODULES
22012 do
22013 case "$module" in
e6cc62c6 22014 gthread)
21d1c967
GD
22015 gtk_config_args="$gtk_config_args gthread"
22016 ;;
22017 esac
22018 done
22019
22020 if test x$gtk_config_exec_prefix != x ; then
22021 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22022 if test x${GTK_CONFIG+set} != xset ; then
22023 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22024 fi
22025 fi
22026 if test x$gtk_config_prefix != x ; then
22027 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22028 if test x${GTK_CONFIG+set} != xset ; then
22029 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22030 fi
22031 fi
22032
22033 # Extract the first word of "gtk-config", so it can be a program name with args.
22034set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22035echo "$as_me:$LINENO: checking for $ac_word" >&5
22036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22037if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22039else
e6cc62c6
VS
22040 case $GTK_CONFIG in
22041 [\\/]* | ?:[\\/]*)
21d1c967
GD
22042 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22043 ;;
21d1c967 22044 *)
e6cc62c6
VS
22045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22046for as_dir in $PATH
22047do
22048 IFS=$as_save_IFS
22049 test -z "$as_dir" && as_dir=.
22050 for ac_exec_ext in '' $ac_executable_extensions; do
22051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22052 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22054 break 2
22055 fi
22056done
22057done
22058
21d1c967
GD
22059 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22060 ;;
22061esac
22062fi
e6cc62c6
VS
22063GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22064
21d1c967 22065if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22066 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22067echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22068else
e6cc62c6
VS
22069 echo "$as_me:$LINENO: result: no" >&5
22070echo "${ECHO_T}no" >&6
21d1c967
GD
22071fi
22072
22073 min_gtk_version=1.2.7
e6cc62c6
VS
22074 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22075echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22076 no_gtk=""
22077 if test "$GTK_CONFIG" = "no" ; then
22078 no_gtk=yes
22079 else
22080 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22081 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22082 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22084 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22086 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22087 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22088 if test "x$enable_gtktest" = "xyes" ; then
22089 ac_save_CFLAGS="$CFLAGS"
22090 ac_save_LIBS="$LIBS"
22091 CFLAGS="$CFLAGS $GTK_CFLAGS"
22092 LIBS="$GTK_LIBS $LIBS"
22093 rm -f conf.gtktest
22094 if test "$cross_compiling" = yes; then
22095 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 22096else
e6cc62c6 22097 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
f79bd02d 22103
21d1c967
GD
22104#include <gtk/gtk.h>
22105#include <stdio.h>
22106#include <stdlib.h>
f79bd02d 22107
e6cc62c6 22108int
21d1c967
GD
22109main ()
22110{
22111 int major, minor, micro;
22112 char *tmp_version;
22113
22114 system ("touch conf.gtktest");
22115
22116 /* HP/UX 9 (%@#!) writes to sscanf strings */
22117 tmp_version = g_strdup("$min_gtk_version");
22118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22119 printf("%s, bad version string\n", "$min_gtk_version");
22120 exit(1);
22121 }
90dd450c 22122
21d1c967
GD
22123 if ((gtk_major_version != $gtk_config_major_version) ||
22124 (gtk_minor_version != $gtk_config_minor_version) ||
22125 (gtk_micro_version != $gtk_config_micro_version))
22126 {
e6cc62c6 22127 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22128 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22129 gtk_major_version, gtk_minor_version, gtk_micro_version);
22130 printf ("*** was found! If gtk-config was correct, then it is best\n");
22131 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22132 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22133 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22134 printf("*** required on your system.\n");
22135 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22136 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22137 printf("*** before re-running configure\n");
e6cc62c6 22138 }
21d1c967
GD
22139#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22140 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22141 (gtk_minor_version != GTK_MINOR_VERSION) ||
22142 (gtk_micro_version != GTK_MICRO_VERSION))
22143 {
22144 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22145 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22146 printf("*** library (version %d.%d.%d)\n",
22147 gtk_major_version, gtk_minor_version, gtk_micro_version);
22148 }
22149#endif /* defined (GTK_MAJOR_VERSION) ... */
22150 else
22151 {
22152 if ((gtk_major_version > major) ||
22153 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22154 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22155 {
22156 return 0;
22157 }
22158 else
22159 {
22160 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22161 gtk_major_version, gtk_minor_version, gtk_micro_version);
22162 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22163 major, minor, micro);
22164 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22165 printf("***\n");
22166 printf("*** If you have already installed a sufficiently new version, this error\n");
22167 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22168 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22169 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22170 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22171 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22172 printf("*** so that the correct libraries are found at run-time))\n");
22173 }
22174 }
22175 return 1;
22176}
22177
e6cc62c6
VS
22178_ACEOF
22179rm -f conftest$ac_exeext
22180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22181 (eval $ac_link) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
21d1c967
GD
22190 :
22191else
e6cc62c6
VS
22192 echo "$as_me: program exited with status $ac_status" >&5
22193echo "$as_me: failed program was:" >&5
22194sed 's/^/| /' conftest.$ac_ext >&5
22195
22196( exit $ac_status )
22197no_gtk=yes
21d1c967 22198fi
32ddf007 22199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22200fi
21d1c967
GD
22201 CFLAGS="$ac_save_CFLAGS"
22202 LIBS="$ac_save_LIBS"
22203 fi
22204 fi
22205 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22206 echo "$as_me:$LINENO: result: yes" >&5
22207echo "${ECHO_T}yes" >&6
22208 wx_cv_lib_gtk=1.2.7
21d1c967 22209 else
e6cc62c6
VS
22210 echo "$as_me:$LINENO: result: no" >&5
22211echo "${ECHO_T}no" >&6
21d1c967
GD
22212 if test "$GTK_CONFIG" = "no" ; then
22213 echo "*** The gtk-config script installed by GTK could not be found"
22214 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22215 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22216 echo "*** full path to gtk-config."
22217 else
22218 if test -f conf.gtktest ; then
22219 :
22220 else
22221 echo "*** Could not run GTK test program, checking why..."
22222 CFLAGS="$CFLAGS $GTK_CFLAGS"
22223 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22224 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
21d1c967
GD
22230
22231#include <gtk/gtk.h>
22232#include <stdio.h>
22233
e6cc62c6
VS
22234int
22235main ()
22236{
22237 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22238 ;
22239 return 0;
22240}
22241_ACEOF
22242rm -f conftest.$ac_objext conftest$ac_exeext
22243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22244 (eval $ac_link) 2>conftest.er1
e6cc62c6 22245 ac_status=$?
32ddf007
VS
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
e6cc62c6
VS
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
e1293dcf 22251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
21d1c967
GD
22263 echo "*** The test program compiled, but did not run. This usually means"
22264 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22265 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22266 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22267 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22268 echo "*** is required on your system"
22269 echo "***"
22270 echo "*** If you have an old version installed, it is best to remove it, although"
22271 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22272 echo "***"
22273 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22274 echo "*** came with the system with the command"
22275 echo "***"
e6cc62c6 22276 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22277else
e6cc62c6
VS
22278 echo "$as_me: failed program was:" >&5
22279sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22282 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22283 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22284 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22285fi
32ddf007
VS
22286rm -f conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22288 CFLAGS="$ac_save_CFLAGS"
22289 LIBS="$ac_save_LIBS"
22290 fi
22291 fi
22292 GTK_CFLAGS=""
22293 GTK_LIBS=""
22294 :
22295 fi
e6cc62c6
VS
22296
22297
21d1c967
GD
22298 rm -f conf.gtktest
22299
21d1c967 22300
2b5f62a0 22301 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
22302
22303# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22304if test "${with_gtk_prefix+set}" = set; then
22305 withval="$with_gtk_prefix"
22306 gtk_config_prefix="$withval"
22307else
22308 gtk_config_prefix=""
e6cc62c6 22309fi;
f79bd02d 22310
21d1c967
GD
22311# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22312if test "${with_gtk_exec_prefix+set}" = set; then
22313 withval="$with_gtk_exec_prefix"
22314 gtk_config_exec_prefix="$withval"
22315else
22316 gtk_config_exec_prefix=""
e6cc62c6 22317fi;
21d1c967
GD
22318# Check whether --enable-gtktest or --disable-gtktest was given.
22319if test "${enable_gtktest+set}" = set; then
22320 enableval="$enable_gtktest"
e6cc62c6 22321
90dd450c 22322else
21d1c967 22323 enable_gtktest=yes
e6cc62c6 22324fi;
21d1c967
GD
22325
22326 for module in . $GTK_MODULES
22327 do
22328 case "$module" in
e6cc62c6 22329 gthread)
21d1c967
GD
22330 gtk_config_args="$gtk_config_args gthread"
22331 ;;
22332 esac
22333 done
22334
22335 if test x$gtk_config_exec_prefix != x ; then
22336 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22337 if test x${GTK_CONFIG+set} != xset ; then
22338 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22339 fi
22340 fi
22341 if test x$gtk_config_prefix != x ; then
22342 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22343 if test x${GTK_CONFIG+set} != xset ; then
22344 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22345 fi
22346 fi
22347
22348 # Extract the first word of "gtk-config", so it can be a program name with args.
22349set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22350echo "$as_me:$LINENO: checking for $ac_word" >&5
22351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22352if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22354else
e6cc62c6
VS
22355 case $GTK_CONFIG in
22356 [\\/]* | ?:[\\/]*)
21d1c967
GD
22357 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22358 ;;
21d1c967 22359 *)
e6cc62c6
VS
22360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361for as_dir in $PATH
22362do
22363 IFS=$as_save_IFS
22364 test -z "$as_dir" && as_dir=.
22365 for ac_exec_ext in '' $ac_executable_extensions; do
22366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22367 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22369 break 2
22370 fi
22371done
22372done
22373
21d1c967
GD
22374 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22375 ;;
22376esac
22377fi
e6cc62c6
VS
22378GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22379
21d1c967 22380if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22381 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22382echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22383else
e6cc62c6
VS
22384 echo "$as_me:$LINENO: result: no" >&5
22385echo "${ECHO_T}no" >&6
21d1c967
GD
22386fi
22387
22388 min_gtk_version=1.2.3
e6cc62c6
VS
22389 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22390echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22391 no_gtk=""
22392 if test "$GTK_CONFIG" = "no" ; then
22393 no_gtk=yes
22394 else
22395 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22396 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22397 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22399 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22401 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22403 if test "x$enable_gtktest" = "xyes" ; then
22404 ac_save_CFLAGS="$CFLAGS"
22405 ac_save_LIBS="$LIBS"
22406 CFLAGS="$CFLAGS $GTK_CFLAGS"
22407 LIBS="$GTK_LIBS $LIBS"
22408 rm -f conf.gtktest
22409 if test "$cross_compiling" = yes; then
22410 echo $ac_n "cross compiling; assumed OK... $ac_c"
22411else
e6cc62c6 22412 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22413/* confdefs.h. */
22414_ACEOF
22415cat confdefs.h >>conftest.$ac_ext
22416cat >>conftest.$ac_ext <<_ACEOF
22417/* end confdefs.h. */
21d1c967
GD
22418
22419#include <gtk/gtk.h>
22420#include <stdio.h>
22421#include <stdlib.h>
22422
e6cc62c6 22423int
21d1c967
GD
22424main ()
22425{
22426 int major, minor, micro;
22427 char *tmp_version;
22428
22429 system ("touch conf.gtktest");
22430
22431 /* HP/UX 9 (%@#!) writes to sscanf strings */
22432 tmp_version = g_strdup("$min_gtk_version");
22433 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22434 printf("%s, bad version string\n", "$min_gtk_version");
22435 exit(1);
22436 }
22437
22438 if ((gtk_major_version != $gtk_config_major_version) ||
22439 (gtk_minor_version != $gtk_config_minor_version) ||
22440 (gtk_micro_version != $gtk_config_micro_version))
22441 {
e6cc62c6 22442 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22443 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22444 gtk_major_version, gtk_minor_version, gtk_micro_version);
22445 printf ("*** was found! If gtk-config was correct, then it is best\n");
22446 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22447 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22448 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22449 printf("*** required on your system.\n");
22450 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22451 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22452 printf("*** before re-running configure\n");
e6cc62c6 22453 }
21d1c967
GD
22454#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22455 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22456 (gtk_minor_version != GTK_MINOR_VERSION) ||
22457 (gtk_micro_version != GTK_MICRO_VERSION))
22458 {
22459 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22460 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22461 printf("*** library (version %d.%d.%d)\n",
22462 gtk_major_version, gtk_minor_version, gtk_micro_version);
22463 }
22464#endif /* defined (GTK_MAJOR_VERSION) ... */
22465 else
22466 {
22467 if ((gtk_major_version > major) ||
22468 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22469 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22470 {
22471 return 0;
22472 }
22473 else
22474 {
22475 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22476 gtk_major_version, gtk_minor_version, gtk_micro_version);
22477 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22478 major, minor, micro);
22479 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22480 printf("***\n");
22481 printf("*** If you have already installed a sufficiently new version, this error\n");
22482 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22483 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22484 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22485 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22486 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22487 printf("*** so that the correct libraries are found at run-time))\n");
22488 }
22489 }
22490 return 1;
22491}
22492
e6cc62c6
VS
22493_ACEOF
22494rm -f conftest$ac_exeext
22495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
21d1c967
GD
22505 :
22506else
e6cc62c6
VS
22507 echo "$as_me: program exited with status $ac_status" >&5
22508echo "$as_me: failed program was:" >&5
22509sed 's/^/| /' conftest.$ac_ext >&5
22510
22511( exit $ac_status )
22512no_gtk=yes
21d1c967 22513fi
32ddf007 22514rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22515fi
21d1c967
GD
22516 CFLAGS="$ac_save_CFLAGS"
22517 LIBS="$ac_save_LIBS"
22518 fi
22519 fi
22520 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22521 echo "$as_me:$LINENO: result: yes" >&5
22522echo "${ECHO_T}yes" >&6
22523 wx_cv_lib_gtk=1.2.3
21d1c967 22524 else
e6cc62c6
VS
22525 echo "$as_me:$LINENO: result: no" >&5
22526echo "${ECHO_T}no" >&6
21d1c967
GD
22527 if test "$GTK_CONFIG" = "no" ; then
22528 echo "*** The gtk-config script installed by GTK could not be found"
22529 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22530 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22531 echo "*** full path to gtk-config."
22532 else
22533 if test -f conf.gtktest ; then
22534 :
22535 else
22536 echo "*** Could not run GTK test program, checking why..."
22537 CFLAGS="$CFLAGS $GTK_CFLAGS"
22538 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22539 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
21d1c967
GD
22545
22546#include <gtk/gtk.h>
22547#include <stdio.h>
f79bd02d 22548
e6cc62c6
VS
22549int
22550main ()
22551{
22552 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22553 ;
22554 return 0;
22555}
22556_ACEOF
22557rm -f conftest.$ac_objext conftest$ac_exeext
22558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22559 (eval $ac_link) 2>conftest.er1
e6cc62c6 22560 ac_status=$?
32ddf007
VS
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
e6cc62c6
VS
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
e1293dcf 22566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
21d1c967
GD
22578 echo "*** The test program compiled, but did not run. This usually means"
22579 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22580 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22581 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22582 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22583 echo "*** is required on your system"
22584 echo "***"
22585 echo "*** If you have an old version installed, it is best to remove it, although"
22586 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22587 echo "***"
22588 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22589 echo "*** came with the system with the command"
22590 echo "***"
e6cc62c6 22591 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22592else
e6cc62c6
VS
22593 echo "$as_me: failed program was:" >&5
22594sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22597 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22598 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22599 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22600fi
32ddf007
VS
22601rm -f conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22603 CFLAGS="$ac_save_CFLAGS"
22604 LIBS="$ac_save_LIBS"
22605 fi
22606 fi
22607 GTK_CFLAGS=""
22608 GTK_LIBS=""
22609 :
22610 fi
e6cc62c6
VS
22611
22612
21d1c967 22613 rm -f conf.gtktest
f79bd02d 22614
2b5f62a0 22615 fi
21d1c967
GD
22616 fi
22617
22618 if test -z "$wx_cv_lib_gtk"; then
22619 wx_cv_lib_gtk=none
22620 else
22621 wx_cv_cflags_gtk=$GTK_CFLAGS
22622 wx_cv_libs_gtk=$GTK_LIBS
22623 fi
e6cc62c6
VS
22624
22625
5c6fa7d2 22626fi
52127426 22627
8284b0c5 22628
21d1c967 22629 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22630 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22631echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22632 fi
22633
22634 case "$wx_cv_lib_gtk" in
22635 2.0) WXGTK20=1
2b5f62a0 22636 TOOLKIT_VERSION=2
21d1c967
GD
22637 ;;
22638 1.2.7) WXGTK127=1
22639 WXGTK12=1
22640 ;;
22641 1.2.3) WXGTK12=1
22642 ;;
e6cc62c6
VS
22643 *) { { echo "$as_me:$LINENO: error:
22644Please check that gtk-config is in path, the directory
22645where GTK+ libraries are installed (returned by
22646'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22647equivalent variable and GTK+ is version 1.2.3 or above.
22648 " >&5
22649echo "$as_me: error:
247f5006
VZ
22650Please check that gtk-config is in path, the directory
22651where GTK+ libraries are installed (returned by
22652'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22653equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22654 " >&2;}
22655 { (exit 1); exit 1; }; }
21d1c967
GD
22656 ;;
22657 esac
22658
b13cd66e
VZ
22659 if test "$WXGTK20" = 1; then
22660 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22661
f09359cf
VS
22662 succeeded=no
22663
22664 if test -z "$PKG_CONFIG"; then
22665 # Extract the first word of "pkg-config", so it can be a program name with args.
22666set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22667echo "$as_me:$LINENO: checking for $ac_word" >&5
22668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22669if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22671else
e6cc62c6
VS
22672 case $PKG_CONFIG in
22673 [\\/]* | ?:[\\/]*)
f09359cf
VS
22674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22675 ;;
f09359cf 22676 *)
e6cc62c6
VS
22677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22678for as_dir in $PATH
22679do
22680 IFS=$as_save_IFS
22681 test -z "$as_dir" && as_dir=.
22682 for ac_exec_ext in '' $ac_executable_extensions; do
22683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22686 break 2
22687 fi
22688done
22689done
22690
f09359cf
VS
22691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22692 ;;
22693esac
22694fi
e6cc62c6
VS
22695PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22696
f09359cf 22697if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22699echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22700else
e6cc62c6
VS
22701 echo "$as_me:$LINENO: result: no" >&5
22702echo "${ECHO_T}no" >&6
f09359cf
VS
22703fi
22704
22705 fi
22706
22707 if test "$PKG_CONFIG" = "no" ; then
22708 echo "*** The pkg-config script could not be found. Make sure it is"
22709 echo "*** in your path, or set the PKG_CONFIG environment variable"
22710 echo "*** to the full path to pkg-config."
22711 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22712 else
22713 PKG_CONFIG_MIN_VERSION=0.9.0
22714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22715 echo "$as_me:$LINENO: checking for pangoft2" >&5
22716echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22717
22718 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22719 echo "$as_me:$LINENO: result: yes" >&5
22720echo "${ECHO_T}yes" >&6
f09359cf
VS
22721 succeeded=yes
22722
e6cc62c6
VS
22723 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22724echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22725 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22726 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22727echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22728
e6cc62c6
VS
22729 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22730echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22731 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22732 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22733echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22734 else
22735 PANGOFT2_CFLAGS=""
22736 PANGOFT2_LIBS=""
e6cc62c6 22737 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22738 ## do set a variable so people can do so.
22739 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22740
f09359cf
VS
22741 fi
22742
e6cc62c6
VS
22743
22744
f09359cf
VS
22745 else
22746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22748 fi
22749 fi
22750
22751 if test $succeeded = yes; then
e6cc62c6 22752
b13cd66e 22753 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22755
f09359cf 22756 else
e6cc62c6
VS
22757
22758 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22759echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22760 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22761
22762
f09359cf
VS
22763 fi
22764
b13cd66e 22765 fi
2b5f62a0
VZ
22766 else
22767 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22768 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22769echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22770 wxUSE_UNICODE=no
22771 fi
22772 fi
22773
22774 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22775
22776for ac_func in poll
2b5f62a0 22777do
e6cc62c6
VS
22778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22779echo "$as_me:$LINENO: checking for $ac_func" >&5
22780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22781if eval "test \"\${$as_ac_var+set}\" = set"; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783else
22784 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22785/* confdefs.h. */
22786_ACEOF
22787cat confdefs.h >>conftest.$ac_ext
22788cat >>conftest.$ac_ext <<_ACEOF
22789/* end confdefs.h. */
32ddf007
VS
22790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22792#define $ac_func innocuous_$ac_func
22793
2b5f62a0 22794/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22795 which can conflict with char $ac_func (); below.
22796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22797 <limits.h> exists even on freestanding compilers. */
32ddf007 22798
e6cc62c6
VS
22799#ifdef __STDC__
22800# include <limits.h>
22801#else
22802# include <assert.h>
22803#endif
32ddf007
VS
22804
22805#undef $ac_func
22806
2b5f62a0 22807/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22808#ifdef __cplusplus
22809extern "C"
22810{
22811#endif
2b5f62a0 22812/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22813 builtin and then its argument prototype would still apply. */
22814char $ac_func ();
2b5f62a0
VZ
22815/* The GNU C library defines this for functions which it implements
22816 to always fail with ENOSYS. Some functions are actually named
22817 something starting with __ and the normal name is an alias. */
22818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22819choke me
22820#else
e6cc62c6
VS
22821char (*f) () = $ac_func;
22822#endif
22823#ifdef __cplusplus
22824}
2b5f62a0
VZ
22825#endif
22826
e6cc62c6
VS
22827int
22828main ()
22829{
22830return f != $ac_func;
22831 ;
22832 return 0;
22833}
22834_ACEOF
22835rm -f conftest.$ac_objext conftest$ac_exeext
22836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22837 (eval $ac_link) 2>conftest.er1
e6cc62c6 22838 ac_status=$?
32ddf007
VS
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
e6cc62c6
VS
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
e1293dcf 22844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } &&
22850 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
22856 eval "$as_ac_var=yes"
22857else
22858 echo "$as_me: failed program was:" >&5
22859sed 's/^/| /' conftest.$ac_ext >&5
22860
22861eval "$as_ac_var=no"
22862fi
32ddf007
VS
22863rm -f conftest.err conftest.$ac_objext \
22864 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22865fi
22866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22868if test `eval echo '${'$as_ac_var'}'` = yes; then
22869 cat >>confdefs.h <<_ACEOF
22870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22871_ACEOF
2b5f62a0 22872
2b5f62a0
VZ
22873fi
22874done
22875
f09359cf
VS
22876 fi
22877
21d1c967 22878 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22879 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22880
22881 AFMINSTALL=afminstall
22882 TOOLKIT=GTK
22883 GUIDIST=GTK_DIST
22884
e6cc62c6
VS
22885 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22886echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22887if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22889else
e6cc62c6 22890 ac_check_lib_save_LIBS=$LIBS
21d1c967 22891LIBS="-lgdk $LIBS"
e6cc62c6 22892cat >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
5c6fa7d2 22899/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22900#ifdef __cplusplus
22901extern "C"
22902#endif
5c6fa7d2 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 gdk_im_open ();
22906int
22907main ()
22908{
22909gdk_im_open ();
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914rm -f conftest.$ac_objext conftest$ac_exeext
22915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22916 (eval $ac_link) 2>conftest.er1
e6cc62c6 22917 ac_status=$?
32ddf007
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); } &&
e1293dcf 22923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 ac_cv_lib_gdk_gdk_im_open=yes
22936else
22937 echo "$as_me: failed program was:" >&5
22938sed 's/^/| /' conftest.$ac_ext >&5
22939
22940ac_cv_lib_gdk_gdk_im_open=no
22941fi
32ddf007
VS
22942rm -f conftest.err conftest.$ac_objext \
22943 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22944LIBS=$ac_check_lib_save_LIBS
22945fi
22946echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22947echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22948if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22949 cat >>confdefs.h <<\_ACEOF
21d1c967 22950#define HAVE_XIM 1
e6cc62c6 22951_ACEOF
21d1c967 22952
90dd450c 22953fi
1e6feb95 22954
0f87e84c
RR
22955
22956
22957 if test "$wxUSE_GPE" = "yes"; then
22958 echo "$as_me:$LINENO: checking for gpewidget library" >&5
22959echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
22960
22961ac_find_libraries=
22962for ac_dir in $SEARCH_LIB /usr/lib;
22963 do
22964 for ac_extension in a so sl dylib; do
22965 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
22966 ac_find_libraries=$ac_dir
22967 break 2
22968 fi
22969 done
22970 done
22971
22972 if test "$ac_find_libraries" != "" ; then
22973
22974 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22975 result=$?
22976 if test $result = 0; then
22977 ac_path_to_link=""
22978 else
22979 ac_path_to_link=" -L$ac_find_libraries"
22980 fi
22981
22982 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
22983 WXGPE=1
22984 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22985echo "${ECHO_T}found at $ac_find_libraries" >&6
22986 else
22987 echo "$as_me:$LINENO: result: not found" >&5
22988echo "${ECHO_T}not found" >&6
22989 fi
22990
22991 fi
21d1c967 22992 fi
1e6feb95 22993
21d1c967 22994 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22995 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22996echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22997 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22998 echo "$as_me:$LINENO: result: not found" >&5
22999echo "${ECHO_T}not found" >&6
23000 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23001echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23002 { (exit 1); exit 1; }; }
21d1c967 23003 else
e6cc62c6
VS
23004 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23005echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
23006 fi
23007
e6cc62c6
VS
23008 echo "$as_me:$LINENO: checking for libmgl location" >&5
23009echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 23010 case "${host}" in
21d1c967 23011 *-*-linux* )
e46d2a18
VS
23012 if test "x$wxUSE_SHARED" = xyes ; then
23013 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 23014 else
e46d2a18 23015 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 23016 fi
21d1c967
GD
23017 ;;
23018 *-pc-msdosdjgpp )
63a76696 23019 mgl_os_candidates="dos32/dj2"
21d1c967
GD
23020 ;;
23021 *)
e6cc62c6
VS
23022 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23023echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23024 { (exit 1); exit 1; }; }
21d1c967 23025 esac
1e6feb95 23026
21d1c967 23027 mgl_lib_type=""
63a76696
VS
23028 mgl_os=""
23029
23030 for mgl_os_i in $mgl_os_candidates ; do
23031 if test "x$mgl_os" = x ; then
23032 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23033 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23034 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23035 mgl_lib_type=debug
23036 mgl_os=$mgl_os_i
23037 fi
23038 fi
23039 if test "x$mgl_lib_type" = x ; then
23040 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23041 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23042 mgl_lib_type=release
23043 mgl_os=$mgl_os_i
23044 fi
23045 fi
21d1c967 23046 fi
63a76696 23047 done
2224580a 23048
63a76696 23049 if test "x$mgl_os" = x ; then
e6cc62c6
VS
23050 echo "$as_me:$LINENO: result: not found" >&5
23051echo "${ECHO_T}not found" >&6
23052 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23053echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23054 { (exit 1); exit 1; }; }
63a76696 23055 fi
e6cc62c6
VS
23056 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23057echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 23058
1d1b75ac
VZ
23059 wxUSE_UNIVERSAL="yes"
23060
21d1c967
GD
23061 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23062 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23063
90dd450c 23064 AFMINSTALL=afminstall
21d1c967
GD
23065 TOOLKIT=MGL
23066 GUIDIST=MGL_DIST
23067 fi
dad6c0ea 23068
21d1c967 23069 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
23070 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23071echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 23072 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
23073 echo "$as_me:$LINENO: result: not found" >&5
23074echo "${ECHO_T}not found" >&6
23075 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23076echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23077 { (exit 1); exit 1; }; }
21d1c967 23078 else
e6cc62c6
VS
23079 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23080echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 23081 fi
f6bcfd97 23082
21d1c967 23083 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
23084 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23085echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 23086 else
e6cc62c6
VS
23087 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23088echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23089 { (exit 1); exit 1; }; }
90dd450c 23090 fi
0b2effe9 23091
21d1c967
GD
23092 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23093 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23094
1d1b75ac
VZ
23095 wxUSE_UNIVERSAL="yes"
23096
21d1c967
GD
23097 AFMINSTALL=afminstall
23098 TOOLKIT=MICROWIN
23099 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
23100
23101 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 23102 fi
f6bcfd97 23103
21d1c967 23104 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
23105 echo "$as_me:$LINENO: checking for X" >&5
23106echo $ECHO_N "checking for X... $ECHO_C" >&6
23107
d8356fa3 23108
21d1c967
GD
23109# Check whether --with-x or --without-x was given.
23110if test "${with_x+set}" = set; then
23111 withval="$with_x"
2224580a 23112
e6cc62c6 23113fi;
21d1c967
GD
23114# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23115if test "x$with_x" = xno; then
23116 # The user explicitly disabled X.
23117 have_x=disabled
23118else
23119 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23120 # Both variables are already set.
23121 have_x=yes
23122 else
e6cc62c6
VS
23123 if test "${ac_cv_have_x+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
23125else
23126 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
23127ac_x_includes=no ac_x_libraries=no
23128rm -fr conftest.dir
23129if mkdir conftest.dir; then
23130 cd conftest.dir
21d1c967 23131 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 23132 cat >Imakefile <<'_ACEOF'
21d1c967
GD
23133acfindx:
23134 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 23135_ACEOF
21d1c967
GD
23136 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23138 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23140 for ac_extension in a so sl; do
23141 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
32ddf007
VS
23142 test -f $ac_im_libdir/libX11.$ac_extension; then
23143 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
23144 fi
23145 done
23146 # Screen out bogus values from the imake configuration. They are
23147 # bogus both because they are the default anyway, and because
23148 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 23149 case $ac_im_incroot in
21d1c967 23150 /usr/include) ;;
e6cc62c6 23151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 23152 esac
e6cc62c6 23153 case $ac_im_usrlibdir in
21d1c967 23154 /usr/lib | /lib) ;;
e6cc62c6 23155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
23156 esac
23157 fi
23158 cd ..
e6cc62c6 23159 rm -fr conftest.dir
21d1c967 23160fi
10f2d63a 23161
e6cc62c6
VS
23162# Standard set of common directories for X headers.
23163# Check X11 before X11Rn because it is often a symlink to the current release.
23164ac_x_header_dirs='
23165/usr/X11/include
23166/usr/X11R6/include
23167/usr/X11R5/include
23168/usr/X11R4/include
23169
23170/usr/include/X11
23171/usr/include/X11R6
23172/usr/include/X11R5
23173/usr/include/X11R4
23174
23175/usr/local/X11/include
23176/usr/local/X11R6/include
23177/usr/local/X11R5/include
23178/usr/local/X11R4/include
23179
23180/usr/local/include/X11
23181/usr/local/include/X11R6
23182/usr/local/include/X11R5
23183/usr/local/include/X11R4
23184
23185/usr/X386/include
23186/usr/x386/include
23187/usr/XFree86/include/X11
23188
23189/usr/include
23190/usr/local/include
23191/usr/unsupported/include
23192/usr/athena/include
23193/usr/local/x11r5/include
23194/usr/lpp/Xamples/include
23195
23196/usr/openwin/include
23197/usr/openwin/share/include'
23198
23199if test "$ac_x_includes" = no; then
23200 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 23201 # First, try using that file with no special directory specified.
e6cc62c6 23202 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208#include <X11/Intrinsic.h>
23209_ACEOF
23210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null; then
23218 if test -s conftest.err; then
23219 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 23220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
23221 else
23222 ac_cpp_err=
23223 fi
23224else
23225 ac_cpp_err=yes
23226fi
23227if test -z "$ac_cpp_err"; then
21d1c967
GD
23228 # We can compile using X headers with no special include directory.
23229ac_x_includes=
90dd450c 23230else
e6cc62c6
VS
23231 echo "$as_me: failed program was:" >&5
23232sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 for ac_dir in $ac_x_header_dirs; do
23235 if test -r "$ac_dir/X11/Intrinsic.h"; then
23236 ac_x_includes=$ac_dir
23237 break
23238 fi
23239done
3a922bb4 23240fi
e6cc62c6
VS
23241rm -f conftest.err conftest.$ac_ext
23242fi # $ac_x_includes = no
10f2d63a 23243
e6cc62c6 23244if test "$ac_x_libraries" = no; then
21d1c967 23245 # Check for the libraries.
21d1c967
GD
23246 # See if we find them without any special options.
23247 # Don't add to $LIBS permanently.
e6cc62c6
VS
23248 ac_save_LIBS=$LIBS
23249 LIBS="-lXt $LIBS"
23250 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256#include <X11/Intrinsic.h>
23257int
23258main ()
23259{
23260XtMalloc (0)
23261 ;
23262 return 0;
23263}
23264_ACEOF
23265rm -f conftest.$ac_objext conftest$ac_exeext
23266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23267 (eval $ac_link) 2>conftest.er1
e6cc62c6 23268 ac_status=$?
32ddf007
VS
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
e6cc62c6
VS
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
e1293dcf 23274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 LIBS=$ac_save_LIBS
21d1c967
GD
23287# We can link X programs with no special library path.
23288ac_x_libraries=
3a922bb4 23289else
e6cc62c6
VS
23290 echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293LIBS=$ac_save_LIBS
23294for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 23295do
e6cc62c6 23296 # Don't even attempt the hair of trying to link an X program!
21d1c967 23297 for ac_extension in a so sl; do
e6cc62c6 23298 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
23299 ac_x_libraries=$ac_dir
23300 break 2
23301 fi
23302 done
23303done
3a922bb4 23304fi
32ddf007
VS
23305rm -f conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23307fi # $ac_x_libraries = no
90dd450c 23308
e6cc62c6 23309if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
23310 # Didn't find X anywhere. Cache the known absence of X.
23311 ac_cv_have_x="have_x=no"
23312else
23313 # Record where we found X for the cache.
23314 ac_cv_have_x="have_x=yes \
32ddf007 23315 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 23316fi
21d1c967 23317fi
e6cc62c6 23318
21d1c967
GD
23319 fi
23320 eval "$ac_cv_have_x"
23321fi # $with_x != no
90dd450c 23322
21d1c967 23323if test "$have_x" != yes; then
e6cc62c6
VS
23324 echo "$as_me:$LINENO: result: $have_x" >&5
23325echo "${ECHO_T}$have_x" >&6
21d1c967
GD
23326 no_x=yes
23327else
23328 # If each of the values was on the command line, it overrides each guess.
23329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23331 # Update the cache value to reflect the command line values.
23332 ac_cv_have_x="have_x=yes \
23333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
23334 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23335echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 23336fi
90dd450c 23337
21d1c967 23338if test "$no_x" = yes; then
90dd450c 23339 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23340
23341cat >>confdefs.h <<\_ACEOF
90dd450c 23342#define X_DISPLAY_MISSING 1
e6cc62c6 23343_ACEOF
90dd450c
VZ
23344
23345 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23346else
23347 if test -n "$x_includes"; then
23348 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 23349 fi
3a922bb4 23350
90dd450c
VZ
23351 # It would also be nice to do this for all -L options, not just this one.
23352 if test -n "$x_libraries"; then
23353 X_LIBS="$X_LIBS -L$x_libraries"
23354 # For Solaris; some versions of Sun CC require a space after -R and
23355 # others require no space. Words are not sufficient . . . .
e6cc62c6 23356 case `(uname -sr) 2>/dev/null` in
90dd450c 23357 "SunOS 5"*)
e6cc62c6
VS
23358 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23359echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23361 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
23367
23368int
23369main ()
23370{
90dd450c 23371
e6cc62c6
VS
23372 ;
23373 return 0;
23374}
23375_ACEOF
23376rm -f conftest.$ac_objext conftest$ac_exeext
23377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23378 (eval $ac_link) 2>conftest.er1
e6cc62c6 23379 ac_status=$?
32ddf007
VS
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
e6cc62c6
VS
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
e1293dcf 23385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; } &&
23391 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
90dd450c 23397 ac_R_nospace=yes
3a922bb4 23398else
e6cc62c6
VS
23399 echo "$as_me: failed program was:" >&5
23400sed 's/^/| /' conftest.$ac_ext >&5
23401
23402ac_R_nospace=no
3a922bb4 23403fi
32ddf007
VS
23404rm -f conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
90dd450c 23406 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23407 echo "$as_me:$LINENO: result: no" >&5
23408echo "${ECHO_T}no" >&6
90dd450c
VZ
23409 X_LIBS="$X_LIBS -R$x_libraries"
23410 else
23411 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23412 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23413/* confdefs.h. */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h. */
23418
23419int
23420main ()
23421{
6f754473 23422
e6cc62c6
VS
23423 ;
23424 return 0;
23425}
23426_ACEOF
23427rm -f conftest.$ac_objext conftest$ac_exeext
23428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23429 (eval $ac_link) 2>conftest.er1
e6cc62c6 23430 ac_status=$?
32ddf007
VS
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
e6cc62c6
VS
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } &&
e1293dcf 23436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; } &&
23442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
90dd450c
VZ
23448 ac_R_space=yes
23449else
e6cc62c6
VS
23450 echo "$as_me: failed program was:" >&5
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
23453ac_R_space=no
90dd450c 23454fi
32ddf007
VS
23455rm -f conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
90dd450c 23457 if test $ac_R_space = yes; then
e6cc62c6
VS
23458 echo "$as_me:$LINENO: result: yes" >&5
23459echo "${ECHO_T}yes" >&6
90dd450c
VZ
23460 X_LIBS="$X_LIBS -R $x_libraries"
23461 else
e6cc62c6
VS
23462 echo "$as_me:$LINENO: result: neither works" >&5
23463echo "${ECHO_T}neither works" >&6
90dd450c
VZ
23464 fi
23465 fi
e6cc62c6 23466 LIBS=$ac_xsave_LIBS
90dd450c
VZ
23467 esac
23468 fi
23469
23470 # Check for system-dependent libraries X programs must link with.
23471 # Do this before checking for the system-independent R6 libraries
23472 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 23473
90dd450c
VZ
23474 if test "$ISC" = yes; then
23475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23476 else
e6cc62c6
VS
23477 # Martyn Johnson says this is needed for Ultrix, if the X
23478 # libraries were built with DECnet support. And Karl Berry says
90dd450c 23479 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23481 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23482/* confdefs.h. */
23483_ACEOF
23484cat confdefs.h >>conftest.$ac_ext
23485cat >>conftest.$ac_ext <<_ACEOF
23486/* end confdefs.h. */
23487
247f5006 23488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23489#ifdef __cplusplus
23490extern "C"
23491#endif
247f5006 23492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23493 builtin and then its argument prototype would still apply. */
23494char XOpenDisplay ();
23495int
23496main ()
23497{
23498XOpenDisplay ();
23499 ;
23500 return 0;
23501}
23502_ACEOF
23503rm -f conftest.$ac_objext conftest$ac_exeext
23504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23505 (eval $ac_link) 2>conftest.er1
e6cc62c6 23506 ac_status=$?
32ddf007
VS
23507 grep -v '^ *+' conftest.er1 >conftest.err
23508 rm -f conftest.er1
23509 cat conftest.err >&5
e6cc62c6
VS
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } &&
e1293dcf 23512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 :
23525else
23526 echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23528
e6cc62c6
VS
23529echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23530echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23531if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23533else
e6cc62c6
VS
23534 ac_check_lib_save_LIBS=$LIBS
23535LIBS="-ldnet $LIBS"
23536cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23537/* confdefs.h. */
23538_ACEOF
23539cat confdefs.h >>conftest.$ac_ext
23540cat >>conftest.$ac_ext <<_ACEOF
23541/* end confdefs.h. */
a0b9e27f 23542
e6cc62c6
VS
23543/* Override any gcc2 internal prototype to avoid an error. */
23544#ifdef __cplusplus
23545extern "C"
23546#endif
23547/* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23549char dnet_ntoa ();
23550int
23551main ()
23552{
23553dnet_ntoa ();
23554 ;
23555 return 0;
23556}
23557_ACEOF
23558rm -f conftest.$ac_objext conftest$ac_exeext
23559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23560 (eval $ac_link) 2>conftest.er1
e6cc62c6 23561 ac_status=$?
32ddf007
VS
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
e6cc62c6
VS
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
e1293dcf 23567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_cv_lib_dnet_dnet_ntoa=yes
23580else
23581 echo "$as_me: failed program was:" >&5
23582sed 's/^/| /' conftest.$ac_ext >&5
23583
23584ac_cv_lib_dnet_dnet_ntoa=no
23585fi
32ddf007
VS
23586rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23588LIBS=$ac_check_lib_save_LIBS
23589fi
23590echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23591echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23592if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23594fi
23595
90dd450c 23596 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23597 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23598echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23599if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23601else
e6cc62c6 23602 ac_check_lib_save_LIBS=$LIBS
90dd450c 23603LIBS="-ldnet_stub $LIBS"
e6cc62c6 23604cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23605/* confdefs.h. */
23606_ACEOF
23607cat confdefs.h >>conftest.$ac_ext
23608cat >>conftest.$ac_ext <<_ACEOF
23609/* end confdefs.h. */
23610
90dd450c 23611/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23612#ifdef __cplusplus
23613extern "C"
23614#endif
90dd450c 23615/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23616 builtin and then its argument prototype would still apply. */
23617char dnet_ntoa ();
23618int
23619main ()
23620{
23621dnet_ntoa ();
23622 ;
23623 return 0;
23624}
23625_ACEOF
23626rm -f conftest.$ac_objext conftest$ac_exeext
23627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23628 (eval $ac_link) 2>conftest.er1
e6cc62c6 23629 ac_status=$?
32ddf007
VS
23630 grep -v '^ *+' conftest.er1 >conftest.err
23631 rm -f conftest.er1
23632 cat conftest.err >&5
e6cc62c6
VS
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } &&
e1293dcf 23635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; } &&
23641 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
23647 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23648else
23649 echo "$as_me: failed program was:" >&5
23650sed 's/^/| /' conftest.$ac_ext >&5
23651
23652ac_cv_lib_dnet_stub_dnet_ntoa=no
23653fi
32ddf007
VS
23654rm -f conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23656LIBS=$ac_check_lib_save_LIBS
23657fi
23658echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23659echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23660if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23661 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23662fi
23663
90dd450c 23664 fi
e6cc62c6 23665fi
32ddf007
VS
23666rm -f conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23668 LIBS="$ac_xsave_LIBS"
978f1259 23669
90dd450c
VZ
23670 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23671 # to get the SysV transport functions.
e6cc62c6 23672 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23673 # needs -lnsl.
23674 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23675 # on Irix 5.2, according to T.E. Dickey.
23676 # The functions gethostbyname, getservbyname, and inet_addr are
23677 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23678 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23679echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23680if test "${ac_cv_func_gethostbyname+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682else
23683 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23684/* confdefs.h. */
23685_ACEOF
23686cat confdefs.h >>conftest.$ac_ext
23687cat >>conftest.$ac_ext <<_ACEOF
23688/* end confdefs.h. */
32ddf007
VS
23689/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23691#define gethostbyname innocuous_gethostbyname
23692
90dd450c 23693/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23694 which can conflict with char gethostbyname (); below.
23695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696 <limits.h> exists even on freestanding compilers. */
32ddf007 23697
e6cc62c6
VS
23698#ifdef __STDC__
23699# include <limits.h>
23700#else
23701# include <assert.h>
23702#endif
32ddf007
VS
23703
23704#undef gethostbyname
23705
90dd450c 23706/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23707#ifdef __cplusplus
23708extern "C"
23709{
23710#endif
90dd450c 23711/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23712 builtin and then its argument prototype would still apply. */
23713char gethostbyname ();
90dd450c
VZ
23714/* The GNU C library defines this for functions which it implements
23715 to always fail with ENOSYS. Some functions are actually named
23716 something starting with __ and the normal name is an alias. */
23717#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23718choke me
23719#else
e6cc62c6
VS
23720char (*f) () = gethostbyname;
23721#endif
23722#ifdef __cplusplus
23723}
90dd450c 23724#endif
978f1259 23725
e6cc62c6
VS
23726int
23727main ()
23728{
23729return f != gethostbyname;
23730 ;
23731 return 0;
23732}
23733_ACEOF
23734rm -f conftest.$ac_objext conftest$ac_exeext
23735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23736 (eval $ac_link) 2>conftest.er1
e6cc62c6 23737 ac_status=$?
32ddf007
VS
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
e6cc62c6
VS
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
e1293dcf 23743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_func_gethostbyname=yes
23756else
23757 echo "$as_me: failed program was:" >&5
23758sed 's/^/| /' conftest.$ac_ext >&5
23759
23760ac_cv_func_gethostbyname=no
23761fi
32ddf007
VS
23762rm -f conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23764fi
23765echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23766echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23767
90dd450c 23768 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23769 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23770echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23771if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23773else
e6cc62c6 23774 ac_check_lib_save_LIBS=$LIBS
90dd450c 23775LIBS="-lnsl $LIBS"
e6cc62c6 23776cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23777/* confdefs.h. */
23778_ACEOF
23779cat confdefs.h >>conftest.$ac_ext
23780cat >>conftest.$ac_ext <<_ACEOF
23781/* end confdefs.h. */
23782
90dd450c 23783/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23784#ifdef __cplusplus
23785extern "C"
23786#endif
90dd450c 23787/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23788 builtin and then its argument prototype would still apply. */
23789char gethostbyname ();
23790int
23791main ()
23792{
23793gethostbyname ();
23794 ;
23795 return 0;
23796}
23797_ACEOF
23798rm -f conftest.$ac_objext conftest$ac_exeext
23799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23800 (eval $ac_link) 2>conftest.er1
e6cc62c6 23801 ac_status=$?
32ddf007
VS
23802 grep -v '^ *+' conftest.er1 >conftest.err
23803 rm -f conftest.er1
23804 cat conftest.err >&5
e6cc62c6
VS
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } &&
e1293dcf 23807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; } &&
23813 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; }; then
23819 ac_cv_lib_nsl_gethostbyname=yes
23820else
23821 echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824ac_cv_lib_nsl_gethostbyname=no
23825fi
32ddf007
VS
23826rm -f conftest.err conftest.$ac_objext \
23827 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23828LIBS=$ac_check_lib_save_LIBS
23829fi
23830echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23831echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23832if test $ac_cv_lib_nsl_gethostbyname = yes; then
23833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23834fi
247f5006 23835
e6cc62c6 23836 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 23837 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23838echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23839if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23841else
e6cc62c6
VS
23842 ac_check_lib_save_LIBS=$LIBS
23843LIBS="-lbsd $LIBS"
23844cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23845/* confdefs.h. */
23846_ACEOF
23847cat confdefs.h >>conftest.$ac_ext
23848cat >>conftest.$ac_ext <<_ACEOF
23849/* end confdefs.h. */
23850
23851/* Override any gcc2 internal prototype to avoid an error. */
23852#ifdef __cplusplus
23853extern "C"
23854#endif
23855/* We use char because int might match the return type of a gcc2
23856 builtin and then its argument prototype would still apply. */
23857char gethostbyname ();
23858int
23859main ()
23860{
23861gethostbyname ();
23862 ;
23863 return 0;
23864}
23865_ACEOF
23866rm -f conftest.$ac_objext conftest$ac_exeext
23867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23868 (eval $ac_link) 2>conftest.er1
e6cc62c6 23869 ac_status=$?
32ddf007
VS
23870 grep -v '^ *+' conftest.er1 >conftest.err
23871 rm -f conftest.er1
23872 cat conftest.err >&5
e6cc62c6
VS
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } &&
e1293dcf 23875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; } &&
23881 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; }; then
23887 ac_cv_lib_bsd_gethostbyname=yes
23888else
23889 echo "$as_me: failed program was:" >&5
23890sed 's/^/| /' conftest.$ac_ext >&5
23891
23892ac_cv_lib_bsd_gethostbyname=no
23893fi
32ddf007
VS
23894rm -f conftest.err conftest.$ac_objext \
23895 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23896LIBS=$ac_check_lib_save_LIBS
23897fi
23898echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23899echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23900if test $ac_cv_lib_bsd_gethostbyname = yes; then
23901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23902fi
b12915c1 23903
e6cc62c6 23904 fi
90dd450c
VZ
23905 fi
23906
23907 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23908 # socket/setsockopt and other routines are undefined under SCO ODT
23909 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23910 # on later versions), says Simon Leinen: it contains gethostby*
23911 # variants that don't use the name server (or something). -lsocket
23912 # must be given before -lnsl if both are needed. We assume that
23913 # if connect needs -lnsl, so does gethostbyname.
23914 echo "$as_me:$LINENO: checking for connect" >&5
23915echo $ECHO_N "checking for connect... $ECHO_C" >&6
23916if test "${ac_cv_func_connect+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918else
23919 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23920/* confdefs.h. */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h. */
32ddf007
VS
23925/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23927#define connect innocuous_connect
23928
90dd450c 23929/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23930 which can conflict with char connect (); below.
23931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23932 <limits.h> exists even on freestanding compilers. */
32ddf007 23933
e6cc62c6
VS
23934#ifdef __STDC__
23935# include <limits.h>
23936#else
23937# include <assert.h>
23938#endif
32ddf007
VS
23939
23940#undef connect
23941
90dd450c 23942/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23943#ifdef __cplusplus
23944extern "C"
23945{
23946#endif
90dd450c 23947/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23948 builtin and then its argument prototype would still apply. */
23949char connect ();
90dd450c
VZ
23950/* The GNU C library defines this for functions which it implements
23951 to always fail with ENOSYS. Some functions are actually named
23952 something starting with __ and the normal name is an alias. */
23953#if defined (__stub_connect) || defined (__stub___connect)
23954choke me
23955#else
e6cc62c6
VS
23956char (*f) () = connect;
23957#endif
23958#ifdef __cplusplus
23959}
90dd450c
VZ
23960#endif
23961
e6cc62c6
VS
23962int
23963main ()
23964{
23965return f != connect;
23966 ;
23967 return 0;
23968}
23969_ACEOF
23970rm -f conftest.$ac_objext conftest$ac_exeext
23971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23972 (eval $ac_link) 2>conftest.er1
e6cc62c6 23973 ac_status=$?
32ddf007
VS
23974 grep -v '^ *+' conftest.er1 >conftest.err
23975 rm -f conftest.er1
23976 cat conftest.err >&5
e6cc62c6
VS
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
e1293dcf 23979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; } &&
23985 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23988 ac_status=$?
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; }; then
23991 ac_cv_func_connect=yes
23992else
23993 echo "$as_me: failed program was:" >&5
23994sed 's/^/| /' conftest.$ac_ext >&5
23995
23996ac_cv_func_connect=no
23997fi
32ddf007
VS
23998rm -f conftest.err conftest.$ac_objext \
23999 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24000fi
24001echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24002echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 24003
90dd450c 24004 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24005 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24006echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24007if test "${ac_cv_lib_socket_connect+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24009else
e6cc62c6 24010 ac_check_lib_save_LIBS=$LIBS
90dd450c 24011LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24012cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24013/* confdefs.h. */
24014_ACEOF
24015cat confdefs.h >>conftest.$ac_ext
24016cat >>conftest.$ac_ext <<_ACEOF
24017/* end confdefs.h. */
24018
90dd450c 24019/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24020#ifdef __cplusplus
24021extern "C"
24022#endif
90dd450c 24023/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24024 builtin and then its argument prototype would still apply. */
24025char connect ();
24026int
24027main ()
24028{
24029connect ();
24030 ;
24031 return 0;
24032}
24033_ACEOF
24034rm -f conftest.$ac_objext conftest$ac_exeext
24035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24036 (eval $ac_link) 2>conftest.er1
e6cc62c6 24037 ac_status=$?
32ddf007
VS
24038 grep -v '^ *+' conftest.er1 >conftest.err
24039 rm -f conftest.er1
24040 cat conftest.err >&5
e6cc62c6
VS
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } &&
e1293dcf 24043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_lib_socket_connect=yes
24056else
24057 echo "$as_me: failed program was:" >&5
24058sed 's/^/| /' conftest.$ac_ext >&5
24059
24060ac_cv_lib_socket_connect=no
24061fi
32ddf007
VS
24062rm -f conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24064LIBS=$ac_check_lib_save_LIBS
24065fi
24066echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24067echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24068if test $ac_cv_lib_socket_connect = yes; then
90dd450c 24069 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 24070fi
77e13408 24071
90dd450c 24072 fi
25d0687a 24073
e6cc62c6
VS
24074 # Guillermo Gomez says -lposix is necessary on A/UX.
24075 echo "$as_me:$LINENO: checking for remove" >&5
24076echo $ECHO_N "checking for remove... $ECHO_C" >&6
24077if test "${ac_cv_func_remove+set}" = set; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24079else
24080 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24081/* confdefs.h. */
24082_ACEOF
24083cat confdefs.h >>conftest.$ac_ext
24084cat >>conftest.$ac_ext <<_ACEOF
24085/* end confdefs.h. */
32ddf007
VS
24086/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24088#define remove innocuous_remove
24089
90dd450c 24090/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24091 which can conflict with char remove (); below.
24092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093 <limits.h> exists even on freestanding compilers. */
32ddf007 24094
e6cc62c6
VS
24095#ifdef __STDC__
24096# include <limits.h>
24097#else
24098# include <assert.h>
24099#endif
32ddf007
VS
24100
24101#undef remove
24102
90dd450c 24103/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24104#ifdef __cplusplus
24105extern "C"
24106{
24107#endif
90dd450c 24108/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24109 builtin and then its argument prototype would still apply. */
24110char remove ();
90dd450c
VZ
24111/* The GNU C library defines this for functions which it implements
24112 to always fail with ENOSYS. Some functions are actually named
24113 something starting with __ and the normal name is an alias. */
24114#if defined (__stub_remove) || defined (__stub___remove)
24115choke me
24116#else
e6cc62c6
VS
24117char (*f) () = remove;
24118#endif
24119#ifdef __cplusplus
24120}
90dd450c 24121#endif
55e80573 24122
e6cc62c6
VS
24123int
24124main ()
24125{
24126return f != remove;
24127 ;
24128 return 0;
24129}
24130_ACEOF
24131rm -f conftest.$ac_objext conftest$ac_exeext
24132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24133 (eval $ac_link) 2>conftest.er1
e6cc62c6 24134 ac_status=$?
32ddf007
VS
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
e6cc62c6
VS
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } &&
e1293dcf 24140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24142 (eval $ac_try) 2>&5
24143 ac_status=$?
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); }; } &&
24146 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 ac_cv_func_remove=yes
24153else
24154 echo "$as_me: failed program was:" >&5
24155sed 's/^/| /' conftest.$ac_ext >&5
24156
24157ac_cv_func_remove=no
24158fi
32ddf007
VS
24159rm -f conftest.err conftest.$ac_objext \
24160 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24161fi
24162echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24163echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 24164
90dd450c 24165 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24166 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24167echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24168if test "${ac_cv_lib_posix_remove+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24170else
e6cc62c6 24171 ac_check_lib_save_LIBS=$LIBS
90dd450c 24172LIBS="-lposix $LIBS"
e6cc62c6 24173cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179
90dd450c 24180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24181#ifdef __cplusplus
24182extern "C"
24183#endif
90dd450c 24184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24185 builtin and then its argument prototype would still apply. */
24186char remove ();
24187int
24188main ()
24189{
24190remove ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195rm -f conftest.$ac_objext conftest$ac_exeext
24196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24197 (eval $ac_link) 2>conftest.er1
e6cc62c6 24198 ac_status=$?
32ddf007
VS
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
e6cc62c6
VS
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } &&
e1293dcf 24204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 ac_cv_lib_posix_remove=yes
24217else
24218 echo "$as_me: failed program was:" >&5
24219sed 's/^/| /' conftest.$ac_ext >&5
24220
24221ac_cv_lib_posix_remove=no
24222fi
32ddf007
VS
24223rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24225LIBS=$ac_check_lib_save_LIBS
24226fi
24227echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24228echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24229if test $ac_cv_lib_posix_remove = yes; then
90dd450c 24230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 24231fi
f6bcfd97 24232
6fa882bd
RR
24233 fi
24234
90dd450c 24235 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24236 echo "$as_me:$LINENO: checking for shmat" >&5
24237echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24238if test "${ac_cv_func_shmat+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
24240else
24241 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24242/* confdefs.h. */
24243_ACEOF
24244cat confdefs.h >>conftest.$ac_ext
24245cat >>conftest.$ac_ext <<_ACEOF
24246/* end confdefs.h. */
32ddf007
VS
24247/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24249#define shmat innocuous_shmat
24250
90dd450c 24251/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24252 which can conflict with char shmat (); below.
24253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24254 <limits.h> exists even on freestanding compilers. */
32ddf007 24255
e6cc62c6
VS
24256#ifdef __STDC__
24257# include <limits.h>
24258#else
24259# include <assert.h>
24260#endif
32ddf007
VS
24261
24262#undef shmat
24263
90dd450c 24264/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24265#ifdef __cplusplus
24266extern "C"
24267{
24268#endif
90dd450c 24269/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24270 builtin and then its argument prototype would still apply. */
24271char shmat ();
90dd450c
VZ
24272/* The GNU C library defines this for functions which it implements
24273 to always fail with ENOSYS. Some functions are actually named
24274 something starting with __ and the normal name is an alias. */
24275#if defined (__stub_shmat) || defined (__stub___shmat)
24276choke me
24277#else
e6cc62c6
VS
24278char (*f) () = shmat;
24279#endif
24280#ifdef __cplusplus
24281}
90dd450c 24282#endif
10f2d63a 24283
e6cc62c6
VS
24284int
24285main ()
24286{
24287return f != shmat;
24288 ;
24289 return 0;
24290}
24291_ACEOF
24292rm -f conftest.$ac_objext conftest$ac_exeext
24293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24294 (eval $ac_link) 2>conftest.er1
e6cc62c6 24295 ac_status=$?
32ddf007
VS
24296 grep -v '^ *+' conftest.er1 >conftest.err
24297 rm -f conftest.er1
24298 cat conftest.err >&5
e6cc62c6
VS
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } &&
e1293dcf 24301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); }; } &&
24307 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; }; then
24313 ac_cv_func_shmat=yes
24314else
24315 echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318ac_cv_func_shmat=no
24319fi
32ddf007
VS
24320rm -f conftest.err conftest.$ac_objext \
24321 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24322fi
24323echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24324echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 24325
90dd450c 24326 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24327 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24328echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24329if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 24331else
e6cc62c6 24332 ac_check_lib_save_LIBS=$LIBS
90dd450c 24333LIBS="-lipc $LIBS"
e6cc62c6 24334cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24335/* confdefs.h. */
24336_ACEOF
24337cat confdefs.h >>conftest.$ac_ext
24338cat >>conftest.$ac_ext <<_ACEOF
24339/* end confdefs.h. */
24340
8284b0c5 24341/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24342#ifdef __cplusplus
24343extern "C"
24344#endif
90dd450c 24345/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24346 builtin and then its argument prototype would still apply. */
24347char shmat ();
24348int
24349main ()
24350{
24351shmat ();
24352 ;
24353 return 0;
24354}
24355_ACEOF
24356rm -f conftest.$ac_objext conftest$ac_exeext
24357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24358 (eval $ac_link) 2>conftest.er1
e6cc62c6 24359 ac_status=$?
32ddf007
VS
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
e6cc62c6
VS
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
e1293dcf 24365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; } &&
24371 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; }; then
24377 ac_cv_lib_ipc_shmat=yes
24378else
24379 echo "$as_me: failed program was:" >&5
24380sed 's/^/| /' conftest.$ac_ext >&5
24381
24382ac_cv_lib_ipc_shmat=no
24383fi
32ddf007
VS
24384rm -f conftest.err conftest.$ac_objext \
24385 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24386LIBS=$ac_check_lib_save_LIBS
24387fi
24388echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24389echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24390if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 24391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
24392fi
24393
d558c907 24394 fi
90dd450c 24395 fi
3a922bb4 24396
90dd450c 24397 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24398 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
24399 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24400 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24401 # check for ICE first), but we must link in the order -lSM -lICE or
24402 # we get undefined symbols. So assume we have SM if we have ICE.
24403 # These have to be linked with before -lX11, unlike the other
24404 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24405 # John Interrante, Karl Berry
24406 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24407echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24408if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410else
24411 ac_check_lib_save_LIBS=$LIBS
f09359cf 24412LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24413cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24414/* confdefs.h. */
24415_ACEOF
24416cat confdefs.h >>conftest.$ac_ext
24417cat >>conftest.$ac_ext <<_ACEOF
24418/* end confdefs.h. */
24419
90dd450c 24420/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24421#ifdef __cplusplus
24422extern "C"
24423#endif
90dd450c 24424/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24425 builtin and then its argument prototype would still apply. */
24426char IceConnectionNumber ();
24427int
24428main ()
24429{
24430IceConnectionNumber ();
24431 ;
24432 return 0;
24433}
24434_ACEOF
24435rm -f conftest.$ac_objext conftest$ac_exeext
24436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24437 (eval $ac_link) 2>conftest.er1
e6cc62c6 24438 ac_status=$?
32ddf007
VS
24439 grep -v '^ *+' conftest.er1 >conftest.err
24440 rm -f conftest.er1
24441 cat conftest.err >&5
e6cc62c6
VS
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } &&
e1293dcf 24444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; } &&
24450 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; }; then
24456 ac_cv_lib_ICE_IceConnectionNumber=yes
24457else
24458 echo "$as_me: failed program was:" >&5
24459sed 's/^/| /' conftest.$ac_ext >&5
24460
24461ac_cv_lib_ICE_IceConnectionNumber=no
24462fi
32ddf007
VS
24463rm -f conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24465LIBS=$ac_check_lib_save_LIBS
24466fi
24467echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24468echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24469if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 24470 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 24471fi
10f2d63a 24472
e6cc62c6 24473 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
24474
24475fi
24476
8284b0c5 24477
90dd450c 24478 if test "$no_x" = "yes"; then
e6cc62c6
VS
24479 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24480echo "$as_me: error: X11 not found" >&2;}
24481 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
24482 fi
24483
24484 GUI_TK_LIBRARY="$X_LIBS"
24485 TOOLKIT_INCLUDE="$X_CFLAGS"
24486 AFMINSTALL=afminstall
24487 COMPILED_X_PROGRAM=0
24488
21d1c967 24489 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
24490 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24491echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 24492 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
24493 echo "$as_me:$LINENO: result: not found" >&5
24494echo "${ECHO_T}not found" >&6
24495 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24496echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24497 { (exit 1); exit 1; }; }
90dd450c 24498 else
e6cc62c6
VS
24499 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24500echo "${ECHO_T}$MICROWIN" >&6
24501 cat >>confdefs.h <<\_ACEOF
21d1c967 24502#define wxUSE_NANOX 1
e6cc62c6 24503_ACEOF
21d1c967 24504
90dd450c
VZ
24505 fi
24506 fi
24507
2b5f62a0 24508 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 24509
2b5f62a0 24510 succeeded=no
90dd450c 24511
2b5f62a0
VZ
24512 if test -z "$PKG_CONFIG"; then
24513 # Extract the first word of "pkg-config", so it can be a program name with args.
24514set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24515echo "$as_me:$LINENO: checking for $ac_word" >&5
24516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24517if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24519else
e6cc62c6
VS
24520 case $PKG_CONFIG in
24521 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24523 ;;
2b5f62a0 24524 *)
e6cc62c6
VS
24525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24526for as_dir in $PATH
24527do
24528 IFS=$as_save_IFS
24529 test -z "$as_dir" && as_dir=.
24530 for ac_exec_ext in '' $ac_executable_extensions; do
24531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24534 break 2
24535 fi
24536done
24537done
24538
2b5f62a0
VZ
24539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24540 ;;
24541esac
24542fi
e6cc62c6
VS
24543PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24544
2b5f62a0 24545if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24546 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24547echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24548else
e6cc62c6
VS
24549 echo "$as_me:$LINENO: result: no" >&5
24550echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24551fi
24552
24553 fi
24554
24555 if test "$PKG_CONFIG" = "no" ; then
24556 echo "*** The pkg-config script could not be found. Make sure it is"
24557 echo "*** in your path, or set the PKG_CONFIG environment variable"
24558 echo "*** to the full path to pkg-config."
24559 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24560 else
24561 PKG_CONFIG_MIN_VERSION=0.9.0
24562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24563 echo "$as_me:$LINENO: checking for pangox" >&5
24564echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
24565
24566 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
24567 echo "$as_me:$LINENO: result: yes" >&5
24568echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24569 succeeded=yes
24570
e6cc62c6
VS
24571 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24572echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 24573 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
24574 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24575echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24576
e6cc62c6
VS
24577 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24578echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24579 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24580 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24581echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24582 else
24583 PANGOX_CFLAGS=""
24584 PANGOX_LIBS=""
e6cc62c6 24585 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24586 ## do set a variable so people can do so.
24587 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24588
2b5f62a0
VZ
24589 fi
24590
e6cc62c6
VS
24591
24592
2b5f62a0
VZ
24593 else
24594 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24595 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24596 fi
24597 fi
24598
24599 if test $succeeded = yes; then
e6cc62c6 24600
2b5f62a0 24601 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24602 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24603
2b5f62a0 24604 else
e6cc62c6
VS
24605
24606 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24607echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24608 { (exit 1); exit 1; }; }
24609
24610
2b5f62a0
VZ
24611 fi
24612
e6cc62c6 24613
2b5f62a0
VZ
24614 succeeded=no
24615
24616 if test -z "$PKG_CONFIG"; then
24617 # Extract the first word of "pkg-config", so it can be a program name with args.
24618set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24619echo "$as_me:$LINENO: checking for $ac_word" >&5
24620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24621if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24623else
e6cc62c6
VS
24624 case $PKG_CONFIG in
24625 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24627 ;;
2b5f62a0 24628 *)
e6cc62c6
VS
24629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24630for as_dir in $PATH
24631do
24632 IFS=$as_save_IFS
24633 test -z "$as_dir" && as_dir=.
24634 for ac_exec_ext in '' $ac_executable_extensions; do
24635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24638 break 2
24639 fi
24640done
24641done
24642
2b5f62a0
VZ
24643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24644 ;;
24645esac
24646fi
e6cc62c6
VS
24647PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24648
2b5f62a0 24649if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24650 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24651echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24652else
e6cc62c6
VS
24653 echo "$as_me:$LINENO: result: no" >&5
24654echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24655fi
24656
24657 fi
24658
24659 if test "$PKG_CONFIG" = "no" ; then
24660 echo "*** The pkg-config script could not be found. Make sure it is"
24661 echo "*** in your path, or set the PKG_CONFIG environment variable"
24662 echo "*** to the full path to pkg-config."
24663 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24664 else
24665 PKG_CONFIG_MIN_VERSION=0.9.0
24666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24667 echo "$as_me:$LINENO: checking for pangoft2" >&5
24668echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24669
24670 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24671 echo "$as_me:$LINENO: result: yes" >&5
24672echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24673 succeeded=yes
24674
e6cc62c6
VS
24675 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24676echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24677 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24678 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24679echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24680
e6cc62c6
VS
24681 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24682echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24683 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24684 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24685echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24686 else
24687 PANGOFT2_CFLAGS=""
24688 PANGOFT2_LIBS=""
e6cc62c6 24689 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24690 ## do set a variable so people can do so.
24691 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24692
2b5f62a0
VZ
24693 fi
24694
e6cc62c6
VS
24695
24696
2b5f62a0
VZ
24697 else
24698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24700 fi
24701 fi
24702
24703 if test $succeeded = yes; then
e6cc62c6 24704
2b5f62a0 24705 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24707
2b5f62a0 24708 else
e6cc62c6
VS
24709
24710 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24711echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24712 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24713
24714
2b5f62a0
VZ
24715 fi
24716
e6cc62c6 24717
2b5f62a0
VZ
24718 succeeded=no
24719
24720 if test -z "$PKG_CONFIG"; then
24721 # Extract the first word of "pkg-config", so it can be a program name with args.
24722set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24723echo "$as_me:$LINENO: checking for $ac_word" >&5
24724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24725if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24727else
e6cc62c6
VS
24728 case $PKG_CONFIG in
24729 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24731 ;;
2b5f62a0 24732 *)
e6cc62c6
VS
24733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24734for as_dir in $PATH
24735do
24736 IFS=$as_save_IFS
24737 test -z "$as_dir" && as_dir=.
24738 for ac_exec_ext in '' $ac_executable_extensions; do
24739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24742 break 2
24743 fi
24744done
24745done
24746
2b5f62a0
VZ
24747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24748 ;;
24749esac
24750fi
e6cc62c6
VS
24751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24752
2b5f62a0 24753if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24754 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24755echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24756else
e6cc62c6
VS
24757 echo "$as_me:$LINENO: result: no" >&5
24758echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24759fi
24760
24761 fi
24762
24763 if test "$PKG_CONFIG" = "no" ; then
24764 echo "*** The pkg-config script could not be found. Make sure it is"
24765 echo "*** in your path, or set the PKG_CONFIG environment variable"
24766 echo "*** to the full path to pkg-config."
24767 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24768 else
24769 PKG_CONFIG_MIN_VERSION=0.9.0
24770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24771 echo "$as_me:$LINENO: checking for pangoxft" >&5
24772echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24773
24774 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24775 echo "$as_me:$LINENO: result: yes" >&5
24776echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24777 succeeded=yes
24778
e6cc62c6
VS
24779 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24780echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24781 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24782 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24783echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24784
e6cc62c6
VS
24785 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24786echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24787 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24788 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24789echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24790 else
24791 PANGOXFT_CFLAGS=""
24792 PANGOXFT_LIBS=""
e6cc62c6 24793 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24794 ## do set a variable so people can do so.
24795 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24796
2b5f62a0
VZ
24797 fi
24798
e6cc62c6
VS
24799
24800
2b5f62a0
VZ
24801 else
24802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24804 fi
24805 fi
24806
24807 if test $succeeded = yes; then
e6cc62c6 24808
2b5f62a0 24809 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24810 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24811
2b5f62a0 24812 else
e6cc62c6
VS
24813
24814 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24815echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24816
24817
2b5f62a0
VZ
24818 fi
24819
24820 fi
24821
24822 wxUSE_UNIVERSAL="yes"
24823
24824 if test "$wxUSE_NANOX" = "yes"; then
24825 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24826 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
24827 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24828 else
93a543aa 24829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24830 fi
24831
24832 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24833 TOOLKIT=X11
24834 GUIDIST=X11_DIST
24835 fi
24836
21d1c967
GD
24837 if test "$wxUSE_MOTIF" = 1; then
24838 if test "$no_x" = yes; then
24839 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24840
24841cat >>confdefs.h <<\_ACEOF
21d1c967 24842#define X_DISPLAY_MISSING 1
e6cc62c6 24843_ACEOF
21d1c967
GD
24844
24845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24846else
24847 if test -n "$x_includes"; then
24848 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24849 fi
24850
21d1c967
GD
24851 # It would also be nice to do this for all -L options, not just this one.
24852 if test -n "$x_libraries"; then
24853 X_LIBS="$X_LIBS -L$x_libraries"
24854 # For Solaris; some versions of Sun CC require a space after -R and
24855 # others require no space. Words are not sufficient . . . .
e6cc62c6 24856 case `(uname -sr) 2>/dev/null` in
21d1c967 24857 "SunOS 5"*)
e6cc62c6
VS
24858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24859echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24861 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867
24868int
24869main ()
24870{
21d1c967 24871
e6cc62c6
VS
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext conftest$ac_exeext
24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24878 (eval $ac_link) 2>conftest.er1
e6cc62c6 24879 ac_status=$?
32ddf007
VS
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
e6cc62c6
VS
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
e1293dcf 24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
21d1c967 24897 ac_R_nospace=yes
698dcdb6 24898else
e6cc62c6
VS
24899 echo "$as_me: failed program was:" >&5
24900sed 's/^/| /' conftest.$ac_ext >&5
24901
24902ac_R_nospace=no
10f2d63a 24903fi
32ddf007
VS
24904rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
21d1c967 24906 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24907 echo "$as_me:$LINENO: result: no" >&5
24908echo "${ECHO_T}no" >&6
21d1c967
GD
24909 X_LIBS="$X_LIBS -R$x_libraries"
24910 else
24911 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24912 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24913/* confdefs.h. */
24914_ACEOF
24915cat confdefs.h >>conftest.$ac_ext
24916cat >>conftest.$ac_ext <<_ACEOF
24917/* end confdefs.h. */
24918
24919int
24920main ()
24921{
f0c87536 24922
e6cc62c6
VS
24923 ;
24924 return 0;
24925}
24926_ACEOF
24927rm -f conftest.$ac_objext conftest$ac_exeext
24928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24929 (eval $ac_link) 2>conftest.er1
e6cc62c6 24930 ac_status=$?
32ddf007
VS
24931 grep -v '^ *+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
e6cc62c6
VS
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } &&
e1293dcf 24936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; } &&
24942 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
21d1c967
GD
24948 ac_R_space=yes
24949else
e6cc62c6
VS
24950 echo "$as_me: failed program was:" >&5
24951sed 's/^/| /' conftest.$ac_ext >&5
24952
24953ac_R_space=no
21d1c967 24954fi
32ddf007
VS
24955rm -f conftest.err conftest.$ac_objext \
24956 conftest$ac_exeext conftest.$ac_ext
21d1c967 24957 if test $ac_R_space = yes; then
e6cc62c6
VS
24958 echo "$as_me:$LINENO: result: yes" >&5
24959echo "${ECHO_T}yes" >&6
21d1c967
GD
24960 X_LIBS="$X_LIBS -R $x_libraries"
24961 else
e6cc62c6
VS
24962 echo "$as_me:$LINENO: result: neither works" >&5
24963echo "${ECHO_T}neither works" >&6
21d1c967
GD
24964 fi
24965 fi
e6cc62c6 24966 LIBS=$ac_xsave_LIBS
21d1c967
GD
24967 esac
24968 fi
90dd450c 24969
21d1c967
GD
24970 # Check for system-dependent libraries X programs must link with.
24971 # Do this before checking for the system-independent R6 libraries
24972 # (-lICE), since we may need -lsocket or whatever for X linking.
24973
24974 if test "$ISC" = yes; then
24975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24976 else
e6cc62c6
VS
24977 # Martyn Johnson says this is needed for Ultrix, if the X
24978 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24979 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24980 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24981 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24982/* confdefs.h. */
24983_ACEOF
24984cat confdefs.h >>conftest.$ac_ext
24985cat >>conftest.$ac_ext <<_ACEOF
24986/* end confdefs.h. */
24987
247f5006 24988/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24989#ifdef __cplusplus
24990extern "C"
24991#endif
247f5006 24992/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24993 builtin and then its argument prototype would still apply. */
24994char XOpenDisplay ();
24995int
24996main ()
24997{
24998XOpenDisplay ();
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003rm -f conftest.$ac_objext conftest$ac_exeext
25004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25005 (eval $ac_link) 2>conftest.er1
e6cc62c6 25006 ac_status=$?
32ddf007
VS
25007 grep -v '^ *+' conftest.er1 >conftest.err
25008 rm -f conftest.er1
25009 cat conftest.err >&5
e6cc62c6
VS
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } &&
e1293dcf 25012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 :
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25028
e6cc62c6
VS
25029echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25030echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25031if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25033else
e6cc62c6
VS
25034 ac_check_lib_save_LIBS=$LIBS
25035LIBS="-ldnet $LIBS"
25036cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25037/* confdefs.h. */
25038_ACEOF
25039cat confdefs.h >>conftest.$ac_ext
25040cat >>conftest.$ac_ext <<_ACEOF
25041/* end confdefs.h. */
a0b9e27f 25042
e6cc62c6
VS
25043/* Override any gcc2 internal prototype to avoid an error. */
25044#ifdef __cplusplus
25045extern "C"
25046#endif
25047/* We use char because int might match the return type of a gcc2
25048 builtin and then its argument prototype would still apply. */
25049char dnet_ntoa ();
25050int
25051main ()
25052{
25053dnet_ntoa ();
25054 ;
25055 return 0;
25056}
25057_ACEOF
25058rm -f conftest.$ac_objext conftest$ac_exeext
25059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25060 (eval $ac_link) 2>conftest.er1
e6cc62c6 25061 ac_status=$?
32ddf007
VS
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
e6cc62c6
VS
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
e1293dcf 25067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_lib_dnet_dnet_ntoa=yes
25080else
25081 echo "$as_me: failed program was:" >&5
25082sed 's/^/| /' conftest.$ac_ext >&5
25083
25084ac_cv_lib_dnet_dnet_ntoa=no
25085fi
32ddf007
VS
25086rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25088LIBS=$ac_check_lib_save_LIBS
25089fi
25090echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25091echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25092if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 25093 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 25094fi
0fb0dd83 25095
21d1c967 25096 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
25097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25098echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25099if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25101else
e6cc62c6 25102 ac_check_lib_save_LIBS=$LIBS
21d1c967 25103LIBS="-ldnet_stub $LIBS"
e6cc62c6 25104cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25105/* confdefs.h. */
25106_ACEOF
25107cat confdefs.h >>conftest.$ac_ext
25108cat >>conftest.$ac_ext <<_ACEOF
25109/* end confdefs.h. */
25110
21d1c967 25111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25112#ifdef __cplusplus
25113extern "C"
25114#endif
21d1c967 25115/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25116 builtin and then its argument prototype would still apply. */
25117char dnet_ntoa ();
25118int
25119main ()
25120{
25121dnet_ntoa ();
25122 ;
25123 return 0;
25124}
25125_ACEOF
25126rm -f conftest.$ac_objext conftest$ac_exeext
25127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25128 (eval $ac_link) 2>conftest.er1
e6cc62c6 25129 ac_status=$?
32ddf007
VS
25130 grep -v '^ *+' conftest.er1 >conftest.err
25131 rm -f conftest.er1
25132 cat conftest.err >&5
e6cc62c6
VS
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } &&
e1293dcf 25135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25137 (eval $ac_try) 2>&5
25138 ac_status=$?
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); }; } &&
25141 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; }; then
25147 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25148else
25149 echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152ac_cv_lib_dnet_stub_dnet_ntoa=no
25153fi
32ddf007
VS
25154rm -f conftest.err conftest.$ac_objext \
25155 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25156LIBS=$ac_check_lib_save_LIBS
25157fi
25158echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25159echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25160if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 25161 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
25162fi
25163
21d1c967 25164 fi
e6cc62c6 25165fi
32ddf007
VS
25166rm -f conftest.err conftest.$ac_objext \
25167 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 25168 LIBS="$ac_xsave_LIBS"
90dd450c 25169
21d1c967
GD
25170 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25171 # to get the SysV transport functions.
e6cc62c6 25172 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
25173 # needs -lnsl.
25174 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
25175 # on Irix 5.2, according to T.E. Dickey.
25176 # The functions gethostbyname, getservbyname, and inet_addr are
25177 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25178 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25179echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25180if test "${ac_cv_func_gethostbyname+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25182else
25183 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25184/* confdefs.h. */
25185_ACEOF
25186cat confdefs.h >>conftest.$ac_ext
25187cat >>conftest.$ac_ext <<_ACEOF
25188/* end confdefs.h. */
32ddf007
VS
25189/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25191#define gethostbyname innocuous_gethostbyname
25192
21d1c967 25193/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25194 which can conflict with char gethostbyname (); below.
25195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25196 <limits.h> exists even on freestanding compilers. */
32ddf007 25197
e6cc62c6
VS
25198#ifdef __STDC__
25199# include <limits.h>
25200#else
25201# include <assert.h>
25202#endif
32ddf007
VS
25203
25204#undef gethostbyname
25205
21d1c967 25206/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25207#ifdef __cplusplus
25208extern "C"
25209{
25210#endif
21d1c967 25211/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25212 builtin and then its argument prototype would still apply. */
25213char gethostbyname ();
21d1c967
GD
25214/* The GNU C library defines this for functions which it implements
25215 to always fail with ENOSYS. Some functions are actually named
25216 something starting with __ and the normal name is an alias. */
25217#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25218choke me
25219#else
e6cc62c6
VS
25220char (*f) () = gethostbyname;
25221#endif
25222#ifdef __cplusplus
25223}
21d1c967 25224#endif
90dd450c 25225
e6cc62c6
VS
25226int
25227main ()
25228{
25229return f != gethostbyname;
25230 ;
25231 return 0;
25232}
25233_ACEOF
25234rm -f conftest.$ac_objext conftest$ac_exeext
25235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25236 (eval $ac_link) 2>conftest.er1
e6cc62c6 25237 ac_status=$?
32ddf007
VS
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
e6cc62c6
VS
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
e1293dcf 25243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; } &&
25249 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; }; then
25255 ac_cv_func_gethostbyname=yes
25256else
25257 echo "$as_me: failed program was:" >&5
25258sed 's/^/| /' conftest.$ac_ext >&5
25259
25260ac_cv_func_gethostbyname=no
25261fi
32ddf007
VS
25262rm -f conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25264fi
25265echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25266echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 25267
21d1c967 25268 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
25269 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25270echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25271if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25273else
e6cc62c6 25274 ac_check_lib_save_LIBS=$LIBS
21d1c967 25275LIBS="-lnsl $LIBS"
e6cc62c6 25276cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25277/* confdefs.h. */
25278_ACEOF
25279cat confdefs.h >>conftest.$ac_ext
25280cat >>conftest.$ac_ext <<_ACEOF
25281/* end confdefs.h. */
25282
21d1c967 25283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25284#ifdef __cplusplus
25285extern "C"
25286#endif
21d1c967 25287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25288 builtin and then its argument prototype would still apply. */
25289char gethostbyname ();
25290int
25291main ()
25292{
25293gethostbyname ();
25294 ;
25295 return 0;
25296}
25297_ACEOF
25298rm -f conftest.$ac_objext conftest$ac_exeext
25299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25300 (eval $ac_link) 2>conftest.er1
e6cc62c6 25301 ac_status=$?
32ddf007
VS
25302 grep -v '^ *+' conftest.er1 >conftest.err
25303 rm -f conftest.er1
25304 cat conftest.err >&5
e6cc62c6
VS
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } &&
e1293dcf 25307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25310 ac_status=$?
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; } &&
25313 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; }; then
25319 ac_cv_lib_nsl_gethostbyname=yes
25320else
25321 echo "$as_me: failed program was:" >&5
25322sed 's/^/| /' conftest.$ac_ext >&5
25323
25324ac_cv_lib_nsl_gethostbyname=no
25325fi
32ddf007
VS
25326rm -f conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25328LIBS=$ac_check_lib_save_LIBS
25329fi
25330echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25331echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25332if test $ac_cv_lib_nsl_gethostbyname = yes; then
25333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 25334fi
247f5006 25335
e6cc62c6 25336 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 25337 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
25338echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25339if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25341else
e6cc62c6
VS
25342 ac_check_lib_save_LIBS=$LIBS
25343LIBS="-lbsd $LIBS"
25344cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
25350
25351/* Override any gcc2 internal prototype to avoid an error. */
25352#ifdef __cplusplus
25353extern "C"
25354#endif
25355/* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25357char gethostbyname ();
25358int
25359main ()
25360{
25361gethostbyname ();
25362 ;
25363 return 0;
25364}
25365_ACEOF
25366rm -f conftest.$ac_objext conftest$ac_exeext
25367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25368 (eval $ac_link) 2>conftest.er1
e6cc62c6 25369 ac_status=$?
32ddf007
VS
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
e6cc62c6
VS
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
e1293dcf 25375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; } &&
25381 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 ac_cv_lib_bsd_gethostbyname=yes
25388else
25389 echo "$as_me: failed program was:" >&5
25390sed 's/^/| /' conftest.$ac_ext >&5
25391
25392ac_cv_lib_bsd_gethostbyname=no
25393fi
32ddf007
VS
25394rm -f conftest.err conftest.$ac_objext \
25395 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25396LIBS=$ac_check_lib_save_LIBS
25397fi
25398echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25399echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25400if test $ac_cv_lib_bsd_gethostbyname = yes; then
25401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 25402fi
90dd450c 25403
e6cc62c6 25404 fi
90dd450c
VZ
25405 fi
25406
21d1c967
GD
25407 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25408 # socket/setsockopt and other routines are undefined under SCO ODT
25409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
25410 # on later versions), says Simon Leinen: it contains gethostby*
25411 # variants that don't use the name server (or something). -lsocket
25412 # must be given before -lnsl if both are needed. We assume that
25413 # if connect needs -lnsl, so does gethostbyname.
25414 echo "$as_me:$LINENO: checking for connect" >&5
25415echo $ECHO_N "checking for connect... $ECHO_C" >&6
25416if test "${ac_cv_func_connect+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25418else
25419 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
32ddf007
VS
25425/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25427#define connect innocuous_connect
25428
21d1c967 25429/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25430 which can conflict with char connect (); below.
25431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25432 <limits.h> exists even on freestanding compilers. */
32ddf007 25433
e6cc62c6
VS
25434#ifdef __STDC__
25435# include <limits.h>
25436#else
25437# include <assert.h>
25438#endif
32ddf007
VS
25439
25440#undef connect
25441
21d1c967 25442/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25443#ifdef __cplusplus
25444extern "C"
25445{
25446#endif
21d1c967 25447/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25448 builtin and then its argument prototype would still apply. */
25449char connect ();
21d1c967
GD
25450/* The GNU C library defines this for functions which it implements
25451 to always fail with ENOSYS. Some functions are actually named
25452 something starting with __ and the normal name is an alias. */
25453#if defined (__stub_connect) || defined (__stub___connect)
25454choke me
25455#else
e6cc62c6
VS
25456char (*f) () = connect;
25457#endif
25458#ifdef __cplusplus
25459}
21d1c967 25460#endif
90dd450c 25461
e6cc62c6
VS
25462int
25463main ()
25464{
25465return f != connect;
25466 ;
25467 return 0;
25468}
25469_ACEOF
25470rm -f conftest.$ac_objext conftest$ac_exeext
25471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25472 (eval $ac_link) 2>conftest.er1
e6cc62c6 25473 ac_status=$?
32ddf007
VS
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
e6cc62c6
VS
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } &&
e1293dcf 25479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_func_connect=yes
25492else
25493 echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496ac_cv_func_connect=no
25497fi
32ddf007
VS
25498rm -f conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25500fi
25501echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25502echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 25503
21d1c967 25504 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
25505 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25506echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25507if test "${ac_cv_lib_socket_connect+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 25509else
e6cc62c6 25510 ac_check_lib_save_LIBS=$LIBS
21d1c967 25511LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 25512cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25513/* confdefs.h. */
25514_ACEOF
25515cat confdefs.h >>conftest.$ac_ext
25516cat >>conftest.$ac_ext <<_ACEOF
25517/* end confdefs.h. */
25518
21d1c967 25519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25520#ifdef __cplusplus
25521extern "C"
25522#endif
21d1c967 25523/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25524 builtin and then its argument prototype would still apply. */
25525char connect ();
25526int
25527main ()
25528{
25529connect ();
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534rm -f conftest.$ac_objext conftest$ac_exeext
25535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25536 (eval $ac_link) 2>conftest.er1
e6cc62c6 25537 ac_status=$?
32ddf007
VS
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
e6cc62c6
VS
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
e1293dcf 25543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; } &&
25549 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; }; then
25555 ac_cv_lib_socket_connect=yes
25556else
25557 echo "$as_me: failed program was:" >&5
25558sed 's/^/| /' conftest.$ac_ext >&5
25559
25560ac_cv_lib_socket_connect=no
25561fi
32ddf007
VS
25562rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25564LIBS=$ac_check_lib_save_LIBS
25565fi
25566echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25567echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25568if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25569 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25570fi
90dd450c 25571
21d1c967 25572 fi
90dd450c 25573
e6cc62c6
VS
25574 # Guillermo Gomez says -lposix is necessary on A/UX.
25575 echo "$as_me:$LINENO: checking for remove" >&5
25576echo $ECHO_N "checking for remove... $ECHO_C" >&6
25577if test "${ac_cv_func_remove+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25579else
25580 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25581/* confdefs.h. */
25582_ACEOF
25583cat confdefs.h >>conftest.$ac_ext
25584cat >>conftest.$ac_ext <<_ACEOF
25585/* end confdefs.h. */
32ddf007
VS
25586/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25588#define remove innocuous_remove
25589
21d1c967 25590/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25591 which can conflict with char remove (); below.
25592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593 <limits.h> exists even on freestanding compilers. */
32ddf007 25594
e6cc62c6
VS
25595#ifdef __STDC__
25596# include <limits.h>
25597#else
25598# include <assert.h>
25599#endif
32ddf007
VS
25600
25601#undef remove
25602
21d1c967 25603/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25604#ifdef __cplusplus
25605extern "C"
25606{
25607#endif
21d1c967 25608/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25609 builtin and then its argument prototype would still apply. */
25610char remove ();
21d1c967
GD
25611/* The GNU C library defines this for functions which it implements
25612 to always fail with ENOSYS. Some functions are actually named
25613 something starting with __ and the normal name is an alias. */
25614#if defined (__stub_remove) || defined (__stub___remove)
25615choke me
25616#else
e6cc62c6
VS
25617char (*f) () = remove;
25618#endif
25619#ifdef __cplusplus
25620}
21d1c967 25621#endif
90dd450c 25622
e6cc62c6
VS
25623int
25624main ()
25625{
25626return f != remove;
25627 ;
25628 return 0;
25629}
25630_ACEOF
25631rm -f conftest.$ac_objext conftest$ac_exeext
25632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25633 (eval $ac_link) 2>conftest.er1
e6cc62c6 25634 ac_status=$?
32ddf007
VS
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
e6cc62c6
VS
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } &&
e1293dcf 25640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; } &&
25646 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648 (eval $ac_try) 2>&5
25649 ac_status=$?
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); }; }; then
25652 ac_cv_func_remove=yes
25653else
25654 echo "$as_me: failed program was:" >&5
25655sed 's/^/| /' conftest.$ac_ext >&5
25656
25657ac_cv_func_remove=no
25658fi
32ddf007
VS
25659rm -f conftest.err conftest.$ac_objext \
25660 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25661fi
25662echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25663echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25664
21d1c967 25665 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25666 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25667echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25668if test "${ac_cv_lib_posix_remove+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25670else
e6cc62c6 25671 ac_check_lib_save_LIBS=$LIBS
21d1c967 25672LIBS="-lposix $LIBS"
e6cc62c6 25673cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25674/* confdefs.h. */
25675_ACEOF
25676cat confdefs.h >>conftest.$ac_ext
25677cat >>conftest.$ac_ext <<_ACEOF
25678/* end confdefs.h. */
25679
21d1c967 25680/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25681#ifdef __cplusplus
25682extern "C"
25683#endif
21d1c967 25684/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25685 builtin and then its argument prototype would still apply. */
25686char remove ();
25687int
25688main ()
25689{
25690remove ();
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695rm -f conftest.$ac_objext conftest$ac_exeext
25696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25697 (eval $ac_link) 2>conftest.er1
e6cc62c6 25698 ac_status=$?
32ddf007
VS
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
e6cc62c6
VS
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } &&
e1293dcf 25704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_lib_posix_remove=yes
25717else
25718 echo "$as_me: failed program was:" >&5
25719sed 's/^/| /' conftest.$ac_ext >&5
25720
25721ac_cv_lib_posix_remove=no
25722fi
32ddf007
VS
25723rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25725LIBS=$ac_check_lib_save_LIBS
25726fi
25727echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25728echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25729if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25731fi
19bc6aad 25732
90dd450c 25733 fi
19bc6aad 25734
21d1c967 25735 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25736 echo "$as_me:$LINENO: checking for shmat" >&5
25737echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25738if test "${ac_cv_func_shmat+set}" = set; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25740else
25741 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25742/* confdefs.h. */
25743_ACEOF
25744cat confdefs.h >>conftest.$ac_ext
25745cat >>conftest.$ac_ext <<_ACEOF
25746/* end confdefs.h. */
32ddf007
VS
25747/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25749#define shmat innocuous_shmat
25750
21d1c967 25751/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25752 which can conflict with char shmat (); below.
25753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25754 <limits.h> exists even on freestanding compilers. */
32ddf007 25755
e6cc62c6
VS
25756#ifdef __STDC__
25757# include <limits.h>
25758#else
25759# include <assert.h>
25760#endif
32ddf007
VS
25761
25762#undef shmat
25763
21d1c967 25764/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25765#ifdef __cplusplus
25766extern "C"
25767{
25768#endif
21d1c967 25769/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25770 builtin and then its argument prototype would still apply. */
25771char shmat ();
21d1c967
GD
25772/* The GNU C library defines this for functions which it implements
25773 to always fail with ENOSYS. Some functions are actually named
25774 something starting with __ and the normal name is an alias. */
25775#if defined (__stub_shmat) || defined (__stub___shmat)
25776choke me
25777#else
e6cc62c6
VS
25778char (*f) () = shmat;
25779#endif
25780#ifdef __cplusplus
25781}
21d1c967 25782#endif
90dd450c 25783
e6cc62c6
VS
25784int
25785main ()
25786{
25787return f != shmat;
25788 ;
25789 return 0;
25790}
25791_ACEOF
25792rm -f conftest.$ac_objext conftest$ac_exeext
25793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25794 (eval $ac_link) 2>conftest.er1
e6cc62c6 25795 ac_status=$?
32ddf007
VS
25796 grep -v '^ *+' conftest.er1 >conftest.err
25797 rm -f conftest.er1
25798 cat conftest.err >&5
e6cc62c6
VS
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } &&
e1293dcf 25801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; } &&
25807 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
25813 ac_cv_func_shmat=yes
25814else
25815 echo "$as_me: failed program was:" >&5
25816sed 's/^/| /' conftest.$ac_ext >&5
25817
25818ac_cv_func_shmat=no
25819fi
32ddf007
VS
25820rm -f conftest.err conftest.$ac_objext \
25821 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25822fi
25823echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25824echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25825
21d1c967 25826 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25827 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25828echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25829if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25830 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25831else
e6cc62c6 25832 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25833LIBS="-lipc $LIBS"
e6cc62c6 25834cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25835/* confdefs.h. */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h. */
25840
5c6fa7d2 25841/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25842#ifdef __cplusplus
25843extern "C"
25844#endif
5c6fa7d2 25845/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25846 builtin and then its argument prototype would still apply. */
25847char shmat ();
25848int
25849main ()
25850{
25851shmat ();
25852 ;
25853 return 0;
25854}
25855_ACEOF
25856rm -f conftest.$ac_objext conftest$ac_exeext
25857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25858 (eval $ac_link) 2>conftest.er1
e6cc62c6 25859 ac_status=$?
32ddf007
VS
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
e6cc62c6
VS
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } &&
e1293dcf 25865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; } &&
25871 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873 (eval $ac_try) 2>&5
25874 ac_status=$?
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; }; then
25877 ac_cv_lib_ipc_shmat=yes
25878else
25879 echo "$as_me: failed program was:" >&5
25880sed 's/^/| /' conftest.$ac_ext >&5
25881
25882ac_cv_lib_ipc_shmat=no
25883fi
32ddf007
VS
25884rm -f conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25886LIBS=$ac_check_lib_save_LIBS
25887fi
25888echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25889echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25890if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25892fi
90dd450c 25893
90dd450c 25894 fi
21d1c967 25895 fi
10f2d63a 25896
21d1c967 25897 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25898 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25899 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25900 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25901 # check for ICE first), but we must link in the order -lSM -lICE or
25902 # we get undefined symbols. So assume we have SM if we have ICE.
25903 # These have to be linked with before -lX11, unlike the other
25904 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25905 # John Interrante, Karl Berry
25906 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25907echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25908if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25909 echo $ECHO_N "(cached) $ECHO_C" >&6
25910else
25911 ac_check_lib_save_LIBS=$LIBS
f09359cf 25912LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25913cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25914/* confdefs.h. */
25915_ACEOF
25916cat confdefs.h >>conftest.$ac_ext
25917cat >>conftest.$ac_ext <<_ACEOF
25918/* end confdefs.h. */
25919
21d1c967 25920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25921#ifdef __cplusplus
25922extern "C"
25923#endif
21d1c967 25924/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25925 builtin and then its argument prototype would still apply. */
25926char IceConnectionNumber ();
25927int
25928main ()
25929{
25930IceConnectionNumber ();
25931 ;
25932 return 0;
25933}
25934_ACEOF
25935rm -f conftest.$ac_objext conftest$ac_exeext
25936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25937 (eval $ac_link) 2>conftest.er1
e6cc62c6 25938 ac_status=$?
32ddf007
VS
25939 grep -v '^ *+' conftest.er1 >conftest.err
25940 rm -f conftest.er1
25941 cat conftest.err >&5
e6cc62c6
VS
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } &&
e1293dcf 25944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_lib_ICE_IceConnectionNumber=yes
25957else
25958 echo "$as_me: failed program was:" >&5
25959sed 's/^/| /' conftest.$ac_ext >&5
25960
25961ac_cv_lib_ICE_IceConnectionNumber=no
25962fi
32ddf007
VS
25963rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25965LIBS=$ac_check_lib_save_LIBS
25966fi
25967echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25968echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25969if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25970 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25971fi
21d1c967 25972
e6cc62c6 25973 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25974
10f2d63a
VZ
25975fi
25976
8284b0c5 25977
21d1c967 25978 if test "$no_x" = "yes"; then
e6cc62c6
VS
25979 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25980echo "$as_me: error: X11 not found" >&2;}
25981 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25982 fi
25983
2b5f62a0
VZ
25984 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25985 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25986 AFMINSTALL=afminstall
25987 COMPILED_X_PROGRAM=0
25988
e6cc62c6
VS
25989 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25990echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25991
21d1c967 25992ac_find_includes=
2b5f62a0 25993for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25994 do
25995 if test -f "$ac_dir/Xm/Xm.h"; then
25996 ac_find_includes=$ac_dir
25997 break
25998 fi
25999 done
26000
26001 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
26002 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26003echo "${ECHO_T}found in $ac_find_includes" >&6
26004
2b5f62a0 26005 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
26006 ac_path_to_include=""
26007 else
2b5f62a0
VZ
26008 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26009 result=$?
26010 if test $result = 0; then
26011 ac_path_to_include=""
26012 else
26013 ac_path_to_include=" -I$ac_find_includes"
26014 fi
dd0e4a90
VZ
26015 fi
26016
26017 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 26018 else
e6cc62c6 26019 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26020/* confdefs.h. */
26021_ACEOF
26022cat confdefs.h >>conftest.$ac_ext
26023cat >>conftest.$ac_ext <<_ACEOF
26024/* end confdefs.h. */
21d1c967
GD
26025
26026 #include <Xm/Xm.h>
e6cc62c6
VS
26027
26028int
26029main ()
26030{
21d1c967
GD
26031
26032 int version;
26033 version = xmUseVersion;
e6cc62c6
VS
26034
26035 ;
26036 return 0;
26037}
26038_ACEOF
26039rm -f conftest.$ac_objext
26040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26041 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26042 ac_status=$?
32ddf007
VS
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
e6cc62c6
VS
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } &&
e1293dcf 26048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060
26061 echo "$as_me:$LINENO: result: found in default search path" >&5
26062echo "${ECHO_T}found in default search path" >&6
21d1c967 26063 COMPILED_X_PROGRAM=1
e6cc62c6 26064
10f2d63a 26065else
e6cc62c6
VS
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069
26070 echo "$as_me:$LINENO: result: no" >&5
26071echo "${ECHO_T}no" >&6
26072 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26073echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26074 { (exit 1); exit 1; }; }
26075
26076
10f2d63a 26077fi
32ddf007 26078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 26079 fi
10f2d63a 26080
21d1c967 26081 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
26082 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26083echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26084
21d1c967 26085ac_find_libraries=
2b5f62a0 26086for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26087 do
26088 for ac_extension in a so sl dylib; do
26089 if test -f "$ac_dir/libXm.$ac_extension"; then
26090 ac_find_libraries=$ac_dir
26091 break 2
26092 fi
26093 done
26094 done
26095
26096 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
26097 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26098echo "${ECHO_T}found at $ac_find_libraries" >&6
26099
21d1c967 26100
21d1c967
GD
26101 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26102 result=$?
26103 if test $result = 0; then
26104 ac_path_to_link=""
26105 else
26106 ac_path_to_link=" -L$ac_find_libraries"
26107 fi
26108
21d1c967 26109 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 26110 else
dd0e4a90
VZ
26111 save_CFLAGS=$CFLAGS
26112 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26113
e6cc62c6 26114 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
21d1c967
GD
26120
26121 #include <Xm/Xm.h>
e6cc62c6
VS
26122
26123int
26124main ()
26125{
21d1c967
GD
26126
26127 int version;
26128 version = xmUseVersion;
e6cc62c6
VS
26129
26130 ;
26131 return 0;
26132}
26133_ACEOF
26134rm -f conftest.$ac_objext
26135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26136 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26137 ac_status=$?
32ddf007
VS
26138 grep -v '^ *+' conftest.er1 >conftest.err
26139 rm -f conftest.er1
26140 cat conftest.err >&5
e6cc62c6
VS
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); } &&
e1293dcf 26143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26146 ac_status=$?
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; } &&
26149 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; }; then
26155
26156 echo "$as_me:$LINENO: result: found in default search path" >&5
26157echo "${ECHO_T}found in default search path" >&6
21d1c967 26158 COMPILED_X_PROGRAM=1
e6cc62c6 26159
d836ee96 26160else
e6cc62c6
VS
26161 echo "$as_me: failed program was:" >&5
26162sed 's/^/| /' conftest.$ac_ext >&5
26163
26164
26165 echo "$as_me:$LINENO: result: no" >&5
26166echo "${ECHO_T}no" >&6
26167 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26168echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26169 { (exit 1); exit 1; }; }
26170
26171
d836ee96 26172fi
32ddf007 26173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
26174
26175 CFLAGS=$save_CFLAGS
21d1c967
GD
26176 fi
26177 fi
26178
e6cc62c6
VS
26179 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26180echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
26181 libp_link=""
26182 libsm_ice_link=""
26183 libs_found=0
26184 for libp in "" " -lXp"; do
26185 if test "$libs_found" = "0"; then
7015ef3a 26186 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 26187 if test "$libs_found" = "0"; then
6a30f1c8 26188 save_LIBS="$LIBS"
93a543aa 26189 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
26190 save_CFLAGS=$CFLAGS
26191 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26192
e6cc62c6 26193 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26194/* confdefs.h. */
26195_ACEOF
26196cat confdefs.h >>conftest.$ac_ext
26197cat >>conftest.$ac_ext <<_ACEOF
26198/* end confdefs.h. */
17234b26 26199
6a30f1c8
MB
26200 #include <Xm/Xm.h>
26201 #include <Xm/List.h>
e6cc62c6
VS
26202
26203int
26204main ()
26205{
6a30f1c8
MB
26206
26207 XmString string = NULL;
26208 Widget w = NULL;
26209 int position = 0;
26210 XmListAddItem(w, string, position);
e6cc62c6
VS
26211
26212 ;
26213 return 0;
26214}
26215_ACEOF
26216rm -f conftest.$ac_objext conftest$ac_exeext
26217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26218 (eval $ac_link) 2>conftest.er1
e6cc62c6 26219 ac_status=$?
32ddf007
VS
26220 grep -v '^ *+' conftest.er1 >conftest.err
26221 rm -f conftest.er1
26222 cat conftest.err >&5
e6cc62c6
VS
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
e1293dcf 26225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; } &&
26231 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; }; then
26237
6a30f1c8
MB
26238 libp_link="$libp"
26239 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
26240 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26241echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 26242 libs_found=1
e6cc62c6 26243
6a30f1c8 26244else
e6cc62c6
VS
26245 echo "$as_me: failed program was:" >&5
26246sed 's/^/| /' conftest.$ac_ext >&5
26247
26248
26249
6a30f1c8 26250fi
32ddf007
VS
26251rm -f conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 26253
6a30f1c8 26254 LIBS="$save_LIBS"
dd0e4a90 26255 CFLAGS=$save_CFLAGS
6a30f1c8
MB
26256 fi
26257 done
26258 fi
26259 done
26260
26261 if test "$libs_found" = "0"; then
e6cc62c6
VS
26262 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26263echo "${ECHO_T}can't find the right libraries" >&6
26264 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26265echo "$as_me: error: can't link a simple motif program" >&2;}
26266 { (exit 1); exit 1; }; }
6a30f1c8
MB
26267 fi
26268
da494b40
MB
26269 save_CFLAGS=$CFLAGS
26270 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
26271 echo "$as_me:$LINENO: checking for Motif 2" >&5
26272echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26273 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26274/* confdefs.h. */
26275_ACEOF
26276cat confdefs.h >>conftest.$ac_ext
26277cat >>conftest.$ac_ext <<_ACEOF
26278/* end confdefs.h. */
da494b40
MB
26279
26280 #include <Xm/Xm.h>
e6cc62c6
VS
26281
26282int
26283main ()
26284{
da494b40
MB
26285
26286 #if XmVersion < 2000
26287 #error "Not Motif 2"
26288 #endif
e6cc62c6
VS
26289
26290 ;
26291 return 0;
26292}
26293_ACEOF
26294rm -f conftest.$ac_objext
26295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26296 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26297 ac_status=$?
32ddf007
VS
26298 grep -v '^ *+' conftest.er1 >conftest.err
26299 rm -f conftest.er1
26300 cat conftest.err >&5
e6cc62c6
VS
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } &&
e1293dcf 26303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; } &&
26309 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
26315
26316 cat >>confdefs.h <<\_ACEOF
da494b40 26317#define __WXMOTIF20__ 1
e6cc62c6
VS
26318_ACEOF
26319
26320 echo "$as_me:$LINENO: result: found" >&5
26321echo "${ECHO_T}found" >&6
da494b40 26322
da494b40 26323else
e6cc62c6
VS
26324 echo "$as_me: failed program was:" >&5
26325sed 's/^/| /' conftest.$ac_ext >&5
26326
26327
26328 cat >>confdefs.h <<\_ACEOF
da494b40 26329#define __WXMOTIF20__ 0
e6cc62c6
VS
26330_ACEOF
26331
26332 echo "$as_me:$LINENO: result: not found" >&5
26333echo "${ECHO_T}not found" >&6
da494b40 26334
da494b40 26335fi
32ddf007 26336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
26337 CFLAGS=$save_CFLAGS
26338
93a543aa 26339 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 26340 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
26341 TOOLKIT=MOTIF
26342 GUIDIST=MOTIF_DIST
f7f78039
MB
26343 fi
26344
89fe663f
VZ
26345 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26346 if test "$wxUSE_LIBXPM" = "sys"; then
26347 echo "$as_me:$LINENO: checking for Xpm library" >&5
26348echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26349
26350ac_find_libraries=
26351for ac_dir in $SEARCH_LIB /usr/lib;
26352 do
26353 for ac_extension in a so sl dylib; do
26354 if test -f "$ac_dir/libXpm.$ac_extension"; then
26355 ac_find_libraries=$ac_dir
26356 break 2
26357 fi
26358 done
26359 done
26360
26361 if test "$ac_find_libraries" != "" ; then
26362
26363 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26364 result=$?
26365 if test $result = 0; then
26366 ac_path_to_link=""
26367 else
26368 ac_path_to_link=" -L$ac_find_libraries"
26369 fi
26370
26371 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26372 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26373echo "${ECHO_T}found at $ac_find_libraries" >&6
26374
26375 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26376echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26377if test "${wx_cv_x11_xpm_h+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379else
26380
26381 save_CFLAGS=$CFLAGS
26382 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26383
26384 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26385/* confdefs.h. */
26386_ACEOF
26387cat confdefs.h >>conftest.$ac_ext
26388cat >>conftest.$ac_ext <<_ACEOF
26389/* end confdefs.h. */
26390
26391 #include <X11/xpm.h>
26392
26393int
26394main ()
26395{
26396
26397 int version;
26398 version = XpmLibraryVersion();
26399
26400 ;
26401 return 0;
26402}
26403_ACEOF
26404rm -f conftest.$ac_objext
26405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26406 (eval $ac_compile) 2>conftest.er1
89fe663f 26407 ac_status=$?
32ddf007
VS
26408 grep -v '^ *+' conftest.er1 >conftest.err
26409 rm -f conftest.er1
26410 cat conftest.err >&5
89fe663f
VZ
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } &&
e1293dcf 26413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 (eval $ac_try) 2>&5
26416 ac_status=$?
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; } &&
26419 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; }; then
26425 wx_cv_x11_xpm_h=yes
26426else
26427 echo "$as_me: failed program was:" >&5
26428sed 's/^/| /' conftest.$ac_ext >&5
26429
26430wx_cv_x11_xpm_h=no
26431
26432fi
32ddf007 26433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26434
26435 CFLAGS=$save_CFLAGS
26436
26437
26438fi
26439echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26440echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26441
26442 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 26443 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
26444 cat >>confdefs.h <<\_ACEOF
26445#define wxHAVE_LIB_XPM 1
26446_ACEOF
26447
26448 else
26449 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26450echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26451 fi
26452 fi
26453
26454 fi
f7f78039 26455
89fe663f
VZ
26456 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26457echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26458if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460else
26461 ac_check_lib_save_LIBS=$LIBS
26462LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26463cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26464/* confdefs.h. */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h. */
26469
26470/* Override any gcc2 internal prototype to avoid an error. */
26471#ifdef __cplusplus
26472extern "C"
26473#endif
26474/* We use char because int might match the return type of a gcc2
26475 builtin and then its argument prototype would still apply. */
26476char XShapeQueryExtension ();
26477int
26478main ()
26479{
26480XShapeQueryExtension ();
26481 ;
26482 return 0;
26483}
26484_ACEOF
26485rm -f conftest.$ac_objext conftest$ac_exeext
26486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26487 (eval $ac_link) 2>conftest.er1
89fe663f 26488 ac_status=$?
32ddf007
VS
26489 grep -v '^ *+' conftest.er1 >conftest.err
26490 rm -f conftest.er1
26491 cat conftest.err >&5
89fe663f
VZ
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } &&
e1293dcf 26494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496 (eval $ac_try) 2>&5
26497 ac_status=$?
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); }; } &&
26500 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
26501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502 (eval $ac_try) 2>&5
26503 ac_status=$?
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; }; then
26506 ac_cv_lib_Xext_XShapeQueryExtension=yes
26507else
26508 echo "$as_me: failed program was:" >&5
26509sed 's/^/| /' conftest.$ac_ext >&5
26510
26511ac_cv_lib_Xext_XShapeQueryExtension=no
26512fi
32ddf007
VS
26513rm -f conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
26515LIBS=$ac_check_lib_save_LIBS
26516fi
26517echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26518echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26519if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26520
26521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26522 wxHAVE_XEXT_LIB=1
26523
26524fi
26525
26526
26527 if test "$wxHAVE_XEXT_LIB" = 1; then
26528 save_CFLAGS="$CFLAGS"
26529 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26530
26531 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 26532echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 26533 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26534/* confdefs.h. */
26535_ACEOF
26536cat confdefs.h >>conftest.$ac_ext
26537cat >>conftest.$ac_ext <<_ACEOF
26538/* end confdefs.h. */
26539
89fe663f
VZ
26540 #include <X11/Xlib.h>
26541 #include <X11/extensions/shape.h>
e6cc62c6
VS
26542
26543int
26544main ()
26545{
f7f78039 26546
89fe663f
VZ
26547 int dummy1, dummy2;
26548 XShapeQueryExtension((Display*)NULL,
26549 (int*)NULL, (int*)NULL);
e6cc62c6
VS
26550
26551 ;
26552 return 0;
26553}
26554_ACEOF
26555rm -f conftest.$ac_objext
26556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26557 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26558 ac_status=$?
32ddf007
VS
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
e6cc62c6
VS
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } &&
e1293dcf 26564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576
89fe663f 26577 cat >>confdefs.h <<\_ACEOF
f7f78039 26578#define HAVE_XSHAPE 1
e6cc62c6
VS
26579_ACEOF
26580
89fe663f 26581 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26582echo "${ECHO_T}found" >&6
f7f78039 26583
f7f78039 26584else
e6cc62c6
VS
26585 echo "$as_me: failed program was:" >&5
26586sed 's/^/| /' conftest.$ac_ext >&5
26587
26588
89fe663f 26589 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26590echo "${ECHO_T}not found" >&6
26591
f7f78039 26592fi
32ddf007 26593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26594 CFLAGS="$save_CFLAGS"
26595
26596 fi
21d1c967
GD
26597 fi
26598
26599 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26600 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26601echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26602 if test "$GCC" = yes; then
26603 echo "$as_me:$LINENO: result: gcc" >&5
26604echo "${ECHO_T}gcc" >&6
26605 CPPFLAGS_PASCAL="-fpascal-strings"
26606 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26607 echo "$as_me:$LINENO: result: xlc" >&5
26608echo "${ECHO_T}xlc" >&6
26609 CPPFLAGS_PASCAL="-qmacpstr"
26610 else
26611 echo "$as_me:$LINENO: result: none" >&5
26612echo "${ECHO_T}none" >&6
26613 fi
26614
26615 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26616
0c98a14e 26617 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26618 TOOLKIT=MAC
26619 GUIDIST=MACX_DIST
cf615ebb 26620 WXBASEPORT="_carbon"
21d1c967
GD
26621 fi
26622
ac0c4cc3
DE
26623 if test "$wxUSE_COCOA" = 1; then
26624 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26625 TOOLKIT=COCOA
26626 GUIDIST=COCOA_DIST
26627 fi
26628
21d1c967
GD
26629 if test "$wxUSE_PM" = 1; then
26630 TOOLKIT=PM
26631 GUIDIST=GTK_DIST
26632 fi
26633
26634 if test "$TOOLKIT" = "PM" ; then
26635 TOOLKIT_DIR="os2"
26636 else
26637 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26638 fi
26639
26640 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26641
26642 if test "$wxUSE_UNIVERSAL" = "yes"; then
26643 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26644
26645 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26646 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26647
26648 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26649 if test "$wxUSE_X11" = 1; then
26650 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26651 else
26652 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26653 fi
26654 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26655 WIDGET_SET=univ
26656 else
26657 ALL_OBJECTS="\$(GUIOBJS)"
26658 ALL_SOURCES="\$(ALL_SOURCES)"
26659 ALL_HEADERS="\$(ALL_HEADERS)"
26660 fi
26661
26662 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26663
26664 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26665 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26666 fi
26667
26668 if test "$wxUSE_HTML" = "yes"; then
26669 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26670 fi
26671
26672 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26673 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26674 fi
26675 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26676 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26677 fi
26678 if test "$wxUSE_LIBPNG" = "builtin" ; then
26679 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26680 fi
26681
26682 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26683 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26684else
21d1c967
GD
26685 USE_GUI=0
26686
26687 TOOLKIT_DIR="base"
26688
26689 if test "$USE_WIN32" = 1 ; then
26690 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26691 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26692
26693 TOOLKIT="MSW"
26694 else
26695 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26696 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26697 fi
26698
26699 ALL_SOURCES="\$(ALL_SOURCES)"
26700 ALL_HEADERS="\$(ALL_HEADERS)"
26701
26702 PORT_FILES="\${top_srcdir}/src/files.lst"
26703
26704 GUIDIST="BASE_DIST"
26705 DISTDIR="wxBase"
d836ee96
VZ
26706fi
26707
8284b0c5 26708
8647bec6
RG
26709
26710
26711IODBC_C_SRC=""
26712
26713
26714if test "$TOOLKIT" != "MSW" ; then
26715
bb41dcbe 26716 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26717
bb41dcbe 26718 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26719 echo "$as_me:$LINENO: checking for sql.h" >&5
26720echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26721if test "${ac_cv_header_sql_h+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723fi
26724echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26725echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26726else
26727 # Is the header compilable?
26728echo "$as_me:$LINENO: checking sql.h usability" >&5
26729echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26730cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26731/* confdefs.h. */
26732_ACEOF
26733cat confdefs.h >>conftest.$ac_ext
26734cat >>conftest.$ac_ext <<_ACEOF
26735/* end confdefs.h. */
26736$ac_includes_default
8647bec6 26737#include <sql.h>
e6cc62c6
VS
26738_ACEOF
26739rm -f conftest.$ac_objext
26740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26741 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26742 ac_status=$?
32ddf007
VS
26743 grep -v '^ *+' conftest.er1 >conftest.err
26744 rm -f conftest.er1
26745 cat conftest.err >&5
e6cc62c6
VS
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
e1293dcf 26748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_header_compiler=yes
26761else
26762 echo "$as_me: failed program was:" >&5
26763sed 's/^/| /' conftest.$ac_ext >&5
26764
26765ac_header_compiler=no
26766fi
32ddf007 26767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26769echo "${ECHO_T}$ac_header_compiler" >&6
26770
26771# Is the header present?
26772echo "$as_me:$LINENO: checking sql.h presence" >&5
26773echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26774cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26775/* confdefs.h. */
26776_ACEOF
26777cat confdefs.h >>conftest.$ac_ext
26778cat >>conftest.$ac_ext <<_ACEOF
26779/* end confdefs.h. */
26780#include <sql.h>
26781_ACEOF
26782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null; then
26790 if test -s conftest.err; then
26791 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 26792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26793 else
26794 ac_cpp_err=
26795 fi
26796else
26797 ac_cpp_err=yes
26798fi
26799if test -z "$ac_cpp_err"; then
26800 ac_header_preproc=yes
26801else
26802 echo "$as_me: failed program was:" >&5
26803sed 's/^/| /' conftest.$ac_ext >&5
26804
26805 ac_header_preproc=no
26806fi
26807rm -f conftest.err conftest.$ac_ext
26808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809echo "${ECHO_T}$ac_header_preproc" >&6
26810
26811# So? What about this header?
32ddf007
VS
26812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26813 yes:no: )
e6cc62c6
VS
26814 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26815echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
26816 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26817echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
e6cc62c6 26819 ;;
32ddf007 26820 no:yes:* )
e6cc62c6
VS
26821 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26822echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32ddf007
VS
26823 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26824echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26826echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26828echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26829 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26830echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
26831 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26832echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26833 (
26834 cat <<\_ASBOX
32ddf007
VS
26835## ----------------------------------------- ##
26836## Report this to wx-dev@lists.wxwindows.org ##
26837## ----------------------------------------- ##
e6cc62c6
VS
26838_ASBOX
26839 ) |
26840 sed "s/^/$as_me: WARNING: /" >&2
26841 ;;
26842esac
26843echo "$as_me:$LINENO: checking for sql.h" >&5
26844echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26845if test "${ac_cv_header_sql_h+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26847else
e6cc62c6
VS
26848 ac_cv_header_sql_h=$ac_header_preproc
26849fi
26850echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26851echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26852
bb41dcbe
VS
26853fi
26854if test $ac_cv_header_sql_h = yes; then
26855 found_sql_h=1
8647bec6
RG
26856fi
26857
e6cc62c6 26858
bb41dcbe 26859 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26860 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26861echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26862if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26863 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26864else
bb41dcbe 26865 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26866LIBS="-liodbc $LIBS"
e6cc62c6 26867cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26868/* confdefs.h. */
26869_ACEOF
26870cat confdefs.h >>conftest.$ac_ext
26871cat >>conftest.$ac_ext <<_ACEOF
26872/* end confdefs.h. */
26873
8647bec6 26874/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26875#ifdef __cplusplus
26876extern "C"
26877#endif
8647bec6 26878/* We use char because int might match the return type of a gcc2
e6cc62c6 26879 builtin and then its argument prototype would still apply. */
e46d2a18 26880char SQLAllocEnv ();
e6cc62c6
VS
26881int
26882main ()
26883{
e46d2a18 26884SQLAllocEnv ();
e6cc62c6
VS
26885 ;
26886 return 0;
26887}
26888_ACEOF
26889rm -f conftest.$ac_objext conftest$ac_exeext
26890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26891 (eval $ac_link) 2>conftest.er1
e6cc62c6 26892 ac_status=$?
32ddf007
VS
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
e6cc62c6
VS
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } &&
e1293dcf 26898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; } &&
26904 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
e46d2a18 26910 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26911else
e6cc62c6
VS
26912 echo "$as_me: failed program was:" >&5
26913sed 's/^/| /' conftest.$ac_ext >&5
26914
e46d2a18 26915ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26916fi
32ddf007
VS
26917rm -f conftest.err conftest.$ac_objext \
26918 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26919LIBS=$ac_check_lib_save_LIBS
26920fi
e46d2a18
VS
26921echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26922echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26923if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26924 ODBC_LINK=" -liodbc"
26925else
26926
e46d2a18
VS
26927 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26928echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26929if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26933LIBS="-lunixodbc $LIBS"
bb41dcbe 26934cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
26940
8647bec6 26941/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26942#ifdef __cplusplus
26943extern "C"
26944#endif
8647bec6 26945/* We use char because int might match the return type of a gcc2
e6cc62c6 26946 builtin and then its argument prototype would still apply. */
e46d2a18 26947char SQLAllocEnv ();
e6cc62c6
VS
26948int
26949main ()
26950{
e46d2a18 26951SQLAllocEnv ();
e6cc62c6
VS
26952 ;
26953 return 0;
26954}
26955_ACEOF
26956rm -f conftest.$ac_objext conftest$ac_exeext
26957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26958 (eval $ac_link) 2>conftest.er1
e6cc62c6 26959 ac_status=$?
32ddf007
VS
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
e6cc62c6
VS
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
e1293dcf 26965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
e46d2a18 26977 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26978else
e6cc62c6
VS
26979 echo "$as_me: failed program was:" >&5
26980sed 's/^/| /' conftest.$ac_ext >&5
26981
e46d2a18 26982ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26983fi
32ddf007
VS
26984rm -f conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26986LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26987fi
e46d2a18
VS
26988echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26989echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26990if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26991 ODBC_LINK=" -lunixodbc"
26992else
26993
e46d2a18
VS
26994 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26995echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26996if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26998else
26999 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27000LIBS="-lodbc $LIBS"
bb41dcbe 27001cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
27002/* confdefs.h. */
27003_ACEOF
27004cat confdefs.h >>conftest.$ac_ext
27005cat >>conftest.$ac_ext <<_ACEOF
27006/* end confdefs.h. */
e6cc62c6 27007
bb41dcbe
VS
27008/* Override any gcc2 internal prototype to avoid an error. */
27009#ifdef __cplusplus
27010extern "C"
27011#endif
27012/* We use char because int might match the return type of a gcc2
27013 builtin and then its argument prototype would still apply. */
e46d2a18 27014char SQLAllocEnv ();
bb41dcbe
VS
27015int
27016main ()
27017{
e46d2a18 27018SQLAllocEnv ();
bb41dcbe
VS
27019 ;
27020 return 0;
27021}
27022_ACEOF
27023rm -f conftest.$ac_objext conftest$ac_exeext
27024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27025 (eval $ac_link) 2>conftest.er1
bb41dcbe 27026 ac_status=$?
32ddf007
VS
27027 grep -v '^ *+' conftest.er1 >conftest.err
27028 rm -f conftest.er1
27029 cat conftest.err >&5
bb41dcbe
VS
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
e1293dcf 27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
e46d2a18 27044 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 27045else
bb41dcbe
VS
27046 echo "$as_me: failed program was:" >&5
27047sed 's/^/| /' conftest.$ac_ext >&5
27048
e46d2a18 27049ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 27050fi
32ddf007
VS
27051rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
27053LIBS=$ac_check_lib_save_LIBS
27054fi
e46d2a18
VS
27055echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27056echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27057if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27058 ODBC_LINK=" -lodbc"
27059fi
27060
27061
27062fi
e6cc62c6 27063
e6cc62c6 27064
8647bec6 27065fi
e6cc62c6 27066
fd3d7534 27067 fi
bb41dcbe
VS
27068 if test "x$ODBC_LINK" = "x" ; then
27069 if test "$wxUSE_ODBC" = "sys" ; then
27070 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27071echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27072 { (exit 1); exit 1; }; }
27073 else
27074 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27075echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27076 wxUSE_ODBC=builtin
27077 fi
27078 else
27079 wxUSE_ODBC=sys
8647bec6 27080 fi
8647bec6 27081 fi
bb41dcbe
VS
27082 if test "$wxUSE_ODBC" != "no" ; then
27083 cat >>confdefs.h <<\_ACEOF
27084#define wxUSE_ODBC 1
27085_ACEOF
e6cc62c6 27086
0bdb08e7
VS
27087 if test "$wxUSE_ODBC" = "builtin" ; then
27088 cat >>confdefs.h <<\_ACEOF
27089#define wxUSE_BUILTIN_IODBC 1
27090_ACEOF
27091
27092 fi
bb41dcbe
VS
27093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27094
27095 WXODBCFLAG="-D_IODBC_"
27096 fi
6232543b 27097fi
21d1c967
GD
27098
27099if test "$wxUSE_REGEX" = "builtin" ; then
27100 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 27101fi
21d1c967
GD
27102if test "$wxUSE_ZLIB" = "builtin" ; then
27103 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
27104fi
27105
74500461
VS
27106if test "$wxUSE_DISPLAY" = "yes"; then
27107 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27108 echo "$as_me:$LINENO: checking for Xinerama" >&5
27109echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27110
27111ac_find_libraries=
27112for ac_dir in $SEARCH_LIB /usr/lib;
27113 do
27114 for ac_extension in a so sl dylib; do
27115 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27116 ac_find_libraries=$ac_dir
27117 break 2
27118 fi
27119 done
27120 done
27121
27122 if test "$ac_find_libraries" != "" ; then
27123
27124 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27125 result=$?
27126 if test $result = 0; then
27127 ac_path_to_link=""
27128 else
27129 ac_path_to_link=" -L$ac_find_libraries"
27130 fi
27131
27132 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27133 LDFLAGS="$LDFLAGS $ac_path_to_link"
27134 fi
27135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27136 echo "$as_me:$LINENO: result: yes" >&5
27137echo "${ECHO_T}yes" >&6
505c8ccd
VS
27138
27139 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27140echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27141
27142ac_find_libraries=
27143for ac_dir in $SEARCH_LIB /usr/lib;
27144 do
27145 for ac_extension in a so sl dylib; do
27146 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27147 ac_find_libraries=$ac_dir
27148 break 2
27149 fi
27150 done
27151 done
27152
27153 if test "$ac_find_libraries" != "" ; then
27154 echo "$as_me:$LINENO: result: yes" >&5
27155echo "${ECHO_T}yes" >&6
27156
27157for ac_header in X11/extensions/xf86vmode.h
27158do
27159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27160echo "$as_me:$LINENO: checking for $ac_header" >&5
27161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27164else
27165 cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171
27172 #if HAVE_X11_XLIB_H
27173 #include <X11/Xlib.h>
27174 #endif
27175
27176
27177#include <$ac_header>
27178_ACEOF
27179rm -f conftest.$ac_objext
27180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27181 (eval $ac_compile) 2>conftest.er1
505c8ccd 27182 ac_status=$?
32ddf007
VS
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
505c8ccd
VS
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
e1293dcf 27188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; } &&
27194 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200 eval "$as_ac_Header=yes"
27201else
27202 echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205eval "$as_ac_Header=no"
27206fi
32ddf007 27207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
27208fi
27209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27211if test `eval echo '${'$as_ac_Header'}'` = yes; then
27212 cat >>confdefs.h <<_ACEOF
27213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27214_ACEOF
27215
27216 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27217
27218fi
27219
27220done
27221
27222 else
27223 echo "$as_me:$LINENO: result: no" >&5
27224echo "${ECHO_T}no" >&6
27225 fi
27226
74500461
VS
27227 else
27228 echo "$as_me:$LINENO: result: no" >&5
27229echo "${ECHO_T}no" >&6
27230 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27231echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27232 wxUSE_DISPLAY="no"
27233 fi
27234 fi
27235fi
27236
8284b0c5 27237
4d264332 27238USE_OPENGL=0
21d1c967 27239if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 27240 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
27241 OPENGL_LIBS="-framework OpenGL -framework AGL"
27242 elif test "$wxUSE_MSW" = 1; then
27243 OPENGL_LIBS="-lopengl32 -lglu32"
27244 else
01aa5863
VS
27245
27246
27247ac_find_includes=
27248for ac_dir in $SEARCH_INCLUDE /usr/include;
27249 do
27250 if test -f "$ac_dir/GL/gl.h"; then
27251 ac_find_includes=$ac_dir
27252 break
27253 fi
27254 done
27255
27256 if test "$ac_find_includes" != "" ; then
27257 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27258echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
27259
27260 if test "x$ac_find_includes" = "x/usr/include"; then
27261 ac_path_to_include=""
27262 else
27263 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27264 result=$?
27265 if test $result = 0; then
27266 ac_path_to_include=""
27267 else
27268 ac_path_to_include=" -I$ac_find_includes"
27269 fi
27270 fi
27271
27272 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
27273 fi
27274
e6cc62c6
VS
27275 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27276 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27277echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27278if test "${ac_cv_header_GL_gl_h+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280fi
27281echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27282echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27283else
27284 # Is the header compilable?
27285echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27286echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27287cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27288/* confdefs.h. */
27289_ACEOF
27290cat confdefs.h >>conftest.$ac_ext
27291cat >>conftest.$ac_ext <<_ACEOF
27292/* end confdefs.h. */
27293$ac_includes_default
21d1c967 27294#include <GL/gl.h>
e6cc62c6
VS
27295_ACEOF
27296rm -f conftest.$ac_objext
27297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27298 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27299 ac_status=$?
32ddf007
VS
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
e6cc62c6
VS
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
e1293dcf 27305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_header_compiler=yes
27318else
27319 echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322ac_header_compiler=no
27323fi
32ddf007 27324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27326echo "${ECHO_T}$ac_header_compiler" >&6
27327
27328# Is the header present?
27329echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27330echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27331cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27332/* confdefs.h. */
27333_ACEOF
27334cat confdefs.h >>conftest.$ac_ext
27335cat >>conftest.$ac_ext <<_ACEOF
27336/* end confdefs.h. */
27337#include <GL/gl.h>
27338_ACEOF
27339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } >/dev/null; then
27347 if test -s conftest.err; then
27348 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 27349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
27350 else
27351 ac_cpp_err=
27352 fi
27353else
27354 ac_cpp_err=yes
27355fi
27356if test -z "$ac_cpp_err"; then
27357 ac_header_preproc=yes
27358else
27359 echo "$as_me: failed program was:" >&5
27360sed 's/^/| /' conftest.$ac_ext >&5
27361
27362 ac_header_preproc=no
27363fi
27364rm -f conftest.err conftest.$ac_ext
27365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27366echo "${ECHO_T}$ac_header_preproc" >&6
27367
27368# So? What about this header?
32ddf007
VS
27369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27370 yes:no: )
e6cc62c6
VS
27371 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27372echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
27373 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27374echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27375 ac_header_preproc=yes
e6cc62c6 27376 ;;
32ddf007 27377 no:yes:* )
e6cc62c6
VS
27378 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27379echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32ddf007
VS
27380 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27381echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27382 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27383echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27384 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27385echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
27386 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27387echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
27388 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27389echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
27390 (
27391 cat <<\_ASBOX
32ddf007
VS
27392## ----------------------------------------- ##
27393## Report this to wx-dev@lists.wxwindows.org ##
27394## ----------------------------------------- ##
e6cc62c6
VS
27395_ASBOX
27396 ) |
27397 sed "s/^/$as_me: WARNING: /" >&2
27398 ;;
27399esac
27400echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27401echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27402if test "${ac_cv_header_GL_gl_h+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27404else
27405 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 27406fi
e6cc62c6
VS
27407echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27408echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27409
698dcdb6 27410fi
e6cc62c6
VS
27411if test $ac_cv_header_GL_gl_h = yes; then
27412
89e3b3e4
VZ
27413 found_gl=0
27414
e6cc62c6
VS
27415 echo "$as_me:$LINENO: checking for -lGL" >&5
27416echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27417
21d1c967 27418ac_find_libraries=
2b5f62a0 27419for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27420 do
27421 for ac_extension in a so sl dylib; do
27422 if test -f "$ac_dir/libGL.$ac_extension"; then
27423 ac_find_libraries=$ac_dir
27424 break 2
27425 fi
27426 done
27427 done
27428
27429 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27430
21d1c967
GD
27431 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27432 result=$?
27433 if test $result = 0; then
27434 ac_path_to_link=""
27435 else
27436 ac_path_to_link=" -L$ac_find_libraries"
27437 fi
27438
89e3b3e4
VZ
27439 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27440 LDFLAGS_GL="$ac_path_to_link"
21d1c967 27441 fi
89e3b3e4 27442
e6cc62c6 27443
89e3b3e4
VZ
27444ac_find_libraries=
27445for ac_dir in $SEARCH_LIB /usr/lib;
27446 do
27447 for ac_extension in a so sl dylib; do
27448 if test -f "$ac_dir/libGLU.$ac_extension"; then
27449 ac_find_libraries=$ac_dir
27450 break 2
27451 fi
27452 done
27453 done
27454
27455 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27456
89e3b3e4
VZ
27457 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27458 result=$?
27459 if test $result = 0; then
27460 ac_path_to_link=""
27461 else
27462 ac_path_to_link=" -L$ac_find_libraries"
27463 fi
27464
27465 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27466 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27467 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27468 fi
27469
27470 found_gl=1
27471 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
27472 echo "$as_me:$LINENO: result: yes" >&5
27473echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
27474 fi
27475 fi
27476
bb41dcbe 27477 if test "$found_gl" != 1; then
e6cc62c6
VS
27478 echo "$as_me:$LINENO: result: no" >&5
27479echo "${ECHO_T}no" >&6
27480 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27481echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27482
21d1c967 27483ac_find_libraries=
2b5f62a0 27484for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27485 do
27486 for ac_extension in a so sl dylib; do
27487 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27488 ac_find_libraries=$ac_dir
27489 break 2
27490 fi
27491 done
27492 done
27493
27494 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27495
21d1c967
GD
27496 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27497 result=$?
27498 if test $result = 0; then
27499 ac_path_to_link=""
27500 else
27501 ac_path_to_link=" -L$ac_find_libraries"
27502 fi
27503
27504 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27505 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
27506 echo "$as_me:$LINENO: result: yes" >&5
27507echo "${ECHO_T}yes" >&6
21d1c967 27508 else
e6cc62c6
VS
27509 echo "$as_me:$LINENO: result: no" >&5
27510echo "${ECHO_T}no" >&6
21d1c967
GD
27511 fi
27512 fi
e6cc62c6 27513
5c6fa7d2 27514fi
52127426 27515
8284b0c5 27516
e6cc62c6 27517
21d1c967 27518 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
27519 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27520echo "$as_me: error: OpenGL libraries not available" >&2;}
27521 { (exit 1); exit 1; }; }
21d1c967
GD
27522 fi
27523 fi
90dd450c 27524
21d1c967 27525 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 27526 USE_OPENGL=1
e6cc62c6 27527 cat >>confdefs.h <<\_ACEOF
21d1c967 27528#define wxUSE_OPENGL 1
e6cc62c6 27529_ACEOF
21d1c967 27530
e6cc62c6 27531 cat >>confdefs.h <<\_ACEOF
21d1c967 27532#define wxUSE_GLCANVAS 1
e6cc62c6 27533_ACEOF
21d1c967 27534
520755bb 27535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 27536 fi
10f2d63a 27537fi
21d1c967
GD
27538
27539if test -z "$TOOLKIT_VPATH" ; then
27540 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 27541fi
21d1c967
GD
27542
27543if test -n "$TOOLKIT" ; then
27544 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27545fi
27546
fe0895cf 27547UNICODE=0
21d1c967
GD
27548lib_unicode_suffix=
27549if test "$wxUSE_UNICODE" = "yes"; then
27550 lib_unicode_suffix=u
fe0895cf 27551 UNICODE=1
90dd450c 27552fi
698dcdb6 27553
21d1c967 27554lib_debug_suffix=
6c67131a 27555DEBUG_FLAG=0
21d1c967
GD
27556if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27557 lib_debug_suffix=d
6c67131a
VS
27558 DEBUG_FLAG=1
27559fi
27560
27561DEBUG_INFO=0
27562if test "$wxUSE_DEBUG_INFO" = "yes"; then
27563 DEBUG_INFO=1
21d1c967 27564fi
698dcdb6 27565
1cbb95a2 27566WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27567
27568TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27569TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27570
27571if test "$cross_compiling" = "yes"; then
27572 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27573 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27574 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27575fi
27576
27577WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27578WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27579WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27580WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27581
27582WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27583WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27584
27585WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27586WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27587WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27588WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27589
27590case "${host}" in
27591 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27592 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27593 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27594 ;;
27595
27596 *-*-darwin* )
e6cc62c6 27597
05159a27
GD
27598 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27599 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27600
27601 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27602 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27603 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27604 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27605
09d3439c
VZ
27606 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27607 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27608 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27609 fi
27610 ;;
27611esac
27612
27613WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27614WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27615
27616WXCONFIG_LIBS="-l${WX_LIBRARY}"
27617WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27618
27619if test "$wxUSE_OPENGL" = "yes"; then
27620 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27621 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27622fi
27623
8284b0c5
MB
27624
27625
21d1c967
GD
27626if test "$wxUSE_SHARED" = "yes"; then
27627 case "${host}" in
27628 *-pc-os2_emx | *-pc-os2-emx | \
27629 *-pc-msdosdjgpp )
27630 wxUSE_SHARED=no
e6cc62c6
VS
27631 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27632echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27633 ;;
27634 esac
27635fi
27636
fe0895cf 27637SHARED=0
2b5f62a0 27638if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27639 SHARED=1
2b5f62a0 27640
e6cc62c6 27641
2b5f62a0
VZ
27642 found_versioning=no
27643
e6cc62c6 27644
2b5f62a0 27645 if test $found_versioning = no ; then
e6cc62c6
VS
27646 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27647echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27648if test "${wx_cv_version_script+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27650else
e6cc62c6 27651
2b5f62a0
VZ
27652 echo "VER_1 { *; };" >conftest.sym
27653 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27654
2b5f62a0
VZ
27655 if { ac_try='
27656 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27657 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27663 if test -s conftest.stderr ; then
27664 wx_cv_version_script=no
27665 else
27666 wx_cv_version_script=yes
27667 fi
27668 else
27669 wx_cv_version_script=no
27670 fi
27671 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27672
e6cc62c6
VS
27673fi
27674echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27675echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27676 if test $wx_cv_version_script = yes ; then
e6cc62c6 27677 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27678 fi
27679 fi
21d1c967 27680
21d1c967 27681
21d1c967 27682 case "${host}" in
fe0895cf 27683 *-*-linux* | *-*-gnu* )
e6cc62c6 27684 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27685 ;;
21d1c967
GD
27686
27687 *-*-solaris2* )
27688 if test "$GCC" = yes ; then
27689 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27690
27691 saveLdflags="$LDFLAGS"
27692 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27693 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27694echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27696/* confdefs.h. */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
27700/* end confdefs.h. */
27701
27702int
27703main ()
27704{
fe0895cf 27705
e6cc62c6
VS
27706 ;
27707 return 0;
27708}
27709_ACEOF
27710rm -f conftest.$ac_objext conftest$ac_exeext
27711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27712 (eval $ac_link) 2>conftest.er1
e6cc62c6 27713 ac_status=$?
32ddf007
VS
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
e6cc62c6
VS
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
e1293dcf 27719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; } &&
27725 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
27731
27732 echo "$as_me:$LINENO: result: yes" >&5
27733echo "${ECHO_T}yes" >&6
27734 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27735
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 echo "$as_me:$LINENO: result: no" >&5
27742echo "${ECHO_T}no" >&6
27743 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27744echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27745 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27746 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27747/* confdefs.h. */
27748_ACEOF
27749cat confdefs.h >>conftest.$ac_ext
27750cat >>conftest.$ac_ext <<_ACEOF
27751/* end confdefs.h. */
27752
27753int
27754main ()
27755{
27756
27757 ;
27758 return 0;
27759}
27760_ACEOF
27761rm -f conftest.$ac_objext conftest$ac_exeext
27762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27763 (eval $ac_link) 2>conftest.er1
e6cc62c6 27764 ac_status=$?
32ddf007
VS
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
e6cc62c6
VS
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
e1293dcf 27770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782
27783 echo "$as_me:$LINENO: result: yes" >&5
27784echo "${ECHO_T}yes" >&6
27785 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27786else
27787 echo "$as_me: failed program was:" >&5
27788sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27789
fe0895cf 27790
e6cc62c6
VS
27791 echo "$as_me:$LINENO: result: no" >&5
27792echo "${ECHO_T}no" >&6
27793
fe0895cf 27794fi
32ddf007
VS
27795rm -f conftest.err conftest.$ac_objext \
27796 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27797
27798fi
32ddf007
VS
27799rm -f conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27801 LDFLAGS="$saveLdflags"
21d1c967
GD
27802 else
27803 SHARED_LD="${CXX} -G -o"
27804 PIC_FLAG="-KPIC"
e6cc62c6 27805 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27806 fi
27807 ;;
0f1bc9c2
VS
27808
27809 powerpc-*-darwin* )
ef0add05
VS
27810 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27811 cat <<EOF >change-install-names
27812#!/bin/sh
27813libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27814inst_cmd="install_name_tool "
27815for i in \${libnames} ; do
27816 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27817done
27818\${inst_cmd} \${3}
27819EOF
27820 chmod +x change-install-names
0f1bc9c2
VS
27821 ;;
27822
21d1c967
GD
27823 esac
27824
27825 if test "x$WX_TARGET_LIBRARY" = "x"; then
27826 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27827 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27828 fi
27829
27830 WX_TARGET_LIBRARY_TYPE="so"
27831 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27832fi
10f2d63a 27833
21d1c967
GD
27834if test "$wxUSE_SHARED" = "no"; then
27835
27836 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27837 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27838 fi
27839
ac0c4cc3 27840 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27841 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27842 fi
27843
27844 if test "$wxUSE_OPENGL" = "yes"; then
27845 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27846 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27847 else
27848 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27849 fi
27850
27851 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27852 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27853
27854 WX_TARGET_LIBRARY_TYPE="a"
27855 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27856
27857 STATIC_FLAG="yes"
27858else
27859 STATIC_FLAG="no"
90dd450c 27860fi
1e487827 27861
09d3439c 27862if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 27863 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27864 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27865 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 27866
21d1c967
GD
27867 # Extract the first word of "Rez", so it can be a program name with args.
27868set dummy Rez; ac_word=$2
e6cc62c6
VS
27869echo "$as_me:$LINENO: checking for $ac_word" >&5
27870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27871if test "${ac_cv_prog_RESCOMP+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27873else
21d1c967
GD
27874 if test -n "$RESCOMP"; then
27875 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27876else
e6cc62c6
VS
27877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27878for as_dir in $PATH
27879do
27880 IFS=$as_save_IFS
27881 test -z "$as_dir" && as_dir=.
27882 for ac_exec_ext in '' $ac_executable_extensions; do
27883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27884 ac_cv_prog_RESCOMP="Rez"
27885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27886 break 2
27887 fi
27888done
27889done
27890
21d1c967 27891 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27892fi
b93d0d08 27893fi
e6cc62c6 27894RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27895if test -n "$RESCOMP"; then
e6cc62c6
VS
27896 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27897echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27898else
e6cc62c6
VS
27899 echo "$as_me:$LINENO: result: no" >&5
27900echo "${ECHO_T}no" >&6
90dd450c 27901fi
b93d0d08 27902
21d1c967
GD
27903 # Extract the first word of "DeRez", so it can be a program name with args.
27904set dummy DeRez; ac_word=$2
e6cc62c6
VS
27905echo "$as_me:$LINENO: checking for $ac_word" >&5
27906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27907if test "${ac_cv_prog_DEREZ+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27909else
21d1c967
GD
27910 if test -n "$DEREZ"; then
27911 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27912else
e6cc62c6
VS
27913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914for as_dir in $PATH
27915do
27916 IFS=$as_save_IFS
27917 test -z "$as_dir" && as_dir=.
27918 for ac_exec_ext in '' $ac_executable_extensions; do
27919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27920 ac_cv_prog_DEREZ="DeRez"
27921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27922 break 2
27923 fi
27924done
27925done
27926
21d1c967 27927 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27928fi
90dd450c 27929fi
e6cc62c6 27930DEREZ=$ac_cv_prog_DEREZ
21d1c967 27931if test -n "$DEREZ"; then
e6cc62c6
VS
27932 echo "$as_me:$LINENO: result: $DEREZ" >&5
27933echo "${ECHO_T}$DEREZ" >&6
90dd450c 27934else
e6cc62c6
VS
27935 echo "$as_me:$LINENO: result: no" >&5
27936echo "${ECHO_T}no" >&6
3a922bb4 27937fi
698dcdb6 27938
36825681
GD
27939 # Extract the first word of "SetFile", so it can be a program name with args.
27940set dummy SetFile; ac_word=$2
e6cc62c6
VS
27941echo "$as_me:$LINENO: checking for $ac_word" >&5
27942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27943if test "${ac_cv_prog_SETFILE+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27945else
27946 if test -n "$SETFILE"; then
27947 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27948else
e6cc62c6
VS
27949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27950for as_dir in $PATH
27951do
27952 IFS=$as_save_IFS
27953 test -z "$as_dir" && as_dir=.
27954 for ac_exec_ext in '' $ac_executable_extensions; do
27955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27956 ac_cv_prog_SETFILE="SetFile"
27957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27958 break 2
27959 fi
27960done
27961done
27962
36825681
GD
27963 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27964fi
27965fi
e6cc62c6 27966SETFILE=$ac_cv_prog_SETFILE
36825681 27967if test -n "$SETFILE"; then
e6cc62c6
VS
27968 echo "$as_me:$LINENO: result: $SETFILE" >&5
27969echo "${ECHO_T}$SETFILE" >&6
36825681 27970else
e6cc62c6
VS
27971 echo "$as_me:$LINENO: result: no" >&5
27972echo "${ECHO_T}no" >&6
36825681
GD
27973fi
27974
e6cc62c6 27975
09d3439c 27976 MACSETFILE="\$(SETFILE)"
64440d77 27977
09d3439c
VZ
27978 if test "$wxUSE_MAC" = 1; then
27979 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 27980
09d3439c
VZ
27981 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27982 else
27983 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27984 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27985 fi
64440d77 27986else
09d3439c
VZ
27987 MACSETFILE="@#"
27988 MACRESWXCONFIG="#"
64440d77 27989
09d3439c 27990 if test "$wxUSE_PM" = 1; then
36825681 27991 MACRESCOMP="emxbind -ep"
09d3439c
VZ
27992 else
27993 MACRESCOMP="@#"
90dd450c 27994 fi
4f14bcd8 27995fi
10f2d63a 27996
8284b0c5 27997
f93ca9fd 27998
e6cc62c6
VS
27999echo "$as_me:$LINENO: checking for mode_t" >&5
28000echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28001if test "${ac_cv_type_mode_t+set}" = set; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 28003else
e6cc62c6 28004 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28005/* confdefs.h. */
28006_ACEOF
28007cat confdefs.h >>conftest.$ac_ext
28008cat >>conftest.$ac_ext <<_ACEOF
28009/* end confdefs.h. */
28010$ac_includes_default
28011int
28012main ()
28013{
28014if ((mode_t *) 0)
28015 return 0;
28016if (sizeof (mode_t))
28017 return 0;
28018 ;
28019 return 0;
28020}
28021_ACEOF
28022rm -f conftest.$ac_objext
28023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28024 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28025 ac_status=$?
32ddf007
VS
28026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
e6cc62c6
VS
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
e1293dcf 28031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28043 ac_cv_type_mode_t=yes
a0b9e27f 28044else
e6cc62c6
VS
28045 echo "$as_me: failed program was:" >&5
28046sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28047
e6cc62c6 28048ac_cv_type_mode_t=no
a0b9e27f 28049fi
32ddf007 28050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 28051fi
e6cc62c6
VS
28052echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28053echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28054if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
28055 :
28056else
a0b9e27f 28057
e6cc62c6
VS
28058cat >>confdefs.h <<_ACEOF
28059#define mode_t int
28060_ACEOF
8284b0c5
MB
28061
28062fi
28063
e6cc62c6
VS
28064echo "$as_me:$LINENO: checking for off_t" >&5
28065echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28066if test "${ac_cv_type_off_t+set}" = set; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28068else
e6cc62c6 28069 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28070/* confdefs.h. */
28071_ACEOF
28072cat confdefs.h >>conftest.$ac_ext
28073cat >>conftest.$ac_ext <<_ACEOF
28074/* end confdefs.h. */
28075$ac_includes_default
28076int
28077main ()
28078{
28079if ((off_t *) 0)
28080 return 0;
28081if (sizeof (off_t))
28082 return 0;
28083 ;
28084 return 0;
28085}
28086_ACEOF
28087rm -f conftest.$ac_objext
28088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28089 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28090 ac_status=$?
32ddf007
VS
28091 grep -v '^ *+' conftest.er1 >conftest.err
28092 rm -f conftest.er1
28093 cat conftest.err >&5
e6cc62c6
VS
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
e1293dcf 28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
28108 ac_cv_type_off_t=yes
5c6fa7d2 28109else
e6cc62c6
VS
28110 echo "$as_me: failed program was:" >&5
28111sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28112
e6cc62c6 28113ac_cv_type_off_t=no
8284b0c5 28114fi
32ddf007 28115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 28116fi
e6cc62c6
VS
28117echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28118echo "${ECHO_T}$ac_cv_type_off_t" >&6
28119if test $ac_cv_type_off_t = yes; then
28120 :
247f5006
VZ
28121else
28122
e6cc62c6 28123cat >>confdefs.h <<_ACEOF
90dd450c 28124#define off_t long
e6cc62c6 28125_ACEOF
10f2d63a 28126
90dd450c 28127fi
10f2d63a 28128
e6cc62c6
VS
28129echo "$as_me:$LINENO: checking for pid_t" >&5
28130echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28131if test "${ac_cv_type_pid_t+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28133else
e6cc62c6 28134 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140$ac_includes_default
28141int
28142main ()
28143{
28144if ((pid_t *) 0)
28145 return 0;
28146if (sizeof (pid_t))
28147 return 0;
28148 ;
28149 return 0;
28150}
28151_ACEOF
28152rm -f conftest.$ac_objext
28153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28154 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28155 ac_status=$?
32ddf007
VS
28156 grep -v '^ *+' conftest.er1 >conftest.err
28157 rm -f conftest.er1
28158 cat conftest.err >&5
e6cc62c6
VS
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } &&
e1293dcf 28161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163 (eval $ac_try) 2>&5
28164 ac_status=$?
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); }; } &&
28167 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
90dd450c 28173 ac_cv_type_pid_t=yes
698dcdb6 28174else
e6cc62c6
VS
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28177
e6cc62c6
VS
28178ac_cv_type_pid_t=no
28179fi
32ddf007 28180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28181fi
e6cc62c6
VS
28182echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28183echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28184if test $ac_cv_type_pid_t = yes; then
28185 :
28186else
28187
28188cat >>confdefs.h <<_ACEOF
90dd450c 28189#define pid_t int
e6cc62c6 28190_ACEOF
10f2d63a 28191
7b4a847f
RR
28192fi
28193
e6cc62c6
VS
28194echo "$as_me:$LINENO: checking for size_t" >&5
28195echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28196if test "${ac_cv_type_size_t+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 28198else
e6cc62c6 28199 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28200/* confdefs.h. */
28201_ACEOF
28202cat confdefs.h >>conftest.$ac_ext
28203cat >>conftest.$ac_ext <<_ACEOF
28204/* end confdefs.h. */
28205$ac_includes_default
28206int
28207main ()
28208{
28209if ((size_t *) 0)
28210 return 0;
28211if (sizeof (size_t))
28212 return 0;
28213 ;
28214 return 0;
28215}
28216_ACEOF
28217rm -f conftest.$ac_objext
28218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28219 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28220 ac_status=$?
32ddf007
VS
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
e6cc62c6
VS
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
e1293dcf 28226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; } &&
28232 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; }; then
90dd450c 28238 ac_cv_type_size_t=yes
18dbb1f6 28239else
e6cc62c6
VS
28240 echo "$as_me: failed program was:" >&5
28241sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28242
e6cc62c6 28243ac_cv_type_size_t=no
a0b9e27f 28244fi
32ddf007 28245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28246fi
28247echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28248echo "${ECHO_T}$ac_cv_type_size_t" >&6
28249if test $ac_cv_type_size_t = yes; then
28250 :
28251else
28252
28253cat >>confdefs.h <<_ACEOF
90dd450c 28254#define size_t unsigned
e6cc62c6 28255_ACEOF
90dd450c
VZ
28256
28257fi
28258
e6cc62c6
VS
28259echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28260echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28261if test "${ac_cv_type_uid_t+set}" = set; then
28262 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 28263else
e6cc62c6 28264 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28265/* confdefs.h. */
28266_ACEOF
28267cat confdefs.h >>conftest.$ac_ext
28268cat >>conftest.$ac_ext <<_ACEOF
28269/* end confdefs.h. */
90dd450c 28270#include <sys/types.h>
e6cc62c6
VS
28271
28272_ACEOF
90dd450c 28273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 28274 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 28275 ac_cv_type_uid_t=yes
b3e8d00a 28276else
90dd450c 28277 ac_cv_type_uid_t=no
b3e8d00a 28278fi
90dd450c 28279rm -f conftest*
b3e8d00a 28280
4f14bcd8 28281fi
e6cc62c6
VS
28282echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28283echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 28284if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
28285
28286cat >>confdefs.h <<\_ACEOF
90dd450c 28287#define uid_t int
e6cc62c6 28288_ACEOF
247f5006 28289
e6cc62c6
VS
28290
28291cat >>confdefs.h <<\_ACEOF
90dd450c 28292#define gid_t int
e6cc62c6 28293_ACEOF
4f14bcd8 28294
b3e8d00a 28295fi
b3e8d00a 28296
8284b0c5
MB
28297
28298
e6cc62c6
VS
28299
28300ac_ext=cc
4f14bcd8 28301ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28305
28306echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28307echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28308if test "${wx_cv_size_t_is_uint+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311
28312 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28313/* confdefs.h. */
28314_ACEOF
28315cat confdefs.h >>conftest.$ac_ext
28316cat >>conftest.$ac_ext <<_ACEOF
28317/* end confdefs.h. */
90dd450c 28318#include <stddef.h>
e6cc62c6
VS
28319int
28320main ()
28321{
90dd450c
VZ
28322
28323 return 0; }
28324
28325 struct Foo { void foo(size_t); void foo(unsigned int); };
28326
28327 int bar() {
e6cc62c6
VS
28328
28329 ;
28330 return 0;
28331}
28332_ACEOF
28333rm -f conftest.$ac_objext
28334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28335 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28336 ac_status=$?
32ddf007
VS
28337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
e6cc62c6
VS
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
e1293dcf 28342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
90dd450c 28354 wx_cv_size_t_is_uint=no
698dcdb6 28355else
e6cc62c6
VS
28356 echo "$as_me: failed program was:" >&5
28357sed 's/^/| /' conftest.$ac_ext >&5
28358
28359wx_cv_size_t_is_uint=yes
8284b0c5 28360
247f5006 28361fi
32ddf007 28362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28363
a0b9e27f 28364
e6cc62c6
VS
28365fi
28366echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28367echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 28368
90dd450c 28369if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 28370 cat >>confdefs.h <<\_ACEOF
90dd450c 28371#define wxSIZE_T_IS_UINT 1
e6cc62c6 28372_ACEOF
698dcdb6 28373
90dd450c 28374else
e6cc62c6
VS
28375 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28376echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28377if test "${wx_cv_size_t_is_ulong+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28379else
e6cc62c6 28380 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28381/* confdefs.h. */
28382_ACEOF
28383cat confdefs.h >>conftest.$ac_ext
28384cat >>conftest.$ac_ext <<_ACEOF
28385/* end confdefs.h. */
90dd450c 28386#include <stddef.h>
e6cc62c6
VS
28387int
28388main ()
28389{
90dd450c
VZ
28390
28391 return 0; }
28392
28393 struct Foo { void foo(size_t); void foo(unsigned long); };
28394
28395 int bar() {
e6cc62c6
VS
28396
28397 ;
28398 return 0;
28399}
28400_ACEOF
28401rm -f conftest.$ac_objext
28402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28403 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28404 ac_status=$?
32ddf007
VS
28405 grep -v '^ *+' conftest.er1 >conftest.err
28406 rm -f conftest.er1
28407 cat conftest.err >&5
e6cc62c6
VS
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } &&
e1293dcf 28410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
90dd450c 28422 wx_cv_size_t_is_ulong=no
698dcdb6 28423else
e6cc62c6
VS
28424 echo "$as_me: failed program was:" >&5
28425sed 's/^/| /' conftest.$ac_ext >&5
28426
28427wx_cv_size_t_is_ulong=yes
28428
247f5006 28429fi
32ddf007 28430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28431
e6cc62c6
VS
28432fi
28433echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28434echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 28435
90dd450c 28436 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 28437 cat >>confdefs.h <<\_ACEOF
90dd450c 28438#define wxSIZE_T_IS_ULONG 1
e6cc62c6 28439_ACEOF
4f14bcd8
GD
28440
28441 fi
90dd450c 28442fi
1e487827 28443
90dd450c 28444ac_ext=c
4f14bcd8 28445ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28449
5c6fa7d2 28450
8284b0c5 28451
e6cc62c6
VS
28452echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28453echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28454if test "${wx_cv_struct_pw_gecos+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28456else
e6cc62c6
VS
28457
28458 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
90dd450c 28464#include <pwd.h>
e6cc62c6
VS
28465int
28466main ()
28467{
f6bcfd97 28468
90dd450c
VZ
28469 char *p;
28470 struct passwd *pw;
28471 p = pw->pw_gecos;
e6cc62c6
VS
28472
28473 ;
28474 return 0;
28475}
28476_ACEOF
28477rm -f conftest.$ac_objext
28478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28479 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28480 ac_status=$?
32ddf007
VS
28481 grep -v '^ *+' conftest.er1 >conftest.err
28482 rm -f conftest.er1
28483 cat conftest.err >&5
e6cc62c6
VS
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); } &&
e1293dcf 28486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498
90dd450c 28499 wx_cv_struct_pw_gecos=yes
e6cc62c6 28500
10f2d63a 28501else
e6cc62c6
VS
28502 echo "$as_me: failed program was:" >&5
28503sed 's/^/| /' conftest.$ac_ext >&5
28504
28505
90dd450c 28506 wx_cv_struct_pw_gecos=no
e6cc62c6 28507
247f5006
VZ
28508
28509fi
32ddf007 28510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28511
e6cc62c6
VS
28512
28513fi
28514echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28515echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28516
90dd450c 28517if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28518 cat >>confdefs.h <<\_ACEOF
90dd450c 28519#define HAVE_PW_GECOS 1
e6cc62c6 28520_ACEOF
c521c494 28521
90dd450c 28522fi
4f14bcd8 28523
8284b0c5 28524
d29b553b 28525if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28526 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28527#define wxUSE_WCHAR_T 1
e6cc62c6 28528_ACEOF
d74f4b5a 28529
8284b0c5 28530
d74f4b5a
VZ
28531 WCSLEN_FOUND=0
28532 WCHAR_LINK=
e6cc62c6
VS
28533
28534for ac_func in wcslen
7a30264c 28535do
e6cc62c6
VS
28536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28537echo "$as_me:$LINENO: checking for $ac_func" >&5
28538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28539if eval "test \"\${$as_ac_var+set}\" = set"; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28541else
28542 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28543/* confdefs.h. */
28544_ACEOF
28545cat confdefs.h >>conftest.$ac_ext
28546cat >>conftest.$ac_ext <<_ACEOF
28547/* end confdefs.h. */
32ddf007
VS
28548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28550#define $ac_func innocuous_$ac_func
28551
7a30264c 28552/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28553 which can conflict with char $ac_func (); below.
28554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28555 <limits.h> exists even on freestanding compilers. */
32ddf007 28556
e6cc62c6
VS
28557#ifdef __STDC__
28558# include <limits.h>
28559#else
28560# include <assert.h>
28561#endif
32ddf007
VS
28562
28563#undef $ac_func
28564
4f14bcd8 28565/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28566#ifdef __cplusplus
28567extern "C"
28568{
28569#endif
4f14bcd8 28570/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28571 builtin and then its argument prototype would still apply. */
28572char $ac_func ();
7a30264c
VZ
28573/* The GNU C library defines this for functions which it implements
28574 to always fail with ENOSYS. Some functions are actually named
28575 something starting with __ and the normal name is an alias. */
28576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28577choke me
28578#else
e6cc62c6
VS
28579char (*f) () = $ac_func;
28580#endif
28581#ifdef __cplusplus
28582}
7a30264c
VZ
28583#endif
28584
e6cc62c6
VS
28585int
28586main ()
28587{
28588return f != $ac_func;
28589 ;
28590 return 0;
28591}
28592_ACEOF
28593rm -f conftest.$ac_objext conftest$ac_exeext
28594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28595 (eval $ac_link) 2>conftest.er1
e6cc62c6 28596 ac_status=$?
32ddf007
VS
28597 grep -v '^ *+' conftest.er1 >conftest.err
28598 rm -f conftest.er1
28599 cat conftest.err >&5
e6cc62c6
VS
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); } &&
e1293dcf 28602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28605 ac_status=$?
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; } &&
28608 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
28614 eval "$as_ac_var=yes"
28615else
28616 echo "$as_me: failed program was:" >&5
28617sed 's/^/| /' conftest.$ac_ext >&5
28618
28619eval "$as_ac_var=no"
28620fi
32ddf007
VS
28621rm -f conftest.err conftest.$ac_objext \
28622 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28623fi
28624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28626if test `eval echo '${'$as_ac_var'}'` = yes; then
28627 cat >>confdefs.h <<_ACEOF
28628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28629_ACEOF
d74f4b5a 28630 WCSLEN_FOUND=1
7a30264c
VZ
28631fi
28632done
9d8deca0 28633
8284b0c5 28634
d74f4b5a 28635 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28636 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28637 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28638echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28639if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28640 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28641else
e6cc62c6 28642 ac_check_lib_save_LIBS=$LIBS
7a30264c 28643LIBS="-lmsvcrt $LIBS"
e6cc62c6 28644cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650
4f14bcd8 28651/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28652#ifdef __cplusplus
28653extern "C"
28654#endif
4f14bcd8 28655/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28656 builtin and then its argument prototype would still apply. */
28657char wcslen ();
28658int
28659main ()
28660{
28661wcslen ();
28662 ;
28663 return 0;
28664}
28665_ACEOF
28666rm -f conftest.$ac_objext conftest$ac_exeext
28667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28668 (eval $ac_link) 2>conftest.er1
e6cc62c6 28669 ac_status=$?
32ddf007
VS
28670 grep -v '^ *+' conftest.er1 >conftest.err
28671 rm -f conftest.er1
28672 cat conftest.err >&5
e6cc62c6
VS
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); } &&
e1293dcf 28675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28678 ac_status=$?
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; } &&
28681 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_cv_lib_msvcrt_wcslen=yes
28688else
28689 echo "$as_me: failed program was:" >&5
28690sed 's/^/| /' conftest.$ac_ext >&5
28691
28692ac_cv_lib_msvcrt_wcslen=no
28693fi
32ddf007
VS
28694rm -f conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28696LIBS=$ac_check_lib_save_LIBS
28697fi
28698echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28699echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28700if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28701 WCHAR_OK=1
d29b553b 28702fi
698dcdb6 28703
7a30264c 28704 else
e6cc62c6
VS
28705 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28706echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28707if test "${ac_cv_lib_w_wcslen+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28709else
e6cc62c6 28710 ac_check_lib_save_LIBS=$LIBS
7a30264c 28711LIBS="-lw $LIBS"
e6cc62c6 28712cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
28718
4f14bcd8 28719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28720#ifdef __cplusplus
28721extern "C"
28722#endif
4f14bcd8 28723/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28724 builtin and then its argument prototype would still apply. */
28725char wcslen ();
28726int
28727main ()
28728{
28729wcslen ();
28730 ;
28731 return 0;
28732}
28733_ACEOF
28734rm -f conftest.$ac_objext conftest$ac_exeext
28735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28736 (eval $ac_link) 2>conftest.er1
e6cc62c6 28737 ac_status=$?
32ddf007
VS
28738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
e6cc62c6
VS
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
e1293dcf 28743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; } &&
28749 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_cv_lib_w_wcslen=yes
28756else
28757 echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
28760ac_cv_lib_w_wcslen=no
28761fi
32ddf007
VS
28762rm -f conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28764LIBS=$ac_check_lib_save_LIBS
28765fi
28766echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28767echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28768if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28769
7a30264c 28770 WCHAR_LINK=" -lw"
d74f4b5a 28771 WCSLEN_FOUND=1
e6cc62c6 28772
4f14bcd8 28773fi
10f2d63a 28774
7a30264c 28775 fi
d29b553b 28776 fi
95c8801c 28777
d74f4b5a 28778 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28779 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28780#define HAVE_WCSLEN 1
e6cc62c6 28781_ACEOF
10f2d63a 28782
d74f4b5a 28783 fi
52127426 28784
e6cc62c6
VS
28785
28786for ac_func in wcsrtombs
eb4efbdc 28787do
e6cc62c6
VS
28788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789echo "$as_me:$LINENO: checking for $ac_func" >&5
28790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28791if eval "test \"\${$as_ac_var+set}\" = set"; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793else
28794 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28795/* confdefs.h. */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h. */
32ddf007
VS
28800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28802#define $ac_func innocuous_$ac_func
28803
eb4efbdc 28804/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28805 which can conflict with char $ac_func (); below.
28806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28807 <limits.h> exists even on freestanding compilers. */
32ddf007 28808
e6cc62c6
VS
28809#ifdef __STDC__
28810# include <limits.h>
28811#else
28812# include <assert.h>
28813#endif
32ddf007
VS
28814
28815#undef $ac_func
28816
eb4efbdc 28817/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28818#ifdef __cplusplus
28819extern "C"
28820{
28821#endif
4f14bcd8 28822/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28823 builtin and then its argument prototype would still apply. */
28824char $ac_func ();
10f2d63a
VZ
28825/* The GNU C library defines this for functions which it implements
28826 to always fail with ENOSYS. Some functions are actually named
28827 something starting with __ and the normal name is an alias. */
247f5006 28828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28829choke me
28830#else
e6cc62c6
VS
28831char (*f) () = $ac_func;
28832#endif
28833#ifdef __cplusplus
28834}
10f2d63a
VZ
28835#endif
28836
e6cc62c6
VS
28837int
28838main ()
28839{
28840return f != $ac_func;
28841 ;
28842 return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext conftest$ac_exeext
28846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28847 (eval $ac_link) 2>conftest.er1
e6cc62c6 28848 ac_status=$?
32ddf007
VS
28849 grep -v '^ *+' conftest.er1 >conftest.err
28850 rm -f conftest.er1
28851 cat conftest.err >&5
e6cc62c6
VS
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
e1293dcf 28854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28856 (eval $ac_try) 2>&5
28857 ac_status=$?
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; } &&
28860 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862 (eval $ac_try) 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 eval "$as_ac_var=yes"
28867else
28868 echo "$as_me: failed program was:" >&5
28869sed 's/^/| /' conftest.$ac_ext >&5
28870
28871eval "$as_ac_var=no"
28872fi
32ddf007
VS
28873rm -f conftest.err conftest.$ac_objext \
28874 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28875fi
28876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28878if test `eval echo '${'$as_ac_var'}'` = yes; then
28879 cat >>confdefs.h <<_ACEOF
28880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28881_ACEOF
270a909e 28882
4f14bcd8 28883fi
247f5006 28884done
1e487827 28885
af15babd 28886else
e6cc62c6
VS
28887 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28888echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28889fi
52127426 28890
8284b0c5 28891
e6cc62c6
VS
28892
28893ac_ext=cc
247f5006 28894ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28898
af15babd 28899
247f5006
VZ
28900
28901for ac_func in vsnprintf
28902do
e6cc62c6
VS
28903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904echo "$as_me:$LINENO: checking for $ac_func" >&5
28905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28906if eval "test \"\${$as_ac_var+set}\" = set"; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28908else
28909 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28910/* confdefs.h. */
28911_ACEOF
28912cat confdefs.h >>conftest.$ac_ext
28913cat >>conftest.$ac_ext <<_ACEOF
28914/* end confdefs.h. */
32ddf007
VS
28915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28917#define $ac_func innocuous_$ac_func
28918
247f5006 28919/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28920 which can conflict with char $ac_func (); below.
28921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28922 <limits.h> exists even on freestanding compilers. */
32ddf007 28923
e6cc62c6
VS
28924#ifdef __STDC__
28925# include <limits.h>
28926#else
28927# include <assert.h>
28928#endif
32ddf007
VS
28929
28930#undef $ac_func
28931
247f5006
VZ
28932/* Override any gcc2 internal prototype to avoid an error. */
28933#ifdef __cplusplus
28934extern "C"
e6cc62c6 28935{
247f5006
VZ
28936#endif
28937/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28938 builtin and then its argument prototype would still apply. */
28939char $ac_func ();
247f5006
VZ
28940/* The GNU C library defines this for functions which it implements
28941 to always fail with ENOSYS. Some functions are actually named
28942 something starting with __ and the normal name is an alias. */
28943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28944choke me
28945#else
e6cc62c6
VS
28946char (*f) () = $ac_func;
28947#endif
28948#ifdef __cplusplus
28949}
247f5006 28950#endif
af15babd 28951
e6cc62c6
VS
28952int
28953main ()
28954{
28955return f != $ac_func;
28956 ;
28957 return 0;
28958}
28959_ACEOF
28960rm -f conftest.$ac_objext conftest$ac_exeext
28961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28962 (eval $ac_link) 2>conftest.er1
e6cc62c6 28963 ac_status=$?
32ddf007
VS
28964 grep -v '^ *+' conftest.er1 >conftest.err
28965 rm -f conftest.er1
28966 cat conftest.err >&5
e6cc62c6
VS
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } &&
e1293dcf 28969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; } &&
28975 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 eval "$as_ac_var=yes"
28982else
28983 echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
28986eval "$as_ac_var=no"
28987fi
32ddf007
VS
28988rm -f conftest.err conftest.$ac_objext \
28989 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28990fi
28991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28993if test `eval echo '${'$as_ac_var'}'` = yes; then
28994 cat >>confdefs.h <<_ACEOF
28995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28996_ACEOF
52127426 28997
5c6fa7d2 28998fi
247f5006 28999done
8284b0c5 29000
4f14bcd8 29001
8d90d2f2 29002if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
29003 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29004echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29005if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 29007else
e6cc62c6
VS
29008
29009 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29010/* confdefs.h. */
29011_ACEOF
29012cat confdefs.h >>conftest.$ac_ext
29013cat >>conftest.$ac_ext <<_ACEOF
29014/* end confdefs.h. */
8d90d2f2
VZ
29015
29016 #include <stdio.h>
29017 #include <stdarg.h>
e6cc62c6
VS
29018
29019int
29020main ()
29021{
8d90d2f2
VZ
29022
29023 char *buf;
29024 va_list ap;
29025 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
29026
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext
29032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29033 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29034 ac_status=$?
32ddf007
VS
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
e6cc62c6
VS
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } &&
e1293dcf 29040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; } &&
29046 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); }; }; then
8d90d2f2
VZ
29052 wx_cv_func_vsnprintf_decl=yes
29053else
e6cc62c6
VS
29054 echo "$as_me: failed program was:" >&5
29055sed 's/^/| /' conftest.$ac_ext >&5
29056
29057wx_cv_func_vsnprintf_decl=no
29058
8d90d2f2 29059fi
32ddf007 29060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 29061
8d90d2f2 29062
e6cc62c6
VS
29063fi
29064echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29065echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
29066
29067 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 29068 cat >>confdefs.h <<\_ACEOF
8d90d2f2 29069#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 29070_ACEOF
8d90d2f2
VZ
29071
29072 fi
29073fi
29074
247f5006 29075if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
29076
29077
29078
29079for ac_func in fputwc wprintf vswprintf
d74f4b5a 29080do
e6cc62c6
VS
29081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29082echo "$as_me:$LINENO: checking for $ac_func" >&5
29083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29084if eval "test \"\${$as_ac_var+set}\" = set"; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29086else
29087 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29088/* confdefs.h. */
29089_ACEOF
29090cat confdefs.h >>conftest.$ac_ext
29091cat >>conftest.$ac_ext <<_ACEOF
29092/* end confdefs.h. */
32ddf007
VS
29093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29095#define $ac_func innocuous_$ac_func
29096
d74f4b5a 29097/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29098 which can conflict with char $ac_func (); below.
29099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29100 <limits.h> exists even on freestanding compilers. */
32ddf007 29101
e6cc62c6
VS
29102#ifdef __STDC__
29103# include <limits.h>
29104#else
29105# include <assert.h>
29106#endif
32ddf007
VS
29107
29108#undef $ac_func
29109
d74f4b5a 29110/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
29111#ifdef __cplusplus
29112extern "C"
e6cc62c6 29113{
247f5006 29114#endif
d74f4b5a 29115/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29116 builtin and then its argument prototype would still apply. */
29117char $ac_func ();
d74f4b5a
VZ
29118/* The GNU C library defines this for functions which it implements
29119 to always fail with ENOSYS. Some functions are actually named
29120 something starting with __ and the normal name is an alias. */
29121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29122choke me
29123#else
e6cc62c6
VS
29124char (*f) () = $ac_func;
29125#endif
29126#ifdef __cplusplus
29127}
d74f4b5a
VZ
29128#endif
29129
e6cc62c6
VS
29130int
29131main ()
29132{
29133return f != $ac_func;
29134 ;
29135 return 0;
29136}
29137_ACEOF
29138rm -f conftest.$ac_objext conftest$ac_exeext
29139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29140 (eval $ac_link) 2>conftest.er1
e6cc62c6 29141 ac_status=$?
32ddf007
VS
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
e6cc62c6
VS
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } &&
e1293dcf 29147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
29159 eval "$as_ac_var=yes"
29160else
29161 echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164eval "$as_ac_var=no"
29165fi
32ddf007
VS
29166rm -f conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29168fi
29169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29171if test `eval echo '${'$as_ac_var'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29174_ACEOF
d74f4b5a 29175
d74f4b5a
VZ
29176fi
29177done
29178
8d90d2f2 29179
e6cc62c6
VS
29180 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29181echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29182 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29183/* confdefs.h. */
29184_ACEOF
29185cat confdefs.h >>conftest.$ac_ext
29186cat >>conftest.$ac_ext <<_ACEOF
29187/* end confdefs.h. */
79668cae 29188#include <wchar.h>
e6cc62c6
VS
29189int
29190main ()
29191{
79668cae 29192&_vsnwprintf;
e6cc62c6
VS
29193 ;
29194 return 0;
29195}
29196_ACEOF
29197rm -f conftest.$ac_objext
29198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29199 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29200 ac_status=$?
32ddf007
VS
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
e6cc62c6
VS
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
e1293dcf 29206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29209 ac_status=$?
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; } &&
29212 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 echo "$as_me:$LINENO: result: yes" >&5
29219echo "${ECHO_T}yes" >&6
29220 cat >>confdefs.h <<\_ACEOF
79668cae 29221#define HAVE__VSNWPRINTF 1
e6cc62c6 29222_ACEOF
79668cae
MB
29223
29224else
e6cc62c6
VS
29225 echo "$as_me: failed program was:" >&5
29226sed 's/^/| /' conftest.$ac_ext >&5
29227
29228echo "$as_me:$LINENO: result: no" >&5
29229echo "${ECHO_T}no" >&6
79668cae 29230fi
32ddf007 29231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
29232fi
29233
247f5006
VZ
29234ac_ext=c
29235ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29238ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
29239
29240
29241
29242
4f14bcd8 29243if test "$TOOLKIT" != "MSW"; then
af15babd 29244
8284b0c5
MB
29245
29246
e6cc62c6
VS
29247
29248ac_ext=cc
4f14bcd8 29249ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 29253
52127426 29254
e6cc62c6
VS
29255
29256
29257# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
29258if test "${with_libiconv_prefix+set}" = set; then
29259 withval="$with_libiconv_prefix"
e6cc62c6 29260
b040e242
VS
29261 for dir in `echo "$withval" | tr : ' '`; do
29262 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29263 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29264 done
b040e242 29265
e6cc62c6 29266fi;
b040e242 29267
e6cc62c6
VS
29268 echo "$as_me:$LINENO: checking for iconv" >&5
29269echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29270if test "${am_cv_func_iconv+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29272else
e6cc62c6 29273
b040e242
VS
29274 am_cv_func_iconv="no, consider installing GNU libiconv"
29275 am_cv_lib_iconv=no
e6cc62c6 29276 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29277/* confdefs.h. */
29278_ACEOF
29279cat confdefs.h >>conftest.$ac_ext
29280cat >>conftest.$ac_ext <<_ACEOF
29281/* end confdefs.h. */
b040e242 29282#include <stdlib.h>
4f14bcd8 29283#include <iconv.h>
e6cc62c6
VS
29284int
29285main ()
29286{
b040e242
VS
29287iconv_t cd = iconv_open("","");
29288 iconv(cd,NULL,NULL,NULL,NULL);
29289 iconv_close(cd);
e6cc62c6
VS
29290 ;
29291 return 0;
29292}
29293_ACEOF
29294rm -f conftest.$ac_objext conftest$ac_exeext
29295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29296 (eval $ac_link) 2>conftest.er1
e6cc62c6 29297 ac_status=$?
32ddf007
VS
29298 grep -v '^ *+' conftest.er1 >conftest.err
29299 rm -f conftest.er1
29300 cat conftest.err >&5
e6cc62c6
VS
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } &&
e1293dcf 29303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305 (eval $ac_try) 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
b040e242 29315 am_cv_func_iconv=yes
af15babd 29316else
e6cc62c6
VS
29317 echo "$as_me: failed program was:" >&5
29318sed 's/^/| /' conftest.$ac_ext >&5
29319
b040e242 29320fi
32ddf007
VS
29321rm -f conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29323 if test "$am_cv_func_iconv" != yes; then
29324 am_save_LIBS="$LIBS"
29325 LIBS="$LIBS -liconv"
e6cc62c6 29326 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29327/* confdefs.h. */
29328_ACEOF
29329cat confdefs.h >>conftest.$ac_ext
29330cat >>conftest.$ac_ext <<_ACEOF
29331/* end confdefs.h. */
b040e242
VS
29332#include <stdlib.h>
29333#include <iconv.h>
e6cc62c6
VS
29334int
29335main ()
29336{
b040e242
VS
29337iconv_t cd = iconv_open("","");
29338 iconv(cd,NULL,NULL,NULL,NULL);
29339 iconv_close(cd);
e6cc62c6
VS
29340 ;
29341 return 0;
29342}
29343_ACEOF
29344rm -f conftest.$ac_objext conftest$ac_exeext
29345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29346 (eval $ac_link) 2>conftest.er1
e6cc62c6 29347 ac_status=$?
32ddf007
VS
29348 grep -v '^ *+' conftest.er1 >conftest.err
29349 rm -f conftest.er1
29350 cat conftest.err >&5
e6cc62c6
VS
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } &&
e1293dcf 29353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
b040e242
VS
29365 am_cv_lib_iconv=yes
29366 am_cv_func_iconv=yes
29367else
e6cc62c6
VS
29368 echo "$as_me: failed program was:" >&5
29369sed 's/^/| /' conftest.$ac_ext >&5
29370
af15babd 29371fi
32ddf007
VS
29372rm -f conftest.err conftest.$ac_objext \
29373 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29374 LIBS="$am_save_LIBS"
29375 fi
247f5006 29376
e6cc62c6
VS
29377fi
29378echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29379echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 29380 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
29381
29382cat >>confdefs.h <<\_ACEOF
b040e242 29383#define HAVE_ICONV 1
e6cc62c6 29384_ACEOF
b040e242 29385
e6cc62c6
VS
29386 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29387echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29388if test "${wx_cv_func_iconv_const+set}" = set; then
29389 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 29390else
e6cc62c6 29391 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29392/* confdefs.h. */
29393_ACEOF
29394cat confdefs.h >>conftest.$ac_ext
29395cat >>conftest.$ac_ext <<_ACEOF
29396/* end confdefs.h. */
b040e242
VS
29397
29398#include <stdlib.h>
29399#include <iconv.h>
29400extern
29401#ifdef __cplusplus
29402"C"
29403#endif
29404#if defined(__STDC__) || defined(__cplusplus)
29405size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29406#else
29407size_t iconv();
29408#endif
af15babd 29409
e6cc62c6
VS
29410int
29411main ()
29412{
29413
29414 ;
29415 return 0;
29416}
29417_ACEOF
29418rm -f conftest.$ac_objext
29419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29420 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29421 ac_status=$?
32ddf007
VS
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
e6cc62c6
VS
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
e1293dcf 29427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; } &&
29433 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
b7043674 29439 wx_cv_func_iconv_const="no"
b040e242 29440else
e6cc62c6
VS
29441 echo "$as_me: failed program was:" >&5
29442sed 's/^/| /' conftest.$ac_ext >&5
29443
29444wx_cv_func_iconv_const="yes"
29445
247f5006 29446fi
32ddf007 29447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29448
e6cc62c6
VS
29449fi
29450echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29451echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29452
29453 iconv_const=
1c405bb5 29454 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29455 iconv_const="const"
29456 fi
29457
e6cc62c6
VS
29458
29459cat >>confdefs.h <<_ACEOF
f09359cf 29460#define ICONV_CONST $iconv_const
e6cc62c6 29461_ACEOF
b040e242
VS
29462
29463 fi
29464 LIBICONV=
29465 if test "$am_cv_lib_iconv" = yes; then
29466 LIBICONV="-liconv"
29467 fi
e6cc62c6 29468
b040e242
VS
29469
29470LIBS="$LIBICONV $LIBS"
4f14bcd8 29471ac_ext=c
4f14bcd8 29472ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29475ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29476
5c6fa7d2 29477
8284b0c5 29478if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29479
29480for ac_func in sigaction
af15babd 29481do
e6cc62c6
VS
29482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29483echo "$as_me:$LINENO: checking for $ac_func" >&5
29484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29485if eval "test \"\${$as_ac_var+set}\" = set"; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487else
29488 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29489/* confdefs.h. */
29490_ACEOF
29491cat confdefs.h >>conftest.$ac_ext
29492cat >>conftest.$ac_ext <<_ACEOF
29493/* end confdefs.h. */
32ddf007
VS
29494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29496#define $ac_func innocuous_$ac_func
29497
af15babd 29498/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29499 which can conflict with char $ac_func (); below.
29500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29501 <limits.h> exists even on freestanding compilers. */
32ddf007 29502
e6cc62c6
VS
29503#ifdef __STDC__
29504# include <limits.h>
29505#else
29506# include <assert.h>
29507#endif
32ddf007
VS
29508
29509#undef $ac_func
29510
af15babd 29511/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29512#ifdef __cplusplus
29513extern "C"
29514{
29515#endif
af15babd 29516/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29517 builtin and then its argument prototype would still apply. */
29518char $ac_func ();
af15babd
VZ
29519/* The GNU C library defines this for functions which it implements
29520 to always fail with ENOSYS. Some functions are actually named
29521 something starting with __ and the normal name is an alias. */
29522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29523choke me
29524#else
e6cc62c6
VS
29525char (*f) () = $ac_func;
29526#endif
29527#ifdef __cplusplus
29528}
af15babd
VZ
29529#endif
29530
e6cc62c6
VS
29531int
29532main ()
29533{
29534return f != $ac_func;
29535 ;
29536 return 0;
29537}
29538_ACEOF
29539rm -f conftest.$ac_objext conftest$ac_exeext
29540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29541 (eval $ac_link) 2>conftest.er1
e6cc62c6 29542 ac_status=$?
32ddf007
VS
29543 grep -v '^ *+' conftest.er1 >conftest.err
29544 rm -f conftest.er1
29545 cat conftest.err >&5
e6cc62c6
VS
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); } &&
e1293dcf 29548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29550 (eval $ac_try) 2>&5
29551 ac_status=$?
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; } &&
29554 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29557 ac_status=$?
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; }; then
29560 eval "$as_ac_var=yes"
29561else
29562 echo "$as_me: failed program was:" >&5
29563sed 's/^/| /' conftest.$ac_ext >&5
29564
29565eval "$as_ac_var=no"
29566fi
32ddf007
VS
29567rm -f conftest.err conftest.$ac_objext \
29568 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29569fi
29570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29572if test `eval echo '${'$as_ac_var'}'` = yes; then
29573 cat >>confdefs.h <<_ACEOF
29574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29575_ACEOF
7b4a847f 29576
4f14bcd8
GD
29577fi
29578done
29579
8284b0c5 29580
4f14bcd8 29581 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29582 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29583echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29584 wxUSE_ON_FATAL_EXCEPTION=no
29585 fi
29586
29587 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29588
29589
29590 ac_ext=cc
5c6fa7d2 29591ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29595
5c6fa7d2 29596
e6cc62c6
VS
29597 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29598echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29599if test "${wx_cv_type_sa_handler+set}" = set; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29601else
e6cc62c6
VS
29602
29603 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
4f14bcd8 29609#include <signal.h>
e6cc62c6
VS
29610int
29611main ()
29612{
4f14bcd8
GD
29613
29614 extern void testSigHandler(int);
29615
29616 struct sigaction sa;
29617 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29618
29619 ;
29620 return 0;
29621}
29622_ACEOF
29623rm -f conftest.$ac_objext
29624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29625 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29626 ac_status=$?
32ddf007
VS
29627 grep -v '^ *+' conftest.er1 >conftest.err
29628 rm -f conftest.er1
29629 cat conftest.err >&5
e6cc62c6
VS
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
e1293dcf 29632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644
4f14bcd8 29645 wx_cv_type_sa_handler=int
e6cc62c6 29646
af15babd 29647else
e6cc62c6
VS
29648 echo "$as_me: failed program was:" >&5
29649sed 's/^/| /' conftest.$ac_ext >&5
29650
29651
4f14bcd8 29652 wx_cv_type_sa_handler=void
e6cc62c6 29653
247f5006 29654fi
32ddf007 29655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29656
e6cc62c6
VS
29657fi
29658echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29659echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29660
29661 ac_ext=c
4f14bcd8 29662ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29665ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29666
8284b0c5 29667
e6cc62c6 29668 cat >>confdefs.h <<_ACEOF
4f14bcd8 29669#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29670_ACEOF
af15babd 29671
4f14bcd8
GD
29672 fi
29673fi
af15babd 29674
e6cc62c6
VS
29675
29676
a1d22ad7 29677for ac_func in mkstemp mktemp
af15babd 29678do
e6cc62c6
VS
29679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29680echo "$as_me:$LINENO: checking for $ac_func" >&5
29681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29682if eval "test \"\${$as_ac_var+set}\" = set"; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29684else
29685 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29686/* confdefs.h. */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h. */
32ddf007
VS
29691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29693#define $ac_func innocuous_$ac_func
29694
af15babd 29695/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29696 which can conflict with char $ac_func (); below.
29697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698 <limits.h> exists even on freestanding compilers. */
32ddf007 29699
e6cc62c6
VS
29700#ifdef __STDC__
29701# include <limits.h>
29702#else
29703# include <assert.h>
29704#endif
32ddf007
VS
29705
29706#undef $ac_func
29707
af15babd 29708/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29709#ifdef __cplusplus
29710extern "C"
29711{
29712#endif
af15babd 29713/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29714 builtin and then its argument prototype would still apply. */
29715char $ac_func ();
af15babd
VZ
29716/* The GNU C library defines this for functions which it implements
29717 to always fail with ENOSYS. Some functions are actually named
29718 something starting with __ and the normal name is an alias. */
29719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29720choke me
29721#else
e6cc62c6
VS
29722char (*f) () = $ac_func;
29723#endif
29724#ifdef __cplusplus
29725}
af15babd
VZ
29726#endif
29727
e6cc62c6
VS
29728int
29729main ()
29730{
29731return f != $ac_func;
29732 ;
29733 return 0;
29734}
29735_ACEOF
29736rm -f conftest.$ac_objext conftest$ac_exeext
29737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29738 (eval $ac_link) 2>conftest.er1
e6cc62c6 29739 ac_status=$?
32ddf007
VS
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
e6cc62c6
VS
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
e1293dcf 29745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; } &&
29751 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753 (eval $ac_try) 2>&5
29754 ac_status=$?
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); }; }; then
29757 eval "$as_ac_var=yes"
29758else
29759 echo "$as_me: failed program was:" >&5
29760sed 's/^/| /' conftest.$ac_ext >&5
29761
29762eval "$as_ac_var=no"
29763fi
32ddf007
VS
29764rm -f conftest.err conftest.$ac_objext \
29765 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29766fi
29767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29769if test `eval echo '${'$as_ac_var'}'` = yes; then
29770 cat >>confdefs.h <<_ACEOF
29771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29772_ACEOF
ade35f11 29773 break
ade35f11
VZ
29774fi
29775done
29776
8284b0c5 29777
e6cc62c6
VS
29778echo "$as_me:$LINENO: checking for statfs" >&5
29779echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29780if test "${wx_cv_func_statfs+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29782else
e6cc62c6 29783 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29784/* confdefs.h. */
29785_ACEOF
29786cat confdefs.h >>conftest.$ac_ext
29787cat >>conftest.$ac_ext <<_ACEOF
29788/* end confdefs.h. */
4f14bcd8
GD
29789
29790 #if defined(__BSD__)
29791 #include <sys/param.h>
29792 #include <sys/mount.h>
29793 #else
29794 #include <sys/vfs.h>
29795 #endif
e6cc62c6
VS
29796
29797int
29798main ()
29799{
4f14bcd8
GD
29800
29801 long l;
29802 struct statfs fs;
29803 statfs("/", &fs);
29804 l = fs.f_bsize;
29805 l += fs.f_blocks;
29806 l += fs.f_bavail;
e6cc62c6
VS
29807
29808 ;
29809 return 0;
29810}
29811_ACEOF
29812rm -f conftest.$ac_objext
29813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29814 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29815 ac_status=$?
32ddf007
VS
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
e6cc62c6
VS
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
e1293dcf 29821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833
4f14bcd8 29834 wx_cv_func_statfs=yes
e6cc62c6 29835
4f14bcd8 29836else
e6cc62c6
VS
29837 echo "$as_me: failed program was:" >&5
29838sed 's/^/| /' conftest.$ac_ext >&5
29839
29840
4f14bcd8 29841 wx_cv_func_statfs=no
e6cc62c6 29842
8284b0c5 29843
247f5006 29844fi
32ddf007 29845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29846
e6cc62c6
VS
29847fi
29848echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29849echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29850
29851if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29852 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29853 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29854#define HAVE_STATFS 1
e6cc62c6 29855_ACEOF
4f14bcd8
GD
29856
29857else
e6cc62c6
VS
29858 echo "$as_me:$LINENO: checking for statvfs" >&5
29859echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29860if test "${wx_cv_func_statvfs+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29862else
e6cc62c6 29863 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29864/* confdefs.h. */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h. */
af15babd 29869
54ab82b3
VZ
29870 #include <stddef.h>
29871 #include <sys/statvfs.h>
e6cc62c6
VS
29872
29873int
29874main ()
29875{
af15babd 29876
54ab82b3 29877 statvfs("/", NULL);
e6cc62c6
VS
29878
29879 ;
29880 return 0;
29881}
29882_ACEOF
29883rm -f conftest.$ac_objext
29884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29885 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29886 ac_status=$?
32ddf007
VS
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
e6cc62c6
VS
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
e1293dcf 29892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
54ab82b3 29904 wx_cv_func_statvfs=yes
af15babd 29905else
e6cc62c6
VS
29906 echo "$as_me: failed program was:" >&5
29907sed 's/^/| /' conftest.$ac_ext >&5
29908
29909wx_cv_func_statvfs=no
29910
247f5006 29911fi
32ddf007 29912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29913
e6cc62c6
VS
29914fi
29915echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29916echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29917
4f14bcd8 29918 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29919
29920
29921 ac_ext=cc
54ab82b3 29922ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29926
29927
e6cc62c6
VS
29928 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29929echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29930if test "${wx_cv_type_statvfs_t+set}" = set; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29932else
e6cc62c6 29933 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29934/* confdefs.h. */
29935_ACEOF
29936cat confdefs.h >>conftest.$ac_ext
29937cat >>conftest.$ac_ext <<_ACEOF
29938/* end confdefs.h. */
54ab82b3
VZ
29939
29940 #include <sys/statvfs.h>
e6cc62c6
VS
29941
29942int
29943main ()
29944{
54ab82b3
VZ
29945
29946 long l;
29947 statvfs_t fs;
29948 statvfs("/", &fs);
29949 l = fs.f_bsize;
29950 l += fs.f_blocks;
29951 l += fs.f_bavail;
e6cc62c6
VS
29952
29953 ;
29954 return 0;
29955}
29956_ACEOF
29957rm -f conftest.$ac_objext
29958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29959 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29960 ac_status=$?
32ddf007
VS
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
e6cc62c6
VS
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
e1293dcf 29966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
54ab82b3
VZ
29978 wx_cv_type_statvfs_t=statvfs_t
29979else
e6cc62c6
VS
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983
29984 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29985/* confdefs.h. */
29986_ACEOF
29987cat confdefs.h >>conftest.$ac_ext
29988cat >>conftest.$ac_ext <<_ACEOF
29989/* end confdefs.h. */
54ab82b3
VZ
29990
29991 #include <sys/statvfs.h>
e6cc62c6
VS
29992
29993int
29994main ()
29995{
54ab82b3
VZ
29996
29997 long l;
65d8ef1e 29998 struct statvfs fs;
54ab82b3
VZ
29999 statvfs("/", &fs);
30000 l = fs.f_bsize;
30001 l += fs.f_blocks;
30002 l += fs.f_bavail;
e6cc62c6
VS
30003
30004 ;
30005 return 0;
30006}
30007_ACEOF
30008rm -f conftest.$ac_objext
30009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30010 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30011 ac_status=$?
32ddf007
VS
30012 grep -v '^ *+' conftest.er1 >conftest.err
30013 rm -f conftest.er1
30014 cat conftest.err >&5
e6cc62c6
VS
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
e1293dcf 30017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; } &&
30023 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
54ab82b3
VZ
30029 wx_cv_type_statvfs_t="struct statvfs"
30030else
e6cc62c6
VS
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
30034wx_cv_type_statvfs_t="unknown"
30035
54ab82b3 30036fi
32ddf007 30037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30038
30039
54ab82b3 30040fi
32ddf007 30041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 30042
e6cc62c6
VS
30043fi
30044echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30045echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
30046
30047 ac_ext=c
54ab82b3 30048ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30051ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
30052
30053
30054 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30055 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30056#define HAVE_STATVFS 1
e6cc62c6 30057_ACEOF
af15babd 30058
54ab82b3 30059 fi
4f14bcd8 30060 else
54ab82b3 30061 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
30062 fi
30063fi
af15babd 30064
54ab82b3 30065if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30066 cat >>confdefs.h <<_ACEOF
54ab82b3 30067#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 30068_ACEOF
54ab82b3
VZ
30069
30070else
e6cc62c6
VS
30071 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30072echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
30073fi
30074
4f14bcd8 30075if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
30076
30077
30078for ac_func in fcntl flock
af15babd 30079do
e6cc62c6
VS
30080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30081echo "$as_me:$LINENO: checking for $ac_func" >&5
30082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30083if eval "test \"\${$as_ac_var+set}\" = set"; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30085else
30086 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30087/* confdefs.h. */
30088_ACEOF
30089cat confdefs.h >>conftest.$ac_ext
30090cat >>conftest.$ac_ext <<_ACEOF
30091/* end confdefs.h. */
32ddf007
VS
30092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30094#define $ac_func innocuous_$ac_func
30095
af15babd 30096/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30097 which can conflict with char $ac_func (); below.
30098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30099 <limits.h> exists even on freestanding compilers. */
32ddf007 30100
e6cc62c6
VS
30101#ifdef __STDC__
30102# include <limits.h>
30103#else
30104# include <assert.h>
30105#endif
32ddf007
VS
30106
30107#undef $ac_func
30108
af15babd 30109/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30110#ifdef __cplusplus
30111extern "C"
30112{
30113#endif
af15babd 30114/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30115 builtin and then its argument prototype would still apply. */
30116char $ac_func ();
af15babd
VZ
30117/* The GNU C library defines this for functions which it implements
30118 to always fail with ENOSYS. Some functions are actually named
30119 something starting with __ and the normal name is an alias. */
30120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30121choke me
30122#else
e6cc62c6
VS
30123char (*f) () = $ac_func;
30124#endif
30125#ifdef __cplusplus
30126}
af15babd
VZ
30127#endif
30128
e6cc62c6
VS
30129int
30130main ()
30131{
30132return f != $ac_func;
30133 ;
30134 return 0;
30135}
30136_ACEOF
30137rm -f conftest.$ac_objext conftest$ac_exeext
30138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30139 (eval $ac_link) 2>conftest.er1
e6cc62c6 30140 ac_status=$?
32ddf007
VS
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
e6cc62c6
VS
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); } &&
e1293dcf 30146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 eval "$as_ac_var=yes"
30159else
30160 echo "$as_me: failed program was:" >&5
30161sed 's/^/| /' conftest.$ac_ext >&5
30162
30163eval "$as_ac_var=no"
30164fi
32ddf007
VS
30165rm -f conftest.err conftest.$ac_objext \
30166 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30167fi
30168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30170if test `eval echo '${'$as_ac_var'}'` = yes; then
30171 cat >>confdefs.h <<_ACEOF
30172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30173_ACEOF
4f14bcd8 30174 break
af15babd
VZ
30175fi
30176done
30177
8284b0c5 30178
4f14bcd8 30179 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
30180 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30181echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
30182 wxUSE_SNGLINST_CHECKER=no
30183 fi
30184fi
af15babd 30185
e6cc62c6 30186
4f14bcd8 30187for ac_func in timegm
af15babd 30188do
e6cc62c6
VS
30189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30190echo "$as_me:$LINENO: checking for $ac_func" >&5
30191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30192if eval "test \"\${$as_ac_var+set}\" = set"; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30194else
30195 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30196/* confdefs.h. */
30197_ACEOF
30198cat confdefs.h >>conftest.$ac_ext
30199cat >>conftest.$ac_ext <<_ACEOF
30200/* end confdefs.h. */
32ddf007
VS
30201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30203#define $ac_func innocuous_$ac_func
30204
af15babd 30205/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30206 which can conflict with char $ac_func (); below.
30207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30208 <limits.h> exists even on freestanding compilers. */
32ddf007 30209
e6cc62c6
VS
30210#ifdef __STDC__
30211# include <limits.h>
30212#else
30213# include <assert.h>
30214#endif
32ddf007
VS
30215
30216#undef $ac_func
30217
af15babd 30218/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30219#ifdef __cplusplus
30220extern "C"
30221{
30222#endif
af15babd 30223/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30224 builtin and then its argument prototype would still apply. */
30225char $ac_func ();
af15babd
VZ
30226/* The GNU C library defines this for functions which it implements
30227 to always fail with ENOSYS. Some functions are actually named
30228 something starting with __ and the normal name is an alias. */
247f5006
VZ
30229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30230choke me
30231#else
e6cc62c6
VS
30232char (*f) () = $ac_func;
30233#endif
30234#ifdef __cplusplus
30235}
247f5006
VZ
30236#endif
30237
e6cc62c6
VS
30238int
30239main ()
30240{
30241return f != $ac_func;
30242 ;
30243 return 0;
30244}
30245_ACEOF
30246rm -f conftest.$ac_objext conftest$ac_exeext
30247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30248 (eval $ac_link) 2>conftest.er1
e6cc62c6 30249 ac_status=$?
32ddf007
VS
30250 grep -v '^ *+' conftest.er1 >conftest.err
30251 rm -f conftest.er1
30252 cat conftest.err >&5
e6cc62c6
VS
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } &&
e1293dcf 30255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; } &&
30261 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30263 (eval $ac_try) 2>&5
30264 ac_status=$?
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); }; }; then
30267 eval "$as_ac_var=yes"
30268else
30269 echo "$as_me: failed program was:" >&5
30270sed 's/^/| /' conftest.$ac_ext >&5
30271
30272eval "$as_ac_var=no"
30273fi
32ddf007
VS
30274rm -f conftest.err conftest.$ac_objext \
30275 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30276fi
30277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30279if test `eval echo '${'$as_ac_var'}'` = yes; then
30280 cat >>confdefs.h <<_ACEOF
30281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30282_ACEOF
703e0a69 30283
af15babd
VZ
30284fi
30285done
30286
8284b0c5 30287
e6cc62c6
VS
30288
30289
4f14bcd8 30290for ac_func in putenv setenv
10f2d63a 30291do
e6cc62c6
VS
30292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293echo "$as_me:$LINENO: checking for $ac_func" >&5
30294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30295if eval "test \"\${$as_ac_var+set}\" = set"; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30297else
30298 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30299/* confdefs.h. */
30300_ACEOF
30301cat confdefs.h >>conftest.$ac_ext
30302cat >>conftest.$ac_ext <<_ACEOF
30303/* end confdefs.h. */
32ddf007
VS
30304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30306#define $ac_func innocuous_$ac_func
30307
af15babd 30308/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30309 which can conflict with char $ac_func (); below.
30310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30311 <limits.h> exists even on freestanding compilers. */
32ddf007 30312
e6cc62c6
VS
30313#ifdef __STDC__
30314# include <limits.h>
30315#else
30316# include <assert.h>
30317#endif
32ddf007
VS
30318
30319#undef $ac_func
30320
af15babd 30321/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30322#ifdef __cplusplus
30323extern "C"
30324{
30325#endif
af15babd 30326/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30327 builtin and then its argument prototype would still apply. */
30328char $ac_func ();
af15babd
VZ
30329/* The GNU C library defines this for functions which it implements
30330 to always fail with ENOSYS. Some functions are actually named
30331 something starting with __ and the normal name is an alias. */
30332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30333choke me
30334#else
e6cc62c6
VS
30335char (*f) () = $ac_func;
30336#endif
30337#ifdef __cplusplus
30338}
af15babd
VZ
30339#endif
30340
e6cc62c6
VS
30341int
30342main ()
30343{
30344return f != $ac_func;
30345 ;
30346 return 0;
30347}
30348_ACEOF
30349rm -f conftest.$ac_objext conftest$ac_exeext
30350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30351 (eval $ac_link) 2>conftest.er1
e6cc62c6 30352 ac_status=$?
32ddf007
VS
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
e6cc62c6
VS
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
e1293dcf 30358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; } &&
30364 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 eval "$as_ac_var=yes"
30371else
30372 echo "$as_me: failed program was:" >&5
30373sed 's/^/| /' conftest.$ac_ext >&5
30374
30375eval "$as_ac_var=no"
30376fi
32ddf007
VS
30377rm -f conftest.err conftest.$ac_objext \
30378 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30379fi
30380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30382if test `eval echo '${'$as_ac_var'}'` = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30385_ACEOF
4f14bcd8 30386 break
af15babd 30387fi
af15babd
VZ
30388done
30389
8284b0c5 30390
4f14bcd8
GD
30391HAVE_SOME_SLEEP_FUNC=0
30392if test "$USE_BEOS" = 1; then
e6cc62c6 30393 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30394#define HAVE_SLEEP 1
e6cc62c6 30395_ACEOF
af15babd 30396
4f14bcd8 30397 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30398fi
30399
4f14bcd8 30400if test "$USE_DARWIN" = 1; then
e6cc62c6 30401 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30402#define HAVE_USLEEP 1
e6cc62c6 30403_ACEOF
10f2d63a 30404
4f14bcd8 30405 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30406fi
30407
4f14bcd8
GD
30408if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30409 POSIX4_LINK=
e6cc62c6
VS
30410
30411for ac_func in nanosleep
4f14bcd8 30412do
e6cc62c6
VS
30413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30414echo "$as_me:$LINENO: checking for $ac_func" >&5
30415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30416if eval "test \"\${$as_ac_var+set}\" = set"; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418else
30419 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30420/* confdefs.h. */
30421_ACEOF
30422cat confdefs.h >>conftest.$ac_ext
30423cat >>conftest.$ac_ext <<_ACEOF
30424/* end confdefs.h. */
32ddf007
VS
30425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30427#define $ac_func innocuous_$ac_func
30428
4f14bcd8 30429/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30430 which can conflict with char $ac_func (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
32ddf007 30433
e6cc62c6
VS
30434#ifdef __STDC__
30435# include <limits.h>
30436#else
30437# include <assert.h>
30438#endif
32ddf007
VS
30439
30440#undef $ac_func
30441
10f2d63a 30442/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30443#ifdef __cplusplus
30444extern "C"
30445{
30446#endif
10f2d63a 30447/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30448 builtin and then its argument prototype would still apply. */
30449char $ac_func ();
4f14bcd8
GD
30450/* The GNU C library defines this for functions which it implements
30451 to always fail with ENOSYS. Some functions are actually named
30452 something starting with __ and the normal name is an alias. */
30453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30454choke me
30455#else
e6cc62c6
VS
30456char (*f) () = $ac_func;
30457#endif
30458#ifdef __cplusplus
30459}
4f14bcd8
GD
30460#endif
30461
e6cc62c6
VS
30462int
30463main ()
30464{
30465return f != $ac_func;
30466 ;
30467 return 0;
30468}
30469_ACEOF
30470rm -f conftest.$ac_objext conftest$ac_exeext
30471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30472 (eval $ac_link) 2>conftest.er1
e6cc62c6 30473 ac_status=$?
32ddf007
VS
30474 grep -v '^ *+' conftest.er1 >conftest.err
30475 rm -f conftest.er1
30476 cat conftest.err >&5
e6cc62c6
VS
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); } &&
e1293dcf 30479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481 (eval $ac_try) 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; } &&
30485 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491 eval "$as_ac_var=yes"
30492else
30493 echo "$as_me: failed program was:" >&5
30494sed 's/^/| /' conftest.$ac_ext >&5
30495
30496eval "$as_ac_var=no"
30497fi
32ddf007
VS
30498rm -f conftest.err conftest.$ac_objext \
30499 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30500fi
30501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30503if test `eval echo '${'$as_ac_var'}'` = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30506_ACEOF
30507 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30508#define HAVE_NANOSLEEP 1
e6cc62c6 30509_ACEOF
4f14bcd8 30510
10f2d63a 30511else
e6cc62c6
VS
30512
30513 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30514echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30515if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30517else
e6cc62c6 30518 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30519LIBS="-lposix4 $LIBS"
e6cc62c6 30520cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30521/* confdefs.h. */
30522_ACEOF
30523cat confdefs.h >>conftest.$ac_ext
30524cat >>conftest.$ac_ext <<_ACEOF
30525/* end confdefs.h. */
30526
10f2d63a 30527/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30528#ifdef __cplusplus
30529extern "C"
30530#endif
10f2d63a 30531/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30532 builtin and then its argument prototype would still apply. */
30533char nanosleep ();
30534int
30535main ()
30536{
30537nanosleep ();
30538 ;
30539 return 0;
30540}
30541_ACEOF
30542rm -f conftest.$ac_objext conftest$ac_exeext
30543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30544 (eval $ac_link) 2>conftest.er1
e6cc62c6 30545 ac_status=$?
32ddf007
VS
30546 grep -v '^ *+' conftest.er1 >conftest.err
30547 rm -f conftest.er1
30548 cat conftest.err >&5
e6cc62c6
VS
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); } &&
e1293dcf 30551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553 (eval $ac_try) 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; } &&
30557 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30559 (eval $ac_try) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 ac_cv_lib_posix4_nanosleep=yes
30564else
30565 echo "$as_me: failed program was:" >&5
30566sed 's/^/| /' conftest.$ac_ext >&5
30567
30568ac_cv_lib_posix4_nanosleep=no
30569fi
32ddf007
VS
30570rm -f conftest.err conftest.$ac_objext \
30571 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30572LIBS=$ac_check_lib_save_LIBS
30573fi
30574echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30575echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30576if test $ac_cv_lib_posix4_nanosleep = yes; then
30577
30578 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30579#define HAVE_NANOSLEEP 1
e6cc62c6 30580_ACEOF
4f14bcd8 30581
3d63bc3a 30582 POSIX4_LINK=" -lposix4"
e6cc62c6 30583
10f2d63a 30584else
10f2d63a 30585
e6cc62c6
VS
30586
30587for ac_func in usleep
4f14bcd8 30588do
e6cc62c6
VS
30589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30590echo "$as_me:$LINENO: checking for $ac_func" >&5
30591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30592if eval "test \"\${$as_ac_var+set}\" = set"; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30596/* confdefs.h. */
30597_ACEOF
30598cat confdefs.h >>conftest.$ac_ext
30599cat >>conftest.$ac_ext <<_ACEOF
30600/* end confdefs.h. */
32ddf007
VS
30601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30603#define $ac_func innocuous_$ac_func
30604
4f14bcd8 30605/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30606 which can conflict with char $ac_func (); below.
30607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30608 <limits.h> exists even on freestanding compilers. */
32ddf007 30609
e6cc62c6
VS
30610#ifdef __STDC__
30611# include <limits.h>
30612#else
30613# include <assert.h>
30614#endif
32ddf007
VS
30615
30616#undef $ac_func
30617
4f14bcd8 30618/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30619#ifdef __cplusplus
30620extern "C"
30621{
30622#endif
4f14bcd8 30623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30624 builtin and then its argument prototype would still apply. */
30625char $ac_func ();
4f14bcd8
GD
30626/* The GNU C library defines this for functions which it implements
30627 to always fail with ENOSYS. Some functions are actually named
30628 something starting with __ and the normal name is an alias. */
30629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30630choke me
30631#else
e6cc62c6
VS
30632char (*f) () = $ac_func;
30633#endif
30634#ifdef __cplusplus
30635}
4f14bcd8
GD
30636#endif
30637
e6cc62c6
VS
30638int
30639main ()
30640{
30641return f != $ac_func;
30642 ;
30643 return 0;
30644}
30645_ACEOF
30646rm -f conftest.$ac_objext conftest$ac_exeext
30647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30648 (eval $ac_link) 2>conftest.er1
e6cc62c6 30649 ac_status=$?
32ddf007
VS
30650 grep -v '^ *+' conftest.er1 >conftest.err
30651 rm -f conftest.er1
30652 cat conftest.err >&5
e6cc62c6
VS
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); } &&
e1293dcf 30655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30667 eval "$as_ac_var=yes"
30668else
30669 echo "$as_me: failed program was:" >&5
30670sed 's/^/| /' conftest.$ac_ext >&5
30671
30672eval "$as_ac_var=no"
30673fi
32ddf007
VS
30674rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30676fi
30677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30679if test `eval echo '${'$as_ac_var'}'` = yes; then
30680 cat >>confdefs.h <<_ACEOF
30681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30682_ACEOF
30683 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30684#define HAVE_USLEEP 1
e6cc62c6 30685_ACEOF
4f14bcd8 30686
698dcdb6 30687else
e6cc62c6
VS
30688 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30689echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30690
10f2d63a 30691fi
4f14bcd8 30692done
10f2d63a 30693
e6cc62c6
VS
30694
30695
6232543b 30696fi
10f2d63a 30697
e6cc62c6
VS
30698
30699
1e487827 30700fi
4f14bcd8 30701done
703e0a69 30702
10f2d63a
VZ
30703fi
30704
e6cc62c6
VS
30705
30706
4f14bcd8 30707for ac_func in uname gethostname
70846f0a 30708do
e6cc62c6
VS
30709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710echo "$as_me:$LINENO: checking for $ac_func" >&5
30711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30712if eval "test \"\${$as_ac_var+set}\" = set"; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30714else
30715 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30716/* confdefs.h. */
30717_ACEOF
30718cat confdefs.h >>conftest.$ac_ext
30719cat >>conftest.$ac_ext <<_ACEOF
30720/* end confdefs.h. */
32ddf007
VS
30721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30723#define $ac_func innocuous_$ac_func
30724
70846f0a 30725/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30726 which can conflict with char $ac_func (); below.
30727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728 <limits.h> exists even on freestanding compilers. */
32ddf007 30729
e6cc62c6
VS
30730#ifdef __STDC__
30731# include <limits.h>
30732#else
30733# include <assert.h>
30734#endif
32ddf007
VS
30735
30736#undef $ac_func
30737
70846f0a 30738/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30739#ifdef __cplusplus
30740extern "C"
30741{
30742#endif
70846f0a 30743/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30744 builtin and then its argument prototype would still apply. */
30745char $ac_func ();
70846f0a
VZ
30746/* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30750choke me
30751#else
e6cc62c6
VS
30752char (*f) () = $ac_func;
30753#endif
30754#ifdef __cplusplus
30755}
70846f0a
VZ
30756#endif
30757
e6cc62c6
VS
30758int
30759main ()
30760{
30761return f != $ac_func;
30762 ;
30763 return 0;
30764}
30765_ACEOF
30766rm -f conftest.$ac_objext conftest$ac_exeext
30767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30768 (eval $ac_link) 2>conftest.er1
e6cc62c6 30769 ac_status=$?
32ddf007
VS
30770 grep -v '^ *+' conftest.er1 >conftest.err
30771 rm -f conftest.er1
30772 cat conftest.err >&5
e6cc62c6
VS
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
e1293dcf 30775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; } &&
30781 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
30787 eval "$as_ac_var=yes"
30788else
30789 echo "$as_me: failed program was:" >&5
30790sed 's/^/| /' conftest.$ac_ext >&5
30791
30792eval "$as_ac_var=no"
30793fi
32ddf007
VS
30794rm -f conftest.err conftest.$ac_objext \
30795 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30796fi
30797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30799if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802_ACEOF
4f14bcd8 30803 break
70846f0a
VZ
30804fi
30805done
30806
8284b0c5
MB
30807
30808
e6cc62c6
VS
30809
30810ac_ext=cc
4f14bcd8 30811ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30815
8284b0c5 30816
4f14bcd8
GD
30817
30818for ac_func in strtok_r
10f2d63a 30819do
e6cc62c6
VS
30820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30821echo "$as_me:$LINENO: checking for $ac_func" >&5
30822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30823if eval "test \"\${$as_ac_var+set}\" = set"; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
30825else
30826 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30827/* confdefs.h. */
30828_ACEOF
30829cat confdefs.h >>conftest.$ac_ext
30830cat >>conftest.$ac_ext <<_ACEOF
30831/* end confdefs.h. */
32ddf007
VS
30832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30834#define $ac_func innocuous_$ac_func
30835
4f14bcd8 30836/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30837 which can conflict with char $ac_func (); below.
30838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30839 <limits.h> exists even on freestanding compilers. */
32ddf007 30840
e6cc62c6
VS
30841#ifdef __STDC__
30842# include <limits.h>
30843#else
30844# include <assert.h>
30845#endif
32ddf007
VS
30846
30847#undef $ac_func
30848
4f14bcd8
GD
30849/* Override any gcc2 internal prototype to avoid an error. */
30850#ifdef __cplusplus
30851extern "C"
e6cc62c6 30852{
4f14bcd8
GD
30853#endif
30854/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30855 builtin and then its argument prototype would still apply. */
30856char $ac_func ();
4f14bcd8
GD
30857/* The GNU C library defines this for functions which it implements
30858 to always fail with ENOSYS. Some functions are actually named
30859 something starting with __ and the normal name is an alias. */
30860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30861choke me
30862#else
e6cc62c6
VS
30863char (*f) () = $ac_func;
30864#endif
30865#ifdef __cplusplus
30866}
4f14bcd8
GD
30867#endif
30868
e6cc62c6
VS
30869int
30870main ()
30871{
30872return f != $ac_func;
30873 ;
30874 return 0;
30875}
30876_ACEOF
30877rm -f conftest.$ac_objext conftest$ac_exeext
30878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30879 (eval $ac_link) 2>conftest.er1
e6cc62c6 30880 ac_status=$?
32ddf007
VS
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
e6cc62c6
VS
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
e1293dcf 30886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
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); }; } &&
30892 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 eval "$as_ac_var=yes"
30899else
30900 echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
30903eval "$as_ac_var=no"
30904fi
32ddf007
VS
30905rm -f conftest.err conftest.$ac_objext \
30906 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30907fi
30908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30910if test `eval echo '${'$as_ac_var'}'` = yes; then
30911 cat >>confdefs.h <<_ACEOF
30912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30913_ACEOF
4f14bcd8 30914
10f2d63a
VZ
30915fi
30916done
30917
8284b0c5 30918
4f14bcd8 30919ac_ext=c
4f14bcd8 30920ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30923ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30924
5c6fa7d2 30925
8284b0c5 30926INET_LINK=
e6cc62c6 30927
4f14bcd8
GD
30928for ac_func in inet_addr
30929do
e6cc62c6
VS
30930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30931echo "$as_me:$LINENO: checking for $ac_func" >&5
30932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30933if eval "test \"\${$as_ac_var+set}\" = set"; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30935else
30936 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30937/* confdefs.h. */
30938_ACEOF
30939cat confdefs.h >>conftest.$ac_ext
30940cat >>conftest.$ac_ext <<_ACEOF
30941/* end confdefs.h. */
32ddf007
VS
30942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30944#define $ac_func innocuous_$ac_func
30945
4f14bcd8 30946/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30947 which can conflict with char $ac_func (); below.
30948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30949 <limits.h> exists even on freestanding compilers. */
32ddf007 30950
e6cc62c6
VS
30951#ifdef __STDC__
30952# include <limits.h>
30953#else
30954# include <assert.h>
30955#endif
32ddf007
VS
30956
30957#undef $ac_func
30958
10f2d63a 30959/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30960#ifdef __cplusplus
30961extern "C"
30962{
30963#endif
10f2d63a 30964/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30965 builtin and then its argument prototype would still apply. */
30966char $ac_func ();
4f14bcd8
GD
30967/* The GNU C library defines this for functions which it implements
30968 to always fail with ENOSYS. Some functions are actually named
30969 something starting with __ and the normal name is an alias. */
30970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30971choke me
30972#else
e6cc62c6
VS
30973char (*f) () = $ac_func;
30974#endif
30975#ifdef __cplusplus
30976}
4f14bcd8
GD
30977#endif
30978
e6cc62c6
VS
30979int
30980main ()
30981{
30982return f != $ac_func;
30983 ;
30984 return 0;
30985}
30986_ACEOF
30987rm -f conftest.$ac_objext conftest$ac_exeext
30988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30989 (eval $ac_link) 2>conftest.er1
e6cc62c6 30990 ac_status=$?
32ddf007
VS
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
e6cc62c6
VS
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
e1293dcf 30996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; } &&
31002 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; }; then
31008 eval "$as_ac_var=yes"
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013eval "$as_ac_var=no"
31014fi
32ddf007
VS
31015rm -f conftest.err conftest.$ac_objext \
31016 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31017fi
31018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31020if test `eval echo '${'$as_ac_var'}'` = yes; then
31021 cat >>confdefs.h <<_ACEOF
31022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023_ACEOF
31024 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31025#define HAVE_INET_ADDR 1
e6cc62c6 31026_ACEOF
10f2d63a
VZ
31027
31028else
e6cc62c6
VS
31029
31030 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31031echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31032if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31034else
e6cc62c6 31035 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31036LIBS="-lnsl $LIBS"
e6cc62c6 31037cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31038/* confdefs.h. */
31039_ACEOF
31040cat confdefs.h >>conftest.$ac_ext
31041cat >>conftest.$ac_ext <<_ACEOF
31042/* end confdefs.h. */
31043
10f2d63a 31044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31045#ifdef __cplusplus
31046extern "C"
31047#endif
10f2d63a 31048/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31049 builtin and then its argument prototype would still apply. */
31050char inet_addr ();
31051int
31052main ()
31053{
31054inet_addr ();
31055 ;
31056 return 0;
31057}
31058_ACEOF
31059rm -f conftest.$ac_objext conftest$ac_exeext
31060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31061 (eval $ac_link) 2>conftest.er1
e6cc62c6 31062 ac_status=$?
32ddf007
VS
31063 grep -v '^ *+' conftest.er1 >conftest.err
31064 rm -f conftest.er1
31065 cat conftest.err >&5
e6cc62c6
VS
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } &&
e1293dcf 31068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; } &&
31074 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
31080 ac_cv_lib_nsl_inet_addr=yes
31081else
31082 echo "$as_me: failed program was:" >&5
31083sed 's/^/| /' conftest.$ac_ext >&5
31084
31085ac_cv_lib_nsl_inet_addr=no
31086fi
32ddf007
VS
31087rm -f conftest.err conftest.$ac_objext \
31088 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31089LIBS=$ac_check_lib_save_LIBS
31090fi
31091echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31092echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31093if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 31094 INET_LINK="nsl"
10f2d63a 31095else
0e012a93
VZ
31096
31097 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
31098echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31099if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31101else
e6cc62c6 31102 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31103LIBS="-lresolv $LIBS"
e6cc62c6 31104cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
31110
5c6fa7d2 31111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31112#ifdef __cplusplus
31113extern "C"
31114#endif
5c6fa7d2 31115/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31116 builtin and then its argument prototype would still apply. */
31117char inet_addr ();
31118int
31119main ()
31120{
31121inet_addr ();
31122 ;
31123 return 0;
31124}
31125_ACEOF
31126rm -f conftest.$ac_objext conftest$ac_exeext
31127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31128 (eval $ac_link) 2>conftest.er1
e6cc62c6 31129 ac_status=$?
32ddf007
VS
31130 grep -v '^ *+' conftest.er1 >conftest.err
31131 rm -f conftest.er1
31132 cat conftest.err >&5
e6cc62c6
VS
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
e1293dcf 31135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; } &&
31141 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31143 (eval $ac_try) 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; }; then
31147 ac_cv_lib_resolv_inet_addr=yes
31148else
31149 echo "$as_me: failed program was:" >&5
31150sed 's/^/| /' conftest.$ac_ext >&5
31151
31152ac_cv_lib_resolv_inet_addr=no
31153fi
32ddf007
VS
31154rm -f conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31156LIBS=$ac_check_lib_save_LIBS
31157fi
31158echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31159echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31160if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 31161 INET_LINK="resolv"
698dcdb6 31162else
0e012a93
VZ
31163
31164 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
31165echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31166if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 31168else
e6cc62c6 31169 ac_check_lib_save_LIBS=$LIBS
3c011993 31170LIBS="-lsocket $LIBS"
e6cc62c6 31171cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31172/* confdefs.h. */
31173_ACEOF
31174cat confdefs.h >>conftest.$ac_ext
31175cat >>conftest.$ac_ext <<_ACEOF
31176/* end confdefs.h. */
31177
3c011993 31178/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31179#ifdef __cplusplus
31180extern "C"
31181#endif
3c011993 31182/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31183 builtin and then its argument prototype would still apply. */
31184char inet_addr ();
31185int
31186main ()
31187{
31188inet_addr ();
31189 ;
31190 return 0;
31191}
31192_ACEOF
31193rm -f conftest.$ac_objext conftest$ac_exeext
31194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31195 (eval $ac_link) 2>conftest.er1
e6cc62c6 31196 ac_status=$?
32ddf007
VS
31197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
e6cc62c6
VS
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
e1293dcf 31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_lib_socket_inet_addr=yes
31215else
31216 echo "$as_me: failed program was:" >&5
31217sed 's/^/| /' conftest.$ac_ext >&5
31218
31219ac_cv_lib_socket_inet_addr=no
31220fi
32ddf007
VS
31221rm -f conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31223LIBS=$ac_check_lib_save_LIBS
31224fi
31225echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31226echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31227if test $ac_cv_lib_socket_inet_addr = yes; then
31228 INET_LINK="socket"
4f14bcd8 31229
8284b0c5 31230fi
e6cc62c6 31231
698dcdb6 31232
0e012a93 31233
7b4a847f 31234fi
e6cc62c6
VS
31235
31236
0e012a93 31237
a0b9e27f 31238fi
579d8138 31239
e6cc62c6
VS
31240
31241
5c6fa7d2 31242fi
e6cc62c6
VS
31243done
31244
31245
31246
31247for ac_func in inet_aton
31248do
31249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31250echo "$as_me:$LINENO: checking for $ac_func" >&5
31251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31252if eval "test \"\${$as_ac_var+set}\" = set"; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31254else
31255 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31256/* confdefs.h. */
31257_ACEOF
31258cat confdefs.h >>conftest.$ac_ext
31259cat >>conftest.$ac_ext <<_ACEOF
31260/* end confdefs.h. */
32ddf007
VS
31261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31263#define $ac_func innocuous_$ac_func
31264
e6cc62c6
VS
31265/* System header to define __stub macros and hopefully few prototypes,
31266 which can conflict with char $ac_func (); below.
31267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31268 <limits.h> exists even on freestanding compilers. */
32ddf007 31269
e6cc62c6
VS
31270#ifdef __STDC__
31271# include <limits.h>
31272#else
31273# include <assert.h>
31274#endif
32ddf007
VS
31275
31276#undef $ac_func
31277
e6cc62c6
VS
31278/* Override any gcc2 internal prototype to avoid an error. */
31279#ifdef __cplusplus
31280extern "C"
31281{
31282#endif
31283/* We use char because int might match the return type of a gcc2
31284 builtin and then its argument prototype would still apply. */
31285char $ac_func ();
31286/* The GNU C library defines this for functions which it implements
31287 to always fail with ENOSYS. Some functions are actually named
31288 something starting with __ and the normal name is an alias. */
31289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31290choke me
31291#else
31292char (*f) () = $ac_func;
31293#endif
31294#ifdef __cplusplus
31295}
31296#endif
31297
31298int
31299main ()
31300{
31301return f != $ac_func;
31302 ;
31303 return 0;
31304}
31305_ACEOF
31306rm -f conftest.$ac_objext conftest$ac_exeext
31307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31308 (eval $ac_link) 2>conftest.er1
e6cc62c6 31309 ac_status=$?
32ddf007
VS
31310 grep -v '^ *+' conftest.er1 >conftest.err
31311 rm -f conftest.er1
31312 cat conftest.err >&5
e6cc62c6
VS
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
e1293dcf 31315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; }; then
31327 eval "$as_ac_var=yes"
31328else
31329 echo "$as_me: failed program was:" >&5
31330sed 's/^/| /' conftest.$ac_ext >&5
31331
31332eval "$as_ac_var=no"
31333fi
32ddf007
VS
31334rm -f conftest.err conftest.$ac_objext \
31335 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31336fi
31337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31339if test `eval echo '${'$as_ac_var'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31342_ACEOF
31343 cat >>confdefs.h <<\_ACEOF
31344#define HAVE_INET_ATON 1
31345_ACEOF
31346
31347else
31348
31349 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31350echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31351echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31352if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31354else
31355 ac_check_lib_save_LIBS=$LIBS
31356LIBS="-l$INET_LINK $LIBS"
31357cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
31363
31364/* Override any gcc2 internal prototype to avoid an error. */
31365#ifdef __cplusplus
31366extern "C"
31367#endif
31368/* We use char because int might match the return type of a gcc2
31369 builtin and then its argument prototype would still apply. */
31370char inet_aton ();
31371int
31372main ()
31373{
31374inet_aton ();
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379rm -f conftest.$ac_objext conftest$ac_exeext
31380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31381 (eval $ac_link) 2>conftest.er1
e6cc62c6 31382 ac_status=$?
32ddf007
VS
31383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
e6cc62c6
VS
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
e1293dcf 31388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 eval "$as_ac_Lib=yes"
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405eval "$as_ac_Lib=no"
31406fi
32ddf007
VS
31407rm -f conftest.err conftest.$ac_objext \
31408 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31409LIBS=$ac_check_lib_save_LIBS
31410fi
31411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31412echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31413if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31414 cat >>confdefs.h <<\_ACEOF
31415#define HAVE_INET_ATON 1
31416_ACEOF
52127426 31417
a0b9e27f 31418fi
247f5006 31419
8284b0c5 31420
698dcdb6 31421fi
4f14bcd8
GD
31422done
31423
8284b0c5 31424
e6cc62c6
VS
31425if test "x$INET_LINK" != "x"; then
31426 cat >>confdefs.h <<\_ACEOF
31427#define HAVE_INET_ADDR 1
31428_ACEOF
31429
31430 INET_LINK=" -l$INET_LINK"
31431fi
31432
31433fi
a0b9e27f 31434
a0b9e27f 31435
4f14bcd8 31436
edd891e2
VS
31437EXTRALIBS_ESD=
31438echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31439echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31440if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31442else
31443 ac_check_lib_save_LIBS=$LIBS
31444LIBS="-lesd $LIBS"
31445cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31446/* confdefs.h. */
31447_ACEOF
31448cat confdefs.h >>conftest.$ac_ext
31449cat >>conftest.$ac_ext <<_ACEOF
31450/* end confdefs.h. */
31451
31452/* Override any gcc2 internal prototype to avoid an error. */
31453#ifdef __cplusplus
31454extern "C"
31455#endif
31456/* We use char because int might match the return type of a gcc2
31457 builtin and then its argument prototype would still apply. */
31458char esd_close ();
31459int
31460main ()
31461{
31462esd_close ();
31463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest.$ac_objext conftest$ac_exeext
31468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31469 (eval $ac_link) 2>conftest.er1
edd891e2 31470 ac_status=$?
32ddf007
VS
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
edd891e2
VS
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
e1293dcf 31476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478 (eval $ac_try) 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); }; } &&
31482 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 ac_cv_lib_esd_esd_close=yes
31489else
31490 echo "$as_me: failed program was:" >&5
31491sed 's/^/| /' conftest.$ac_ext >&5
31492
31493ac_cv_lib_esd_esd_close=no
31494fi
32ddf007
VS
31495rm -f conftest.err conftest.$ac_objext \
31496 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31497LIBS=$ac_check_lib_save_LIBS
31498fi
31499echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31500echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31501if test $ac_cv_lib_esd_esd_close = yes; then
31502
31503
31504for ac_header in esd.h
31505do
31506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31507if eval "test \"\${$as_ac_Header+set}\" = set"; then
31508 echo "$as_me:$LINENO: checking for $ac_header" >&5
31509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31510if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31511 echo $ECHO_N "(cached) $ECHO_C" >&6
31512fi
edd891e2
VS
31513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31515else
31516 # Is the header compilable?
edd891e2
VS
31517echo "$as_me:$LINENO: checking $ac_header usability" >&5
31518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31519cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31520/* confdefs.h. */
31521_ACEOF
31522cat confdefs.h >>conftest.$ac_ext
31523cat >>conftest.$ac_ext <<_ACEOF
31524/* end confdefs.h. */
31525$ac_includes_default
edd891e2 31526#include <$ac_header>
e6cc62c6
VS
31527_ACEOF
31528rm -f conftest.$ac_objext
31529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31530 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31531 ac_status=$?
32ddf007
VS
31532 grep -v '^ *+' conftest.er1 >conftest.err
31533 rm -f conftest.er1
31534 cat conftest.err >&5
e6cc62c6
VS
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); } &&
e1293dcf 31537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31539 (eval $ac_try) 2>&5
31540 ac_status=$?
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); }; } &&
31543 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31545 (eval $ac_try) 2>&5
31546 ac_status=$?
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; }; then
31549 ac_header_compiler=yes
31550else
31551 echo "$as_me: failed program was:" >&5
31552sed 's/^/| /' conftest.$ac_ext >&5
31553
31554ac_header_compiler=no
31555fi
32ddf007 31556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31558echo "${ECHO_T}$ac_header_compiler" >&6
31559
31560# Is the header present?
edd891e2
VS
31561echo "$as_me:$LINENO: checking $ac_header presence" >&5
31562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31563cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31564/* confdefs.h. */
31565_ACEOF
31566cat confdefs.h >>conftest.$ac_ext
31567cat >>conftest.$ac_ext <<_ACEOF
31568/* end confdefs.h. */
edd891e2 31569#include <$ac_header>
e6cc62c6
VS
31570_ACEOF
31571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31573 ac_status=$?
31574 grep -v '^ *+' conftest.er1 >conftest.err
31575 rm -f conftest.er1
31576 cat conftest.err >&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } >/dev/null; then
31579 if test -s conftest.err; then
31580 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 31581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31582 else
31583 ac_cpp_err=
31584 fi
a0b9e27f 31585else
e6cc62c6
VS
31586 ac_cpp_err=yes
31587fi
31588if test -z "$ac_cpp_err"; then
31589 ac_header_preproc=yes
31590else
31591 echo "$as_me: failed program was:" >&5
31592sed 's/^/| /' conftest.$ac_ext >&5
31593
31594 ac_header_preproc=no
31595fi
31596rm -f conftest.err conftest.$ac_ext
31597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31598echo "${ECHO_T}$ac_header_preproc" >&6
31599
31600# So? What about this header?
32ddf007
VS
31601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31602 yes:no: )
edd891e2
VS
31603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31607 ac_header_preproc=yes
e6cc62c6 31608 ;;
32ddf007 31609 no:yes:* )
edd891e2
VS
31610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31622 (
31623 cat <<\_ASBOX
32ddf007
VS
31624## ----------------------------------------- ##
31625## Report this to wx-dev@lists.wxwindows.org ##
31626## ----------------------------------------- ##
e6cc62c6
VS
31627_ASBOX
31628 ) |
31629 sed "s/^/$as_me: WARNING: /" >&2
31630 ;;
31631esac
edd891e2
VS
31632echo "$as_me:$LINENO: checking for $ac_header" >&5
31633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31634if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31635 echo $ECHO_N "(cached) $ECHO_C" >&6
31636else
32ddf007 31637 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31638fi
edd891e2
VS
31639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31641
e6cc62c6 31642fi
edd891e2
VS
31643if test `eval echo '${'$as_ac_Header'}'` = yes; then
31644 cat >>confdefs.h <<_ACEOF
31645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31646_ACEOF
e6cc62c6 31647
edd891e2 31648 EXTRALIBS_ESD="-lesd"
4f14bcd8 31649
a0b9e27f 31650fi
247f5006 31651
edd891e2 31652done
8284b0c5 31653
4f14bcd8 31654
6232543b 31655fi
10f2d63a 31656
703e0a69 31657
8284b0c5 31658
d19d1899
MB
31659echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31660echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31661cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31662/* confdefs.h. */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h. */
31667#ifdef __linux__
31668 #include <linux/cdrom.h>
31669 #else
31670 /* For Solaris */
31671 #include <sys/cdio.h>
31672 #endif
31673
31674int
31675main ()
31676{
31677struct cdrom_tocentry entry, old_entry;
31678 ;
31679 return 0;
31680}
31681_ACEOF
31682rm -f conftest.$ac_objext
31683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31684 (eval $ac_compile) 2>conftest.er1
d19d1899 31685 ac_status=$?
32ddf007
VS
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
d19d1899
MB
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
e1293dcf 31691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31693 (eval $ac_try) 2>&5
31694 ac_status=$?
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31699 (eval $ac_try) 2>&5
31700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; }; then
31703 echo "$as_me:$LINENO: result: yes" >&5
31704echo "${ECHO_T}yes" >&6
31705 cat >>confdefs.h <<\_ACEOF
31706#define HAVE_KNOWN_CDROM_INTERFACE 1
31707_ACEOF
31708
31709else
31710 echo "$as_me: failed program was:" >&5
31711sed 's/^/| /' conftest.$ac_ext >&5
31712
31713echo "$as_me:$LINENO: result: no" >&5
31714echo "${ECHO_T}no" >&6
31715fi
32ddf007 31716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31717
31718
31719cat >confcache <<\_ACEOF
4f14bcd8
GD
31720# This file is a shell script that caches the results of configure
31721# tests run on this system so they can be shared between configure
e6cc62c6
VS
31722# scripts and configure runs, see configure's option --config-cache.
31723# It is not useful on other systems. If it contains results you don't
31724# want to keep, you may remove or edit it.
4f14bcd8 31725#
e6cc62c6
VS
31726# config.status only pays attention to the cache file if you give it
31727# the --recheck option to rerun configure.
4f14bcd8 31728#
e6cc62c6
VS
31729# `ac_cv_env_foo' variables (set or unset) will be overridden when
31730# loading this file, other *unset* `ac_cv_foo' will be assigned the
31731# following values.
31732
31733_ACEOF
31734
4f14bcd8
GD
31735# The following way of writing the cache mishandles newlines in values,
31736# but we know of no workaround that is simple, portable, and efficient.
31737# So, don't put newlines in cache variables' values.
31738# Ultrix sh set writes to stderr and can't be redirected directly,
31739# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31740{
31741 (set) 2>&1 |
31742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31743 *ac_space=\ *)
31744 # `set' does not quote correctly, so add quotes (double-quote
31745 # substitution turns \\\\ into \\, and sed turns \\ into \).
31746 sed -n \
32ddf007
VS
31747 "s/'/'\\\\''/g;
31748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31749 ;;
31750 *)
31751 # `set' quotes correctly as required by POSIX, so do not add quotes.
31752 sed -n \
32ddf007 31753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31754 ;;
31755 esac;
31756} |
31757 sed '
31758 t clear
31759 : clear
31760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31761 t end
31762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31763 : end' >>confcache
31764if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31765 if test -w $cache_file; then
e6cc62c6
VS
31766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31767 cat confcache >$cache_file
f6bcfd97 31768 else
4f14bcd8 31769 echo "not updating unwritable cache $cache_file"
f6bcfd97 31770 fi
4f14bcd8
GD
31771fi
31772rm -f confcache
f6bcfd97 31773
8284b0c5 31774
009fead0 31775CPP_MT_FLAG=
73d617c9 31776if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31777
e6cc62c6 31778
7274f1c7 31779 THREADS_LINK=
009fead0 31780 THREADS_CFLAGS=
7274f1c7
RL
31781
31782 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31783 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31784 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31785echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31786 wxUSE_THREADS="no"
31787 fi
4f14bcd8 31788 fi
4f14bcd8 31789
7274f1c7 31790 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31791
31792
009fead0
VZ
31793 THREAD_OPTS="-pthread"
31794 case "${host}" in
31795 *-*-solaris2* | *-*-sunos4* )
31796 if test "x$GCC" = "xyes"; then
126be6b4 31797 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31798 else
31799 THREAD_OPTS="-mt $THREAD_OPTS"
31800 fi
31801 ;;
31802 *-*-freebsd*)
31803 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31804 ;;
17234b26
MB
31805 *-*-darwin* | *-*-cygwin* )
31806 THREAD_OPTS=""
4101db81 31807 ;;
8f4a9a10 31808 *-*-aix*)
009fead0
VZ
31809 THREAD_OPTS="pthreads"
31810 ;;
4f5a7f74
VZ
31811 *-hp-hpux* )
31812 if test "x$GCC" != "xyes"; then
31813 THREAD_OPTS=""
31814 fi
89e3b3e4
VZ
31815 ;;
31816
31817 *-*-irix* )
31818 if test "x$GCC" = "xyes"; then
31819 THREAD_OPTS=""
31820 fi
31821 ;;
31822
31823 *-*-*UnixWare*)
31824 if test "x$GCC" != "xyes"; then
31825 THREAD_OPTS="-Ethread"
31826 fi
31827 ;;
009fead0 31828 esac
4f14bcd8 31829
02a1dfba 31830 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31831
009fead0
VZ
31832 THREADS_OK=no
31833 for flag in $THREAD_OPTS; do
31834 case $flag in
31835 none)
e6cc62c6
VS
31836 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31837echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31838 ;;
698dcdb6 31839
009fead0 31840 -*)
e6cc62c6
VS
31841 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31842echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31843 THREADS_CFLAGS="$flag"
31844 ;;
698dcdb6 31845
009fead0 31846 *)
e6cc62c6
VS
31847 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31848echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31849 THREADS_LINK="-l$flag"
31850 ;;
31851 esac
10f2d63a 31852
009fead0
VZ
31853 save_LIBS="$LIBS"
31854 save_CFLAGS="$CFLAGS"
31855 LIBS="$THREADS_LINK $LIBS"
04727afd 31856 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31857
e6cc62c6 31858 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31859/* confdefs.h. */
31860_ACEOF
31861cat confdefs.h >>conftest.$ac_ext
31862cat >>conftest.$ac_ext <<_ACEOF
31863/* end confdefs.h. */
009fead0 31864#include <pthread.h>
e6cc62c6
VS
31865int
31866main ()
31867{
009fead0 31868pthread_create(0,0,0,0);
e6cc62c6
VS
31869 ;
31870 return 0;
31871}
31872_ACEOF
31873rm -f conftest.$ac_objext conftest$ac_exeext
31874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31875 (eval $ac_link) 2>conftest.er1
e6cc62c6 31876 ac_status=$?
32ddf007
VS
31877 grep -v '^ *+' conftest.er1 >conftest.err
31878 rm -f conftest.er1
31879 cat conftest.err >&5
e6cc62c6
VS
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } &&
e1293dcf 31882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
009fead0 31894 THREADS_OK=yes
10f2d63a 31895else
e6cc62c6
VS
31896 echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
6232543b 31899fi
32ddf007
VS
31900rm -f conftest.err conftest.$ac_objext \
31901 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31902
009fead0
VZ
31903 LIBS="$save_LIBS"
31904 CFLAGS="$save_CFLAGS"
d9b9876f 31905
e6cc62c6
VS
31906 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31907echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31908 if test "x$THREADS_OK" = "xyes"; then
31909 break;
31910 fi
d9b9876f 31911
009fead0
VZ
31912 THREADS_LINK=""
31913 THREADS_CFLAGS=""
31914 done
4f14bcd8 31915
009fead0
VZ
31916 if test "x$THREADS_OK" != "xyes"; then
31917 wxUSE_THREADS=no
e6cc62c6
VS
31918 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31919echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31920 else
db82f09e
VZ
31921 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31922 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31923
e6cc62c6
VS
31924 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31925echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31926 flag=no
31927 case "${host}" in
2b5f62a0
VZ
31928 *-aix*)
31929 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31930 flag="-D_THREAD_SAFE"
31931 ;;
31932 *-freebsd*)
009fead0
VZ
31933 flag="-D_THREAD_SAFE"
31934 ;;
06313569
GD
31935 *-hp-hpux* )
31936 flag="-D_REENTRANT"
4f5a7f74
VZ
31937 if test "x$GCC" != "xyes"; then
31938 flag="$flag -D_RWSTD_MULTI_THREAD"
31939 fi
06313569 31940 ;;
009fead0
VZ
31941 *solaris* | alpha*-osf*)
31942 flag="-D_REENTRANT"
31943 ;;
31944 esac
e6cc62c6
VS
31945 echo "$as_me:$LINENO: result: ${flag}" >&5
31946echo "${ECHO_T}${flag}" >&6
009fead0 31947 if test "x$flag" != xno; then
04727afd 31948 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31949 fi
31950
009fead0 31951 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31952 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31953 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31954 fi
31955 fi
4f14bcd8 31956 fi
4f14bcd8 31957
7274f1c7 31958 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31959
31960for ac_func in thr_setconcurrency
4f14bcd8 31961do
e6cc62c6
VS
31962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31963echo "$as_me:$LINENO: checking for $ac_func" >&5
31964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31965if eval "test \"\${$as_ac_var+set}\" = set"; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967else
31968 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
32ddf007
VS
31974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31976#define $ac_func innocuous_$ac_func
31977
4f14bcd8 31978/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31979 which can conflict with char $ac_func (); below.
31980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31981 <limits.h> exists even on freestanding compilers. */
32ddf007 31982
e6cc62c6
VS
31983#ifdef __STDC__
31984# include <limits.h>
31985#else
31986# include <assert.h>
31987#endif
32ddf007
VS
31988
31989#undef $ac_func
31990
4f14bcd8 31991/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31992#ifdef __cplusplus
31993extern "C"
31994{
31995#endif
4f14bcd8 31996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31997 builtin and then its argument prototype would still apply. */
31998char $ac_func ();
4f14bcd8
GD
31999/* The GNU C library defines this for functions which it implements
32000 to always fail with ENOSYS. Some functions are actually named
32001 something starting with __ and the normal name is an alias. */
32002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32003choke me
32004#else
e6cc62c6
VS
32005char (*f) () = $ac_func;
32006#endif
32007#ifdef __cplusplus
32008}
4f14bcd8
GD
32009#endif
32010
e6cc62c6
VS
32011int
32012main ()
32013{
32014return f != $ac_func;
32015 ;
32016 return 0;
32017}
32018_ACEOF
32019rm -f conftest.$ac_objext conftest$ac_exeext
32020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32021 (eval $ac_link) 2>conftest.er1
e6cc62c6 32022 ac_status=$?
32ddf007
VS
32023 grep -v '^ *+' conftest.er1 >conftest.err
32024 rm -f conftest.er1
32025 cat conftest.err >&5
e6cc62c6
VS
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } &&
e1293dcf 32028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030 (eval $ac_try) 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036 (eval $ac_try) 2>&5
32037 ac_status=$?
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; }; then
32040 eval "$as_ac_var=yes"
32041else
32042 echo "$as_me: failed program was:" >&5
32043sed 's/^/| /' conftest.$ac_ext >&5
32044
32045eval "$as_ac_var=no"
32046fi
32ddf007
VS
32047rm -f conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32049fi
32050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32052if test `eval echo '${'$as_ac_var'}'` = yes; then
32053 cat >>confdefs.h <<_ACEOF
32054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32055_ACEOF
698dcdb6 32056
10f2d63a 32057fi
4f14bcd8 32058done
10f2d63a 32059
8284b0c5 32060
e6cc62c6
VS
32061
32062for ac_header in sched.h
4f14bcd8 32063do
e6cc62c6
VS
32064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32065if eval "test \"\${$as_ac_Header+set}\" = set"; then
32066 echo "$as_me:$LINENO: checking for $ac_header" >&5
32067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32068if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070fi
32071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32073else
32074 # Is the header compilable?
32075echo "$as_me:$LINENO: checking $ac_header usability" >&5
32076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32077cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32078/* confdefs.h. */
32079_ACEOF
32080cat confdefs.h >>conftest.$ac_ext
32081cat >>conftest.$ac_ext <<_ACEOF
32082/* end confdefs.h. */
32083$ac_includes_default
32084#include <$ac_header>
32085_ACEOF
32086rm -f conftest.$ac_objext
32087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32088 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32089 ac_status=$?
32ddf007
VS
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
e6cc62c6
VS
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
e1293dcf 32095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 ac_header_compiler=yes
32108else
32109 echo "$as_me: failed program was:" >&5
32110sed 's/^/| /' conftest.$ac_ext >&5
32111
32112ac_header_compiler=no
32113fi
32ddf007 32114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
32115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32116echo "${ECHO_T}$ac_header_compiler" >&6
32117
32118# Is the header present?
32119echo "$as_me:$LINENO: checking $ac_header presence" >&5
32120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32121cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32122/* confdefs.h. */
32123_ACEOF
32124cat confdefs.h >>conftest.$ac_ext
32125cat >>conftest.$ac_ext <<_ACEOF
32126/* end confdefs.h. */
32127#include <$ac_header>
32128_ACEOF
32129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131 ac_status=$?
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } >/dev/null; then
32137 if test -s conftest.err; then
32138 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 32139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
32140 else
32141 ac_cpp_err=
32142 fi
32143else
32144 ac_cpp_err=yes
32145fi
32146if test -z "$ac_cpp_err"; then
32147 ac_header_preproc=yes
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152 ac_header_preproc=no
32153fi
32154rm -f conftest.err conftest.$ac_ext
32155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32156echo "${ECHO_T}$ac_header_preproc" >&6
32157
32158# So? What about this header?
32ddf007
VS
32159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32160 yes:no: )
e6cc62c6
VS
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32165 ac_header_preproc=yes
e6cc62c6 32166 ;;
32ddf007 32167 no:yes:* )
e6cc62c6
VS
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
32180 (
32181 cat <<\_ASBOX
32ddf007
VS
32182## ----------------------------------------- ##
32183## Report this to wx-dev@lists.wxwindows.org ##
32184## ----------------------------------------- ##
e6cc62c6
VS
32185_ASBOX
32186 ) |
32187 sed "s/^/$as_me: WARNING: /" >&2
32188 ;;
32189esac
32190echo "$as_me:$LINENO: checking for $ac_header" >&5
32191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
32ddf007 32195 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 32196fi
e6cc62c6
VS
32197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
10f2d63a 32200fi
e6cc62c6
VS
32201if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204_ACEOF
32205
f6bcfd97 32206fi
e6cc62c6 32207
4f14bcd8 32208done
f6bcfd97 32209
009fead0 32210 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
32211 echo "$as_me:$LINENO: checking for sched_yield" >&5
32212echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32213if test "${ac_cv_func_sched_yield+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32215else
32216 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32217/* confdefs.h. */
32218_ACEOF
32219cat confdefs.h >>conftest.$ac_ext
32220cat >>conftest.$ac_ext <<_ACEOF
32221/* end confdefs.h. */
32ddf007
VS
32222/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32224#define sched_yield innocuous_sched_yield
32225
009fead0 32226/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32227 which can conflict with char sched_yield (); below.
32228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32229 <limits.h> exists even on freestanding compilers. */
32ddf007 32230
e6cc62c6
VS
32231#ifdef __STDC__
32232# include <limits.h>
32233#else
32234# include <assert.h>
32235#endif
32ddf007
VS
32236
32237#undef sched_yield
32238
4f14bcd8 32239/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32240#ifdef __cplusplus
32241extern "C"
32242{
32243#endif
4f14bcd8 32244/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32245 builtin and then its argument prototype would still apply. */
32246char sched_yield ();
009fead0
VZ
32247/* The GNU C library defines this for functions which it implements
32248 to always fail with ENOSYS. Some functions are actually named
32249 something starting with __ and the normal name is an alias. */
32250#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32251choke me
32252#else
e6cc62c6
VS
32253char (*f) () = sched_yield;
32254#endif
32255#ifdef __cplusplus
32256}
009fead0
VZ
32257#endif
32258
e6cc62c6
VS
32259int
32260main ()
32261{
32262return f != sched_yield;
32263 ;
32264 return 0;
32265}
32266_ACEOF
32267rm -f conftest.$ac_objext conftest$ac_exeext
32268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32269 (eval $ac_link) 2>conftest.er1
e6cc62c6 32270 ac_status=$?
32ddf007
VS
32271 grep -v '^ *+' conftest.er1 >conftest.err
32272 rm -f conftest.er1
32273 cat conftest.err >&5
e6cc62c6
VS
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); } &&
e1293dcf 32276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278 (eval $ac_try) 2>&5
32279 ac_status=$?
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_func_sched_yield=yes
32289else
32290 echo "$as_me: failed program was:" >&5
32291sed 's/^/| /' conftest.$ac_ext >&5
32292
32293ac_cv_func_sched_yield=no
32294fi
32ddf007
VS
32295rm -f conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32297fi
32298echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32299echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32300if test $ac_cv_func_sched_yield = yes; then
32301 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32302#define HAVE_SCHED_YIELD 1
e6cc62c6 32303_ACEOF
10f2d63a 32304
4f14bcd8 32305else
009fead0 32306
e6cc62c6
VS
32307 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32308echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32309if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 32311else
e6cc62c6 32312 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32313LIBS="-lposix4 $LIBS"
e6cc62c6 32314cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32315/* confdefs.h. */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h. */
32320
4f14bcd8 32321/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32322#ifdef __cplusplus
32323extern "C"
32324#endif
4f14bcd8 32325/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32326 builtin and then its argument prototype would still apply. */
32327char sched_yield ();
32328int
32329main ()
32330{
32331sched_yield ();
32332 ;
32333 return 0;
32334}
32335_ACEOF
32336rm -f conftest.$ac_objext conftest$ac_exeext
32337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32338 (eval $ac_link) 2>conftest.er1
e6cc62c6 32339 ac_status=$?
32ddf007
VS
32340 grep -v '^ *+' conftest.er1 >conftest.err
32341 rm -f conftest.er1
32342 cat conftest.err >&5
e6cc62c6
VS
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); } &&
e1293dcf 32345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32347 (eval $ac_try) 2>&5
32348 ac_status=$?
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); }; } &&
32351 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; }; then
32357 ac_cv_lib_posix4_sched_yield=yes
32358else
32359 echo "$as_me: failed program was:" >&5
32360sed 's/^/| /' conftest.$ac_ext >&5
32361
32362ac_cv_lib_posix4_sched_yield=no
32363fi
32ddf007
VS
32364rm -f conftest.err conftest.$ac_objext \
32365 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32366LIBS=$ac_check_lib_save_LIBS
32367fi
32368echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32369echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32370if test $ac_cv_lib_posix4_sched_yield = yes; then
32371 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32372#define HAVE_SCHED_YIELD 1
e6cc62c6 32373_ACEOF
3d63bc3a 32374 POSIX4_LINK=" -lposix4"
4f14bcd8 32375else
e6cc62c6
VS
32376 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32377echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32378
54276ccf
VZ
32379fi
32380
e6cc62c6
VS
32381
32382
4f14bcd8 32383fi
698dcdb6 32384
009fead0 32385 fi
10f2d63a 32386
7274f1c7 32387 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
32388 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32389echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32390if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392else
32393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32394/* confdefs.h. */
32395_ACEOF
32396cat confdefs.h >>conftest.$ac_ext
32397cat >>conftest.$ac_ext <<_ACEOF
32398/* end confdefs.h. */
32ddf007
VS
32399/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32401#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32402
009fead0 32403/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32404 which can conflict with char pthread_attr_getschedpolicy (); below.
32405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32406 <limits.h> exists even on freestanding compilers. */
32ddf007 32407
e6cc62c6
VS
32408#ifdef __STDC__
32409# include <limits.h>
32410#else
32411# include <assert.h>
32412#endif
32ddf007
VS
32413
32414#undef pthread_attr_getschedpolicy
32415
4f14bcd8 32416/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32417#ifdef __cplusplus
32418extern "C"
32419{
32420#endif
4f14bcd8 32421/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32422 builtin and then its argument prototype would still apply. */
32423char pthread_attr_getschedpolicy ();
009fead0
VZ
32424/* The GNU C library defines this for functions which it implements
32425 to always fail with ENOSYS. Some functions are actually named
32426 something starting with __ and the normal name is an alias. */
32427#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32428choke me
32429#else
e6cc62c6
VS
32430char (*f) () = pthread_attr_getschedpolicy;
32431#endif
32432#ifdef __cplusplus
32433}
009fead0
VZ
32434#endif
32435
e6cc62c6
VS
32436int
32437main ()
32438{
32439return f != pthread_attr_getschedpolicy;
32440 ;
32441 return 0;
32442}
32443_ACEOF
32444rm -f conftest.$ac_objext conftest$ac_exeext
32445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32446 (eval $ac_link) 2>conftest.er1
e6cc62c6 32447 ac_status=$?
32ddf007
VS
32448 grep -v '^ *+' conftest.er1 >conftest.err
32449 rm -f conftest.er1
32450 cat conftest.err >&5
e6cc62c6
VS
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } &&
e1293dcf 32453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; } &&
32459 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32462 ac_status=$?
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
32465 ac_cv_func_pthread_attr_getschedpolicy=yes
32466else
32467 echo "$as_me: failed program was:" >&5
32468sed 's/^/| /' conftest.$ac_ext >&5
32469
32470ac_cv_func_pthread_attr_getschedpolicy=no
32471fi
32ddf007
VS
32472rm -f conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32474fi
32475echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32476echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32477if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32478 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32479echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32480if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32482else
32483 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32484/* confdefs.h. */
32485_ACEOF
32486cat confdefs.h >>conftest.$ac_ext
32487cat >>conftest.$ac_ext <<_ACEOF
32488/* end confdefs.h. */
32ddf007
VS
32489/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32491#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32492
a0b9e27f 32493/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32494 which can conflict with char pthread_attr_setschedparam (); below.
32495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32496 <limits.h> exists even on freestanding compilers. */
32ddf007 32497
e6cc62c6
VS
32498#ifdef __STDC__
32499# include <limits.h>
32500#else
32501# include <assert.h>
32502#endif
32ddf007
VS
32503
32504#undef pthread_attr_setschedparam
32505
422107f9 32506/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32507#ifdef __cplusplus
32508extern "C"
32509{
32510#endif
422107f9 32511/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32512 builtin and then its argument prototype would still apply. */
32513char pthread_attr_setschedparam ();
009fead0
VZ
32514/* The GNU C library defines this for functions which it implements
32515 to always fail with ENOSYS. Some functions are actually named
32516 something starting with __ and the normal name is an alias. */
32517#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32518choke me
32519#else
e6cc62c6
VS
32520char (*f) () = pthread_attr_setschedparam;
32521#endif
32522#ifdef __cplusplus
32523}
009fead0
VZ
32524#endif
32525
e6cc62c6
VS
32526int
32527main ()
32528{
32529return f != pthread_attr_setschedparam;
32530 ;
32531 return 0;
32532}
32533_ACEOF
32534rm -f conftest.$ac_objext conftest$ac_exeext
32535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32536 (eval $ac_link) 2>conftest.er1
e6cc62c6 32537 ac_status=$?
32ddf007
VS
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
e6cc62c6
VS
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
e1293dcf 32543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 ac_cv_func_pthread_attr_setschedparam=yes
32556else
32557 echo "$as_me: failed program was:" >&5
32558sed 's/^/| /' conftest.$ac_ext >&5
32559
32560ac_cv_func_pthread_attr_setschedparam=no
32561fi
32ddf007
VS
32562rm -f conftest.err conftest.$ac_objext \
32563 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32564fi
32565echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32566echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32567if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32568 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32569echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32570if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32571 echo $ECHO_N "(cached) $ECHO_C" >&6
32572else
32573 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32574/* confdefs.h. */
32575_ACEOF
32576cat confdefs.h >>conftest.$ac_ext
32577cat >>conftest.$ac_ext <<_ACEOF
32578/* end confdefs.h. */
32ddf007
VS
32579/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32581#define sched_get_priority_max innocuous_sched_get_priority_max
32582
ef33c576 32583/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32584 which can conflict with char sched_get_priority_max (); below.
32585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32586 <limits.h> exists even on freestanding compilers. */
32ddf007 32587
e6cc62c6
VS
32588#ifdef __STDC__
32589# include <limits.h>
32590#else
32591# include <assert.h>
32592#endif
32ddf007
VS
32593
32594#undef sched_get_priority_max
32595
4f14bcd8 32596/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32597#ifdef __cplusplus
32598extern "C"
32599{
32600#endif
4f14bcd8 32601/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32602 builtin and then its argument prototype would still apply. */
32603char sched_get_priority_max ();
009fead0
VZ
32604/* The GNU C library defines this for functions which it implements
32605 to always fail with ENOSYS. Some functions are actually named
32606 something starting with __ and the normal name is an alias. */
32607#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32608choke me
32609#else
e6cc62c6
VS
32610char (*f) () = sched_get_priority_max;
32611#endif
32612#ifdef __cplusplus
32613}
009fead0
VZ
32614#endif
32615
e6cc62c6
VS
32616int
32617main ()
32618{
32619return f != sched_get_priority_max;
32620 ;
32621 return 0;
32622}
32623_ACEOF
32624rm -f conftest.$ac_objext conftest$ac_exeext
32625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32626 (eval $ac_link) 2>conftest.er1
e6cc62c6 32627 ac_status=$?
32ddf007
VS
32628 grep -v '^ *+' conftest.er1 >conftest.err
32629 rm -f conftest.er1
32630 cat conftest.err >&5
e6cc62c6
VS
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
e1293dcf 32633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635 (eval $ac_try) 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; } &&
32639 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32641 (eval $ac_try) 2>&5
32642 ac_status=$?
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 ac_cv_func_sched_get_priority_max=yes
32646else
32647 echo "$as_me: failed program was:" >&5
32648sed 's/^/| /' conftest.$ac_ext >&5
32649
32650ac_cv_func_sched_get_priority_max=no
32651fi
32ddf007
VS
32652rm -f conftest.err conftest.$ac_objext \
32653 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32654fi
32655echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32656echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32657if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32658 HAVE_PRIOR_FUNCS=1
32659else
e6cc62c6
VS
32660 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32661echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32662if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32663 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32664else
e6cc62c6 32665 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32666LIBS="-lposix4 $LIBS"
e6cc62c6 32667cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32668/* confdefs.h. */
32669_ACEOF
32670cat confdefs.h >>conftest.$ac_ext
32671cat >>conftest.$ac_ext <<_ACEOF
32672/* end confdefs.h. */
32673
422107f9 32674/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32675#ifdef __cplusplus
32676extern "C"
32677#endif
422107f9 32678/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32679 builtin and then its argument prototype would still apply. */
32680char sched_get_priority_max ();
32681int
32682main ()
32683{
32684sched_get_priority_max ();
32685 ;
32686 return 0;
32687}
32688_ACEOF
32689rm -f conftest.$ac_objext conftest$ac_exeext
32690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32691 (eval $ac_link) 2>conftest.er1
e6cc62c6 32692 ac_status=$?
32ddf007
VS
32693 grep -v '^ *+' conftest.er1 >conftest.err
32694 rm -f conftest.er1
32695 cat conftest.err >&5
e6cc62c6
VS
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } &&
e1293dcf 32698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32707 ac_status=$?
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; }; then
32710 ac_cv_lib_posix4_sched_get_priority_max=yes
32711else
32712 echo "$as_me: failed program was:" >&5
32713sed 's/^/| /' conftest.$ac_ext >&5
32714
32715ac_cv_lib_posix4_sched_get_priority_max=no
32716fi
32ddf007
VS
32717rm -f conftest.err conftest.$ac_objext \
32718 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32719LIBS=$ac_check_lib_save_LIBS
32720fi
32721echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32722echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32723if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32724
7274f1c7
RL
32725 HAVE_PRIOR_FUNCS=1
32726 POSIX4_LINK=" -lposix4"
e6cc62c6 32727
4f14bcd8 32728fi
463abc64 32729
e6cc62c6 32730
328a083c 32731fi
463abc64 32732
e6cc62c6 32733
7b4a847f 32734fi
579d8138 32735
e6cc62c6 32736
5c6fa7d2 32737fi
52127426 32738
8284b0c5 32739
7274f1c7 32740 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32741 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32742#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32743_ACEOF
463abc64 32744
7274f1c7 32745 else
e6cc62c6
VS
32746 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32747echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32748 fi
463abc64 32749
e6cc62c6
VS
32750 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32751echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32752if test "${ac_cv_func_pthread_cancel+set}" = set; then
32753 echo $ECHO_N "(cached) $ECHO_C" >&6
32754else
32755 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32756/* confdefs.h. */
32757_ACEOF
32758cat confdefs.h >>conftest.$ac_ext
32759cat >>conftest.$ac_ext <<_ACEOF
32760/* end confdefs.h. */
32ddf007
VS
32761/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32763#define pthread_cancel innocuous_pthread_cancel
32764
009fead0 32765/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32766 which can conflict with char pthread_cancel (); below.
32767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32768 <limits.h> exists even on freestanding compilers. */
32ddf007 32769
e6cc62c6
VS
32770#ifdef __STDC__
32771# include <limits.h>
32772#else
32773# include <assert.h>
32774#endif
32ddf007
VS
32775
32776#undef pthread_cancel
32777
422107f9 32778/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32779#ifdef __cplusplus
32780extern "C"
32781{
32782#endif
422107f9 32783/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32784 builtin and then its argument prototype would still apply. */
32785char pthread_cancel ();
009fead0
VZ
32786/* The GNU C library defines this for functions which it implements
32787 to always fail with ENOSYS. Some functions are actually named
32788 something starting with __ and the normal name is an alias. */
32789#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32790choke me
32791#else
e6cc62c6
VS
32792char (*f) () = pthread_cancel;
32793#endif
32794#ifdef __cplusplus
32795}
009fead0
VZ
32796#endif
32797
e6cc62c6
VS
32798int
32799main ()
32800{
32801return f != pthread_cancel;
32802 ;
32803 return 0;
32804}
32805_ACEOF
32806rm -f conftest.$ac_objext conftest$ac_exeext
32807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32808 (eval $ac_link) 2>conftest.er1
e6cc62c6 32809 ac_status=$?
32ddf007
VS
32810 grep -v '^ *+' conftest.er1 >conftest.err
32811 rm -f conftest.er1
32812 cat conftest.err >&5
e6cc62c6
VS
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } &&
e1293dcf 32815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817 (eval $ac_try) 2>&5
32818 ac_status=$?
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; } &&
32821 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32824 ac_status=$?
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; }; then
32827 ac_cv_func_pthread_cancel=yes
32828else
32829 echo "$as_me: failed program was:" >&5
32830sed 's/^/| /' conftest.$ac_ext >&5
32831
32832ac_cv_func_pthread_cancel=no
32833fi
32ddf007
VS
32834rm -f conftest.err conftest.$ac_objext \
32835 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32836fi
32837echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32838echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32839if test $ac_cv_func_pthread_cancel = yes; then
32840 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32841#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32842_ACEOF
4f14bcd8 32843
698dcdb6 32844else
e6cc62c6
VS
32845 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32846echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32847fi
32848
5c6fa7d2 32849
4f14bcd8 32850
e6cc62c6
VS
32851
32852 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32853echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32854if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32856else
e6cc62c6
VS
32857
32858 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32859/* confdefs.h. */
32860_ACEOF
32861cat confdefs.h >>conftest.$ac_ext
32862cat >>conftest.$ac_ext <<_ACEOF
32863/* end confdefs.h. */
4f14bcd8 32864#include <pthread.h>
e6cc62c6
VS
32865int
32866main ()
32867{
4f14bcd8 32868
7274f1c7
RL
32869 pthread_mutexattr_t attr;
32870 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32871
32872 ;
32873 return 0;
32874}
32875_ACEOF
32876rm -f conftest.$ac_objext
32877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32878 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32879 ac_status=$?
32ddf007
VS
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
e6cc62c6
VS
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
e1293dcf 32885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 (eval $ac_try) 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; } &&
32891 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897
7274f1c7 32898 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32899
3fed1840 32900else
e6cc62c6
VS
32901 echo "$as_me: failed program was:" >&5
32902sed 's/^/| /' conftest.$ac_ext >&5
32903
32904
7274f1c7 32905 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32906
32907
247f5006 32908fi
32ddf007 32909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32910
e6cc62c6
VS
32911fi
32912echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32913echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32914
7274f1c7 32915 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32916 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32917#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32918_ACEOF
4f14bcd8 32919
7274f1c7 32920 else
e6cc62c6
VS
32921 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32922echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32923if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32925else
32926
32927 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32928/* confdefs.h. */
32929_ACEOF
32930cat confdefs.h >>conftest.$ac_ext
32931cat >>conftest.$ac_ext <<_ACEOF
32932/* end confdefs.h. */
4f14bcd8 32933#include <pthread.h>
e6cc62c6
VS
32934int
32935main ()
32936{
4f14bcd8 32937
7274f1c7 32938 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32939
32940 ;
32941 return 0;
32942}
32943_ACEOF
32944rm -f conftest.$ac_objext
32945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32946 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32947 ac_status=$?
32ddf007
VS
32948 grep -v '^ *+' conftest.er1 >conftest.err
32949 rm -f conftest.er1
32950 cat conftest.err >&5
e6cc62c6
VS
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); } &&
e1293dcf 32953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
32954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955 (eval $ac_try) 2>&5
32956 ac_status=$?
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); }; } &&
32959 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961 (eval $ac_try) 2>&5
32962 ac_status=$?
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; }; then
32965
7274f1c7 32966 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32967
698dcdb6 32968else
e6cc62c6
VS
32969 echo "$as_me: failed program was:" >&5
32970sed 's/^/| /' conftest.$ac_ext >&5
32971
32972
7274f1c7 32973 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32974
32975
247f5006 32976fi
32ddf007 32977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32978
e6cc62c6
VS
32979fi
32980echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32981echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32982 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32983 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32984#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32985_ACEOF
3fed1840 32986
7274f1c7 32987 else
e6cc62c6
VS
32988 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32989echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32990 fi
32991 fi
7274f1c7 32992 fi
3fed1840 32993
a0b9e27f
MB
32994else
32995 if test "$wxUSE_THREADS" = "yes" ; then
32996 case "${host}" in
32997 *-*-mingw32* )
e6cc62c6
VS
32998 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32999echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33000if test "${wx_cv_cflags_mthread+set}" = set; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 33002else
e6cc62c6 33003
ca8e52b3
VZ
33004 CFLAGS_OLD="$CFLAGS"
33005 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 33006 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33007/* confdefs.h. */
33008_ACEOF
33009cat confdefs.h >>conftest.$ac_ext
33010cat >>conftest.$ac_ext <<_ACEOF
33011/* end confdefs.h. */
33012
33013int
33014main ()
33015{
ca8e52b3 33016
e6cc62c6
VS
33017 ;
33018 return 0;
33019}
33020_ACEOF
33021rm -f conftest.$ac_objext
33022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33023 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33024 ac_status=$?
32ddf007
VS
33025 grep -v '^ *+' conftest.er1 >conftest.err
33026 rm -f conftest.er1
33027 cat conftest.err >&5
e6cc62c6
VS
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); } &&
e1293dcf 33030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032 (eval $ac_try) 2>&5
33033 ac_status=$?
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); }; } &&
33036 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33038 (eval $ac_try) 2>&5
33039 ac_status=$?
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
ca8e52b3
VZ
33042 wx_cv_cflags_mthread=yes
33043else
e6cc62c6
VS
33044 echo "$as_me: failed program was:" >&5
33045sed 's/^/| /' conftest.$ac_ext >&5
33046
33047wx_cv_cflags_mthread=no
33048
ca8e52b3 33049fi
32ddf007 33050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33051
ca8e52b3 33052
e6cc62c6
VS
33053fi
33054echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33055echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
33056
33057 if test "$wx_cv_cflags_mthread" = "yes"; then
33058 CXXFLAGS="$CXXFLAGS -mthreads"
33059 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33060 LDFLAGS="$LDFLAGS -mthreads"
33061 else
33062 CFLAGS="$CFLAGS_OLD"
33063 fi
a0b9e27f 33064 ;;
73d617c9
MB
33065 *-pc-os2*emx )
33066 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33067 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33068 LDFLAGS="$LDFLAGS -Zmt"
33069 ;;
a0b9e27f
MB
33070 esac
33071 fi
4f14bcd8
GD
33072fi
33073
33074if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 33075 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33076#define wxUSE_THREADS 1
e6cc62c6 33077_ACEOF
7b6058cd 33078
8284b0c5 33079
4f14bcd8 33080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 33081else
4f14bcd8 33082 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
33083 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33084echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
33085 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33086 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
33087 echo "$as_me:$LINENO: result: yes" >&5
33088echo "${ECHO_T}yes" >&6
4f14bcd8 33089 else
e6cc62c6
VS
33090 echo "$as_me:$LINENO: result: no" >&5
33091echo "${ECHO_T}no" >&6
4f14bcd8
GD
33092 fi
33093 fi
33094fi
33095
33096if test "$WXGTK20" = 1 ; then
e6cc62c6 33097 cat >>confdefs.h <<_ACEOF
4f14bcd8 33098#define __WXGTK20__ $WXGTK20
e6cc62c6 33099_ACEOF
4f14bcd8
GD
33100
33101 WXGTK12=1
10f2d63a 33102fi
4f14bcd8
GD
33103
33104if test "$WXGTK12" = 1 ; then
e6cc62c6 33105 cat >>confdefs.h <<_ACEOF
4f14bcd8 33106#define __WXGTK12__ $WXGTK12
e6cc62c6 33107_ACEOF
4f14bcd8 33108
10f2d63a 33109fi
698dcdb6 33110
4f14bcd8 33111if test "$WXGTK127" = 1 ; then
e6cc62c6 33112 cat >>confdefs.h <<_ACEOF
4f14bcd8 33113#define __WXGTK127__ $WXGTK127
e6cc62c6 33114_ACEOF
4f14bcd8 33115
698dcdb6 33116fi
10f2d63a 33117
0f87e84c
RR
33118if test "$WXGPE" = 1 ; then
33119 cat >>confdefs.h <<_ACEOF
33120#define __WXGPE__ $WXGPE
33121_ACEOF
33122
33123fi
33124
4f14bcd8
GD
33125WXDEBUG=
33126
33127if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33128 WXDEBUG="-g"
33129 wxUSE_OPTIMISE=no
698dcdb6 33130fi
4f14bcd8
GD
33131
33132if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33133 wxUSE_DEBUG_INFO=yes
33134 WXDEBUG="-ggdb"
10f2d63a
VZ
33135fi
33136
4f14bcd8 33137if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 33138 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33139#define WXDEBUG 1
e6cc62c6 33140_ACEOF
4f14bcd8
GD
33141
33142 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 33143else
4f14bcd8
GD
33144 if test "$wxUSE_GTK" = 1 ; then
33145 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33146 fi
33147fi
33148
33149if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 33150 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33151#define wxUSE_MEMORY_TRACING 1
e6cc62c6 33152_ACEOF
4f14bcd8 33153
e6cc62c6 33154 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33155#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 33156_ACEOF
4f14bcd8 33157
e6cc62c6 33158 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33159#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 33160_ACEOF
4f14bcd8
GD
33161
33162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33163fi
33164
33165if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 33166 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
33167fi
33168
33169PROFILE=
33170if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 33171 PROFILE=" -pg"
10f2d63a
VZ
33172fi
33173
009fead0
VZ
33174CODE_GEN_FLAGS=
33175CODE_GEN_FLAGS_CXX=
88e30f2b 33176if test "$GCC" = "yes" ; then
4f14bcd8
GD
33177 if test "$wxUSE_NO_RTTI" = "yes" ; then
33178 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 33179 fi
4f14bcd8
GD
33180 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33181 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33182 fi
33183 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33184 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33185 fi
1d1b75ac 33186
2b5f62a0 33187 case "${host}" in
1d1b75ac
VZ
33188 powerpc*-*-aix* )
33189 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33190 ;;
2b5f62a0
VZ
33191 *-hppa* )
33192 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33193 ;;
1d1b75ac 33194 esac
4f14bcd8
GD
33195fi
33196
af7b5345 33197OPTIMISE=
4f14bcd8 33198if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
33199 if test "$GCC" = yes ; then
33200 OPTIMISE="-O0"
33201 fi
4f14bcd8
GD
33202else
33203 if test "$GCC" = yes ; then
33204 OPTIMISE="-O2"
af7b5345
VZ
33205
33206 case "${host}" in
4f14bcd8
GD
33207 i586-*-*|i686-*-* )
33208 OPTIMISE="${OPTIMISE} "
33209 ;;
33210 esac
33211 else
33212 OPTIMISE="-O"
33213 fi
33214fi
33215
8d90d2f2 33216
65d8ef1e 33217if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 33218 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33219#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 33220_ACEOF
4f14bcd8 33221
8d90d2f2
VZ
33222
33223 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
33224fi
33225
65d8ef1e 33226if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 33227 cat >>confdefs.h <<\_ACEOF
65d8ef1e 33228#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 33229_ACEOF
65d8ef1e
VS
33230
33231fi
33232
8284b0c5 33233
10f2d63a 33234if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 33235 cat >>confdefs.h <<\_ACEOF
10f2d63a 33236#define wxUSE_GUI 1
e6cc62c6 33237_ACEOF
10f2d63a 33238
8284b0c5 33239
10f2d63a 33240 else
e6cc62c6 33241 cat >>confdefs.h <<\_ACEOF
10f2d63a 33242#define wxUSE_NOGUI 1
e6cc62c6 33243_ACEOF
10f2d63a
VZ
33244
33245fi
33246
8284b0c5 33247
10f2d63a 33248if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 33249 cat >>confdefs.h <<\_ACEOF
10f2d63a 33250#define wxUSE_UNIX 1
e6cc62c6 33251_ACEOF
10f2d63a
VZ
33252
33253fi
33254
8284b0c5 33255
f93ca9fd 33256if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 33257
f93ca9fd
VS
33258 HAVE_DL_FUNCS=0
33259 HAVE_SHL_FUNCS=0
33260 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33261 if test "$USE_DARWIN" = 1; then
33262 HAVE_DL_FUNCS=1
33263 else
e6cc62c6 33264
f93ca9fd 33265for ac_func in dlopen
83307f33 33266do
e6cc62c6
VS
33267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33268echo "$as_me:$LINENO: checking for $ac_func" >&5
33269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33270if eval "test \"\${$as_ac_var+set}\" = set"; then
33271 echo $ECHO_N "(cached) $ECHO_C" >&6
33272else
33273 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33274/* confdefs.h. */
33275_ACEOF
33276cat confdefs.h >>conftest.$ac_ext
33277cat >>conftest.$ac_ext <<_ACEOF
33278/* end confdefs.h. */
32ddf007
VS
33279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33281#define $ac_func innocuous_$ac_func
33282
83307f33 33283/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33284 which can conflict with char $ac_func (); below.
33285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33286 <limits.h> exists even on freestanding compilers. */
32ddf007 33287
e6cc62c6
VS
33288#ifdef __STDC__
33289# include <limits.h>
33290#else
33291# include <assert.h>
33292#endif
32ddf007
VS
33293
33294#undef $ac_func
33295
83307f33 33296/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33297#ifdef __cplusplus
33298extern "C"
33299{
33300#endif
83307f33 33301/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33302 builtin and then its argument prototype would still apply. */
33303char $ac_func ();
83307f33
VZ
33304/* The GNU C library defines this for functions which it implements
33305 to always fail with ENOSYS. Some functions are actually named
33306 something starting with __ and the normal name is an alias. */
33307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33308choke me
33309#else
e6cc62c6
VS
33310char (*f) () = $ac_func;
33311#endif
33312#ifdef __cplusplus
33313}
83307f33
VZ
33314#endif
33315
e6cc62c6
VS
33316int
33317main ()
33318{
33319return f != $ac_func;
33320 ;
33321 return 0;
33322}
33323_ACEOF
33324rm -f conftest.$ac_objext conftest$ac_exeext
33325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33326 (eval $ac_link) 2>conftest.er1
e6cc62c6 33327 ac_status=$?
32ddf007
VS
33328 grep -v '^ *+' conftest.er1 >conftest.err
33329 rm -f conftest.er1
33330 cat conftest.err >&5
e6cc62c6
VS
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); } &&
e1293dcf 33333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33336 ac_status=$?
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; } &&
33339 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
33345 eval "$as_ac_var=yes"
33346else
33347 echo "$as_me: failed program was:" >&5
33348sed 's/^/| /' conftest.$ac_ext >&5
33349
33350eval "$as_ac_var=no"
33351fi
32ddf007
VS
33352rm -f conftest.err conftest.$ac_objext \
33353 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33354fi
33355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33357if test `eval echo '${'$as_ac_var'}'` = yes; then
33358 cat >>confdefs.h <<_ACEOF
33359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33360_ACEOF
83307f33 33361
f93ca9fd
VS
33362 cat >>confdefs.h <<\_ACEOF
33363#define HAVE_DLOPEN 1
e6cc62c6 33364_ACEOF
e6cc62c6 33365
f93ca9fd 33366 HAVE_DL_FUNCS=1
e6cc62c6 33367
360d6699 33368else
e6cc62c6 33369
f93ca9fd
VS
33370 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33371echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33372if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 33374else
f93ca9fd
VS
33375 ac_check_lib_save_LIBS=$LIBS
33376LIBS="-ldl $LIBS"
33377cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33378/* confdefs.h. */
33379_ACEOF
33380cat confdefs.h >>conftest.$ac_ext
33381cat >>conftest.$ac_ext <<_ACEOF
33382/* end confdefs.h. */
5357c8e8 33383
f93ca9fd
VS
33384/* Override any gcc2 internal prototype to avoid an error. */
33385#ifdef __cplusplus
33386extern "C"
33387#endif
33388/* We use char because int might match the return type of a gcc2
33389 builtin and then its argument prototype would still apply. */
33390char dlopen ();
e6cc62c6
VS
33391int
33392main ()
33393{
f93ca9fd 33394dlopen ();
e6cc62c6
VS
33395 ;
33396 return 0;
33397}
33398_ACEOF
f93ca9fd
VS
33399rm -f conftest.$ac_objext conftest$ac_exeext
33400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33401 (eval $ac_link) 2>conftest.er1
e6cc62c6 33402 ac_status=$?
32ddf007
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); } &&
e1293dcf 33408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410 (eval $ac_try) 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; } &&
33414 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33417 ac_status=$?
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
f93ca9fd 33420 ac_cv_lib_dl_dlopen=yes
360d6699 33421else
e6cc62c6
VS
33422 echo "$as_me: failed program was:" >&5
33423sed 's/^/| /' conftest.$ac_ext >&5
33424
f93ca9fd 33425ac_cv_lib_dl_dlopen=no
247f5006 33426fi
32ddf007
VS
33427rm -f conftest.err conftest.$ac_objext \
33428 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 33429LIBS=$ac_check_lib_save_LIBS
e6cc62c6 33430fi
f93ca9fd
VS
33431echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33432echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33433if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 33434
f93ca9fd
VS
33435 cat >>confdefs.h <<\_ACEOF
33436#define HAVE_DLOPEN 1
e6cc62c6 33437_ACEOF
360d6699 33438
f93ca9fd
VS
33439 HAVE_DL_FUNCS=1
33440 DL_LINK=" -ldl$DL_LINK"
698dcdb6 33441
f93ca9fd 33442else
e6cc62c6 33443
f93ca9fd
VS
33444
33445for ac_func in shl_load
afc31813 33446do
e6cc62c6
VS
33447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33448echo "$as_me:$LINENO: checking for $ac_func" >&5
33449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33450if eval "test \"\${$as_ac_var+set}\" = set"; then
33451 echo $ECHO_N "(cached) $ECHO_C" >&6
33452else
33453 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33454/* confdefs.h. */
33455_ACEOF
33456cat confdefs.h >>conftest.$ac_ext
33457cat >>conftest.$ac_ext <<_ACEOF
33458/* end confdefs.h. */
32ddf007
VS
33459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33461#define $ac_func innocuous_$ac_func
33462
afc31813 33463/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33464 which can conflict with char $ac_func (); below.
33465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33466 <limits.h> exists even on freestanding compilers. */
32ddf007 33467
e6cc62c6
VS
33468#ifdef __STDC__
33469# include <limits.h>
33470#else
33471# include <assert.h>
33472#endif
32ddf007
VS
33473
33474#undef $ac_func
33475
afc31813 33476/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33477#ifdef __cplusplus
33478extern "C"
33479{
33480#endif
afc31813 33481/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33482 builtin and then its argument prototype would still apply. */
33483char $ac_func ();
afc31813
VZ
33484/* The GNU C library defines this for functions which it implements
33485 to always fail with ENOSYS. Some functions are actually named
33486 something starting with __ and the normal name is an alias. */
33487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33488choke me
33489#else
e6cc62c6
VS
33490char (*f) () = $ac_func;
33491#endif
33492#ifdef __cplusplus
33493}
afc31813
VZ
33494#endif
33495
e6cc62c6
VS
33496int
33497main ()
33498{
33499return f != $ac_func;
33500 ;
33501 return 0;
33502}
33503_ACEOF
33504rm -f conftest.$ac_objext conftest$ac_exeext
33505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33506 (eval $ac_link) 2>conftest.er1
e6cc62c6 33507 ac_status=$?
32ddf007
VS
33508 grep -v '^ *+' conftest.er1 >conftest.err
33509 rm -f conftest.er1
33510 cat conftest.err >&5
e6cc62c6
VS
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); } &&
e1293dcf 33513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; } &&
33519 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
33525 eval "$as_ac_var=yes"
33526else
33527 echo "$as_me: failed program was:" >&5
33528sed 's/^/| /' conftest.$ac_ext >&5
33529
33530eval "$as_ac_var=no"
33531fi
32ddf007
VS
33532rm -f conftest.err conftest.$ac_objext \
33533 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33534fi
33535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33537if test `eval echo '${'$as_ac_var'}'` = yes; then
33538 cat >>confdefs.h <<_ACEOF
33539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33540_ACEOF
afc31813 33541
f93ca9fd
VS
33542 cat >>confdefs.h <<\_ACEOF
33543#define HAVE_SHL_LOAD 1
33544_ACEOF
afc31813 33545
f93ca9fd 33546 HAVE_SHL_FUNCS=1
5c6fa7d2 33547
a0b9e27f 33548else
e6cc62c6 33549
f93ca9fd
VS
33550 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33551echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33552if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554else
33555 ac_check_lib_save_LIBS=$LIBS
33556LIBS="-lshl_load $LIBS"
33557cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33558/* confdefs.h. */
33559_ACEOF
33560cat confdefs.h >>conftest.$ac_ext
33561cat >>conftest.$ac_ext <<_ACEOF
33562/* end confdefs.h. */
0470b1e6 33563
f93ca9fd
VS
33564/* Override any gcc2 internal prototype to avoid an error. */
33565#ifdef __cplusplus
33566extern "C"
33567#endif
33568/* We use char because int might match the return type of a gcc2
33569 builtin and then its argument prototype would still apply. */
33570char dld ();
e6cc62c6
VS
33571int
33572main ()
33573{
f93ca9fd 33574dld ();
e6cc62c6
VS
33575 ;
33576 return 0;
33577}
33578_ACEOF
f93ca9fd
VS
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33581 (eval $ac_link) 2>conftest.er1
e6cc62c6 33582 ac_status=$?
32ddf007
VS
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
e6cc62c6
VS
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
e1293dcf 33588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33590 (eval $ac_try) 2>&5
33591 ac_status=$?
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); }; } &&
33594 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33596 (eval $ac_try) 2>&5
33597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; }; then
f93ca9fd 33600 ac_cv_lib_shl_load_dld=yes
0470b1e6 33601else
e6cc62c6
VS
33602 echo "$as_me: failed program was:" >&5
33603sed 's/^/| /' conftest.$ac_ext >&5
33604
f93ca9fd
VS
33605ac_cv_lib_shl_load_dld=no
33606fi
32ddf007
VS
33607rm -f conftest.err conftest.$ac_objext \
33608 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33609LIBS=$ac_check_lib_save_LIBS
33610fi
33611echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33612echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33613if test $ac_cv_lib_shl_load_dld = yes; then
33614
33615 HAVE_SHL_FUNCS=1
33616 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 33617
247f5006 33618fi
f93ca9fd 33619
a0b9e27f 33620
e6cc62c6 33621fi
f93ca9fd 33622done
6232543b 33623
0470b1e6 33624
f93ca9fd
VS
33625fi
33626
3fcdd07b 33627
f93ca9fd
VS
33628fi
33629done
e6cc62c6
VS
33630
33631
f93ca9fd
VS
33632 if test "$HAVE_DL_FUNCS" = 1; then
33633
33634for ac_func in dlerror
3fcdd07b 33635do
e6cc62c6
VS
33636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637echo "$as_me:$LINENO: checking for $ac_func" >&5
33638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33639if eval "test \"\${$as_ac_var+set}\" = set"; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641else
33642 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33643/* confdefs.h. */
33644_ACEOF
33645cat confdefs.h >>conftest.$ac_ext
33646cat >>conftest.$ac_ext <<_ACEOF
33647/* end confdefs.h. */
32ddf007
VS
33648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33650#define $ac_func innocuous_$ac_func
33651
3fcdd07b 33652/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
32ddf007 33656
e6cc62c6
VS
33657#ifdef __STDC__
33658# include <limits.h>
33659#else
33660# include <assert.h>
33661#endif
32ddf007
VS
33662
33663#undef $ac_func
33664
3fcdd07b 33665/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33666#ifdef __cplusplus
33667extern "C"
33668{
33669#endif
3fcdd07b 33670/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33671 builtin and then its argument prototype would still apply. */
33672char $ac_func ();
3fcdd07b
VZ
33673/* The GNU C library defines this for functions which it implements
33674 to always fail with ENOSYS. Some functions are actually named
33675 something starting with __ and the normal name is an alias. */
33676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33677choke me
33678#else
e6cc62c6
VS
33679char (*f) () = $ac_func;
33680#endif
33681#ifdef __cplusplus
33682}
3fcdd07b
VZ
33683#endif
33684
e6cc62c6
VS
33685int
33686main ()
33687{
33688return f != $ac_func;
33689 ;
33690 return 0;
33691}
33692_ACEOF
33693rm -f conftest.$ac_objext conftest$ac_exeext
33694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33695 (eval $ac_link) 2>conftest.er1
e6cc62c6 33696 ac_status=$?
32ddf007
VS
33697 grep -v '^ *+' conftest.er1 >conftest.err
33698 rm -f conftest.er1
33699 cat conftest.err >&5
e6cc62c6
VS
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } &&
e1293dcf 33702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; } &&
33708 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; }; then
33714 eval "$as_ac_var=yes"
33715else
33716 echo "$as_me: failed program was:" >&5
33717sed 's/^/| /' conftest.$ac_ext >&5
33718
33719eval "$as_ac_var=no"
33720fi
32ddf007
VS
33721rm -f conftest.err conftest.$ac_objext \
33722 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33723fi
33724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33726if test `eval echo '${'$as_ac_var'}'` = yes; then
33727 cat >>confdefs.h <<_ACEOF
33728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33729_ACEOF
f93ca9fd
VS
33730 cat >>confdefs.h <<\_ACEOF
33731#define HAVE_DLERROR 1
33732_ACEOF
3fcdd07b 33733
f93ca9fd 33734else
698dcdb6 33735
f93ca9fd
VS
33736 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33737echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33738if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33740else
f93ca9fd
VS
33741 ac_check_lib_save_LIBS=$LIBS
33742LIBS="-ldl $LIBS"
33743cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33744/* confdefs.h. */
33745_ACEOF
33746cat confdefs.h >>conftest.$ac_ext
33747cat >>conftest.$ac_ext <<_ACEOF
33748/* end confdefs.h. */
afc31813 33749
f93ca9fd
VS
33750/* Override any gcc2 internal prototype to avoid an error. */
33751#ifdef __cplusplus
33752extern "C"
33753#endif
33754/* We use char because int might match the return type of a gcc2
33755 builtin and then its argument prototype would still apply. */
33756char dlerror ();
e6cc62c6
VS
33757int
33758main ()
33759{
f93ca9fd 33760dlerror ();
e6cc62c6
VS
33761 ;
33762 return 0;
33763}
33764_ACEOF
f93ca9fd
VS
33765rm -f conftest.$ac_objext conftest$ac_exeext
33766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33767 (eval $ac_link) 2>conftest.er1
e6cc62c6 33768 ac_status=$?
32ddf007
VS
33769 grep -v '^ *+' conftest.er1 >conftest.err
33770 rm -f conftest.er1
33771 cat conftest.err >&5
e6cc62c6
VS
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); } &&
e1293dcf 33774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
33775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33776 (eval $ac_try) 2>&5
33777 ac_status=$?
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); }; } &&
33780 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
f93ca9fd 33786 ac_cv_lib_dl_dlerror=yes
10f2d63a 33787else
e6cc62c6
VS
33788 echo "$as_me: failed program was:" >&5
33789sed 's/^/| /' conftest.$ac_ext >&5
33790
f93ca9fd
VS
33791ac_cv_lib_dl_dlerror=no
33792fi
32ddf007
VS
33793rm -f conftest.err conftest.$ac_objext \
33794 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33795LIBS=$ac_check_lib_save_LIBS
33796fi
33797echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33798echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33799if test $ac_cv_lib_dl_dlerror = yes; then
33800 cat >>confdefs.h <<\_ACEOF
33801#define HAVE_DLERROR 1
33802_ACEOF
33803
33804fi
33805
33806
33807
33808fi
33809done
33810
33811 fi
33812 fi
33813
33814 if test "$HAVE_DL_FUNCS" = 0; then
33815 if test "$HAVE_SHL_FUNCS" = 0; then
33816 if test "$USE_UNIX" = 1; then
33817 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33818echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33819 wxUSE_DYNAMIC_LOADER=no
33820 wxUSE_DYNLIB_CLASS=no
33821 else
33822 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33823echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33824 fi
33825 fi
33826 fi
33827 fi
33828fi
33829
33830if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33831 cat >>confdefs.h <<\_ACEOF
33832#define wxUSE_DYNAMIC_LOADER 1
33833_ACEOF
33834
33835fi
33836if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33837 cat >>confdefs.h <<\_ACEOF
33838#define wxUSE_DYNLIB_CLASS 1
33839_ACEOF
33840
33841fi
33842
33843
33844
33845if test "$wxUSE_PLUGINS" = "yes" ; then
33846 if test "$wxUSE_SHARED" = "no" ; then
33847 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33848echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33849 wxUSE_PLUGINS=no
33850 fi
33851 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33852 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33853echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33854 wxUSE_PLUGINS=no
33855 fi
33856 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33857 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33858echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33859 wxUSE_PLUGINS=no
33860 fi
33861 if test "$wxUSE_PLUGINS" = "yes" ; then
33862 cat >>confdefs.h <<\_ACEOF
33863#define wxUSE_PLUGINS 1
33864_ACEOF
33865
33866 fi
33867fi
33868
33869
33870if test "$wxUSE_STL" = "yes"; then
33871 cat >>confdefs.h <<\_ACEOF
33872#define wxUSE_STL 1
33873_ACEOF
33874
33875fi
33876
33877if test "$wxUSE_APPLE_IEEE" = "yes"; then
33878 cat >>confdefs.h <<\_ACEOF
33879#define wxUSE_APPLE_IEEE 1
33880_ACEOF
33881
33882fi
33883
33884if test "$wxUSE_TIMER" = "yes"; then
33885 cat >>confdefs.h <<\_ACEOF
33886#define wxUSE_TIMER 1
33887_ACEOF
33888
33889fi
33890
33891WITH_PLUGIN_SDL=0
002ed9af 33892if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
33893 if test "$USE_UNIX" = "1" ; then
33894
33895for ac_header in sys/soundcard.h
33896do
33897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33898if eval "test \"\${$as_ac_Header+set}\" = set"; then
33899 echo "$as_me:$LINENO: checking for $ac_header" >&5
33900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33901if eval "test \"\${$as_ac_Header+set}\" = set"; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903fi
33904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33906else
33907 # Is the header compilable?
33908echo "$as_me:$LINENO: checking $ac_header usability" >&5
33909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 33910cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33911/* confdefs.h. */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h. */
f93ca9fd
VS
33916$ac_includes_default
33917#include <$ac_header>
e6cc62c6
VS
33918_ACEOF
33919rm -f conftest.$ac_objext
33920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33921 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33922 ac_status=$?
32ddf007
VS
33923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
e6cc62c6
VS
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
e1293dcf 33928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
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); }; } &&
33934 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936 (eval $ac_try) 2>&5
33937 ac_status=$?
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; }; then
f93ca9fd 33940 ac_header_compiler=yes
10f2d63a 33941else
e6cc62c6
VS
33942 echo "$as_me: failed program was:" >&5
33943sed 's/^/| /' conftest.$ac_ext >&5
33944
f93ca9fd 33945ac_header_compiler=no
10f2d63a 33946fi
32ddf007 33947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
33948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33949echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 33950
f93ca9fd
VS
33951# Is the header present?
33952echo "$as_me:$LINENO: checking $ac_header presence" >&5
33953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33954cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33955/* confdefs.h. */
33956_ACEOF
33957cat confdefs.h >>conftest.$ac_ext
33958cat >>conftest.$ac_ext <<_ACEOF
33959/* end confdefs.h. */
f93ca9fd 33960#include <$ac_header>
e6cc62c6 33961_ACEOF
f93ca9fd
VS
33962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 33964 ac_status=$?
f95e4495
VS
33965 grep -v '^ *+' conftest.er1 >conftest.err
33966 rm -f conftest.er1
33967 cat conftest.err >&5
e6cc62c6 33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
33969 (exit $ac_status); } >/dev/null; then
33970 if test -s conftest.err; then
33971 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 33972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
33973 else
33974 ac_cpp_err=
33975 fi
33976else
33977 ac_cpp_err=yes
33978fi
33979if test -z "$ac_cpp_err"; then
33980 ac_header_preproc=yes
33981else
33982 echo "$as_me: failed program was:" >&5
33983sed 's/^/| /' conftest.$ac_ext >&5
33984
33985 ac_header_preproc=no
33986fi
33987rm -f conftest.err conftest.$ac_ext
33988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33989echo "${ECHO_T}$ac_header_preproc" >&6
33990
33991# So? What about this header?
32ddf007
VS
33992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33993 yes:no: )
f93ca9fd
VS
33994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
33996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33998 ac_header_preproc=yes
f93ca9fd 33999 ;;
32ddf007 34000 no:yes:* )
f93ca9fd
VS
34001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
34003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
34009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
34011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
34013 (
34014 cat <<\_ASBOX
32ddf007
VS
34015## ----------------------------------------- ##
34016## Report this to wx-dev@lists.wxwindows.org ##
34017## ----------------------------------------- ##
f93ca9fd
VS
34018_ASBOX
34019 ) |
34020 sed "s/^/$as_me: WARNING: /" >&2
34021 ;;
34022esac
34023echo "$as_me:$LINENO: checking for $ac_header" >&5
34024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34025if eval "test \"\${$as_ac_Header+set}\" = set"; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027else
32ddf007 34028 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
34029fi
34030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34032
34033fi
34034if test `eval echo '${'$as_ac_Header'}'` = yes; then
34035 cat >>confdefs.h <<_ACEOF
34036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34037_ACEOF
34038
34039fi
34040
34041done
34042
34043
34044 if test "$wxUSE_LIBSDL" != "no"; then
34045
34046# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34047if test "${with_sdl_prefix+set}" = set; then
34048 withval="$with_sdl_prefix"
34049 sdl_prefix="$withval"
34050else
34051 sdl_prefix=""
34052fi;
34053
34054# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34055if test "${with_sdl_exec_prefix+set}" = set; then
34056 withval="$with_sdl_exec_prefix"
34057 sdl_exec_prefix="$withval"
34058else
34059 sdl_exec_prefix=""
34060fi;
34061# Check whether --enable-sdltest or --disable-sdltest was given.
34062if test "${enable_sdltest+set}" = set; then
34063 enableval="$enable_sdltest"
34064
34065else
34066 enable_sdltest=yes
34067fi;
34068
34069 if test x$sdl_exec_prefix != x ; then
34070 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34071 if test x${SDL_CONFIG+set} != xset ; then
34072 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34073 fi
34074 fi
34075 if test x$sdl_prefix != x ; then
34076 sdl_args="$sdl_args --prefix=$sdl_prefix"
34077 if test x${SDL_CONFIG+set} != xset ; then
34078 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34079 fi
34080 fi
34081
34082
34083 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34084 # Extract the first word of "sdl-config", so it can be a program name with args.
34085set dummy sdl-config; ac_word=$2
34086echo "$as_me:$LINENO: checking for $ac_word" >&5
34087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34088if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34090else
34091 case $SDL_CONFIG in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
34101 for ac_exec_ext in '' $ac_executable_extensions; do
34102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34103 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34105 break 2
34106 fi
34107done
34108done
34109
34110 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34111 ;;
34112esac
34113fi
34114SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34115
34116if test -n "$SDL_CONFIG"; then
34117 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34118echo "${ECHO_T}$SDL_CONFIG" >&6
34119else
34120 echo "$as_me:$LINENO: result: no" >&5
34121echo "${ECHO_T}no" >&6
34122fi
34123
34124 min_sdl_version=1.2.0
34125 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34126echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34127 no_sdl=""
34128 if test "$SDL_CONFIG" = "no" ; then
34129 no_sdl=yes
34130 else
34131 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34132 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34133
34134 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34136 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34138 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34140 if test "x$enable_sdltest" = "xyes" ; then
34141 ac_save_CFLAGS="$CFLAGS"
34142 ac_save_LIBS="$LIBS"
34143 CFLAGS="$CFLAGS $SDL_CFLAGS"
34144 LIBS="$LIBS $SDL_LIBS"
34145 rm -f conf.sdltest
34146 if test "$cross_compiling" = yes; then
34147 echo $ac_n "cross compiling; assumed OK... $ac_c"
34148else
34149 cat >conftest.$ac_ext <<_ACEOF
34150/* confdefs.h. */
34151_ACEOF
34152cat confdefs.h >>conftest.$ac_ext
34153cat >>conftest.$ac_ext <<_ACEOF
34154/* end confdefs.h. */
34155
34156#include <stdio.h>
34157#include <stdlib.h>
34158#include <string.h>
34159#include "SDL.h"
34160
34161char*
34162my_strdup (char *str)
34163{
34164 char *new_str;
34165
34166 if (str)
34167 {
34168 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34169 strcpy (new_str, str);
34170 }
34171 else
34172 new_str = NULL;
34173
34174 return new_str;
34175}
34176
34177int main (int argc, char *argv[])
34178{
34179 int major, minor, micro;
34180 char *tmp_version;
34181
34182 /* This hangs on some systems (?)
34183 system ("touch conf.sdltest");
34184 */
34185 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34186
34187 /* HP/UX 9 (%@#!) writes to sscanf strings */
34188 tmp_version = my_strdup("$min_sdl_version");
34189 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34190 printf("%s, bad version string\n", "$min_sdl_version");
34191 exit(1);
34192 }
34193
34194 if (($sdl_major_version > major) ||
34195 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34196 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34197 {
34198 return 0;
34199 }
34200 else
34201 {
34202 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34203 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34204 printf("*** best to upgrade to the required version.\n");
34205 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34206 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34207 printf("*** config.cache before re-running configure\n");
34208 return 1;
34209 }
34210}
34211
34212
34213_ACEOF
34214rm -f conftest$ac_exeext
34215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34216 (eval $ac_link) 2>&5
f95e4495
VS
34217 ac_status=$?
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; }; then
f93ca9fd 34225 :
e6cc62c6 34226else
f93ca9fd
VS
34227 echo "$as_me: program exited with status $ac_status" >&5
34228echo "$as_me: failed program was:" >&5
e6cc62c6
VS
34229sed 's/^/| /' conftest.$ac_ext >&5
34230
f93ca9fd
VS
34231( exit $ac_status )
34232no_sdl=yes
e6cc62c6 34233fi
32ddf007 34234rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34235fi
f93ca9fd
VS
34236 CFLAGS="$ac_save_CFLAGS"
34237 LIBS="$ac_save_LIBS"
34238 fi
34239 fi
34240 if test "x$no_sdl" = x ; then
34241 echo "$as_me:$LINENO: result: yes" >&5
34242echo "${ECHO_T}yes" >&6
0e012a93 34243
f93ca9fd
VS
34244 EXTRALIBS_SDL="$SDL_LIBS"
34245 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34246 cat >>confdefs.h <<\_ACEOF
34247#define wxUSE_LIBSDL 1
34248_ACEOF
34249
34250
34251 else
34252 echo "$as_me:$LINENO: result: no" >&5
34253echo "${ECHO_T}no" >&6
34254 if test "$SDL_CONFIG" = "no" ; then
34255 echo "*** The sdl-config script installed by SDL could not be found"
34256 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34257 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34258 echo "*** full path to sdl-config."
34259 else
34260 if test -f conf.sdltest ; then
34261 :
34262 else
34263 echo "*** Could not run SDL test program, checking why..."
34264 CFLAGS="$CFLAGS $SDL_CFLAGS"
34265 LIBS="$LIBS $SDL_LIBS"
34266 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
34272
f93ca9fd
VS
34273#include <stdio.h>
34274#include "SDL.h"
34275
34276int main(int argc, char *argv[])
34277{ return 0; }
34278#undef main
34279#define main K_and_R_C_main
34280
e6cc62c6
VS
34281int
34282main ()
34283{
f93ca9fd 34284 return 0;
e6cc62c6
VS
34285 ;
34286 return 0;
34287}
34288_ACEOF
34289rm -f conftest.$ac_objext conftest$ac_exeext
34290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34291 (eval $ac_link) 2>conftest.er1
e6cc62c6 34292 ac_status=$?
32ddf007
VS
34293 grep -v '^ *+' conftest.er1 >conftest.err
34294 rm -f conftest.er1
34295 cat conftest.err >&5
e6cc62c6
VS
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); } &&
e1293dcf 34298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; } &&
34304 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34307 ac_status=$?
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; }; then
f93ca9fd
VS
34310 echo "*** The test program compiled, but did not run. This usually means"
34311 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34312 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34313 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34314 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34315 echo "*** is required on your system"
34316 echo "***"
34317 echo "*** If you have an old version installed, it is best to remove it, although"
34318 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
34319else
34320 echo "$as_me: failed program was:" >&5
34321sed 's/^/| /' conftest.$ac_ext >&5
34322
f93ca9fd
VS
34323 echo "*** The test program failed to compile or link. See the file config.log for the"
34324 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34325 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34326 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 34327fi
32ddf007
VS
34328rm -f conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34330 CFLAGS="$ac_save_CFLAGS"
34331 LIBS="$ac_save_LIBS"
34332 fi
34333 fi
34334 SDL_CFLAGS=""
34335 SDL_LIBS=""
34336 wxUSE_LIBSDL="no"
34337 fi
34338
34339
34340 rm -f conf.sdltest
34341
34342 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34343 WITH_PLUGIN_SDL=1
34344 fi
34345 fi
34346 fi
34347
34348 cat >>confdefs.h <<\_ACEOF
002ed9af 34349#define wxUSE_SOUND 1
f93ca9fd
VS
34350_ACEOF
34351
34352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 34353fi
afc31813 34354
f93ca9fd
VS
34355if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34356 cat >>confdefs.h <<\_ACEOF
34357#define wxUSE_CMDLINE_PARSER 1
34358_ACEOF
34359
34360fi
e6cc62c6 34361
f93ca9fd
VS
34362if test "$wxUSE_STOPWATCH" = "yes"; then
34363 cat >>confdefs.h <<\_ACEOF
34364#define wxUSE_STOPWATCH 1
34365_ACEOF
e6cc62c6 34366
6232543b 34367fi
b089607b 34368
f93ca9fd
VS
34369if test "$wxUSE_DATETIME" = "yes"; then
34370 cat >>confdefs.h <<\_ACEOF
34371#define wxUSE_DATETIME 1
34372_ACEOF
e6cc62c6 34373
f93ca9fd
VS
34374fi
34375
34376if test "$wxUSE_FILE" = "yes"; then
34377 cat >>confdefs.h <<\_ACEOF
34378#define wxUSE_FILE 1
34379_ACEOF
0e012a93 34380
1e487827 34381fi
afc31813 34382
f93ca9fd
VS
34383if test "$wxUSE_FFILE" = "yes"; then
34384 cat >>confdefs.h <<\_ACEOF
34385#define wxUSE_FFILE 1
34386_ACEOF
34387
34388fi
34389
34390if test "$wxUSE_FILESYSTEM" = "yes"; then
34391 cat >>confdefs.h <<\_ACEOF
34392#define wxUSE_FILESYSTEM 1
34393_ACEOF
34394
34395fi
34396
34397if test "$wxUSE_FS_ZIP" = "yes"; then
34398 cat >>confdefs.h <<\_ACEOF
34399#define wxUSE_FS_ZIP 1
34400_ACEOF
34401
34402fi
34403
34404if test "$wxUSE_ZIPSTREAM" = "yes"; then
34405 cat >>confdefs.h <<\_ACEOF
34406#define wxUSE_ZIPSTREAM 1
34407_ACEOF
34408
34409fi
34410
34411if test "$wxUSE_GZSTREAM" = "yes"; then
34412 cat >>confdefs.h <<\_ACEOF
34413#define wxUSE_GZSTREAM 1
34414_ACEOF
34415
34416fi
34417
34418if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34419 cat >>confdefs.h <<\_ACEOF
34420#define wxUSE_ON_FATAL_EXCEPTION 1
34421_ACEOF
34422
34423fi
34424
34425if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34426 cat >>confdefs.h <<\_ACEOF
34427#define wxUSE_SNGLINST_CHECKER 1
34428_ACEOF
34429
34430fi
34431
34432if test "$wxUSE_BUSYINFO" = "yes"; then
34433 cat >>confdefs.h <<\_ACEOF
34434#define wxUSE_BUSYINFO 1
34435_ACEOF
34436
34437fi
34438
34439if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34440 cat >>confdefs.h <<\_ACEOF
34441#define wxUSE_STD_IOSTREAM 1
34442_ACEOF
34443
34444fi
34445
34446if test "$wxUSE_TEXTBUFFER" = "yes"; then
34447 cat >>confdefs.h <<\_ACEOF
34448#define wxUSE_TEXTBUFFER 1
34449_ACEOF
34450
34451fi
34452
34453if test "$wxUSE_TEXTFILE" = "yes"; then
34454 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34455 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34456echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34457 else
34458 cat >>confdefs.h <<\_ACEOF
34459#define wxUSE_TEXTFILE 1
34460_ACEOF
34461
34462 fi
34463fi
34464
34465if test "$wxUSE_CONFIG" = "yes" ; then
34466 if test "$wxUSE_TEXTFILE" != "yes"; then
34467 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34468echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34469 else
34470 cat >>confdefs.h <<\_ACEOF
34471#define wxUSE_CONFIG 1
34472_ACEOF
34473
34474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34475 fi
34476fi
34477
34478if test "$wxUSE_INTL" = "yes" ; then
34479 if test "$wxUSE_FILE" != "yes"; then
34480 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34481echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34482 else
34483 cat >>confdefs.h <<\_ACEOF
34484#define wxUSE_INTL 1
34485_ACEOF
34486
34487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34488 GUIDIST="$GUIDIST INTL_DIST"
34489 fi
34490fi
34491
34492if test "$wxUSE_LOG" = "yes"; then
34493 cat >>confdefs.h <<\_ACEOF
34494#define wxUSE_LOG 1
34495_ACEOF
34496
34497
34498 if test "$wxUSE_LOGGUI" = "yes"; then
34499 cat >>confdefs.h <<\_ACEOF
34500#define wxUSE_LOGGUI 1
34501_ACEOF
34502
34503 fi
34504
34505 if test "$wxUSE_LOGWINDOW" = "yes"; then
34506 cat >>confdefs.h <<\_ACEOF
34507#define wxUSE_LOGWINDOW 1
34508_ACEOF
34509
34510 fi
34511
34512 if test "$wxUSE_LOGDIALOG" = "yes"; then
34513 cat >>confdefs.h <<\_ACEOF
34514#define wxUSE_LOG_DIALOG 1
34515_ACEOF
34516
3a922bb4 34517 fi
0feee163 34518fi
51a9faba 34519
f93ca9fd
VS
34520if test "$wxUSE_LONGLONG" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522#define wxUSE_LONGLONG 1
34523_ACEOF
e6cc62c6 34524
f93ca9fd
VS
34525fi
34526
34527if test "$wxUSE_GEOMETRY" = "yes"; then
34528 cat >>confdefs.h <<\_ACEOF
34529#define wxUSE_GEOMETRY 1
e6cc62c6 34530_ACEOF
51a9faba 34531
f93ca9fd 34532fi
e6cc62c6 34533
f93ca9fd
VS
34534if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34535 cat >>confdefs.h <<\_ACEOF
34536#define wxUSE_DIALUP_MANAGER 1
34537_ACEOF
51a9faba 34538
f93ca9fd
VS
34539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34540fi
e6cc62c6 34541
f93ca9fd
VS
34542if test "$wxUSE_STREAMS" = "yes" ; then
34543 cat >>confdefs.h <<\_ACEOF
34544#define wxUSE_STREAMS 1
e6cc62c6 34545_ACEOF
e6cc62c6 34546
f93ca9fd 34547fi
e6cc62c6 34548
9711d31e 34549
f93ca9fd
VS
34550if test "$wxUSE_DATETIME" = "yes"; then
34551
34552for ac_func in strptime
34553do
34554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34555echo "$as_me:$LINENO: checking for $ac_func" >&5
34556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34557if eval "test \"\${$as_ac_var+set}\" = set"; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34559else
34560 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34561/* confdefs.h. */
34562_ACEOF
34563cat confdefs.h >>conftest.$ac_ext
34564cat >>conftest.$ac_ext <<_ACEOF
34565/* end confdefs.h. */
32ddf007
VS
34566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34568#define $ac_func innocuous_$ac_func
34569
f93ca9fd
VS
34570/* System header to define __stub macros and hopefully few prototypes,
34571 which can conflict with char $ac_func (); below.
34572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34573 <limits.h> exists even on freestanding compilers. */
32ddf007 34574
f93ca9fd
VS
34575#ifdef __STDC__
34576# include <limits.h>
34577#else
34578# include <assert.h>
34579#endif
32ddf007
VS
34580
34581#undef $ac_func
34582
f93ca9fd
VS
34583/* Override any gcc2 internal prototype to avoid an error. */
34584#ifdef __cplusplus
34585extern "C"
34586{
34587#endif
34588/* We use char because int might match the return type of a gcc2
34589 builtin and then its argument prototype would still apply. */
34590char $ac_func ();
34591/* The GNU C library defines this for functions which it implements
34592 to always fail with ENOSYS. Some functions are actually named
34593 something starting with __ and the normal name is an alias. */
34594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34595choke me
34596#else
34597char (*f) () = $ac_func;
34598#endif
34599#ifdef __cplusplus
34600}
34601#endif
e6cc62c6
VS
34602
34603int
34604main ()
34605{
f93ca9fd 34606return f != $ac_func;
e6cc62c6
VS
34607 ;
34608 return 0;
34609}
34610_ACEOF
f93ca9fd
VS
34611rm -f conftest.$ac_objext conftest$ac_exeext
34612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34613 (eval $ac_link) 2>conftest.er1
e6cc62c6 34614 ac_status=$?
32ddf007
VS
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
e6cc62c6
VS
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } &&
e1293dcf 34620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 (eval $ac_try) 2>&5
34623 ac_status=$?
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; } &&
34626 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; }; then
f93ca9fd 34632 eval "$as_ac_var=yes"
afc31813 34633else
e6cc62c6
VS
34634 echo "$as_me: failed program was:" >&5
34635sed 's/^/| /' conftest.$ac_ext >&5
34636
f93ca9fd
VS
34637eval "$as_ac_var=no"
34638fi
32ddf007
VS
34639rm -f conftest.err conftest.$ac_objext \
34640 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34641fi
34642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34644if test `eval echo '${'$as_ac_var'}'` = yes; then
34645 cat >>confdefs.h <<_ACEOF
34646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34647_ACEOF
34648
34649fi
34650done
34651
34652
34653 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34654echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34655if test "${wx_cv_var_timezone+set}" = set; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657else
34658
34659 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34660/* confdefs.h. */
34661_ACEOF
34662cat confdefs.h >>conftest.$ac_ext
34663cat >>conftest.$ac_ext <<_ACEOF
34664/* end confdefs.h. */
51a9faba 34665
f93ca9fd 34666 #include <time.h>
e6cc62c6
VS
34667
34668int
34669main ()
34670{
51a9faba 34671
f93ca9fd
VS
34672 int tz;
34673 tz = timezone;
e6cc62c6
VS
34674
34675 ;
34676 return 0;
34677}
34678_ACEOF
34679rm -f conftest.$ac_objext
34680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34681 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34682 ac_status=$?
32ddf007
VS
34683 grep -v '^ *+' conftest.er1 >conftest.err
34684 rm -f conftest.er1
34685 cat conftest.err >&5
e6cc62c6
VS
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } &&
e1293dcf 34688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; } &&
34694 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696 (eval $ac_try) 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
8284b0c5 34700
f93ca9fd 34701 wx_cv_var_timezone=timezone
dc3d889d 34702
f93ca9fd
VS
34703else
34704 echo "$as_me: failed program was:" >&5
34705sed 's/^/| /' conftest.$ac_ext >&5
156b2523 34706
e6cc62c6 34707
f93ca9fd 34708 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34709/* confdefs.h. */
34710_ACEOF
34711cat confdefs.h >>conftest.$ac_ext
34712cat >>conftest.$ac_ext <<_ACEOF
34713/* end confdefs.h. */
f93ca9fd
VS
34714
34715 #include <time.h>
34716
34717int
34718main ()
34719{
34720
34721 int tz;
34722 tz = _timezone;
34723
34724 ;
34725 return 0;
34726}
e6cc62c6
VS
34727_ACEOF
34728rm -f conftest.$ac_objext
34729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34730 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34731 ac_status=$?
32ddf007
VS
34732 grep -v '^ *+' conftest.er1 >conftest.err
34733 rm -f conftest.er1
34734 cat conftest.err >&5
e6cc62c6
VS
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); } &&
e1293dcf 34737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; } &&
34743 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34745 (eval $ac_try) 2>&5
34746 ac_status=$?
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); }; }; then
f93ca9fd
VS
34749
34750 wx_cv_var_timezone=_timezone
34751
e6cc62c6
VS
34752else
34753 echo "$as_me: failed program was:" >&5
34754sed 's/^/| /' conftest.$ac_ext >&5
34755
e6cc62c6 34756
f93ca9fd 34757 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34758/* confdefs.h. */
34759_ACEOF
34760cat confdefs.h >>conftest.$ac_ext
34761cat >>conftest.$ac_ext <<_ACEOF
34762/* end confdefs.h. */
f93ca9fd
VS
34763
34764 #include <time.h>
34765
34766int
34767main ()
34768{
34769
34770 int tz;
34771 tz = __timezone;
34772
34773 ;
34774 return 0;
34775}
e6cc62c6 34776_ACEOF
f93ca9fd
VS
34777rm -f conftest.$ac_objext
34778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34779 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34780 ac_status=$?
32ddf007
VS
34781 grep -v '^ *+' conftest.er1 >conftest.err
34782 rm -f conftest.er1
34783 cat conftest.err >&5
e6cc62c6 34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34785 (exit $ac_status); } &&
e1293dcf 34786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788 (eval $ac_try) 2>&5
34789 ac_status=$?
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; } &&
34792 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794 (eval $ac_try) 2>&5
34795 ac_status=$?
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; }; then
34798
34799 wx_cv_var_timezone=__timezone
34800
e6cc62c6
VS
34801else
34802 echo "$as_me: failed program was:" >&5
34803sed 's/^/| /' conftest.$ac_ext >&5
34804
e6cc62c6 34805
f93ca9fd
VS
34806 if test "$USE_DOS" = 0 ; then
34807 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34808echo "$as_me: WARNING: no timezone variable" >&2;}
34809 fi
34810
e6cc62c6 34811
10f2d63a 34812fi
32ddf007 34813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 34814
e6cc62c6 34815
247f5006 34816fi
32ddf007 34817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34818
10f2d63a 34819
f93ca9fd 34820fi
32ddf007 34821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b089607b 34822
10f2d63a 34823
dc3d889d 34824fi
f93ca9fd
VS
34825echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34826echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 34827
f93ca9fd
VS
34828 if test "x$wx_cv_var_timezone" != x ; then
34829 cat >>confdefs.h <<_ACEOF
34830#define WX_TIMEZONE $wx_cv_var_timezone
34831_ACEOF
8284b0c5 34832
f93ca9fd 34833 fi
b089607b 34834
e6cc62c6 34835
f93ca9fd 34836for ac_func in localtime
10f2d63a 34837do
e6cc62c6
VS
34838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34839echo "$as_me:$LINENO: checking for $ac_func" >&5
34840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34841if eval "test \"\${$as_ac_var+set}\" = set"; then
34842 echo $ECHO_N "(cached) $ECHO_C" >&6
34843else
34844 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34845/* confdefs.h. */
34846_ACEOF
34847cat confdefs.h >>conftest.$ac_ext
34848cat >>conftest.$ac_ext <<_ACEOF
34849/* end confdefs.h. */
32ddf007
VS
34850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34852#define $ac_func innocuous_$ac_func
34853
10f2d63a 34854/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34855 which can conflict with char $ac_func (); below.
34856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34857 <limits.h> exists even on freestanding compilers. */
32ddf007 34858
e6cc62c6
VS
34859#ifdef __STDC__
34860# include <limits.h>
34861#else
34862# include <assert.h>
34863#endif
32ddf007
VS
34864
34865#undef $ac_func
34866
10f2d63a 34867/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34868#ifdef __cplusplus
34869extern "C"
34870{
34871#endif
10f2d63a 34872/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34873 builtin and then its argument prototype would still apply. */
34874char $ac_func ();
10f2d63a
VZ
34875/* The GNU C library defines this for functions which it implements
34876 to always fail with ENOSYS. Some functions are actually named
34877 something starting with __ and the normal name is an alias. */
34878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34879choke me
34880#else
e6cc62c6
VS
34881char (*f) () = $ac_func;
34882#endif
34883#ifdef __cplusplus
34884}
10f2d63a
VZ
34885#endif
34886
e6cc62c6
VS
34887int
34888main ()
34889{
34890return f != $ac_func;
34891 ;
34892 return 0;
34893}
34894_ACEOF
34895rm -f conftest.$ac_objext conftest$ac_exeext
34896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34897 (eval $ac_link) 2>conftest.er1
e6cc62c6 34898 ac_status=$?
32ddf007
VS
34899 grep -v '^ *+' conftest.er1 >conftest.err
34900 rm -f conftest.er1
34901 cat conftest.err >&5
e6cc62c6
VS
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); } &&
e1293dcf 34904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906 (eval $ac_try) 2>&5
34907 ac_status=$?
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); }; } &&
34910 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34912 (eval $ac_try) 2>&5
34913 ac_status=$?
34914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); }; }; then
34916 eval "$as_ac_var=yes"
34917else
34918 echo "$as_me: failed program was:" >&5
34919sed 's/^/| /' conftest.$ac_ext >&5
34920
34921eval "$as_ac_var=no"
34922fi
32ddf007
VS
34923rm -f conftest.err conftest.$ac_objext \
34924 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34925fi
34926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34927echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34928if test `eval echo '${'$as_ac_var'}'` = yes; then
34929 cat >>confdefs.h <<_ACEOF
34930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34931_ACEOF
34932
f93ca9fd
VS
34933fi
34934done
e6cc62c6 34935
e6cc62c6 34936
f93ca9fd
VS
34937 if test "$ac_cv_func_localtime" = "yes"; then
34938 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34939echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34940if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 34941 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34942else
f93ca9fd
VS
34943
34944 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34945/* confdefs.h. */
34946_ACEOF
34947cat confdefs.h >>conftest.$ac_ext
34948cat >>conftest.$ac_ext <<_ACEOF
34949/* end confdefs.h. */
34950
f93ca9fd
VS
34951 #include <time.h>
34952
e6cc62c6
VS
34953int
34954main ()
34955{
f93ca9fd
VS
34956
34957 struct tm tm;
34958 tm.tm_gmtoff++;
34959
e6cc62c6
VS
34960 ;
34961 return 0;
34962}
34963_ACEOF
f93ca9fd
VS
34964rm -f conftest.$ac_objext
34965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34966 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34967 ac_status=$?
32ddf007
VS
34968 grep -v '^ *+' conftest.er1 >conftest.err
34969 rm -f conftest.er1
34970 cat conftest.err >&5
e6cc62c6
VS
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); } &&
e1293dcf 34973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
34974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975 (eval $ac_try) 2>&5
34976 ac_status=$?
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); }; } &&
34979 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981 (eval $ac_try) 2>&5
34982 ac_status=$?
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); }; }; then
f93ca9fd
VS
34985
34986 wx_cv_struct_tm_has_gmtoff=yes
34987
e6cc62c6
VS
34988else
34989 echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
f93ca9fd
VS
34992wx_cv_struct_tm_has_gmtoff=no
34993
e6cc62c6 34994fi
32ddf007 34995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 34996
e6cc62c6 34997fi
f93ca9fd
VS
34998echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34999echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35000 fi
e6cc62c6 35001
f93ca9fd
VS
35002 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35003 cat >>confdefs.h <<\_ACEOF
35004#define WX_GMTOFF_IN_TM 1
e6cc62c6 35005_ACEOF
10f2d63a 35006
f93ca9fd 35007 fi
e6cc62c6 35008
10f2d63a 35009
e6cc62c6 35010
f93ca9fd 35011for ac_func in gettimeofday ftime
10f2d63a 35012do
e6cc62c6
VS
35013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35014echo "$as_me:$LINENO: checking for $ac_func" >&5
35015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35016if eval "test \"\${$as_ac_var+set}\" = set"; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35018else
35019 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35020/* confdefs.h. */
35021_ACEOF
35022cat confdefs.h >>conftest.$ac_ext
35023cat >>conftest.$ac_ext <<_ACEOF
35024/* end confdefs.h. */
32ddf007
VS
35025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35027#define $ac_func innocuous_$ac_func
35028
10f2d63a 35029/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
35030 which can conflict with char $ac_func (); below.
35031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35032 <limits.h> exists even on freestanding compilers. */
32ddf007 35033
e6cc62c6
VS
35034#ifdef __STDC__
35035# include <limits.h>
35036#else
35037# include <assert.h>
35038#endif
32ddf007
VS
35039
35040#undef $ac_func
35041
10f2d63a 35042/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35043#ifdef __cplusplus
35044extern "C"
35045{
35046#endif
10f2d63a 35047/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
35048 builtin and then its argument prototype would still apply. */
35049char $ac_func ();
10f2d63a
VZ
35050/* The GNU C library defines this for functions which it implements
35051 to always fail with ENOSYS. Some functions are actually named
35052 something starting with __ and the normal name is an alias. */
35053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35054choke me
35055#else
e6cc62c6
VS
35056char (*f) () = $ac_func;
35057#endif
35058#ifdef __cplusplus
35059}
10f2d63a
VZ
35060#endif
35061
e6cc62c6
VS
35062int
35063main ()
35064{
35065return f != $ac_func;
35066 ;
35067 return 0;
35068}
35069_ACEOF
35070rm -f conftest.$ac_objext conftest$ac_exeext
35071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35072 (eval $ac_link) 2>conftest.er1
e6cc62c6 35073 ac_status=$?
32ddf007
VS
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
e6cc62c6
VS
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } &&
e1293dcf 35079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35082 ac_status=$?
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; } &&
35085 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; }; then
35091 eval "$as_ac_var=yes"
35092else
35093 echo "$as_me: failed program was:" >&5
35094sed 's/^/| /' conftest.$ac_ext >&5
35095
35096eval "$as_ac_var=no"
35097fi
32ddf007
VS
35098rm -f conftest.err conftest.$ac_objext \
35099 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35100fi
35101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35103if test `eval echo '${'$as_ac_var'}'` = yes; then
35104 cat >>confdefs.h <<_ACEOF
35105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35106_ACEOF
f93ca9fd
VS
35107 break
35108fi
35109done
e6cc62c6 35110
f93ca9fd
VS
35111
35112 if test "$ac_cv_func_gettimeofday" = "yes"; then
35113 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35114echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35115if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35116 echo $ECHO_N "(cached) $ECHO_C" >&6
35117else
35118
35119
35120
35121 ac_ext=cc
35122ac_cpp='$CXXCPP $CPPFLAGS'
35123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35126
35127
35128 cat >conftest.$ac_ext <<_ACEOF
35129/* confdefs.h. */
e6cc62c6 35130_ACEOF
f93ca9fd
VS
35131cat confdefs.h >>conftest.$ac_ext
35132cat >>conftest.$ac_ext <<_ACEOF
35133/* end confdefs.h. */
10f2d63a 35134
f93ca9fd
VS
35135 #include <sys/time.h>
35136 #include <unistd.h>
e6cc62c6 35137
f93ca9fd
VS
35138int
35139main ()
35140{
e6cc62c6 35141
f93ca9fd
VS
35142 struct timeval tv;
35143 gettimeofday(&tv, NULL);
35144
35145 ;
35146 return 0;
35147}
35148_ACEOF
35149rm -f conftest.$ac_objext
35150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35151 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35152 ac_status=$?
32ddf007
VS
35153 grep -v '^ *+' conftest.er1 >conftest.err
35154 rm -f conftest.er1
35155 cat conftest.err >&5
f93ca9fd
VS
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } &&
e1293dcf 35158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
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); }; } &&
35164 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166 (eval $ac_try) 2>&5
35167 ac_status=$?
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); }; }; then
35170 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 35171else
f93ca9fd
VS
35172 echo "$as_me: failed program was:" >&5
35173sed 's/^/| /' conftest.$ac_ext >&5
35174
e6cc62c6 35175cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35176/* confdefs.h. */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h. */
35181
f93ca9fd
VS
35182 #include <sys/time.h>
35183 #include <unistd.h>
35184
e6cc62c6
VS
35185int
35186main ()
35187{
f93ca9fd
VS
35188
35189 struct timeval tv;
35190 gettimeofday(&tv);
35191
e6cc62c6
VS
35192 ;
35193 return 0;
35194}
35195_ACEOF
f93ca9fd
VS
35196rm -f conftest.$ac_objext
35197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35198 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35199 ac_status=$?
32ddf007
VS
35200 grep -v '^ *+' conftest.er1 >conftest.err
35201 rm -f conftest.er1
35202 cat conftest.err >&5
e6cc62c6
VS
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); } &&
e1293dcf 35205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35207 (eval $ac_try) 2>&5
35208 ac_status=$?
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); }; } &&
35211 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35213 (eval $ac_try) 2>&5
35214 ac_status=$?
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; }; then
f93ca9fd 35217 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
35218else
35219 echo "$as_me: failed program was:" >&5
35220sed 's/^/| /' conftest.$ac_ext >&5
35221
f6bcfd97 35222
f93ca9fd
VS
35223 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35224echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35225 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 35226
f6bcfd97 35227
f93ca9fd 35228fi
32ddf007 35229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 35230
10f2d63a 35231fi
32ddf007 35232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35233 ac_ext=c
35234ac_cpp='$CPP $CPPFLAGS'
35235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35237ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 35238
e6cc62c6 35239
10f2d63a 35240fi
f93ca9fd
VS
35241echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35242echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35243
35244 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35245 cat >>confdefs.h <<\_ACEOF
35246#define WX_GETTIMEOFDAY_NO_TZ 1
35247_ACEOF
10f2d63a 35248
f93ca9fd
VS
35249 fi
35250 fi
e6cc62c6 35251
f93ca9fd 35252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 35253fi
10f2d63a 35254
5c6fa7d2 35255
f93ca9fd
VS
35256if test "$wxUSE_SOCKETS" = "yes"; then
35257 if test "$wxUSE_MGL" = "1"; then
35258 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35259echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35260 wxUSE_SOCKETS="no"
35261 fi
35262fi
e6cc62c6 35263
f93ca9fd
VS
35264if test "$wxUSE_SOCKETS" = "yes"; then
35265 if test "$TOOLKIT" != "MSW"; then
35266 echo "$as_me:$LINENO: checking for socket" >&5
35267echo $ECHO_N "checking for socket... $ECHO_C" >&6
35268if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
35269 echo $ECHO_N "(cached) $ECHO_C" >&6
35270else
35271 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35272/* confdefs.h. */
35273_ACEOF
35274cat confdefs.h >>conftest.$ac_ext
35275cat >>conftest.$ac_ext <<_ACEOF
35276/* end confdefs.h. */
32ddf007
VS
35277/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35279#define socket innocuous_socket
35280
f6bcfd97 35281/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 35282 which can conflict with char socket (); below.
e6cc62c6
VS
35283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35284 <limits.h> exists even on freestanding compilers. */
32ddf007 35285
e6cc62c6
VS
35286#ifdef __STDC__
35287# include <limits.h>
35288#else
35289# include <assert.h>
35290#endif
32ddf007
VS
35291
35292#undef socket
35293
f6bcfd97 35294/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35295#ifdef __cplusplus
35296extern "C"
35297{
35298#endif
f6bcfd97 35299/* We use char because int might match the return type of a gcc2
e6cc62c6 35300 builtin and then its argument prototype would still apply. */
f93ca9fd 35301char socket ();
f6bcfd97
BP
35302/* The GNU C library defines this for functions which it implements
35303 to always fail with ENOSYS. Some functions are actually named
35304 something starting with __ and the normal name is an alias. */
f93ca9fd 35305#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
35306choke me
35307#else
f93ca9fd 35308char (*f) () = socket;
e6cc62c6
VS
35309#endif
35310#ifdef __cplusplus
35311}
f6bcfd97
BP
35312#endif
35313
e6cc62c6
VS
35314int
35315main ()
35316{
f93ca9fd
VS
35317return f != socket;
35318 ;
35319 return 0;
35320}
35321_ACEOF
35322rm -f conftest.$ac_objext conftest$ac_exeext
35323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35324 (eval $ac_link) 2>conftest.er1
f93ca9fd 35325 ac_status=$?
32ddf007
VS
35326 grep -v '^ *+' conftest.er1 >conftest.err
35327 rm -f conftest.er1
35328 cat conftest.err >&5
f93ca9fd
VS
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); } &&
e1293dcf 35331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333 (eval $ac_try) 2>&5
35334 ac_status=$?
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); }; } &&
35337 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
35338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35339 (eval $ac_try) 2>&5
35340 ac_status=$?
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); }; }; then
35343 ac_cv_func_socket=yes
35344else
35345 echo "$as_me: failed program was:" >&5
35346sed 's/^/| /' conftest.$ac_ext >&5
35347
35348ac_cv_func_socket=no
35349fi
32ddf007
VS
35350rm -f conftest.err conftest.$ac_objext \
35351 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
35352fi
35353echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35354echo "${ECHO_T}$ac_cv_func_socket" >&6
35355if test $ac_cv_func_socket = yes; then
35356 :
35357else
35358
35359 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35360echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35361if test "${ac_cv_lib_socket_socket+set}" = set; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35363else
35364 ac_check_lib_save_LIBS=$LIBS
35365LIBS="-lsocket $LIBS"
35366cat >conftest.$ac_ext <<_ACEOF
35367/* confdefs.h. */
35368_ACEOF
35369cat confdefs.h >>conftest.$ac_ext
35370cat >>conftest.$ac_ext <<_ACEOF
35371/* end confdefs.h. */
35372
35373/* Override any gcc2 internal prototype to avoid an error. */
35374#ifdef __cplusplus
35375extern "C"
35376#endif
35377/* We use char because int might match the return type of a gcc2
35378 builtin and then its argument prototype would still apply. */
35379char socket ();
35380int
35381main ()
35382{
35383socket ();
e6cc62c6
VS
35384 ;
35385 return 0;
35386}
35387_ACEOF
35388rm -f conftest.$ac_objext conftest$ac_exeext
35389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35390 (eval $ac_link) 2>conftest.er1
e6cc62c6 35391 ac_status=$?
32ddf007
VS
35392 grep -v '^ *+' conftest.er1 >conftest.err
35393 rm -f conftest.er1
35394 cat conftest.err >&5
e6cc62c6
VS
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
e1293dcf 35397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 (eval $ac_try) 2>&5
35400 ac_status=$?
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); }; } &&
35403 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; }; then
f93ca9fd 35409 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
35410else
35411 echo "$as_me: failed program was:" >&5
35412sed 's/^/| /' conftest.$ac_ext >&5
35413
f93ca9fd 35414ac_cv_lib_socket_socket=no
e6cc62c6 35415fi
32ddf007
VS
35416rm -f conftest.err conftest.$ac_objext \
35417 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 35418LIBS=$ac_check_lib_save_LIBS
e6cc62c6 35419fi
f93ca9fd
VS
35420echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35421echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35422if test $ac_cv_lib_socket_socket = yes; then
35423 if test "$INET_LINK" != " -lsocket"; then
35424 INET_LINK="$INET_LINK -lsocket"
35425 fi
35426else
35427
35428 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35429echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35430 wxUSE_SOCKETS=no
35431
35432
35433fi
35434
35435
35436
35437fi
35438
35439 fi
35440fi
35441
35442if test "$wxUSE_SOCKETS" = "yes" ; then
35443 if test "$TOOLKIT" != "MSW"; then
35444 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35445echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35446if test "${wx_cv_type_getsockname3+set}" = set; then
35447 echo $ECHO_N "(cached) $ECHO_C" >&6
35448else
35449
35450 cat >conftest.$ac_ext <<_ACEOF
35451/* confdefs.h. */
e6cc62c6 35452_ACEOF
f93ca9fd
VS
35453cat confdefs.h >>conftest.$ac_ext
35454cat >>conftest.$ac_ext <<_ACEOF
35455/* end confdefs.h. */
35456
35457 #include <sys/types.h>
35458 #include <sys/socket.h>
f6bcfd97 35459
f93ca9fd
VS
35460int
35461main ()
35462{
35463
35464 socklen_t len;
35465 getsockname(0, 0, &len);
35466
35467 ;
35468 return 0;
35469}
35470_ACEOF
35471rm -f conftest.$ac_objext
35472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35473 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35474 ac_status=$?
32ddf007
VS
35475 grep -v '^ *+' conftest.er1 >conftest.err
35476 rm -f conftest.er1
35477 cat conftest.err >&5
f93ca9fd
VS
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } &&
e1293dcf 35480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; } &&
35486 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; }; then
35492 wx_cv_type_getsockname3=socklen_t
f6bcfd97 35493else
f93ca9fd
VS
35494 echo "$as_me: failed program was:" >&5
35495sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 35496
f93ca9fd
VS
35497
35498 CFLAGS_OLD="$CFLAGS"
35499 if test "$GCC" = yes ; then
35500 CFLAGS="$CFLAGS -Werror"
35501 fi
35502
35503 cat >conftest.$ac_ext <<_ACEOF
35504/* confdefs.h. */
35505_ACEOF
35506cat confdefs.h >>conftest.$ac_ext
35507cat >>conftest.$ac_ext <<_ACEOF
35508/* end confdefs.h. */
35509
35510 #include <sys/types.h>
35511 #include <sys/socket.h>
35512
35513int
35514main ()
35515{
35516
35517 size_t len;
35518 getsockname(0, 0, &len);
35519
35520 ;
35521 return 0;
35522}
35523_ACEOF
35524rm -f conftest.$ac_objext
35525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35526 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35527 ac_status=$?
32ddf007
VS
35528 grep -v '^ *+' conftest.er1 >conftest.err
35529 rm -f conftest.er1
35530 cat conftest.err >&5
f93ca9fd
VS
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); } &&
e1293dcf 35533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535 (eval $ac_try) 2>&5
35536 ac_status=$?
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); }; } &&
35539 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; }; then
35545 wx_cv_type_getsockname3=size_t
f6bcfd97 35546else
f93ca9fd
VS
35547 echo "$as_me: failed program was:" >&5
35548sed 's/^/| /' conftest.$ac_ext >&5
35549
e6cc62c6 35550cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35551/* confdefs.h. */
35552_ACEOF
35553cat confdefs.h >>conftest.$ac_ext
35554cat >>conftest.$ac_ext <<_ACEOF
35555/* end confdefs.h. */
35556
f93ca9fd
VS
35557 #include <sys/types.h>
35558 #include <sys/socket.h>
35559
e6cc62c6
VS
35560int
35561main ()
35562{
f93ca9fd
VS
35563
35564 int len;
35565 getsockname(0, 0, &len);
35566
e6cc62c6
VS
35567 ;
35568 return 0;
35569}
35570_ACEOF
f93ca9fd
VS
35571rm -f conftest.$ac_objext
35572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35573 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35574 ac_status=$?
32ddf007
VS
35575 grep -v '^ *+' conftest.er1 >conftest.err
35576 rm -f conftest.er1
35577 cat conftest.err >&5
e6cc62c6
VS
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
e1293dcf 35580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35589 ac_status=$?
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
f93ca9fd 35592 wx_cv_type_getsockname3=int
e6cc62c6
VS
35593else
35594 echo "$as_me: failed program was:" >&5
35595sed 's/^/| /' conftest.$ac_ext >&5
35596
f93ca9fd
VS
35597wx_cv_type_getsockname3=unknown
35598
e6cc62c6 35599fi
32ddf007 35600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35601
f6bcfd97 35602fi
32ddf007 35603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35604
f93ca9fd 35605 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
35606
35607
f6bcfd97 35608fi
32ddf007 35609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35610
f93ca9fd
VS
35611fi
35612echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35613echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35614
35615 if test "$wx_cv_type_getsockname3" = "unknown"; then
35616 wxUSE_SOCKETS=no
35617 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35618echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35619 else
35620 cat >>confdefs.h <<_ACEOF
35621#define SOCKLEN_T $wx_cv_type_getsockname3
35622_ACEOF
f6bcfd97 35623
10f2d63a
VZ
35624 fi
35625 fi
35626fi
35627
f93ca9fd 35628if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 35629 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35630#define wxUSE_SOCKETS 1
e6cc62c6 35631_ACEOF
0b9ab0bd 35632
f93ca9fd 35633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 35634fi
f93ca9fd
VS
35635
35636if test "$wxUSE_PROTOCOL" = "yes"; then
35637 if test "$wxUSE_SOCKETS" != "yes"; then
35638 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35639echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35640 wxUSE_PROTOCOL=no
35641 fi
35642fi
35643
35644if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 35645 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35646#define wxUSE_PROTOCOL 1
e6cc62c6 35647_ACEOF
10f2d63a 35648
f93ca9fd
VS
35649
35650 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35651 cat >>confdefs.h <<\_ACEOF
35652#define wxUSE_PROTOCOL_HTTP 1
35653_ACEOF
35654
35655 fi
35656 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35657 cat >>confdefs.h <<\_ACEOF
35658#define wxUSE_PROTOCOL_FTP 1
35659_ACEOF
35660
35661 fi
35662 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35663 cat >>confdefs.h <<\_ACEOF
35664#define wxUSE_PROTOCOL_FILE 1
35665_ACEOF
35666
35667 fi
35668else
35669 if test "$wxUSE_FS_INET" = "yes"; then
35670 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35671echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35672 wxUSE_FS_INET="no"
35673 fi
10f2d63a
VZ
35674fi
35675
f93ca9fd
VS
35676if test "$wxUSE_URL" = "yes"; then
35677 if test "$wxUSE_PROTOCOL" != "yes"; then
35678 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35679echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35680 wxUSE_URL=no
35681 fi
35682 if test "$wxUSE_URL" = "yes"; then
35683 cat >>confdefs.h <<\_ACEOF
35684#define wxUSE_URL 1
35685_ACEOF
35686
35687 fi
35688fi
35689
35690if test "$wxUSE_FS_INET" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692#define wxUSE_FS_INET 1
35693_ACEOF
35694
35695fi
35696
35697
35698if test "$wxUSE_GUI" = "yes"; then
35699
35700 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35701 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35702echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35703 wxUSE_JOYSTICK=no
35704 fi
35705
35706 if test "$TOOLKIT" != "MSW"; then
35707 if test "$wxUSE_JOYSTICK" = "yes"; then
35708
35709for ac_header in linux/joystick.h
35710do
35711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35712if eval "test \"\${$as_ac_Header+set}\" = set"; then
35713 echo "$as_me:$LINENO: checking for $ac_header" >&5
35714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35715if eval "test \"\${$as_ac_Header+set}\" = set"; then
35716 echo $ECHO_N "(cached) $ECHO_C" >&6
35717fi
35718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35720else
35721 # Is the header compilable?
35722echo "$as_me:$LINENO: checking $ac_header usability" >&5
35723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35724cat >conftest.$ac_ext <<_ACEOF
35725/* confdefs.h. */
35726_ACEOF
35727cat confdefs.h >>conftest.$ac_ext
35728cat >>conftest.$ac_ext <<_ACEOF
35729/* end confdefs.h. */
35730$ac_includes_default
35731#include <$ac_header>
35732_ACEOF
35733rm -f conftest.$ac_objext
35734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35735 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35736 ac_status=$?
32ddf007
VS
35737 grep -v '^ *+' conftest.er1 >conftest.err
35738 rm -f conftest.er1
35739 cat conftest.err >&5
f93ca9fd
VS
35740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35741 (exit $ac_status); } &&
e1293dcf 35742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35745 ac_status=$?
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; } &&
35748 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35751 ac_status=$?
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; }; then
35754 ac_header_compiler=yes
35755else
35756 echo "$as_me: failed program was:" >&5
35757sed 's/^/| /' conftest.$ac_ext >&5
35758
35759ac_header_compiler=no
35760fi
32ddf007 35761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35763echo "${ECHO_T}$ac_header_compiler" >&6
35764
35765# Is the header present?
35766echo "$as_me:$LINENO: checking $ac_header presence" >&5
35767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35768cat >conftest.$ac_ext <<_ACEOF
35769/* confdefs.h. */
35770_ACEOF
35771cat confdefs.h >>conftest.$ac_ext
35772cat >>conftest.$ac_ext <<_ACEOF
35773/* end confdefs.h. */
35774#include <$ac_header>
35775_ACEOF
35776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35778 ac_status=$?
35779 grep -v '^ *+' conftest.er1 >conftest.err
35780 rm -f conftest.er1
35781 cat conftest.err >&5
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); } >/dev/null; then
35784 if test -s conftest.err; then
35785 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 35786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
35787 else
35788 ac_cpp_err=
35789 fi
35790else
35791 ac_cpp_err=yes
35792fi
35793if test -z "$ac_cpp_err"; then
35794 ac_header_preproc=yes
35795else
35796 echo "$as_me: failed program was:" >&5
35797sed 's/^/| /' conftest.$ac_ext >&5
35798
35799 ac_header_preproc=no
35800fi
35801rm -f conftest.err conftest.$ac_ext
35802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35803echo "${ECHO_T}$ac_header_preproc" >&6
35804
35805# So? What about this header?
32ddf007
VS
35806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35807 yes:no: )
f93ca9fd
VS
35808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
35810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35812 ac_header_preproc=yes
f93ca9fd 35813 ;;
32ddf007 35814 no:yes:* )
f93ca9fd
VS
35815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
35817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
35823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
35825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
35827 (
35828 cat <<\_ASBOX
32ddf007
VS
35829## ----------------------------------------- ##
35830## Report this to wx-dev@lists.wxwindows.org ##
35831## ----------------------------------------- ##
f93ca9fd
VS
35832_ASBOX
35833 ) |
35834 sed "s/^/$as_me: WARNING: /" >&2
35835 ;;
35836esac
35837echo "$as_me:$LINENO: checking for $ac_header" >&5
35838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840 echo $ECHO_N "(cached) $ECHO_C" >&6
35841else
32ddf007 35842 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
35843fi
35844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35846
35847fi
35848if test `eval echo '${'$as_ac_Header'}'` = yes; then
35849 cat >>confdefs.h <<_ACEOF
35850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35851_ACEOF
35852
35853fi
35854
35855done
35856
35857 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35858 wxUSE_JOYSTICK=no
35859 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35860echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35861 fi
35862 fi
35863 fi
35864
35865 if test "$wxUSE_JOYSTICK" = "yes"; then
35866 cat >>confdefs.h <<\_ACEOF
35867#define wxUSE_JOYSTICK 1
35868_ACEOF
35869
35870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35871 fi
35872fi
35873
35874
35875
1e6feb95 35876if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35877 cat >>confdefs.h <<\_ACEOF
1e6feb95 35878#define wxUSE_FONTMAP 1
e6cc62c6 35879_ACEOF
1e6feb95
VZ
35880
35881fi
35882
10f2d63a 35883if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 35884 cat >>confdefs.h <<\_ACEOF
10f2d63a 35885#define wxUSE_UNICODE 1
e6cc62c6 35886_ACEOF
10f2d63a 35887
8284b0c5 35888
eb854003 35889 if test "$USE_WIN32" != 1; then
bbc3925a
VS
35890 wxUSE_UNICODE_MSLU=no
35891 fi
a72a4bfa 35892
eb854003 35893 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
35894 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35895echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35896if test "${ac_cv_lib_unicows_main+set}" = set; then
35897 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 35898else
e6cc62c6 35899 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 35900LIBS="-lunicows $LIBS"
e6cc62c6 35901cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35902/* confdefs.h. */
35903_ACEOF
35904cat confdefs.h >>conftest.$ac_ext
35905cat >>conftest.$ac_ext <<_ACEOF
35906/* end confdefs.h. */
a72a4bfa 35907
8284b0c5 35908
e6cc62c6
VS
35909int
35910main ()
35911{
35912main ();
35913 ;
35914 return 0;
35915}
35916_ACEOF
35917rm -f conftest.$ac_objext conftest$ac_exeext
35918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35919 (eval $ac_link) 2>conftest.er1
e6cc62c6 35920 ac_status=$?
32ddf007
VS
35921 grep -v '^ *+' conftest.er1 >conftest.err
35922 rm -f conftest.er1
35923 cat conftest.err >&5
e6cc62c6
VS
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } &&
e1293dcf 35926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
35927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35928 (eval $ac_try) 2>&5
35929 ac_status=$?
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); }; } &&
35932 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35938 ac_cv_lib_unicows_main=yes
35939else
35940 echo "$as_me: failed program was:" >&5
35941sed 's/^/| /' conftest.$ac_ext >&5
35942
35943ac_cv_lib_unicows_main=no
35944fi
32ddf007
VS
35945rm -f conftest.err conftest.$ac_objext \
35946 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35947LIBS=$ac_check_lib_save_LIBS
35948fi
35949echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35950echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35951if test $ac_cv_lib_unicows_main = yes; then
35952
35953 cat >>confdefs.h <<\_ACEOF
a72a4bfa 35954#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
35955_ACEOF
35956
a72a4bfa 35957
a72a4bfa 35958else
a72a4bfa 35959
e6cc62c6
VS
35960 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35961 Applications will only run on Windows NT/2000/XP!" >&5
35962echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35963 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35964 wxUSE_UNICODE_MSLU=no
e6cc62c6 35965
a72a4bfa
VS
35966fi
35967
35968 fi
10f2d63a
VZ
35969fi
35970
10f2d63a 35971if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35972 cat >>confdefs.h <<\_ACEOF
10f2d63a 35973#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35974_ACEOF
10f2d63a
VZ
35975
35976fi
35977
8284b0c5 35978
10f2d63a 35979if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35980 cat >>confdefs.h <<\_ACEOF
10f2d63a 35981#define wxUSE_POSTSCRIPT 1
e6cc62c6 35982_ACEOF
10f2d63a
VZ
35983
35984fi
35985
e6cc62c6 35986cat >>confdefs.h <<\_ACEOF
10f2d63a 35987#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35988_ACEOF
10f2d63a 35989
8284b0c5 35990
e6cc62c6 35991cat >>confdefs.h <<\_ACEOF
10f2d63a 35992#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35993_ACEOF
10f2d63a 35994
8284b0c5
MB
35995
35996
10f2d63a 35997if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35998 cat >>confdefs.h <<\_ACEOF
10f2d63a 35999#define wxUSE_CONSTRAINTS 1
e6cc62c6 36000_ACEOF
10f2d63a
VZ
36001
36002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36003fi
36004
3879ecda 36005if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 36006 cat >>confdefs.h <<\_ACEOF
10f2d63a 36007#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 36008_ACEOF
10f2d63a 36009
1772d20c 36010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
36011fi
36012
36013if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 36014 cat >>confdefs.h <<\_ACEOF
10f2d63a 36015#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 36016_ACEOF
10f2d63a
VZ
36017
36018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36019 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36021 fi
36022fi
36023
36024if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 36025 cat >>confdefs.h <<\_ACEOF
10f2d63a 36026#define wxUSE_HELP 1
e6cc62c6 36027_ACEOF
10f2d63a
VZ
36028
36029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 36030
77e13408 36031 if test "$wxUSE_MSW" = 1; then
031d8228 36032 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 36033 cat >>confdefs.h <<\_ACEOF
29fd3c0c 36034#define wxUSE_MS_HTML_HELP 1
e6cc62c6 36035_ACEOF
29fd3c0c 36036
3e44f09d 36037 fi
3379ed37 36038 fi
031d8228
VS
36039
36040 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36041 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 36042 cat >>confdefs.h <<\_ACEOF
031d8228 36043#define wxUSE_WXHTML_HELP 1
e6cc62c6 36044_ACEOF
031d8228
VS
36045
36046 else
e6cc62c6
VS
36047 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36048echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
36049 wxUSE_WXHTML_HELP=no
36050 fi
36051 fi
10f2d63a
VZ
36052fi
36053
36054if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36055 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36056 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36057echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 36058 else
e6cc62c6 36059 cat >>confdefs.h <<\_ACEOF
10f2d63a 36060#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 36061_ACEOF
10f2d63a
VZ
36062
36063 fi
36064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36065fi
36066
e6cc62c6
VS
36067if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36068 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36069echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36070 { (exit 1); exit 1; }; }
36071fi
36072
36073
f95e4495 36074if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
36075 -o "$wxUSE_CLIPBOARD" = "yes" \
36076 -o "$wxUSE_OLE" = "yes" \
36077 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36078
36079for ac_header in ole2.h
36080do
36081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36082if eval "test \"\${$as_ac_Header+set}\" = set"; then
36083 echo "$as_me:$LINENO: checking for $ac_header" >&5
36084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36085if eval "test \"\${$as_ac_Header+set}\" = set"; then
36086 echo $ECHO_N "(cached) $ECHO_C" >&6
36087fi
36088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36090else
36091 # Is the header compilable?
36092echo "$as_me:$LINENO: checking $ac_header usability" >&5
36093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36094cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36095/* confdefs.h. */
36096_ACEOF
36097cat confdefs.h >>conftest.$ac_ext
36098cat >>conftest.$ac_ext <<_ACEOF
36099/* end confdefs.h. */
36100$ac_includes_default
36101#include <$ac_header>
36102_ACEOF
36103rm -f conftest.$ac_objext
36104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36105 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36106 ac_status=$?
32ddf007
VS
36107 grep -v '^ *+' conftest.er1 >conftest.err
36108 rm -f conftest.er1
36109 cat conftest.err >&5
e6cc62c6
VS
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); } &&
e1293dcf 36112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
36113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114 (eval $ac_try) 2>&5
36115 ac_status=$?
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); }; } &&
36118 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; }; then
36124 ac_header_compiler=yes
36125else
36126 echo "$as_me: failed program was:" >&5
36127sed 's/^/| /' conftest.$ac_ext >&5
36128
36129ac_header_compiler=no
36130fi
32ddf007 36131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
36132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36133echo "${ECHO_T}$ac_header_compiler" >&6
36134
36135# Is the header present?
36136echo "$as_me:$LINENO: checking $ac_header presence" >&5
36137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36138cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36139/* confdefs.h. */
36140_ACEOF
36141cat confdefs.h >>conftest.$ac_ext
36142cat >>conftest.$ac_ext <<_ACEOF
36143/* end confdefs.h. */
36144#include <$ac_header>
36145_ACEOF
36146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36148 ac_status=$?
36149 grep -v '^ *+' conftest.er1 >conftest.err
36150 rm -f conftest.er1
36151 cat conftest.err >&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } >/dev/null; then
36154 if test -s conftest.err; then
36155 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 36156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
36157 else
36158 ac_cpp_err=
36159 fi
36160else
36161 ac_cpp_err=yes
36162fi
36163if test -z "$ac_cpp_err"; then
36164 ac_header_preproc=yes
36165else
36166 echo "$as_me: failed program was:" >&5
36167sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ac_header_preproc=no
36170fi
36171rm -f conftest.err conftest.$ac_ext
36172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36173echo "${ECHO_T}$ac_header_preproc" >&6
36174
36175# So? What about this header?
32ddf007
VS
36176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36177 yes:no: )
e6cc62c6
VS
36178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36182 ac_header_preproc=yes
e6cc62c6 36183 ;;
32ddf007 36184 no:yes:* )
e6cc62c6
VS
36185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
36195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
36197 (
36198 cat <<\_ASBOX
32ddf007
VS
36199## ----------------------------------------- ##
36200## Report this to wx-dev@lists.wxwindows.org ##
36201## ----------------------------------------- ##
e6cc62c6
VS
36202_ASBOX
36203 ) |
36204 sed "s/^/$as_me: WARNING: /" >&2
36205 ;;
36206esac
36207echo "$as_me:$LINENO: checking for $ac_header" >&5
36208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36209if eval "test \"\${$as_ac_Header+set}\" = set"; then
36210 echo $ECHO_N "(cached) $ECHO_C" >&6
36211else
32ddf007 36212 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
36213fi
36214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36216
10f2d63a 36217fi
e6cc62c6
VS
36218if test `eval echo '${'$as_ac_Header'}'` = yes; then
36219 cat >>confdefs.h <<_ACEOF
36220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36221_ACEOF
10f2d63a 36222
10f2d63a 36223fi
e6cc62c6 36224
10f2d63a
VZ
36225done
36226
8284b0c5 36227
2b9bdf71
VZ
36228 if test "$ac_cv_header_ole2_h" = "yes" ; then
36229 if test "$GCC" = yes ; then
8284b0c5
MB
36230
36231
e6cc62c6
VS
36232 ac_ext=cc
36233ac_cpp='$CXXCPP $CPPFLAGS'
36234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36237
36238
36239 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36240echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36241 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36242/* confdefs.h. */
36243_ACEOF
36244cat confdefs.h >>conftest.$ac_ext
36245cat >>conftest.$ac_ext <<_ACEOF
36246/* end confdefs.h. */
8284b0c5
MB
36247#include <windows.h>
36248 #include <ole2.h>
e6cc62c6
VS
36249int
36250main ()
36251{
8284b0c5 36252
e6cc62c6
VS
36253 ;
36254 return 0;
36255}
36256_ACEOF
36257rm -f conftest.$ac_objext
36258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36259 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36260 ac_status=$?
32ddf007
VS
36261 grep -v '^ *+' conftest.er1 >conftest.err
36262 rm -f conftest.er1
36263 cat conftest.err >&5
e6cc62c6
VS
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); } &&
e1293dcf 36266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32ddf007
VS
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36269 ac_status=$?
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; } &&
36272 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36275 ac_status=$?
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; }; then
36278 echo "$as_me:$LINENO: result: no" >&5
36279echo "${ECHO_T}no" >&6
36280else
36281 echo "$as_me: failed program was:" >&5
36282sed 's/^/| /' conftest.$ac_ext >&5
36283
36284echo "$as_me:$LINENO: result: yes" >&5
36285echo "${ECHO_T}yes" >&6
8284b0c5
MB
36286 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36287fi
32ddf007 36288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 36289 ac_ext=c
8284b0c5 36290ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
36291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36293ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 36294
2b9bdf71 36295 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 36296 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
36297 if test "$wxUSE_OLE" = "yes" ; then
36298 cat >>confdefs.h <<\_ACEOF
4f11a343 36299#define wxUSE_OLE 1
e6cc62c6 36300_ACEOF
4f11a343 36301
f95e4495 36302 fi
2b9bdf71
VZ
36303 fi
36304
f95e4495
VS
36305 if test "$wxUSE_DATAOBJ" = "yes" ; then
36306 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36307#define wxUSE_DATAOBJ 1
e6cc62c6 36308_ACEOF
2b9bdf71 36309
f95e4495 36310 fi
2b9bdf71 36311 else
e6cc62c6
VS
36312 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36313echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
36314
36315 wxUSE_CLIPBOARD=no
36316 wxUSE_DRAG_AND_DROP=no
36317 wxUSE_DATAOBJ=no
3bce6687
JS
36318 wxUSE_OLE=no
36319 fi
36320
36321 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36322 cat >>confdefs.h <<\_ACEOF
3bce6687 36323#define wxUSE_METAFILE 1
e6cc62c6 36324_ACEOF
3bce6687
JS
36325
36326
e6cc62c6 36327 cat >>confdefs.h <<\_ACEOF
3bce6687 36328#define wxUSE_ENH_METAFILE 1
e6cc62c6 36329_ACEOF
3bce6687
JS
36330
36331 fi
36332fi
36333
2b9bdf71
VZ
36334if test "$wxUSE_IPC" = "yes"; then
36335 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
36336 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36337echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
36338 fi
36339
e6cc62c6 36340 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36341#define wxUSE_IPC 1
e6cc62c6 36342_ACEOF
2b9bdf71
VZ
36343
36344fi
36345
36346if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 36347 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36348 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36349echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36350 wxUSE_CLIPBOARD=no
36351 fi
36352
36353 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 36354 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36355#define wxUSE_CLIPBOARD 1
e6cc62c6 36356_ACEOF
2b9bdf71 36357
8284b0c5 36358
e6cc62c6 36359 cat >>confdefs.h <<\_ACEOF
673f4220 36360#define wxUSE_DATAOBJ 1
e6cc62c6 36361_ACEOF
673f4220 36362
6c657b52 36363 fi
2b9bdf71
VZ
36364fi
36365
36366if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36367 if test "$wxUSE_GTK" = 1; then
36368 if test "$WXGTK12" != 1; then
e6cc62c6
VS
36369 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36370echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
36371 wxUSE_DRAG_AND_DROP=no
36372 fi
36373 fi
36374
2b9bdf71 36375 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36376 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36377echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
36378 wxUSE_DRAG_AND_DROP=no
36379 fi
36380
f79bd02d 36381 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
36382 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36383echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
36384 wxUSE_DRAG_AND_DROP=no
36385 fi
36386
6c657b52 36387 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36388 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36389echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36390 wxUSE_DRAG_AND_DROP=no
36391 fi
36392
10f2d63a 36393 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 36394 cat >>confdefs.h <<\_ACEOF
10f2d63a 36395#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 36396_ACEOF
10f2d63a 36397
10f2d63a
VZ
36398 fi
36399
36400fi
36401
e1293dcf
RL
36402if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36404fi
36405
10f2d63a 36406if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 36407 cat >>confdefs.h <<\_ACEOF
10f2d63a 36408#define wxUSE_SPLINES 1
e6cc62c6 36409_ACEOF
10f2d63a
VZ
36410
36411fi
36412
8284b0c5 36413
1e6feb95
VZ
36414USES_CONTROLS=0
36415if test "$wxUSE_CONTROLS" = "yes"; then
36416 USES_CONTROLS=1
36417fi
36418
10f2d63a 36419if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 36420 cat >>confdefs.h <<\_ACEOF
10f2d63a 36421#define wxUSE_ACCEL 1
e6cc62c6 36422_ACEOF
10f2d63a 36423
1e6feb95
VZ
36424 USES_CONTROLS=1
36425fi
36426
36427if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 36428 cat >>confdefs.h <<\_ACEOF
1e6feb95 36429#define wxUSE_BUTTON 1
e6cc62c6 36430_ACEOF
1e6feb95
VZ
36431
36432 USES_CONTROLS=1
36433fi
36434
36435if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 36436 cat >>confdefs.h <<\_ACEOF
1e6feb95 36437#define wxUSE_BMPBUTTON 1
e6cc62c6 36438_ACEOF
1e6feb95
VZ
36439
36440 USES_CONTROLS=1
36441fi
36442
36443if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 36444 cat >>confdefs.h <<\_ACEOF
1e6feb95 36445#define wxUSE_CALENDARCTRL 1
e6cc62c6 36446_ACEOF
1e6feb95
VZ
36447
36448 USES_CONTROLS=1
36449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
36450fi
36451
36452if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 36453 cat >>confdefs.h <<\_ACEOF
10f2d63a 36454#define wxUSE_CARET 1
e6cc62c6 36455_ACEOF
10f2d63a 36456
1e6feb95 36457 USES_CONTROLS=1
10f2d63a
VZ
36458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36459fi
36460
36461if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 36462 cat >>confdefs.h <<\_ACEOF
10f2d63a 36463#define wxUSE_COMBOBOX 1
e6cc62c6 36464_ACEOF
10f2d63a 36465
1e6feb95 36466 USES_CONTROLS=1
10f2d63a
VZ
36467fi
36468
36469if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 36470 cat >>confdefs.h <<\_ACEOF
10f2d63a 36471#define wxUSE_CHOICE 1
e6cc62c6 36472_ACEOF
10f2d63a 36473
1e6feb95 36474 USES_CONTROLS=1
10f2d63a
VZ
36475fi
36476
36477if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 36478 cat >>confdefs.h <<\_ACEOF
10f2d63a 36479#define wxUSE_CHECKBOX 1
e6cc62c6 36480_ACEOF
10f2d63a 36481
1e6feb95 36482 USES_CONTROLS=1
10f2d63a
VZ
36483fi
36484
36485if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 36486 cat >>confdefs.h <<\_ACEOF
10f2d63a 36487#define wxUSE_CHECKLISTBOX 1
e6cc62c6 36488_ACEOF
10f2d63a 36489
1e6feb95 36490 USES_CONTROLS=1
10f2d63a
VZ
36491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36492fi
36493
da494b40 36494if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 36495 cat >>confdefs.h <<\_ACEOF
da494b40 36496#define wxUSE_DISPLAY 1
e6cc62c6 36497_ACEOF
da494b40
MB
36498
36499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36500fi
36501
10f2d63a 36502if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 36503 cat >>confdefs.h <<\_ACEOF
10f2d63a 36504#define wxUSE_GAUGE 1
e6cc62c6 36505_ACEOF
10f2d63a 36506
1e6feb95 36507 USES_CONTROLS=1
10f2d63a
VZ
36508fi
36509
d6a55c4b 36510if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 36511 cat >>confdefs.h <<\_ACEOF
d6a55c4b 36512#define wxUSE_GRID 1
e6cc62c6 36513_ACEOF
10f2d63a 36514
1e6feb95 36515 USES_CONTROLS=1
d6a55c4b 36516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
36517fi
36518
36519if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36520 cat >>confdefs.h <<\_ACEOF
10f2d63a 36521#define wxUSE_IMAGLIST 1
e6cc62c6 36522_ACEOF
10f2d63a
VZ
36523
36524fi
36525
0e012a93
VZ
36526if test "$wxUSE_LISTBOOK" = "yes"; then
36527 cat >>confdefs.h <<\_ACEOF
36528#define wxUSE_LISTBOOK 1
36529_ACEOF
36530
36531 USES_CONTROLS=1
36532fi
36533
10f2d63a 36534if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 36535 cat >>confdefs.h <<\_ACEOF
10f2d63a 36536#define wxUSE_LISTBOX 1
e6cc62c6 36537_ACEOF
10f2d63a 36538
1e6feb95 36539 USES_CONTROLS=1
10f2d63a
VZ
36540fi
36541
36542if test "$wxUSE_LISTCTRL" = "yes"; then
36543 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36544 cat >>confdefs.h <<\_ACEOF
10f2d63a 36545#define wxUSE_LISTCTRL 1
e6cc62c6 36546_ACEOF
10f2d63a 36547
1e6feb95 36548 USES_CONTROLS=1
10f2d63a
VZ
36549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36550 else
e6cc62c6
VS
36551 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36552echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36553 fi
36554fi
36555
36556if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 36557 cat >>confdefs.h <<\_ACEOF
10f2d63a 36558#define wxUSE_NOTEBOOK 1
e6cc62c6 36559_ACEOF
10f2d63a 36560
1e6feb95 36561 USES_CONTROLS=1
10f2d63a
VZ
36562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36563fi
36564
24176f2c 36565
10f2d63a 36566if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 36567 cat >>confdefs.h <<\_ACEOF
10f2d63a 36568#define wxUSE_RADIOBOX 1
e6cc62c6 36569_ACEOF
10f2d63a 36570
1e6feb95 36571 USES_CONTROLS=1
10f2d63a
VZ
36572fi
36573
36574if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 36575 cat >>confdefs.h <<\_ACEOF
10f2d63a 36576#define wxUSE_RADIOBTN 1
e6cc62c6 36577_ACEOF
10f2d63a 36578
1e6feb95 36579 USES_CONTROLS=1
10f2d63a
VZ
36580fi
36581
36582if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 36583 cat >>confdefs.h <<\_ACEOF
10f2d63a 36584#define wxUSE_SASH 1
e6cc62c6 36585_ACEOF
10f2d63a
VZ
36586
36587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36588fi
36589
36590if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 36591 cat >>confdefs.h <<\_ACEOF
10f2d63a 36592#define wxUSE_SCROLLBAR 1
e6cc62c6 36593_ACEOF
10f2d63a 36594
1e6feb95 36595 USES_CONTROLS=1
741a9306 36596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
36597fi
36598
36599if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 36600 cat >>confdefs.h <<\_ACEOF
10f2d63a 36601#define wxUSE_SLIDER 1
e6cc62c6 36602_ACEOF
10f2d63a 36603
1e6feb95 36604 USES_CONTROLS=1
10f2d63a
VZ
36605fi
36606
36607if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 36608 cat >>confdefs.h <<\_ACEOF
10f2d63a 36609#define wxUSE_SPINBTN 1
e6cc62c6 36610_ACEOF
10f2d63a 36611
1e6feb95 36612 USES_CONTROLS=1
10f2d63a
VZ
36613fi
36614
56cfaa52 36615if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 36616 cat >>confdefs.h <<\_ACEOF
56cfaa52 36617#define wxUSE_SPINCTRL 1
e6cc62c6 36618_ACEOF
56cfaa52 36619
1e6feb95 36620 USES_CONTROLS=1
56cfaa52
RR
36621fi
36622
10f2d63a 36623if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 36624 cat >>confdefs.h <<\_ACEOF
10f2d63a 36625#define wxUSE_SPLITTER 1
e6cc62c6 36626_ACEOF
10f2d63a
VZ
36627
36628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36629fi
36630
36631if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 36632 cat >>confdefs.h <<\_ACEOF
10f2d63a 36633#define wxUSE_STATBMP 1
e6cc62c6 36634_ACEOF
10f2d63a 36635
1e6feb95 36636 USES_CONTROLS=1
10f2d63a
VZ
36637fi
36638
36639if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 36640 cat >>confdefs.h <<\_ACEOF
10f2d63a 36641#define wxUSE_STATBOX 1
e6cc62c6 36642_ACEOF
10f2d63a 36643
1e6feb95
VZ
36644 USES_CONTROLS=1
36645fi
36646
36647if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 36648 cat >>confdefs.h <<\_ACEOF
1e6feb95 36649#define wxUSE_STATTEXT 1
e6cc62c6 36650_ACEOF
1e6feb95
VZ
36651
36652 USES_CONTROLS=1
10f2d63a
VZ
36653fi
36654
36655if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 36656 cat >>confdefs.h <<\_ACEOF
10f2d63a 36657#define wxUSE_STATLINE 1
e6cc62c6 36658_ACEOF
10f2d63a 36659
89e6bf6d 36660 USES_CONTROLS=1
10f2d63a
VZ
36661fi
36662
36663if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 36664 cat >>confdefs.h <<\_ACEOF
10f2d63a 36665#define wxUSE_STATUSBAR 1
e6cc62c6 36666_ACEOF
10f2d63a 36667
1e6feb95 36668 USES_CONTROLS=1
698dcdb6 36669
2286341c 36670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
36671fi
36672
36673if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 36674 cat >>confdefs.h <<\_ACEOF
10f2d63a 36675#define wxUSE_TAB_DIALOG 1
e6cc62c6 36676_ACEOF
10f2d63a
VZ
36677
36678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36679fi
36680
1e6feb95 36681if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 36682 cat >>confdefs.h <<\_ACEOF
1e6feb95 36683#define wxUSE_TEXTCTRL 1
e6cc62c6 36684_ACEOF
1e6feb95
VZ
36685
36686 USES_CONTROLS=1
36687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36688fi
36689
1db8dc4a 36690if test "$wxUSE_TOGGLEBTN" = "yes"; then
0f87e84c 36691 if test "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36692 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36693echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
36694 wxUSE_TOGGLEBTN=no
36695 fi
36696 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36697 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36698echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
36699 wxUSE_TOGGLEBTN=no
36700 fi
36701
36702 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 36703 cat >>confdefs.h <<\_ACEOF
1db8dc4a 36704#define wxUSE_TOGGLEBTN 1
e6cc62c6 36705_ACEOF
1db8dc4a 36706
1e6feb95 36707 USES_CONTROLS=1
a45d7ab7 36708 fi
1db8dc4a
VZ
36709fi
36710
360d6699 36711if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 36712 cat >>confdefs.h <<\_ACEOF
360d6699 36713#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 36714_ACEOF
360d6699
VZ
36715
36716 wxUSE_TOOLBAR="yes"
1e6feb95 36717 USES_CONTROLS=1
360d6699
VZ
36718fi
36719
10f2d63a 36720if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 36721 cat >>confdefs.h <<\_ACEOF
10f2d63a 36722#define wxUSE_TOOLBAR 1
e6cc62c6 36723_ACEOF
10f2d63a 36724
1e6feb95 36725 USES_CONTROLS=1
698dcdb6 36726
360d6699
VZ
36727 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36728 wxUSE_TOOLBAR_NATIVE="yes"
36729 fi
36730
1e6feb95 36731 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 36732 cat >>confdefs.h <<\_ACEOF
360d6699 36733#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 36734_ACEOF
360d6699 36735
1e6feb95
VZ
36736 USES_CONTROLS=1
36737 fi
36738
36739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
36740fi
36741
10f2d63a
VZ
36742if test "$wxUSE_TOOLTIPS" = "yes"; then
36743 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36744 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36745echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 36746 else
89e6bf6d 36747 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36748 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36749echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 36750 else
e6cc62c6 36751 cat >>confdefs.h <<\_ACEOF
10f2d63a 36752#define wxUSE_TOOLTIPS 1
e6cc62c6 36753_ACEOF
10f2d63a
VZ
36754
36755 fi
36756 fi
36757fi
36758
36759if test "$wxUSE_TREECTRL" = "yes"; then
36760 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36761 cat >>confdefs.h <<\_ACEOF
10f2d63a 36762#define wxUSE_TREECTRL 1
e6cc62c6 36763_ACEOF
10f2d63a 36764
1e6feb95 36765 USES_CONTROLS=1
10f2d63a
VZ
36766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36767 else
e6cc62c6
VS
36768 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36769echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36770 fi
36771fi
36772
9f41d601 36773if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 36774 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36775 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36776echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 36777 else
833a51f6
MB
36778 if test "$wxUSE_PM" = 1; then
36779 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 36780echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
36781 else
36782 cat >>confdefs.h <<\_ACEOF
9f41d601 36783#define wxUSE_POPUPWIN 1
e6cc62c6 36784_ACEOF
9f41d601 36785
8284b0c5 36786
833a51f6 36787 USES_CONTROLS=1
485cf710 36788 fi
6abe4b65 36789 fi
9f41d601
RR
36790fi
36791
dd964dcc 36792if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 36793 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
36794 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36795echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 36796 else
e6cc62c6 36797 cat >>confdefs.h <<\_ACEOF
dd964dcc 36798#define wxUSE_TIPWINDOW 1
e6cc62c6 36799_ACEOF
dd964dcc 36800
3c011993 36801 fi
dd964dcc
VZ
36802fi
36803
1e6feb95 36804if test "$USES_CONTROLS" = 1; then
e6cc62c6 36805 cat >>confdefs.h <<\_ACEOF
1e6feb95 36806#define wxUSE_CONTROLS 1
e6cc62c6 36807_ACEOF
10f2d63a 36808
10f2d63a
VZ
36809fi
36810
8284b0c5 36811
e46d2a18
VS
36812if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36813 cat >>confdefs.h <<\_ACEOF
36814#define wxUSE_ACCESSIBILITY 1
36815_ACEOF
36816
36817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36818fi
1e6feb95 36819
24fd6d87 36820if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 36821 cat >>confdefs.h <<\_ACEOF
24fd6d87 36822#define wxUSE_DRAGIMAGE 1
e6cc62c6 36823_ACEOF
24fd6d87
VZ
36824
36825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36826fi
36827
e46d2a18 36828if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 36829 cat >>confdefs.h <<\_ACEOF
e46d2a18 36830#define wxUSE_EXCEPTIONS 1
e6cc62c6 36831_ACEOF
7bb2947d 36832
e46d2a18
VS
36833fi
36834
36835USE_HTML=0
36836if test "$wxUSE_HTML" = "yes"; then
36837 cat >>confdefs.h <<\_ACEOF
36838#define wxUSE_HTML 1
36839_ACEOF
36840
36841 USE_HTML=1
36842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
36843fi
36844
1e6feb95 36845if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 36846 cat >>confdefs.h <<\_ACEOF
1e6feb95 36847#define wxUSE_MENUS 1
e6cc62c6 36848_ACEOF
10f2d63a 36849
1e6feb95 36850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
36851fi
36852
1e6feb95 36853if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36854 cat >>confdefs.h <<\_ACEOF
1e6feb95 36855#define wxUSE_METAFILE 1
e6cc62c6 36856_ACEOF
10f2d63a 36857
10f2d63a
VZ
36858fi
36859
1e6feb95 36860if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 36861 cat >>confdefs.h <<\_ACEOF
1e6feb95 36862#define wxUSE_MIMETYPE 1
e6cc62c6 36863_ACEOF
10f2d63a 36864
10f2d63a
VZ
36865fi
36866
36867if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36868 cat >>confdefs.h <<\_ACEOF
10f2d63a 36869#define wxUSE_MINIFRAME 1
e6cc62c6 36870_ACEOF
10f2d63a
VZ
36871
36872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36873fi
36874
e46d2a18 36875if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36876 cat >>confdefs.h <<\_ACEOF
e46d2a18 36877#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36878_ACEOF
10f2d63a 36879
e46d2a18
VS
36880 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36881 "$TOOLKIT" = "MOTIF"; then
36882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36883 fi
10f2d63a
VZ
36884fi
36885
e46d2a18 36886
10f2d63a 36887if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 36888 cat >>confdefs.h <<\_ACEOF
1e487827 36889#define wxUSE_VALIDATORS 1
e6cc62c6 36890_ACEOF
703e0a69 36891
698dcdb6
VZ
36892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36893fi
36894
edae8572 36895if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 36896 cat >>confdefs.h <<\_ACEOF
edae8572 36897#define wxUSE_PALETTE 1
e6cc62c6 36898_ACEOF
edae8572
VZ
36899
36900fi
36901
e46d2a18
VS
36902if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36903 LIBS=" -lunicows $LIBS"
36904fi
36905
36906
698dcdb6 36907if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 36908 cat >>confdefs.h <<\_ACEOF
698dcdb6 36909#define wxUSE_IMAGE 1
e6cc62c6 36910_ACEOF
698dcdb6 36911
698dcdb6 36912
e46d2a18
VS
36913 if test "$wxUSE_GIF" = "yes" ; then
36914 cat >>confdefs.h <<\_ACEOF
698dcdb6 36915#define wxUSE_GIF 1
e6cc62c6 36916_ACEOF
698dcdb6 36917
e46d2a18 36918 fi
698dcdb6 36919
e46d2a18
VS
36920 if test "$wxUSE_PCX" = "yes" ; then
36921 cat >>confdefs.h <<\_ACEOF
698dcdb6 36922#define wxUSE_PCX 1
e6cc62c6 36923_ACEOF
698dcdb6 36924
e46d2a18 36925 fi
698dcdb6 36926
e46d2a18
VS
36927 if test "$wxUSE_IFF" = "yes" ; then
36928 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 36929#define wxUSE_IFF 1
e6cc62c6 36930_ACEOF
4b6b4dfc 36931
e46d2a18 36932 fi
4b6b4dfc 36933
e46d2a18
VS
36934 if test "$wxUSE_PNM" = "yes" ; then
36935 cat >>confdefs.h <<\_ACEOF
698dcdb6 36936#define wxUSE_PNM 1
e6cc62c6 36937_ACEOF
698dcdb6 36938
e46d2a18 36939 fi
698dcdb6 36940
e46d2a18
VS
36941 if test "$wxUSE_XPM" = "yes" ; then
36942 cat >>confdefs.h <<\_ACEOF
698dcdb6 36943#define wxUSE_XPM 1
e6cc62c6 36944_ACEOF
698dcdb6 36945
e46d2a18 36946 fi
698dcdb6 36947
e46d2a18
VS
36948 if test "$wxUSE_ICO_CUR" = "yes" ; then
36949 cat >>confdefs.h <<\_ACEOF
658974ae 36950#define wxUSE_ICO_CUR 1
e6cc62c6 36951_ACEOF
658974ae 36952
e46d2a18 36953 fi
a72a4bfa
VS
36954fi
36955
8284b0c5 36956
1e6feb95 36957if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 36958 cat >>confdefs.h <<\_ACEOF
1e6feb95 36959#define wxUSE_CHOICEDLG 1
e6cc62c6 36960_ACEOF
1e6feb95
VZ
36961
36962fi
36963
36964if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36965 cat >>confdefs.h <<\_ACEOF
1e6feb95 36966#define wxUSE_COLOURDLG 1
e6cc62c6 36967_ACEOF
1e6feb95
VZ
36968
36969fi
36970
36971if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36972 cat >>confdefs.h <<\_ACEOF
1e6feb95 36973#define wxUSE_FILEDLG 1
e6cc62c6 36974_ACEOF
1e6feb95
VZ
36975
36976fi
36977
8db37e06 36978if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36979 cat >>confdefs.h <<\_ACEOF
8db37e06 36980#define wxUSE_FINDREPLDLG 1
e6cc62c6 36981_ACEOF
8db37e06
VZ
36982
36983fi
36984
1e6feb95 36985if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36986 cat >>confdefs.h <<\_ACEOF
1e6feb95 36987#define wxUSE_FONTDLG 1
e6cc62c6 36988_ACEOF
1e6feb95
VZ
36989
36990fi
36991
36992if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36993 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36994 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36995echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36996 else
e6cc62c6 36997 cat >>confdefs.h <<\_ACEOF
1e6feb95 36998#define wxUSE_DIRDLG 1
e6cc62c6 36999_ACEOF
1e6feb95 37000
1e6feb95
VZ
37001 fi
37002fi
37003
37004if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 37005 cat >>confdefs.h <<\_ACEOF
1e6feb95 37006#define wxUSE_MSGDLG 1
e6cc62c6 37007_ACEOF
1e6feb95
VZ
37008
37009fi
37010
37011if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 37012 cat >>confdefs.h <<\_ACEOF
1e6feb95 37013#define wxUSE_NUMBERDLG 1
e6cc62c6 37014_ACEOF
1e6feb95
VZ
37015
37016fi
37017
37018if test "$wxUSE_PROGRESSDLG" = "yes"; then
37019 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37020 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37021echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 37022 else
e6cc62c6 37023 cat >>confdefs.h <<\_ACEOF
1e6feb95 37024#define wxUSE_PROGRESSDLG 1
e6cc62c6 37025_ACEOF
1e6feb95
VZ
37026
37027 fi
37028fi
37029
cbca9943 37030if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 37031 cat >>confdefs.h <<\_ACEOF
cbca9943 37032#define wxUSE_SPLASH 1
e6cc62c6 37033_ACEOF
cbca9943
VZ
37034
37035fi
37036
1e6feb95
VZ
37037if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37038 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37039 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37040echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 37041 else
e6cc62c6 37042 cat >>confdefs.h <<\_ACEOF
1e6feb95 37043#define wxUSE_STARTUP_TIPS 1
e6cc62c6 37044_ACEOF
1e6feb95 37045
7b4a847f
RR
37046 fi
37047fi
579d8138 37048
8284b0c5 37049if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 37050 cat >>confdefs.h <<\_ACEOF
8284b0c5 37051#define wxUSE_TEXTDLG 1
e6cc62c6 37052_ACEOF
8284b0c5
MB
37053
37054fi
37055
37056if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 37057 cat >>confdefs.h <<\_ACEOF
8284b0c5 37058#define wxUSE_WIZARDDLG 1
e6cc62c6 37059_ACEOF
8284b0c5
MB
37060
37061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37062fi
37063
37064
37065if test "$cross_compiling" = "yes"; then
37066 OSINFO="\"$host\""
37067else
37068 OSINFO=`uname -s -r -m`
37069 OSINFO="\"$OSINFO\""
37070fi
37071
e6cc62c6 37072cat >>confdefs.h <<_ACEOF
8284b0c5 37073#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 37074_ACEOF
8284b0c5
MB
37075
37076
37077
37078if test "x$prefix" != "xNONE"; then
37079 wxPREFIX=$prefix
37080else
37081 wxPREFIX=$ac_default_prefix
37082fi
37083
e6cc62c6 37084cat >>confdefs.h <<_ACEOF
8284b0c5 37085#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 37086_ACEOF
8284b0c5
MB
37087
37088
e6cc62c6 37089top_builddir_wxconfig=`pwd`
52c71b80 37090
8284b0c5
MB
37091
37092
edd891e2
VS
37093CORE_BASE_LIBS="net base"
37094CORE_GUI_LIBS="adv core"
37095
37096if test "$wxUSE_XML" = "yes" ; then
37097 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37098fi
45293562
VS
37099if test "$wxUSE_ODBC" != "no" ; then
37100 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37101 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
37102fi
37103if test "$wxUSE_HTML" = "yes" ; then
37104 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37105fi
37106
57e7d4ac
VS
37107if test "$wxUSE_GUI" != "yes"; then
37108 CORE_GUI_LIBS=""
37109fi
37110
edd891e2
VS
37111
37112
37113
37114
37115
37116
8284b0c5
MB
37117
37118if test "$wxUSE_MAC" = 1 ; then
37119 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37120fi
ac0c4cc3
DE
37121if test "$wxUSE_COCOA" = 1 ; then
37122 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37123fi
8284b0c5
MB
37124
37125
2b5f62a0
VZ
37126LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37127
37128have_cos=0
37129have_floor=0
e6cc62c6 37130
2b5f62a0
VZ
37131for ac_func in cos
37132do
e6cc62c6
VS
37133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37134echo "$as_me:$LINENO: checking for $ac_func" >&5
37135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37136if eval "test \"\${$as_ac_var+set}\" = set"; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37138else
37139 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37140/* confdefs.h. */
37141_ACEOF
37142cat confdefs.h >>conftest.$ac_ext
37143cat >>conftest.$ac_ext <<_ACEOF
37144/* end confdefs.h. */
32ddf007
VS
37145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37147#define $ac_func innocuous_$ac_func
37148
2b5f62a0 37149/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37150 which can conflict with char $ac_func (); below.
37151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37152 <limits.h> exists even on freestanding compilers. */
32ddf007 37153
e6cc62c6
VS
37154#ifdef __STDC__
37155# include <limits.h>
37156#else
37157# include <assert.h>
37158#endif
32ddf007
VS
37159
37160#undef $ac_func
37161
2b5f62a0 37162/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37163#ifdef __cplusplus
37164extern "C"
37165{
37166#endif
2b5f62a0 37167/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37168 builtin and then its argument prototype would still apply. */
37169char $ac_func ();
2b5f62a0
VZ
37170/* The GNU C library defines this for functions which it implements
37171 to always fail with ENOSYS. Some functions are actually named
37172 something starting with __ and the normal name is an alias. */
37173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37174choke me
37175#else
e6cc62c6
VS
37176char (*f) () = $ac_func;
37177#endif
37178#ifdef __cplusplus
37179}
2b5f62a0
VZ
37180#endif
37181
e6cc62c6
VS
37182int
37183main ()
37184{
37185return f != $ac_func;
37186 ;
37187 return 0;
37188}
37189_ACEOF
37190rm -f conftest.$ac_objext conftest$ac_exeext
37191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37192 (eval $ac_link) 2>conftest.er1
e6cc62c6 37193 ac_status=$?
32ddf007
VS
37194 grep -v '^ *+' conftest.er1 >conftest.err
37195 rm -f conftest.er1
37196 cat conftest.err >&5
e6cc62c6
VS
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); } &&
e1293dcf 37199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37201 (eval $ac_try) 2>&5
37202 ac_status=$?
37203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); }; } &&
37205 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37207 (eval $ac_try) 2>&5
37208 ac_status=$?
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); }; }; then
37211 eval "$as_ac_var=yes"
37212else
37213 echo "$as_me: failed program was:" >&5
37214sed 's/^/| /' conftest.$ac_ext >&5
37215
37216eval "$as_ac_var=no"
37217fi
32ddf007
VS
37218rm -f conftest.err conftest.$ac_objext \
37219 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37220fi
37221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37223if test `eval echo '${'$as_ac_var'}'` = yes; then
37224 cat >>confdefs.h <<_ACEOF
37225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37226_ACEOF
2b5f62a0 37227 have_cos=1
2b5f62a0
VZ
37228fi
37229done
37230
e6cc62c6 37231
2b5f62a0
VZ
37232for ac_func in floor
37233do
e6cc62c6
VS
37234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37235echo "$as_me:$LINENO: checking for $ac_func" >&5
37236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37237if eval "test \"\${$as_ac_var+set}\" = set"; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37239else
37240 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37241/* confdefs.h. */
37242_ACEOF
37243cat confdefs.h >>conftest.$ac_ext
37244cat >>conftest.$ac_ext <<_ACEOF
37245/* end confdefs.h. */
32ddf007
VS
37246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37248#define $ac_func innocuous_$ac_func
37249
2b5f62a0 37250/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37251 which can conflict with char $ac_func (); below.
37252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37253 <limits.h> exists even on freestanding compilers. */
32ddf007 37254
e6cc62c6
VS
37255#ifdef __STDC__
37256# include <limits.h>
37257#else
37258# include <assert.h>
37259#endif
32ddf007
VS
37260
37261#undef $ac_func
37262
2b5f62a0 37263/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37264#ifdef __cplusplus
37265extern "C"
37266{
37267#endif
2b5f62a0 37268/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37269 builtin and then its argument prototype would still apply. */
37270char $ac_func ();
2b5f62a0
VZ
37271/* The GNU C library defines this for functions which it implements
37272 to always fail with ENOSYS. Some functions are actually named
37273 something starting with __ and the normal name is an alias. */
37274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37275choke me
37276#else
e6cc62c6
VS
37277char (*f) () = $ac_func;
37278#endif
37279#ifdef __cplusplus
37280}
2b5f62a0
VZ
37281#endif
37282
e6cc62c6
VS
37283int
37284main ()
37285{
37286return f != $ac_func;
37287 ;
37288 return 0;
37289}
37290_ACEOF
37291rm -f conftest.$ac_objext conftest$ac_exeext
37292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37293 (eval $ac_link) 2>conftest.er1
e6cc62c6 37294 ac_status=$?
32ddf007
VS
37295 grep -v '^ *+' conftest.er1 >conftest.err
37296 rm -f conftest.er1
37297 cat conftest.err >&5
e6cc62c6
VS
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); } &&
e1293dcf 37300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37302 (eval $ac_try) 2>&5
37303 ac_status=$?
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); }; } &&
37306 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37308 (eval $ac_try) 2>&5
37309 ac_status=$?
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; }; then
37312 eval "$as_ac_var=yes"
37313else
37314 echo "$as_me: failed program was:" >&5
37315sed 's/^/| /' conftest.$ac_ext >&5
37316
37317eval "$as_ac_var=no"
37318fi
32ddf007
VS
37319rm -f conftest.err conftest.$ac_objext \
37320 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37321fi
37322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37324if test `eval echo '${'$as_ac_var'}'` = yes; then
37325 cat >>confdefs.h <<_ACEOF
37326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37327_ACEOF
2b5f62a0 37328 have_floor=1
2b5f62a0
VZ
37329fi
37330done
37331
e6cc62c6
VS
37332echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37333echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 37334if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
37335 echo "$as_me:$LINENO: result: yes" >&5
37336echo "${ECHO_T}yes" >&6
2b5f62a0 37337else
e6cc62c6
VS
37338 echo "$as_me:$LINENO: result: no" >&5
37339echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37340 LIBS="$LIBS -lm"
37341 # use different functions to avoid configure caching
37342 have_sin=0
37343 have_ceil=0
e6cc62c6
VS
37344
37345for ac_func in sin
2b5f62a0 37346do
e6cc62c6
VS
37347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37348echo "$as_me:$LINENO: checking for $ac_func" >&5
37349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37350if eval "test \"\${$as_ac_var+set}\" = set"; then
37351 echo $ECHO_N "(cached) $ECHO_C" >&6
37352else
37353 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37354/* confdefs.h. */
37355_ACEOF
37356cat confdefs.h >>conftest.$ac_ext
37357cat >>conftest.$ac_ext <<_ACEOF
37358/* end confdefs.h. */
32ddf007
VS
37359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37361#define $ac_func innocuous_$ac_func
37362
2b5f62a0 37363/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37364 which can conflict with char $ac_func (); below.
37365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37366 <limits.h> exists even on freestanding compilers. */
32ddf007 37367
e6cc62c6
VS
37368#ifdef __STDC__
37369# include <limits.h>
37370#else
37371# include <assert.h>
37372#endif
32ddf007
VS
37373
37374#undef $ac_func
37375
2b5f62a0 37376/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37377#ifdef __cplusplus
37378extern "C"
37379{
37380#endif
2b5f62a0 37381/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37382 builtin and then its argument prototype would still apply. */
37383char $ac_func ();
2b5f62a0
VZ
37384/* The GNU C library defines this for functions which it implements
37385 to always fail with ENOSYS. Some functions are actually named
37386 something starting with __ and the normal name is an alias. */
37387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37388choke me
37389#else
e6cc62c6
VS
37390char (*f) () = $ac_func;
37391#endif
37392#ifdef __cplusplus
37393}
2b5f62a0
VZ
37394#endif
37395
e6cc62c6
VS
37396int
37397main ()
37398{
37399return f != $ac_func;
37400 ;
37401 return 0;
37402}
37403_ACEOF
37404rm -f conftest.$ac_objext conftest$ac_exeext
37405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37406 (eval $ac_link) 2>conftest.er1
e6cc62c6 37407 ac_status=$?
32ddf007
VS
37408 grep -v '^ *+' conftest.er1 >conftest.err
37409 rm -f conftest.er1
37410 cat conftest.err >&5
e6cc62c6
VS
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } &&
e1293dcf 37413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37416 ac_status=$?
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; } &&
37419 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; }; then
37425 eval "$as_ac_var=yes"
37426else
37427 echo "$as_me: failed program was:" >&5
37428sed 's/^/| /' conftest.$ac_ext >&5
37429
37430eval "$as_ac_var=no"
37431fi
32ddf007
VS
37432rm -f conftest.err conftest.$ac_objext \
37433 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37434fi
37435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37437if test `eval echo '${'$as_ac_var'}'` = yes; then
37438 cat >>confdefs.h <<_ACEOF
37439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37440_ACEOF
2b5f62a0 37441 have_sin=1
2b5f62a0
VZ
37442fi
37443done
37444
e6cc62c6
VS
37445
37446for ac_func in ceil
2b5f62a0 37447do
e6cc62c6
VS
37448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37449echo "$as_me:$LINENO: checking for $ac_func" >&5
37450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37451if eval "test \"\${$as_ac_var+set}\" = set"; then
37452 echo $ECHO_N "(cached) $ECHO_C" >&6
37453else
37454 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37455/* confdefs.h. */
37456_ACEOF
37457cat confdefs.h >>conftest.$ac_ext
37458cat >>conftest.$ac_ext <<_ACEOF
37459/* end confdefs.h. */
32ddf007
VS
37460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37462#define $ac_func innocuous_$ac_func
37463
2b5f62a0 37464/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37465 which can conflict with char $ac_func (); below.
37466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37467 <limits.h> exists even on freestanding compilers. */
32ddf007 37468
e6cc62c6
VS
37469#ifdef __STDC__
37470# include <limits.h>
37471#else
37472# include <assert.h>
37473#endif
32ddf007
VS
37474
37475#undef $ac_func
37476
2b5f62a0 37477/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37478#ifdef __cplusplus
37479extern "C"
37480{
37481#endif
2b5f62a0 37482/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37483 builtin and then its argument prototype would still apply. */
37484char $ac_func ();
2b5f62a0
VZ
37485/* The GNU C library defines this for functions which it implements
37486 to always fail with ENOSYS. Some functions are actually named
37487 something starting with __ and the normal name is an alias. */
37488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37489choke me
37490#else
e6cc62c6
VS
37491char (*f) () = $ac_func;
37492#endif
37493#ifdef __cplusplus
37494}
2b5f62a0
VZ
37495#endif
37496
e6cc62c6
VS
37497int
37498main ()
37499{
37500return f != $ac_func;
37501 ;
37502 return 0;
37503}
37504_ACEOF
37505rm -f conftest.$ac_objext conftest$ac_exeext
37506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37507 (eval $ac_link) 2>conftest.er1
e6cc62c6 37508 ac_status=$?
32ddf007
VS
37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
e6cc62c6
VS
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
e1293dcf 37514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37523 ac_status=$?
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; }; then
37526 eval "$as_ac_var=yes"
37527else
37528 echo "$as_me: failed program was:" >&5
37529sed 's/^/| /' conftest.$ac_ext >&5
37530
37531eval "$as_ac_var=no"
37532fi
32ddf007
VS
37533rm -f conftest.err conftest.$ac_objext \
37534 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37535fi
37536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37538if test `eval echo '${'$as_ac_var'}'` = yes; then
37539 cat >>confdefs.h <<_ACEOF
37540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37541_ACEOF
2b5f62a0 37542 have_ceil=1
2b5f62a0
VZ
37543fi
37544done
37545
e6cc62c6
VS
37546 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37547echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 37548 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
37549 echo "$as_me:$LINENO: result: yes" >&5
37550echo "${ECHO_T}yes" >&6
2b5f62a0 37551 else
e6cc62c6
VS
37552 echo "$as_me:$LINENO: result: no" >&5
37553echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37554 # not sure we should warn the user, crash, etc.
37555 fi
37556fi
8284b0c5
MB
37557
37558if test "$wxUSE_GUI" = "yes"; then
37559
e6cc62c6 37560
8284b0c5
MB
37561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37562 drawing dynamic erase event exec font image \
1dd02ac0 37563 minimal propsize rotate shaped widgets render"
b625909c
VS
37564
37565 if test "$wxUSE_MONOLITHIC" != "yes"; then
37566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37567 fi
8284b0c5
MB
37568else
37569 SAMPLES_SUBDIRS="console"
37570fi
37571
37572
e6cc62c6 37573INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 37574-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 37575
fddeb06b
VS
37576if test "$GXX" = yes ; then
37577 CXXWARNINGS="-Wall"
37578 fi
37579
37580EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37581
95318f7d 37582CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
37583CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37584CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
37585
37586
fddeb06b 37587LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 37588EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 37589EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 37590EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 37591EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
37592if test "$wxUSE_GUI" = "yes"; then
37593 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37594fi
34b08d2c
VS
37595if test "$wxUSE_OPENGL" = "yes"; then
37596 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37597fi
fddeb06b
VS
37598
37599LDFLAGS="$LDFLAGS $PROFILE"
37600
8284b0c5
MB
37601if test "$wxUSE_GTK" = 1; then
37602 WXCONFIG_INCLUDE=
37603else
37604 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37605fi
37606
67c13b6c
VS
37607WXCONFIG_EXTRALIBS="$LIBS"
37608
37609if test "$wxUSE_REGEX" = "builtin" ; then
4996f261 37610 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
67c13b6c
VS
37611fi
37612if test "$wxUSE_EXPAT" = "builtin" ; then
37613 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37614fi
37615if test "$wxUSE_ODBC" = "builtin" ; then
37616 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37617fi
37618if test "$wxUSE_LIBTIFF" = "builtin" ; then
37619 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37620fi
37621if test "$wxUSE_LIBJPEG" = "builtin" ; then
37622 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37623fi
37624if test "$wxUSE_LIBPNG" = "builtin" ; then
37625 wxconfig_3rdparty="$wxconfig_3rdparty png"
37626fi
37627if test "$wxUSE_ZLIB" = "builtin" ; then
37628 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37629fi
bb41dcbe
VS
37630if test "$wxUSE_ODBC" = "builtin" ; then
37631 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37632fi
67c13b6c
VS
37633
37634for i in $wxconfig_3rdparty ; do
37635 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37636done
37637
37638
fe0895cf
VS
37639if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37640 WXUNIV=1
37641else
37642 WXUNIV=0
8284b0c5
MB
37643fi
37644
8284b0c5
MB
37645
37646
37647
37648
37649
37650
37651
672abd7a 37652
9747f85d
VS
37653if test $wxUSE_MONOLITHIC = "yes" ; then
37654 MONOLITHIC=1
37655else
37656 MONOLITHIC=0
37657fi
8284b0c5 37658
f93ca9fd
VS
37659if test $wxUSE_PLUGINS = "yes" ; then
37660 USE_PLUGINS=1
37661else
37662 USE_PLUGINS=0
37663fi
37664
bb41dcbe
VS
37665if test $wxUSE_ODBC != "no" ; then
37666 USE_ODBC=1
37667else
37668 USE_ODBC=0
37669fi
37670
029b47ad
VS
37671if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37672 OFFICIAL_BUILD=1
37673else
37674 OFFICIAL_BUILD=0
37675fi
37676
8ee2dd05
VS
37677
37678
37679
8284b0c5
MB
37680
37681
37682
37683
37684
37685
c74dc163 37686
34b08d2c 37687
672abd7a 37688
cf615ebb 37689
6c67131a
VS
37690
37691
bb41dcbe 37692
f93ca9fd
VS
37693
37694
37695
3527f29c 37696
89fe663f 37697TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
37698
37699
37700
37701
37702
ea66c762 37703
0f1bc9c2 37704
f95e4495
VS
37705 if test "x$BAKEFILE_HOST" = "x"; then
37706 BAKEFILE_HOST="${host}"
37707 fi
37708
fe0895cf 37709 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
37710
37711 if test -n "$ac_tool_prefix"; then
37712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37714echo "$as_me:$LINENO: checking for $ac_word" >&5
37715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37716if test "${ac_cv_prog_RANLIB+set}" = set; then
37717 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 37718else
fe0895cf
VS
37719 if test -n "$RANLIB"; then
37720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 37721else
e6cc62c6
VS
37722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37723for as_dir in $PATH
37724do
37725 IFS=$as_save_IFS
37726 test -z "$as_dir" && as_dir=.
37727 for ac_exec_ext in '' $ac_executable_extensions; do
37728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37731 break 2
37732 fi
37733done
37734done
37735
10f2d63a 37736fi
10f2d63a 37737fi
e6cc62c6 37738RANLIB=$ac_cv_prog_RANLIB
fe0895cf 37739if test -n "$RANLIB"; then
e6cc62c6
VS
37740 echo "$as_me:$LINENO: result: $RANLIB" >&5
37741echo "${ECHO_T}$RANLIB" >&6
37742else
37743 echo "$as_me:$LINENO: result: no" >&5
37744echo "${ECHO_T}no" >&6
37745fi
37746
37747fi
37748if test -z "$ac_cv_prog_RANLIB"; then
37749 ac_ct_RANLIB=$RANLIB
37750 # Extract the first word of "ranlib", so it can be a program name with args.
37751set dummy ranlib; ac_word=$2
37752echo "$as_me:$LINENO: checking for $ac_word" >&5
37753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37754if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37756else
37757 if test -n "$ac_ct_RANLIB"; then
37758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37759else
37760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37761for as_dir in $PATH
37762do
37763 IFS=$as_save_IFS
37764 test -z "$as_dir" && as_dir=.
37765 for ac_exec_ext in '' $ac_executable_extensions; do
37766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37767 ac_cv_prog_ac_ct_RANLIB="ranlib"
37768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37769 break 2
37770 fi
37771done
37772done
37773
37774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37775fi
37776fi
37777ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37778if test -n "$ac_ct_RANLIB"; then
37779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37780echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 37781else
e6cc62c6
VS
37782 echo "$as_me:$LINENO: result: no" >&5
37783echo "${ECHO_T}no" >&6
37784fi
37785
37786 RANLIB=$ac_ct_RANLIB
37787else
37788 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 37789fi
665bbe97 37790
fe0895cf
VS
37791 # Find a good install program. We prefer a C program (faster),
37792# so one script is as good as another. But avoid the broken or
37793# incompatible versions:
37794# SysV /etc/install, /usr/sbin/install
37795# SunOS /usr/etc/install
37796# IRIX /sbin/install
37797# AIX /bin/install
e6cc62c6 37798# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
37799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 37802# OS/2's system install, which has a completely different semantic
fe0895cf 37803# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
37804echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37805echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 37806if test -z "$INSTALL"; then
e6cc62c6
VS
37807if test "${ac_cv_path_install+set}" = set; then
37808 echo $ECHO_N "(cached) $ECHO_C" >&6
37809else
37810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37811for as_dir in $PATH
37812do
37813 IFS=$as_save_IFS
37814 test -z "$as_dir" && as_dir=.
37815 # Account for people who put trailing slashes in PATH elements.
37816case $as_dir/ in
37817 ./ | .// | /cC/* | \
37818 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 37819 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
37820 /usr/ucb/* ) ;;
37821 *)
37822 # OSF1 and SCO ODT 3.0 have their own names for install.
37823 # Don't use installbsd from OSF since it installs stuff as root
37824 # by default.
37825 for ac_prog in ginstall scoinst install; do
37826 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
37827 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37828 if test $ac_prog = install &&
37829 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37830 # AIX install. It has an incompatible calling convention.
37831 :
37832 elif test $ac_prog = install &&
37833 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37834 # program-specific install script used by HP pwplus--don't use.
37835 :
37836 else
37837 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37838 break 3
37839 fi
37840 fi
fe0895cf 37841 done
e6cc62c6
VS
37842 done
37843 ;;
37844esac
37845done
37846
fe0895cf
VS
37847
37848fi
37849 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 37850 INSTALL=$ac_cv_path_install
fe0895cf
VS
37851 else
37852 # As a last resort, use the slow shell script. We don't cache a
37853 # path for INSTALL within a source directory, because that will
37854 # break other packages using the cache if that directory is
37855 # removed, or if the path is relative.
e6cc62c6 37856 INSTALL=$ac_install_sh
fe0895cf
VS
37857 fi
37858fi
e6cc62c6
VS
37859echo "$as_me:$LINENO: result: $INSTALL" >&5
37860echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
37861
37862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37863# It thinks the first close brace ends the variable substitution.
37864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37865
e6cc62c6 37866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
37867
37868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37869
e6cc62c6
VS
37870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37871echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37872LN_S=$as_ln_s
37873if test "$LN_S" = "ln -s"; then
37874 echo "$as_me:$LINENO: result: yes" >&5
37875echo "${ECHO_T}yes" >&6
fe0895cf 37876else
e6cc62c6
VS
37877 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37878echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
37879fi
37880
37881
e6cc62c6
VS
37882 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37883echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 37884set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
37885if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37887else
e6cc62c6 37888 cat >conftest.make <<\_ACEOF
fe0895cf 37889all:
e6cc62c6
VS
37890 @echo 'ac_maketemp="$(MAKE)"'
37891_ACEOF
fe0895cf 37892# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 37893eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
37894if test -n "$ac_maketemp"; then
37895 eval ac_cv_prog_make_${ac_make}_set=yes
37896else
37897 eval ac_cv_prog_make_${ac_make}_set=no
37898fi
e6cc62c6 37899rm -f conftest.make
fe0895cf
VS
37900fi
37901if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
37902 echo "$as_me:$LINENO: result: yes" >&5
37903echo "${ECHO_T}yes" >&6
fe0895cf
VS
37904 SET_MAKE=
37905else
e6cc62c6
VS
37906 echo "$as_me:$LINENO: result: no" >&5
37907echo "${ECHO_T}no" >&6
fe0895cf
VS
37908 SET_MAKE="MAKE=${MAKE-make}"
37909fi
37910
e6cc62c6
VS
37911
37912
874d12cf
VS
37913 if test -n "$ac_tool_prefix"; then
37914 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37915set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
37916echo "$as_me:$LINENO: checking for $ac_word" >&5
37917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37918if test "${ac_cv_prog_AR+set}" = set; then
37919 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37920else
37921 if test -n "$AR"; then
37922 ac_cv_prog_AR="$AR" # Let the user override the test.
37923else
e6cc62c6
VS
37924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37925for as_dir in $PATH
37926do
37927 IFS=$as_save_IFS
37928 test -z "$as_dir" && as_dir=.
37929 for ac_exec_ext in '' $ac_executable_extensions; do
37930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37931 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
37932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37933 break 2
37934 fi
37935done
37936done
37937
fe0895cf
VS
37938fi
37939fi
e6cc62c6 37940AR=$ac_cv_prog_AR
fe0895cf 37941if test -n "$AR"; then
e6cc62c6
VS
37942 echo "$as_me:$LINENO: result: $AR" >&5
37943echo "${ECHO_T}$AR" >&6
fe0895cf 37944else
e6cc62c6
VS
37945 echo "$as_me:$LINENO: result: no" >&5
37946echo "${ECHO_T}no" >&6
fe0895cf
VS
37947fi
37948
874d12cf
VS
37949fi
37950if test -z "$ac_cv_prog_AR"; then
37951 ac_ct_AR=$AR
37952 # Extract the first word of "ar", so it can be a program name with args.
37953set dummy ar; ac_word=$2
37954echo "$as_me:$LINENO: checking for $ac_word" >&5
37955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37956if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37957 echo $ECHO_N "(cached) $ECHO_C" >&6
37958else
37959 if test -n "$ac_ct_AR"; then
37960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37961else
37962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37963for as_dir in $PATH
37964do
37965 IFS=$as_save_IFS
37966 test -z "$as_dir" && as_dir=.
37967 for ac_exec_ext in '' $ac_executable_extensions; do
37968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37969 ac_cv_prog_ac_ct_AR="ar"
37970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37971 break 2
37972 fi
37973done
37974done
37975
37976 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37977fi
37978fi
37979ac_ct_AR=$ac_cv_prog_ac_ct_AR
37980if test -n "$ac_ct_AR"; then
37981 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37982echo "${ECHO_T}$ac_ct_AR" >&6
37983else
37984 echo "$as_me:$LINENO: result: no" >&5
37985echo "${ECHO_T}no" >&6
37986fi
37987
37988 AR=$ac_ct_AR
37989else
37990 AR="$ac_cv_prog_AR"
37991fi
37992
37993 if test -n "$ac_tool_prefix"; then
37994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37995set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
37996echo "$as_me:$LINENO: checking for $ac_word" >&5
37997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37998if test "${ac_cv_prog_STRIP+set}" = set; then
37999 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38000else
38001 if test -n "$STRIP"; then
38002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38003else
e6cc62c6
VS
38004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38005for as_dir in $PATH
38006do
38007 IFS=$as_save_IFS
38008 test -z "$as_dir" && as_dir=.
38009 for ac_exec_ext in '' $ac_executable_extensions; do
38010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
38012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38013 break 2
38014 fi
38015done
38016done
38017
fe0895cf
VS
38018fi
38019fi
e6cc62c6 38020STRIP=$ac_cv_prog_STRIP
fe0895cf 38021if test -n "$STRIP"; then
e6cc62c6
VS
38022 echo "$as_me:$LINENO: result: $STRIP" >&5
38023echo "${ECHO_T}$STRIP" >&6
fe0895cf 38024else
e6cc62c6
VS
38025 echo "$as_me:$LINENO: result: no" >&5
38026echo "${ECHO_T}no" >&6
fe0895cf
VS
38027fi
38028
874d12cf
VS
38029fi
38030if test -z "$ac_cv_prog_STRIP"; then
38031 ac_ct_STRIP=$STRIP
38032 # Extract the first word of "strip", so it can be a program name with args.
38033set dummy strip; ac_word=$2
38034echo "$as_me:$LINENO: checking for $ac_word" >&5
38035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38037 echo $ECHO_N "(cached) $ECHO_C" >&6
38038else
38039 if test -n "$ac_ct_STRIP"; then
38040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38041else
38042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38043for as_dir in $PATH
38044do
38045 IFS=$as_save_IFS
38046 test -z "$as_dir" && as_dir=.
38047 for ac_exec_ext in '' $ac_executable_extensions; do
38048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38049 ac_cv_prog_ac_ct_STRIP="strip"
38050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38051 break 2
38052 fi
38053done
38054done
38055
38056 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38057fi
38058fi
38059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38060if test -n "$ac_ct_STRIP"; then
38061 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38062echo "${ECHO_T}$ac_ct_STRIP" >&6
38063else
38064 echo "$as_me:$LINENO: result: no" >&5
38065echo "${ECHO_T}no" >&6
38066fi
38067
38068 STRIP=$ac_ct_STRIP
38069else
38070 STRIP="$ac_cv_prog_STRIP"
38071fi
38072
38073 if test -n "$ac_tool_prefix"; then
38074 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38075set dummy ${ac_tool_prefix}nm; ac_word=$2
38076echo "$as_me:$LINENO: checking for $ac_word" >&5
38077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38078if test "${ac_cv_prog_NM+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080else
38081 if test -n "$NM"; then
38082 ac_cv_prog_NM="$NM" # Let the user override the test.
38083else
38084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38085for as_dir in $PATH
38086do
38087 IFS=$as_save_IFS
38088 test -z "$as_dir" && as_dir=.
38089 for ac_exec_ext in '' $ac_executable_extensions; do
38090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38091 ac_cv_prog_NM="${ac_tool_prefix}nm"
38092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38093 break 2
38094 fi
38095done
38096done
38097
38098fi
38099fi
38100NM=$ac_cv_prog_NM
38101if test -n "$NM"; then
38102 echo "$as_me:$LINENO: result: $NM" >&5
38103echo "${ECHO_T}$NM" >&6
38104else
38105 echo "$as_me:$LINENO: result: no" >&5
38106echo "${ECHO_T}no" >&6
38107fi
38108
38109fi
38110if test -z "$ac_cv_prog_NM"; then
38111 ac_ct_NM=$NM
38112 # Extract the first word of "nm", so it can be a program name with args.
38113set dummy nm; ac_word=$2
38114echo "$as_me:$LINENO: checking for $ac_word" >&5
38115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38116if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38118else
38119 if test -n "$ac_ct_NM"; then
38120 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38121else
38122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123for as_dir in $PATH
38124do
38125 IFS=$as_save_IFS
38126 test -z "$as_dir" && as_dir=.
38127 for ac_exec_ext in '' $ac_executable_extensions; do
38128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129 ac_cv_prog_ac_ct_NM="nm"
38130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38131 break 2
38132 fi
38133done
38134done
38135
38136 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38137fi
38138fi
38139ac_ct_NM=$ac_cv_prog_ac_ct_NM
38140if test -n "$ac_ct_NM"; then
38141 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38142echo "${ECHO_T}$ac_ct_NM" >&6
38143else
38144 echo "$as_me:$LINENO: result: no" >&5
38145echo "${ECHO_T}no" >&6
38146fi
38147
38148 NM=$ac_ct_NM
38149else
38150 NM="$ac_cv_prog_NM"
38151fi
38152
fe0895cf 38153
f95e4495 38154 case ${BAKEFILE_HOST} in
fe0895cf
VS
38155 *-hp-hpux* )
38156 INSTALL_DIR="mkdir"
38157 ;;
38158 *) INSTALL_DIR="$INSTALL -d"
38159 ;;
38160 esac
e6cc62c6 38161
fe0895cf 38162
6b9d41a5 38163 LDFLAGS_GUI=
f95e4495 38164 case ${BAKEFILE_HOST} in
6b9d41a5
VS
38165 *-*-cygwin* | *-*-mingw32* )
38166 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38167 esac
38168
38169
fe0895cf 38170 fi
e6cc62c6
VS
38171
38172 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38173echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 38174if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 38175 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38176else
e6cc62c6 38177
fe0895cf
VS
38178 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38179 egrep -s GNU > /dev/null); then
38180 bakefile_cv_prog_makeisgnu="yes"
38181 else
38182 bakefile_cv_prog_makeisgnu="no"
38183 fi
fe0895cf 38184
e6cc62c6 38185fi
49b0a3aa
VS
38186echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38187echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
38188
38189 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38190 IF_GNU_MAKE=""
38191 else
38192 IF_GNU_MAKE="#"
38193 fi
fe0895cf 38194
e6cc62c6
VS
38195
38196
fe0895cf
VS
38197 PLATFORM_UNIX=0
38198 PLATFORM_WIN32=0
38199 PLATFORM_MSDOS=0
38200 PLATFORM_MAC=0
38201 PLATFORM_MACOSX=0
96c1699d 38202 PLATFORM_OS2=0
e6cc62c6 38203
f95e4495
VS
38204 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38205 case "${BAKEFILE_HOST}" in
38206 *-*-cygwin* | *-*-mingw32* )
38207 PLATFORM_WIN32=1
38208 ;;
38209 *-pc-msdosdjgpp )
38210 PLATFORM_MSDOS=1
38211 ;;
38212 *-pc-os2_emx | *-pc-os2-emx )
38213 PLATFORM_OS2=1
38214 ;;
38215 powerpc-*-darwin* )
38216 PLATFORM_MAC=1
38217 PLATFORM_MACOSX=1
38218 ;;
38219 * )
38220 PLATFORM_UNIX=1
38221 ;;
38222 esac
38223 else
38224 case "$BAKEFILE_FORCE_PLATFORM" in
38225 win32 )
38226 PLATFORM_WIN32=1
38227 ;;
38228 msdos )
38229 PLATFORM_MSDOS=1
38230 ;;
38231 os2 )
38232 PLATFORM_OS2=1
38233 ;;
38234 darwin )
38235 PLATFORM_MAC=1
38236 PLATFORM_MACOSX=1
38237 ;;
38238 unix )
38239 PLATFORM_UNIX=1
38240 ;;
38241 * )
38242 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38243echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38244 { (exit 1); exit 1; }; }
38245 ;;
38246 esac
38247 fi
fe0895cf 38248
fe0895cf 38249
e6cc62c6
VS
38250
38251
38252
38253
38254
38255
96c1699d 38256
fe0895cf 38257 SO_SUFFIX="so"
131f235d 38258 SO_SUFFIX_MODULE="so"
fe0895cf 38259 EXEEXT=""
4b1f6360 38260 LIBPREFIX=lib
fe0895cf 38261 DLLPREFIX=lib
131f235d 38262 DLLPREFIX_MODULE=
e6cc62c6 38263
f95e4495 38264 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38265 *-hp-hpux* )
38266 SO_SUFFIX="sl"
131f235d 38267 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
38268 ;;
38269 *-*-aix* )
38270 SO_SUFFIX="a"
131f235d 38271 SO_SUFFIX_MODULE="a"
fe0895cf
VS
38272 ;;
38273 *-*-cygwin* | *-*-mingw32* )
38274 SO_SUFFIX="dll"
131f235d 38275 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
38276 EXEEXT=".exe"
38277 DLLPREFIX=""
38278 ;;
4b1f6360
VS
38279 *-pc-msdosdjgpp )
38280 EXEEXT=".exe"
38281 DLLPREFIX=""
38282 ;;
38283 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
38284 EXEEXT=".exe"
38285 DLLPREFIX=""
4b1f6360 38286 LIBPREFIX=""
fe0895cf
VS
38287 ;;
38288 powerpc-*-darwin* )
38289 SO_SUFFIX="dylib"
131f235d 38290 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
38291 ;;
38292 esac
38293
fe0895cf 38294
e6cc62c6
VS
38295
38296
38297
38298
131f235d
VS
38299
38300
4b1f6360 38301
fe0895cf
VS
38302 SHARED_LD_CC="\$(CC) -shared -o"
38303 SHARED_LD_CXX="\$(CXX) -shared -o"
38304
38305 if test "x$GCC" = "xyes"; then
38306 PIC_FLAG="-fPIC"
38307 fi
38308
f95e4495 38309 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38310 *-hp-hpux* )
38311 if test "x$GCC" = "xyes"; then
38312 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38313 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38314 else
38315 LDFLAGS="$LDFLAGS -L/usr/lib"
38316
38317 SHARED_LD_CC="${CC} -b -o"
38318 SHARED_LD_CXX="${CXX} -b -o"
38319 PIC_FLAG="+Z"
38320 fi
38321 ;;
38322
38323 *-*-linux* )
38324 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
38325 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38326echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38327if test "${bakefile_cv_prog_icc+set}" = set; then
38328 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38329else
fe0895cf 38330
e6cc62c6 38331 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
38332/* confdefs.h. */
38333_ACEOF
38334cat confdefs.h >>conftest.$ac_ext
38335cat >>conftest.$ac_ext <<_ACEOF
38336/* end confdefs.h. */
38337
38338int
38339main ()
38340{
fe0895cf
VS
38341
38342 #ifndef __INTEL_COMPILER
38343 #error Not icc
38344 #endif
e6cc62c6
VS
38345
38346 ;
38347 return 0;
38348}
38349_ACEOF
38350rm -f conftest.$ac_objext
38351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38352 (eval $ac_compile) 2>conftest.er1
e6cc62c6 38353 ac_status=$?
32ddf007
VS
38354 grep -v '^ *+' conftest.er1 >conftest.err
38355 rm -f conftest.er1
38356 cat conftest.err >&5
e6cc62c6
VS
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); } &&
e1293dcf 38359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; } &&
38365 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
38366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367 (eval $ac_try) 2>&5
38368 ac_status=$?
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); }; }; then
fe0895cf
VS
38371 bakefile_cv_prog_icc=yes
38372else
e6cc62c6
VS
38373 echo "$as_me: failed program was:" >&5
38374sed 's/^/| /' conftest.$ac_ext >&5
38375
38376bakefile_cv_prog_icc=no
38377
fe0895cf 38378fi
32ddf007 38379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 38380
e6cc62c6
VS
38381fi
38382echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38383echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
38384 if test "$bakefile_cv_prog_icc" = "yes"; then
38385 PIC_FLAG="-KPIC"
38386 fi
38387 fi
38388 ;;
38389
38390 *-*-solaris2* )
38391 if test "x$GCC" != xyes ; then
38392 SHARED_LD_CC="${CC} -G -o"
38393 SHARED_LD_CXX="${CXX} -G -o"
38394 PIC_FLAG="-KPIC"
38395 fi
38396 ;;
38397
38398 *-*-darwin* )
38399 CFLAGS="$CFLAGS -fno-common"
38400 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
38401
38402
2a879853 38403 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
38404echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38405if test "${wx_cv_gcc31+set}" = set; then
38406 echo $ECHO_N "(cached) $ECHO_C" >&6
38407else
38408
2a879853 38409 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
38410/* confdefs.h. */
38411_ACEOF
38412cat confdefs.h >>conftest.$ac_ext
38413cat >>conftest.$ac_ext <<_ACEOF
38414/* end confdefs.h. */
38415
38416int
38417main ()
38418{
38419
2a879853
VS
38420 #if (__GNUC__ < 3) || \
38421 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38422 #error old gcc
38423 #endif
43948499
RD
38424
38425 ;
38426 return 0;
38427}
38428_ACEOF
38429rm -f conftest.$ac_objext
38430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38431 (eval $ac_compile) 2>conftest.er1
43948499 38432 ac_status=$?
32ddf007
VS
38433 grep -v '^ *+' conftest.er1 >conftest.err
38434 rm -f conftest.er1
38435 cat conftest.err >&5
43948499
RD
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } &&
e1293dcf 38438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38441 ac_status=$?
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; } &&
38444 { ac_try='test -s conftest.$ac_objext'
43948499
RD
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; }; then
38450
2a879853 38451 wx_cv_gcc31=yes
43948499
RD
38452
38453else
38454 echo "$as_me: failed program was:" >&5
38455sed 's/^/| /' conftest.$ac_ext >&5
38456
38457
2a879853 38458 wx_cv_gcc31=no
43948499
RD
38459
38460
38461fi
32ddf007 38462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
38463
38464fi
38465echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38466echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 38467 if test "$wx_cv_gcc31" = "no"; then
43948499 38468 cat <<EOF >shared-ld-sh
fe0895cf
VS
38469#!/bin/sh
38470#-----------------------------------------------------------------------------
38471#-- Name: distrib/mac/shared-ld-sh
38472#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38473#-- Author: Gilles Depeyrot
38474#-- Copyright: (c) 2002 Gilles Depeyrot
38475#-- Licence: any use permitted
38476#-----------------------------------------------------------------------------
38477
38478verbose=0
38479args=""
38480objects=""
131f235d 38481linking_flag="-dynamiclib"
fe0895cf
VS
38482
38483while test \${#} -gt 0; do
38484 case \${1} in
38485
38486 -v)
38487 verbose=1
38488 ;;
38489
38490 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38491 # collect these options and values
38492 args="\${args} \${1} \${2}"
38493 shift
38494 ;;
38495
74500461 38496 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
38497 # collect these options
38498 args="\${args} \${1}"
38499 ;;
38500
131f235d
VS
38501 -dynamiclib|-bundle)
38502 linking_flag="\${1}"
fe0895cf
VS
38503 ;;
38504
38505 -*)
38506 echo "shared-ld: unhandled option '\${1}'"
38507 exit 1
38508 ;;
38509
4d264332 38510 *.o | *.a | *.dylib)
fe0895cf
VS
38511 # collect object files
38512 objects="\${objects} \${1}"
38513 ;;
38514
38515 *)
38516 echo "shared-ld: unhandled argument '\${1}'"
38517 exit 1
38518 ;;
38519
38520 esac
38521 shift
38522done
38523
38524#
38525# Link one module containing all the others
38526#
38527if test \${verbose} = 1; then
38528 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38529fi
38530c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38531status=\$?
38532if test \${status} != 0; then
38533 exit \${status}
38534fi
38535
38536#
38537# Link the shared library from the single module created
38538#
38539if test \${verbose} = 1; then
2a879853 38540 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 38541fi
131f235d 38542c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
38543status=\$?
38544if test \${status} != 0; then
38545 exit \${status}
38546fi
38547
38548#
38549# Remove intermediate module
38550#
38551rm -f master.\$\$.o
38552
38553exit 0
38554EOF
43948499 38555 chmod +x shared-ld-sh
fe0895cf 38556
7f523214
VS
38557 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38558 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
38559 SHARED_LD_CXX="$SHARED_LD_CC"
38560 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38561 else
7f523214
VS
38562 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38563 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38564 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38565 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
38566 fi
38567
fe0895cf 38568 PIC_FLAG="-dynamic -fPIC"
2a879853 38569 ;;
fe0895cf
VS
38570
38571 *-*-aix* )
38572 if test "x$GCC" != "xyes"; then
38573 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38574set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
38575echo "$as_me:$LINENO: checking for $ac_word" >&5
38576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38577if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38578 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38579else
38580 if test -n "$AIX_CXX_LD"; then
38581 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38582else
e6cc62c6
VS
38583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38584for as_dir in $PATH
38585do
38586 IFS=$as_save_IFS
38587 test -z "$as_dir" && as_dir=.
38588 for ac_exec_ext in '' $ac_executable_extensions; do
38589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38590 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38592 break 2
38593 fi
38594done
38595done
38596
fe0895cf
VS
38597 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38598fi
38599fi
e6cc62c6 38600AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 38601if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
38602 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38603echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 38604else
e6cc62c6
VS
38605 echo "$as_me:$LINENO: result: no" >&5
38606echo "${ECHO_T}no" >&6
fe0895cf
VS
38607fi
38608
38609 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38610 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38611 fi
38612 ;;
38613
38614 *-*-beos* )
38615 SHARED_LD_CC="${LD} -shared -o"
38616 SHARED_LD_CXX="${LD} -shared -o"
38617 ;;
38618
38619 *-*-irix* )
38620 if test "x$GCC" != "xyes"; then
38621 PIC_FLAG="-KPIC"
38622 fi
38623 ;;
e6cc62c6 38624
fe0895cf
VS
38625 *-*-cygwin* | *-*-mingw32* )
38626 PIC_FLAG=""
38627 ;;
e6cc62c6 38628
fe0895cf
VS
38629 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38630 *-*-sunos4* | \
38631 *-*-osf* | \
38632 *-*-dgux5* | \
4b1f6360 38633 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
38634 *-*-sysv5* )
38635 ;;
38636
38637 *)
f95e4495
VS
38638 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38639echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 38640 { (exit 1); exit 1; }; }
fe0895cf
VS
38641 esac
38642
131f235d
VS
38643 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38644 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38645 fi
38646 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 38647 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
38648 fi
38649
38650
38651
fe0895cf 38652
e6cc62c6
VS
38653
38654
38655
38656
fe0895cf
VS
38657 USE_SOVERSION=0
38658 USE_SOVERLINUX=0
38659 USE_SOVERSOLARIS=0
38660 USE_SOSYMLINKS=0
38661 USE_MACVERSION=0
38662 SONAME_FLAG=
38663
f95e4495 38664 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38665 *-*-linux* )
38666 SONAME_FLAG="-Wl,-soname,"
38667 USE_SOVERSION=1
38668 USE_SOVERLINUX=1
38669 USE_SOSYMLINKS=1
38670 ;;
38671
38672 *-*-solaris2* )
38673 SONAME_FLAG="-h "
38674 USE_SOVERSION=1
38675 USE_SOVERSOLARIS=1
38676 USE_SOSYMLINKS=1
38677 ;;
38678
38679 *-*-darwin* )
38680 USE_MACVERSION=1
38681 USE_SOVERSION=1
38682 USE_SOSYMLINKS=1
e6cc62c6 38683 ;;
fe0895cf
VS
38684 esac
38685
fe0895cf 38686
e6cc62c6
VS
38687
38688
38689
38690
38691
38692
38693
49b0a3aa
VS
38694 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38695echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38696 DEPS_TRACKING=0
38697
fe0895cf 38698 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
38699 DEPSMODE=gcc
38700 DEPS_TRACKING=1
f95e4495 38701 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
38702 powerpc-*-darwin* )
38703 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38704 ;;
38705 * )
38706 DEPSFLAG_GCC="-MMD"
38707 ;;
38708 esac
49b0a3aa
VS
38709 echo "$as_me:$LINENO: result: gcc" >&5
38710echo "${ECHO_T}gcc" >&6
38711 else
38712 echo "$as_me:$LINENO: result: none" >&5
38713echo "${ECHO_T}none" >&6
38714 fi
38715
38716 if test $DEPS_TRACKING = 1 ; then
38717 cat <<EOF >bk-deps
38718#!/bin/sh
38719
45842500
VS
38720# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38721# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
38722#
38723# Permission is given to use this file in any way.
38724
38725DEPSMODE=$DEPSMODE
38726DEPSDIR=.deps
3e5c3c83 38727DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
38728
38729mkdir -p \$DEPSDIR
38730
38731if test \$DEPSMODE = gcc ; then
3e5c3c83 38732 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
38733 status=\${?}
38734 if test \${status} != 0 ; then
38735 exit \${status}
38736 fi
38737 # move created file to the location we want it in:
38738 while test \${#} -gt 0; do
38739 case "\${1}" in
38740 -o )
38741 shift
38742 objfile=\${1}
38743 ;;
38744 -* )
38745 ;;
38746 * )
38747 srcfile=\${1}
38748 ;;
38749 esac
38750 shift
38751 done
38752 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38753 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
38754 if test -f \$depfile ; then
38755 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38756 rm -f \$depfile
38757 else
38758 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38759 if test -f \$depfile ; then
9d0be83a 38760 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
38761 rm -f \$depfile
38762 fi
38763 fi
49b0a3aa
VS
38764 exit 0
38765else
38766 \${*}
38767 exit \${?}
38768fi
38769EOF
38770 chmod +x bk-deps
fe0895cf 38771 fi
fe0895cf 38772
e6cc62c6
VS
38773
38774
38775
fe0895cf
VS
38776 RESCOMP=
38777 SETFILE=
38778
f95e4495 38779 case ${BAKEFILE_HOST} in
fe0895cf
VS
38780 *-*-cygwin* | *-*-mingw32* )
38781 if test "$build" != "$host" ; then
38782 RESCOMP=$host_alias-windres
38783 else
38784 # Extract the first word of "windres", so it can be a program name with args.
38785set dummy windres; ac_word=$2
e6cc62c6
VS
38786echo "$as_me:$LINENO: checking for $ac_word" >&5
38787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38788if test "${ac_cv_prog_RESCOMP+set}" = set; then
38789 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38790else
38791 if test -n "$RESCOMP"; then
38792 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38793else
e6cc62c6
VS
38794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38795for as_dir in $PATH
38796do
38797 IFS=$as_save_IFS
38798 test -z "$as_dir" && as_dir=.
38799 for ac_exec_ext in '' $ac_executable_extensions; do
38800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38801 ac_cv_prog_RESCOMP="windres"
38802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38803 break 2
38804 fi
38805done
38806done
38807
fe0895cf
VS
38808 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38809fi
38810fi
e6cc62c6 38811RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38812if test -n "$RESCOMP"; then
e6cc62c6
VS
38813 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38814echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38815else
e6cc62c6
VS
38816 echo "$as_me:$LINENO: result: no" >&5
38817echo "${ECHO_T}no" >&6
fe0895cf
VS
38818fi
38819
38820 fi
38821 ;;
e6cc62c6 38822
fe0895cf
VS
38823 *-*-darwin* )
38824 # Extract the first word of "Rez", so it can be a program name with args.
38825set dummy Rez; ac_word=$2
e6cc62c6
VS
38826echo "$as_me:$LINENO: checking for $ac_word" >&5
38827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38828if test "${ac_cv_prog_RESCOMP+set}" = set; then
38829 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38830else
38831 if test -n "$RESCOMP"; then
38832 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38833else
e6cc62c6
VS
38834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38835for as_dir in $PATH
38836do
38837 IFS=$as_save_IFS
38838 test -z "$as_dir" && as_dir=.
38839 for ac_exec_ext in '' $ac_executable_extensions; do
38840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38841 ac_cv_prog_RESCOMP="Rez"
38842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38843 break 2
38844 fi
38845done
38846done
38847
fe0895cf
VS
38848 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38849fi
38850fi
e6cc62c6 38851RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38852if test -n "$RESCOMP"; then
e6cc62c6
VS
38853 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38854echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38855else
e6cc62c6
VS
38856 echo "$as_me:$LINENO: result: no" >&5
38857echo "${ECHO_T}no" >&6
fe0895cf
VS
38858fi
38859
38860 # Extract the first word of "SetFile", so it can be a program name with args.
38861set dummy SetFile; ac_word=$2
e6cc62c6
VS
38862echo "$as_me:$LINENO: checking for $ac_word" >&5
38863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38864if test "${ac_cv_prog_SETFILE+set}" = set; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38866else
38867 if test -n "$SETFILE"; then
38868 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38869else
e6cc62c6
VS
38870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38871for as_dir in $PATH
38872do
38873 IFS=$as_save_IFS
38874 test -z "$as_dir" && as_dir=.
38875 for ac_exec_ext in '' $ac_executable_extensions; do
38876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38877 ac_cv_prog_SETFILE="SetFile"
38878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38879 break 2
38880 fi
38881done
38882done
38883
fe0895cf
VS
38884 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38885fi
38886fi
e6cc62c6 38887SETFILE=$ac_cv_prog_SETFILE
fe0895cf 38888if test -n "$SETFILE"; then
e6cc62c6
VS
38889 echo "$as_me:$LINENO: result: $SETFILE" >&5
38890echo "${ECHO_T}$SETFILE" >&6
fe0895cf 38891else
e6cc62c6
VS
38892 echo "$as_me:$LINENO: result: no" >&5
38893echo "${ECHO_T}no" >&6
fe0895cf
VS
38894fi
38895
38896 ;;
38897 esac
38898
fe0895cf
VS
38899
38900
e6cc62c6
VS
38901
38902
38903
38904
45842500 38905
45842500
VS
38906 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38907if test "${enable_precomp_headers+set}" = set; then
38908 enableval="$enable_precomp_headers"
38909 bk_use_pch="$enableval"
38910fi;
38911
38912 GCC_PCH=0
38913
38914 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38915 if test "x$GCC" = "xyes"; then
38916 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38917echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38918 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
38919/* confdefs.h. */
38920_ACEOF
38921cat confdefs.h >>conftest.$ac_ext
38922cat >>conftest.$ac_ext <<_ACEOF
38923/* end confdefs.h. */
38924
38925int
38926main ()
38927{
38928
8bcf2d20
VS
38929 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38930 #error "no pch support"
38931 #endif
38932 #if (__GNUC__ < 3)
38933 #error "no pch support"
38934 #endif
38935 #if (__GNUC__ == 3) && \
38936 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38937 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38938 #error "no pch support"
45842500
VS
38939 #endif
38940
38941 ;
38942 return 0;
38943}
38944_ACEOF
38945rm -f conftest.$ac_objext
38946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38947 (eval $ac_compile) 2>conftest.er1
45842500 38948 ac_status=$?
32ddf007
VS
38949 grep -v '^ *+' conftest.er1 >conftest.err
38950 rm -f conftest.er1
38951 cat conftest.err >&5
45842500
VS
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); } &&
e1293dcf 38954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32ddf007
VS
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38957 ac_status=$?
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; } &&
38960 { ac_try='test -s conftest.$ac_objext'
45842500
VS
38961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962 (eval $ac_try) 2>&5
38963 ac_status=$?
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); }; }; then
38966
38967 echo "$as_me:$LINENO: result: yes" >&5
38968echo "${ECHO_T}yes" >&6
38969 CPPFLAGS="-fpch-deps $CPPFLAGS"
38970 GCC_PCH=1
38971
38972else
38973 echo "$as_me: failed program was:" >&5
38974sed 's/^/| /' conftest.$ac_ext >&5
38975
38976
38977 echo "$as_me:$LINENO: result: no" >&5
38978echo "${ECHO_T}no" >&6
38979
38980fi
32ddf007 38981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38982 if test $GCC_PCH = 1 ; then
38983 cat <<EOF >bk-make-pch
38984#!/bin/sh
38985
38986# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38987# script. It is used to generated precompiled headers.
38988#
38989# Permission is given to use this file in any way.
38990
38991outfile="\${1}"
38992header="\${2}"
38993shift
38994shift
38995
38996compiler=
38997headerfile=
38998while test \${#} -gt 0; do
38999 case "\${1}" in
39000 -I* )
39001 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39002 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39003 headerfile="\${incdir}/\${header}"
39004 fi
39005 ;;
39006 esac
39007 compiler="\${compiler} \${1}"
39008 shift
39009done
39010
39011if test "x\${headerfile}" = "x" ; then
39012 echo "error: can't find header \${header} in include paths" >2
39013else
39014 if test -f \${outfile} ; then
39015 rm -f \${outfile}
39016 else
39017 mkdir -p \`dirname \${outfile}\`
39018 fi
39019 depsfile=".deps/\`basename \${outfile}\`.d"
39020 mkdir -p .deps
39021 # can do this because gcc is >= 3.4:
39022 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39023 exit \${?}
39024fi
39025EOF
39026 chmod +x bk-make-pch
39027 fi
39028 fi
39029 fi
39030
39031
39032
39033
39034
d78c94f2 39035 COND_BUILD_DEBUG="#"
6f628073 39036 if test "x$BUILD" = "xdebug" ; then
d78c94f2 39037 COND_BUILD_DEBUG=""
6f628073
VS
39038 fi
39039
6c67131a
VS
39040 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39041 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39042 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39043 fi
39044
39045 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39046 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39047 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39048 fi
39049
f93ca9fd
VS
39050 COND_BUILD_DEBUG_UNICODE_0="#"
39051 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39052 COND_BUILD_DEBUG_UNICODE_0=""
39053 fi
39054
39055 COND_BUILD_DEBUG_UNICODE_1="#"
39056 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39057 COND_BUILD_DEBUG_UNICODE_1=""
39058 fi
39059
d78c94f2 39060 COND_BUILD_RELEASE="#"
6f628073 39061 if test "x$BUILD" = "xrelease" ; then
d78c94f2 39062 COND_BUILD_RELEASE=""
6b9d41a5
VS
39063 fi
39064
6c67131a
VS
39065 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39066 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39067 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39068 fi
39069
f93ca9fd
VS
39070 COND_BUILD_RELEASE_UNICODE_0="#"
39071 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39072 COND_BUILD_RELEASE_UNICODE_0=""
39073 fi
39074
39075 COND_BUILD_RELEASE_UNICODE_1="#"
39076 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39077 COND_BUILD_RELEASE_UNICODE_1=""
39078 fi
39079
6c67131a
VS
39080 COND_DEBUG_FLAG_1="#"
39081 if test "x$DEBUG_FLAG" = "x1" ; then
39082 COND_DEBUG_FLAG_1=""
39083 fi
39084
39085 COND_DEBUG_INFO_0="#"
39086 if test "x$DEBUG_INFO" = "x0" ; then
39087 COND_DEBUG_INFO_0=""
39088 fi
39089
39090 COND_DEBUG_INFO_1="#"
39091 if test "x$DEBUG_INFO" = "x1" ; then
39092 COND_DEBUG_INFO_1=""
39093 fi
39094
f95cd8fa
VS
39095 COND_DEPS_TRACKING_0="#"
39096 if test "x$DEPS_TRACKING" = "x0" ; then
39097 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
39098 fi
39099
8ee2dd05
VS
39100 COND_DEPS_TRACKING_1="#"
39101 if test "x$DEPS_TRACKING" = "x1" ; then
39102 COND_DEPS_TRACKING_1=""
39103 fi
39104
45842500
VS
39105 COND_GCC_PCH_1="#"
39106 if test "x$GCC_PCH" = "x1" ; then
39107 COND_GCC_PCH_1=""
39108 fi
39109
6f628073
VS
39110 COND_MONOLITHIC_0="#"
39111 if test "x$MONOLITHIC" = "x0" ; then
39112 COND_MONOLITHIC_0=""
6b9d41a5
VS
39113 fi
39114
6f628073
VS
39115 COND_MONOLITHIC_0_SHARED_0="#"
39116 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39117 COND_MONOLITHIC_0_SHARED_0=""
39118 fi
39119
39120 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39121 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39122 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 39123 fi
e6cc62c6 39124
8772a1a7
VS
39125 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39126 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39127 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39128 fi
39129
250700e4
RD
39130 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39131 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39132 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39133 fi
39134
eb69fda5
VS
39135 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39136 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39137 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39138 fi
39139
8ee2dd05
VS
39140 COND_MONOLITHIC_0_SHARED_1="#"
39141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39142 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 39143 fi
e6cc62c6 39144
6f628073
VS
39145 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39147 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39148 fi
39149
8772a1a7
VS
39150 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39152 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39153 fi
39154
250700e4
RD
39155 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39157 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39158 fi
39159
eb69fda5
VS
39160 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39162 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39163 fi
39164
f95e4495
VS
39165 COND_MONOLITHIC_0_USE_ODBC_1="#"
39166 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39167 COND_MONOLITHIC_0_USE_ODBC_1=""
39168 fi
39169
3af038c0
VS
39170 COND_MONOLITHIC_1="#"
39171 if test "x$MONOLITHIC" = "x1" ; then
39172 COND_MONOLITHIC_1=""
39173 fi
39174
6f628073
VS
39175 COND_MONOLITHIC_1_SHARED_0="#"
39176 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39177 COND_MONOLITHIC_1_SHARED_0=""
39178 fi
39179
39180 COND_MONOLITHIC_1_SHARED_1="#"
39181 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39182 COND_MONOLITHIC_1_SHARED_1=""
39183 fi
39184
3af038c0
VS
39185 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39186 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39187 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39188 fi
39189
39190 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39191 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39192 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39193 fi
39194
6f628073
VS
39195 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39196 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39197 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39198 fi
39199
3af038c0
VS
39200 COND_PLATFORM_MACOSX_1="#"
39201 if test "x$PLATFORM_MACOSX" = "x1" ; then
39202 COND_PLATFORM_MACOSX_1=""
39203 fi
39204
250700e4
RD
39205 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39206 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39207 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39208 fi
39209
39210 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39211 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39212 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39213 fi
39214
39215 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39216 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39217 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39218 fi
39219
3527f29c
VS
39220 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39221 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39222 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39223 fi
39224
8ee2dd05
VS
39225 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39226 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39227 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39228 fi
39229
45842500
VS
39230 COND_PLATFORM_MAC_1="#"
39231 if test "x$PLATFORM_MAC" = "x1" ; then
39232 COND_PLATFORM_MAC_1=""
39233 fi
39234
3d8c1de0
VS
39235 COND_PLATFORM_OS2_1="#"
39236 if test "x$PLATFORM_OS2" = "x1" ; then
39237 COND_PLATFORM_OS2_1=""
39238 fi
39239
8772a1a7
VS
39240 COND_PLATFORM_UNIX_0="#"
39241 if test "x$PLATFORM_UNIX" = "x0" ; then
39242 COND_PLATFORM_UNIX_0=""
39243 fi
39244
3af038c0
VS
39245 COND_PLATFORM_UNIX_1="#"
39246 if test "x$PLATFORM_UNIX" = "x1" ; then
39247 COND_PLATFORM_UNIX_1=""
39248 fi
39249
3527f29c
VS
39250 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39251 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39252 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39253 fi
39254
f93ca9fd
VS
39255 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39256 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39257 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39258 fi
39259
3af038c0
VS
39260 COND_PLATFORM_WIN32_0="#"
39261 if test "x$PLATFORM_WIN32" = "x0" ; then
39262 COND_PLATFORM_WIN32_0=""
39263 fi
39264
39265 COND_PLATFORM_WIN32_1="#"
39266 if test "x$PLATFORM_WIN32" = "x1" ; then
39267 COND_PLATFORM_WIN32_1=""
39268 fi
39269
45842500
VS
39270 COND_SHARED_0="#"
39271 if test "x$SHARED" = "x0" ; then
39272 COND_SHARED_0=""
39273 fi
39274
250700e4
RD
39275 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39276 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39277 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39278 fi
39279
52a5a009
VS
39280 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39281 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39282 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39283 fi
39284
39285 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39286 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39287 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39288 fi
39289
39290 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39291 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39292 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39293 fi
39294
39295 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39296 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39297 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39298 fi
39299
39300 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39301 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39302 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39303 fi
39304
39305 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39306 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39307 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39308 fi
39309
39310 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39311 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39312 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39313 fi
39314
45842500
VS
39315 COND_SHARED_1="#"
39316 if test "x$SHARED" = "x1" ; then
39317 COND_SHARED_1=""
39318 fi
39319
250700e4
RD
39320 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39321 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39322 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39323 fi
39324
6f628073
VS
39325 COND_TOOLKIT_COCOA="#"
39326 if test "x$TOOLKIT" = "xCOCOA" ; then
39327 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
39328 fi
39329
6f628073
VS
39330 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39331 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39332 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39333 fi
39334
6f628073
VS
39335 COND_TOOLKIT_GTK="#"
39336 if test "x$TOOLKIT" = "xGTK" ; then
39337 COND_TOOLKIT_GTK=""
f95cd8fa
VS
39338 fi
39339
6f628073
VS
39340 COND_TOOLKIT_GTK_USE_GUI_1="#"
39341 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39342 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
39343 fi
39344
6f628073
VS
39345 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39346 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39347 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39348 fi
39349
3af038c0
VS
39350 COND_TOOLKIT_MAC="#"
39351 if test "x$TOOLKIT" = "xMAC" ; then
39352 COND_TOOLKIT_MAC=""
39353 fi
39354
8772a1a7
VS
39355 COND_TOOLKIT_MAC_USE_GUI_1="#"
39356 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39357 COND_TOOLKIT_MAC_USE_GUI_1=""
39358 fi
39359
6f628073
VS
39360 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39361 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39362 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39363 fi
39364
6f628073
VS
39365 COND_TOOLKIT_MGL="#"
39366 if test "x$TOOLKIT" = "xMGL" ; then
39367 COND_TOOLKIT_MGL=""
8ee2dd05
VS
39368 fi
39369
6f628073
VS
39370 COND_TOOLKIT_MGL_USE_GUI_1="#"
39371 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39372 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
39373 fi
39374
6f628073
VS
39375 COND_TOOLKIT_MOTIF="#"
39376 if test "x$TOOLKIT" = "xMOTIF" ; then
39377 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
39378 fi
39379
6f628073
VS
39380 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39381 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39382 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 39383 fi
e6cc62c6 39384
6f628073
VS
39385 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39386 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39387 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39388 fi
39389
6f628073
VS
39390 COND_TOOLKIT_MSW="#"
39391 if test "x$TOOLKIT" = "xMSW" ; then
39392 COND_TOOLKIT_MSW=""
8ee2dd05
VS
39393 fi
39394
6f628073
VS
39395 COND_TOOLKIT_MSW_USE_GUI_1="#"
39396 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39397 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 39398 fi
e6cc62c6 39399
6f628073
VS
39400 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39401 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39402 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 39403 fi
e6cc62c6 39404
96c1699d
VS
39405 COND_TOOLKIT_PM="#"
39406 if test "x$TOOLKIT" = "xPM" ; then
39407 COND_TOOLKIT_PM=""
39408 fi
39409
39410 COND_TOOLKIT_PM_USE_GUI_1="#"
39411 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39412 COND_TOOLKIT_PM_USE_GUI_1=""
39413 fi
39414
39415 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39416 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39417 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39418 fi
39419
6f628073
VS
39420 COND_TOOLKIT_X11="#"
39421 if test "x$TOOLKIT" = "xX11" ; then
39422 COND_TOOLKIT_X11=""
9747f85d
VS
39423 fi
39424
6f628073
VS
39425 COND_TOOLKIT_X11_USE_GUI_1="#"
39426 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39427 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
39428 fi
39429
3af038c0
VS
39430 COND_UNICODE_1="#"
39431 if test "x$UNICODE" = "x1" ; then
39432 COND_UNICODE_1=""
39433 fi
39434
7015ef3a
VZ
39435 COND_USE_EXCEPTIONS_0="#"
39436 if test "x$USE_EXCEPTIONS" = "x0" ; then
39437 COND_USE_EXCEPTIONS_0=""
39438 fi
39439
39440 COND_USE_EXCEPTIONS_1="#"
39441 if test "x$USE_EXCEPTIONS" = "x1" ; then
39442 COND_USE_EXCEPTIONS_1=""
39443 fi
39444
3af038c0
VS
39445 COND_USE_GUI_0="#"
39446 if test "x$USE_GUI" = "x0" ; then
39447 COND_USE_GUI_0=""
39448 fi
39449
39450 COND_USE_GUI_1="#"
39451 if test "x$USE_GUI" = "x1" ; then
39452 COND_USE_GUI_1=""
39453 fi
39454
e6cc62c6 39455 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
39456 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39457 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 39458 fi
e6cc62c6
VS
39459
39460 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
39461 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39462 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
39463 fi
39464
66a96744
VS
39465 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39466 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39467 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39468 fi
39469
39470 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39471 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39472 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39473 fi
39474
39475 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39476 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39477 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39478 fi
39479
57e7d4ac
VS
39480 COND_USE_ODBC_1="#"
39481 if test "x$USE_ODBC" = "x1" ; then
39482 COND_USE_ODBC_1=""
39483 fi
39484
f93ca9fd
VS
39485 COND_USE_PLUGINS_0="#"
39486 if test "x$USE_PLUGINS" = "x0" ; then
39487 COND_USE_PLUGINS_0=""
39488 fi
39489
6f628073
VS
39490 COND_USE_SOSYMLINKS_1="#"
39491 if test "x$USE_SOSYMLINKS" = "x1" ; then
39492 COND_USE_SOSYMLINKS_1=""
b625909c
VS
39493 fi
39494
6f628073
VS
39495 COND_USE_SOVERLINUX_1="#"
39496 if test "x$USE_SOVERLINUX" = "x1" ; then
39497 COND_USE_SOVERLINUX_1=""
b625909c
VS
39498 fi
39499
6f628073
VS
39500 COND_USE_SOVERSION_0="#"
39501 if test "x$USE_SOVERSION" = "x0" ; then
39502 COND_USE_SOVERSION_0=""
fddeb06b 39503 fi
fe0895cf 39504
6f628073
VS
39505 COND_USE_SOVERSOLARIS_1="#"
39506 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39507 COND_USE_SOVERSOLARIS_1=""
fddeb06b 39508 fi
fe0895cf 39509
f93ca9fd
VS
39510 COND_WITH_PLUGIN_SDL_1="#"
39511 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39512 COND_WITH_PLUGIN_SDL_1=""
39513 fi
39514
39515 COND_WITH_SDL_1="#"
39516 if test "x$WITH_SDL" = "x1" ; then
39517 COND_WITH_SDL_1=""
39518 fi
39519
3af038c0
VS
39520 COND_WXUNIV_1="#"
39521 if test "x$WXUNIV" = "x1" ; then
39522 COND_WXUNIV_1=""
39523 fi
39524
66a96744
VS
39525 COND_WXUSE_EXPAT_BUILTIN="#"
39526 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39527 COND_WXUSE_EXPAT_BUILTIN=""
39528 fi
39529
02980527
VS
39530 COND_WXUSE_LIBJPEG_BUILTIN="#"
39531 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39532 COND_WXUSE_LIBJPEG_BUILTIN=""
39533 fi
39534
39535 COND_WXUSE_LIBPNG_BUILTIN="#"
39536 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39537 COND_WXUSE_LIBPNG_BUILTIN=""
39538 fi
39539
39540 COND_WXUSE_LIBTIFF_BUILTIN="#"
39541 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39542 COND_WXUSE_LIBTIFF_BUILTIN=""
39543 fi
39544
39545 COND_WXUSE_ODBC_BUILTIN="#"
39546 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39547 COND_WXUSE_ODBC_BUILTIN=""
39548 fi
39549
39550 COND_WXUSE_REGEX_BUILTIN="#"
39551 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39552 COND_WXUSE_REGEX_BUILTIN=""
39553 fi
39554
39555 COND_WXUSE_ZLIB_BUILTIN="#"
39556 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39557 COND_WXUSE_ZLIB_BUILTIN=""
39558 fi
39559
1772d20c 39560
fe0895cf 39561
fe0895cf 39562
fe0895cf 39563
45842500 39564if test $GCC_PCH = 1 ; then
130711ba 39565 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
39566 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39567else
39568 case "${host}" in
39569 powerpc-*-darwin* )
130711ba
VS
39570 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39571 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 39572 ;;
45842500
VS
39573 esac
39574fi
fe0895cf
VS
39575
39576
fddeb06b 39577SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
fe0895cf 39672
f0290fca
VS
39673
39674
243f8ae5 39675
e6cc62c6
VS
39676
39677
39678echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39679echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 39680set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
39681if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39682 echo $ECHO_N "(cached) $ECHO_C" >&6
39683else
39684 cat >conftest.make <<\_ACEOF
39685all:
39686 @echo 'ac_maketemp="$(MAKE)"'
39687_ACEOF
39688# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39689eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39690if test -n "$ac_maketemp"; then
39691 eval ac_cv_prog_make_${ac_make}_set=yes
39692else
39693 eval ac_cv_prog_make_${ac_make}_set=no
39694fi
39695rm -f conftest.make
39696fi
39697if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39698 echo "$as_me:$LINENO: result: yes" >&5
39699echo "${ECHO_T}yes" >&6
39700 SET_MAKE=
39701else
39702 echo "$as_me:$LINENO: result: no" >&5
39703echo "${ECHO_T}no" >&6
39704 SET_MAKE="MAKE=${MAKE-make}"
39705fi
39706
39707
39708if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39709 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39710fi
39711
39712 ac_config_headers="$ac_config_headers setup.h"
39713
39714
81345eef 39715 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
39716
39717
39718 ac_config_commands="$ac_config_commands default"
39719
39720
9de9b8f0 39721
6c3e36af
VZ
39722if test "$wxUSE_GUI" = "yes"; then
39723 SUBDIRS="samples demos utils contrib"
39724else SUBDIRS="samples utils"
39725fi
e6cc62c6 39726
166263e6 39727for subdir in `echo $SUBDIRS`; do
9747f85d 39728 if test -d ${srcdir}/${subdir} ; then
6c3e36af 39729 if test "$wxUSE_GUI" = "yes"; then
166263e6 39730 if test ${subdir} = "samples"; then
8772a1a7
VS
39731 makefiles="samples/Makefile.in $makefiles"
39732 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
39733 if test -d $srcdir/samples/$sample; then
39734 makefiles="samples/$sample/Makefile.in $makefiles"
39735 fi
39736 done
39737 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39738 fi
6c3e36af 39739 else if test ${subdir} = "samples"; then
8772a1a7 39740 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 39741 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
39742 utils/HelpGen/src/Makefile.in \
39743 utils/tex2rtf/Makefile.in \
39744 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
39745 fi
39746 fi
39747
9747f85d
VS
39748 for mkin in $makefiles ; do
39749 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39750 ac_config_files="$ac_config_files $mk"
e6cc62c6 39751
9747f85d
VS
39752 done
39753 fi
39754done
e6cc62c6 39755
9de9b8f0 39756
e6cc62c6
VS
39757cat >confcache <<\_ACEOF
39758# This file is a shell script that caches the results of configure
39759# tests run on this system so they can be shared between configure
39760# scripts and configure runs, see configure's option --config-cache.
39761# It is not useful on other systems. If it contains results you don't
39762# want to keep, you may remove or edit it.
39763#
39764# config.status only pays attention to the cache file if you give it
39765# the --recheck option to rerun configure.
39766#
39767# `ac_cv_env_foo' variables (set or unset) will be overridden when
39768# loading this file, other *unset* `ac_cv_foo' will be assigned the
39769# following values.
39770
39771_ACEOF
39772
39773# The following way of writing the cache mishandles newlines in values,
39774# but we know of no workaround that is simple, portable, and efficient.
39775# So, don't put newlines in cache variables' values.
39776# Ultrix sh set writes to stderr and can't be redirected directly,
39777# and sets the high bit in the cache file unless we assign to the vars.
39778{
39779 (set) 2>&1 |
39780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39781 *ac_space=\ *)
39782 # `set' does not quote correctly, so add quotes (double-quote
39783 # substitution turns \\\\ into \\, and sed turns \\ into \).
39784 sed -n \
32ddf007
VS
39785 "s/'/'\\\\''/g;
39786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
39787 ;;
39788 *)
39789 # `set' quotes correctly as required by POSIX, so do not add quotes.
39790 sed -n \
32ddf007 39791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
39792 ;;
39793 esac;
39794} |
39795 sed '
39796 t clear
39797 : clear
39798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39799 t end
39800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39801 : end' >>confcache
39802if diff $cache_file confcache >/dev/null 2>&1; then :; else
39803 if test -w $cache_file; then
39804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39805 cat confcache >$cache_file
39806 else
39807 echo "not updating unwritable cache $cache_file"
39808 fi
39809fi
39810rm -f confcache
39811
39812test "x$prefix" = xNONE && prefix=$ac_default_prefix
39813# Let make expand exec_prefix.
39814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39815
39816# VPATH may cause trouble with some makes, so we remove $(srcdir),
39817# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39818# trailing colons and then remove the whole line if VPATH becomes empty
39819# (actually we leave an empty line to preserve line numbers).
39820if test "x$srcdir" = x.; then
32ddf007 39821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
39822s/:*\$(srcdir):*/:/;
39823s/:*\${srcdir}:*/:/;
39824s/:*@srcdir@:*/:/;
32ddf007 39825s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 39826s/:*$//;
32ddf007 39827s/^[^=]*=[ ]*$//;
e6cc62c6
VS
39828}'
39829fi
39830
39831DEFS=-DHAVE_CONFIG_H
39832
39833ac_libobjs=
39834ac_ltlibobjs=
39835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39836 # 1. Remove the extension, and $U if already installed.
39837 ac_i=`echo "$ac_i" |
32ddf007 39838 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
39839 # 2. Add them.
39840 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39841 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39842done
39843LIBOBJS=$ac_libobjs
39844
39845LTLIBOBJS=$ac_ltlibobjs
39846
39847
39848
39849: ${CONFIG_STATUS=./config.status}
39850ac_clean_files_save=$ac_clean_files
39851ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39852{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39853echo "$as_me: creating $CONFIG_STATUS" >&6;}
39854cat >$CONFIG_STATUS <<_ACEOF
39855#! $SHELL
39856# Generated by $as_me.
39857# Run this file to recreate the current configuration.
39858# Compiler output produced by configure, useful for debugging
39859# configure, is in config.log if it exists.
39860
39861debug=false
39862ac_cs_recheck=false
39863ac_cs_silent=false
39864SHELL=\${CONFIG_SHELL-$SHELL}
39865_ACEOF
39866
39867cat >>$CONFIG_STATUS <<\_ACEOF
39868## --------------------- ##
39869## M4sh Initialization. ##
39870## --------------------- ##
39871
39872# Be Bourne compatible
39873if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39874 emulate sh
39875 NULLCMD=:
39876 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39877 # is contrary to our usage. Disable this feature.
39878 alias -g '${1+"$@"}'='"$@"'
39879elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39880 set -o posix
39881fi
32ddf007 39882DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
39883
39884# Support unset when possible.
32ddf007 39885if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
39886 as_unset=unset
39887else
39888 as_unset=false
39889fi
39890
39891
39892# Work around bugs in pre-3.0 UWIN ksh.
39893$as_unset ENV MAIL MAILPATH
39894PS1='$ '
39895PS2='> '
39896PS4='+ '
39897
39898# NLS nuisances.
39899for as_var in \
39900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39902 LC_TELEPHONE LC_TIME
39903do
32ddf007 39904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
39905 eval $as_var=C; export $as_var
39906 else
39907 $as_unset $as_var
39908 fi
39909done
39910
39911# Required to use basename.
39912if expr a : '\(a\)' >/dev/null 2>&1; then
39913 as_expr=expr
39914else
39915 as_expr=false
39916fi
39917
39918if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39919 as_basename=basename
39920else
39921 as_basename=false
39922fi
39923
39924
39925# Name of the executable.
39926as_me=`$as_basename "$0" ||
39927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39928 X"$0" : 'X\(//\)$' \| \
39929 X"$0" : 'X\(/\)$' \| \
39930 . : '\(.\)' 2>/dev/null ||
39931echo X/"$0" |
39932 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39933 /^X\/\(\/\/\)$/{ s//\1/; q; }
39934 /^X\/\(\/\).*/{ s//\1/; q; }
39935 s/.*/./; q'`
39936
39937
39938# PATH needs CR, and LINENO needs CR and PATH.
39939# Avoid depending upon Character Ranges.
39940as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39941as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39942as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39943as_cr_digits='0123456789'
39944as_cr_alnum=$as_cr_Letters$as_cr_digits
39945
39946# The user is always right.
39947if test "${PATH_SEPARATOR+set}" != set; then
39948 echo "#! /bin/sh" >conf$$.sh
39949 echo "exit 0" >>conf$$.sh
39950 chmod +x conf$$.sh
39951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39952 PATH_SEPARATOR=';'
39953 else
39954 PATH_SEPARATOR=:
39955 fi
39956 rm -f conf$$.sh
39957fi
39958
39959
39960 as_lineno_1=$LINENO
39961 as_lineno_2=$LINENO
39962 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39963 test "x$as_lineno_1" != "x$as_lineno_2" &&
39964 test "x$as_lineno_3" = "x$as_lineno_2" || {
39965 # Find who we are. Look in the path if we contain no path at all
39966 # relative or not.
39967 case $0 in
39968 *[\\/]* ) as_myself=$0 ;;
39969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39970for as_dir in $PATH
39971do
39972 IFS=$as_save_IFS
39973 test -z "$as_dir" && as_dir=.
39974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39975done
39976
39977 ;;
39978 esac
39979 # We did not find ourselves, most probably we were run as `sh COMMAND'
39980 # in which case we are not to be found in the path.
39981 if test "x$as_myself" = x; then
39982 as_myself=$0
39983 fi
39984 if test ! -f "$as_myself"; then
39985 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39986echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39987 { (exit 1); exit 1; }; }
39988 fi
39989 case $CONFIG_SHELL in
39990 '')
39991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39992for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39993do
39994 IFS=$as_save_IFS
39995 test -z "$as_dir" && as_dir=.
39996 for as_base in sh bash ksh sh5; do
39997 case $as_dir in
39998 /*)
39999 if ("$as_dir/$as_base" -c '
40000 as_lineno_1=$LINENO
40001 as_lineno_2=$LINENO
40002 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40003 test "x$as_lineno_1" != "x$as_lineno_2" &&
40004 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40005 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40006 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40007 CONFIG_SHELL=$as_dir/$as_base
40008 export CONFIG_SHELL
40009 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40010 fi;;
40011 esac
40012 done
40013done
40014;;
40015 esac
40016
40017 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40018 # uniformly replaced by the line number. The first 'sed' inserts a
40019 # line-number line before each line; the second 'sed' does the real
40020 # work. The second script uses 'N' to pair each line-number line
40021 # with the numbered line, and appends trailing '-' during
40022 # substitution so that $LINENO is not a special case at line end.
40023 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40024 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40025 sed '=' <$as_myself |
40026 sed '
40027 N
40028 s,$,-,
40029 : loop
40030 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40031 t loop
40032 s,-$,,
40033 s,^['$as_cr_digits']*\n,,
40034 ' >$as_me.lineno &&
40035 chmod +x $as_me.lineno ||
40036 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40037echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40038 { (exit 1); exit 1; }; }
40039
40040 # Don't try to exec as it changes $[0], causing all sort of problems
40041 # (the dirname of $[0] is not the place where we might find the
40042 # original and so on. Autoconf is especially sensible to this).
40043 . ./$as_me.lineno
40044 # Exit status is that of the last command.
40045 exit
40046}
40047
40048
40049case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40050 *c*,-n*) ECHO_N= ECHO_C='
40051' ECHO_T=' ' ;;
40052 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40053 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40054esac
40055
40056if expr a : '\(a\)' >/dev/null 2>&1; then
40057 as_expr=expr
40058else
40059 as_expr=false
40060fi
40061
40062rm -f conf$$ conf$$.exe conf$$.file
40063echo >conf$$.file
40064if ln -s conf$$.file conf$$ 2>/dev/null; then
40065 # We could just check for DJGPP; but this test a) works b) is more generic
40066 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40067 if test -f conf$$.exe; then
40068 # Don't use ln at all; we don't have any links
40069 as_ln_s='cp -p'
40070 else
40071 as_ln_s='ln -s'
40072 fi
40073elif ln conf$$.file conf$$ 2>/dev/null; then
40074 as_ln_s=ln
40075else
40076 as_ln_s='cp -p'
40077fi
40078rm -f conf$$ conf$$.exe conf$$.file
40079
40080if mkdir -p . 2>/dev/null; then
40081 as_mkdir_p=:
40082else
32ddf007 40083 test -d ./-p && rmdir ./-p
e6cc62c6
VS
40084 as_mkdir_p=false
40085fi
40086
40087as_executable_p="test -f"
40088
40089# Sed expression to map a string onto a valid CPP name.
32ddf007 40090as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40091
40092# Sed expression to map a string onto a valid variable name.
32ddf007 40093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40094
40095
40096# IFS
40097# We need space, tab and new line, in precisely that order.
40098as_nl='
40099'
40100IFS=" $as_nl"
40101
40102# CDPATH.
40103$as_unset CDPATH
40104
40105exec 6>&1
40106
40107# Open the log real soon, to keep \$[0] and so on meaningful, and to
40108# report actual input values of CONFIG_FILES etc. instead of their
40109# values after options handling. Logging --version etc. is OK.
40110exec 5>>config.log
40111{
40112 echo
40113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40114## Running $as_me. ##
40115_ASBOX
40116} >&5
40117cat >&5 <<_CSEOF
40118
e46d2a18 40119This file was extended by wxWindows $as_me 2.5.1, which was
32ddf007 40120generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
40121
40122 CONFIG_FILES = $CONFIG_FILES
40123 CONFIG_HEADERS = $CONFIG_HEADERS
40124 CONFIG_LINKS = $CONFIG_LINKS
40125 CONFIG_COMMANDS = $CONFIG_COMMANDS
40126 $ $0 $@
40127
40128_CSEOF
40129echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40130echo >&5
40131_ACEOF
40132
40133# Files that config.status was made for.
40134if test -n "$ac_config_files"; then
40135 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40136fi
40137
40138if test -n "$ac_config_headers"; then
40139 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40140fi
40141
40142if test -n "$ac_config_links"; then
40143 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40144fi
40145
40146if test -n "$ac_config_commands"; then
40147 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40148fi
40149
40150cat >>$CONFIG_STATUS <<\_ACEOF
40151
40152ac_cs_usage="\
40153\`$as_me' instantiates files from templates according to the
40154current configuration.
40155
40156Usage: $0 [OPTIONS] [FILE]...
40157
40158 -h, --help print this help, then exit
40159 -V, --version print version number, then exit
40160 -q, --quiet do not print progress messages
40161 -d, --debug don't remove temporary files
40162 --recheck update $as_me by reconfiguring in the same conditions
40163 --file=FILE[:TEMPLATE]
32ddf007 40164 instantiate the configuration file FILE
e6cc62c6 40165 --header=FILE[:TEMPLATE]
32ddf007 40166 instantiate the configuration header FILE
e6cc62c6
VS
40167
40168Configuration files:
40169$config_files
40170
40171Configuration headers:
40172$config_headers
40173
40174Configuration commands:
40175$config_commands
40176
40177Report bugs to <bug-autoconf@gnu.org>."
40178_ACEOF
40179
40180cat >>$CONFIG_STATUS <<_ACEOF
40181ac_cs_version="\\
e46d2a18 40182wxWindows config.status 2.5.1
32ddf007 40183configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
40184 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40185
32ddf007 40186Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
40187This config.status script is free software; the Free Software Foundation
40188gives unlimited permission to copy, distribute and modify it."
40189srcdir=$srcdir
40190INSTALL="$INSTALL"
40191_ACEOF
40192
40193cat >>$CONFIG_STATUS <<\_ACEOF
40194# If no file are specified by the user, then we need to provide default
40195# value. By we need to know if files were specified by the user.
40196ac_need_defaults=:
40197while test $# != 0
40198do
40199 case $1 in
40200 --*=*)
40201 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40202 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40203 ac_shift=:
40204 ;;
40205 -*)
40206 ac_option=$1
40207 ac_optarg=$2
40208 ac_shift=shift
40209 ;;
40210 *) # This is not an option, so the user has probably given explicit
40211 # arguments.
40212 ac_option=$1
40213 ac_need_defaults=false;;
40214 esac
40215
40216 case $ac_option in
40217 # Handling of the options.
40218_ACEOF
40219cat >>$CONFIG_STATUS <<\_ACEOF
40220 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40221 ac_cs_recheck=: ;;
40222 --version | --vers* | -V )
40223 echo "$ac_cs_version"; exit 0 ;;
40224 --he | --h)
40225 # Conflict between --help and --header
40226 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40227Try \`$0 --help' for more information." >&5
40228echo "$as_me: error: ambiguous option: $1
40229Try \`$0 --help' for more information." >&2;}
40230 { (exit 1); exit 1; }; };;
40231 --help | --hel | -h )
40232 echo "$ac_cs_usage"; exit 0 ;;
40233 --debug | --d* | -d )
40234 debug=: ;;
40235 --file | --fil | --fi | --f )
40236 $ac_shift
40237 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40238 ac_need_defaults=false;;
40239 --header | --heade | --head | --hea )
40240 $ac_shift
40241 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40242 ac_need_defaults=false;;
40243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40245 ac_cs_silent=: ;;
40246
40247 # This is an error.
40248 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40249Try \`$0 --help' for more information." >&5
40250echo "$as_me: error: unrecognized option: $1
40251Try \`$0 --help' for more information." >&2;}
40252 { (exit 1); exit 1; }; } ;;
40253
40254 *) ac_config_targets="$ac_config_targets $1" ;;
40255
40256 esac
40257 shift
40258done
40259
40260ac_configure_extra_args=
40261
40262if $ac_cs_silent; then
40263 exec 6>/dev/null
40264 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
40265fi
40266
e6cc62c6
VS
40267_ACEOF
40268cat >>$CONFIG_STATUS <<_ACEOF
40269if \$ac_cs_recheck; then
40270 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40271 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
40272fi
40273
e6cc62c6 40274_ACEOF
fe0895cf 40275
e6cc62c6 40276cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 40277#
e6cc62c6 40278# INIT-COMMANDS section.
10f2d63a 40279#
10f2d63a 40280
a0b9e27f 40281
e6cc62c6
VS
40282 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40283 LN_S="${LN_S}"
10f2d63a 40284
10f2d63a 40285
10f2d63a 40286
e6cc62c6 40287_ACEOF
8284b0c5 40288
52127426 40289
247f5006 40290
e6cc62c6
VS
40291cat >>$CONFIG_STATUS <<\_ACEOF
40292for ac_config_target in $ac_config_targets
247f5006 40293do
e6cc62c6
VS
40294 case "$ac_config_target" in
40295 # Handling of arguments.
81345eef
VZ
40296 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40297 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40298 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 40299 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
40300 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40301 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40303echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40304 { (exit 1); exit 1; }; };;
247f5006
VZ
40305 esac
40306done
40307
e6cc62c6
VS
40308# If the user did not use the arguments to specify the items to instantiate,
40309# then the envvar interface is used. Set only those that are not.
40310# We use the long form for the default assignment because of an extremely
40311# bizarre bug on SunOS 4.1.3.
40312if $ac_need_defaults; then
40313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40316fi
40317
40318# Have a temporary directory for convenience. Make it in the build tree
40319# simply because there is no reason to put it here, and in addition,
40320# creating and moving files from /tmp can sometimes cause problems.
40321# Create a temporary directory, and hook for its removal unless debugging.
40322$debug ||
40323{
40324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40325 trap '{ (exit 1); exit 1; }' 1 2 13 15
40326}
247f5006 40327
e6cc62c6 40328# Create a (secure) tmp directory for tmp files.
247f5006 40329
e6cc62c6
VS
40330{
40331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40332 test -n "$tmp" && test -d "$tmp"
40333} ||
40334{
40335 tmp=./confstat$$-$RANDOM
40336 (umask 077 && mkdir $tmp)
40337} ||
40338{
40339 echo "$me: cannot create a temporary directory in ." >&2
40340 { (exit 1); exit 1; }
40341}
40342
40343_ACEOF
40344
40345cat >>$CONFIG_STATUS <<_ACEOF
40346
40347#
40348# CONFIG_FILES section.
40349#
247f5006 40350
e6cc62c6
VS
40351# No need to generate the scripts if there are no CONFIG_FILES.
40352# This happens for instance when ./config.status config.h
40353if test -n "\$CONFIG_FILES"; then
40354 # Protect against being on the right side of a sed subst in config.status.
40355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40357s,@SHELL@,$SHELL,;t t
40358s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40359s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40360s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40361s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40362s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40363s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40364s,@exec_prefix@,$exec_prefix,;t t
40365s,@prefix@,$prefix,;t t
40366s,@program_transform_name@,$program_transform_name,;t t
40367s,@bindir@,$bindir,;t t
40368s,@sbindir@,$sbindir,;t t
40369s,@libexecdir@,$libexecdir,;t t
40370s,@datadir@,$datadir,;t t
40371s,@sysconfdir@,$sysconfdir,;t t
40372s,@sharedstatedir@,$sharedstatedir,;t t
40373s,@localstatedir@,$localstatedir,;t t
40374s,@libdir@,$libdir,;t t
40375s,@includedir@,$includedir,;t t
40376s,@oldincludedir@,$oldincludedir,;t t
40377s,@infodir@,$infodir,;t t
40378s,@mandir@,$mandir,;t t
40379s,@build_alias@,$build_alias,;t t
40380s,@host_alias@,$host_alias,;t t
40381s,@target_alias@,$target_alias,;t t
40382s,@DEFS@,$DEFS,;t t
40383s,@ECHO_C@,$ECHO_C,;t t
40384s,@ECHO_N@,$ECHO_N,;t t
40385s,@ECHO_T@,$ECHO_T,;t t
40386s,@LIBS@,$LIBS,;t t
40387s,@build@,$build,;t t
40388s,@build_cpu@,$build_cpu,;t t
40389s,@build_vendor@,$build_vendor,;t t
40390s,@build_os@,$build_os,;t t
40391s,@host@,$host,;t t
40392s,@host_cpu@,$host_cpu,;t t
40393s,@host_vendor@,$host_vendor,;t t
40394s,@host_os@,$host_os,;t t
40395s,@target@,$target,;t t
40396s,@target_cpu@,$target_cpu,;t t
40397s,@target_vendor@,$target_vendor,;t t
40398s,@target_os@,$target_os,;t t
40399s,@CC@,$CC,;t t
40400s,@CFLAGS@,$CFLAGS,;t t
40401s,@LDFLAGS@,$LDFLAGS,;t t
40402s,@CPPFLAGS@,$CPPFLAGS,;t t
40403s,@ac_ct_CC@,$ac_ct_CC,;t t
40404s,@EXEEXT@,$EXEEXT,;t t
40405s,@OBJEXT@,$OBJEXT,;t t
40406s,@CPP@,$CPP,;t t
40407s,@EGREP@,$EGREP,;t t
40408s,@CXX@,$CXX,;t t
40409s,@CXXFLAGS@,$CXXFLAGS,;t t
40410s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40411s,@RANLIB@,$RANLIB,;t t
40412s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40413s,@AR@,$AR,;t t
40414s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40415s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40416s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40417s,@STRIP@,$STRIP,;t t
40418s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
40419s,@LN_S@,$LN_S,;t t
40420s,@CXXCPP@,$CXXCPP,;t t
672abd7a 40421s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
40422s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40423s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40424s,@GTK_LIBS@,$GTK_LIBS,;t t
40425s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40426s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40427s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40428s,@X_CFLAGS@,$X_CFLAGS,;t t
40429s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40430s,@X_LIBS@,$X_LIBS,;t t
40431s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40432s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40433s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40434s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40435s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
40436s,@RESCOMP@,$RESCOMP,;t t
40437s,@DEREZ@,$DEREZ,;t t
40438s,@SETFILE@,$SETFILE,;t t
40439s,@LIBICONV@,$LIBICONV,;t t
edd891e2 40440s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
40441s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40442s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40443s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
40444s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40445s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
40446s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40447s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 40448s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
40449s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40450s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40451s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40452s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
40453s,@VENDOR@,$VENDOR,;t t
40454s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
40455s,@WXUNIV@,$WXUNIV,;t t
40456s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 40457s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 40458s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 40459s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 40460s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 40461s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 40462s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 40463s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
40464s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40465s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
40466s,@UNICODE@,$UNICODE,;t t
40467s,@BUILD@,$BUILD,;t t
6c67131a
VS
40468s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40469s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
40470s,@SHARED@,$SHARED,;t t
40471s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40472s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40473s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 40474s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 40475s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
40476s,@SET_MAKE@,$SET_MAKE,;t t
40477s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
40478s,@ac_ct_AR@,$ac_ct_AR,;t t
40479s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40480s,@NM@,$NM,;t t
40481s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 40482s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 40483s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
40484s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40485s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40486s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40487s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40488s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 40489s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 40490s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 40491s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 40492s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 40493s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 40494s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 40495s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
40496s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40497s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
40498s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40499s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
40500s,@PIC_FLAG@,$PIC_FLAG,;t t
40501s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40502s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40503s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40504s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40505s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40506s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 40507s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 40508s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 40509s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
40510s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40511s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40512s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40513s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 40514s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 40515s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40516s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40517s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
40518s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40519s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40520s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 40521s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 40522s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 40523s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 40524s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
40525s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40526s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 40527s,@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 40528s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 40529s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 40530s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 40531s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 40532s,@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 40533s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 40534s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 40535s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 40536s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
40537s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40538s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
40539s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40540s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 40541s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 40542s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
40543s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40544s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40545s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 40546s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 40547s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 40548s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 40549s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 40550s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 40551s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 40552s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 40553s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
40554s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40555s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 40556s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 40557s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
40558s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40559s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40560s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40561s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40562s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40563s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40564s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 40565s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 40566s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
40567s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40568s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40569s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40570s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 40571s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 40572s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 40573s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
40574s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40575s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40576s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
40577s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40578s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40579s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 40580s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
40581s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40582s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
40583s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40584s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40585s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
40586s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40587s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 40588s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
40589s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40590s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
40591s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40592s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
40593s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40594s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
40595s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40596s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40597s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 40598s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 40599s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
40600s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40601s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40602s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40603s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
40604s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40605s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 40606s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 40607s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
40608s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40609s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40610s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40611s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40612s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40613s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
40614s,@PATH_IFS@,$PATH_IFS,;t t
40615s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40616s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40617s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40618s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40619s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
40620s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40621s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
40622s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40623s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40624s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40625s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40626s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40627s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40628s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40629s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40630s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40631s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40632s,@WX_ALL@,$WX_ALL,;t t
40633s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40634s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
40635s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40636s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40637s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40638s,@USE_GUI@,$USE_GUI,;t t
40639s,@AFMINSTALL@,$AFMINSTALL,;t t
40640s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40641s,@TOOLKIT@,$TOOLKIT,;t t
40642s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40643s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40644s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40645s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40646s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40647s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40648s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 40649s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
40650s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40651s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40652s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40653s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40654s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40655s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 40656s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 40657s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
40658s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40659s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
40660s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40661s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40662s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40663s,@GUIDIST@,$GUIDIST,;t t
40664s,@PORT_FILES@,$PORT_FILES,;t t
40665s,@DISTDIR@,$DISTDIR,;t t
40666s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40667s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40668s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40669s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40670s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40671s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40672s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40673s,@RESFLAGS@,$RESFLAGS,;t t
40674s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40675s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40676s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
40677s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40678s,@MACRESCOMP@,$MACRESCOMP,;t t
40679s,@MACSETFILE@,$MACSETFILE,;t t
40680s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40681s,@GCC@,$GCC,;t t
243f8ae5 40682s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
e6cc62c6
VS
40683s,@DLLTOOL@,$DLLTOOL,;t t
40684s,@AS@,$AS,;t t
e6cc62c6
VS
40685s,@LD@,$LD,;t t
40686s,@MAKEINFO@,$MAKEINFO,;t t
40687s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
40688s,@LIBOBJS@,$LIBOBJS,;t t
40689s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
40690CEOF
40691
e6cc62c6
VS
40692_ACEOF
40693
40694 cat >>$CONFIG_STATUS <<\_ACEOF
40695 # Split the substitutions into bite-sized pieces for seds with
40696 # small command number limits, like on Digital OSF/1 and HP-UX.
40697 ac_max_sed_lines=48
40698 ac_sed_frag=1 # Number of current file.
40699 ac_beg=1 # First line for current file.
40700 ac_end=$ac_max_sed_lines # Line after last line for current file.
40701 ac_more_lines=:
40702 ac_sed_cmds=
40703 while $ac_more_lines; do
40704 if test $ac_beg -gt 1; then
40705 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 40706 else
e6cc62c6
VS
40707 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40708 fi
40709 if test ! -s $tmp/subs.frag; then
40710 ac_more_lines=false
40711 else
40712 # The purpose of the label and of the branching condition is to
40713 # speed up the sed processing (if there are no `@' at all, there
40714 # is no need to browse any of the substitutions).
40715 # These are the two extra sed commands mentioned above.
40716 (echo ':t
40717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40718 if test -z "$ac_sed_cmds"; then
32ddf007 40719 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 40720 else
32ddf007 40721 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
40722 fi
40723 ac_sed_frag=`expr $ac_sed_frag + 1`
40724 ac_beg=$ac_end
40725 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 40726 fi
e6cc62c6
VS
40727 done
40728 if test -z "$ac_sed_cmds"; then
40729 ac_sed_cmds=cat
10f2d63a 40730 fi
e6cc62c6 40731fi # test -n "$CONFIG_FILES"
10f2d63a 40732
e6cc62c6
VS
40733_ACEOF
40734cat >>$CONFIG_STATUS <<\_ACEOF
40735for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 40736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40737 case $ac_file in
40738 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
40739 cat >$tmp/stdin
40740 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40742 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 40743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40744 * ) ac_file_in=$ac_file.in ;;
10f2d63a 40745 esac
247f5006 40746
e6cc62c6
VS
40747 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40748 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40749$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
40750 X"$ac_file" : 'X\(//\)[^/]' \| \
40751 X"$ac_file" : 'X\(//\)$' \| \
40752 X"$ac_file" : 'X\(/\)' \| \
40753 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40754echo X"$ac_file" |
40755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40757 /^X\(\/\/\)$/{ s//\1/; q; }
40758 /^X\(\/\).*/{ s//\1/; q; }
40759 s/.*/./; q'`
40760 { if $as_mkdir_p; then
40761 mkdir -p "$ac_dir"
a0b9e27f 40762 else
e6cc62c6
VS
40763 as_dir="$ac_dir"
40764 as_dirs=
40765 while test ! -d "$as_dir"; do
40766 as_dirs="$as_dir $as_dirs"
40767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
40769 X"$as_dir" : 'X\(//\)[^/]' \| \
40770 X"$as_dir" : 'X\(//\)$' \| \
40771 X"$as_dir" : 'X\(/\)' \| \
40772 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40773echo X"$as_dir" |
40774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40776 /^X\(\/\/\)$/{ s//\1/; q; }
40777 /^X\(\/\).*/{ s//\1/; q; }
40778 s/.*/./; q'`
40779 done
40780 test ! -n "$as_dirs" || mkdir $as_dirs
40781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40782echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40783 { (exit 1); exit 1; }; }; }
40784
40785 ac_builddir=.
40786
40787if test "$ac_dir" != .; then
40788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40789 # A "../" for each directory in $ac_dir_suffix.
40790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40791else
40792 ac_dir_suffix= ac_top_builddir=
40793fi
247f5006 40794
e6cc62c6
VS
40795case $srcdir in
40796 .) # No --srcdir option. We are building in place.
40797 ac_srcdir=.
40798 if test -z "$ac_top_builddir"; then
40799 ac_top_srcdir=.
40800 else
40801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40802 fi ;;
40803 [\\/]* | ?:[\\/]* ) # Absolute path.
40804 ac_srcdir=$srcdir$ac_dir_suffix;
40805 ac_top_srcdir=$srcdir ;;
247f5006 40806 *) # Relative path.
e6cc62c6
VS
40807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40809esac
32ddf007
VS
40810
40811# Do not use `cd foo && pwd` to compute absolute paths, because
40812# the directories may not exist.
40813case `pwd` in
40814.) ac_abs_builddir="$ac_dir";;
40815*)
40816 case "$ac_dir" in
40817 .) ac_abs_builddir=`pwd`;;
40818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40820 esac;;
40821esac
40822case $ac_abs_builddir in
40823.) ac_abs_top_builddir=${ac_top_builddir}.;;
40824*)
40825 case ${ac_top_builddir}. in
40826 .) ac_abs_top_builddir=$ac_abs_builddir;;
40827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40829 esac;;
40830esac
40831case $ac_abs_builddir in
40832.) ac_abs_srcdir=$ac_srcdir;;
40833*)
40834 case $ac_srcdir in
40835 .) ac_abs_srcdir=$ac_abs_builddir;;
40836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40838 esac;;
40839esac
40840case $ac_abs_builddir in
40841.) ac_abs_top_srcdir=$ac_top_srcdir;;
40842*)
40843 case $ac_top_srcdir in
40844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40847 esac;;
40848esac
10f2d63a 40849
247f5006 40850
e6cc62c6
VS
40851 case $INSTALL in
40852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40853 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 40854 esac
247f5006 40855
e6cc62c6
VS
40856 # Let's still pretend it is `configure' which instantiates (i.e., don't
40857 # use $as_me), people would be surprised to read:
40858 # /* config.h. Generated by config.status. */
40859 if test x"$ac_file" = x-; then
40860 configure_input=
40861 else
40862 configure_input="$ac_file. "
40863 fi
40864 configure_input=$configure_input"Generated from `echo $ac_file_in |
32ddf007 40865 sed 's,.*/,,'` by configure."
e6cc62c6
VS
40866
40867 # First look for the input files in the build tree, otherwise in the
40868 # src tree.
40869 ac_file_inputs=`IFS=:
40870 for f in $ac_file_in; do
40871 case $f in
40872 -) echo $tmp/stdin ;;
40873 [\\/$]*)
32ddf007
VS
40874 # Absolute (can't be DOS-style, as IFS=:)
40875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40876echo "$as_me: error: cannot find input file: $f" >&2;}
40877 { (exit 1); exit 1; }; }
32ddf007 40878 echo "$f";;
e6cc62c6 40879 *) # Relative
32ddf007
VS
40880 if test -f "$f"; then
40881 # Build tree
40882 echo "$f"
40883 elif test -f "$srcdir/$f"; then
40884 # Source tree
40885 echo "$srcdir/$f"
40886 else
40887 # /dev/null tree
40888 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40889echo "$as_me: error: cannot find input file: $f" >&2;}
40890 { (exit 1); exit 1; }; }
32ddf007 40891 fi;;
e6cc62c6
VS
40892 esac
40893 done` || { (exit 1); exit 1; }
e1293dcf
RL
40894
40895 if test x"$ac_file" != x-; then
40896 { echo "$as_me:$LINENO: creating $ac_file" >&5
40897echo "$as_me: creating $ac_file" >&6;}
40898 rm -f "$ac_file"
40899 fi
e6cc62c6
VS
40900_ACEOF
40901cat >>$CONFIG_STATUS <<_ACEOF
40902 sed "$ac_vpsub
40903$extrasub
40904_ACEOF
40905cat >>$CONFIG_STATUS <<\_ACEOF
40906:t
40907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40908s,@configure_input@,$configure_input,;t t
40909s,@srcdir@,$ac_srcdir,;t t
40910s,@abs_srcdir@,$ac_abs_srcdir,;t t
40911s,@top_srcdir@,$ac_top_srcdir,;t t
40912s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40913s,@builddir@,$ac_builddir,;t t
40914s,@abs_builddir@,$ac_abs_builddir,;t t
40915s,@top_builddir@,$ac_top_builddir,;t t
40916s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40917s,@INSTALL@,$ac_INSTALL,;t t
40918" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40919 rm -f $tmp/stdin
40920 if test x"$ac_file" != x-; then
40921 mv $tmp/out $ac_file
40922 else
40923 cat $tmp/out
40924 rm -f $tmp/out
40925 fi
40926
40927done
40928_ACEOF
40929cat >>$CONFIG_STATUS <<\_ACEOF
40930
40931#
40932# CONFIG_HEADER section.
40933#
10f2d63a
VZ
40934
40935# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40936# NAME is the cpp macro being defined and VALUE is the value it is being given.
40937#
40938# ac_d sets the value in "#define NAME VALUE" lines.
32ddf007
VS
40939ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40940ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
40941ac_dC=' '
40942ac_dD=',;t'
40943# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32ddf007 40944ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 40945ac_uB='$,\1#\2define\3'
10f2d63a 40946ac_uC=' '
e6cc62c6
VS
40947ac_uD=',;t'
40948
40949for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 40950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40951 case $ac_file in
40952 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
40953 cat >$tmp/stdin
40954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 40957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40958 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
40959 esac
40960
e6cc62c6
VS
40961 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40962echo "$as_me: creating $ac_file" >&6;}
40963
40964 # First look for the input files in the build tree, otherwise in the
40965 # src tree.
40966 ac_file_inputs=`IFS=:
40967 for f in $ac_file_in; do
40968 case $f in
40969 -) echo $tmp/stdin ;;
40970 [\\/$]*)
32ddf007
VS
40971 # Absolute (can't be DOS-style, as IFS=:)
40972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40973echo "$as_me: error: cannot find input file: $f" >&2;}
40974 { (exit 1); exit 1; }; }
32ddf007
VS
40975 # Do quote $f, to prevent DOS paths from being IFS'd.
40976 echo "$f";;
e6cc62c6 40977 *) # Relative
32ddf007
VS
40978 if test -f "$f"; then
40979 # Build tree
40980 echo "$f"
40981 elif test -f "$srcdir/$f"; then
40982 # Source tree
40983 echo "$srcdir/$f"
40984 else
40985 # /dev/null tree
40986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40987echo "$as_me: error: cannot find input file: $f" >&2;}
40988 { (exit 1); exit 1; }; }
32ddf007 40989 fi;;
e6cc62c6
VS
40990 esac
40991 done` || { (exit 1); exit 1; }
40992 # Remove the trailing spaces.
32ddf007 40993 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
40994
40995_ACEOF
40996
40997# Transform confdefs.h into two sed scripts, `conftest.defines' and
40998# `conftest.undefs', that substitutes the proper values into
40999# config.h.in to produce config.h. The first handles `#define'
41000# templates, and the second `#undef' templates.
41001# And first: Protect against being on the right side of a sed subst in
41002# config.status. Protect against being in an unquoted here document
41003# in config.status.
41004rm -f conftest.defines conftest.undefs
41005# Using a here document instead of a string reduces the quoting nightmare.
41006# Putting comments in sed scripts is not portable.
41007#
41008# `end' is used to avoid that the second main sed command (meant for
41009# 0-ary CPP macros) applies to n-ary macro definitions.
41010# See the Autoconf documentation for `clear'.
41011cat >confdef2sed.sed <<\_ACEOF
41012s/[\\&,]/\\&/g
41013s,[\\$`],\\&,g
41014t clear
41015: clear
32ddf007 41016s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 41017t end
32ddf007 41018s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
41019: end
41020_ACEOF
41021# If some macros were called several times there might be several times
41022# the same #defines, which is useless. Nevertheless, we may not want to
41023# sort them, since we want the *last* AC-DEFINE to be honored.
41024uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41025sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41026rm -f confdef2sed.sed
10f2d63a
VZ
41027
41028# This sed command replaces #undef with comments. This is necessary, for
41029# example, in the case of _POSIX_SOURCE, which is predefined and required
41030# on some systems where configure will not decide to define it.
e6cc62c6 41031cat >>conftest.undefs <<\_ACEOF
32ddf007 41032s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
41033_ACEOF
41034
41035# Break up conftest.defines because some shells have a limit on the size
41036# of here documents, and old seds have small limits too (100 cmds).
41037echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32ddf007 41038echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
41039echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41040echo ' :' >>$CONFIG_STATUS
41041rm -f conftest.tail
41042while grep . conftest.defines >/dev/null
41043do
41044 # Write a limited-size here document to $tmp/defines.sed.
41045 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41046 # Speed up: don't consider the non `#define' lines.
32ddf007 41047 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41048 # Work around the forget-to-reset-the-flag bug.
41049 echo 't clr' >>$CONFIG_STATUS
41050 echo ': clr' >>$CONFIG_STATUS
41051 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41052 echo 'CEOF
41053 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41054 rm -f $tmp/in
41055 mv $tmp/out $tmp/in
41056' >>$CONFIG_STATUS
41057 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41058 rm -f conftest.defines
41059 mv conftest.tail conftest.defines
41060done
41061rm -f conftest.defines
41062echo ' fi # grep' >>$CONFIG_STATUS
41063echo >>$CONFIG_STATUS
10f2d63a 41064
e6cc62c6
VS
41065# Break up conftest.undefs because some shells have a limit on the size
41066# of here documents, and old seds have small limits too (100 cmds).
41067echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 41068rm -f conftest.tail
e6cc62c6 41069while grep . conftest.undefs >/dev/null
10f2d63a 41070do
e6cc62c6
VS
41071 # Write a limited-size here document to $tmp/undefs.sed.
41072 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41073 # Speed up: don't consider the non `#undef'
32ddf007 41074 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41075 # Work around the forget-to-reset-the-flag bug.
41076 echo 't clr' >>$CONFIG_STATUS
41077 echo ': clr' >>$CONFIG_STATUS
41078 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 41079 echo 'CEOF
e6cc62c6
VS
41080 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41081 rm -f $tmp/in
41082 mv $tmp/out $tmp/in
41083' >>$CONFIG_STATUS
41084 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41085 rm -f conftest.undefs
41086 mv conftest.tail conftest.undefs
10f2d63a 41087done
e6cc62c6
VS
41088rm -f conftest.undefs
41089
41090cat >>$CONFIG_STATUS <<\_ACEOF
41091 # Let's still pretend it is `configure' which instantiates (i.e., don't
41092 # use $as_me), people would be surprised to read:
41093 # /* config.h. Generated by config.status. */
41094 if test x"$ac_file" = x-; then
41095 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 41096 else
e6cc62c6 41097 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 41098 fi
e6cc62c6
VS
41099 cat $tmp/in >>$tmp/config.h
41100 rm -f $tmp/in
41101 if test x"$ac_file" != x-; then
41102 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41104echo "$as_me: $ac_file is unchanged" >&6;}
41105 else
41106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41107$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41108 X"$ac_file" : 'X\(//\)[^/]' \| \
41109 X"$ac_file" : 'X\(//\)$' \| \
41110 X"$ac_file" : 'X\(/\)' \| \
41111 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41112echo X"$ac_file" |
41113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41115 /^X\(\/\/\)$/{ s//\1/; q; }
41116 /^X\(\/\).*/{ s//\1/; q; }
41117 s/.*/./; q'`
41118 { if $as_mkdir_p; then
41119 mkdir -p "$ac_dir"
41120 else
41121 as_dir="$ac_dir"
41122 as_dirs=
41123 while test ! -d "$as_dir"; do
41124 as_dirs="$as_dir $as_dirs"
41125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41127 X"$as_dir" : 'X\(//\)[^/]' \| \
41128 X"$as_dir" : 'X\(//\)$' \| \
41129 X"$as_dir" : 'X\(/\)' \| \
41130 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41131echo X"$as_dir" |
41132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41134 /^X\(\/\/\)$/{ s//\1/; q; }
41135 /^X\(\/\).*/{ s//\1/; q; }
41136 s/.*/./; q'`
41137 done
41138 test ! -n "$as_dirs" || mkdir $as_dirs
41139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41140echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41141 { (exit 1); exit 1; }; }; }
a0b9e27f 41142
e6cc62c6
VS
41143 rm -f $ac_file
41144 mv $tmp/config.h $ac_file
41145 fi
41146 else
41147 cat $tmp/config.h
41148 rm -f $tmp/config.h
41149 fi
41150done
41151_ACEOF
41152cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 41153
e6cc62c6
VS
41154#
41155# CONFIG_COMMANDS section.
41156#
41157for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41158 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41159 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41160 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41161$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41162 X"$ac_dest" : 'X\(//\)[^/]' \| \
41163 X"$ac_dest" : 'X\(//\)$' \| \
41164 X"$ac_dest" : 'X\(/\)' \| \
41165 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41166echo X"$ac_dest" |
41167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41169 /^X\(\/\/\)$/{ s//\1/; q; }
41170 /^X\(\/\).*/{ s//\1/; q; }
41171 s/.*/./; q'`
32ddf007
VS
41172 { if $as_mkdir_p; then
41173 mkdir -p "$ac_dir"
41174 else
41175 as_dir="$ac_dir"
41176 as_dirs=
41177 while test ! -d "$as_dir"; do
41178 as_dirs="$as_dir $as_dirs"
41179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41181 X"$as_dir" : 'X\(//\)[^/]' \| \
41182 X"$as_dir" : 'X\(//\)$' \| \
41183 X"$as_dir" : 'X\(/\)' \| \
41184 . : '\(.\)' 2>/dev/null ||
41185echo X"$as_dir" |
41186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41188 /^X\(\/\/\)$/{ s//\1/; q; }
41189 /^X\(\/\).*/{ s//\1/; q; }
41190 s/.*/./; q'`
41191 done
41192 test ! -n "$as_dirs" || mkdir $as_dirs
41193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41194echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41195 { (exit 1); exit 1; }; }; }
41196
e6cc62c6
VS
41197 ac_builddir=.
41198
41199if test "$ac_dir" != .; then
41200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41201 # A "../" for each directory in $ac_dir_suffix.
41202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41203else
41204 ac_dir_suffix= ac_top_builddir=
41205fi
41206
41207case $srcdir in
41208 .) # No --srcdir option. We are building in place.
41209 ac_srcdir=.
41210 if test -z "$ac_top_builddir"; then
41211 ac_top_srcdir=.
41212 else
41213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41214 fi ;;
41215 [\\/]* | ?:[\\/]* ) # Absolute path.
41216 ac_srcdir=$srcdir$ac_dir_suffix;
41217 ac_top_srcdir=$srcdir ;;
41218 *) # Relative path.
41219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41221esac
32ddf007
VS
41222
41223# Do not use `cd foo && pwd` to compute absolute paths, because
41224# the directories may not exist.
41225case `pwd` in
41226.) ac_abs_builddir="$ac_dir";;
41227*)
41228 case "$ac_dir" in
41229 .) ac_abs_builddir=`pwd`;;
41230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41232 esac;;
41233esac
41234case $ac_abs_builddir in
41235.) ac_abs_top_builddir=${ac_top_builddir}.;;
41236*)
41237 case ${ac_top_builddir}. in
41238 .) ac_abs_top_builddir=$ac_abs_builddir;;
41239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41241 esac;;
41242esac
41243case $ac_abs_builddir in
41244.) ac_abs_srcdir=$ac_srcdir;;
41245*)
41246 case $ac_srcdir in
41247 .) ac_abs_srcdir=$ac_abs_builddir;;
41248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41250 esac;;
41251esac
41252case $ac_abs_builddir in
41253.) ac_abs_top_srcdir=$ac_top_srcdir;;
41254*)
41255 case $ac_top_srcdir in
41256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41259 esac;;
41260esac
e6cc62c6
VS
41261
41262
41263 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41264echo "$as_me: executing $ac_dest commands" >&6;}
41265 case $ac_dest in
41266 default )
652d930d 41267 if test ! -h wx-config; then
991a5759 41268 chmod +x wx-config
3a922bb4
RL
41269 mv wx-config wx${TOOLCHAIN_NAME}-config
41270 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 41271 fi
665bbe97 41272
00cf1208
RR
41273 if test ! -d lib; then
41274 mkdir lib
41275 fi
41276 if test ! -d lib/wx; then
41277 mkdir lib/wx
41278 fi
41279 if test ! -d lib/wx/include; then
41280 mkdir lib/wx/include
41281 fi
3a922bb4
RL
41282 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41283 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 41284 fi
3a922bb4
RL
41285 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41286 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
41287 fi
41288 if test -f setup.h; then
3a922bb4 41289 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 41290 fi
e6cc62c6
VS
41291 ;;
41292 esac
41293done
41294_ACEOF
2224580a 41295
e6cc62c6 41296cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 41297
e6cc62c6
VS
41298{ (exit 0); exit 0; }
41299_ACEOF
41300chmod +x $CONFIG_STATUS
41301ac_clean_files=$ac_clean_files_save
41302
41303
41304# configure is writing to config.log, and then calls config.status.
41305# config.status does its own redirection, appending to config.log.
41306# Unfortunately, on DOS this fails, as config.log is still kept open
41307# by configure, so config.status won't be able to write to it; its
41308# output is simply discarded. So we exec the FD to /dev/null,
41309# effectively closing config.log, so it can be properly (re)opened and
41310# appended to by config.status. When coming back to configure, we
41311# need to make the FD available again.
41312if test "$no_create" != yes; then
41313 ac_cs_success=:
41314 ac_config_status_args=
41315 test "$silent" = yes &&
41316 ac_config_status_args="$ac_config_status_args --quiet"
41317 exec 5>/dev/null
41318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41319 exec 5>>config.log
41320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41321 # would make configure fail if this is the last instruction.
41322 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
41323fi
41324
672abd7a
VS
41325#
41326# CONFIG_SUBDIRS section.
41327#
41328if test "$no_recursion" != yes; then
41329
41330 # Remove --cache-file and --srcdir arguments so they do not pile up.
41331 ac_sub_configure_args=
41332 ac_prev=
41333 for ac_arg in $ac_configure_args; do
41334 if test -n "$ac_prev"; then
41335 ac_prev=
41336 continue
41337 fi
41338 case $ac_arg in
41339 -cache-file | --cache-file | --cache-fil | --cache-fi \
41340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41341 ac_prev=cache_file ;;
41342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41344 | --c=*)
41345 ;;
41346 --config-cache | -C)
41347 ;;
41348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41349 ac_prev=srcdir ;;
41350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41351 ;;
41352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41353 ac_prev=prefix ;;
41354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41355 ;;
41356 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41357 esac
41358 done
41359
41360 # Always prepend --prefix to ensure using the same prefix
41361 # in subdir configurations.
41362 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41363
41364 ac_popdir=`pwd`
41365 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41366
41367 # Do not complain, so a configure script can configure whichever
41368 # parts of a large source tree are present.
41369 test -d $srcdir/$ac_dir || continue
41370
41371 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41372echo "$as_me: configuring in $ac_dir" >&6;}
41373 { if $as_mkdir_p; then
41374 mkdir -p "$ac_dir"
41375 else
41376 as_dir="$ac_dir"
41377 as_dirs=
41378 while test ! -d "$as_dir"; do
41379 as_dirs="$as_dir $as_dirs"
41380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41382 X"$as_dir" : 'X\(//\)[^/]' \| \
41383 X"$as_dir" : 'X\(//\)$' \| \
41384 X"$as_dir" : 'X\(/\)' \| \
41385 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
41386echo X"$as_dir" |
41387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41389 /^X\(\/\/\)$/{ s//\1/; q; }
41390 /^X\(\/\).*/{ s//\1/; q; }
41391 s/.*/./; q'`
41392 done
41393 test ! -n "$as_dirs" || mkdir $as_dirs
41394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41395echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41396 { (exit 1); exit 1; }; }; }
41397
41398 ac_builddir=.
41399
41400if test "$ac_dir" != .; then
41401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41402 # A "../" for each directory in $ac_dir_suffix.
41403 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41404else
41405 ac_dir_suffix= ac_top_builddir=
41406fi
41407
41408case $srcdir in
41409 .) # No --srcdir option. We are building in place.
41410 ac_srcdir=.
41411 if test -z "$ac_top_builddir"; then
41412 ac_top_srcdir=.
41413 else
41414 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41415 fi ;;
41416 [\\/]* | ?:[\\/]* ) # Absolute path.
41417 ac_srcdir=$srcdir$ac_dir_suffix;
41418 ac_top_srcdir=$srcdir ;;
41419 *) # Relative path.
41420 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41421 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41422esac
32ddf007
VS
41423
41424# Do not use `cd foo && pwd` to compute absolute paths, because
41425# the directories may not exist.
41426case `pwd` in
41427.) ac_abs_builddir="$ac_dir";;
41428*)
41429 case "$ac_dir" in
41430 .) ac_abs_builddir=`pwd`;;
41431 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41432 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41433 esac;;
41434esac
41435case $ac_abs_builddir in
41436.) ac_abs_top_builddir=${ac_top_builddir}.;;
41437*)
41438 case ${ac_top_builddir}. in
41439 .) ac_abs_top_builddir=$ac_abs_builddir;;
41440 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41441 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41442 esac;;
41443esac
41444case $ac_abs_builddir in
41445.) ac_abs_srcdir=$ac_srcdir;;
41446*)
41447 case $ac_srcdir in
41448 .) ac_abs_srcdir=$ac_abs_builddir;;
41449 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41450 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41451 esac;;
41452esac
41453case $ac_abs_builddir in
41454.) ac_abs_top_srcdir=$ac_top_srcdir;;
41455*)
41456 case $ac_top_srcdir in
41457 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41458 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41459 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41460 esac;;
41461esac
672abd7a
VS
41462
41463
41464 cd $ac_dir
41465
41466 # Check for guested configure; otherwise get Cygnus style configure.
41467 if test -f $ac_srcdir/configure.gnu; then
41468 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41469 elif test -f $ac_srcdir/configure; then
41470 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41471 elif test -f $ac_srcdir/configure.in; then
41472 ac_sub_configure=$ac_configure
41473 else
41474 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41475echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41476 ac_sub_configure=
41477 fi
41478
41479 # The recursion is here.
41480 if test -n "$ac_sub_configure"; then
41481 # Make the cache file name correct relative to the subdirectory.
41482 case $cache_file in
41483 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41484 *) # Relative path.
32ddf007 41485 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
41486 esac
41487
41488 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41489echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41490 # The eval makes quoting arguments work.
41491 eval $ac_sub_configure $ac_sub_configure_args \
32ddf007
VS
41492 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41493 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
41494echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41495 { (exit 1); exit 1; }; }
41496 fi
41497
e1293dcf 41498 cd "$ac_popdir"
672abd7a
VS
41499 done
41500fi
41501
8284b0c5 41502
2b5f62a0
VZ
41503echo
41504echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41505echo ""
89fe663f 41506echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 41507echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
41508
41509echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41510echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41511echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41512
0c98a14e 41513echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
41514echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41515echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 41516
2b5f62a0
VZ
41517echo " Which libraries should wxWindows use?"
41518echo " jpeg ${wxUSE_LIBJPEG-none}"
41519echo " png ${wxUSE_LIBPNG-none}"
41520echo " regex ${wxUSE_REGEX}"
41521echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
41522if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41523echo " xpm ${wxUSE_LIBXPM-none}"
41524fi
2b5f62a0 41525echo " zlib ${wxUSE_ZLIB}"
fd3d7534 41526echo " odbc ${wxUSE_ODBC}"
5f0b6dff 41527echo " expat ${wxUSE_EXPAT}"
3527f29c 41528echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 41529echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
41530
41531echo ""
41532