]> git.saurik.com Git - wxWidgets.git/blame - configure
don't build the GUI version of tex2rtf wif --disable-gui
[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.
e46d2a18 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
57e7d4ac 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
e46d2a18 796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
e6cc62c6
VS
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
e46d2a18 898 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
901 --enable-apple_ieee use the Apple IEEE codec
902 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
903 --enable-cmdline use wxCmdLineParser class
904 --enable-datetime use wxDateTime class
e6cc62c6 905 --enable-dialupman use dialup network classes
e6cc62c6
VS
906 --enable-dynlib use wxLibrary class for DLL loading
907 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
908 --enable-exceptions build exception-safe library
909 --enable-ffile use wxFFile class
910 --enable-file use wxFile class
911 --enable-filesystem use virtual file systems classes
912 --enable-fontmap use font encodings conversion classes
913 --enable-fs_inet use virtual HTTP/FTP filesystems
914 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
915 --enable-geometry use geometry class
916 --enable-log use logging system
e46d2a18
VS
917 --enable-longlong use wxLongLong class
918 --enable-mimetype use wxMimeTypesManager
919 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
920 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 921 --enable-streams use wxStream etc classes
e46d2a18
VS
922 --enable-std_iostreams use standard C++ stream classes
923 --enable-stopwatch use wxStopWatch class
924 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
925 --enable-textbuf use wxTextBuffer class
926 --enable-textfile use wxTextFile class
e46d2a18 927 --enable-timer use wxTimer class
e6cc62c6 928 --enable-unicode compile wxString with Unicode support
e46d2a18 929 --enable-wave use wxWave class
e6cc62c6 930 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 931 --enable-zipstream use wxZipInputStream
7015ef3a 932 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
0e012a93 970 --enable-listbook use wxListbook class
e6cc62c6
VS
971 --enable-listbox use wxListBox class
972 --enable-listctrl use wxListCtrl class
973 --enable-notebook use wxNotebook class
974 --enable-radiobox use wxRadioBox class
975 --enable-radiobtn use wxRadioButton class
976 --enable-sash use wxSashWindow class
977 --enable-scrollbar use wxScrollBar class and scrollable windows
978 --enable-slider use wxSlider class
979 --enable-spinbtn use wxSpinButton class
980 --enable-spinctrl use wxSpinCtrl class
981 --enable-splitter use wxSplitterWindow class
982 --enable-statbmp use wxStaticBitmap class
983 --enable-statbox use wxStaticBox class
984 --enable-statline use wxStaticLine class
985 --enable-stattext use wxStaticText class
986 --enable-statusbar use wxStatusBar class
987 --enable-tabdialog use wxTabControl class
988 --enable-textctrl use wxTextCtrl class
989 --enable-togglebtn use wxToggleButton class
990 --enable-toolbar use wxToolBar class
991 --enable-tbarnative use native wxToolBar class
992 --enable-tbarsmpl use wxToolBarSimple class
993 --enable-treectrl use wxTreeCtrl class
994 --enable-tipwindow use wxTipWindow class
995 --enable-popupwin use wxPopUpWindow class
996 --enable-commondlg use all common dialogs
997 --enable-choicedlg use wxChoiceDialog
998 --enable-coldlg use wxColourDialog
999 --enable-filedlg use wxFileDialog
1000 --enable-finddlg use wxFindReplaceDialog
1001 --enable-fontdlg use wxFontDialog
1002 --enable-dirdlg use wxDirDialog
1003 --enable-msgdlg use wxMessageDialog
1004 --enable-numberdlg use wxNumberEntryDialog
1005 --enable-splash use wxSplashScreen
1006 --enable-textdlg use wxTextDialog
1007 --enable-tipdlg use startup tips
1008 --enable-progressdlg use wxProgressDialog
1009 --enable-wizarddlg use wxWizard
1010 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1011 --enable-miniframe use wxMiniFrame class
1012 --enable-tooltips use wxToolTip class
1013 --enable-splines use spline drawing code
1014 --enable-validators use wxValidator and derived classes
1015 --enable-busyinfo use wxBusyInfo
1016 --enable-joystick use wxJoystick (Linux only)
1017 --enable-metafiles use wxMetaFile (Windows only)
1018 --enable-dragimage use wxDragImage
1019 --enable-accessibility enable accessibility support
1020 --enable-palette use wxPalette class
1021 --enable-image use wxImage class
1022 --enable-gif use gif images (GIF file format)
1023 --enable-pcx use pcx images (PCX file format)
1024 --enable-iff use iff images (IFF file format)
1025 --enable-pnm use pnm images (PNM file format)
1026 --enable-xpm use xpm images (XPM file format)
1027 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1028 --enable-official_build official build of wxWindows (win32 DLL only)
1029 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1030 --disable-largefile omit support for large files
1031 --disable-gtktest do not try to compile and run a test GTK+ program
1032 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1033 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1034
1035Optional Packages:
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gtk use GTK+
1039 --with-motif use Motif/Lesstif
1040 --with-mac use Mac OS X
1041 --with-cocoa use Cocoa
1042 --with-wine use Wine
1043 --with-msw use MS-Windows
1044 --with-pm use OS/2 Presentation Manager
1045 --with-mgl use SciTech MGL
1046 --with-microwin use MicroWindows
1047 --with-x11 use X11
1048 --with-libpng use libpng (PNG image format)
1049 --with-libjpeg use libjpeg (JPEG file format)
1050 --with-libtiff use libtiff (TIFF file format)
1051 --with-opengl use OpenGL (or Mesa)
1052 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1053 --with-regex enable support for wxRegEx class
1054 --with-zlib use zlib for LZW compression
1055 --with-odbc use the IODBC and wxODBC classes
672abd7a 1056 --with-expat enable XML support using expat parser
e6cc62c6
VS
1057 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1058 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1059 --with-x use the X Window System
1060 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1061
1062Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1069 CPP C preprocessor
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <wx-dev@lists.wxwindows.org>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
1111# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1112# absolute.
1113ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1114ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1115ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1116ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1117
1118 cd $ac_dir
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1121 echo
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1124 echo
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1128 echo
1129 $ac_configure --help
1130 else
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 fi
1133 cd $ac_popdir
1134 done
1135fi
8284b0c5 1136
e6cc62c6
VS
1137test -n "$ac_init_help" && exit 0
1138if $ac_init_version; then
1139 cat <<\_ACEOF
e46d2a18 1140wxWindows configure 2.5.1
e6cc62c6 1141generated by GNU Autoconf 2.57
10f2d63a 1142
e6cc62c6
VS
1143Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1144Free Software Foundation, Inc.
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
1148 exit 0
7c66a493 1149fi
e6cc62c6
VS
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
1154
e46d2a18 1155It was created by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
1156generated by GNU Autoconf 2.57. Invocation command line was
1157
1158 $ $0 $@
1159
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175
1176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192done
1193
1194} >&5
1195
1196cat >&5 <<_ACEOF
1197
1198
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
1202
1203_ACEOF
1204
1205
1206# Keep a trace of the command line.
1207# Strip out --no-create and --no-recursion so they do not pile up.
1208# Strip out --silent because we don't want to record it for future runs.
1209# Also quote any args containing shell meta-characters.
1210# Make two passes to allow for proper duplicate-argument suppression.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
1214ac_sep=
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218 for ac_arg
1219 do
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 2)
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1246 fi
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1250 ;;
1251 esac
1252 done
1253done
1254$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257# When interrupted or exit'd, cleanup temporary files, and complete
1258# config.log. We remove comments because anyway the quotes in there
1259# would cause problems or look ugly.
1260# WARNING: Be sure not to use single quotes in there, as some shells,
1261# such as our DU 5.0 friend, will then `close' the trap.
1262trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1264 {
1265 echo
1266
1267 cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1274{
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 ;;
1282 *)
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ;;
1286 esac;
1287}
1288 echo
1289
1290 cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305## ------------- ##
1306## Output files. ##
1307## ------------- ##
1308_ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1311 do
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1316 fi
1317
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320## ----------- ##
1321## confdefs.h. ##
1322## ----------- ##
1323_ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1327 fi
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core core.* *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1335 ' 0
1336for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
1374# Prefer explicitly selected file to automatically selected ones.
1375if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380 fi
1381fi
1382for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1388 fi
1389done
1390
1391if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1401 fi
1402else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
1411for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432echo "$as_me: former value: $ac_old_val" >&2;}
1433 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434echo "$as_me: current value: $ac_new_val" >&2;}
1435 ac_cache_corrupted=:
1436 fi;;
1437 esac
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1440 case $ac_new_val in
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1444 esac
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 esac
1449 fi
1450done
1451if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1457fi
1458
1459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
698dcdb6 1481
8284b0c5 1482
7c66a493 1483
a0b9e27f
MB
1484
1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
a0b9e27f 1491
e6cc62c6
VS
1492
1493
1494ac_aux_dir=
1495for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509done
1510if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
7c66a493
VZ
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
8284b0c5
MB
1601
1602
a0b9e27f 1603
10f2d63a 1604WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1605WX_MINOR_VERSION_NUMBER=5
e46d2a18 1606WX_RELEASE_NUMBER=1
10f2d63a 1607
10f2d63a 1608WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1609WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1610
978f1259
RL
1611WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1612
7015ef3a 1613WX_CURRENT=1
6426998c
RL
1614WX_REVISION=0
1615WX_AGE=0
1616
8284b0c5
MB
1617
1618
10f2d63a 1619USE_UNIX=1
73d617c9 1620USE_OS2=0
10f2d63a 1621USE_WIN32=0
f9bc1684 1622USE_DOS=0
b12915c1 1623USE_BEOS=0
1216f52d 1624USE_MAC=0
b12915c1 1625
10f2d63a 1626USE_AIX=
fe0895cf
VS
1627USE_BSD= USE_DARWIN= USE_FREEBSD=
1628USE_GNU= USE_HPUX=
89e3b3e4 1629USE_LINUX=
f6bcfd97 1630USE_NETBSD=
89e3b3e4 1631USE_OPENBSD=
fe0895cf
VS
1632USE_OSF= USE_SGI=
1633USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1634USE_ULTRIX=
89e3b3e4
VZ
1635USE_UNIXWARE=
1636
1637USE_ALPHA=
10f2d63a 1638
ab9b9eab
VZ
1639NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1640
ac0c4cc3 1641ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1642
ac0c4cc3 1643DEFAULT_wxUSE_COCOA=0
10f2d63a 1644DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1645DEFAULT_wxUSE_MAC=0
1646DEFAULT_wxUSE_MGL=0
1725144d 1647DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1648DEFAULT_wxUSE_MOTIF=0
1649DEFAULT_wxUSE_MSW=0
e07802fc 1650DEFAULT_wxUSE_PM=0
f79bd02d 1651DEFAULT_wxUSE_X11=0
10f2d63a 1652
ac0c4cc3 1653DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1654DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1655DEFAULT_DEFAULT_wxUSE_MAC=0
1656DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1657DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1658DEFAULT_DEFAULT_wxUSE_MOTIF=0
1659DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1660DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1661DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1662
d6a55c4b 1663PROGRAM_EXT=
3a922bb4 1664SO_SUFFIX=so
fe0895cf 1665SAMPLES_RPATH_FLAG=
0f1bc9c2 1666SAMPLES_RPATH_POSTLINK=
d6a55c4b 1667
10f2d63a
VZ
1668case "${host}" in
1669 *-hp-hpux* )
1670 USE_HPUX=1
1671 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1672 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1673 SO_SUFFIX=sl
e6cc62c6 1674 cat >>confdefs.h <<\_ACEOF
10f2d63a 1675#define __HPUX__ 1
e6cc62c6 1676_ACEOF
10f2d63a
VZ
1677
1678 ;;
1679 *-*-linux* )
1680 USE_LINUX=1
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __LINUX__ 1
e6cc62c6 1683_ACEOF
10f2d63a
VZ
1684
1685 TMP=`uname -m`
1686 if test "x$TMP" = "xalpha"; then
1687 USE_ALPHA=1
e6cc62c6 1688 cat >>confdefs.h <<\_ACEOF
10f2d63a 1689#define __ALPHA__ 1
e6cc62c6 1690_ACEOF
fe0895cf
VS
1691
1692 fi
1693 DEFAULT_DEFAULT_wxUSE_GTK=1
1694 ;;
1695 *-*-gnu* )
1696 USE_GNU=1
e6cc62c6 1697 cat >>confdefs.h <<\_ACEOF
fe0895cf 1698#define __GNU__ 1
e6cc62c6 1699_ACEOF
fe0895cf
VS
1700
1701 TMP=`uname -m`
1702 if test "x$TMP" = "xalpha"; then
1703 USE_ALPHA=1
e6cc62c6 1704 cat >>confdefs.h <<\_ACEOF
fe0895cf 1705#define __ALPHA__ 1
e6cc62c6 1706_ACEOF
10f2d63a
VZ
1707
1708 fi
1709 DEFAULT_DEFAULT_wxUSE_GTK=1
1710 ;;
1711 *-*-irix5* | *-*-irix6* )
1712 USE_SGI=1
1713 USE_SVR4=1
e6cc62c6 1714 cat >>confdefs.h <<\_ACEOF
10f2d63a 1715#define __SGI__ 1
e6cc62c6 1716_ACEOF
10f2d63a 1717
e6cc62c6 1718 cat >>confdefs.h <<\_ACEOF
10f2d63a 1719#define __SVR4__ 1
e6cc62c6 1720_ACEOF
10f2d63a
VZ
1721
1722 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1723 ;;
1724 *-*-solaris2* )
1725 USE_SUN=1
1726 USE_SOLARIS=1
1727 USE_SVR4=1
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SUN__ 1
e6cc62c6 1730_ACEOF
10f2d63a 1731
e6cc62c6 1732 cat >>confdefs.h <<\_ACEOF
10f2d63a 1733#define __SOLARIS__ 1
e6cc62c6 1734_ACEOF
10f2d63a 1735
e6cc62c6 1736 cat >>confdefs.h <<\_ACEOF
10f2d63a 1737#define __SVR4__ 1
e6cc62c6 1738_ACEOF
10f2d63a
VZ
1739
1740 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1741 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1742 ;;
1743 *-*-sunos4* )
1744 USE_SUN=1
1745 USE_SUNOS=1
1746 USE_BSD=1
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __SUN__ 1
e6cc62c6 1749_ACEOF
10f2d63a 1750
e6cc62c6 1751 cat >>confdefs.h <<\_ACEOF
10f2d63a 1752#define __SUNOS__ 1
e6cc62c6 1753_ACEOF
10f2d63a 1754
e6cc62c6 1755 cat >>confdefs.h <<\_ACEOF
10f2d63a 1756#define __BSD__ 1
e6cc62c6 1757_ACEOF
10f2d63a
VZ
1758
1759 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1760 ;;
f6bcfd97 1761 *-*-freebsd*)
10f2d63a
VZ
1762 USE_BSD=1
1763 USE_FREEBSD=1
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __FREEBSD__ 1
e6cc62c6 1766_ACEOF
10f2d63a 1767
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __BSD__ 1
e6cc62c6 1770_ACEOF
95c8801c
VS
1771
1772 DEFAULT_DEFAULT_wxUSE_GTK=1
1773 ;;
1774 *-*-openbsd*)
1775 USE_BSD=1
1776 USE_OPENBSD=1
e6cc62c6 1777 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1778#define __OPENBSD__ 1
e6cc62c6 1779_ACEOF
95c8801c 1780
e6cc62c6 1781 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1782#define __BSD__ 1
e6cc62c6 1783_ACEOF
f6bcfd97
BP
1784
1785 DEFAULT_DEFAULT_wxUSE_GTK=1
1786 ;;
1787 *-*-netbsd*)
1788 USE_BSD=1
1789 USE_NETBSD=1
e6cc62c6 1790 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1791#define __NETBSD__ 1
e6cc62c6 1792_ACEOF
f6bcfd97 1793
e6cc62c6 1794 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1795#define __BSD__ 1
e6cc62c6 1796_ACEOF
10f2d63a
VZ
1797
1798 DEFAULT_DEFAULT_wxUSE_GTK=1
1799 ;;
1800 *-*-osf* )
1801 USE_ALPHA=1
1802 USE_OSF=1
e6cc62c6 1803 cat >>confdefs.h <<\_ACEOF
10f2d63a 1804#define __ALPHA__ 1
e6cc62c6 1805_ACEOF
10f2d63a 1806
e6cc62c6 1807 cat >>confdefs.h <<\_ACEOF
10f2d63a 1808#define __OSF__ 1
e6cc62c6 1809_ACEOF
10f2d63a
VZ
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1812 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1813 ;;
1814 *-*-dgux5* )
1815 USE_ALPHA=1
1816 USE_SVR4=1
e6cc62c6 1817 cat >>confdefs.h <<\_ACEOF
10f2d63a 1818#define __ALPHA__ 1
e6cc62c6 1819_ACEOF
10f2d63a 1820
e6cc62c6 1821 cat >>confdefs.h <<\_ACEOF
10f2d63a 1822#define __SVR4__ 1
e6cc62c6 1823_ACEOF
10f2d63a
VZ
1824
1825 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1826 ;;
1827 *-*-sysv5* )
1828 USE_SYSV=1
1829 USE_SVR4=1
e6cc62c6 1830 cat >>confdefs.h <<\_ACEOF
10f2d63a 1831#define __SYSV__ 1
e6cc62c6 1832_ACEOF
10f2d63a 1833
e6cc62c6 1834 cat >>confdefs.h <<\_ACEOF
10f2d63a 1835#define __SVR4__ 1
e6cc62c6 1836_ACEOF
10f2d63a
VZ
1837
1838 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839 ;;
1840 *-*-aix* )
1841 USE_AIX=1
1842 USE_SYSV=1
1843 USE_SVR4=1
2b5f62a0 1844 SO_SUFFIX=a
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __AIX__ 1
e6cc62c6 1847_ACEOF
10f2d63a 1848
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __SYSV__ 1
e6cc62c6 1851_ACEOF
10f2d63a 1852
e6cc62c6 1853 cat >>confdefs.h <<\_ACEOF
10f2d63a 1854#define __SVR4__ 1
e6cc62c6 1855_ACEOF
10f2d63a
VZ
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 ;;
1859
89e3b3e4
VZ
1860 *-*-*UnixWare*)
1861 USE_SYSV=1
1862 USE_SVR4=1
1863 USE_UNIXWARE=1
e6cc62c6 1864 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1865#define __UNIXWARE__ 1
e6cc62c6 1866_ACEOF
89e3b3e4
VZ
1867
1868 ;;
1869
1c8183e2 1870 *-*-cygwin* | *-*-mingw32* )
17234b26 1871 SO_SUFFIX=dll
cf27ef00 1872 PROGRAM_EXT=".exe"
7b7a7637 1873 RESCOMP=windres
10f2d63a
VZ
1874 DEFAULT_DEFAULT_wxUSE_MSW=1
1875 ;;
1876
f9bc1684
VS
1877 *-pc-msdosdjgpp )
1878 USE_UNIX=0
1879 USE_DOS=1
e6cc62c6 1880 cat >>confdefs.h <<\_ACEOF
f9bc1684 1881#define __DOS__ 1
e6cc62c6 1882_ACEOF
f9bc1684
VS
1883
1884 PROGRAM_EXT=".exe"
1885 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1886 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1887 ;;
1888
6fa882bd 1889 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1890 cat >>confdefs.h <<\_ACEOF
10f2d63a 1891#define __EMX__ 1
e6cc62c6 1892_ACEOF
10f2d63a 1893
73d617c9 1894 USE_OS2=1
7015ef3a
VZ
1895 cat >>confdefs.h <<\_ACEOF
1896#define __OS2__ 1
1897_ACEOF
1898
cf27ef00 1899 PROGRAM_EXT=".exe"
e07802fc 1900 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1901 CXX=gcc
73d617c9 1902 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1903 ac_executable_extensions=".exe"
1904 export ac_executable_extensions
1905 ac_save_IFS="$IFS"
e46d2a18 1906 IFS='\\'
d5fc095c
VS
1907 ac_TEMP_PATH=
1908 for ac_dir in $PATH; do
1909 IFS=$ac_save_IFS
1910 if test -z "$ac_TEMP_PATH"; then
1911 ac_TEMP_PATH="$ac_dir"
1912 else
1913 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1914 fi
1915 done
1916 export PATH="$ac_TEMP_PATH"
1917 unset ac_TEMP_PATH
10f2d63a
VZ
1918 ;;
1919
d08b457b
GD
1920 powerpc-*-darwin* )
1921 USE_BSD=1
f11bdd03 1922 USE_DARWIN=1
3a922bb4 1923 SO_SUFFIX=dylib
e6cc62c6 1924 cat >>confdefs.h <<\_ACEOF
f11bdd03 1925#define __BSD__ 1
e6cc62c6 1926_ACEOF
b4085ce6 1927
e6cc62c6 1928 cat >>confdefs.h <<\_ACEOF
f11bdd03 1929#define __DARWIN__ 1
e6cc62c6 1930_ACEOF
d08b457b 1931
e6cc62c6 1932 cat >>confdefs.h <<\_ACEOF
d08b457b 1933#define __POWERPC__ 1
e6cc62c6 1934_ACEOF
82d43113 1935
e6cc62c6 1936 cat >>confdefs.h <<\_ACEOF
82d43113 1937#define TARGET_CARBON 1
e6cc62c6 1938_ACEOF
b4085ce6
GD
1939
1940 DEFAULT_DEFAULT_wxUSE_MAC=1
1941 ;;
1942
b12915c1
VZ
1943 *-*-beos* )
1944 USE_BEOS=1
e6cc62c6 1945 cat >>confdefs.h <<\_ACEOF
b12915c1 1946#define __BEOS__ 1
e6cc62c6 1947_ACEOF
b12915c1
VZ
1948
1949 ;;
1950
10f2d63a 1951 *)
e6cc62c6
VS
1952 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1953echo "$as_me: error: unknown system type ${host}." >&2;}
1954 { (exit 1); exit 1; }; }
10f2d63a
VZ
1955esac
1956
8284b0c5
MB
1957
1958
1959
1960 wx_arg_cache_file="configarg.cache"
1961 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1962 rm -f ${wx_arg_cache_file}.tmp
1963 touch ${wx_arg_cache_file}.tmp
1964 touch ${wx_arg_cache_file}
e6cc62c6 1965
10f2d63a
VZ
1966
1967DEBUG_CONFIGURE=0
1968if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1969 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1970 DEFAULT_wxUSE_STL=no
1e6feb95 1971
d8356fa3
VZ
1972 DEFAULT_wxUSE_NANOX=no
1973
10f2d63a
VZ
1974 DEFAULT_wxUSE_THREADS=yes
1975
1976 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1977 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1978 DEFAULT_wxUSE_PROFILE=no
1979 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1980 DEFAULT_wxUSE_NO_RTTI=no
1981 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1982 DEFAULT_wxUSE_PERMISSIVE=no
1983 DEFAULT_wxUSE_DEBUG_FLAG=yes
1984 DEFAULT_wxUSE_DEBUG_INFO=yes
1985 DEFAULT_wxUSE_DEBUG_GDB=yes
1986 DEFAULT_wxUSE_MEM_TRACING=no
1987 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1988 DEFAULT_wxUSE_DMALLOC=no
1989 DEFAULT_wxUSE_APPLE_IEEE=no
1990
e46d2a18 1991 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1992 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1993 DEFAULT_wxUSE_LOGWINDOW=no
1994 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1995 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1996
1997 DEFAULT_wxUSE_GUI=yes
1e6feb95 1998 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1999
3e44f09d 2000 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2001 DEFAULT_wxUSE_XML=no
2002 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2003 DEFAULT_wxUSE_ZLIB=no
2004 DEFAULT_wxUSE_LIBPNG=no
2005 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2006 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 2007 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2008 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2009
eb4efbdc 2010 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2011 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2012 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2013 DEFAULT_wxUSE_CMDLINE_PARSER=no
2014 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2015 DEFAULT_wxUSE_TIMER=no
2016 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2017 DEFAULT_wxUSE_FILE=no
1e6feb95 2018 DEFAULT_wxUSE_FFILE=no
a3a584a7 2019 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2020 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2021 DEFAULT_wxUSE_WAVE=no
2022 DEFAULT_wxUSE_INTL=no
2023 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2024 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2025 DEFAULT_wxUSE_STREAMS=no
2026 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2027 DEFAULT_wxUSE_OLE=no
2028 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2029 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2030 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2031 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2032 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2033 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2034 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2035
2036 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2037 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2038 DEFAULT_wxUSE_POSTSCRIPT=no
2039
10f2d63a
VZ
2040 DEFAULT_wxUSE_CLIPBOARD=no
2041 DEFAULT_wxUSE_TOOLTIPS=no
2042 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2043 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2044 DEFAULT_wxUSE_SPLINES=no
2045
2046 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2047 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2048 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2049
10f2d63a
VZ
2050 DEFAULT_wxUSE_RESOURCES=no
2051 DEFAULT_wxUSE_CONSTRAINTS=no
2052 DEFAULT_wxUSE_IPC=no
2053 DEFAULT_wxUSE_HELP=no
29fd3c0c 2054 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2055 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2056 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2057 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2058 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2059 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2060 DEFAULT_wxUSE_PROTOCOL=no
2061 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2062 DEFAULT_wxUSE_PROTOCOL_FTP=no
2063 DEFAULT_wxUSE_PROTOCOL_FILE=no
2064 DEFAULT_wxUSE_URL=no
3bd8fb5f 2065
10f2d63a 2066 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2067 DEFAULT_wxUSE_CHOICEDLG=no
2068 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2069 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2070 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2071 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2072 DEFAULT_wxUSE_FONTDLG=no
2073 DEFAULT_wxUSE_MSGDLG=no
2074 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2075 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2076 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_STARTUP_TIPS=no
2078 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2079 DEFAULT_wxUSE_WIZARDDLG=no
2080
1e6feb95 2081 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2082 DEFAULT_wxUSE_MINIFRAME=no
2083 DEFAULT_wxUSE_HTML=no
24528b0c 2084 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2085 DEFAULT_wxUSE_FS_INET=no
2086 DEFAULT_wxUSE_FS_ZIP=no
2087 DEFAULT_wxUSE_BUSYINFO=no
2088 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2089 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2090 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2091
2092 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2093 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2094 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2095 DEFAULT_wxUSE_CALCTRL=no
2096 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2097 DEFAULT_wxUSE_CHECKBOX=no
2098 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2099 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2100 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2101 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2102 DEFAULT_wxUSE_GAUGE=no
2103 DEFAULT_wxUSE_GRID=no
10f2d63a 2104 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2105 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2106 DEFAULT_wxUSE_LISTBOX=no
2107 DEFAULT_wxUSE_LISTCTRL=no
2108 DEFAULT_wxUSE_NOTEBOOK=no
2109 DEFAULT_wxUSE_RADIOBOX=no
2110 DEFAULT_wxUSE_RADIOBTN=no
2111 DEFAULT_wxUSE_SASH=no
2112 DEFAULT_wxUSE_SCROLLBAR=no
2113 DEFAULT_wxUSE_SLIDER=no
2114 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2115 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2116 DEFAULT_wxUSE_SPLITTER=no
2117 DEFAULT_wxUSE_STATBMP=no
2118 DEFAULT_wxUSE_STATBOX=no
2119 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2120 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2121 DEFAULT_wxUSE_STATUSBAR=yes
2122 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2123 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2124 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2125 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2126 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2127 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2128 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2129 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2130 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2131
2132 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2133 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2134 DEFAULT_wxUSE_WCSRTOMBS=no
2135
edae8572 2136 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2137 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2138 DEFAULT_wxUSE_GIF=no
2139 DEFAULT_wxUSE_PCX=no
2140 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2141 DEFAULT_wxUSE_IFF=no
0046ff7c 2142 DEFAULT_wxUSE_XPM=no
658974ae 2143 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2144 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2145
e9e0dc15 2146 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2147 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2148else
1e6feb95 2149 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2150 DEFAULT_wxUSE_STL=no
1e6feb95 2151
d8356fa3
VZ
2152 DEFAULT_wxUSE_NANOX=no
2153
10f2d63a
VZ
2154 DEFAULT_wxUSE_THREADS=yes
2155
2156 DEFAULT_wxUSE_SHARED=yes
2157 DEFAULT_wxUSE_OPTIMISE=yes
2158 DEFAULT_wxUSE_PROFILE=no
2159 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2160 DEFAULT_wxUSE_NO_RTTI=no
2161 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2162 DEFAULT_wxUSE_PERMISSIVE=no
2163 DEFAULT_wxUSE_DEBUG_FLAG=no
2164 DEFAULT_wxUSE_DEBUG_INFO=no
2165 DEFAULT_wxUSE_DEBUG_GDB=no
2166 DEFAULT_wxUSE_MEM_TRACING=no
2167 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2168 DEFAULT_wxUSE_DMALLOC=no
2169 DEFAULT_wxUSE_APPLE_IEEE=yes
2170
e46d2a18 2171 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2172 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2173 DEFAULT_wxUSE_LOGWINDOW=yes
2174 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2175 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2176
2177 DEFAULT_wxUSE_GUI=yes
2178
831b3152 2179 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2180 DEFAULT_wxUSE_XML=yes
2181 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2182 DEFAULT_wxUSE_ZLIB=yes
2183 DEFAULT_wxUSE_LIBPNG=yes
2184 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2185 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2186 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2187 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2188
eb4efbdc 2189 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2190 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2191 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2192 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2193 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2194 DEFAULT_wxUSE_TIMER=yes
2195 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2196 DEFAULT_wxUSE_FILE=yes
1e6feb95 2197 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2198 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2199 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2200 DEFAULT_wxUSE_WAVE=no
2201 DEFAULT_wxUSE_INTL=yes
2202 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2203 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2204 DEFAULT_wxUSE_STREAMS=yes
2205 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2206 DEFAULT_wxUSE_OLE=yes
2207 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2208 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2209 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2210 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2211 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2212 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2213 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2214
2215 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2216 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2217 DEFAULT_wxUSE_POSTSCRIPT=yes
2218
10f2d63a
VZ
2219 DEFAULT_wxUSE_CLIPBOARD=yes
2220 DEFAULT_wxUSE_TOOLTIPS=yes
2221 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2222 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2223 DEFAULT_wxUSE_SPLINES=yes
2224
2225 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2226 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2227 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2228
2b5f62a0 2229 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2230 DEFAULT_wxUSE_CONSTRAINTS=yes
2231 DEFAULT_wxUSE_IPC=yes
2232 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2233 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2234 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2235 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2236 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2237 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2238 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2239 DEFAULT_wxUSE_PROTOCOL=yes
2240 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2241 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2242 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2243 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2244
2245 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2246 DEFAULT_wxUSE_CHOICEDLG=yes
2247 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2248 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2249 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2250 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2251 DEFAULT_wxUSE_FONTDLG=yes
2252 DEFAULT_wxUSE_MSGDLG=yes
2253 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2254 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2255 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2256 DEFAULT_wxUSE_STARTUP_TIPS=yes
2257 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2258 DEFAULT_wxUSE_WIZARDDLG=yes
2259
1e6feb95 2260 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2261 DEFAULT_wxUSE_MINIFRAME=yes
2262 DEFAULT_wxUSE_HTML=yes
24528b0c 2263 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2264 DEFAULT_wxUSE_FS_INET=yes
2265 DEFAULT_wxUSE_FS_ZIP=yes
2266 DEFAULT_wxUSE_BUSYINFO=yes
2267 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2268 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_VALIDATORS=yes
2270
2271 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2272 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2273 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2274 DEFAULT_wxUSE_CALCTRL=yes
2275 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2276 DEFAULT_wxUSE_CHECKBOX=yes
2277 DEFAULT_wxUSE_CHECKLST=yes
2278 DEFAULT_wxUSE_CHOICE=yes
2279 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2280 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2281 DEFAULT_wxUSE_GAUGE=yes
2282 DEFAULT_wxUSE_GRID=yes
10f2d63a 2283 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2284 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2285 DEFAULT_wxUSE_LISTBOX=yes
2286 DEFAULT_wxUSE_LISTCTRL=yes
2287 DEFAULT_wxUSE_NOTEBOOK=yes
2288 DEFAULT_wxUSE_RADIOBOX=yes
2289 DEFAULT_wxUSE_RADIOBTN=yes
2290 DEFAULT_wxUSE_SASH=yes
2291 DEFAULT_wxUSE_SCROLLBAR=yes
2292 DEFAULT_wxUSE_SLIDER=yes
2293 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2294 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2295 DEFAULT_wxUSE_SPLITTER=yes
2296 DEFAULT_wxUSE_STATBMP=yes
2297 DEFAULT_wxUSE_STATBOX=yes
2298 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2299 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2300 DEFAULT_wxUSE_STATUSBAR=yes
2301 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2302 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2303 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2304 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2305 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2306 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2307 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2308 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2309 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2310
2311 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2312 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2313 DEFAULT_wxUSE_WCSRTOMBS=no
2314
edae8572 2315 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2316 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2317 DEFAULT_wxUSE_GIF=yes
2318 DEFAULT_wxUSE_PCX=yes
cc0e8480 2319 DEFAULT_wxUSE_IFF=no
10f2d63a 2320 DEFAULT_wxUSE_PNM=yes
0046ff7c 2321 DEFAULT_wxUSE_XPM=yes
658974ae 2322 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2323 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2324
e9e0dc15 2325 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2326 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2327fi
2328
8284b0c5
MB
2329
2330
10f2d63a 2331for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2332 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2333 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2334 has_toolkit_in_cache=1
2335 eval "DEFAULT_$LINE"
2336 eval "CACHE_$toolkit=1"
2337 fi
2338done
2339
8284b0c5
MB
2340
2341
5005acfe 2342 enablestring=
e6cc62c6
VS
2343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2344echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2345 no_cache=0
2346 # Check whether --enable-gui or --disable-gui was given.
2347if test "${enable_gui+set}" = set; then
2348 enableval="$enable_gui"
e6cc62c6 2349
10f2d63a
VZ
2350 if test "$enableval" = yes; then
2351 ac_cv_use_gui='wxUSE_GUI=yes'
2352 else
2353 ac_cv_use_gui='wxUSE_GUI=no'
2354 fi
e6cc62c6 2355
10f2d63a 2356else
e6cc62c6 2357
10f2d63a
VZ
2358 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2359 if test "x$LINE" != x ; then
2360 eval "DEFAULT_$LINE"
2361 else
2362 no_cache=1
2363 fi
2364
2365 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2366
e6cc62c6 2367fi;
10f2d63a
VZ
2368
2369 eval "$ac_cv_use_gui"
2370 if test "$no_cache" != 1; then
2371 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2372 fi
2373
2374 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2375 echo "$as_me:$LINENO: result: yes" >&5
2376echo "${ECHO_T}yes" >&6
10f2d63a 2377 else
e6cc62c6
VS
2378 echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6
10f2d63a 2380 fi
e6cc62c6 2381
10f2d63a 2382
9747f85d
VS
2383 enablestring=
2384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2385echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2386 no_cache=0
2387 # Check whether --enable-monolithic or --disable-monolithic was given.
2388if test "${enable_monolithic+set}" = set; then
2389 enableval="$enable_monolithic"
2390
2391 if test "$enableval" = yes; then
2392 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2393 else
2394 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2395 fi
2396
2397else
2398
2399 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2400 if test "x$LINE" != x ; then
2401 eval "DEFAULT_$LINE"
2402 else
2403 no_cache=1
2404 fi
2405
2406 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2407
2408fi;
2409
2410 eval "$ac_cv_use_monolithic"
2411 if test "$no_cache" != 1; then
2412 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2413 fi
2414
2415 if test "$wxUSE_MONOLITHIC" = yes; then
2416 echo "$as_me:$LINENO: result: yes" >&5
2417echo "${ECHO_T}yes" >&6
2418 else
2419 echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6
2421 fi
2422
2423
b12915c1 2424if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2425
8284b0c5 2426
5005acfe 2427 enablestring=
e6cc62c6
VS
2428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2429echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2430 no_cache=0
2431 # Check whether --enable-universal or --disable-universal was given.
2432if test "${enable_universal+set}" = set; then
2433 enableval="$enable_universal"
e6cc62c6 2434
1e6feb95
VZ
2435 if test "$enableval" = yes; then
2436 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2437 else
2438 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2439 fi
e6cc62c6 2440
1e6feb95 2441else
e6cc62c6 2442
1e6feb95
VZ
2443 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2451
e6cc62c6 2452fi;
1e6feb95
VZ
2453
2454 eval "$ac_cv_use_universal"
2455 if test "$no_cache" != 1; then
2456 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2457 fi
2458
2459 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
1e6feb95 2462 else
e6cc62c6
VS
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
1e6feb95 2465 fi
e6cc62c6
VS
2466
2467
10f2d63a
VZ
2468# Check whether --with-gtk or --without-gtk was given.
2469if test "${with_gtk+set}" = set; then
2470 withval="$with_gtk"
2471 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
10f2d63a
VZ
2473
2474# Check whether --with-motif or --without-motif was given.
2475if test "${with_motif+set}" = set; then
2476 withval="$with_motif"
2477 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
10f2d63a 2479
b4085ce6
GD
2480# Check whether --with-mac or --without-mac was given.
2481if test "${with_mac+set}" = set; then
2482 withval="$with_mac"
2483 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
b4085ce6 2485
ac0c4cc3
DE
2486# Check whether --with-cocoa or --without-cocoa was given.
2487if test "${with_cocoa+set}" = set; then
2488 withval="$with_cocoa"
2489 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2490fi;
ac0c4cc3 2491
10f2d63a
VZ
2492# Check whether --with-wine or --without-wine was given.
2493if test "${with_wine+set}" = set; then
2494 withval="$with_wine"
89e6bf6d 2495 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2496fi;
10f2d63a 2497
77e13408
RL
2498# Check whether --with-msw or --without-msw was given.
2499if test "${with_msw+set}" = set; then
2500 withval="$with_msw"
b4efce5e 2501 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2502fi;
10f2d63a 2503
e07802fc
VZ
2504# Check whether --with-pm or --without-pm was given.
2505if test "${with_pm+set}" = set; then
2506 withval="$with_pm"
2507 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2508fi;
698dcdb6 2509
1e6feb95
VZ
2510# Check whether --with-mgl or --without-mgl was given.
2511if test "${with_mgl+set}" = set; then
2512 withval="$with_mgl"
6c657b52 2513 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2514fi;
1e6feb95 2515
1725144d
RR
2516# Check whether --with-microwin or --without-microwin was given.
2517if test "${with_microwin+set}" = set; then
2518 withval="$with_microwin"
2519 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2520fi;
1725144d 2521
f79bd02d
JS
2522# Check whether --with-x11 or --without-x11 was given.
2523if test "${with_x11+set}" = set; then
2524 withval="$with_x11"
3c011993 2525 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2526fi;
a0b9e27f 2527
5005acfe 2528 enablestring=
e6cc62c6
VS
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2531 no_cache=0
ba875e66
VZ
2532 # Check whether --enable-nanox or --disable-nanox was given.
2533if test "${enable_nanox+set}" = set; then
2534 enableval="$enable_nanox"
e6cc62c6 2535
d8356fa3 2536 if test "$enableval" = yes; then
ba875e66 2537 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2538 else
ba875e66 2539 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2540 fi
e6cc62c6 2541
d8356fa3 2542else
e6cc62c6 2543
d8356fa3
VZ
2544 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
ba875e66 2551 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2552
e6cc62c6 2553fi;
d8356fa3 2554
ba875e66 2555 eval "$ac_cv_use_nanox"
d8356fa3 2556 if test "$no_cache" != 1; then
ba875e66 2557 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2558 fi
2559
2560 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
d8356fa3 2563 else
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
d8356fa3 2566 fi
e6cc62c6 2567
8284b0c5 2568
d74f4b5a 2569
5005acfe 2570 enablestring=
e6cc62c6
VS
2571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2572echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2573 no_cache=0
2574 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2575if test "${enable_gtk2+set}" = set; then
2576 enableval="$enable_gtk2"
e6cc62c6 2577
d74f4b5a
VZ
2578 if test "$enableval" = yes; then
2579 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2580 else
2581 ac_cv_use_gtk2='wxUSE_GTK2=no'
2582 fi
e6cc62c6 2583
10f2d63a 2584else
e6cc62c6 2585
d74f4b5a
VZ
2586 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2594
e6cc62c6 2595fi;
328a083c 2596
d74f4b5a
VZ
2597 eval "$ac_cv_use_gtk2"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2603 echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
d74f4b5a 2605 else
e6cc62c6
VS
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
d74f4b5a 2608 fi
d74f4b5a 2609
5c6fa7d2 2610
e6cc62c6
VS
2611
2612 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2613echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2614 no_cache=0
e6cc62c6
VS
2615
2616# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2617if test "${with_libpng+set}" = set; then
2618 withval="$with_libpng"
e6cc62c6 2619
10f2d63a 2620 if test "$withval" = yes; then
b12915c1 2621 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2622 elif test "$withval" = no; then
b12915c1 2623 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2624 elif test "$withval" = sys; then
2625 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2626 elif test "$withval" = builtin; then
2627 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2628 else
e6cc62c6
VS
2629 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2630echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2631 { (exit 1); exit 1; }; }
10f2d63a 2632 fi
e6cc62c6 2633
10f2d63a 2634else
e6cc62c6 2635
b12915c1 2636 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2637 if test "x$LINE" != x ; then
2638 eval "DEFAULT_$LINE"
2639 else
2640 no_cache=1
2641 fi
2642
b12915c1 2643 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2644
e6cc62c6 2645fi;
10f2d63a 2646
b12915c1 2647 eval "$ac_cv_use_libpng"
10f2d63a 2648 if test "$no_cache" != 1; then
b12915c1 2649 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2650 fi
2651
b12915c1 2652 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2653 echo "$as_me:$LINENO: result: yes" >&5
2654echo "${ECHO_T}yes" >&6
422107f9 2655 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2656 echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6
422107f9 2658 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2659 echo "$as_me:$LINENO: result: system version" >&5
2660echo "${ECHO_T}system version" >&6
4f14bcd8 2661 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2662 echo "$as_me:$LINENO: result: builtin version" >&5
2663echo "${ECHO_T}builtin version" >&6
422107f9 2664 else
e6cc62c6
VS
2665 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2666echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2667 { (exit 1); exit 1; }; }
10f2d63a 2668 fi
10f2d63a 2669
e6cc62c6
VS
2670
2671 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2672echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2673 no_cache=0
e6cc62c6
VS
2674
2675# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2676if test "${with_libjpeg+set}" = set; then
2677 withval="$with_libjpeg"
e6cc62c6 2678
10f2d63a 2679 if test "$withval" = yes; then
b12915c1 2680 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2681 elif test "$withval" = no; then
b12915c1 2682 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2683 elif test "$withval" = sys; then
2684 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2685 elif test "$withval" = builtin; then
2686 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2687 else
e6cc62c6
VS
2688 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2689echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2690 { (exit 1); exit 1; }; }
10f2d63a 2691 fi
e6cc62c6 2692
10f2d63a 2693else
e6cc62c6 2694
b12915c1 2695 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
b12915c1 2702 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2703
e6cc62c6 2704fi;
10f2d63a 2705
b12915c1 2706 eval "$ac_cv_use_libjpeg"
10f2d63a 2707 if test "$no_cache" != 1; then
b12915c1 2708 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2709 fi
2710
b12915c1 2711 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2712 echo "$as_me:$LINENO: result: yes" >&5
2713echo "${ECHO_T}yes" >&6
422107f9 2714 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2715 echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6
422107f9 2717 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2718 echo "$as_me:$LINENO: result: system version" >&5
2719echo "${ECHO_T}system version" >&6
4f14bcd8 2720 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2721 echo "$as_me:$LINENO: result: builtin version" >&5
2722echo "${ECHO_T}builtin version" >&6
422107f9 2723 else
e6cc62c6
VS
2724 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2725echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2726 { (exit 1); exit 1; }; }
10f2d63a 2727 fi
10f2d63a 2728
e6cc62c6
VS
2729
2730 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2731echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2732 no_cache=0
e6cc62c6
VS
2733
2734# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2735if test "${with_libtiff+set}" = set; then
2736 withval="$with_libtiff"
e6cc62c6 2737
10f2d63a 2738 if test "$withval" = yes; then
b12915c1 2739 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2740 elif test "$withval" = no; then
b12915c1 2741 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2742 elif test "$withval" = sys; then
2743 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2744 elif test "$withval" = builtin; then
2745 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2746 else
e6cc62c6
VS
2747 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2748echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2749 { (exit 1); exit 1; }; }
10f2d63a 2750 fi
e6cc62c6 2751
10f2d63a 2752else
e6cc62c6 2753
b12915c1 2754 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
b12915c1 2761 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2762
e6cc62c6 2763fi;
10f2d63a 2764
b12915c1 2765 eval "$ac_cv_use_libtiff"
10f2d63a 2766 if test "$no_cache" != 1; then
b12915c1 2767 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2768 fi
2769
b12915c1 2770 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2771 echo "$as_me:$LINENO: result: yes" >&5
2772echo "${ECHO_T}yes" >&6
0dcf9893 2773 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2774 echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6
0dcf9893 2776 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2777 echo "$as_me:$LINENO: result: system version" >&5
2778echo "${ECHO_T}system version" >&6
4f14bcd8 2779 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2780 echo "$as_me:$LINENO: result: builtin version" >&5
2781echo "${ECHO_T}builtin version" >&6
0dcf9893 2782 else
e6cc62c6
VS
2783 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2784echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2785 { (exit 1); exit 1; }; }
10f2d63a 2786 fi
10f2d63a 2787
e6cc62c6
VS
2788
2789 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2790echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2791 no_cache=0
e6cc62c6
VS
2792
2793# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2794if test "${with_opengl+set}" = set; then
2795 withval="$with_opengl"
e6cc62c6 2796
10f2d63a 2797 if test "$withval" = yes; then
b12915c1 2798 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2799 else
b12915c1 2800 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2801 fi
e6cc62c6 2802
10f2d63a 2803else
e6cc62c6 2804
b12915c1 2805 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
b12915c1 2812 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2813
e6cc62c6 2814fi;
10f2d63a 2815
b12915c1 2816 eval "$ac_cv_use_opengl"
10f2d63a 2817 if test "$no_cache" != 1; then
b12915c1 2818 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2819 fi
2820
b12915c1 2821 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2822 echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6
10f2d63a 2824 else
e6cc62c6
VS
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
10f2d63a 2827 fi
e6cc62c6 2828
10f2d63a 2829
b12915c1
VZ
2830fi
2831
5c6fa7d2 2832
e6cc62c6
VS
2833 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2834echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2835 no_cache=0
e6cc62c6
VS
2836
2837# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2838if test "${with_dmalloc+set}" = set; then
2839 withval="$with_dmalloc"
e6cc62c6 2840
c7a2bf27 2841 if test "$withval" = yes; then
b12915c1 2842 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2843 else
b12915c1 2844 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2845 fi
e6cc62c6 2846
c7a2bf27 2847else
e6cc62c6 2848
b12915c1 2849 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
b12915c1 2856 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2857
e6cc62c6 2858fi;
c7a2bf27 2859
b12915c1 2860 eval "$ac_cv_use_dmalloc"
c7a2bf27 2861 if test "$no_cache" != 1; then
b12915c1 2862 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2863 fi
2864
b12915c1 2865 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2866 echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6
c7a2bf27 2868 else
e6cc62c6
VS
2869 echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6
c7a2bf27 2871 fi
c7a2bf27 2872
e6cc62c6
VS
2873
2874 echo "$as_me:$LINENO: checking for --with-regex" >&5
2875echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2876 no_cache=0
e6cc62c6
VS
2877
2878# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2879if test "${with_regex+set}" = set; then
2880 withval="$with_regex"
e6cc62c6 2881
3e44f09d
VZ
2882 if test "$withval" = yes; then
2883 ac_cv_use_regex='wxUSE_REGEX=yes'
2884 elif test "$withval" = no; then
2885 ac_cv_use_regex='wxUSE_REGEX=no'
2886 elif test "$withval" = sys; then
2887 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2888 elif test "$withval" = builtin; then
2889 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2890 else
e6cc62c6
VS
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
3e44f09d 2894 fi
e6cc62c6 2895
3e44f09d 2896else
e6cc62c6 2897
3e44f09d
VZ
2898 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2906
e6cc62c6 2907fi;
3e44f09d
VZ
2908
2909 eval "$ac_cv_use_regex"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2915 echo "$as_me:$LINENO: result: yes" >&5
2916echo "${ECHO_T}yes" >&6
3e44f09d 2917 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2918 echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
3e44f09d 2920 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2921 echo "$as_me:$LINENO: result: system version" >&5
2922echo "${ECHO_T}system version" >&6
4f14bcd8 2923 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2924 echo "$as_me:$LINENO: result: builtin version" >&5
2925echo "${ECHO_T}builtin version" >&6
3e44f09d 2926 else
e6cc62c6
VS
2927 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2928echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2929 { (exit 1); exit 1; }; }
3e44f09d 2930 fi
3e44f09d 2931
e6cc62c6
VS
2932
2933 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2934echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2935 no_cache=0
e6cc62c6
VS
2936
2937# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2938if test "${with_zlib+set}" = set; then
2939 withval="$with_zlib"
e6cc62c6 2940
10f2d63a 2941 if test "$withval" = yes; then
b12915c1 2942 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2943 elif test "$withval" = no; then
b12915c1 2944 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2945 elif test "$withval" = sys; then
2946 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2947 elif test "$withval" = builtin; then
2948 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2949 else
e6cc62c6
VS
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
10f2d63a 2953 fi
e6cc62c6 2954
10f2d63a 2955else
e6cc62c6 2956
b12915c1 2957 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
b12915c1 2964 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2965
e6cc62c6 2966fi;
10f2d63a 2967
b12915c1 2968 eval "$ac_cv_use_zlib"
10f2d63a 2969 if test "$no_cache" != 1; then
b12915c1 2970 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2971 fi
2972
b12915c1 2973 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2974 echo "$as_me:$LINENO: result: yes" >&5
2975echo "${ECHO_T}yes" >&6
422107f9 2976 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
422107f9 2979 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2980 echo "$as_me:$LINENO: result: system version" >&5
2981echo "${ECHO_T}system version" >&6
4f14bcd8 2982 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2983 echo "$as_me:$LINENO: result: builtin version" >&5
2984echo "${ECHO_T}builtin version" >&6
422107f9 2985 else
e6cc62c6
VS
2986 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2987echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2988 { (exit 1); exit 1; }; }
10f2d63a 2989 fi
10f2d63a 2990
e6cc62c6
VS
2991
2992 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2993echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2994 no_cache=0
e6cc62c6
VS
2995
2996# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2997if test "${with_odbc+set}" = set; then
2998 withval="$with_odbc"
e6cc62c6 2999
10f2d63a
VZ
3000 if test "$withval" = yes; then
3001 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3002 elif test "$withval" = no; then
10f2d63a 3003 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3004 elif test "$withval" = sys; then
3005 ac_cv_use_odbc='wxUSE_ODBC=sys'
3006 elif test "$withval" = builtin; then
3007 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3008 else
e6cc62c6
VS
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
10f2d63a 3012 fi
e6cc62c6 3013
10f2d63a 3014else
e6cc62c6 3015
10f2d63a
VZ
3016 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3024
e6cc62c6 3025fi;
10f2d63a
VZ
3026
3027 eval "$ac_cv_use_odbc"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3033 echo "$as_me:$LINENO: result: yes" >&5
3034echo "${ECHO_T}yes" >&6
8647bec6 3035 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
8647bec6 3038 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3039 echo "$as_me:$LINENO: result: system version" >&5
3040echo "${ECHO_T}system version" >&6
8647bec6 3041 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3042 echo "$as_me:$LINENO: result: builtin version" >&5
3043echo "${ECHO_T}builtin version" >&6
8647bec6 3044 else
e6cc62c6
VS
3045 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3046echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3047 { (exit 1); exit 1; }; }
10f2d63a 3048 fi
e6cc62c6 3049
52127426 3050
672abd7a
VS
3051 echo "$as_me:$LINENO: checking for --with-expat" >&5
3052echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-expat or --without-expat was given.
3056if test "${with_expat+set}" = set; then
3057 withval="$with_expat"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_expat='wxUSE_EXPAT=yes'
3061 elif test "$withval" = no; then
3062 ac_cv_use_expat='wxUSE_EXPAT=no'
3063 elif test "$withval" = sys; then
3064 ac_cv_use_expat='wxUSE_EXPAT=sys'
3065 elif test "$withval" = builtin; then
3066 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3067 else
3068 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3069echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3072
3073else
3074
3075 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
3082 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3083
3084fi;
3085
3086 eval "$ac_cv_use_expat"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_EXPAT" = yes; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093echo "${ECHO_T}yes" >&6
3094 elif test "$wxUSE_EXPAT" = no; then
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097 elif test "$wxUSE_EXPAT" = sys; then
3098 echo "$as_me:$LINENO: result: system version" >&5
3099echo "${ECHO_T}system version" >&6
3100 elif test "$wxUSE_EXPAT" = builtin; then
3101 echo "$as_me:$LINENO: result: builtin version" >&5
3102echo "${ECHO_T}builtin version" >&6
3103 else
3104 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3105echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3106 { (exit 1); exit 1; }; }
3107 fi
3108
3109
8284b0c5
MB
3110
3111
5005acfe 3112 enablestring=
e6cc62c6
VS
3113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3114echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3115 no_cache=0
3116 # Check whether --enable-shared or --disable-shared was given.
3117if test "${enable_shared+set}" = set; then
3118 enableval="$enable_shared"
e6cc62c6 3119
10f2d63a
VZ
3120 if test "$enableval" = yes; then
3121 ac_cv_use_shared='wxUSE_SHARED=yes'
3122 else
3123 ac_cv_use_shared='wxUSE_SHARED=no'
3124 fi
e6cc62c6 3125
10f2d63a 3126else
e6cc62c6 3127
10f2d63a
VZ
3128 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3136
e6cc62c6 3137fi;
10f2d63a
VZ
3138
3139 eval "$ac_cv_use_shared"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
10f2d63a 3147 else
e6cc62c6
VS
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152
5005acfe 3153 enablestring=
e6cc62c6
VS
3154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3155echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3156 no_cache=0
3157 # Check whether --enable-optimise or --disable-optimise was given.
3158if test "${enable_optimise+set}" = set; then
3159 enableval="$enable_optimise"
e6cc62c6 3160
10f2d63a
VZ
3161 if test "$enableval" = yes; then
3162 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3163 else
3164 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3165 fi
e6cc62c6 3166
10f2d63a 3167else
e6cc62c6 3168
10f2d63a
VZ
3169 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3177
e6cc62c6 3178fi;
10f2d63a
VZ
3179
3180 eval "$ac_cv_use_optimise"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3186 echo "$as_me:$LINENO: result: yes" >&5
3187echo "${ECHO_T}yes" >&6
10f2d63a 3188 else
e6cc62c6
VS
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
10f2d63a 3191 fi
e6cc62c6 3192
10f2d63a 3193
5005acfe 3194 enablestring=
e6cc62c6
VS
3195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3196echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3197 no_cache=0
3198 # Check whether --enable-debug or --disable-debug was given.
3199if test "${enable_debug+set}" = set; then
3200 enableval="$enable_debug"
e6cc62c6 3201
10f2d63a
VZ
3202 if test "$enableval" = yes; then
3203 ac_cv_use_debug='wxUSE_DEBUG=yes'
3204 else
3205 ac_cv_use_debug='wxUSE_DEBUG=no'
3206 fi
e6cc62c6 3207
10f2d63a 3208else
e6cc62c6 3209
10f2d63a
VZ
3210 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3218
e6cc62c6 3219fi;
10f2d63a
VZ
3220
3221 eval "$ac_cv_use_debug"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
10f2d63a 3229 else
e6cc62c6
VS
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
10f2d63a 3232 fi
e6cc62c6 3233
52127426 3234
df5168c4
MB
3235 enablestring=
3236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3237echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3238 no_cache=0
3239 # Check whether --enable-stl or --disable-stl was given.
3240if test "${enable_stl+set}" = set; then
3241 enableval="$enable_stl"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_stl='wxUSE_STL=yes'
3245 else
3246 ac_cv_use_stl='wxUSE_STL=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3259
3260fi;
3261
3262 eval "$ac_cv_use_stl"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_STL" = yes; then
3268 echo "$as_me:$LINENO: result: yes" >&5
3269echo "${ECHO_T}yes" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273 fi
3274
3275
10f2d63a
VZ
3276if test "$wxUSE_DEBUG" = "yes"; then
3277 DEFAULT_wxUSE_DEBUG_FLAG=yes
3278 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3279 BUILD=debug
10f2d63a
VZ
3280elif test "$wxUSE_DEBUG" = "no"; then
3281 DEFAULT_wxUSE_DEBUG_FLAG=no
3282 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3283 BUILD=release
10f2d63a
VZ
3284fi
3285
8284b0c5 3286
5005acfe 3287 enablestring=
e6cc62c6
VS
3288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3289echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3290 no_cache=0
3291 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3292if test "${enable_debug_flag+set}" = set; then
3293 enableval="$enable_debug_flag"
e6cc62c6 3294
10f2d63a
VZ
3295 if test "$enableval" = yes; then
3296 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3297 else
3298 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3299 fi
e6cc62c6 3300
10f2d63a 3301else
e6cc62c6 3302
10f2d63a
VZ
3303 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3311
e6cc62c6 3312fi;
10f2d63a
VZ
3313
3314 eval "$ac_cv_use_debug_flag"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
10f2d63a 3322 else
e6cc62c6
VS
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
10f2d63a 3325 fi
e6cc62c6 3326
10f2d63a 3327
5005acfe 3328 enablestring=
e6cc62c6
VS
3329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3330echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3331 no_cache=0
3332 # Check whether --enable-debug_info or --disable-debug_info was given.
3333if test "${enable_debug_info+set}" = set; then
3334 enableval="$enable_debug_info"
e6cc62c6 3335
10f2d63a
VZ
3336 if test "$enableval" = yes; then
3337 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3338 else
3339 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3340 fi
e6cc62c6 3341
10f2d63a 3342else
e6cc62c6 3343
10f2d63a
VZ
3344 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3352
e6cc62c6 3353fi;
10f2d63a
VZ
3354
3355 eval "$ac_cv_use_debug_info"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
10f2d63a 3363 else
e6cc62c6
VS
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
10f2d63a 3366 fi
e6cc62c6 3367
10f2d63a 3368
5005acfe 3369 enablestring=
e6cc62c6
VS
3370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3371echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3372 no_cache=0
3373 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3374if test "${enable_debug_gdb+set}" = set; then
3375 enableval="$enable_debug_gdb"
e6cc62c6 3376
10f2d63a
VZ
3377 if test "$enableval" = yes; then
3378 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3379 else
3380 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3381 fi
e6cc62c6 3382
10f2d63a 3383else
e6cc62c6 3384
10f2d63a
VZ
3385 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3386 if test "x$LINE" != x ; then
3387 eval "DEFAULT_$LINE"
3388 else
3389 no_cache=1
3390 fi
3391
3392 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3393
e6cc62c6 3394fi;
10f2d63a
VZ
3395
3396 eval "$ac_cv_use_debug_gdb"
3397 if test "$no_cache" != 1; then
3398 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3399 fi
3400
3401 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3402 echo "$as_me:$LINENO: result: yes" >&5
3403echo "${ECHO_T}yes" >&6
10f2d63a 3404 else
e6cc62c6
VS
3405 echo "$as_me:$LINENO: result: no" >&5
3406echo "${ECHO_T}no" >&6
10f2d63a 3407 fi
e6cc62c6 3408
10f2d63a 3409
5005acfe 3410 enablestring=
e6cc62c6
VS
3411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3412echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3413 no_cache=0
3414 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3415if test "${enable_debug_cntxt+set}" = set; then
3416 enableval="$enable_debug_cntxt"
e6cc62c6 3417
10f2d63a
VZ
3418 if test "$enableval" = yes; then
3419 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3420 else
3421 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3422 fi
e6cc62c6 3423
10f2d63a 3424else
e6cc62c6 3425
10f2d63a
VZ
3426 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3427 if test "x$LINE" != x ; then
3428 eval "DEFAULT_$LINE"
3429 else
3430 no_cache=1
3431 fi
3432
3433 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3434
e6cc62c6 3435fi;
10f2d63a
VZ
3436
3437 eval "$ac_cv_use_debug_cntxt"
3438 if test "$no_cache" != 1; then
3439 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3440 fi
3441
3442 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3443 echo "$as_me:$LINENO: result: yes" >&5
3444echo "${ECHO_T}yes" >&6
10f2d63a 3445 else
e6cc62c6
VS
3446 echo "$as_me:$LINENO: result: no" >&5
3447echo "${ECHO_T}no" >&6
10f2d63a 3448 fi
e6cc62c6 3449
10f2d63a 3450
5005acfe 3451 enablestring=
e6cc62c6
VS
3452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3453echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3454 no_cache=0
3455 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3456if test "${enable_mem_tracing+set}" = set; then
3457 enableval="$enable_mem_tracing"
e6cc62c6 3458
10f2d63a
VZ
3459 if test "$enableval" = yes; then
3460 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3461 else
3462 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3463 fi
e6cc62c6 3464
10f2d63a 3465else
e6cc62c6 3466
10f2d63a
VZ
3467 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3468 if test "x$LINE" != x ; then
3469 eval "DEFAULT_$LINE"
3470 else
3471 no_cache=1
3472 fi
3473
3474 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3475
e6cc62c6 3476fi;
10f2d63a
VZ
3477
3478 eval "$ac_cv_use_mem_tracing"
3479 if test "$no_cache" != 1; then
3480 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3481 fi
3482
3483 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3484 echo "$as_me:$LINENO: result: yes" >&5
3485echo "${ECHO_T}yes" >&6
10f2d63a 3486 else
e6cc62c6
VS
3487 echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
10f2d63a 3489 fi
e6cc62c6 3490
10f2d63a 3491
5005acfe 3492 enablestring=
e6cc62c6
VS
3493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3494echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3495 no_cache=0
3496 # Check whether --enable-profile or --disable-profile was given.
3497if test "${enable_profile+set}" = set; then
3498 enableval="$enable_profile"
e6cc62c6 3499
10f2d63a
VZ
3500 if test "$enableval" = yes; then
3501 ac_cv_use_profile='wxUSE_PROFILE=yes'
3502 else
3503 ac_cv_use_profile='wxUSE_PROFILE=no'
3504 fi
e6cc62c6 3505
10f2d63a 3506else
e6cc62c6 3507
10f2d63a
VZ
3508 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3509 if test "x$LINE" != x ; then
3510 eval "DEFAULT_$LINE"
3511 else
3512 no_cache=1
3513 fi
3514
3515 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3516
e6cc62c6 3517fi;
10f2d63a
VZ
3518
3519 eval "$ac_cv_use_profile"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3525 echo "$as_me:$LINENO: result: yes" >&5
3526echo "${ECHO_T}yes" >&6
10f2d63a 3527 else
e6cc62c6
VS
3528 echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6
10f2d63a 3530 fi
e6cc62c6 3531
10f2d63a 3532
5005acfe 3533 enablestring=
e6cc62c6
VS
3534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3535echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3536 no_cache=0
3537 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3538if test "${enable_no_rtti+set}" = set; then
3539 enableval="$enable_no_rtti"
e6cc62c6 3540
10f2d63a
VZ
3541 if test "$enableval" = yes; then
3542 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3543 else
3544 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3545 fi
e6cc62c6 3546
10f2d63a 3547else
e6cc62c6 3548
10f2d63a
VZ
3549 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3550 if test "x$LINE" != x ; then
3551 eval "DEFAULT_$LINE"
3552 else
3553 no_cache=1
3554 fi
3555
3556 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3557
e6cc62c6 3558fi;
10f2d63a
VZ
3559
3560 eval "$ac_cv_use_no_rtti"
3561 if test "$no_cache" != 1; then
3562 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3563 fi
3564
3565 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3566 echo "$as_me:$LINENO: result: yes" >&5
3567echo "${ECHO_T}yes" >&6
10f2d63a 3568 else
e6cc62c6
VS
3569 echo "$as_me:$LINENO: result: no" >&5
3570echo "${ECHO_T}no" >&6
10f2d63a 3571 fi
e6cc62c6 3572
10f2d63a 3573
5005acfe 3574 enablestring=
e6cc62c6
VS
3575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3576echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3577 no_cache=0
3578 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3579if test "${enable_no_exceptions+set}" = set; then
3580 enableval="$enable_no_exceptions"
e6cc62c6 3581
10f2d63a
VZ
3582 if test "$enableval" = yes; then
3583 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3584 else
3585 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3586 fi
e6cc62c6 3587
10f2d63a 3588else
e6cc62c6 3589
10f2d63a
VZ
3590 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3591 if test "x$LINE" != x ; then
3592 eval "DEFAULT_$LINE"
3593 else
3594 no_cache=1
3595 fi
3596
3597 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3598
e6cc62c6 3599fi;
10f2d63a
VZ
3600
3601 eval "$ac_cv_use_no_exceptions"
3602 if test "$no_cache" != 1; then
3603 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3604 fi
3605
3606 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3607 echo "$as_me:$LINENO: result: yes" >&5
3608echo "${ECHO_T}yes" >&6
10f2d63a 3609 else
e6cc62c6
VS
3610 echo "$as_me:$LINENO: result: no" >&5
3611echo "${ECHO_T}no" >&6
10f2d63a 3612 fi
e6cc62c6 3613
10f2d63a 3614
5005acfe 3615 enablestring=
e6cc62c6
VS
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3618 no_cache=0
3619 # Check whether --enable-permissive or --disable-permissive was given.
3620if test "${enable_permissive+set}" = set; then
3621 enableval="$enable_permissive"
e6cc62c6 3622
10f2d63a
VZ
3623 if test "$enableval" = yes; then
3624 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3625 else
3626 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3627 fi
e6cc62c6 3628
10f2d63a 3629else
e6cc62c6 3630
10f2d63a
VZ
3631 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3639
e6cc62c6 3640fi;
10f2d63a
VZ
3641
3642 eval "$ac_cv_use_permissive"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
10f2d63a 3650 else
e6cc62c6
VS
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
10f2d63a 3653 fi
e6cc62c6 3654
10f2d63a 3655
5005acfe 3656 enablestring=
e6cc62c6
VS
3657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3658echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3659 no_cache=0
3660 # Check whether --enable-no_deps or --disable-no_deps was given.
3661if test "${enable_no_deps+set}" = set; then
3662 enableval="$enable_no_deps"
e6cc62c6 3663
10f2d63a
VZ
3664 if test "$enableval" = yes; then
3665 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3666 else
3667 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3668 fi
e6cc62c6 3669
10f2d63a 3670else
e6cc62c6 3671
10f2d63a
VZ
3672 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3673 if test "x$LINE" != x ; then
3674 eval "DEFAULT_$LINE"
3675 else
3676 no_cache=1
3677 fi
3678
3679 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3680
e6cc62c6 3681fi;
10f2d63a
VZ
3682
3683 eval "$ac_cv_use_no_deps"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3689 echo "$as_me:$LINENO: result: yes" >&5
3690echo "${ECHO_T}yes" >&6
10f2d63a 3691 else
e6cc62c6
VS
3692 echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
10f2d63a 3694 fi
e6cc62c6 3695
52127426 3696
8284b0c5 3697
65d8ef1e 3698 enablestring=
e6cc62c6
VS
3699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3700echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3701 no_cache=0
3702 # Check whether --enable-compat22 or --disable-compat22 was given.
3703if test "${enable_compat22+set}" = set; then
3704 enableval="$enable_compat22"
e6cc62c6 3705
54276ccf
VZ
3706 if test "$enableval" = yes; then
3707 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3708 else
3709 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3710 fi
e6cc62c6 3711
54276ccf 3712else
e6cc62c6 3713
54276ccf
VZ
3714 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3715 if test "x$LINE" != x ; then
3716 eval "DEFAULT_$LINE"
3717 else
3718 no_cache=1
3719 fi
3720
3721 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3722
e6cc62c6 3723fi;
54276ccf
VZ
3724
3725 eval "$ac_cv_use_compat22"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3731 echo "$as_me:$LINENO: result: yes" >&5
3732echo "${ECHO_T}yes" >&6
54276ccf 3733 else
e6cc62c6
VS
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
54276ccf 3736 fi
e6cc62c6 3737
54276ccf 3738
65d8ef1e 3739 enablestring=disable
e6cc62c6
VS
3740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3741echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3742 no_cache=0
3743 # Check whether --enable-compat24 or --disable-compat24 was given.
3744if test "${enable_compat24+set}" = set; then
3745 enableval="$enable_compat24"
e6cc62c6 3746
65d8ef1e
VS
3747 if test "$enableval" = yes; then
3748 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3749 else
3750 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3751 fi
e6cc62c6 3752
65d8ef1e 3753else
e6cc62c6 3754
65d8ef1e
VS
3755 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3763
e6cc62c6 3764fi;
65d8ef1e
VS
3765
3766 eval "$ac_cv_use_compat24"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3772 echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
65d8ef1e 3774 else
e6cc62c6
VS
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
65d8ef1e 3777 fi
e6cc62c6 3778
65d8ef1e 3779
3bd8fb5f
RD
3780# Check whether --enable-rpath or --disable-rpath was given.
3781if test "${enable_rpath+set}" = set; then
3782 enableval="$enable_rpath"
3783 wxRPATH_DIR="$enableval"
e6cc62c6 3784fi;
3bd8fb5f
RD
3785
3786if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3787 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3788fi
3789
8284b0c5
MB
3790
3791
3792
5005acfe 3793 enablestring=
e6cc62c6
VS
3794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3795echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3796 no_cache=0
3797 # Check whether --enable-intl or --disable-intl was given.
3798if test "${enable_intl+set}" = set; then
3799 enableval="$enable_intl"
e6cc62c6 3800
10f2d63a
VZ
3801 if test "$enableval" = yes; then
3802 ac_cv_use_intl='wxUSE_INTL=yes'
3803 else
3804 ac_cv_use_intl='wxUSE_INTL=no'
3805 fi
e6cc62c6 3806
10f2d63a 3807else
e6cc62c6 3808
10f2d63a
VZ
3809 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3817
e6cc62c6 3818fi;
10f2d63a
VZ
3819
3820 eval "$ac_cv_use_intl"
3821 if test "$no_cache" != 1; then
3822 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3823 fi
3824
3825 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3826 echo "$as_me:$LINENO: result: yes" >&5
3827echo "${ECHO_T}yes" >&6
10f2d63a 3828 else
e6cc62c6
VS
3829 echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
10f2d63a 3831 fi
e6cc62c6 3832
10f2d63a 3833
5005acfe 3834 enablestring=
e6cc62c6
VS
3835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3836echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3837 no_cache=0
3838 # Check whether --enable-config or --disable-config was given.
3839if test "${enable_config+set}" = set; then
3840 enableval="$enable_config"
e6cc62c6 3841
10f2d63a
VZ
3842 if test "$enableval" = yes; then
3843 ac_cv_use_config='wxUSE_CONFIG=yes'
3844 else
3845 ac_cv_use_config='wxUSE_CONFIG=no'
3846 fi
e6cc62c6 3847
10f2d63a 3848else
e6cc62c6 3849
10f2d63a
VZ
3850 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3858
e6cc62c6 3859fi;
10f2d63a
VZ
3860
3861 eval "$ac_cv_use_config"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3867 echo "$as_me:$LINENO: result: yes" >&5
3868echo "${ECHO_T}yes" >&6
10f2d63a 3869 else
e6cc62c6
VS
3870 echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6
10f2d63a 3872 fi
e6cc62c6 3873
52127426 3874
8284b0c5 3875
5005acfe 3876 enablestring=
e6cc62c6
VS
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3878echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3879 no_cache=0
3880 # Check whether --enable-protocols or --disable-protocols was given.
3881if test "${enable_protocols+set}" = set; then
3882 enableval="$enable_protocols"
e6cc62c6 3883
a1622950
VZ
3884 if test "$enableval" = yes; then
3885 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3886 else
3887 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3888 fi
e6cc62c6 3889
a1622950 3890else
e6cc62c6 3891
a1622950
VZ
3892 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3900
e6cc62c6 3901fi;
a1622950
VZ
3902
3903 eval "$ac_cv_use_protocols"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3909 echo "$as_me:$LINENO: result: yes" >&5
3910echo "${ECHO_T}yes" >&6
a1622950 3911 else
e6cc62c6
VS
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
a1622950 3914 fi
e6cc62c6 3915
a1622950 3916
5005acfe 3917 enablestring=
e6cc62c6
VS
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3919echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3920 no_cache=0
3921 # Check whether --enable-ftp or --disable-ftp was given.
3922if test "${enable_ftp+set}" = set; then
3923 enableval="$enable_ftp"
e6cc62c6 3924
a1622950
VZ
3925 if test "$enableval" = yes; then
3926 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3927 else
3928 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3929 fi
e6cc62c6 3930
a1622950 3931else
e6cc62c6 3932
a1622950
VZ
3933 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3941
e6cc62c6 3942fi;
a1622950
VZ
3943
3944 eval "$ac_cv_use_ftp"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
a1622950 3952 else
e6cc62c6
VS
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
a1622950 3955 fi
e6cc62c6 3956
a1622950 3957
5005acfe 3958 enablestring=
e6cc62c6
VS
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3961 no_cache=0
3962 # Check whether --enable-http or --disable-http was given.
3963if test "${enable_http+set}" = set; then
3964 enableval="$enable_http"
e6cc62c6 3965
a1622950
VZ
3966 if test "$enableval" = yes; then
3967 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3968 else
3969 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3970 fi
e6cc62c6 3971
a1622950 3972else
e6cc62c6 3973
a1622950
VZ
3974 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3982
e6cc62c6 3983fi;
a1622950
VZ
3984
3985 eval "$ac_cv_use_http"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
a1622950 3993 else
e6cc62c6
VS
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
a1622950 3996 fi
e6cc62c6 3997
a1622950 3998
5005acfe 3999 enablestring=
e6cc62c6
VS
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4001echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4002 no_cache=0
4003 # Check whether --enable-fileproto or --disable-fileproto was given.
4004if test "${enable_fileproto+set}" = set; then
4005 enableval="$enable_fileproto"
e6cc62c6 4006
a1622950
VZ
4007 if test "$enableval" = yes; then
4008 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4009 else
4010 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4011 fi
e6cc62c6 4012
a1622950 4013else
e6cc62c6 4014
a1622950
VZ
4015 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4023
e6cc62c6 4024fi;
a1622950
VZ
4025
4026 eval "$ac_cv_use_fileproto"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4032 echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
a1622950 4034 else
e6cc62c6
VS
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
a1622950 4037 fi
e6cc62c6 4038
a1622950 4039
5005acfe 4040 enablestring=
e6cc62c6
VS
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4042echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4043 no_cache=0
4044 # Check whether --enable-sockets or --disable-sockets was given.
4045if test "${enable_sockets+set}" = set; then
4046 enableval="$enable_sockets"
e6cc62c6 4047
10f2d63a
VZ
4048 if test "$enableval" = yes; then
4049 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4050 else
4051 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4052 fi
e6cc62c6 4053
10f2d63a 4054else
e6cc62c6 4055
10f2d63a
VZ
4056 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4064
e6cc62c6 4065fi;
10f2d63a
VZ
4066
4067 eval "$ac_cv_use_sockets"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4073 echo "$as_me:$LINENO: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
10f2d63a 4075 else
e6cc62c6
VS
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
10f2d63a 4078 fi
e6cc62c6 4079
8284b0c5 4080
5005acfe 4081 enablestring=
e6cc62c6
VS
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4083echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4084 no_cache=0
4085 # Check whether --enable-ole or --disable-ole was given.
4086if test "${enable_ole+set}" = set; then
4087 enableval="$enable_ole"
e6cc62c6 4088
3bce6687
JS
4089 if test "$enableval" = yes; then
4090 ac_cv_use_ole='wxUSE_OLE=yes'
4091 else
4092 ac_cv_use_ole='wxUSE_OLE=no'
4093 fi
e6cc62c6 4094
3bce6687 4095else
e6cc62c6 4096
3bce6687
JS
4097 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4105
e6cc62c6 4106fi;
3bce6687
JS
4107
4108 eval "$ac_cv_use_ole"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4114 echo "$as_me:$LINENO: result: yes" >&5
4115echo "${ECHO_T}yes" >&6
3bce6687 4116 else
e6cc62c6
VS
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
3bce6687 4119 fi
e6cc62c6 4120
3bce6687 4121
5005acfe 4122 enablestring=
e6cc62c6
VS
4123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4124echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4125 no_cache=0
4126 # Check whether --enable-dataobj or --disable-dataobj was given.
4127if test "${enable_dataobj+set}" = set; then
4128 enableval="$enable_dataobj"
e6cc62c6 4129
3bce6687
JS
4130 if test "$enableval" = yes; then
4131 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4132 else
4133 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4134 fi
e6cc62c6 4135
3bce6687 4136else
e6cc62c6 4137
3bce6687
JS
4138 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4146
e6cc62c6 4147fi;
3bce6687
JS
4148
4149 eval "$ac_cv_use_dataobj"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4155 echo "$as_me:$LINENO: result: yes" >&5
4156echo "${ECHO_T}yes" >&6
3bce6687 4157 else
e6cc62c6
VS
4158 echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6
3bce6687 4160 fi
e6cc62c6 4161
3bce6687 4162
52127426 4163
5005acfe 4164 enablestring=
e6cc62c6
VS
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4167 no_cache=0
eb4efbdc
VZ
4168 # Check whether --enable-ipc or --disable-ipc was given.
4169if test "${enable_ipc+set}" = set; then
4170 enableval="$enable_ipc"
e6cc62c6 4171
10f2d63a 4172 if test "$enableval" = yes; then
eb4efbdc 4173 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4174 else
eb4efbdc 4175 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4176 fi
e6cc62c6 4177
10f2d63a 4178else
e6cc62c6 4179
eb4efbdc 4180 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
eb4efbdc 4187 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4188
e6cc62c6 4189fi;
10f2d63a 4190
eb4efbdc 4191 eval "$ac_cv_use_ipc"
10f2d63a 4192 if test "$no_cache" != 1; then
eb4efbdc 4193 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4194 fi
4195
eb4efbdc 4196 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
10f2d63a 4199 else
e6cc62c6
VS
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
10f2d63a 4202 fi
e6cc62c6 4203
52127426 4204
8284b0c5 4205
5005acfe 4206 enablestring=
e46d2a18
VS
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4209 no_cache=0
e46d2a18
VS
4210 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4211if test "${enable_apple_ieee+set}" = set; then
4212 enableval="$enable_apple_ieee"
e6cc62c6 4213
10f2d63a 4214 if test "$enableval" = yes; then
e46d2a18 4215 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4216 else
e46d2a18 4217 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4218 fi
e6cc62c6 4219
10f2d63a 4220else
e6cc62c6 4221
e46d2a18 4222 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
e46d2a18 4229 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4230
e6cc62c6 4231fi;
10f2d63a 4232
e46d2a18 4233 eval "$ac_cv_use_apple_ieee"
10f2d63a 4234 if test "$no_cache" != 1; then
e46d2a18 4235 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4236 fi
4237
e46d2a18 4238 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
10f2d63a 4241 else
e6cc62c6
VS
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
10f2d63a 4244 fi
e6cc62c6 4245
10f2d63a 4246
5005acfe 4247 enablestring=
e46d2a18
VS
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4250 no_cache=0
e46d2a18
VS
4251 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4252if test "${enable_catch_segvs+set}" = set; then
4253 enableval="$enable_catch_segvs"
e6cc62c6 4254
10f2d63a 4255 if test "$enableval" = yes; then
e46d2a18 4256 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4257 else
e46d2a18 4258 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4259 fi
e6cc62c6 4260
10f2d63a 4261else
e6cc62c6 4262
e46d2a18 4263 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
e46d2a18 4270 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4271
e6cc62c6 4272fi;
10f2d63a 4273
e46d2a18 4274 eval "$ac_cv_use_catch_segvs"
10f2d63a 4275 if test "$no_cache" != 1; then
e46d2a18 4276 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4277 fi
4278
e46d2a18 4279 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
10f2d63a 4282 else
e6cc62c6
VS
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
10f2d63a 4285 fi
e6cc62c6 4286
10f2d63a 4287
5005acfe 4288 enablestring=
e46d2a18
VS
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4291 no_cache=0
e46d2a18
VS
4292 # Check whether --enable-cmdline or --disable-cmdline was given.
4293if test "${enable_cmdline+set}" = set; then
4294 enableval="$enable_cmdline"
e6cc62c6 4295
10f2d63a 4296 if test "$enableval" = yes; then
e46d2a18 4297 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4298 else
e46d2a18 4299 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4300 fi
e6cc62c6 4301
10f2d63a 4302else
e6cc62c6 4303
e46d2a18 4304 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
e46d2a18 4311 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4312
e6cc62c6 4313fi;
10f2d63a 4314
e46d2a18 4315 eval "$ac_cv_use_cmdline"
10f2d63a 4316 if test "$no_cache" != 1; then
e46d2a18 4317 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4318 fi
4319
e46d2a18 4320 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
10f2d63a 4323 else
e6cc62c6
VS
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
10f2d63a 4326 fi
e6cc62c6 4327
10f2d63a 4328
5005acfe 4329 enablestring=
e46d2a18
VS
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4332 no_cache=0
e46d2a18
VS
4333 # Check whether --enable-datetime or --disable-datetime was given.
4334if test "${enable_datetime+set}" = set; then
4335 enableval="$enable_datetime"
e6cc62c6 4336
10f2d63a 4337 if test "$enableval" = yes; then
e46d2a18 4338 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4339 else
e46d2a18 4340 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4341 fi
e6cc62c6 4342
10f2d63a 4343else
e6cc62c6 4344
e46d2a18 4345 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
e46d2a18 4352 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4353
e6cc62c6 4354fi;
10f2d63a 4355
e46d2a18 4356 eval "$ac_cv_use_datetime"
10f2d63a 4357 if test "$no_cache" != 1; then
e46d2a18 4358 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4359 fi
4360
e46d2a18 4361 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
10f2d63a 4364 else
e6cc62c6
VS
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
10f2d63a 4367 fi
e6cc62c6 4368
10f2d63a 4369
5005acfe 4370 enablestring=
e46d2a18
VS
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4373 no_cache=0
e46d2a18
VS
4374 # Check whether --enable-dialupman or --disable-dialupman was given.
4375if test "${enable_dialupman+set}" = set; then
4376 enableval="$enable_dialupman"
e6cc62c6 4377
10f2d63a 4378 if test "$enableval" = yes; then
e46d2a18 4379 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4380 else
e46d2a18 4381 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4382 fi
e6cc62c6 4383
10f2d63a 4384else
e6cc62c6 4385
e46d2a18 4386 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
e46d2a18 4393 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4394
e6cc62c6 4395fi;
10f2d63a 4396
e46d2a18 4397 eval "$ac_cv_use_dialupman"
10f2d63a 4398 if test "$no_cache" != 1; then
e46d2a18 4399 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4400 fi
4401
e46d2a18 4402 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
10f2d63a 4405 else
e6cc62c6
VS
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
10f2d63a 4408 fi
e6cc62c6 4409
10f2d63a 4410
5005acfe 4411 enablestring=
e6cc62c6
VS
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4414 no_cache=0
4415 # Check whether --enable-dynlib or --disable-dynlib was given.
4416if test "${enable_dynlib+set}" = set; then
4417 enableval="$enable_dynlib"
e6cc62c6 4418
10f2d63a
VZ
4419 if test "$enableval" = yes; then
4420 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4421 else
4422 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4423 fi
e6cc62c6 4424
10f2d63a 4425else
e6cc62c6 4426
10f2d63a
VZ
4427 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4435
e6cc62c6 4436fi;
10f2d63a
VZ
4437
4438 eval "$ac_cv_use_dynlib"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
10f2d63a 4446 else
e6cc62c6
VS
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
10f2d63a 4449 fi
e6cc62c6 4450
10f2d63a 4451
5005acfe 4452 enablestring=
e6cc62c6
VS
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4455 no_cache=0
4456 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4457if test "${enable_dynamicloader+set}" = set; then
4458 enableval="$enable_dynamicloader"
e6cc62c6 4459
0b9ab0bd
RL
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4462 else
4463 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4464 fi
e6cc62c6 4465
0b9ab0bd 4466else
e6cc62c6 4467
0b9ab0bd
RL
4468 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4476
e6cc62c6 4477fi;
0b9ab0bd
RL
4478
4479 eval "$ac_cv_use_dynamicloader"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
0b9ab0bd 4487 else
e6cc62c6
VS
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
0b9ab0bd 4490 fi
e6cc62c6 4491
0b9ab0bd 4492
5005acfe 4493 enablestring=
e46d2a18
VS
4494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4495echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4496 no_cache=0
e46d2a18
VS
4497 # Check whether --enable-exceptions or --disable-exceptions was given.
4498if test "${enable_exceptions+set}" = set; then
4499 enableval="$enable_exceptions"
e6cc62c6 4500
10f2d63a 4501 if test "$enableval" = yes; then
e46d2a18 4502 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4503 else
e46d2a18 4504 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4505 fi
e6cc62c6 4506
10f2d63a 4507else
e6cc62c6 4508
e46d2a18 4509 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4510 if test "x$LINE" != x ; then
4511 eval "DEFAULT_$LINE"
4512 else
4513 no_cache=1
4514 fi
4515
e46d2a18 4516 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4517
e6cc62c6 4518fi;
10f2d63a 4519
e46d2a18 4520 eval "$ac_cv_use_exceptions"
10f2d63a 4521 if test "$no_cache" != 1; then
e46d2a18 4522 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4523 fi
4524
e46d2a18 4525 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4526 echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
10f2d63a 4528 else
e6cc62c6
VS
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
10f2d63a 4531 fi
e6cc62c6 4532
10f2d63a 4533
5005acfe 4534 enablestring=
e46d2a18
VS
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4537 no_cache=0
e46d2a18
VS
4538 # Check whether --enable-ffile or --disable-ffile was given.
4539if test "${enable_ffile+set}" = set; then
4540 enableval="$enable_ffile"
e6cc62c6 4541
e8f65ba6 4542 if test "$enableval" = yes; then
e46d2a18 4543 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4544 else
e46d2a18 4545 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4546 fi
e6cc62c6 4547
e8f65ba6 4548else
e6cc62c6 4549
e46d2a18 4550 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
e46d2a18 4557 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4558
e6cc62c6 4559fi;
e8f65ba6 4560
e46d2a18 4561 eval "$ac_cv_use_ffile"
e8f65ba6 4562 if test "$no_cache" != 1; then
e46d2a18 4563 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4564 fi
4565
e46d2a18 4566 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
e8f65ba6 4569 else
e6cc62c6
VS
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
e8f65ba6 4572 fi
e6cc62c6 4573
e8f65ba6 4574
5005acfe 4575 enablestring=
e46d2a18
VS
4576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4577echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4578 no_cache=0
e46d2a18
VS
4579 # Check whether --enable-file or --disable-file was given.
4580if test "${enable_file+set}" = set; then
4581 enableval="$enable_file"
e6cc62c6 4582
10f2d63a 4583 if test "$enableval" = yes; then
e46d2a18 4584 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4585 else
e46d2a18 4586 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4587 fi
e6cc62c6 4588
10f2d63a 4589else
e6cc62c6 4590
e46d2a18 4591 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
e46d2a18 4598 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4599
e6cc62c6 4600fi;
10f2d63a 4601
e46d2a18 4602 eval "$ac_cv_use_file"
10f2d63a 4603 if test "$no_cache" != 1; then
e46d2a18 4604 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4605 fi
4606
e46d2a18 4607 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4608 echo "$as_me:$LINENO: result: yes" >&5
4609echo "${ECHO_T}yes" >&6
10f2d63a 4610 else
e6cc62c6
VS
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
10f2d63a 4613 fi
e6cc62c6 4614
10f2d63a 4615
5005acfe 4616 enablestring=
e46d2a18
VS
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4619 no_cache=0
e46d2a18
VS
4620 # Check whether --enable-filesystem or --disable-filesystem was given.
4621if test "${enable_filesystem+set}" = set; then
4622 enableval="$enable_filesystem"
e6cc62c6 4623
10f2d63a 4624 if test "$enableval" = yes; then
e46d2a18 4625 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4626 else
e46d2a18 4627 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4628 fi
e6cc62c6 4629
10f2d63a 4630else
e6cc62c6 4631
e46d2a18 4632 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
e46d2a18 4639 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4640
e6cc62c6 4641fi;
10f2d63a 4642
e46d2a18 4643 eval "$ac_cv_use_filesystem"
10f2d63a 4644 if test "$no_cache" != 1; then
e46d2a18 4645 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4646 fi
4647
e46d2a18 4648 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
10f2d63a 4651 else
e6cc62c6
VS
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
10f2d63a 4654 fi
e6cc62c6 4655
10f2d63a 4656
5005acfe 4657 enablestring=
e46d2a18
VS
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4660 no_cache=0
e46d2a18
VS
4661 # Check whether --enable-fontmap or --disable-fontmap was given.
4662if test "${enable_fontmap+set}" = set; then
4663 enableval="$enable_fontmap"
e6cc62c6 4664
10f2d63a 4665 if test "$enableval" = yes; then
e46d2a18 4666 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4667 else
e46d2a18 4668 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4669 fi
e6cc62c6 4670
10f2d63a 4671else
e6cc62c6 4672
e46d2a18 4673 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
e46d2a18 4680 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4681
e6cc62c6 4682fi;
10f2d63a 4683
e46d2a18 4684 eval "$ac_cv_use_fontmap"
10f2d63a 4685 if test "$no_cache" != 1; then
e46d2a18 4686 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4687 fi
4688
e46d2a18 4689 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
10f2d63a 4692 else
e6cc62c6
VS
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
10f2d63a 4695 fi
e6cc62c6 4696
10f2d63a 4697
5005acfe 4698 enablestring=
e46d2a18
VS
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4701 no_cache=0
e46d2a18
VS
4702 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4703if test "${enable_fs_inet+set}" = set; then
4704 enableval="$enable_fs_inet"
e6cc62c6 4705
10f2d63a 4706 if test "$enableval" = yes; then
e46d2a18 4707 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4708 else
e46d2a18 4709 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4710 fi
e6cc62c6 4711
10f2d63a 4712else
e6cc62c6 4713
e46d2a18 4714 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
e46d2a18 4721 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4722
e6cc62c6 4723fi;
10f2d63a 4724
e46d2a18 4725 eval "$ac_cv_use_fs_inet"
10f2d63a 4726 if test "$no_cache" != 1; then
e46d2a18 4727 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4728 fi
4729
e46d2a18 4730 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
10f2d63a 4733 else
e6cc62c6
VS
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
10f2d63a 4736 fi
e6cc62c6 4737
10f2d63a 4738
5005acfe 4739 enablestring=
e46d2a18
VS
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4742 no_cache=0
e46d2a18
VS
4743 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4744if test "${enable_fs_zip+set}" = set; then
4745 enableval="$enable_fs_zip"
e6cc62c6 4746
a3a584a7 4747 if test "$enableval" = yes; then
e46d2a18 4748 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4749 else
e46d2a18 4750 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4751 fi
e6cc62c6 4752
a3a584a7 4753else
e6cc62c6 4754
e46d2a18 4755 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
e46d2a18 4762 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4763
e6cc62c6 4764fi;
a3a584a7 4765
e46d2a18 4766 eval "$ac_cv_use_fs_zip"
a3a584a7 4767 if test "$no_cache" != 1; then
e46d2a18 4768 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4769 fi
4770
e46d2a18 4771 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
a3a584a7 4774 else
e6cc62c6
VS
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
a3a584a7 4777 fi
e6cc62c6 4778
a3a584a7 4779
5005acfe 4780 enablestring=
e46d2a18
VS
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4783 no_cache=0
e46d2a18
VS
4784 # Check whether --enable-geometry or --disable-geometry was given.
4785if test "${enable_geometry+set}" = set; then
4786 enableval="$enable_geometry"
e6cc62c6 4787
10f2d63a 4788 if test "$enableval" = yes; then
e46d2a18 4789 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4790 else
e46d2a18 4791 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4792 fi
e6cc62c6 4793
10f2d63a 4794else
e6cc62c6 4795
e46d2a18 4796 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
e46d2a18 4803 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4804
e6cc62c6 4805fi;
10f2d63a 4806
e46d2a18 4807 eval "$ac_cv_use_geometry"
10f2d63a 4808 if test "$no_cache" != 1; then
e46d2a18 4809 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4810 fi
4811
e46d2a18 4812 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
10f2d63a 4815 else
e6cc62c6
VS
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
10f2d63a 4818 fi
e6cc62c6 4819
10f2d63a 4820
5005acfe 4821 enablestring=
e46d2a18
VS
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4824 no_cache=0
e46d2a18
VS
4825 # Check whether --enable-log or --disable-log was given.
4826if test "${enable_log+set}" = set; then
4827 enableval="$enable_log"
e6cc62c6 4828
10f2d63a 4829 if test "$enableval" = yes; then
e46d2a18 4830 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4831 else
e46d2a18 4832 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4833 fi
e6cc62c6 4834
10f2d63a 4835else
e6cc62c6 4836
e46d2a18 4837 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
e46d2a18 4844 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4845
e6cc62c6 4846fi;
10f2d63a 4847
e46d2a18 4848 eval "$ac_cv_use_log"
10f2d63a 4849 if test "$no_cache" != 1; then
e46d2a18 4850 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4851 fi
4852
e46d2a18 4853 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
10f2d63a 4856 else
e6cc62c6
VS
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
10f2d63a 4859 fi
e6cc62c6 4860
10f2d63a 4861
5005acfe 4862 enablestring=
e46d2a18
VS
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 4865 no_cache=0
e46d2a18
VS
4866 # Check whether --enable-longlong or --disable-longlong was given.
4867if test "${enable_longlong+set}" = set; then
4868 enableval="$enable_longlong"
e6cc62c6 4869
1e6feb95 4870 if test "$enableval" = yes; then
e46d2a18 4871 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 4872 else
e46d2a18 4873 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 4874 fi
e6cc62c6 4875
1e6feb95 4876else
e6cc62c6 4877
e46d2a18 4878 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
e46d2a18 4885 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 4886
e6cc62c6 4887fi;
1e6feb95 4888
e46d2a18 4889 eval "$ac_cv_use_longlong"
1e6feb95 4890 if test "$no_cache" != 1; then
e46d2a18 4891 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
4892 fi
4893
e46d2a18
VS
4894 if test "$wxUSE_LONGLONG" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-mimetype or --disable-mimetype was given.
4908if test "${enable_mimetype+set}" = set; then
4909 enableval="$enable_mimetype"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4913 else
4914 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4927
4928fi;
4929
4930 eval "$ac_cv_use_mimetype"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
1e6feb95 4938 else
e6cc62c6
VS
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
1e6feb95 4941 fi
e6cc62c6 4942
1e6feb95 4943
5005acfe 4944 enablestring=
e6cc62c6
VS
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4947 no_cache=0
4948 # Check whether --enable-mslu or --disable-mslu was given.
4949if test "${enable_mslu+set}" = set; then
4950 enableval="$enable_mslu"
e6cc62c6 4951
a72a4bfa
VS
4952 if test "$enableval" = yes; then
4953 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4954 else
4955 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4956 fi
e6cc62c6 4957
a72a4bfa 4958else
e6cc62c6 4959
a72a4bfa
VS
4960 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4968
e6cc62c6 4969fi;
a72a4bfa
VS
4970
4971 eval "$ac_cv_use_mslu"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
a72a4bfa 4979 else
e6cc62c6
VS
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
a72a4bfa 4982 fi
e6cc62c6 4983
a72a4bfa 4984
5005acfe 4985 enablestring=
e46d2a18
VS
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 4988 no_cache=0
e46d2a18
VS
4989 # Check whether --enable-snglinst or --disable-snglinst was given.
4990if test "${enable_snglinst+set}" = set; then
4991 enableval="$enable_snglinst"
e6cc62c6 4992
1e6feb95 4993 if test "$enableval" = yes; then
e46d2a18 4994 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 4995 else
e46d2a18 4996 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 4997 fi
e6cc62c6 4998
10f2d63a 4999else
e6cc62c6 5000
e46d2a18 5001 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
e46d2a18 5008 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5009
e6cc62c6 5010fi;
10f2d63a 5011
e46d2a18 5012 eval "$ac_cv_use_snglinst"
10f2d63a 5013 if test "$no_cache" != 1; then
e46d2a18 5014 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5015 fi
5016
e46d2a18
VS
5017 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-streams or --disable-streams was given.
5031if test "${enable_streams+set}" = set; then
5032 enableval="$enable_streams"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_streams='wxUSE_STREAMS=yes'
5036 else
5037 ac_cv_use_streams='wxUSE_STREAMS=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5050
5051fi;
5052
5053 eval "$ac_cv_use_streams"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
10f2d63a 5061 else
e6cc62c6
VS
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
10f2d63a 5064 fi
e6cc62c6 5065
10f2d63a 5066
5005acfe 5067 enablestring=
e6cc62c6
VS
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5070 no_cache=0
5071 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5072if test "${enable_std_iostreams+set}" = set; then
5073 enableval="$enable_std_iostreams"
e6cc62c6 5074
10f2d63a
VZ
5075 if test "$enableval" = yes; then
5076 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5077 else
5078 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5079 fi
e6cc62c6 5080
10f2d63a 5081else
e6cc62c6 5082
10f2d63a
VZ
5083 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5091
e6cc62c6 5092fi;
10f2d63a
VZ
5093
5094 eval "$ac_cv_use_std_iostreams"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
10f2d63a 5102 else
e6cc62c6
VS
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
10f2d63a 5105 fi
e6cc62c6 5106
10f2d63a 5107
5005acfe 5108 enablestring=
e46d2a18
VS
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5111 no_cache=0
e46d2a18
VS
5112 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5113if test "${enable_stopwatch+set}" = set; then
5114 enableval="$enable_stopwatch"
e6cc62c6 5115
24528b0c 5116 if test "$enableval" = yes; then
e46d2a18 5117 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5118 else
e46d2a18 5119 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5120 fi
e6cc62c6 5121
24528b0c 5122else
e6cc62c6 5123
e46d2a18 5124 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
e46d2a18 5131 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5132
e6cc62c6 5133fi;
24528b0c 5134
e46d2a18 5135 eval "$ac_cv_use_stopwatch"
24528b0c 5136 if test "$no_cache" != 1; then
e46d2a18 5137 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5138 fi
5139
e46d2a18 5140 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
24528b0c 5143 else
e6cc62c6
VS
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
24528b0c 5146 fi
e6cc62c6 5147
24528b0c 5148
5005acfe 5149 enablestring=
e46d2a18
VS
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5152 no_cache=0
e46d2a18
VS
5153 # Check whether --enable-system_options or --disable-system_options was given.
5154if test "${enable_system_options+set}" = set; then
5155 enableval="$enable_system_options"
e6cc62c6 5156
10f2d63a 5157 if test "$enableval" = yes; then
e46d2a18 5158 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5159 else
e46d2a18 5160 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5161 fi
e6cc62c6 5162
10f2d63a 5163else
e6cc62c6 5164
e46d2a18 5165 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
e46d2a18 5172 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5173
e6cc62c6 5174fi;
10f2d63a 5175
e46d2a18 5176 eval "$ac_cv_use_system_options"
10f2d63a 5177 if test "$no_cache" != 1; then
e46d2a18 5178 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5179 fi
5180
e46d2a18 5181 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
10f2d63a 5184 else
e6cc62c6
VS
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
10f2d63a 5187 fi
e6cc62c6 5188
10f2d63a 5189
5005acfe 5190 enablestring=
e46d2a18
VS
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5193 no_cache=0
e46d2a18
VS
5194 # Check whether --enable-textbuf or --disable-textbuf was given.
5195if test "${enable_textbuf+set}" = set; then
5196 enableval="$enable_textbuf"
e6cc62c6 5197
10f2d63a 5198 if test "$enableval" = yes; then
e46d2a18 5199 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5200 else
e46d2a18 5201 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5202 fi
e6cc62c6 5203
10f2d63a 5204else
e6cc62c6 5205
e46d2a18 5206 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
e46d2a18 5213 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5214
e6cc62c6 5215fi;
10f2d63a 5216
e46d2a18 5217 eval "$ac_cv_use_textbuf"
10f2d63a 5218 if test "$no_cache" != 1; then
e46d2a18 5219 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5220 fi
5221
e46d2a18 5222 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
10f2d63a 5225 else
e6cc62c6
VS
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
10f2d63a 5228 fi
e6cc62c6 5229
10f2d63a 5230
5005acfe 5231 enablestring=
e46d2a18
VS
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5234 no_cache=0
e46d2a18
VS
5235 # Check whether --enable-textfile or --disable-textfile was given.
5236if test "${enable_textfile+set}" = set; then
5237 enableval="$enable_textfile"
e6cc62c6 5238
10f2d63a 5239 if test "$enableval" = yes; then
e46d2a18 5240 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5241 else
e46d2a18 5242 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5243 fi
e6cc62c6 5244
10f2d63a 5245else
e6cc62c6 5246
e46d2a18 5247 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
e46d2a18 5254 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5255
e6cc62c6 5256fi;
10f2d63a 5257
e46d2a18 5258 eval "$ac_cv_use_textfile"
10f2d63a 5259 if test "$no_cache" != 1; then
e46d2a18 5260 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5261 fi
5262
e46d2a18 5263 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
10f2d63a 5266 else
e6cc62c6
VS
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
10f2d63a 5269 fi
e6cc62c6 5270
8284b0c5 5271
5005acfe 5272 enablestring=
e46d2a18
VS
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5275 no_cache=0
e46d2a18
VS
5276 # Check whether --enable-timer or --disable-timer was given.
5277if test "${enable_timer+set}" = set; then
5278 enableval="$enable_timer"
e6cc62c6 5279
eb4efbdc 5280 if test "$enableval" = yes; then
e46d2a18 5281 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5282 else
e46d2a18 5283 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5284 fi
e6cc62c6 5285
eb4efbdc 5286else
e6cc62c6 5287
e46d2a18 5288 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
e46d2a18 5295 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5296
e6cc62c6 5297fi;
eb4efbdc 5298
e46d2a18 5299 eval "$ac_cv_use_timer"
eb4efbdc 5300 if test "$no_cache" != 1; then
e46d2a18 5301 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5302 fi
5303
e46d2a18 5304 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
eb4efbdc 5307 else
e6cc62c6
VS
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
eb4efbdc 5310 fi
e6cc62c6 5311
eb4efbdc 5312
5005acfe 5313 enablestring=
e46d2a18
VS
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5316 no_cache=0
e46d2a18
VS
5317 # Check whether --enable-unicode or --disable-unicode was given.
5318if test "${enable_unicode+set}" = set; then
5319 enableval="$enable_unicode"
e6cc62c6 5320
4f3c5f06 5321 if test "$enableval" = yes; then
e46d2a18 5322 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5323 else
e46d2a18 5324 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5325 fi
e6cc62c6 5326
4f3c5f06 5327else
e6cc62c6 5328
e46d2a18 5329 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
e46d2a18 5336 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5337
e6cc62c6 5338fi;
4f3c5f06 5339
e46d2a18 5340 eval "$ac_cv_use_unicode"
4f3c5f06 5341 if test "$no_cache" != 1; then
e46d2a18 5342 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5343 fi
5344
e46d2a18 5345 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
4f3c5f06 5348 else
e6cc62c6
VS
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
4f3c5f06 5351 fi
e6cc62c6 5352
52127426 5353
e46d2a18
VS
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-wave or --disable-wave was given.
5359if test "${enable_wave+set}" = set; then
5360 enableval="$enable_wave"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_wave='wxUSE_WAVE=yes'
5364 else
5365 ac_cv_use_wave='wxUSE_WAVE=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5378
5379fi;
5380
5381 eval "$ac_cv_use_wave"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_WAVE" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
8284b0c5 5394
5005acfe 5395 enablestring=
e46d2a18
VS
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5398 no_cache=0
e46d2a18
VS
5399 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5400if test "${enable_wxprintfv+set}" = set; then
5401 enableval="$enable_wxprintfv"
e6cc62c6 5402
1e6feb95 5403 if test "$enableval" = yes; then
e46d2a18 5404 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5405 else
e46d2a18 5406 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5407 fi
e6cc62c6 5408
1e6feb95 5409else
e6cc62c6 5410
e46d2a18 5411 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
e46d2a18 5418 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5419
e6cc62c6 5420fi;
1e6feb95 5421
e46d2a18 5422 eval "$ac_cv_use_wxprintfv"
1e6feb95 5423 if test "$no_cache" != 1; then
e46d2a18 5424 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5425 fi
5426
e46d2a18 5427 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
1e6feb95 5430 else
e6cc62c6
VS
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
1e6feb95 5433 fi
e6cc62c6 5434
1e6feb95 5435
5005acfe 5436 enablestring=
e46d2a18
VS
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5439 no_cache=0
e46d2a18
VS
5440 # Check whether --enable-zipstream or --disable-zipstream was given.
5441if test "${enable_zipstream+set}" = set; then
5442 enableval="$enable_zipstream"
e6cc62c6 5443
3e44f09d 5444 if test "$enableval" = yes; then
e46d2a18 5445 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5446 else
e46d2a18 5447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5448 fi
e6cc62c6 5449
3e44f09d 5450else
e6cc62c6 5451
e46d2a18 5452 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
e46d2a18 5459 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5460
e6cc62c6 5461fi;
3e44f09d 5462
e46d2a18 5463 eval "$ac_cv_use_zipstream"
3e44f09d 5464 if test "$no_cache" != 1; then
e46d2a18 5465 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5466 fi
5467
e46d2a18 5468 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
3e44f09d 5471 else
e6cc62c6
VS
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
3e44f09d 5474 fi
e6cc62c6 5475
8284b0c5 5476
7015ef3a
VZ
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-gzstream or --disable-gzstream was given.
5482if test "${enable_gzstream+set}" = set; then
5483 enableval="$enable_gzstream"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5487 else
5488 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5501
5502fi;
5503
5504 eval "$ac_cv_use_gzstream"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_GZSTREAM" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
52127426 5518
5005acfe 5519 enablestring=
e6cc62c6
VS
5520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5521echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5522 no_cache=0
5523 # Check whether --enable-url or --disable-url was given.
5524if test "${enable_url+set}" = set; then
5525 enableval="$enable_url"
e6cc62c6 5526
4cdb0ab0
VS
5527 if test "$enableval" = yes; then
5528 ac_cv_use_url='wxUSE_URL=yes'
5529 else
5530 ac_cv_use_url='wxUSE_URL=no'
5531 fi
e6cc62c6 5532
4cdb0ab0 5533else
e6cc62c6 5534
4cdb0ab0
VS
5535 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5536 if test "x$LINE" != x ; then
5537 eval "DEFAULT_$LINE"
5538 else
5539 no_cache=1
5540 fi
5541
5542 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5543
e6cc62c6 5544fi;
4cdb0ab0
VS
5545
5546 eval "$ac_cv_use_url"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5552 echo "$as_me:$LINENO: result: yes" >&5
5553echo "${ECHO_T}yes" >&6
4cdb0ab0 5554 else
e6cc62c6
VS
5555 echo "$as_me:$LINENO: result: no" >&5
5556echo "${ECHO_T}no" >&6
4cdb0ab0 5557 fi
e6cc62c6 5558
4cdb0ab0 5559
5005acfe 5560 enablestring=
e6cc62c6
VS
5561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5562echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5563 no_cache=0
5564 # Check whether --enable-protocol or --disable-protocol was given.
5565if test "${enable_protocol+set}" = set; then
5566 enableval="$enable_protocol"
e6cc62c6 5567
4cdb0ab0
VS
5568 if test "$enableval" = yes; then
5569 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5570 else
5571 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5572 fi
e6cc62c6 5573
4cdb0ab0 5574else
e6cc62c6 5575
4cdb0ab0
VS
5576 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5577 if test "x$LINE" != x ; then
5578 eval "DEFAULT_$LINE"
5579 else
5580 no_cache=1
5581 fi
5582
5583 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5584
e6cc62c6 5585fi;
4cdb0ab0
VS
5586
5587 eval "$ac_cv_use_protocol"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5593 echo "$as_me:$LINENO: result: yes" >&5
5594echo "${ECHO_T}yes" >&6
4cdb0ab0 5595 else
e6cc62c6
VS
5596 echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6
4cdb0ab0 5598 fi
e6cc62c6 5599
4cdb0ab0 5600
5005acfe 5601 enablestring=
e6cc62c6
VS
5602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5603echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5604 no_cache=0
5605 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5606if test "${enable_protocol_http+set}" = set; then
5607 enableval="$enable_protocol_http"
e6cc62c6 5608
4cdb0ab0
VS
5609 if test "$enableval" = yes; then
5610 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5611 else
5612 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5613 fi
e6cc62c6 5614
4cdb0ab0 5615else
e6cc62c6 5616
4cdb0ab0
VS
5617 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5618 if test "x$LINE" != x ; then
5619 eval "DEFAULT_$LINE"
5620 else
5621 no_cache=1
5622 fi
5623
5624 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5625
e6cc62c6 5626fi;
4cdb0ab0
VS
5627
5628 eval "$ac_cv_use_protocol_http"
5629 if test "$no_cache" != 1; then
5630 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5631 fi
5632
5633 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5634 echo "$as_me:$LINENO: result: yes" >&5
5635echo "${ECHO_T}yes" >&6
4cdb0ab0 5636 else
e6cc62c6
VS
5637 echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
4cdb0ab0 5639 fi
e6cc62c6 5640
4cdb0ab0 5641
5005acfe 5642 enablestring=
e6cc62c6
VS
5643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5644echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5645 no_cache=0
5646 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5647if test "${enable_protocol_ftp+set}" = set; then
5648 enableval="$enable_protocol_ftp"
e6cc62c6 5649
4cdb0ab0
VS
5650 if test "$enableval" = yes; then
5651 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5652 else
5653 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5654 fi
e6cc62c6 5655
4cdb0ab0 5656else
e6cc62c6 5657
4cdb0ab0
VS
5658 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5666
e6cc62c6 5667fi;
4cdb0ab0
VS
5668
5669 eval "$ac_cv_use_protocol_ftp"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5675 echo "$as_me:$LINENO: result: yes" >&5
5676echo "${ECHO_T}yes" >&6
4cdb0ab0 5677 else
e6cc62c6
VS
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
4cdb0ab0 5680 fi
e6cc62c6 5681
4cdb0ab0 5682
5005acfe 5683 enablestring=
e6cc62c6
VS
5684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5685echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5686 no_cache=0
5687 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5688if test "${enable_protocol_file+set}" = set; then
5689 enableval="$enable_protocol_file"
e6cc62c6 5690
4cdb0ab0
VS
5691 if test "$enableval" = yes; then
5692 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5693 else
5694 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5695 fi
e6cc62c6 5696
4cdb0ab0 5697else
e6cc62c6 5698
4cdb0ab0
VS
5699 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5700 if test "x$LINE" != x ; then
5701 eval "DEFAULT_$LINE"
5702 else
5703 no_cache=1
5704 fi
5705
5706 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5707
e6cc62c6 5708fi;
4cdb0ab0
VS
5709
5710 eval "$ac_cv_use_protocol_file"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5716 echo "$as_me:$LINENO: result: yes" >&5
5717echo "${ECHO_T}yes" >&6
4cdb0ab0 5718 else
e6cc62c6
VS
5719 echo "$as_me:$LINENO: result: no" >&5
5720echo "${ECHO_T}no" >&6
4cdb0ab0 5721 fi
e6cc62c6 5722
52127426 5723
8284b0c5
MB
5724
5725
5726
5005acfe 5727 enablestring=
e6cc62c6
VS
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5730 no_cache=0
5731 # Check whether --enable-threads or --disable-threads was given.
5732if test "${enable_threads+set}" = set; then
5733 enableval="$enable_threads"
e6cc62c6 5734
10f2d63a
VZ
5735 if test "$enableval" = yes; then
5736 ac_cv_use_threads='wxUSE_THREADS=yes'
5737 else
5738 ac_cv_use_threads='wxUSE_THREADS=no'
5739 fi
e6cc62c6 5740
10f2d63a 5741else
e6cc62c6 5742
10f2d63a
VZ
5743 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5751
e6cc62c6 5752fi;
10f2d63a
VZ
5753
5754 eval "$ac_cv_use_threads"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
10f2d63a 5762 else
e6cc62c6
VS
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
10f2d63a 5765 fi
e6cc62c6 5766
10f2d63a 5767
b12915c1
VZ
5768if test "$wxUSE_GUI" = "yes"; then
5769
8284b0c5
MB
5770
5771
5005acfe 5772 enablestring=
e6cc62c6
VS
5773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5774echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5775 no_cache=0
5776 # Check whether --enable-docview or --disable-docview was given.
5777if test "${enable_docview+set}" = set; then
5778 enableval="$enable_docview"
e6cc62c6 5779
10f2d63a
VZ
5780 if test "$enableval" = yes; then
5781 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5782 else
5783 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5784 fi
e6cc62c6 5785
10f2d63a 5786else
e6cc62c6 5787
10f2d63a
VZ
5788 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5789 if test "x$LINE" != x ; then
5790 eval "DEFAULT_$LINE"
5791 else
5792 no_cache=1
5793 fi
5794
5795 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5796
e6cc62c6 5797fi;
10f2d63a
VZ
5798
5799 eval "$ac_cv_use_docview"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5805 echo "$as_me:$LINENO: result: yes" >&5
5806echo "${ECHO_T}yes" >&6
10f2d63a 5807 else
e6cc62c6
VS
5808 echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
10f2d63a 5810 fi
e6cc62c6 5811
10f2d63a 5812
5005acfe 5813 enablestring=
e6cc62c6
VS
5814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5815echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5816 no_cache=0
5817 # Check whether --enable-help or --disable-help was given.
5818if test "${enable_help+set}" = set; then
5819 enableval="$enable_help"
e6cc62c6 5820
10f2d63a
VZ
5821 if test "$enableval" = yes; then
5822 ac_cv_use_help='wxUSE_HELP=yes'
5823 else
5824 ac_cv_use_help='wxUSE_HELP=no'
5825 fi
e6cc62c6 5826
10f2d63a 5827else
e6cc62c6 5828
10f2d63a
VZ
5829 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5830 if test "x$LINE" != x ; then
5831 eval "DEFAULT_$LINE"
5832 else
5833 no_cache=1
5834 fi
5835
5836 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5837
e6cc62c6 5838fi;
10f2d63a
VZ
5839
5840 eval "$ac_cv_use_help"
5841 if test "$no_cache" != 1; then
5842 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5843 fi
5844
5845 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5846 echo "$as_me:$LINENO: result: yes" >&5
5847echo "${ECHO_T}yes" >&6
10f2d63a 5848 else
e6cc62c6
VS
5849 echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
10f2d63a 5851 fi
e6cc62c6 5852
10f2d63a 5853
5005acfe 5854 enablestring=
e6cc62c6
VS
5855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5856echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5857 no_cache=0
5858 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5859if test "${enable_mshtmlhelp+set}" = set; then
5860 enableval="$enable_mshtmlhelp"
e6cc62c6 5861
29fd3c0c
VS
5862 if test "$enableval" = yes; then
5863 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5864 else
5865 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5866 fi
e6cc62c6 5867
29fd3c0c 5868else
e6cc62c6 5869
29fd3c0c
VS
5870 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5871 if test "x$LINE" != x ; then
5872 eval "DEFAULT_$LINE"
5873 else
5874 no_cache=1
5875 fi
5876
5877 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5878
e6cc62c6 5879fi;
29fd3c0c
VS
5880
5881 eval "$ac_cv_use_mshtmlhelp"
5882 if test "$no_cache" != 1; then
5883 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5884 fi
5885
5886 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5887 echo "$as_me:$LINENO: result: yes" >&5
5888echo "${ECHO_T}yes" >&6
29fd3c0c 5889 else
e6cc62c6
VS
5890 echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
29fd3c0c 5892 fi
e6cc62c6 5893
29fd3c0c 5894
5005acfe 5895 enablestring=
e6cc62c6
VS
5896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5897echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5898 no_cache=0
5899 # Check whether --enable-html or --disable-html was given.
5900if test "${enable_html+set}" = set; then
5901 enableval="$enable_html"
e6cc62c6 5902
3379ed37
VZ
5903 if test "$enableval" = yes; then
5904 ac_cv_use_html='wxUSE_HTML=yes'
5905 else
5906 ac_cv_use_html='wxUSE_HTML=no'
5907 fi
e6cc62c6 5908
3379ed37 5909else
e6cc62c6 5910
3379ed37
VZ
5911 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5919
e6cc62c6 5920fi;
3379ed37
VZ
5921
5922 eval "$ac_cv_use_html"
5923 if test "$no_cache" != 1; then
5924 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5925 fi
5926
5927 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5928 echo "$as_me:$LINENO: result: yes" >&5
5929echo "${ECHO_T}yes" >&6
3379ed37 5930 else
e6cc62c6
VS
5931 echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
3379ed37 5933 fi
e6cc62c6 5934
3379ed37 5935
5005acfe 5936 enablestring=
e6cc62c6
VS
5937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5938echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5939 no_cache=0
5940 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5941if test "${enable_htmlhelp+set}" = set; then
5942 enableval="$enable_htmlhelp"
e6cc62c6 5943
3379ed37
VZ
5944 if test "$enableval" = yes; then
5945 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5946 else
5947 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5948 fi
e6cc62c6 5949
3379ed37 5950else
e6cc62c6 5951
3379ed37
VZ
5952 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5953 if test "x$LINE" != x ; then
5954 eval "DEFAULT_$LINE"
5955 else
5956 no_cache=1
5957 fi
5958
5959 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5960
e6cc62c6 5961fi;
3379ed37
VZ
5962
5963 eval "$ac_cv_use_htmlhelp"
5964 if test "$no_cache" != 1; then
5965 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5966 fi
5967
5968 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5969 echo "$as_me:$LINENO: result: yes" >&5
5970echo "${ECHO_T}yes" >&6
3379ed37 5971 else
e6cc62c6
VS
5972 echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6
3379ed37 5974 fi
e6cc62c6 5975
3379ed37 5976
5005acfe 5977 enablestring=
e6cc62c6
VS
5978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5979echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5980 no_cache=0
5981 # Check whether --enable-constraints or --disable-constraints was given.
5982if test "${enable_constraints+set}" = set; then
5983 enableval="$enable_constraints"
e6cc62c6 5984
10f2d63a
VZ
5985 if test "$enableval" = yes; then
5986 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5987 else
5988 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5989 fi
e6cc62c6 5990
10f2d63a 5991else
e6cc62c6 5992
10f2d63a
VZ
5993 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5994 if test "x$LINE" != x ; then
5995 eval "DEFAULT_$LINE"
5996 else
5997 no_cache=1
5998 fi
5999
6000 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6001
e6cc62c6 6002fi;
10f2d63a
VZ
6003
6004 eval "$ac_cv_use_constraints"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6010 echo "$as_me:$LINENO: result: yes" >&5
6011echo "${ECHO_T}yes" >&6
10f2d63a 6012 else
e6cc62c6
VS
6013 echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6
10f2d63a 6015 fi
e6cc62c6 6016
10f2d63a 6017
5005acfe 6018 enablestring=
e6cc62c6
VS
6019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6020echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6021 no_cache=0
6022 # Check whether --enable-printarch or --disable-printarch was given.
6023if test "${enable_printarch+set}" = set; then
6024 enableval="$enable_printarch"
e6cc62c6 6025
10f2d63a
VZ
6026 if test "$enableval" = yes; then
6027 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6028 else
6029 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6030 fi
e6cc62c6 6031
10f2d63a 6032else
e6cc62c6 6033
10f2d63a
VZ
6034 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6035 if test "x$LINE" != x ; then
6036 eval "DEFAULT_$LINE"
6037 else
6038 no_cache=1
6039 fi
6040
6041 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6042
e6cc62c6 6043fi;
10f2d63a
VZ
6044
6045 eval "$ac_cv_use_printarch"
6046 if test "$no_cache" != 1; then
6047 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6048 fi
6049
6050 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6051 echo "$as_me:$LINENO: result: yes" >&5
6052echo "${ECHO_T}yes" >&6
10f2d63a 6053 else
e6cc62c6
VS
6054 echo "$as_me:$LINENO: result: no" >&5
6055echo "${ECHO_T}no" >&6
10f2d63a 6056 fi
e6cc62c6 6057
10f2d63a 6058
5005acfe 6059 enablestring=
e6cc62c6
VS
6060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6061echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6062 no_cache=0
6063 # Check whether --enable-mdi or --disable-mdi was given.
6064if test "${enable_mdi+set}" = set; then
6065 enableval="$enable_mdi"
e6cc62c6 6066
10f2d63a
VZ
6067 if test "$enableval" = yes; then
6068 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6069 else
6070 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6071 fi
e6cc62c6 6072
10f2d63a 6073else
e6cc62c6 6074
10f2d63a
VZ
6075 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6083
e6cc62c6 6084fi;
10f2d63a
VZ
6085
6086 eval "$ac_cv_use_mdi"
6087 if test "$no_cache" != 1; then
6088 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6089 fi
6090
6091 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6092 echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6
10f2d63a 6094 else
e6cc62c6
VS
6095 echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
10f2d63a 6097 fi
e6cc62c6 6098
698dcdb6 6099
5005acfe 6100 enablestring=
e6cc62c6
VS
6101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6102echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6103 no_cache=0
6104 # Check whether --enable-loggui or --disable-loggui was given.
6105if test "${enable_loggui+set}" = set; then
6106 enableval="$enable_loggui"
e6cc62c6 6107
1e6feb95
VZ
6108 if test "$enableval" = yes; then
6109 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6110 else
6111 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6112 fi
e6cc62c6 6113
1e6feb95 6114else
e6cc62c6 6115
1e6feb95
VZ
6116 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6124
e6cc62c6 6125fi;
1e6feb95
VZ
6126
6127 eval "$ac_cv_use_loggui"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6133 echo "$as_me:$LINENO: result: yes" >&5
6134echo "${ECHO_T}yes" >&6
1e6feb95 6135 else
e6cc62c6
VS
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
1e6feb95 6138 fi
e6cc62c6 6139
1e6feb95 6140
5005acfe 6141 enablestring=
e6cc62c6
VS
6142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6143echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6144 no_cache=0
6145 # Check whether --enable-logwin or --disable-logwin was given.
6146if test "${enable_logwin+set}" = set; then
6147 enableval="$enable_logwin"
e6cc62c6 6148
1e6feb95
VZ
6149 if test "$enableval" = yes; then
6150 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6151 else
6152 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6153 fi
e6cc62c6 6154
1e6feb95 6155else
e6cc62c6 6156
1e6feb95
VZ
6157 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6165
e6cc62c6 6166fi;
1e6feb95
VZ
6167
6168 eval "$ac_cv_use_logwin"
6169 if test "$no_cache" != 1; then
6170 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6171 fi
6172
6173 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6174 echo "$as_me:$LINENO: result: yes" >&5
6175echo "${ECHO_T}yes" >&6
1e6feb95 6176 else
e6cc62c6
VS
6177 echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
1e6feb95 6179 fi
e6cc62c6 6180
1e6feb95 6181
5005acfe 6182 enablestring=
e6cc62c6
VS
6183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6184echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6185 no_cache=0
6186 # Check whether --enable-logdialog or --disable-logdialog was given.
6187if test "${enable_logdialog+set}" = set; then
6188 enableval="$enable_logdialog"
e6cc62c6 6189
69d27ff7
MB
6190 if test "$enableval" = yes; then
6191 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6192 else
6193 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6194 fi
e6cc62c6 6195
69d27ff7 6196else
e6cc62c6 6197
69d27ff7
MB
6198 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6206
e6cc62c6 6207fi;
69d27ff7
MB
6208
6209 eval "$ac_cv_use_logdialog"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6215 echo "$as_me:$LINENO: result: yes" >&5
6216echo "${ECHO_T}yes" >&6
69d27ff7 6217 else
e6cc62c6
VS
6218 echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6
69d27ff7 6220 fi
e6cc62c6 6221
8284b0c5 6222
52127426 6223
5005acfe 6224 enablestring=
e6cc62c6
VS
6225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6226echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-postscript or --disable-postscript was given.
6229if test "${enable_postscript+set}" = set; then
6230 enableval="$enable_postscript"
e6cc62c6 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6234 else
6235 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6236 fi
e6cc62c6 6237
10f2d63a 6238else
e6cc62c6 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6248
e6cc62c6 6249fi;
10f2d63a
VZ
6250
6251 eval "$ac_cv_use_postscript"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6257 echo "$as_me:$LINENO: result: yes" >&5
6258echo "${ECHO_T}yes" >&6
10f2d63a 6259 else
e6cc62c6
VS
6260 echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
10f2d63a 6262 fi
e6cc62c6 6263
8284b0c5
MB
6264
6265
52127426 6266
8284b0c5 6267
5005acfe 6268 enablestring=
e6cc62c6
VS
6269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6270echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6271 no_cache=0
3c907f20
VZ
6272 # Check whether --enable-prologio or --disable-prologio was given.
6273if test "${enable_prologio+set}" = set; then
6274 enableval="$enable_prologio"
e6cc62c6 6275
10f2d63a 6276 if test "$enableval" = yes; then
3c907f20 6277 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6278 else
3c907f20 6279 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6280 fi
e6cc62c6 6281
10f2d63a 6282else
e6cc62c6 6283
3c907f20 6284 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6285 if test "x$LINE" != x ; then
6286 eval "DEFAULT_$LINE"
6287 else
6288 no_cache=1
6289 fi
6290
3c907f20 6291 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6292
e6cc62c6 6293fi;
10f2d63a 6294
3c907f20 6295 eval "$ac_cv_use_prologio"
10f2d63a 6296 if test "$no_cache" != 1; then
3c907f20 6297 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6298 fi
6299
3c907f20 6300 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6301 echo "$as_me:$LINENO: result: yes" >&5
6302echo "${ECHO_T}yes" >&6
10f2d63a 6303 else
e6cc62c6
VS
6304 echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6
10f2d63a 6306 fi
e6cc62c6 6307
8284b0c5 6308
5005acfe 6309 enablestring=
e6cc62c6
VS
6310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6311echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6312 no_cache=0
3c907f20
VZ
6313 # Check whether --enable-resources or --disable-resources was given.
6314if test "${enable_resources+set}" = set; then
6315 enableval="$enable_resources"
e6cc62c6 6316
10f2d63a 6317 if test "$enableval" = yes; then
3c907f20 6318 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6319 else
3c907f20 6320 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6321 fi
e6cc62c6 6322
10f2d63a 6323else
e6cc62c6 6324
3c907f20 6325 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6326 if test "x$LINE" != x ; then
6327 eval "DEFAULT_$LINE"
6328 else
6329 no_cache=1
6330 fi
6331
3c907f20 6332 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6333
e6cc62c6 6334fi;
10f2d63a 6335
3c907f20 6336 eval "$ac_cv_use_resources"
10f2d63a 6337 if test "$no_cache" != 1; then
3c907f20 6338 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6339 fi
6340
3c907f20 6341 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6342 echo "$as_me:$LINENO: result: yes" >&5
6343echo "${ECHO_T}yes" >&6
10f2d63a 6344 else
e6cc62c6
VS
6345 echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6
10f2d63a 6347 fi
e6cc62c6 6348
8284b0c5
MB
6349
6350
52127426 6351
5005acfe 6352 enablestring=
e6cc62c6
VS
6353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6354echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6355 no_cache=0
6356 # Check whether --enable-clipboard or --disable-clipboard was given.
6357if test "${enable_clipboard+set}" = set; then
6358 enableval="$enable_clipboard"
e6cc62c6 6359
10f2d63a
VZ
6360 if test "$enableval" = yes; then
6361 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6362 else
6363 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6364 fi
e6cc62c6 6365
10f2d63a 6366else
e6cc62c6 6367
10f2d63a
VZ
6368 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6376
e6cc62c6 6377fi;
10f2d63a
VZ
6378
6379 eval "$ac_cv_use_clipboard"
6380 if test "$no_cache" != 1; then
6381 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6382 fi
6383
6384 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6385 echo "$as_me:$LINENO: result: yes" >&5
6386echo "${ECHO_T}yes" >&6
10f2d63a 6387 else
e6cc62c6
VS
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
10f2d63a 6390 fi
e6cc62c6 6391
10f2d63a 6392
5005acfe 6393 enablestring=
e6cc62c6
VS
6394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6395echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6396 no_cache=0
6397 # Check whether --enable-dnd or --disable-dnd was given.
6398if test "${enable_dnd+set}" = set; then
6399 enableval="$enable_dnd"
e6cc62c6 6400
10f2d63a
VZ
6401 if test "$enableval" = yes; then
6402 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6403 else
6404 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6405 fi
e6cc62c6 6406
10f2d63a 6407else
e6cc62c6 6408
10f2d63a
VZ
6409 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6410 if test "x$LINE" != x ; then
6411 eval "DEFAULT_$LINE"
6412 else
6413 no_cache=1
6414 fi
6415
6416 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6417
e6cc62c6 6418fi;
10f2d63a
VZ
6419
6420 eval "$ac_cv_use_dnd"
6421 if test "$no_cache" != 1; then
6422 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6423 fi
6424
6425 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6426 echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6
10f2d63a 6428 else
e6cc62c6
VS
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
10f2d63a 6431 fi
e6cc62c6 6432
10f2d63a 6433
5005acfe 6434 enablestring=
e6cc62c6
VS
6435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6436echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6437 no_cache=0
6438 # Check whether --enable-metafile or --disable-metafile was given.
6439if test "${enable_metafile+set}" = set; then
6440 enableval="$enable_metafile"
e6cc62c6 6441
b64f0a5f
RL
6442 if test "$enableval" = yes; then
6443 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6444 else
6445 ac_cv_use_metafile='wxUSE_METAFILE=no'
6446 fi
e6cc62c6 6447
b64f0a5f 6448else
e6cc62c6 6449
b64f0a5f
RL
6450 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6458
e6cc62c6 6459fi;
b64f0a5f
RL
6460
6461 eval "$ac_cv_use_metafile"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6467 echo "$as_me:$LINENO: result: yes" >&5
6468echo "${ECHO_T}yes" >&6
b64f0a5f 6469 else
e6cc62c6
VS
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
b64f0a5f 6472 fi
e6cc62c6 6473
52127426 6474
8284b0c5 6475
52127426 6476
8284b0c5 6477
5005acfe 6478 enablestring=
e6cc62c6
VS
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6481 no_cache=0
6482 # Check whether --enable-controls or --disable-controls was given.
6483if test "${enable_controls+set}" = set; then
6484 enableval="$enable_controls"
e6cc62c6 6485
10f2d63a
VZ
6486 if test "$enableval" = yes; then
6487 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6488 else
6489 ac_cv_use_controls='wxUSE_CONTROLS=no'
6490 fi
e6cc62c6 6491
10f2d63a 6492else
e6cc62c6 6493
10f2d63a
VZ
6494 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6502
e6cc62c6 6503fi;
10f2d63a
VZ
6504
6505 eval "$ac_cv_use_controls"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
10f2d63a 6513 else
e6cc62c6
VS
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
10f2d63a 6516 fi
e6cc62c6 6517
10f2d63a
VZ
6518
6519if test "$wxUSE_CONTROLS" = "yes"; then
6520 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6521 DEFAULT_wxUSE_BMPBUTTON=yes
6522 DEFAULT_wxUSE_BUTTON=yes
6523 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6524 DEFAULT_wxUSE_CARET=yes
6525 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6526 DEFAULT_wxUSE_CHECKBOX=yes
6527 DEFAULT_wxUSE_CHECKLISTBOX=yes
6528 DEFAULT_wxUSE_CHOICE=yes
6529 DEFAULT_wxUSE_GAUGE=yes
6530 DEFAULT_wxUSE_GRID=yes
10f2d63a 6531 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6532 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6533 DEFAULT_wxUSE_LISTBOX=yes
6534 DEFAULT_wxUSE_LISTCTRL=yes
6535 DEFAULT_wxUSE_NOTEBOOK=yes
6536 DEFAULT_wxUSE_RADIOBOX=yes
6537 DEFAULT_wxUSE_RADIOBTN=yes
6538 DEFAULT_wxUSE_SASH=yes
6539 DEFAULT_wxUSE_SCROLLBAR=yes
6540 DEFAULT_wxUSE_SLIDER=yes
6541 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6542 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6543 DEFAULT_wxUSE_SPLITTER=yes
6544 DEFAULT_wxUSE_STATBMP=yes
6545 DEFAULT_wxUSE_STATBOX=yes
6546 DEFAULT_wxUSE_STATLINE=yes
6547 DEFAULT_wxUSE_STATUSBAR=yes
6548 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6549 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6550 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6551 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6552 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6553 DEFAULT_wxUSE_TOOLTIPS=yes
6554 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6555 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6556 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6557elif test "$wxUSE_CONTROLS" = "no"; then
6558 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6559 DEFAULT_wxUSE_BMPBUTTON=no
6560 DEFAULT_wxUSE_BUTTON=no
6561 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6562 DEFAULT_wxUSE_CARET=no
6563 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6564 DEFAULT_wxUSE_CHECKBOX=no
6565 DEFAULT_wxUSE_CHECKLISTBOX=no
6566 DEFAULT_wxUSE_CHOICE=no
6567 DEFAULT_wxUSE_GAUGE=no
6568 DEFAULT_wxUSE_GRID=no
10f2d63a 6569 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6570 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6571 DEFAULT_wxUSE_LISTBOX=no
6572 DEFAULT_wxUSE_LISTCTRL=no
6573 DEFAULT_wxUSE_NOTEBOOK=no
6574 DEFAULT_wxUSE_RADIOBOX=no
6575 DEFAULT_wxUSE_RADIOBTN=no
6576 DEFAULT_wxUSE_SASH=no
6577 DEFAULT_wxUSE_SCROLLBAR=no
6578 DEFAULT_wxUSE_SLIDER=no
6579 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6580 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6581 DEFAULT_wxUSE_SPLITTER=no
6582 DEFAULT_wxUSE_STATBMP=no
6583 DEFAULT_wxUSE_STATBOX=no
6584 DEFAULT_wxUSE_STATLINE=no
6585 DEFAULT_wxUSE_STATUSBAR=no
6586 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6587 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6588 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6589 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6590 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6591 DEFAULT_wxUSE_TOOLTIPS=no
6592 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6593 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6594 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6595fi
6596
ac0c4cc3
DE
6597## FIXME: This is a blatant hack
6598if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6599 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6600 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6601 # Generic notebook requires tab dialog
6602 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6603 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6604 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6605 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6606 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6607fi
6608
8284b0c5 6609
5005acfe 6610 enablestring=
e6cc62c6
VS
6611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6612echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6613 no_cache=0
6614 # Check whether --enable-accel or --disable-accel was given.
6615if test "${enable_accel+set}" = set; then
6616 enableval="$enable_accel"
e6cc62c6 6617
10f2d63a
VZ
6618 if test "$enableval" = yes; then
6619 ac_cv_use_accel='wxUSE_ACCEL=yes'
6620 else
6621 ac_cv_use_accel='wxUSE_ACCEL=no'
6622 fi
e6cc62c6 6623
10f2d63a 6624else
e6cc62c6 6625
10f2d63a
VZ
6626 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6634
e6cc62c6 6635fi;
10f2d63a
VZ
6636
6637 eval "$ac_cv_use_accel"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
10f2d63a 6645 else
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
10f2d63a 6648 fi
e6cc62c6 6649
10f2d63a 6650
5005acfe 6651 enablestring=
e6cc62c6
VS
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6654 no_cache=0
1e6feb95
VZ
6655 # Check whether --enable-button or --disable-button was given.
6656if test "${enable_button+set}" = set; then
6657 enableval="$enable_button"
e6cc62c6 6658
10f2d63a 6659 if test "$enableval" = yes; then
1e6feb95 6660 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6661 else
1e6feb95 6662 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6663 fi
e6cc62c6 6664
10f2d63a 6665else
e6cc62c6 6666
1e6feb95 6667 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
1e6feb95 6674 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6675
e6cc62c6 6676fi;
10f2d63a 6677
1e6feb95 6678 eval "$ac_cv_use_button"
10f2d63a 6679 if test "$no_cache" != 1; then
1e6feb95 6680 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6681 fi
6682
1e6feb95 6683 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
10f2d63a 6686 else
e6cc62c6
VS
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
10f2d63a 6689 fi
e6cc62c6 6690
10f2d63a 6691
5005acfe 6692 enablestring=
e6cc62c6
VS
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6695 no_cache=0
6696 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6697if test "${enable_bmpbutton+set}" = set; then
6698 enableval="$enable_bmpbutton"
e6cc62c6 6699
10f2d63a
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6702 else
6703 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6704 fi
e6cc62c6 6705
10f2d63a 6706else
e6cc62c6 6707
10f2d63a
VZ
6708 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6716
e6cc62c6 6717fi;
10f2d63a
VZ
6718
6719 eval "$ac_cv_use_bmpbutton"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
10f2d63a 6727 else
e6cc62c6
VS
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
10f2d63a 6730 fi
e6cc62c6 6731
10f2d63a 6732
5005acfe 6733 enablestring=
e6cc62c6
VS
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6736 no_cache=0
6737 # Check whether --enable-calendar or --disable-calendar was given.
6738if test "${enable_calendar+set}" = set; then
6739 enableval="$enable_calendar"
e6cc62c6 6740
1e6feb95
VZ
6741 if test "$enableval" = yes; then
6742 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6743 else
6744 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6745 fi
e6cc62c6 6746
1e6feb95 6747else
e6cc62c6 6748
1e6feb95
VZ
6749 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6757
e6cc62c6 6758fi;
1e6feb95
VZ
6759
6760 eval "$ac_cv_use_calendar"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
1e6feb95 6768 else
e6cc62c6
VS
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
1e6feb95 6771 fi
e6cc62c6 6772
1e6feb95 6773
5005acfe 6774 enablestring=
e6cc62c6
VS
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6777 no_cache=0
6778 # Check whether --enable-caret or --disable-caret was given.
6779if test "${enable_caret+set}" = set; then
6780 enableval="$enable_caret"
e6cc62c6 6781
1e6feb95
VZ
6782 if test "$enableval" = yes; then
6783 ac_cv_use_caret='wxUSE_CARET=yes'
6784 else
6785 ac_cv_use_caret='wxUSE_CARET=no'
6786 fi
e6cc62c6 6787
1e6feb95 6788else
e6cc62c6 6789
1e6feb95
VZ
6790 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6798
e6cc62c6 6799fi;
1e6feb95
VZ
6800
6801 eval "$ac_cv_use_caret"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
1e6feb95 6809 else
e6cc62c6
VS
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
1e6feb95 6812 fi
e6cc62c6 6813
1e6feb95 6814
5005acfe 6815 enablestring=
e6cc62c6
VS
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6818 no_cache=0
6819 # Check whether --enable-checkbox or --disable-checkbox was given.
6820if test "${enable_checkbox+set}" = set; then
6821 enableval="$enable_checkbox"
e6cc62c6 6822
10f2d63a
VZ
6823 if test "$enableval" = yes; then
6824 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6825 else
6826 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6827 fi
e6cc62c6 6828
10f2d63a 6829else
e6cc62c6 6830
10f2d63a
VZ
6831 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6839
e6cc62c6 6840fi;
10f2d63a
VZ
6841
6842 eval "$ac_cv_use_checkbox"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
10f2d63a 6850 else
e6cc62c6
VS
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
10f2d63a 6853 fi
e6cc62c6 6854
10f2d63a 6855
5005acfe 6856 enablestring=
e6cc62c6
VS
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6859 no_cache=0
6860 # Check whether --enable-checklst or --disable-checklst was given.
6861if test "${enable_checklst+set}" = set; then
6862 enableval="$enable_checklst"
e6cc62c6 6863
10f2d63a
VZ
6864 if test "$enableval" = yes; then
6865 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6866 else
6867 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6868 fi
e6cc62c6 6869
10f2d63a 6870else
e6cc62c6 6871
10f2d63a
VZ
6872 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6880
e6cc62c6 6881fi;
10f2d63a
VZ
6882
6883 eval "$ac_cv_use_checklst"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
10f2d63a 6891 else
e6cc62c6
VS
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
10f2d63a 6894 fi
e6cc62c6 6895
10f2d63a 6896
5005acfe 6897 enablestring=
e6cc62c6
VS
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6900 no_cache=0
6901 # Check whether --enable-choice or --disable-choice was given.
6902if test "${enable_choice+set}" = set; then
6903 enableval="$enable_choice"
e6cc62c6 6904
10f2d63a
VZ
6905 if test "$enableval" = yes; then
6906 ac_cv_use_choice='wxUSE_CHOICE=yes'
6907 else
6908 ac_cv_use_choice='wxUSE_CHOICE=no'
6909 fi
e6cc62c6 6910
10f2d63a 6911else
e6cc62c6 6912
10f2d63a
VZ
6913 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6921
e6cc62c6 6922fi;
10f2d63a
VZ
6923
6924 eval "$ac_cv_use_choice"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
10f2d63a 6932 else
e6cc62c6
VS
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
10f2d63a 6935 fi
e6cc62c6 6936
10f2d63a 6937
5005acfe 6938 enablestring=
e6cc62c6
VS
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6941 no_cache=0
6942 # Check whether --enable-combobox or --disable-combobox was given.
6943if test "${enable_combobox+set}" = set; then
6944 enableval="$enable_combobox"
e6cc62c6 6945
10f2d63a
VZ
6946 if test "$enableval" = yes; then
6947 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6948 else
6949 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6950 fi
e6cc62c6 6951
10f2d63a 6952else
e6cc62c6 6953
10f2d63a
VZ
6954 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6962
e6cc62c6 6963fi;
10f2d63a
VZ
6964
6965 eval "$ac_cv_use_combobox"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
10f2d63a 6973 else
e6cc62c6
VS
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
10f2d63a 6976 fi
e6cc62c6 6977
10f2d63a 6978
da494b40 6979 enablestring=
e6cc62c6
VS
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6982 no_cache=0
6983 # Check whether --enable-display or --disable-display was given.
6984if test "${enable_display+set}" = set; then
6985 enableval="$enable_display"
e6cc62c6 6986
da494b40
MB
6987 if test "$enableval" = yes; then
6988 ac_cv_use_display='wxUSE_DISPLAY=yes'
6989 else
6990 ac_cv_use_display='wxUSE_DISPLAY=no'
6991 fi
e6cc62c6 6992
da494b40 6993else
e6cc62c6 6994
da494b40
MB
6995 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7003
e6cc62c6 7004fi;
da494b40
MB
7005
7006 eval "$ac_cv_use_display"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
da494b40 7014 else
e6cc62c6
VS
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
da494b40 7017 fi
e6cc62c6 7018
da494b40 7019
5005acfe 7020 enablestring=
e6cc62c6
VS
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7023 no_cache=0
7024 # Check whether --enable-gauge or --disable-gauge was given.
7025if test "${enable_gauge+set}" = set; then
7026 enableval="$enable_gauge"
e6cc62c6 7027
10f2d63a
VZ
7028 if test "$enableval" = yes; then
7029 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7030 else
7031 ac_cv_use_gauge='wxUSE_GAUGE=no'
7032 fi
e6cc62c6 7033
10f2d63a 7034else
e6cc62c6 7035
10f2d63a
VZ
7036 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7044
e6cc62c6 7045fi;
10f2d63a
VZ
7046
7047 eval "$ac_cv_use_gauge"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
10f2d63a 7055 else
e6cc62c6
VS
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
10f2d63a 7058 fi
e6cc62c6 7059
10f2d63a 7060
5005acfe 7061 enablestring=
e6cc62c6
VS
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7064 no_cache=0
7065 # Check whether --enable-grid or --disable-grid was given.
7066if test "${enable_grid+set}" = set; then
7067 enableval="$enable_grid"
e6cc62c6 7068
10f2d63a
VZ
7069 if test "$enableval" = yes; then
7070 ac_cv_use_grid='wxUSE_GRID=yes'
7071 else
7072 ac_cv_use_grid='wxUSE_GRID=no'
7073 fi
e6cc62c6 7074
10f2d63a 7075else
e6cc62c6 7076
10f2d63a
VZ
7077 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7085
e6cc62c6 7086fi;
10f2d63a
VZ
7087
7088 eval "$ac_cv_use_grid"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
10f2d63a 7096 else
e6cc62c6
VS
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
10f2d63a 7099 fi
e6cc62c6 7100
10f2d63a 7101
5005acfe 7102 enablestring=
e6cc62c6
VS
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7105 no_cache=0
7106 # Check whether --enable-imaglist or --disable-imaglist was given.
7107if test "${enable_imaglist+set}" = set; then
7108 enableval="$enable_imaglist"
e6cc62c6 7109
10f2d63a
VZ
7110 if test "$enableval" = yes; then
7111 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7112 else
7113 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7114 fi
e6cc62c6 7115
10f2d63a 7116else
e6cc62c6 7117
10f2d63a
VZ
7118 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7126
e6cc62c6 7127fi;
10f2d63a
VZ
7128
7129 eval "$ac_cv_use_imaglist"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
10f2d63a 7137 else
e6cc62c6
VS
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
10f2d63a 7140 fi
e6cc62c6 7141
10f2d63a 7142
0e012a93
VZ
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-listbook or --disable-listbook was given.
7148if test "${enable_listbook+set}" = set; then
7149 enableval="$enable_listbook"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7153 else
7154 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7167
7168fi;
7169
7170 eval "$ac_cv_use_listbook"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_LISTBOOK" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
5005acfe 7184 enablestring=
e6cc62c6
VS
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7187 no_cache=0
7188 # Check whether --enable-listbox or --disable-listbox was given.
7189if test "${enable_listbox+set}" = set; then
7190 enableval="$enable_listbox"
e6cc62c6 7191
10f2d63a
VZ
7192 if test "$enableval" = yes; then
7193 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7194 else
7195 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7196 fi
e6cc62c6 7197
10f2d63a 7198else
e6cc62c6 7199
10f2d63a
VZ
7200 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7208
e6cc62c6 7209fi;
10f2d63a
VZ
7210
7211 eval "$ac_cv_use_listbox"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
10f2d63a 7219 else
e6cc62c6
VS
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
10f2d63a 7222 fi
e6cc62c6 7223
10f2d63a 7224
5005acfe 7225 enablestring=
e6cc62c6
VS
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7228 no_cache=0
7229 # Check whether --enable-listctrl or --disable-listctrl was given.
7230if test "${enable_listctrl+set}" = set; then
7231 enableval="$enable_listctrl"
e6cc62c6 7232
10f2d63a
VZ
7233 if test "$enableval" = yes; then
7234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7235 else
7236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7237 fi
e6cc62c6 7238
10f2d63a 7239else
e6cc62c6 7240
10f2d63a
VZ
7241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7249
e6cc62c6 7250fi;
10f2d63a
VZ
7251
7252 eval "$ac_cv_use_listctrl"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
10f2d63a 7260 else
e6cc62c6
VS
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
10f2d63a 7263 fi
e6cc62c6 7264
10f2d63a 7265
5005acfe 7266 enablestring=
e6cc62c6
VS
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7269 no_cache=0
7270 # Check whether --enable-notebook or --disable-notebook was given.
7271if test "${enable_notebook+set}" = set; then
7272 enableval="$enable_notebook"
e6cc62c6 7273
10f2d63a
VZ
7274 if test "$enableval" = yes; then
7275 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7276 else
7277 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7278 fi
e6cc62c6 7279
10f2d63a 7280else
e6cc62c6 7281
10f2d63a
VZ
7282 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7290
e6cc62c6 7291fi;
10f2d63a
VZ
7292
7293 eval "$ac_cv_use_notebook"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
10f2d63a 7301 else
e6cc62c6
VS
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
10f2d63a 7304 fi
e6cc62c6 7305
10f2d63a 7306
5005acfe 7307 enablestring=
e6cc62c6
VS
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7310 no_cache=0
7311 # Check whether --enable-radiobox or --disable-radiobox was given.
7312if test "${enable_radiobox+set}" = set; then
7313 enableval="$enable_radiobox"
e6cc62c6 7314
10f2d63a
VZ
7315 if test "$enableval" = yes; then
7316 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7317 else
7318 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7319 fi
e6cc62c6 7320
10f2d63a 7321else
e6cc62c6 7322
10f2d63a
VZ
7323 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7331
e6cc62c6 7332fi;
10f2d63a
VZ
7333
7334 eval "$ac_cv_use_radiobox"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
10f2d63a 7342 else
e6cc62c6
VS
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
10f2d63a 7345 fi
e6cc62c6 7346
10f2d63a 7347
5005acfe 7348 enablestring=
e6cc62c6
VS
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7351 no_cache=0
7352 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7353if test "${enable_radiobtn+set}" = set; then
7354 enableval="$enable_radiobtn"
e6cc62c6 7355
10f2d63a
VZ
7356 if test "$enableval" = yes; then
7357 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7358 else
7359 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7360 fi
e6cc62c6 7361
10f2d63a 7362else
e6cc62c6 7363
10f2d63a
VZ
7364 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7372
e6cc62c6 7373fi;
10f2d63a
VZ
7374
7375 eval "$ac_cv_use_radiobtn"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
10f2d63a 7383 else
e6cc62c6
VS
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
10f2d63a 7386 fi
e6cc62c6 7387
10f2d63a 7388
5005acfe 7389 enablestring=
e6cc62c6
VS
7390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7391echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7392 no_cache=0
7393 # Check whether --enable-sash or --disable-sash was given.
7394if test "${enable_sash+set}" = set; then
7395 enableval="$enable_sash"
e6cc62c6 7396
10f2d63a
VZ
7397 if test "$enableval" = yes; then
7398 ac_cv_use_sash='wxUSE_SASH=yes'
7399 else
7400 ac_cv_use_sash='wxUSE_SASH=no'
7401 fi
e6cc62c6 7402
10f2d63a 7403else
e6cc62c6 7404
10f2d63a
VZ
7405 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7413
e6cc62c6 7414fi;
10f2d63a
VZ
7415
7416 eval "$ac_cv_use_sash"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7422 echo "$as_me:$LINENO: result: yes" >&5
7423echo "${ECHO_T}yes" >&6
10f2d63a 7424 else
e6cc62c6
VS
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
10f2d63a 7427 fi
e6cc62c6 7428
10f2d63a 7429
5005acfe 7430 enablestring=
e6cc62c6
VS
7431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7432echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7433 no_cache=0
7434 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7435if test "${enable_scrollbar+set}" = set; then
7436 enableval="$enable_scrollbar"
e6cc62c6 7437
10f2d63a
VZ
7438 if test "$enableval" = yes; then
7439 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7440 else
7441 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7442 fi
e6cc62c6 7443
10f2d63a 7444else
e6cc62c6 7445
10f2d63a
VZ
7446 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7454
e6cc62c6 7455fi;
10f2d63a
VZ
7456
7457 eval "$ac_cv_use_scrollbar"
7458 if test "$no_cache" != 1; then
7459 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7460 fi
7461
7462 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
10f2d63a 7465 else
e6cc62c6
VS
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
10f2d63a 7468 fi
e6cc62c6 7469
10f2d63a 7470
5005acfe 7471 enablestring=
e6cc62c6
VS
7472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7473echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7474 no_cache=0
7475 # Check whether --enable-slider or --disable-slider was given.
7476if test "${enable_slider+set}" = set; then
7477 enableval="$enable_slider"
e6cc62c6 7478
10f2d63a
VZ
7479 if test "$enableval" = yes; then
7480 ac_cv_use_slider='wxUSE_SLIDER=yes'
7481 else
7482 ac_cv_use_slider='wxUSE_SLIDER=no'
7483 fi
e6cc62c6 7484
10f2d63a 7485else
e6cc62c6 7486
10f2d63a
VZ
7487 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7495
e6cc62c6 7496fi;
10f2d63a
VZ
7497
7498 eval "$ac_cv_use_slider"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7504 echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
10f2d63a 7506 else
e6cc62c6
VS
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
10f2d63a 7509 fi
e6cc62c6 7510
10f2d63a 7511
5005acfe 7512 enablestring=
e6cc62c6
VS
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7515 no_cache=0
7516 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7517if test "${enable_spinbtn+set}" = set; then
7518 enableval="$enable_spinbtn"
e6cc62c6 7519
10f2d63a
VZ
7520 if test "$enableval" = yes; then
7521 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7522 else
7523 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7524 fi
e6cc62c6 7525
10f2d63a 7526else
e6cc62c6 7527
10f2d63a
VZ
7528 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7536
e6cc62c6 7537fi;
10f2d63a
VZ
7538
7539 eval "$ac_cv_use_spinbtn"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
10f2d63a 7547 else
e6cc62c6
VS
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
10f2d63a 7550 fi
e6cc62c6 7551
10f2d63a 7552
5005acfe 7553 enablestring=
e6cc62c6
VS
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7556 no_cache=0
7557 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7558if test "${enable_spinctrl+set}" = set; then
7559 enableval="$enable_spinctrl"
e6cc62c6 7560
56cfaa52
RR
7561 if test "$enableval" = yes; then
7562 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7563 else
7564 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7565 fi
e6cc62c6 7566
56cfaa52 7567else
e6cc62c6 7568
56cfaa52
RR
7569 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7577
e6cc62c6 7578fi;
56cfaa52
RR
7579
7580 eval "$ac_cv_use_spinctrl"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
56cfaa52 7588 else
e6cc62c6
VS
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
56cfaa52 7591 fi
e6cc62c6 7592
56cfaa52 7593
5005acfe 7594 enablestring=
e6cc62c6
VS
7595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7596echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7597 no_cache=0
7598 # Check whether --enable-splitter or --disable-splitter was given.
7599if test "${enable_splitter+set}" = set; then
7600 enableval="$enable_splitter"
e6cc62c6 7601
10f2d63a
VZ
7602 if test "$enableval" = yes; then
7603 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7604 else
7605 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7606 fi
e6cc62c6 7607
10f2d63a 7608else
e6cc62c6 7609
10f2d63a
VZ
7610 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7618
e6cc62c6 7619fi;
10f2d63a
VZ
7620
7621 eval "$ac_cv_use_splitter"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7627 echo "$as_me:$LINENO: result: yes" >&5
7628echo "${ECHO_T}yes" >&6
10f2d63a 7629 else
e6cc62c6
VS
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
10f2d63a 7632 fi
e6cc62c6 7633
10f2d63a 7634
5005acfe 7635 enablestring=
e6cc62c6
VS
7636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7637echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7638 no_cache=0
7639 # Check whether --enable-statbmp or --disable-statbmp was given.
7640if test "${enable_statbmp+set}" = set; then
7641 enableval="$enable_statbmp"
e6cc62c6 7642
10f2d63a
VZ
7643 if test "$enableval" = yes; then
7644 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7645 else
7646 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7647 fi
e6cc62c6 7648
10f2d63a 7649else
e6cc62c6 7650
10f2d63a
VZ
7651 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7659
e6cc62c6 7660fi;
10f2d63a
VZ
7661
7662 eval "$ac_cv_use_statbmp"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7668 echo "$as_me:$LINENO: result: yes" >&5
7669echo "${ECHO_T}yes" >&6
10f2d63a 7670 else
e6cc62c6
VS
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
10f2d63a 7673 fi
e6cc62c6 7674
10f2d63a 7675
5005acfe 7676 enablestring=
e6cc62c6
VS
7677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7678echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7679 no_cache=0
7680 # Check whether --enable-statbox or --disable-statbox was given.
7681if test "${enable_statbox+set}" = set; then
7682 enableval="$enable_statbox"
e6cc62c6 7683
10f2d63a
VZ
7684 if test "$enableval" = yes; then
7685 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7686 else
7687 ac_cv_use_statbox='wxUSE_STATBOX=no'
7688 fi
e6cc62c6 7689
10f2d63a 7690else
e6cc62c6 7691
10f2d63a
VZ
7692 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7700
e6cc62c6 7701fi;
10f2d63a
VZ
7702
7703 eval "$ac_cv_use_statbox"
7704 if test "$no_cache" != 1; then
7705 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7706 fi
7707
7708 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7709 echo "$as_me:$LINENO: result: yes" >&5
7710echo "${ECHO_T}yes" >&6
10f2d63a 7711 else
e6cc62c6
VS
7712 echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6
10f2d63a 7714 fi
e6cc62c6 7715
10f2d63a 7716
5005acfe 7717 enablestring=
e6cc62c6
VS
7718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7719echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7720 no_cache=0
7721 # Check whether --enable-statline or --disable-statline was given.
7722if test "${enable_statline+set}" = set; then
7723 enableval="$enable_statline"
e6cc62c6 7724
10f2d63a
VZ
7725 if test "$enableval" = yes; then
7726 ac_cv_use_statline='wxUSE_STATLINE=yes'
7727 else
7728 ac_cv_use_statline='wxUSE_STATLINE=no'
7729 fi
e6cc62c6 7730
10f2d63a 7731else
e6cc62c6 7732
10f2d63a
VZ
7733 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7741
e6cc62c6 7742fi;
10f2d63a
VZ
7743
7744 eval "$ac_cv_use_statline"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7750 echo "$as_me:$LINENO: result: yes" >&5
7751echo "${ECHO_T}yes" >&6
10f2d63a 7752 else
e6cc62c6
VS
7753 echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
10f2d63a 7755 fi
e6cc62c6 7756
10f2d63a 7757
5005acfe 7758 enablestring=
e6cc62c6
VS
7759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7761 no_cache=0
7762 # Check whether --enable-stattext or --disable-stattext was given.
7763if test "${enable_stattext+set}" = set; then
7764 enableval="$enable_stattext"
e6cc62c6 7765
1e6feb95
VZ
7766 if test "$enableval" = yes; then
7767 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7768 else
7769 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7770 fi
e6cc62c6 7771
1e6feb95 7772else
e6cc62c6 7773
1e6feb95
VZ
7774 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7782
e6cc62c6 7783fi;
1e6feb95
VZ
7784
7785 eval "$ac_cv_use_stattext"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7791 echo "$as_me:$LINENO: result: yes" >&5
7792echo "${ECHO_T}yes" >&6
1e6feb95 7793 else
e6cc62c6
VS
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
1e6feb95 7796 fi
e6cc62c6 7797
1e6feb95 7798
5005acfe 7799 enablestring=
e6cc62c6
VS
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7802 no_cache=0
7803 # Check whether --enable-statusbar or --disable-statusbar was given.
7804if test "${enable_statusbar+set}" = set; then
7805 enableval="$enable_statusbar"
e6cc62c6 7806
10f2d63a
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7809 else
7810 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7811 fi
e6cc62c6 7812
10f2d63a 7813else
e6cc62c6 7814
10f2d63a
VZ
7815 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7823
e6cc62c6 7824fi;
10f2d63a
VZ
7825
7826 eval "$ac_cv_use_statusbar"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
10f2d63a 7834 else
e6cc62c6
VS
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
10f2d63a 7837 fi
e6cc62c6 7838
10f2d63a 7839
5005acfe 7840 enablestring=
e6cc62c6
VS
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7843 no_cache=0
7844 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7845if test "${enable_tabdialog+set}" = set; then
7846 enableval="$enable_tabdialog"
e6cc62c6 7847
10f2d63a
VZ
7848 if test "$enableval" = yes; then
7849 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7850 else
7851 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7852 fi
e6cc62c6 7853
10f2d63a 7854else
e6cc62c6 7855
10f2d63a
VZ
7856 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7864
e6cc62c6 7865fi;
10f2d63a
VZ
7866
7867 eval "$ac_cv_use_tabdialog"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
10f2d63a 7875 else
e6cc62c6
VS
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
10f2d63a 7878 fi
e6cc62c6 7879
10f2d63a 7880
5005acfe 7881 enablestring=
e6cc62c6
VS
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7884 no_cache=0
7885 # Check whether --enable-textctrl or --disable-textctrl was given.
7886if test "${enable_textctrl+set}" = set; then
7887 enableval="$enable_textctrl"
e6cc62c6 7888
1e6feb95
VZ
7889 if test "$enableval" = yes; then
7890 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7891 else
7892 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7893 fi
e6cc62c6 7894
1e6feb95 7895else
e6cc62c6 7896
1e6feb95
VZ
7897 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7905
e6cc62c6 7906fi;
1e6feb95
VZ
7907
7908 eval "$ac_cv_use_textctrl"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
1e6feb95 7916 else
e6cc62c6
VS
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
1e6feb95 7919 fi
e6cc62c6 7920
1e6feb95 7921
5005acfe 7922 enablestring=
e6cc62c6
VS
7923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7924echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7925 no_cache=0
7926 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7927if test "${enable_togglebtn+set}" = set; then
7928 enableval="$enable_togglebtn"
e6cc62c6 7929
1db8dc4a
VZ
7930 if test "$enableval" = yes; then
7931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7932 else
7933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7934 fi
e6cc62c6 7935
1db8dc4a 7936else
e6cc62c6 7937
1db8dc4a
VZ
7938 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7946
e6cc62c6 7947fi;
1db8dc4a
VZ
7948
7949 eval "$ac_cv_use_togglebtn"
7950 if test "$no_cache" != 1; then
7951 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7952 fi
7953
7954 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
1db8dc4a 7957 else
e6cc62c6
VS
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
1db8dc4a 7960 fi
e6cc62c6 7961
1db8dc4a 7962
5005acfe 7963 enablestring=
e6cc62c6
VS
7964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7965echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7966 no_cache=0
7967 # Check whether --enable-toolbar or --disable-toolbar was given.
7968if test "${enable_toolbar+set}" = set; then
7969 enableval="$enable_toolbar"
e6cc62c6 7970
10f2d63a
VZ
7971 if test "$enableval" = yes; then
7972 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7973 else
7974 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7975 fi
e6cc62c6 7976
10f2d63a 7977else
e6cc62c6 7978
10f2d63a
VZ
7979 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7980 if test "x$LINE" != x ; then
7981 eval "DEFAULT_$LINE"
7982 else
7983 no_cache=1
7984 fi
7985
7986 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7987
e6cc62c6 7988fi;
10f2d63a
VZ
7989
7990 eval "$ac_cv_use_toolbar"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7996 echo "$as_me:$LINENO: result: yes" >&5
7997echo "${ECHO_T}yes" >&6
10f2d63a 7998 else
e6cc62c6
VS
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
10f2d63a 8001 fi
e6cc62c6 8002
10f2d63a 8003
5005acfe 8004 enablestring=
e6cc62c6
VS
8005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8006echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8007 no_cache=0
8008 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8009if test "${enable_tbarnative+set}" = set; then
8010 enableval="$enable_tbarnative"
e6cc62c6 8011
360d6699
VZ
8012 if test "$enableval" = yes; then
8013 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8014 else
8015 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8016 fi
e6cc62c6 8017
360d6699 8018else
e6cc62c6 8019
360d6699
VZ
8020 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8028
e6cc62c6 8029fi;
360d6699
VZ
8030
8031 eval "$ac_cv_use_tbarnative"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8037 echo "$as_me:$LINENO: result: yes" >&5
8038echo "${ECHO_T}yes" >&6
360d6699 8039 else
e6cc62c6
VS
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
360d6699 8042 fi
e6cc62c6 8043
360d6699 8044
5005acfe 8045 enablestring=
e6cc62c6
VS
8046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8048 no_cache=0
8049 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8050if test "${enable_tbarsmpl+set}" = set; then
8051 enableval="$enable_tbarsmpl"
e6cc62c6 8052
360d6699
VZ
8053 if test "$enableval" = yes; then
8054 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8055 else
8056 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8057 fi
e6cc62c6 8058
360d6699 8059else
e6cc62c6 8060
360d6699
VZ
8061 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8062 if test "x$LINE" != x ; then
8063 eval "DEFAULT_$LINE"
8064 else
8065 no_cache=1
8066 fi
8067
8068 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8069
e6cc62c6 8070fi;
360d6699
VZ
8071
8072 eval "$ac_cv_use_tbarsmpl"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6
360d6699 8080 else
e6cc62c6
VS
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
360d6699 8083 fi
e6cc62c6 8084
360d6699 8085
5005acfe 8086 enablestring=
e6cc62c6
VS
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8089 no_cache=0
8090 # Check whether --enable-treectrl or --disable-treectrl was given.
8091if test "${enable_treectrl+set}" = set; then
8092 enableval="$enable_treectrl"
e6cc62c6 8093
10f2d63a
VZ
8094 if test "$enableval" = yes; then
8095 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8096 else
8097 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8098 fi
e6cc62c6 8099
10f2d63a 8100else
e6cc62c6 8101
10f2d63a
VZ
8102 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8110
e6cc62c6 8111fi;
10f2d63a 8112
1e6feb95
VZ
8113 eval "$ac_cv_use_treectrl"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
1e6feb95 8121 else
e6cc62c6
VS
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
1e6feb95 8124 fi
e6cc62c6 8125
1e6feb95 8126
5005acfe 8127 enablestring=
e6cc62c6
VS
8128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8129echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8130 no_cache=0
8131 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8132if test "${enable_tipwindow+set}" = set; then
8133 enableval="$enable_tipwindow"
e6cc62c6 8134
9926e4a4
VZ
8135 if test "$enableval" = yes; then
8136 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8137 else
8138 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8139 fi
e6cc62c6 8140
9926e4a4 8141else
e6cc62c6 8142
9926e4a4
VZ
8143 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8144 if test "x$LINE" != x ; then
8145 eval "DEFAULT_$LINE"
8146 else
8147 no_cache=1
8148 fi
8149
8150 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8151
e6cc62c6 8152fi;
9926e4a4
VZ
8153
8154 eval "$ac_cv_use_tipwindow"
8155 if test "$no_cache" != 1; then
8156 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8157 fi
8158
8159 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
9926e4a4 8162 else
e6cc62c6
VS
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
9926e4a4 8165 fi
e6cc62c6 8166
9926e4a4 8167
5005acfe 8168 enablestring=
e6cc62c6
VS
8169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8170echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8171 no_cache=0
8172 # Check whether --enable-popupwin or --disable-popupwin was given.
8173if test "${enable_popupwin+set}" = set; then
8174 enableval="$enable_popupwin"
e6cc62c6 8175
9f41d601
RR
8176 if test "$enableval" = yes; then
8177 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8178 else
8179 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8180 fi
e6cc62c6 8181
9f41d601 8182else
e6cc62c6 8183
9f41d601
RR
8184 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8185 if test "x$LINE" != x ; then
8186 eval "DEFAULT_$LINE"
8187 else
8188 no_cache=1
8189 fi
8190
8191 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8192
e6cc62c6 8193fi;
9f41d601
RR
8194
8195 eval "$ac_cv_use_popupwin"
8196 if test "$no_cache" != 1; then
8197 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8198 fi
8199
8200 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
9f41d601 8203 else
e6cc62c6
VS
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
9f41d601 8206 fi
e6cc62c6 8207
52127426 8208
8284b0c5
MB
8209
8210
5005acfe 8211 enablestring=
e6cc62c6
VS
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8214 no_cache=0
8215 # Check whether --enable-commondlg or --disable-commondlg was given.
8216if test "${enable_commondlg+set}" = set; then
8217 enableval="$enable_commondlg"
e6cc62c6 8218
1e6feb95
VZ
8219 if test "$enableval" = yes; then
8220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8221 else
8222 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8223 fi
e6cc62c6 8224
1e6feb95 8225else
e6cc62c6 8226
1e6feb95
VZ
8227 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8235
e6cc62c6 8236fi;
1e6feb95
VZ
8237
8238 eval "$ac_cv_use_commondlg"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
1e6feb95 8246 else
e6cc62c6
VS
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
1e6feb95 8249 fi
e6cc62c6 8250
1e6feb95 8251
5005acfe 8252 enablestring=
e6cc62c6
VS
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8255 no_cache=0
8256 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8257if test "${enable_choicedlg+set}" = set; then
8258 enableval="$enable_choicedlg"
e6cc62c6 8259
1e6feb95
VZ
8260 if test "$enableval" = yes; then
8261 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8262 else
8263 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8264 fi
e6cc62c6 8265
1e6feb95 8266else
e6cc62c6 8267
1e6feb95
VZ
8268 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8276
e6cc62c6 8277fi;
1e6feb95
VZ
8278
8279 eval "$ac_cv_use_choicedlg"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
1e6feb95 8287 else
e6cc62c6
VS
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
1e6feb95 8290 fi
e6cc62c6 8291
1e6feb95 8292
5005acfe 8293 enablestring=
e6cc62c6
VS
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8296 no_cache=0
8297 # Check whether --enable-coldlg or --disable-coldlg was given.
8298if test "${enable_coldlg+set}" = set; then
8299 enableval="$enable_coldlg"
e6cc62c6 8300
1e6feb95
VZ
8301 if test "$enableval" = yes; then
8302 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8303 else
8304 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8305 fi
e6cc62c6 8306
1e6feb95 8307else
e6cc62c6 8308
1e6feb95
VZ
8309 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8317
e6cc62c6 8318fi;
1e6feb95
VZ
8319
8320 eval "$ac_cv_use_coldlg"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
1e6feb95 8328 else
e6cc62c6
VS
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
1e6feb95 8331 fi
e6cc62c6 8332
1e6feb95 8333
5005acfe 8334 enablestring=
e6cc62c6
VS
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8337 no_cache=0
8338 # Check whether --enable-filedlg or --disable-filedlg was given.
8339if test "${enable_filedlg+set}" = set; then
8340 enableval="$enable_filedlg"
e6cc62c6 8341
1e6feb95
VZ
8342 if test "$enableval" = yes; then
8343 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8344 else
8345 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8346 fi
e6cc62c6 8347
1e6feb95 8348else
e6cc62c6 8349
1e6feb95
VZ
8350 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8358
e6cc62c6 8359fi;
1e6feb95
VZ
8360
8361 eval "$ac_cv_use_filedlg"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
1e6feb95 8369 else
e6cc62c6
VS
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
1e6feb95 8372 fi
e6cc62c6 8373
1e6feb95 8374
5005acfe 8375 enablestring=
e6cc62c6
VS
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8378 no_cache=0
69d27ff7
MB
8379 # Check whether --enable-finddlg or --disable-finddlg was given.
8380if test "${enable_finddlg+set}" = set; then
8381 enableval="$enable_finddlg"
e6cc62c6 8382
8db37e06 8383 if test "$enableval" = yes; then
69d27ff7 8384 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8385 else
69d27ff7 8386 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8387 fi
e6cc62c6 8388
8db37e06 8389else
e6cc62c6 8390
8db37e06
VZ
8391 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
69d27ff7 8398 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8399
e6cc62c6 8400fi;
8db37e06 8401
69d27ff7 8402 eval "$ac_cv_use_finddlg"
8db37e06 8403 if test "$no_cache" != 1; then
69d27ff7 8404 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8405 fi
8406
8407 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
8db37e06 8410 else
e6cc62c6
VS
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
8db37e06 8413 fi
e6cc62c6 8414
8db37e06 8415
5005acfe 8416 enablestring=
e6cc62c6
VS
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8419 no_cache=0
8420 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8421if test "${enable_fontdlg+set}" = set; then
8422 enableval="$enable_fontdlg"
e6cc62c6 8423
1e6feb95
VZ
8424 if test "$enableval" = yes; then
8425 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8426 else
8427 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8428 fi
e6cc62c6 8429
1e6feb95 8430else
e6cc62c6 8431
1e6feb95
VZ
8432 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
8439 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8440
e6cc62c6 8441fi;
1e6feb95
VZ
8442
8443 eval "$ac_cv_use_fontdlg"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
1e6feb95 8451 else
e6cc62c6
VS
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
1e6feb95 8454 fi
e6cc62c6 8455
1e6feb95 8456
5005acfe 8457 enablestring=
e6cc62c6
VS
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8460 no_cache=0
8461 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8462if test "${enable_dirdlg+set}" = set; then
8463 enableval="$enable_dirdlg"
e6cc62c6 8464
1e6feb95
VZ
8465 if test "$enableval" = yes; then
8466 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8467 else
8468 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8469 fi
e6cc62c6 8470
1e6feb95 8471else
e6cc62c6 8472
1e6feb95
VZ
8473 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
8480 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8481
e6cc62c6 8482fi;
1e6feb95
VZ
8483
8484 eval "$ac_cv_use_dirdlg"
10f2d63a 8485 if test "$no_cache" != 1; then
1e6feb95 8486 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8487 fi
8488
1e6feb95 8489 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
10f2d63a 8492 else
e6cc62c6
VS
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
10f2d63a 8495 fi
e6cc62c6 8496
698dcdb6 8497
5005acfe 8498 enablestring=
e6cc62c6
VS
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8501 no_cache=0
1e6feb95
VZ
8502 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8503if test "${enable_msgdlg+set}" = set; then
8504 enableval="$enable_msgdlg"
e6cc62c6 8505
10f2d63a 8506 if test "$enableval" = yes; then
1e6feb95 8507 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8508 else
1e6feb95 8509 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8510 fi
e6cc62c6 8511
10f2d63a 8512else
e6cc62c6 8513
1e6feb95 8514 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
1e6feb95 8521 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8522
e6cc62c6 8523fi;
10f2d63a 8524
1e6feb95 8525 eval "$ac_cv_use_msgdlg"
10f2d63a 8526 if test "$no_cache" != 1; then
1e6feb95 8527 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8528 fi
8529
1e6feb95 8530 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
10f2d63a 8533 else
e6cc62c6
VS
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
10f2d63a 8536 fi
e6cc62c6 8537
10f2d63a 8538
5005acfe 8539 enablestring=
e6cc62c6
VS
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8542 no_cache=0
1e6feb95
VZ
8543 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8544if test "${enable_numberdlg+set}" = set; then
8545 enableval="$enable_numberdlg"
e6cc62c6 8546
10f2d63a 8547 if test "$enableval" = yes; then
1e6feb95 8548 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8549 else
1e6feb95 8550 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8551 fi
e6cc62c6 8552
10f2d63a 8553else
e6cc62c6 8554
1e6feb95 8555 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
1e6feb95 8562 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8563
e6cc62c6 8564fi;
10f2d63a 8565
1e6feb95 8566 eval "$ac_cv_use_numberdlg"
10f2d63a 8567 if test "$no_cache" != 1; then
1e6feb95 8568 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8569 fi
8570
1e6feb95 8571 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
10f2d63a 8574 else
e6cc62c6
VS
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
10f2d63a 8577 fi
e6cc62c6 8578
10f2d63a 8579
5005acfe 8580 enablestring=
e6cc62c6
VS
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8583 no_cache=0
8584 # Check whether --enable-splash or --disable-splash was given.
8585if test "${enable_splash+set}" = set; then
8586 enableval="$enable_splash"
e6cc62c6 8587
cbca9943
VZ
8588 if test "$enableval" = yes; then
8589 ac_cv_use_splash='wxUSE_SPLASH=yes'
8590 else
8591 ac_cv_use_splash='wxUSE_SPLASH=no'
8592 fi
e6cc62c6 8593
cbca9943 8594else
e6cc62c6 8595
cbca9943
VZ
8596 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8604
e6cc62c6 8605fi;
cbca9943
VZ
8606
8607 eval "$ac_cv_use_splash"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
cbca9943 8615 else
e6cc62c6
VS
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
cbca9943 8618 fi
e6cc62c6 8619
cbca9943 8620
5005acfe 8621 enablestring=
e6cc62c6
VS
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8624 no_cache=0
8625 # Check whether --enable-textdlg or --disable-textdlg was given.
8626if test "${enable_textdlg+set}" = set; then
8627 enableval="$enable_textdlg"
e6cc62c6 8628
10f2d63a
VZ
8629 if test "$enableval" = yes; then
8630 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8631 else
8632 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8633 fi
e6cc62c6 8634
10f2d63a 8635else
e6cc62c6 8636
10f2d63a
VZ
8637 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8645
e6cc62c6 8646fi;
10f2d63a
VZ
8647
8648 eval "$ac_cv_use_textdlg"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
10f2d63a 8656 else
e6cc62c6
VS
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
10f2d63a 8659 fi
e6cc62c6 8660
10f2d63a 8661
5005acfe 8662 enablestring=
e6cc62c6
VS
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8665 no_cache=0
8666 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8667if test "${enable_tipdlg+set}" = set; then
8668 enableval="$enable_tipdlg"
e6cc62c6 8669
10f2d63a
VZ
8670 if test "$enableval" = yes; then
8671 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8672 else
8673 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8674 fi
e6cc62c6 8675
10f2d63a 8676else
e6cc62c6 8677
10f2d63a
VZ
8678 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8686
e6cc62c6 8687fi;
10f2d63a
VZ
8688
8689 eval "$ac_cv_use_tipdlg"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
10f2d63a 8697 else
e6cc62c6
VS
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
10f2d63a 8700 fi
e6cc62c6 8701
10f2d63a 8702
5005acfe 8703 enablestring=
e6cc62c6
VS
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8706 no_cache=0
8707 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8708if test "${enable_progressdlg+set}" = set; then
8709 enableval="$enable_progressdlg"
e6cc62c6 8710
10f2d63a
VZ
8711 if test "$enableval" = yes; then
8712 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8713 else
8714 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8715 fi
e6cc62c6 8716
10f2d63a 8717else
e6cc62c6 8718
10f2d63a
VZ
8719 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8727
e6cc62c6 8728fi;
10f2d63a
VZ
8729
8730 eval "$ac_cv_use_progressdlg"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
10f2d63a 8738 else
e6cc62c6
VS
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
10f2d63a 8741 fi
e6cc62c6 8742
10f2d63a 8743
5005acfe 8744 enablestring=
e6cc62c6
VS
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8747 no_cache=0
8748 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8749if test "${enable_wizarddlg+set}" = set; then
8750 enableval="$enable_wizarddlg"
e6cc62c6 8751
b1f5d087
VZ
8752 if test "$enableval" = yes; then
8753 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8754 else
8755 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8756 fi
e6cc62c6 8757
b1f5d087 8758else
e6cc62c6 8759
b1f5d087
VZ
8760 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8768
e6cc62c6 8769fi;
b1f5d087
VZ
8770
8771 eval "$ac_cv_use_wizarddlg"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
b1f5d087 8779 else
e6cc62c6
VS
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
b1f5d087 8782 fi
e6cc62c6 8783
8284b0c5
MB
8784
8785
52127426 8786
5005acfe 8787 enablestring=
e6cc62c6
VS
8788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8789echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8790 no_cache=0
8791 # Check whether --enable-menus or --disable-menus was given.
8792if test "${enable_menus+set}" = set; then
8793 enableval="$enable_menus"
e6cc62c6 8794
1e6feb95
VZ
8795 if test "$enableval" = yes; then
8796 ac_cv_use_menus='wxUSE_MENUS=yes'
8797 else
8798 ac_cv_use_menus='wxUSE_MENUS=no'
8799 fi
e6cc62c6 8800
1e6feb95 8801else
e6cc62c6 8802
1e6feb95
VZ
8803 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8804 if test "x$LINE" != x ; then
8805 eval "DEFAULT_$LINE"
8806 else
8807 no_cache=1
8808 fi
8809
8810 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8811
e6cc62c6 8812fi;
1e6feb95
VZ
8813
8814 eval "$ac_cv_use_menus"
8815 if test "$no_cache" != 1; then
8816 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8817 fi
8818
8819 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8820 echo "$as_me:$LINENO: result: yes" >&5
8821echo "${ECHO_T}yes" >&6
1e6feb95 8822 else
e6cc62c6
VS
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
1e6feb95 8825 fi
e6cc62c6 8826
1e6feb95 8827
5005acfe 8828 enablestring=
e6cc62c6
VS
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8831 no_cache=0
8832 # Check whether --enable-miniframe or --disable-miniframe was given.
8833if test "${enable_miniframe+set}" = set; then
8834 enableval="$enable_miniframe"
e6cc62c6 8835
10f2d63a
VZ
8836 if test "$enableval" = yes; then
8837 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8838 else
8839 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8840 fi
e6cc62c6 8841
10f2d63a 8842else
e6cc62c6 8843
10f2d63a
VZ
8844 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8852
e6cc62c6 8853fi;
10f2d63a
VZ
8854
8855 eval "$ac_cv_use_miniframe"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
10f2d63a 8863 else
e6cc62c6
VS
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
10f2d63a 8866 fi
e6cc62c6 8867
10f2d63a 8868
5005acfe 8869 enablestring=
e6cc62c6
VS
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8872 no_cache=0
8873 # Check whether --enable-tooltips or --disable-tooltips was given.
8874if test "${enable_tooltips+set}" = set; then
8875 enableval="$enable_tooltips"
e6cc62c6 8876
10f2d63a
VZ
8877 if test "$enableval" = yes; then
8878 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8879 else
8880 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8881 fi
e6cc62c6 8882
10f2d63a 8883else
e6cc62c6 8884
10f2d63a
VZ
8885 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8893
e6cc62c6 8894fi;
10f2d63a
VZ
8895
8896 eval "$ac_cv_use_tooltips"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
10f2d63a 8904 else
e6cc62c6
VS
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
10f2d63a 8907 fi
e6cc62c6 8908
10f2d63a 8909
5005acfe 8910 enablestring=
e6cc62c6
VS
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8913 no_cache=0
8914 # Check whether --enable-splines or --disable-splines was given.
8915if test "${enable_splines+set}" = set; then
8916 enableval="$enable_splines"
e6cc62c6 8917
10f2d63a
VZ
8918 if test "$enableval" = yes; then
8919 ac_cv_use_splines='wxUSE_SPLINES=yes'
8920 else
8921 ac_cv_use_splines='wxUSE_SPLINES=no'
8922 fi
e6cc62c6 8923
10f2d63a 8924else
e6cc62c6 8925
10f2d63a
VZ
8926 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8934
e6cc62c6 8935fi;
10f2d63a
VZ
8936
8937 eval "$ac_cv_use_splines"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
10f2d63a 8945 else
e6cc62c6
VS
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
10f2d63a 8948 fi
e6cc62c6 8949
10f2d63a 8950
5005acfe 8951 enablestring=
e6cc62c6
VS
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8954 no_cache=0
8955 # Check whether --enable-validators or --disable-validators was given.
8956if test "${enable_validators+set}" = set; then
8957 enableval="$enable_validators"
e6cc62c6 8958
10f2d63a
VZ
8959 if test "$enableval" = yes; then
8960 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8961 else
8962 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8963 fi
e6cc62c6 8964
10f2d63a 8965else
e6cc62c6 8966
10f2d63a
VZ
8967 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8975
e6cc62c6 8976fi;
10f2d63a
VZ
8977
8978 eval "$ac_cv_use_validators"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
10f2d63a 8986 else
e6cc62c6
VS
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
10f2d63a 8989 fi
e6cc62c6 8990
10f2d63a 8991
5005acfe 8992 enablestring=
e6cc62c6
VS
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8995 no_cache=0
8996 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8997if test "${enable_busyinfo+set}" = set; then
8998 enableval="$enable_busyinfo"
e6cc62c6 8999
10f2d63a
VZ
9000 if test "$enableval" = yes; then
9001 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9002 else
9003 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9004 fi
e6cc62c6 9005
10f2d63a 9006else
e6cc62c6 9007
10f2d63a
VZ
9008 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9016
e6cc62c6 9017fi;
10f2d63a
VZ
9018
9019 eval "$ac_cv_use_busyinfo"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
10f2d63a 9027 else
e6cc62c6
VS
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
10f2d63a 9030 fi
e6cc62c6 9031
10f2d63a 9032
5005acfe 9033 enablestring=
e6cc62c6
VS
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9036 no_cache=0
9037 # Check whether --enable-joystick or --disable-joystick was given.
9038if test "${enable_joystick+set}" = set; then
9039 enableval="$enable_joystick"
e6cc62c6 9040
f6bcfd97
BP
9041 if test "$enableval" = yes; then
9042 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9043 else
9044 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9045 fi
e6cc62c6 9046
f6bcfd97 9047else
e6cc62c6 9048
f6bcfd97
BP
9049 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9057
e6cc62c6 9058fi;
f6bcfd97
BP
9059
9060 eval "$ac_cv_use_joystick"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
f6bcfd97 9068 else
e6cc62c6
VS
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
f6bcfd97 9071 fi
e6cc62c6 9072
698dcdb6 9073
5005acfe 9074 enablestring=
e6cc62c6
VS
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9077 no_cache=0
9078 # Check whether --enable-metafile or --disable-metafile was given.
9079if test "${enable_metafile+set}" = set; then
9080 enableval="$enable_metafile"
e6cc62c6 9081
1e6feb95
VZ
9082 if test "$enableval" = yes; then
9083 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9084 else
9085 ac_cv_use_metafile='wxUSE_METAFILE=no'
9086 fi
e6cc62c6 9087
1e6feb95 9088else
e6cc62c6 9089
1e6feb95
VZ
9090 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9098
e6cc62c6 9099fi;
1e6feb95
VZ
9100
9101 eval "$ac_cv_use_metafile"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
1e6feb95 9109 else
e6cc62c6
VS
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
1e6feb95 9112 fi
e6cc62c6 9113
1e6feb95 9114
5005acfe 9115 enablestring=
e6cc62c6
VS
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9118 no_cache=0
9119 # Check whether --enable-dragimage or --disable-dragimage was given.
9120if test "${enable_dragimage+set}" = set; then
9121 enableval="$enable_dragimage"
e6cc62c6 9122
24fd6d87
VZ
9123 if test "$enableval" = yes; then
9124 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9125 else
9126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9127 fi
e6cc62c6 9128
24fd6d87 9129else
e6cc62c6 9130
24fd6d87
VZ
9131 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9139
e6cc62c6 9140fi;
24fd6d87
VZ
9141
9142 eval "$ac_cv_use_dragimage"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
24fd6d87 9150 else
e6cc62c6
VS
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
24fd6d87 9153 fi
e6cc62c6 9154
52127426 9155
7bb2947d 9156 enablestring=
e6cc62c6
VS
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9159 no_cache=0
9160 # Check whether --enable-accessibility or --disable-accessibility was given.
9161if test "${enable_accessibility+set}" = set; then
9162 enableval="$enable_accessibility"
e6cc62c6 9163
7bb2947d
MB
9164 if test "$enableval" = yes; then
9165 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9166 else
9167 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9168 fi
e6cc62c6 9169
7bb2947d 9170else
e6cc62c6 9171
7bb2947d
MB
9172 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9180
e6cc62c6 9181fi;
7bb2947d
MB
9182
9183 eval "$ac_cv_use_accessibility"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
7bb2947d 9191 else
e6cc62c6
VS
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
7bb2947d 9194 fi
e6cc62c6 9195
7bb2947d 9196
8284b0c5
MB
9197
9198
5005acfe 9199 enablestring=
e6cc62c6
VS
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9201echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9202 no_cache=0
9203 # Check whether --enable-palette or --disable-palette was given.
9204if test "${enable_palette+set}" = set; then
9205 enableval="$enable_palette"
e6cc62c6 9206
edae8572
VZ
9207 if test "$enableval" = yes; then
9208 ac_cv_use_palette='wxUSE_PALETTE=yes'
9209 else
9210 ac_cv_use_palette='wxUSE_PALETTE=no'
9211 fi
e6cc62c6 9212
edae8572 9213else
e6cc62c6 9214
edae8572
VZ
9215 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9223
e6cc62c6 9224fi;
edae8572
VZ
9225
9226 eval "$ac_cv_use_palette"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9232 echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
edae8572 9234 else
e6cc62c6
VS
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
edae8572 9237 fi
e6cc62c6 9238
edae8572 9239
5005acfe 9240 enablestring=
e6cc62c6
VS
9241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9242echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9243 no_cache=0
9244 # Check whether --enable-image or --disable-image was given.
9245if test "${enable_image+set}" = set; then
9246 enableval="$enable_image"
e6cc62c6 9247
0046ff7c
VS
9248 if test "$enableval" = yes; then
9249 ac_cv_use_image='wxUSE_IMAGE=yes'
9250 else
9251 ac_cv_use_image='wxUSE_IMAGE=no'
9252 fi
e6cc62c6 9253
0046ff7c 9254else
e6cc62c6 9255
0046ff7c
VS
9256 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9257 if test "x$LINE" != x ; then
9258 eval "DEFAULT_$LINE"
9259 else
9260 no_cache=1
9261 fi
9262
9263 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9264
e6cc62c6 9265fi;
0046ff7c
VS
9266
9267 eval "$ac_cv_use_image"
9268 if test "$no_cache" != 1; then
9269 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9270 fi
9271
9272 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
0046ff7c 9275 else
e6cc62c6
VS
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
0046ff7c 9278 fi
e6cc62c6 9279
0046ff7c 9280
5005acfe 9281 enablestring=
e6cc62c6
VS
9282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9283echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9284 no_cache=0
9285 # Check whether --enable-gif or --disable-gif was given.
9286if test "${enable_gif+set}" = set; then
9287 enableval="$enable_gif"
e6cc62c6 9288
10f2d63a
VZ
9289 if test "$enableval" = yes; then
9290 ac_cv_use_gif='wxUSE_GIF=yes'
9291 else
9292 ac_cv_use_gif='wxUSE_GIF=no'
9293 fi
e6cc62c6 9294
10f2d63a 9295else
e6cc62c6 9296
10f2d63a
VZ
9297 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9298 if test "x$LINE" != x ; then
9299 eval "DEFAULT_$LINE"
9300 else
9301 no_cache=1
9302 fi
9303
9304 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9305
e6cc62c6 9306fi;
10f2d63a
VZ
9307
9308 eval "$ac_cv_use_gif"
9309 if test "$no_cache" != 1; then
9310 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9311 fi
9312
9313 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9314 echo "$as_me:$LINENO: result: yes" >&5
9315echo "${ECHO_T}yes" >&6
10f2d63a 9316 else
e6cc62c6
VS
9317 echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6
10f2d63a 9319 fi
e6cc62c6 9320
10f2d63a 9321
5005acfe 9322 enablestring=
e6cc62c6
VS
9323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9324echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9325 no_cache=0
9326 # Check whether --enable-pcx or --disable-pcx was given.
9327if test "${enable_pcx+set}" = set; then
9328 enableval="$enable_pcx"
e6cc62c6 9329
10f2d63a
VZ
9330 if test "$enableval" = yes; then
9331 ac_cv_use_pcx='wxUSE_PCX=yes'
9332 else
9333 ac_cv_use_pcx='wxUSE_PCX=no'
9334 fi
e6cc62c6 9335
10f2d63a 9336else
e6cc62c6 9337
10f2d63a
VZ
9338 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9339 if test "x$LINE" != x ; then
9340 eval "DEFAULT_$LINE"
9341 else
9342 no_cache=1
9343 fi
9344
9345 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9346
e6cc62c6 9347fi;
10f2d63a
VZ
9348
9349 eval "$ac_cv_use_pcx"
9350 if test "$no_cache" != 1; then
9351 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9352 fi
9353
9354 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9355 echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6
10f2d63a 9357 else
e6cc62c6
VS
9358 echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6
10f2d63a 9360 fi
e6cc62c6 9361
10f2d63a 9362
5005acfe 9363 enablestring=
e6cc62c6
VS
9364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9365echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9366 no_cache=0
9367 # Check whether --enable-iff or --disable-iff was given.
9368if test "${enable_iff+set}" = set; then
9369 enableval="$enable_iff"
e6cc62c6 9370
4b6b4dfc
RR
9371 if test "$enableval" = yes; then
9372 ac_cv_use_iff='wxUSE_IFF=yes'
9373 else
9374 ac_cv_use_iff='wxUSE_IFF=no'
9375 fi
e6cc62c6 9376
4b6b4dfc 9377else
e6cc62c6 9378
4b6b4dfc
RR
9379 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9380 if test "x$LINE" != x ; then
9381 eval "DEFAULT_$LINE"
9382 else
9383 no_cache=1
9384 fi
9385
9386 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9387
e6cc62c6 9388fi;
4b6b4dfc
RR
9389
9390 eval "$ac_cv_use_iff"
9391 if test "$no_cache" != 1; then
9392 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9393 fi
9394
9395 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9396 echo "$as_me:$LINENO: result: yes" >&5
9397echo "${ECHO_T}yes" >&6
4b6b4dfc 9398 else
e6cc62c6
VS
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
4b6b4dfc 9401 fi
e6cc62c6 9402
4b6b4dfc 9403
5005acfe 9404 enablestring=
e6cc62c6
VS
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9407 no_cache=0
9408 # Check whether --enable-pnm or --disable-pnm was given.
9409if test "${enable_pnm+set}" = set; then
9410 enableval="$enable_pnm"
e6cc62c6 9411
10f2d63a
VZ
9412 if test "$enableval" = yes; then
9413 ac_cv_use_pnm='wxUSE_PNM=yes'
9414 else
9415 ac_cv_use_pnm='wxUSE_PNM=no'
9416 fi
e6cc62c6 9417
10f2d63a 9418else
e6cc62c6 9419
10f2d63a
VZ
9420 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9428
e6cc62c6 9429fi;
10f2d63a
VZ
9430
9431 eval "$ac_cv_use_pnm"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
10f2d63a 9439 else
e6cc62c6
VS
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
10f2d63a 9442 fi
e6cc62c6 9443
10f2d63a 9444
5005acfe 9445 enablestring=
e6cc62c6
VS
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9448 no_cache=0
69d27ff7
MB
9449 # Check whether --enable-xpm or --disable-xpm was given.
9450if test "${enable_xpm+set}" = set; then
9451 enableval="$enable_xpm"
e6cc62c6 9452
0046ff7c 9453 if test "$enableval" = yes; then
69d27ff7 9454 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9455 else
69d27ff7 9456 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9457 fi
e6cc62c6 9458
0046ff7c 9459else
e6cc62c6 9460
0046ff7c
VS
9461 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
69d27ff7 9468 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9469
e6cc62c6 9470fi;
0046ff7c 9471
69d27ff7 9472 eval "$ac_cv_use_xpm"
0046ff7c 9473 if test "$no_cache" != 1; then
69d27ff7 9474 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9475 fi
9476
9477 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
0046ff7c 9480 else
e6cc62c6
VS
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
0046ff7c 9483 fi
e6cc62c6 9484
0046ff7c 9485
5005acfe 9486 enablestring=
e6cc62c6
VS
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9489 no_cache=0
c7206e64
VS
9490 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9491if test "${enable_ico_cur+set}" = set; then
9492 enableval="$enable_ico_cur"
e6cc62c6 9493
658974ae 9494 if test "$enableval" = yes; then
c7206e64 9495 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9496 else
c7206e64 9497 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9498 fi
e6cc62c6 9499
658974ae 9500else
e6cc62c6 9501
658974ae
VS
9502 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
c7206e64 9509 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9510
e6cc62c6 9511fi;
658974ae 9512
c7206e64 9513 eval "$ac_cv_use_ico_cur"
658974ae 9514 if test "$no_cache" != 1; then
c7206e64 9515 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9516 fi
9517
9518 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
658974ae 9521 else
e6cc62c6
VS
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
658974ae 9524 fi
e6cc62c6 9525
658974ae 9526
b12915c1
VZ
9527fi
9528
029b47ad
VS
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-official_build or --disable-official_build was given.
9536if test "${enable_official_build+set}" = set; then
9537 enableval="$enable_official_build"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9541 else
9542 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9555
9556fi;
9557
9558 eval "$ac_cv_use_official_build"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571# Check whether --enable-vendor or --disable-vendor was given.
9572if test "${enable_vendor+set}" = set; then
9573 enableval="$enable_vendor"
9574 VENDOR="$enableval"
9575fi;
9576if test "x$VENDOR" = "x"; then
9577 VENDOR="custom"
9578fi
9579
d558c907
VS
9580case "${host}" in
9581 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9582 PATH_IFS=';'
d558c907
VS
9583 ;;
9584 *)
9585 PATH_IFS=':'
d558c907
VS
9586 ;;
9587esac
9588
8284b0c5
MB
9589
9590
10f2d63a
VZ
9591 echo "saving argument cache $wx_arg_cache_file"
9592 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9593
8284b0c5 9594
e6cc62c6
VS
9595
9596echo "$as_me:$LINENO: checking for toolkit" >&5
9597echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9598
9599# In Wine, we need to default to MSW, not GTK or MOTIF
9600if test "$wxUSE_WINE" = "yes"; then
9601 DEFAULT_DEFAULT_wxUSE_GTK=0
9602 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9603 DEFAULT_DEFAULT_wxUSE_MSW=1
9604fi
10f2d63a
VZ
9605
9606if test "$wxUSE_GUI" = "yes"; then
9607
3a922bb4 9608 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9609 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9610echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9611 { (exit 1); exit 1; }; }
3a922bb4 9612 fi
b12915c1 9613
3a922bb4
RL
9614 if test "$TOOLKIT_GIVEN" = 1; then
9615 for toolkit in `echo $ALL_TOOLKITS`; do
9616 var=wxUSE_$toolkit
9617 eval "value=\$${var}"
9618 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9619 done
10f2d63a 9620 else
3a922bb4
RL
9621 for toolkit in `echo $ALL_TOOLKITS`; do
9622 if test "$has_toolkit_in_cache" != 1; then
9623 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9624 else
9625 var=DEFAULT_wxUSE_$toolkit
9626 fi
9627 eval "wxUSE_$toolkit=\$${var}"
9628 done
10f2d63a 9629 fi
10f2d63a 9630
ac0c4cc3
DE
9631 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9632 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9633 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9634
d558c907 9635 case "${host}" in
6fa882bd 9636 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9637 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9638 esac
10f2d63a 9639
3a922bb4
RL
9640 case "$NUM_TOOLKITS" in
9641 1)
9642 ;;
9643 0)
e6cc62c6
VS
9644 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9645echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9646 { (exit 1); exit 1; }; }
3a922bb4
RL
9647 ;;
9648 *)
e6cc62c6
VS
9649 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9650echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9651 { (exit 1); exit 1; }; }
3a922bb4 9652 esac
10f2d63a 9653
3a922bb4
RL
9654 for toolkit in `echo $ALL_TOOLKITS`; do
9655 var=wxUSE_$toolkit
9656 eval "value=\$${var}"
9657 if test "x$value" != x; then
9658 cache_var=CACHE_$toolkit
9659 eval "cache=\$${cache_var}"
9660 if test "$cache" = 1; then
9661 echo "$var=$value" >> ${wx_arg_cache_file}
9662 fi
9663 if test "$value" = 1; then
9664 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9665 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9666echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9667 fi
9668 fi
9669 done
10f2d63a 9670else
9de9b8f0
VZ
9671 if test "x$host_alias" != "x"; then
9672 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9673echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9674 else
9675 echo "$as_me:$LINENO: result: base only" >&5
9676echo "${ECHO_T}base only" >&6
9677 fi
10f2d63a
VZ
9678fi
9679
43d99b6d
VS
9680wants_win32=0
9681doesnt_want_win32=0
17234b26
MB
9682case "${host}" in
9683 *-*-cygwin*)
9684 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9685 wants_win32=1
9686 else
9687 doesnt_want_win32=1
17234b26
MB
9688 fi
9689 ;;
9690 *-*-mingw*)
43d99b6d 9691 wants_win32=1
17234b26
MB
9692 ;;
9693esac
9694
89e6bf6d
VZ
9695if test "$wxUSE_WINE" = "yes"; then
9696 wants_win32=1
9697 CC=winegcc
9698 CXX=wineg++
9699 RESCOMP=wrc
9700fi
9701
43d99b6d 9702if test "$wants_win32" = 1 ; then
17234b26
MB
9703 USE_UNIX=0
9704 USE_WIN32=1
e6cc62c6 9705 cat >>confdefs.h <<\_ACEOF
17234b26 9706#define __WIN32__ 1
e6cc62c6 9707_ACEOF
17234b26 9708
e6cc62c6 9709 cat >>confdefs.h <<\_ACEOF
17234b26 9710#define __WIN95__ 1
e6cc62c6 9711_ACEOF
17234b26 9712
e6cc62c6 9713 cat >>confdefs.h <<\_ACEOF
17234b26 9714#define __WINDOWS__ 1
e6cc62c6 9715_ACEOF
17234b26 9716
e6cc62c6 9717 cat >>confdefs.h <<\_ACEOF
17234b26 9718#define __GNUWIN32__ 1
e6cc62c6 9719_ACEOF
17234b26 9720
e6cc62c6 9721 cat >>confdefs.h <<\_ACEOF
17234b26 9722#define STRICT 1
e6cc62c6 9723_ACEOF
17234b26 9724
e6cc62c6 9725 cat >>confdefs.h <<\_ACEOF
17234b26 9726#define WINVER 0x0400
e6cc62c6 9727_ACEOF
17234b26 9728
43d99b6d
VS
9729fi
9730if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9731 USE_UNIX=1
9732 USE_WIN32=0
9733fi
9734
9735if test "$USE_UNIX" = 1 ; then
9736 wxUSE_UNIX=yes
e6cc62c6 9737 cat >>confdefs.h <<\_ACEOF
17234b26 9738#define __UNIX__ 1
e6cc62c6 9739_ACEOF
17234b26
MB
9740
9741fi
9742
8284b0c5 9743
e6cc62c6 9744cat >confcache <<\_ACEOF
10f2d63a
VZ
9745# This file is a shell script that caches the results of configure
9746# tests run on this system so they can be shared between configure
e6cc62c6
VS
9747# scripts and configure runs, see configure's option --config-cache.
9748# It is not useful on other systems. If it contains results you don't
9749# want to keep, you may remove or edit it.
10f2d63a 9750#
e6cc62c6
VS
9751# config.status only pays attention to the cache file if you give it
9752# the --recheck option to rerun configure.
10f2d63a 9753#
e6cc62c6
VS
9754# `ac_cv_env_foo' variables (set or unset) will be overridden when
9755# loading this file, other *unset* `ac_cv_foo' will be assigned the
9756# following values.
9757
9758_ACEOF
9759
10f2d63a
VZ
9760# The following way of writing the cache mishandles newlines in values,
9761# but we know of no workaround that is simple, portable, and efficient.
9762# So, don't put newlines in cache variables' values.
9763# Ultrix sh set writes to stderr and can't be redirected directly,
9764# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9765{
9766 (set) 2>&1 |
9767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9768 *ac_space=\ *)
9769 # `set' does not quote correctly, so add quotes (double-quote
9770 # substitution turns \\\\ into \\, and sed turns \\ into \).
9771 sed -n \
9772 "s/'/'\\\\''/g;
9773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9774 ;;
9775 *)
9776 # `set' quotes correctly as required by POSIX, so do not add quotes.
9777 sed -n \
9778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9779 ;;
9780 esac;
9781} |
9782 sed '
9783 t clear
9784 : clear
9785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9786 t end
9787 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9788 : end' >>confcache
9789if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9790 if test -w $cache_file; then
e6cc62c6
VS
9791 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9792 cat confcache >$cache_file
10f2d63a
VZ
9793 else
9794 echo "not updating unwritable cache $cache_file"
9795 fi
9796fi
9797rm -f confcache
9798
e59890c3 9799if test "$build" != "$host" ; then
9d353d4a 9800 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9801 CC=$host_alias-gcc
9802 CXX=$host_alias-c++
9803 AR=$host_alias-ar
9804 RANLIB=$host_alias-ranlib
9805 DLLTOOL=$host_alias-dlltool
9806 RESCOMP=$host_alias-windres
9807 LD=$host_alias-ld
9808 NM=$host_alias-nm
9809 STRIP=$host_alias-strip
9810 else
e6cc62c6
VS
9811 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9812echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9813 { (exit 1); exit 1; }; }
3a922bb4 9814 fi
10f2d63a
VZ
9815fi
9816
ec603395 9817CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9818ac_ext=c
9819ac_cpp='$CPP $CPPFLAGS'
9820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822ac_compiler_gnu=$ac_cv_c_compiler_gnu
9823if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}gcc; ac_word=$2
9826echo "$as_me:$LINENO: checking for $ac_word" >&5
9827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9828if test "${ac_cv_prog_CC+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831 if test -n "$CC"; then
9832 ac_cv_prog_CC="$CC" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845done
9846done
9847
9848fi
9849fi
9850CC=$ac_cv_prog_CC
9851if test -n "$CC"; then
9852 echo "$as_me:$LINENO: result: $CC" >&5
9853echo "${ECHO_T}$CC" >&6
9854else
9855 echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
9857fi
9858
9859fi
9860if test -z "$ac_cv_prog_CC"; then
9861 ac_ct_CC=$CC
9862 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9863set dummy gcc; ac_word=$2
e6cc62c6
VS
9864echo "$as_me:$LINENO: checking for $ac_word" >&5
9865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 if test -n "$ac_ct_CC"; then
9870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_ac_ct_CC="gcc"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884done
9885
9886fi
9887fi
9888ac_ct_CC=$ac_cv_prog_ac_ct_CC
9889if test -n "$ac_ct_CC"; then
9890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9891echo "${ECHO_T}$ac_ct_CC" >&6
9892else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895fi
9896
9897 CC=$ac_ct_CC
9898else
9899 CC="$ac_cv_prog_CC"
9900fi
9901
9902if test -z "$CC"; then
9903 if test -n "$ac_tool_prefix"; then
9904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9905set dummy ${ac_tool_prefix}cc; ac_word=$2
9906echo "$as_me:$LINENO: checking for $ac_word" >&5
9907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9908if test "${ac_cv_prog_CC+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9910else
9911 if test -n "$CC"; then
9912 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9913else
e6cc62c6
VS
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_CC="${ac_tool_prefix}cc"
9922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926done
9927
10f2d63a 9928fi
6232543b 9929fi
e6cc62c6 9930CC=$ac_cv_prog_CC
6232543b 9931if test -n "$CC"; then
e6cc62c6
VS
9932 echo "$as_me:$LINENO: result: $CC" >&5
9933echo "${ECHO_T}$CC" >&6
9934else
9935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
9937fi
9938
9939fi
9940if test -z "$ac_cv_prog_CC"; then
9941 ac_ct_CC=$CC
9942 # Extract the first word of "cc", so it can be a program name with args.
9943set dummy cc; ac_word=$2
9944echo "$as_me:$LINENO: checking for $ac_word" >&5
9945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9946if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 if test -n "$ac_ct_CC"; then
9950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9951else
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_prog_ac_ct_CC="cc"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9962 fi
9963done
9964done
9965
9966fi
9967fi
9968ac_ct_CC=$ac_cv_prog_ac_ct_CC
9969if test -n "$ac_ct_CC"; then
9970 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9971echo "${ECHO_T}$ac_ct_CC" >&6
9972else
9973 echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975fi
9976
9977 CC=$ac_ct_CC
247f5006 9978else
e6cc62c6 9979 CC="$ac_cv_prog_CC"
247f5006
VZ
9980fi
9981
e6cc62c6 9982fi
5c6fa7d2
RR
9983if test -z "$CC"; then
9984 # Extract the first word of "cc", so it can be a program name with args.
9985set dummy cc; ac_word=$2
e6cc62c6
VS
9986echo "$as_me:$LINENO: checking for $ac_word" >&5
9987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9988if test "${ac_cv_prog_CC+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9990else
9991 if test -n "$CC"; then
9992 ac_cv_prog_CC="$CC" # Let the user override the test.
9993else
9994 ac_prog_rejected=no
e6cc62c6
VS
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10003 ac_prog_rejected=yes
10004 continue
10005 fi
10006 ac_cv_prog_CC="cc"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010done
10011done
10012
328a083c
RR
10013if test $ac_prog_rejected = yes; then
10014 # We found a bogon in the path, so make sure we never use it.
10015 set dummy $ac_cv_prog_CC
10016 shift
e6cc62c6 10017 if test $# != 0; then
328a083c 10018 # We chose a different compiler from the bogus one.
1e487827
VS
10019 # However, it has the same basename, so the bogon will be chosen
10020 # first if we set CC to just the basename; use the full file name.
10021 shift
e6cc62c6 10022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10023 fi
1e487827
VS
10024fi
10025fi
10026fi
e6cc62c6 10027CC=$ac_cv_prog_CC
1e487827 10028if test -n "$CC"; then
e6cc62c6
VS
10029 echo "$as_me:$LINENO: result: $CC" >&5
10030echo "${ECHO_T}$CC" >&6
703e0a69 10031else
e6cc62c6
VS
10032 echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6
703e0a69 10034fi
1e487827 10035
e6cc62c6
VS
10036fi
10037if test -z "$CC"; then
10038 if test -n "$ac_tool_prefix"; then
10039 for ac_prog in cl
10040 do
10041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10043echo "$as_me:$LINENO: checking for $ac_word" >&5
10044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045if test "${ac_cv_prog_CC+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10047else
10048 if test -n "$CC"; then
10049 ac_cv_prog_CC="$CC" # Let the user override the test.
10050else
e6cc62c6
VS
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063done
10064
f09359cf
VS
10065fi
10066fi
e6cc62c6 10067CC=$ac_cv_prog_CC
f09359cf 10068if test -n "$CC"; then
e6cc62c6
VS
10069 echo "$as_me:$LINENO: result: $CC" >&5
10070echo "${ECHO_T}$CC" >&6
f09359cf 10071else
e6cc62c6
VS
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
5c6fa7d2 10074fi
1e487827 10075
e6cc62c6
VS
10076 test -n "$CC" && break
10077 done
10078fi
10079if test -z "$CC"; then
10080 ac_ct_CC=$CC
10081 for ac_prog in cl
10082do
10083 # Extract the first word of "$ac_prog", so it can be a program name with args.
10084set dummy $ac_prog; ac_word=$2
10085echo "$as_me:$LINENO: checking for $ac_word" >&5
10086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 if test -n "$ac_ct_CC"; then
10091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_prog_ac_ct_CC="$ac_prog"
10101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104done
10105done
f09359cf 10106
e6cc62c6
VS
10107fi
10108fi
10109ac_ct_CC=$ac_cv_prog_ac_ct_CC
10110if test -n "$ac_ct_CC"; then
10111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10112echo "${ECHO_T}$ac_ct_CC" >&6
10113else
10114 echo "$as_me:$LINENO: result: no" >&5
10115echo "${ECHO_T}no" >&6
10116fi
f09359cf 10117
e6cc62c6
VS
10118 test -n "$ac_ct_CC" && break
10119done
247f5006 10120
e6cc62c6
VS
10121 CC=$ac_ct_CC
10122fi
10123
10124fi
10125
10126
10127test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10128See \`config.log' for more details." >&5
10129echo "$as_me: error: no acceptable C compiler found in \$PATH
10130See \`config.log' for more details." >&2;}
10131 { (exit 1); exit 1; }; }
10132
10133# Provide some information about the compiler.
10134echo "$as_me:$LINENO:" \
10135 "checking for C compiler version" >&5
10136ac_compiler=`set X $ac_compile; echo $2`
10137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10138 (eval $ac_compiler --version </dev/null >&5) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }
10142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10143 (eval $ac_compiler -v </dev/null >&5) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }
10147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10148 (eval $ac_compiler -V </dev/null >&5) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }
10152
10153cat >conftest.$ac_ext <<_ACEOF
10154#line $LINENO "configure"
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h. */
10160
10161int
10162main ()
10163{
247f5006 10164
e6cc62c6
VS
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169ac_clean_files_save=$ac_clean_files
10170ac_clean_files="$ac_clean_files a.out a.exe b.out"
10171# Try to create an executable without -o first, disregard a.out.
10172# It will help us diagnose broken compilers, and finding out an intuition
10173# of exeext.
10174echo "$as_me:$LINENO: checking for C compiler default output" >&5
10175echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10176ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10177if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10178 (eval $ac_link_default) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; then
10182 # Find the output, starting from the most likely. This scheme is
10183# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10184# resort.
10185
10186# Be careful to initialize this variable, since it used to be cached.
10187# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10188ac_cv_exeext=
10189# b.out is created by i960 compilers.
10190for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10191do
10192 test -f "$ac_file" || continue
10193 case $ac_file in
10194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10195 ;;
10196 conftest.$ac_ext )
10197 # This is the source file.
10198 ;;
10199 [ab].out )
10200 # We found the default executable, but exeext='' is most
10201 # certainly right.
10202 break;;
10203 *.* )
10204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10205 # FIXME: I believe we export ac_cv_exeext for Libtool,
10206 # but it would be cool to find out if it's true. Does anybody
10207 # maintain Libtool? --akim.
10208 export ac_cv_exeext
10209 break;;
10210 * )
10211 break;;
10212 esac
10213done
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10219See \`config.log' for more details." >&5
10220echo "$as_me: error: C compiler cannot create executables
10221See \`config.log' for more details." >&2;}
10222 { (exit 77); exit 77; }; }
10223fi
10224
10225ac_exeext=$ac_cv_exeext
10226echo "$as_me:$LINENO: result: $ac_file" >&5
10227echo "${ECHO_T}$ac_file" >&6
10228
10229# Check the compiler produces executables we can run. If not, either
10230# the compiler is broken, or we cross compile.
10231echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10232echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10233# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10234# If not cross compiling, check that we can run a simple program.
10235if test "$cross_compiling" != yes; then
10236 if { ac_try='./$ac_file'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 cross_compiling=no
698dcdb6 10243 else
e6cc62c6
VS
10244 if test "$cross_compiling" = maybe; then
10245 cross_compiling=yes
10246 else
10247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10248If you meant to cross compile, use \`--host'.
10249See \`config.log' for more details." >&5
10250echo "$as_me: error: cannot run C compiled programs.
10251If you meant to cross compile, use \`--host'.
10252See \`config.log' for more details." >&2;}
10253 { (exit 1); exit 1; }; }
10254 fi
698dcdb6 10255 fi
52127426 10256fi
e6cc62c6
VS
10257echo "$as_me:$LINENO: result: yes" >&5
10258echo "${ECHO_T}yes" >&6
10259
10260rm -f a.out a.exe conftest$ac_cv_exeext b.out
10261ac_clean_files=$ac_clean_files_save
10262# Check the compiler produces executables we can run. If not, either
10263# the compiler is broken, or we cross compile.
10264echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10266echo "$as_me:$LINENO: result: $cross_compiling" >&5
10267echo "${ECHO_T}$cross_compiling" >&6
10268
10269echo "$as_me:$LINENO: checking for suffix of executables" >&5
10270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; then
10276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10278# work properly (i.e., refer to `conftest.exe'), while it won't with
10279# `rm'.
10280for ac_file in conftest.exe conftest conftest.*; do
10281 test -f "$ac_file" || continue
10282 case $ac_file in
10283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10285 export ac_cv_exeext
10286 break;;
10287 * ) break;;
10288 esac
10289done
5c6fa7d2 10290else
e6cc62c6
VS
10291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10292See \`config.log' for more details." >&5
10293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10294See \`config.log' for more details." >&2;}
10295 { (exit 1); exit 1; }; }
10296fi
10297
10298rm -f conftest$ac_cv_exeext
10299echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10300echo "${ECHO_T}$ac_cv_exeext" >&6
10301
10302rm -f conftest.$ac_ext
10303EXEEXT=$ac_cv_exeext
10304ac_exeext=$EXEEXT
10305echo "$as_me:$LINENO: checking for suffix of object files" >&5
10306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10307if test "${ac_cv_objext+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 cat >conftest.$ac_ext <<_ACEOF
10311#line $LINENO "configure"
10312/* confdefs.h. */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h. */
10317
10318int
10319main ()
10320{
f09359cf 10321
e6cc62c6
VS
10322 ;
10323 return 0;
10324}
10325_ACEOF
10326rm -f conftest.o conftest.obj
10327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; then
10332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10333 case $ac_file in
10334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10336 break;;
10337 esac
10338done
a0b9e27f 10339else
e6cc62c6
VS
10340 echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10344See \`config.log' for more details." >&5
10345echo "$as_me: error: cannot compute suffix of object files: cannot compile
10346See \`config.log' for more details." >&2;}
10347 { (exit 1); exit 1; }; }
a0b9e27f 10348fi
247f5006 10349
e6cc62c6
VS
10350rm -f conftest.$ac_cv_objext conftest.$ac_ext
10351fi
10352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10353echo "${ECHO_T}$ac_cv_objext" >&6
10354OBJEXT=$ac_cv_objext
10355ac_objext=$OBJEXT
10356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10358if test "${ac_cv_c_compiler_gnu+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10360else
e6cc62c6
VS
10361 cat >conftest.$ac_ext <<_ACEOF
10362#line $LINENO "configure"
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368
10369int
10370main ()
10371{
10372#ifndef __GNUC__
10373 choke me
10374#endif
10375
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext
10381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_compiler_gnu=yes
10393else
10394 echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397ac_compiler_gnu=no
10398fi
10399rm -f conftest.$ac_objext conftest.$ac_ext
10400ac_cv_c_compiler_gnu=$ac_compiler_gnu
10401
10402fi
10403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10405GCC=`test $ac_compiler_gnu = yes && echo yes`
10406ac_test_CFLAGS=${CFLAGS+set}
10407ac_save_CFLAGS=$CFLAGS
10408CFLAGS="-g"
10409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10411if test "${ac_cv_prog_cc_g+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 cat >conftest.$ac_ext <<_ACEOF
10415#line $LINENO "configure"
10416/* confdefs.h. */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h. */
10421
10422int
10423main ()
10424{
10425
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext
10431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10f2d63a
VZ
10442 ac_cv_prog_cc_g=yes
10443else
e6cc62c6
VS
10444 echo "$as_me: failed program was:" >&5
10445sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10446
e6cc62c6 10447ac_cv_prog_cc_g=no
10f2d63a 10448fi
e6cc62c6
VS
10449rm -f conftest.$ac_objext conftest.$ac_ext
10450fi
10451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10453if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10454 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10455elif test $ac_cv_prog_cc_g = yes; then
10456 if test "$GCC" = yes; then
10f2d63a
VZ
10457 CFLAGS="-g -O2"
10458 else
f09359cf 10459 CFLAGS="-g"
10f2d63a 10460 fi
5c0a20c3 10461else
f09359cf
VS
10462 if test "$GCC" = yes; then
10463 CFLAGS="-O2"
10464 else
10465 CFLAGS=
10466 fi
10f2d63a 10467fi
e6cc62c6
VS
10468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10470if test "${ac_cv_prog_cc_stdc+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 ac_cv_prog_cc_stdc=no
10474ac_save_CC=$CC
10475cat >conftest.$ac_ext <<_ACEOF
10476#line $LINENO "configure"
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482#include <stdarg.h>
10483#include <stdio.h>
10484#include <sys/types.h>
10485#include <sys/stat.h>
10486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10487struct buf { int x; };
10488FILE * (*rcsopen) (struct buf *, struct stat *, int);
10489static char *e (p, i)
10490 char **p;
10491 int i;
10492{
10493 return p[i];
10494}
10495static char *f (char * (*g) (char **, int), char **p, ...)
10496{
10497 char *s;
10498 va_list v;
10499 va_start (v,p);
10500 s = g (p, va_arg (v,int));
10501 va_end (v);
10502 return s;
10503}
10504int test (int i, double x);
10505struct s1 {int (*f) (int a);};
10506struct s2 {int (*f) (double a);};
10507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10508int argc;
10509char **argv;
10510int
10511main ()
10512{
10513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10514 ;
10515 return 0;
10516}
10517_ACEOF
10518# Don't try gcc -ansi; that turns off useful extensions and
10519# breaks some systems' header files.
10520# AIX -qlanglvl=ansi
10521# Ultrix and OSF/1 -std1
10522# HP-UX 10.20 and later -Ae
10523# HP-UX older versions -Aa -D_HPUX_SOURCE
10524# SVR4 -Xc -D__EXTENSIONS__
10525for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10526do
10527 CC="$ac_save_CC $ac_arg"
10528 rm -f conftest.$ac_objext
10529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 ac_cv_prog_cc_stdc=$ac_arg
10541break
10542else
10543 echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546fi
10547rm -f conftest.$ac_objext
10548done
10549rm -f conftest.$ac_ext conftest.$ac_objext
10550CC=$ac_save_CC
10551
10552fi
10553
10554case "x$ac_cv_prog_cc_stdc" in
10555 x|xno)
10556 echo "$as_me:$LINENO: result: none needed" >&5
10557echo "${ECHO_T}none needed" >&6 ;;
10558 *)
10559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10560echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10561 CC="$CC $ac_cv_prog_cc_stdc" ;;
10562esac
10563
10564# Some people use a C++ compiler to compile C. Since we use `exit',
10565# in C++ we need to declare it. In case someone uses the same compiler
10566# for both compiling C and C++ we need to have the C++ compiler decide
10567# the declaration of exit, since it's the most demanding environment.
10568cat >conftest.$ac_ext <<_ACEOF
10569#ifndef __cplusplus
10570 choke me
10571#endif
10572_ACEOF
10573rm -f conftest.$ac_objext
10574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575 (eval $ac_compile) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -s conftest.$ac_objext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 for ac_declaration in \
57e7d4ac
VS
10586 ''\
10587 '#include <stdlib.h>' \
e6cc62c6
VS
10588 'extern "C" void std::exit (int) throw (); using std::exit;' \
10589 'extern "C" void std::exit (int); using std::exit;' \
10590 'extern "C" void exit (int) throw ();' \
10591 'extern "C" void exit (int);' \
10592 'void exit (int);'
10593do
10594 cat >conftest.$ac_ext <<_ACEOF
10595#line $LINENO "configure"
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
7015ef3a 10601#include <stdlib.h>
57e7d4ac 10602$ac_declaration
e6cc62c6
VS
10603int
10604main ()
10605{
10606exit (42);
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext
10612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -s conftest.$ac_objext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 :
10624else
10625 echo "$as_me: failed program was:" >&5
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
10628continue
10629fi
10630rm -f conftest.$ac_objext conftest.$ac_ext
10631 cat >conftest.$ac_ext <<_ACEOF
10632#line $LINENO "configure"
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638$ac_declaration
10639int
10640main ()
10641{
10642exit (42);
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext
10648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 break
10660else
10661 echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664fi
10665rm -f conftest.$ac_objext conftest.$ac_ext
10666done
10667rm -f conftest*
10668if test -n "$ac_declaration"; then
10669 echo '#ifdef __cplusplus' >>confdefs.h
10670 echo $ac_declaration >>confdefs.h
10671 echo '#endif' >>confdefs.h
10672fi
10673
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678fi
10679rm -f conftest.$ac_objext conftest.$ac_ext
10680ac_ext=c
10681ac_cpp='$CPP $CPPFLAGS'
10682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10684ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10685
10686
e6cc62c6
VS
10687
10688ac_ext=c
10689ac_cpp='$CPP $CPPFLAGS'
10690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10692ac_compiler_gnu=$ac_cv_c_compiler_gnu
10693echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10694echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10695# On Suns, sometimes $CPP names a directory.
10696if test -n "$CPP" && test -d "$CPP"; then
10697 CPP=
10698fi
10699if test -z "$CPP"; then
e6cc62c6
VS
10700 if test "${ac_cv_prog_CPP+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702else
10703 # Double quotes because CPP needs to be expanded
10704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10705 do
10706 ac_preproc_ok=false
10707for ac_c_preproc_warn_flag in '' yes
10708do
10709 # Use a header file that comes with gcc, so configuring glibc
10710 # with a fresh cross-compiler works.
10711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712 # <limits.h> exists even on freestanding compilers.
10f2d63a 10713 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10714 # not just through cpp. "Syntax error" is here to catch this case.
10715 cat >conftest.$ac_ext <<_ACEOF
10716#line $LINENO "configure"
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
10722#ifdef __STDC__
10723# include <limits.h>
10724#else
10725# include <assert.h>
10726#endif
10727 Syntax error
10728_ACEOF
10729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } >/dev/null; then
10737 if test -s conftest.err; then
10738 ac_cpp_err=$ac_c_preproc_warn_flag
10739 else
10740 ac_cpp_err=
10741 fi
10f2d63a 10742else
e6cc62c6
VS
10743 ac_cpp_err=yes
10744fi
10745if test -z "$ac_cpp_err"; then
a0b9e27f 10746 :
247f5006 10747else
e6cc62c6
VS
10748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 # Broken: fails on valid input.
10752continue
10753fi
10754rm -f conftest.err conftest.$ac_ext
10755
10756 # OK, works on sane cases. Now check whether non-existent headers
10757 # can be detected and how.
10758 cat >conftest.$ac_ext <<_ACEOF
10759#line $LINENO "configure"
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#include <ac_nonexistent.h>
10766_ACEOF
10767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null; then
10775 if test -s conftest.err; then
10776 ac_cpp_err=$ac_c_preproc_warn_flag
10777 else
10778 ac_cpp_err=
10779 fi
10f2d63a 10780else
e6cc62c6 10781 ac_cpp_err=yes
579d8138 10782fi
e6cc62c6
VS
10783if test -z "$ac_cpp_err"; then
10784 # Broken: success on invalid input.
10785continue
10786else
10787 echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 # Passes both tests.
10791ac_preproc_ok=:
10792break
52127426 10793fi
e6cc62c6
VS
10794rm -f conftest.err conftest.$ac_ext
10795
10796done
10797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10798rm -f conftest.err conftest.$ac_ext
10799if $ac_preproc_ok; then
10800 break
8284b0c5 10801fi
e6cc62c6
VS
10802
10803 done
10804 ac_cv_prog_CPP=$CPP
10805
10806fi
10807 CPP=$ac_cv_prog_CPP
10808else
10809 ac_cv_prog_CPP=$CPP
10810fi
10811echo "$as_me:$LINENO: result: $CPP" >&5
10812echo "${ECHO_T}$CPP" >&6
10813ac_preproc_ok=false
10814for ac_c_preproc_warn_flag in '' yes
10815do
10816 # Use a header file that comes with gcc, so configuring glibc
10817 # with a fresh cross-compiler works.
10818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10819 # <limits.h> exists even on freestanding compilers.
10820 # On the NeXT, cc -E runs the code through the compiler's parser,
10821 # not just through cpp. "Syntax error" is here to catch this case.
10822 cat >conftest.$ac_ext <<_ACEOF
10823#line $LINENO "configure"
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829#ifdef __STDC__
10830# include <limits.h>
10831#else
10832# include <assert.h>
10833#endif
10834 Syntax error
10835_ACEOF
10836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } >/dev/null; then
10844 if test -s conftest.err; then
10845 ac_cpp_err=$ac_c_preproc_warn_flag
10846 else
10847 ac_cpp_err=
10848 fi
10849else
10850 ac_cpp_err=yes
10851fi
10852if test -z "$ac_cpp_err"; then
10853 :
10854else
10855 echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 # Broken: fails on valid input.
10859continue
10860fi
10861rm -f conftest.err conftest.$ac_ext
10862
10863 # OK, works on sane cases. Now check whether non-existent headers
10864 # can be detected and how.
10865 cat >conftest.$ac_ext <<_ACEOF
10866#line $LINENO "configure"
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#include <ac_nonexistent.h>
10873_ACEOF
10874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev/null; then
10882 if test -s conftest.err; then
10883 ac_cpp_err=$ac_c_preproc_warn_flag
10884 else
10885 ac_cpp_err=
10886 fi
10887else
10888 ac_cpp_err=yes
10889fi
10890if test -z "$ac_cpp_err"; then
10891 # Broken: success on invalid input.
10892continue
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 # Passes both tests.
10898ac_preproc_ok=:
10899break
a0b9e27f 10900fi
e6cc62c6
VS
10901rm -f conftest.err conftest.$ac_ext
10902
10903done
10904# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10905rm -f conftest.err conftest.$ac_ext
10906if $ac_preproc_ok; then
10907 :
10908else
10909 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10910See \`config.log' for more details." >&5
10911echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10912See \`config.log' for more details." >&2;}
10913 { (exit 1); exit 1; }; }
10914fi
10915
10916ac_ext=c
10917ac_cpp='$CPP $CPPFLAGS'
10918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920ac_compiler_gnu=$ac_cv_c_compiler_gnu
10921
10922
10923echo "$as_me:$LINENO: checking for egrep" >&5
10924echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10925if test "${ac_cv_prog_egrep+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10927else
e6cc62c6
VS
10928 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10929 then ac_cv_prog_egrep='grep -E'
10930 else ac_cv_prog_egrep='egrep'
10931 fi
10f2d63a 10932fi
e6cc62c6
VS
10933echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10934echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10935 EGREP=$ac_cv_prog_egrep
10936
10f2d63a 10937
e6cc62c6
VS
10938if test $ac_cv_c_compiler_gnu = yes; then
10939 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10940echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10941if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10943else
10944 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10945 cat >conftest.$ac_ext <<_ACEOF
10946#line $LINENO "configure"
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10f2d63a
VZ
10952#include <sgtty.h>
10953Autoconf TIOCGETP
e6cc62c6 10954_ACEOF
10f2d63a 10955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10956 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10957 ac_cv_prog_gcc_traditional=yes
10958else
10f2d63a
VZ
10959 ac_cv_prog_gcc_traditional=no
10960fi
10961rm -f conftest*
10962
8284b0c5 10963
10f2d63a 10964 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10965 cat >conftest.$ac_ext <<_ACEOF
10966#line $LINENO "configure"
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10f2d63a
VZ
10972#include <termio.h>
10973Autoconf TCGETA
e6cc62c6 10974_ACEOF
10f2d63a 10975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10976 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10977 ac_cv_prog_gcc_traditional=yes
10978fi
10979rm -f conftest*
10980
10981 fi
10982fi
e6cc62c6
VS
10983echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10984echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10985 if test $ac_cv_prog_gcc_traditional = yes; then
10986 CC="$CC -traditional"
10987 fi
10988fi
10989
8284b0c5
MB
10990
10991
e6cc62c6
VS
10992
10993ac_ext=cc
1e487827 10994ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10998
698dcdb6 10999
ec603395 11000CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11001ac_ext=cc
11002ac_cpp='$CXXCPP $CPPFLAGS'
11003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11006if test -n "$ac_tool_prefix"; then
11007 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11008 do
11009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11011echo "$as_me:$LINENO: checking for $ac_word" >&5
11012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11013if test "${ac_cv_prog_CXX+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11015else
11016 if test -n "$CXX"; then
11017 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11018else
e6cc62c6
VS
11019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $PATH
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11029 fi
11030done
11031done
11032
10f2d63a
VZ
11033fi
11034fi
e6cc62c6 11035CXX=$ac_cv_prog_CXX
10f2d63a 11036if test -n "$CXX"; then
e6cc62c6
VS
11037 echo "$as_me:$LINENO: result: $CXX" >&5
11038echo "${ECHO_T}$CXX" >&6
10f2d63a 11039else
e6cc62c6
VS
11040 echo "$as_me:$LINENO: result: no" >&5
11041echo "${ECHO_T}no" >&6
10f2d63a
VZ
11042fi
11043
e6cc62c6
VS
11044 test -n "$CXX" && break
11045 done
11046fi
11047if test -z "$CXX"; then
11048 ac_ct_CXX=$CXX
11049 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11050do
11051 # Extract the first word of "$ac_prog", so it can be a program name with args.
11052set dummy $ac_prog; ac_word=$2
11053echo "$as_me:$LINENO: checking for $ac_word" >&5
11054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11055if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058 if test -n "$ac_ct_CXX"; then
11059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11060else
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11068 ac_cv_prog_ac_ct_CXX="$ac_prog"
11069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11071 fi
11072done
10f2d63a 11073done
a0b9e27f 11074
8284b0c5 11075fi
a0b9e27f 11076fi
e6cc62c6
VS
11077ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11078if test -n "$ac_ct_CXX"; then
11079 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11080echo "${ECHO_T}$ac_ct_CXX" >&6
11081else
11082 echo "$as_me:$LINENO: result: no" >&5
11083echo "${ECHO_T}no" >&6
a0b9e27f 11084fi
10f2d63a 11085
e6cc62c6
VS
11086 test -n "$ac_ct_CXX" && break
11087done
11088test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11089
11090 CXX=$ac_ct_CXX
11091fi
11092
11093
11094# Provide some information about the compiler.
11095echo "$as_me:$LINENO:" \
11096 "checking for C++ compiler version" >&5
11097ac_compiler=`set X $ac_compile; echo $2`
11098{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11099 (eval $ac_compiler --version </dev/null >&5) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }
11103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11104 (eval $ac_compiler -v </dev/null >&5) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }
11108{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11109 (eval $ac_compiler -V </dev/null >&5) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }
11113
11114echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11115echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11116if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 cat >conftest.$ac_ext <<_ACEOF
11120#line $LINENO "configure"
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
11126
11127int
11128main ()
11129{
11130#ifndef __GNUC__
11131 choke me
11132#endif
10f2d63a 11133
e6cc62c6
VS
11134 ;
11135 return 0;
11136}
11137_ACEOF
11138rm -f conftest.$ac_objext
11139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -s conftest.$ac_objext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_compiler_gnu=yes
11151else
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155ac_compiler_gnu=no
11156fi
11157rm -f conftest.$ac_objext conftest.$ac_ext
11158ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11159
11160fi
11161echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11162echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11163GXX=`test $ac_compiler_gnu = yes && echo yes`
11164ac_test_CXXFLAGS=${CXXFLAGS+set}
11165ac_save_CXXFLAGS=$CXXFLAGS
11166CXXFLAGS="-g"
11167echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11168echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11169if test "${ac_cv_prog_cxx_g+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172 cat >conftest.$ac_ext <<_ACEOF
11173#line $LINENO "configure"
11174/* confdefs.h. */
11175_ACEOF
11176cat confdefs.h >>conftest.$ac_ext
11177cat >>conftest.$ac_ext <<_ACEOF
11178/* end confdefs.h. */
11179
11180int
11181main ()
11182{
f09359cf 11183
e6cc62c6
VS
11184 ;
11185 return 0;
11186}
11187_ACEOF
11188rm -f conftest.$ac_objext
11189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11190 (eval $ac_compile) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -s conftest.$ac_objext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
10f2d63a
VZ
11200 ac_cv_prog_cxx_g=yes
11201else
e6cc62c6
VS
11202 echo "$as_me: failed program was:" >&5
11203sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11204
e6cc62c6 11205ac_cv_prog_cxx_g=no
10f2d63a 11206fi
e6cc62c6
VS
11207rm -f conftest.$ac_objext conftest.$ac_ext
11208fi
11209echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11210echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11211if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11212 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11213elif test $ac_cv_prog_cxx_g = yes; then
11214 if test "$GXX" = yes; then
10f2d63a
VZ
11215 CXXFLAGS="-g -O2"
11216 else
f09359cf 11217 CXXFLAGS="-g"
10f2d63a 11218 fi
5c0a20c3 11219else
f09359cf
VS
11220 if test "$GXX" = yes; then
11221 CXXFLAGS="-O2"
11222 else
11223 CXXFLAGS=
11224 fi
10f2d63a 11225fi
e6cc62c6 11226for ac_declaration in \
57e7d4ac
VS
11227 ''\
11228 '#include <stdlib.h>' \
e6cc62c6
VS
11229 'extern "C" void std::exit (int) throw (); using std::exit;' \
11230 'extern "C" void std::exit (int); using std::exit;' \
11231 'extern "C" void exit (int) throw ();' \
11232 'extern "C" void exit (int);' \
11233 'void exit (int);'
11234do
11235 cat >conftest.$ac_ext <<_ACEOF
11236#line $LINENO "configure"
11237/* confdefs.h. */
11238_ACEOF
11239cat confdefs.h >>conftest.$ac_ext
11240cat >>conftest.$ac_ext <<_ACEOF
11241/* end confdefs.h. */
7015ef3a 11242#include <stdlib.h>
57e7d4ac 11243$ac_declaration
e6cc62c6
VS
11244int
11245main ()
11246{
11247exit (42);
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254 (eval $ac_compile) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 :
11265else
11266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269continue
11270fi
11271rm -f conftest.$ac_objext conftest.$ac_ext
11272 cat >conftest.$ac_ext <<_ACEOF
11273#line $LINENO "configure"
11274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
11279$ac_declaration
11280int
11281main ()
11282{
11283exit (42);
11284 ;
11285 return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext
11289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290 (eval $ac_compile) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest.$ac_objext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 break
11301else
11302 echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
11305fi
11306rm -f conftest.$ac_objext conftest.$ac_ext
11307done
11308rm -f conftest*
11309if test -n "$ac_declaration"; then
11310 echo '#ifdef __cplusplus' >>confdefs.h
11311 echo $ac_declaration >>confdefs.h
11312 echo '#endif' >>confdefs.h
11313fi
11314
11315ac_ext=cc
11316ac_cpp='$CXXCPP $CPPFLAGS'
11317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11320
11321
10f2d63a 11322ac_ext=c
10f2d63a 11323ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11326ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11327
11328
e6cc62c6
VS
11329if test -n "$ac_tool_prefix"; then
11330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11332echo "$as_me:$LINENO: checking for $ac_word" >&5
11333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334if test "${ac_cv_prog_RANLIB+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11336else
11337 if test -n "$RANLIB"; then
11338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11339else
e6cc62c6
VS
11340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $PATH
11342do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 break 2
11350 fi
11351done
11352done
11353
10f2d63a
VZ
11354fi
11355fi
e6cc62c6 11356RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11357if test -n "$RANLIB"; then
e6cc62c6
VS
11358 echo "$as_me:$LINENO: result: $RANLIB" >&5
11359echo "${ECHO_T}$RANLIB" >&6
11360else
11361 echo "$as_me:$LINENO: result: no" >&5
11362echo "${ECHO_T}no" >&6
11363fi
11364
11365fi
11366if test -z "$ac_cv_prog_RANLIB"; then
11367 ac_ct_RANLIB=$RANLIB
11368 # Extract the first word of "ranlib", so it can be a program name with args.
11369set dummy ranlib; ac_word=$2
11370echo "$as_me:$LINENO: checking for $ac_word" >&5
11371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11372if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11374else
e6cc62c6
VS
11375 if test -n "$ac_ct_RANLIB"; then
11376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11377else
11378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_prog_ac_ct_RANLIB="ranlib"
11386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389done
11390done
11391
11392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11393fi
11394fi
11395ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11396if test -n "$ac_ct_RANLIB"; then
11397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11398echo "${ECHO_T}$ac_ct_RANLIB" >&6
11399else
11400 echo "$as_me:$LINENO: result: no" >&5
11401echo "${ECHO_T}no" >&6
11402fi
11403
11404 RANLIB=$ac_ct_RANLIB
11405else
11406 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11407fi
11408
10f2d63a
VZ
11409
11410# Extract the first word of "ar", so it can be a program name with args.
11411set dummy ar; ac_word=$2
e6cc62c6
VS
11412echo "$as_me:$LINENO: checking for $ac_word" >&5
11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11414if test "${ac_cv_prog_AR+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11416else
11417 if test -n "$AR"; then
11418 ac_cv_prog_AR="$AR" # Let the user override the test.
11419else
e6cc62c6
VS
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427 ac_cv_prog_AR="ar"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11430 fi
11431done
11432done
11433
10f2d63a
VZ
11434fi
11435fi
e6cc62c6 11436AR=$ac_cv_prog_AR
10f2d63a 11437if test -n "$AR"; then
e6cc62c6
VS
11438 echo "$as_me:$LINENO: result: $AR" >&5
11439echo "${ECHO_T}$AR" >&6
10f2d63a 11440else
e6cc62c6
VS
11441 echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6
10f2d63a
VZ
11443fi
11444
911740e7
VS
11445if test "x$AR" = "x" ; then
11446 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11447echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11448 { (exit 1); exit 1; }; }
11449fi
8284b0c5 11450
6054113a 11451# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11452# so one script is as good as another. But avoid the broken or
11453# incompatible versions:
11454# SysV /etc/install, /usr/sbin/install
11455# SunOS /usr/etc/install
11456# IRIX /sbin/install
11457# AIX /bin/install
e6cc62c6 11458# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11462# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11463echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11464echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11465if test -z "$INSTALL"; then
e6cc62c6
VS
11466if test "${ac_cv_path_install+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470for as_dir in $PATH
11471do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 # Account for people who put trailing slashes in PATH elements.
11475case $as_dir/ in
11476 ./ | .// | /cC/* | \
11477 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11478 /usr/ucb/* ) ;;
11479 *)
11480 # OSF1 and SCO ODT 3.0 have their own names for install.
11481 # Don't use installbsd from OSF since it installs stuff as root
11482 # by default.
11483 for ac_prog in ginstall scoinst install; do
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11486 if test $ac_prog = install &&
11487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11488 # AIX install. It has an incompatible calling convention.
11489 :
11490 elif test $ac_prog = install &&
11491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11492 # program-specific install script used by HP pwplus--don't use.
11493 :
11494 else
11495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11496 break 3
11497 fi
11498 fi
10f2d63a 11499 done
e6cc62c6
VS
11500 done
11501 ;;
11502esac
11503done
11504
10f2d63a
VZ
11505
11506fi
11507 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11508 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11509 else
11510 # As a last resort, use the slow shell script. We don't cache a
11511 # path for INSTALL within a source directory, because that will
11512 # break other packages using the cache if that directory is
11513 # removed, or if the path is relative.
e6cc62c6 11514 INSTALL=$ac_install_sh
10f2d63a
VZ
11515 fi
11516fi
e6cc62c6
VS
11517echo "$as_me:$LINENO: result: $INSTALL" >&5
11518echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11519
11520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11521# It thinks the first close brace ends the variable substitution.
11522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11523
e6cc62c6 11524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11525
10f2d63a
VZ
11526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11527
8284b0c5 11528
1d1b75ac
VZ
11529case ${INSTALL} in
11530 /* ) # Absolute
11531 ;;
4f5a7f74
VZ
11532 ?:* ) # Drive letter, considered as absolute.
11533 ;;
3bd8fb5f 11534 *)
1d1b75ac
VZ
11535 INSTALL=`pwd`/${INSTALL} ;;
11536esac
11537
4f5a7f74
VZ
11538case ${host} in
11539 *-hp-hpux* )
11540 INSTALL_DIR="mkdir"
11541 ;;
11542
11543 *) INSTALL_DIR="$INSTALL -d"
11544 ;;
11545esac
11546
8284b0c5 11547
6054113a
GD
11548case "${host}" in
11549
b5853384 11550 powerpc-*-darwin* )
eb99ae0b
GD
11551 INSTALL_PROGRAM="cp -fp"
11552 INSTALL_DATA="cp -fp"
6054113a
GD
11553 ;;
11554 *)
11555 ;;
d6853540 11556esac
698dcdb6 11557
10f2d63a
VZ
11558# Extract the first word of "strip", so it can be a program name with args.
11559set dummy strip; ac_word=$2
e6cc62c6
VS
11560echo "$as_me:$LINENO: checking for $ac_word" >&5
11561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11562if test "${ac_cv_prog_STRIP+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11564else
11565 if test -n "$STRIP"; then
11566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11567else
e6cc62c6
VS
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_prog_STRIP="strip"
11576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11578 fi
11579done
11580done
11581
10f2d63a
VZ
11582 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11583fi
11584fi
e6cc62c6 11585STRIP=$ac_cv_prog_STRIP
10f2d63a 11586if test -n "$STRIP"; then
e6cc62c6
VS
11587 echo "$as_me:$LINENO: result: $STRIP" >&5
11588echo "${ECHO_T}$STRIP" >&6
10f2d63a 11589else
e6cc62c6
VS
11590 echo "$as_me:$LINENO: result: no" >&5
11591echo "${ECHO_T}no" >&6
10f2d63a
VZ
11592fi
11593
5c6fa7d2 11594
e6cc62c6
VS
11595echo "$as_me:$LINENO: checking if make is GNU make" >&5
11596echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11597if test "${wx_cv_prog_makeisgnu+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11599else
e6cc62c6 11600
414eab6d 11601 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11602 egrep -s GNU > /dev/null); then
414eab6d
VZ
11603 wx_cv_prog_makeisgnu="yes"
11604 else
11605 wx_cv_prog_makeisgnu="no"
11606 fi
11607
11608fi
e6cc62c6
VS
11609echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11610echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11611
11612if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11613 IF_GNU_MAKE=""
11614else
11615 IF_GNU_MAKE="#"
11616fi
11617
8284b0c5
MB
11618
11619
414eab6d 11620if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11621echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11622echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11623if test "${wx_cv_prog_makevpath+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11625else
e6cc62c6 11626
10f2d63a
VZ
11627cat - << EOF > confMake
11628check : file
11629 cp \$? \$@
11630 cp \$? final_file
11631EOF
11632
11633if test ! -d sub ; then
11634 mkdir sub
11635fi
11636echo dummy > sub/file
f6bcfd97 11637${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11638RESULT=$?
11639rm -f sub/file check final_file confMake
11640rmdir sub
11641if test "$RESULT" = 0; then
04e7a216 11642 wx_cv_prog_makevpath="yes"
10f2d63a 11643else
04e7a216
VZ
11644 wx_cv_prog_makevpath="no"
11645fi
11646
11647fi
e6cc62c6
VS
11648echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11649echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11650
11651if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11652{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11653You need a make-utility that is able to use the variable
11654VPATH correctly.
11655If your version of make does not support VPATH correctly,
11656please install GNU-make (possibly as gmake), and start
11657configure with the following command:
11658export MAKE=gmake; ./configure for sh-type shells
11659setenv MAKE gmake; ./configure for csh-type shells
11660Also please do remember to use gmake in this case every time
11661you are trying to compile.
e6cc62c6
VS
11662" >&5
11663echo "$as_me: error:
11664You need a make-utility that is able to use the variable
11665VPATH correctly.
11666If your version of make does not support VPATH correctly,
11667please install GNU-make (possibly as gmake), and start
11668configure with the following command:
11669export MAKE=gmake; ./configure for sh-type shells
11670setenv MAKE gmake; ./configure for csh-type shells
11671Also please do remember to use gmake in this case every time
11672you are trying to compile.
11673" >&2;}
11674 { (exit 1); exit 1; }; }
11675fi fi
e6cc62c6
VS
11676echo "$as_me:$LINENO: checking whether ln -s works" >&5
11677echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11678LN_S=$as_ln_s
11679if test "$LN_S" = "ln -s"; then
11680 echo "$as_me:$LINENO: result: yes" >&5
11681echo "${ECHO_T}yes" >&6
10f2d63a 11682else
e6cc62c6
VS
11683 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11684echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11685fi
5c6fa7d2 11686
247f5006 11687
2b5f62a0
VZ
11688case "${host}" in
11689 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11690 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11691 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11692echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11693if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11695else
e6cc62c6 11696 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11697LIBS="-lcExt $LIBS"
e6cc62c6
VS
11698cat >conftest.$ac_ext <<_ACEOF
11699#line $LINENO "configure"
11700/* confdefs.h. */
11701_ACEOF
11702cat confdefs.h >>conftest.$ac_ext
11703cat >>conftest.$ac_ext <<_ACEOF
11704/* end confdefs.h. */
11705
2b5f62a0 11706/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11707#ifdef __cplusplus
11708extern "C"
11709#endif
2b5f62a0 11710/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11711 builtin and then its argument prototype would still apply. */
11712char drand48 ();
11713int
11714main ()
11715{
11716drand48 ();
11717 ;
11718 return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext conftest$ac_exeext
11722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_lib_cExt_drand48=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738ac_cv_lib_cExt_drand48=no
11739fi
11740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11741LIBS=$ac_check_lib_save_LIBS
11742fi
11743echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11744echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11745if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11746 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11747fi
11748
11749 else
11750 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11751 fi
73d617c9
MB
11752 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11753echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11754if test "${wx_cv_gcc3+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757
11758 cat >conftest.$ac_ext <<_ACEOF
11759#line $LINENO "configure"
11760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
11765#include <features.h>
11766int
11767main ()
11768{
11769
11770 #if (__GNUC__ < 3)
11771 #error old gcc
11772 #endif
11773
11774 ;
11775 return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext
11779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11780 (eval $ac_compile) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -s conftest.$ac_objext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790
11791 wx_cv_gcc3=yes
11792
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797
11798 wx_cv_gcc3=no
11799
11800
11801fi
11802rm -f conftest.$ac_objext conftest.$ac_ext
11803
11804fi
11805echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
11806echo "${ECHO_T}$wx_cv_gcc3" >&6
11807 if test "$wx_cv_gcc3" = "no"; then
11808 LIBS="$LIBS -lstdcpp"
11809 else
11810 LIBS="$LIBS -lstdcxx"
11811 fi
2b5f62a0
VZ
11812 ;;
11813esac
11814
a0b9e27f 11815
01aa5863
VS
11816if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11817 echo "$as_me:$LINENO: checking for strings.h" >&5
11818echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11819if test "${ac_cv_header_strings_h+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 ac_cv_header_strings_h=no
11823fi
11824echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11825echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11826 if test "$ac_cv_header_strings_h" = "no"; then
11827 echo "$as_me:$LINENO: result: forced no into cache" >&5
11828echo "${ECHO_T}forced no into cache" >&6
11829 else
11830 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11831echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11832 fi
11833fi
11834echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11835echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11836if test "${ac_cv_header_stdc+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839 cat >conftest.$ac_ext <<_ACEOF
11840#line $LINENO "configure"
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846#include <stdlib.h>
11847#include <stdarg.h>
11848#include <string.h>
11849#include <float.h>
247f5006 11850
e6cc62c6
VS
11851int
11852main ()
11853{
90dd450c 11854
e6cc62c6
VS
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext
11860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_cv_header_stdc=yes
8284b0c5 11872else
e6cc62c6
VS
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876ac_cv_header_stdc=no
21d1c967 11877fi
e6cc62c6 11878rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11879
e6cc62c6
VS
11880if test $ac_cv_header_stdc = yes; then
11881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11882 cat >conftest.$ac_ext <<_ACEOF
11883#line $LINENO "configure"
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889#include <string.h>
11890
11891_ACEOF
11892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11893 $EGREP "memchr" >/dev/null 2>&1; then
11894 :
11895else
11896 ac_cv_header_stdc=no
3a922bb4 11897fi
a0b9e27f 11898rm -f conftest*
e6cc62c6 11899
90dd450c 11900fi
e6cc62c6
VS
11901
11902if test $ac_cv_header_stdc = yes; then
11903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11904 cat >conftest.$ac_ext <<_ACEOF
11905#line $LINENO "configure"
11906/* confdefs.h. */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h. */
11911#include <stdlib.h>
11912
11913_ACEOF
11914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11915 $EGREP "free" >/dev/null 2>&1; then
11916 :
a0b9e27f 11917else
e6cc62c6 11918 ac_cv_header_stdc=no
21d1c967 11919fi
e6cc62c6 11920rm -f conftest*
247f5006
VZ
11921
11922fi
e6cc62c6
VS
11923
11924if test $ac_cv_header_stdc = yes; then
11925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11926 if test "$cross_compiling" = yes; then
11927 :
11928else
11929 cat >conftest.$ac_ext <<_ACEOF
11930#line $LINENO "configure"
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936#include <ctype.h>
11937#if ((' ' & 0x0FF) == 0x020)
11938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11940#else
11941# define ISLOWER(c) \
11942 (('a' <= (c) && (c) <= 'i') \
11943 || ('j' <= (c) && (c) <= 'r') \
11944 || ('s' <= (c) && (c) <= 'z'))
11945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11946#endif
11947
11948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11949int
11950main ()
11951{
11952 int i;
11953 for (i = 0; i < 256; i++)
11954 if (XOR (islower (i), ISLOWER (i))
11955 || toupper (i) != TOUPPER (i))
11956 exit(2);
11957 exit (0);
11958}
11959_ACEOF
11960rm -f conftest$ac_exeext
11961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 :
a0b9e27f 11972else
e6cc62c6
VS
11973 echo "$as_me: program exited with status $ac_status" >&5
11974echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977( exit $ac_status )
11978ac_cv_header_stdc=no
11979fi
11980rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11981fi
11982fi
11983fi
11984echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11985echo "${ECHO_T}$ac_cv_header_stdc" >&6
11986if test $ac_cv_header_stdc = yes; then
11987
11988cat >>confdefs.h <<\_ACEOF
11989#define STDC_HEADERS 1
11990_ACEOF
11991
a0b9e27f 11992fi
e6cc62c6
VS
11993
11994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12005 inttypes.h stdint.h unistd.h
12006do
12007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12008echo "$as_me:$LINENO: checking for $ac_header" >&5
12009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12010if eval "test \"\${$as_ac_Header+set}\" = set"; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013 cat >conftest.$ac_ext <<_ACEOF
12014#line $LINENO "configure"
12015/* confdefs.h. */
12016_ACEOF
12017cat confdefs.h >>conftest.$ac_ext
12018cat >>conftest.$ac_ext <<_ACEOF
12019/* end confdefs.h. */
12020$ac_includes_default
12021
12022#include <$ac_header>
12023_ACEOF
12024rm -f conftest.$ac_objext
12025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 eval "$as_ac_Header=yes"
12037else
12038 echo "$as_me: failed program was:" >&5
12039sed 's/^/| /' conftest.$ac_ext >&5
12040
12041eval "$as_ac_Header=no"
12042fi
12043rm -f conftest.$ac_objext conftest.$ac_ext
12044fi
12045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12047if test `eval echo '${'$as_ac_Header'}'` = yes; then
12048 cat >>confdefs.h <<_ACEOF
12049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12050_ACEOF
12051
12052fi
12053
a0b9e27f 12054done
90dd450c 12055
e6cc62c6
VS
12056
12057
12058for ac_header in strings.h
21d1c967 12059do
e6cc62c6
VS
12060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 echo "$as_me:$LINENO: checking for $ac_header" >&5
12063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12064if eval "test \"\${$as_ac_Header+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066fi
12067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12069else
12070 # Is the header compilable?
12071echo "$as_me:$LINENO: checking $ac_header usability" >&5
12072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12073cat >conftest.$ac_ext <<_ACEOF
12074#line $LINENO "configure"
12075/* confdefs.h. */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
12079/* end confdefs.h. */
12080$ac_includes_default
12081#include <$ac_header>
12082_ACEOF
12083rm -f conftest.$ac_objext
12084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085 (eval $ac_compile) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_header_compiler=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100ac_header_compiler=no
12101fi
12102rm -f conftest.$ac_objext conftest.$ac_ext
12103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12104echo "${ECHO_T}$ac_header_compiler" >&6
12105
12106# Is the header present?
12107echo "$as_me:$LINENO: checking $ac_header presence" >&5
12108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12109cat >conftest.$ac_ext <<_ACEOF
12110#line $LINENO "configure"
12111/* confdefs.h. */
12112_ACEOF
12113cat confdefs.h >>conftest.$ac_ext
12114cat >>conftest.$ac_ext <<_ACEOF
12115/* end confdefs.h. */
12116#include <$ac_header>
12117_ACEOF
12118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } >/dev/null; then
12126 if test -s conftest.err; then
12127 ac_cpp_err=$ac_c_preproc_warn_flag
12128 else
12129 ac_cpp_err=
12130 fi
12131else
12132 ac_cpp_err=yes
12133fi
12134if test -z "$ac_cpp_err"; then
12135 ac_header_preproc=yes
12136else
12137 echo "$as_me: failed program was:" >&5
12138sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_header_preproc=no
12141fi
12142rm -f conftest.err conftest.$ac_ext
12143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12144echo "${ECHO_T}$ac_header_preproc" >&6
12145
12146# So? What about this header?
12147case $ac_header_compiler:$ac_header_preproc in
12148 yes:no )
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12153 (
12154 cat <<\_ASBOX
12155## ------------------------------------ ##
12156## Report this to bug-autoconf@gnu.org. ##
12157## ------------------------------------ ##
12158_ASBOX
12159 ) |
12160 sed "s/^/$as_me: WARNING: /" >&2
12161 ;;
12162 no:yes )
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12169 (
12170 cat <<\_ASBOX
12171## ------------------------------------ ##
12172## Report this to bug-autoconf@gnu.org. ##
12173## ------------------------------------ ##
12174_ASBOX
12175 ) |
12176 sed "s/^/$as_me: WARNING: /" >&2
12177 ;;
12178esac
12179echo "$as_me:$LINENO: checking for $ac_header" >&5
12180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12185fi
e6cc62c6
VS
12186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12188
a0b9e27f 12189fi
e6cc62c6
VS
12190if test `eval echo '${'$as_ac_Header'}'` = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12193_ACEOF
12194
12195fi
12196
12197done
12198
e6cc62c6
VS
12199
12200
12201for ac_header in stdlib.h
12202do
12203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12204if eval "test \"\${$as_ac_Header+set}\" = set"; then
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209fi
12210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12212else
12213 # Is the header compilable?
12214echo "$as_me:$LINENO: checking $ac_header usability" >&5
12215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12216cat >conftest.$ac_ext <<_ACEOF
12217#line $LINENO "configure"
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223$ac_includes_default
12224#include <$ac_header>
12225_ACEOF
12226rm -f conftest.$ac_objext
12227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -s conftest.$ac_objext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_header_compiler=yes
12239else
12240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243ac_header_compiler=no
12244fi
12245rm -f conftest.$ac_objext conftest.$ac_ext
12246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12247echo "${ECHO_T}$ac_header_compiler" >&6
12248
12249# Is the header present?
12250echo "$as_me:$LINENO: checking $ac_header presence" >&5
12251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12252cat >conftest.$ac_ext <<_ACEOF
12253#line $LINENO "configure"
12254/* confdefs.h. */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */
12259#include <$ac_header>
12260_ACEOF
12261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } >/dev/null; then
12269 if test -s conftest.err; then
12270 ac_cpp_err=$ac_c_preproc_warn_flag
12271 else
12272 ac_cpp_err=
12273 fi
12274else
12275 ac_cpp_err=yes
12276fi
12277if test -z "$ac_cpp_err"; then
12278 ac_header_preproc=yes
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_header_preproc=no
12284fi
12285rm -f conftest.err conftest.$ac_ext
12286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12287echo "${ECHO_T}$ac_header_preproc" >&6
12288
12289# So? What about this header?
12290case $ac_header_compiler:$ac_header_preproc in
12291 yes:no )
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12296 (
12297 cat <<\_ASBOX
12298## ------------------------------------ ##
12299## Report this to bug-autoconf@gnu.org. ##
12300## ------------------------------------ ##
12301_ASBOX
12302 ) |
12303 sed "s/^/$as_me: WARNING: /" >&2
12304 ;;
12305 no:yes )
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12312 (
12313 cat <<\_ASBOX
12314## ------------------------------------ ##
12315## Report this to bug-autoconf@gnu.org. ##
12316## ------------------------------------ ##
12317_ASBOX
12318 ) |
12319 sed "s/^/$as_me: WARNING: /" >&2
12320 ;;
12321esac
12322echo "$as_me:$LINENO: checking for $ac_header" >&5
12323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12324if eval "test \"\${$as_ac_Header+set}\" = set"; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12326else
e6cc62c6
VS
12327 eval "$as_ac_Header=$ac_header_preproc"
12328fi
12329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12331
21d1c967 12332fi
e6cc62c6
VS
12333if test `eval echo '${'$as_ac_Header'}'` = yes; then
12334 cat >>confdefs.h <<_ACEOF
12335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12336_ACEOF
12337
12338fi
12339
21d1c967 12340done
4f14bcd8 12341
5c6fa7d2 12342
e6cc62c6 12343for ac_header in malloc.h
21d1c967 12344do
e6cc62c6
VS
12345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12346if eval "test \"\${$as_ac_Header+set}\" = set"; then
12347 echo "$as_me:$LINENO: checking for $ac_header" >&5
12348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12349if eval "test \"\${$as_ac_Header+set}\" = set"; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351fi
12352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12354else
12355 # Is the header compilable?
12356echo "$as_me:$LINENO: checking $ac_header usability" >&5
12357echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12358cat >conftest.$ac_ext <<_ACEOF
12359#line $LINENO "configure"
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h. */
12365$ac_includes_default
12366#include <$ac_header>
12367_ACEOF
12368rm -f conftest.$ac_objext
12369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_header_compiler=yes
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385ac_header_compiler=no
12386fi
12387rm -f conftest.$ac_objext conftest.$ac_ext
12388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12389echo "${ECHO_T}$ac_header_compiler" >&6
12390
12391# Is the header present?
12392echo "$as_me:$LINENO: checking $ac_header presence" >&5
12393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12394cat >conftest.$ac_ext <<_ACEOF
12395#line $LINENO "configure"
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
12401#include <$ac_header>
12402_ACEOF
12403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } >/dev/null; then
12411 if test -s conftest.err; then
12412 ac_cpp_err=$ac_c_preproc_warn_flag
12413 else
12414 ac_cpp_err=
12415 fi
12416else
12417 ac_cpp_err=yes
12418fi
12419if test -z "$ac_cpp_err"; then
12420 ac_header_preproc=yes
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_header_preproc=no
12426fi
12427rm -f conftest.err conftest.$ac_ext
12428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429echo "${ECHO_T}$ac_header_preproc" >&6
12430
12431# So? What about this header?
12432case $ac_header_compiler:$ac_header_preproc in
12433 yes:no )
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12438 (
12439 cat <<\_ASBOX
12440## ------------------------------------ ##
12441## Report this to bug-autoconf@gnu.org. ##
12442## ------------------------------------ ##
12443_ASBOX
12444 ) |
12445 sed "s/^/$as_me: WARNING: /" >&2
12446 ;;
12447 no:yes )
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12454 (
12455 cat <<\_ASBOX
12456## ------------------------------------ ##
12457## Report this to bug-autoconf@gnu.org. ##
12458## ------------------------------------ ##
12459_ASBOX
12460 ) |
12461 sed "s/^/$as_me: WARNING: /" >&2
12462 ;;
12463esac
12464echo "$as_me:$LINENO: checking for $ac_header" >&5
12465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12466if eval "test \"\${$as_ac_Header+set}\" = set"; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468else
12469 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12470fi
e6cc62c6
VS
12471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12473
21d1c967 12474fi
e6cc62c6
VS
12475if test `eval echo '${'$as_ac_Header'}'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478_ACEOF
12479
12480fi
12481
12482done
12483
12484
12485for ac_header in unistd.h
12486do
12487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489 echo "$as_me:$LINENO: checking for $ac_header" >&5
12490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12491if eval "test \"\${$as_ac_Header+set}\" = set"; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493fi
12494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12496else
12497 # Is the header compilable?
12498echo "$as_me:$LINENO: checking $ac_header usability" >&5
12499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12500cat >conftest.$ac_ext <<_ACEOF
12501#line $LINENO "configure"
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507$ac_includes_default
12508#include <$ac_header>
12509_ACEOF
12510rm -f conftest.$ac_objext
12511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler=yes
12523else
12524 echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
12527ac_header_compiler=no
12528fi
12529rm -f conftest.$ac_objext conftest.$ac_ext
12530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531echo "${ECHO_T}$ac_header_compiler" >&6
12532
12533# Is the header present?
12534echo "$as_me:$LINENO: checking $ac_header presence" >&5
12535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12536cat >conftest.$ac_ext <<_ACEOF
12537#line $LINENO "configure"
12538/* confdefs.h. */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h. */
12543#include <$ac_header>
12544_ACEOF
12545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } >/dev/null; then
12553 if test -s conftest.err; then
12554 ac_cpp_err=$ac_c_preproc_warn_flag
12555 else
12556 ac_cpp_err=
12557 fi
a0b9e27f 12558else
e6cc62c6
VS
12559 ac_cpp_err=yes
12560fi
12561if test -z "$ac_cpp_err"; then
12562 ac_header_preproc=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_preproc=no
12568fi
12569rm -f conftest.err conftest.$ac_ext
12570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571echo "${ECHO_T}$ac_header_preproc" >&6
12572
12573# So? What about this header?
12574case $ac_header_compiler:$ac_header_preproc in
12575 yes:no )
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12580 (
12581 cat <<\_ASBOX
12582## ------------------------------------ ##
12583## Report this to bug-autoconf@gnu.org. ##
12584## ------------------------------------ ##
12585_ASBOX
12586 ) |
12587 sed "s/^/$as_me: WARNING: /" >&2
12588 ;;
12589 no:yes )
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12596 (
12597 cat <<\_ASBOX
12598## ------------------------------------ ##
12599## Report this to bug-autoconf@gnu.org. ##
12600## ------------------------------------ ##
12601_ASBOX
12602 ) |
12603 sed "s/^/$as_me: WARNING: /" >&2
12604 ;;
12605esac
12606echo "$as_me:$LINENO: checking for $ac_header" >&5
12607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12608if eval "test \"\${$as_ac_Header+set}\" = set"; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 eval "$as_ac_Header=$ac_header_preproc"
12612fi
12613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12615
12616fi
12617if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12620_ACEOF
12621
d4158b5d 12622fi
e6cc62c6 12623
21d1c967 12624done
f6bcfd97 12625
e6cc62c6
VS
12626
12627for ac_header in wchar.h
12628do
12629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630if eval "test \"\${$as_ac_Header+set}\" = set"; then
12631 echo "$as_me:$LINENO: checking for $ac_header" >&5
12632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12633if eval "test \"\${$as_ac_Header+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635fi
12636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12638else
12639 # Is the header compilable?
12640echo "$as_me:$LINENO: checking $ac_header usability" >&5
12641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12642cat >conftest.$ac_ext <<_ACEOF
12643#line $LINENO "configure"
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649$ac_includes_default
12650#include <$ac_header>
12651_ACEOF
12652rm -f conftest.$ac_objext
12653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_header_compiler=yes
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
12669ac_header_compiler=no
12670fi
12671rm -f conftest.$ac_objext conftest.$ac_ext
12672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673echo "${ECHO_T}$ac_header_compiler" >&6
12674
12675# Is the header present?
12676echo "$as_me:$LINENO: checking $ac_header presence" >&5
12677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12678cat >conftest.$ac_ext <<_ACEOF
12679#line $LINENO "configure"
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
12684/* end confdefs.h. */
12685#include <$ac_header>
12686_ACEOF
12687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null; then
12695 if test -s conftest.err; then
12696 ac_cpp_err=$ac_c_preproc_warn_flag
12697 else
12698 ac_cpp_err=
12699 fi
12700else
12701 ac_cpp_err=yes
12702fi
12703if test -z "$ac_cpp_err"; then
12704 ac_header_preproc=yes
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 ac_header_preproc=no
12710fi
12711rm -f conftest.err conftest.$ac_ext
12712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713echo "${ECHO_T}$ac_header_preproc" >&6
12714
12715# So? What about this header?
12716case $ac_header_compiler:$ac_header_preproc in
12717 yes:no )
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12722 (
12723 cat <<\_ASBOX
12724## ------------------------------------ ##
12725## Report this to bug-autoconf@gnu.org. ##
12726## ------------------------------------ ##
12727_ASBOX
12728 ) |
12729 sed "s/^/$as_me: WARNING: /" >&2
12730 ;;
12731 no:yes )
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12738 (
12739 cat <<\_ASBOX
12740## ------------------------------------ ##
12741## Report this to bug-autoconf@gnu.org. ##
12742## ------------------------------------ ##
12743_ASBOX
12744 ) |
12745 sed "s/^/$as_me: WARNING: /" >&2
12746 ;;
12747esac
12748echo "$as_me:$LINENO: checking for $ac_header" >&5
12749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753 eval "$as_ac_Header=$ac_header_preproc"
12754fi
12755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12757
90dd450c 12758fi
e6cc62c6
VS
12759if test `eval echo '${'$as_ac_Header'}'` = yes; then
12760 cat >>confdefs.h <<_ACEOF
12761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12762_ACEOF
12763
12764fi
12765
12766done
90dd450c 12767
e6cc62c6
VS
12768
12769if test "$ac_cv_header_wchar_h" != "yes"; then
12770
12771for ac_header in wcstr.h
21d1c967 12772do
e6cc62c6
VS
12773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12774if eval "test \"\${$as_ac_Header+set}\" = set"; then
12775 echo "$as_me:$LINENO: checking for $ac_header" >&5
12776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12777if eval "test \"\${$as_ac_Header+set}\" = set"; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779fi
12780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12782else
12783 # Is the header compilable?
12784echo "$as_me:$LINENO: checking $ac_header usability" >&5
12785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12786cat >conftest.$ac_ext <<_ACEOF
12787#line $LINENO "configure"
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793$ac_includes_default
12794#include <$ac_header>
12795_ACEOF
12796rm -f conftest.$ac_objext
12797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -s conftest.$ac_objext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_header_compiler=yes
12809else
12810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813ac_header_compiler=no
12814fi
12815rm -f conftest.$ac_objext conftest.$ac_ext
12816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817echo "${ECHO_T}$ac_header_compiler" >&6
12818
12819# Is the header present?
12820echo "$as_me:$LINENO: checking $ac_header presence" >&5
12821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12822cat >conftest.$ac_ext <<_ACEOF
12823#line $LINENO "configure"
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829#include <$ac_header>
12830_ACEOF
12831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } >/dev/null; then
12839 if test -s conftest.err; then
12840 ac_cpp_err=$ac_c_preproc_warn_flag
12841 else
12842 ac_cpp_err=
12843 fi
12844else
12845 ac_cpp_err=yes
12846fi
12847if test -z "$ac_cpp_err"; then
12848 ac_header_preproc=yes
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_header_preproc=no
12854fi
12855rm -f conftest.err conftest.$ac_ext
12856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12857echo "${ECHO_T}$ac_header_preproc" >&6
12858
12859# So? What about this header?
12860case $ac_header_compiler:$ac_header_preproc in
12861 yes:no )
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12866 (
12867 cat <<\_ASBOX
12868## ------------------------------------ ##
12869## Report this to bug-autoconf@gnu.org. ##
12870## ------------------------------------ ##
12871_ASBOX
12872 ) |
12873 sed "s/^/$as_me: WARNING: /" >&2
12874 ;;
12875 no:yes )
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12882 (
12883 cat <<\_ASBOX
12884## ------------------------------------ ##
12885## Report this to bug-autoconf@gnu.org. ##
12886## ------------------------------------ ##
12887_ASBOX
12888 ) |
12889 sed "s/^/$as_me: WARNING: /" >&2
12890 ;;
12891esac
12892echo "$as_me:$LINENO: checking for $ac_header" >&5
12893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12894if eval "test \"\${$as_ac_Header+set}\" = set"; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12898fi
e6cc62c6
VS
12899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12901
4f14bcd8 12902fi
e6cc62c6
VS
12903if test `eval echo '${'$as_ac_Header'}'` = yes; then
12904 cat >>confdefs.h <<_ACEOF
12905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12906_ACEOF
12907
12908fi
12909
12910done
12911
12912fi
12913
12914
12915for ac_header in fnmatch.h
12916do
12917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12918if eval "test \"\${$as_ac_Header+set}\" = set"; then
12919 echo "$as_me:$LINENO: checking for $ac_header" >&5
12920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12921if eval "test \"\${$as_ac_Header+set}\" = set"; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923fi
12924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12926else
12927 # Is the header compilable?
12928echo "$as_me:$LINENO: checking $ac_header usability" >&5
12929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12930cat >conftest.$ac_ext <<_ACEOF
12931#line $LINENO "configure"
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937$ac_includes_default
12938#include <$ac_header>
12939_ACEOF
12940rm -f conftest.$ac_objext
12941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942 (eval $ac_compile) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -s conftest.$ac_objext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_header_compiler=yes
12953else
12954 echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957ac_header_compiler=no
12958fi
12959rm -f conftest.$ac_objext conftest.$ac_ext
12960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12961echo "${ECHO_T}$ac_header_compiler" >&6
12962
12963# Is the header present?
12964echo "$as_me:$LINENO: checking $ac_header presence" >&5
12965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12966cat >conftest.$ac_ext <<_ACEOF
12967#line $LINENO "configure"
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973#include <$ac_header>
12974_ACEOF
12975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_c_preproc_warn_flag
12985 else
12986 ac_cpp_err=
12987 fi
12988else
12989 ac_cpp_err=yes
12990fi
12991if test -z "$ac_cpp_err"; then
12992 ac_header_preproc=yes
12993else
12994 echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 ac_header_preproc=no
12998fi
12999rm -f conftest.err conftest.$ac_ext
13000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13001echo "${ECHO_T}$ac_header_preproc" >&6
13002
13003# So? What about this header?
13004case $ac_header_compiler:$ac_header_preproc in
13005 yes:no )
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13010 (
13011 cat <<\_ASBOX
13012## ------------------------------------ ##
13013## Report this to bug-autoconf@gnu.org. ##
13014## ------------------------------------ ##
13015_ASBOX
13016 ) |
13017 sed "s/^/$as_me: WARNING: /" >&2
13018 ;;
13019 no:yes )
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 (
13027 cat <<\_ASBOX
13028## ------------------------------------ ##
13029## Report this to bug-autoconf@gnu.org. ##
13030## ------------------------------------ ##
13031_ASBOX
13032 ) |
13033 sed "s/^/$as_me: WARNING: /" >&2
13034 ;;
13035esac
13036echo "$as_me:$LINENO: checking for $ac_header" >&5
13037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13038if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13040else
e6cc62c6
VS
13041 eval "$as_ac_Header=$ac_header_preproc"
13042fi
13043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13045
21d1c967 13046fi
e6cc62c6
VS
13047if test `eval echo '${'$as_ac_Header'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13050_ACEOF
13051
13052fi
13053
21d1c967 13054done
90dd450c 13055
5c6fa7d2 13056
a0b9e27f 13057if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13058
13059for ac_func in fnmatch
21d1c967 13060do
e6cc62c6
VS
13061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13062echo "$as_me:$LINENO: checking for $ac_func" >&5
13063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13064if eval "test \"\${$as_ac_var+set}\" = set"; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066else
13067 cat >conftest.$ac_ext <<_ACEOF
13068#line $LINENO "configure"
13069/* confdefs.h. */
13070_ACEOF
13071cat confdefs.h >>conftest.$ac_ext
13072cat >>conftest.$ac_ext <<_ACEOF
13073/* end confdefs.h. */
a0b9e27f 13074/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13075 which can conflict with char $ac_func (); below.
13076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13077 <limits.h> exists even on freestanding compilers. */
13078#ifdef __STDC__
13079# include <limits.h>
13080#else
13081# include <assert.h>
13082#endif
a0b9e27f 13083/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13084#ifdef __cplusplus
13085extern "C"
13086{
13087#endif
a0b9e27f 13088/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13089 builtin and then its argument prototype would still apply. */
13090char $ac_func ();
a0b9e27f
MB
13091/* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13095choke me
13096#else
e6cc62c6
VS
13097char (*f) () = $ac_func;
13098#endif
13099#ifdef __cplusplus
13100}
a0b9e27f
MB
13101#endif
13102
e6cc62c6
VS
13103int
13104main ()
13105{
13106return f != $ac_func;
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext conftest$ac_exeext
13112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 eval "$as_ac_var=yes"
13124else
13125 echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128eval "$as_ac_var=no"
13129fi
13130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131fi
13132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13134if test `eval echo '${'$as_ac_var'}'` = yes; then
13135 cat >>confdefs.h <<_ACEOF
13136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13137_ACEOF
32832908 13138
21d1c967
GD
13139fi
13140done
90dd450c 13141
a0b9e27f 13142fi
90dd450c 13143
e6cc62c6
VS
13144
13145for ac_header in langinfo.h
21d1c967 13146do
e6cc62c6
VS
13147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13148if eval "test \"\${$as_ac_Header+set}\" = set"; then
13149 echo "$as_me:$LINENO: checking for $ac_header" >&5
13150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13151if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13153fi
13154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13156else
13157 # Is the header compilable?
13158echo "$as_me:$LINENO: checking $ac_header usability" >&5
13159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13160cat >conftest.$ac_ext <<_ACEOF
13161#line $LINENO "configure"
13162/* confdefs.h. */
13163_ACEOF
13164cat confdefs.h >>conftest.$ac_ext
13165cat >>conftest.$ac_ext <<_ACEOF
13166/* end confdefs.h. */
13167$ac_includes_default
13168#include <$ac_header>
13169_ACEOF
13170rm -f conftest.$ac_objext
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_header_compiler=yes
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187ac_header_compiler=no
13188fi
13189rm -f conftest.$ac_objext conftest.$ac_ext
13190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13191echo "${ECHO_T}$ac_header_compiler" >&6
13192
13193# Is the header present?
13194echo "$as_me:$LINENO: checking $ac_header presence" >&5
13195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13196cat >conftest.$ac_ext <<_ACEOF
13197#line $LINENO "configure"
13198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203#include <$ac_header>
13204_ACEOF
13205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } >/dev/null; then
13213 if test -s conftest.err; then
13214 ac_cpp_err=$ac_c_preproc_warn_flag
13215 else
13216 ac_cpp_err=
13217 fi
13218else
13219 ac_cpp_err=yes
13220fi
13221if test -z "$ac_cpp_err"; then
13222 ac_header_preproc=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 ac_header_preproc=no
13228fi
13229rm -f conftest.err conftest.$ac_ext
13230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231echo "${ECHO_T}$ac_header_preproc" >&6
13232
13233# So? What about this header?
13234case $ac_header_compiler:$ac_header_preproc in
13235 yes:no )
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13240 (
13241 cat <<\_ASBOX
13242## ------------------------------------ ##
13243## Report this to bug-autoconf@gnu.org. ##
13244## ------------------------------------ ##
13245_ASBOX
13246 ) |
13247 sed "s/^/$as_me: WARNING: /" >&2
13248 ;;
13249 no:yes )
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13256 (
13257 cat <<\_ASBOX
13258## ------------------------------------ ##
13259## Report this to bug-autoconf@gnu.org. ##
13260## ------------------------------------ ##
13261_ASBOX
13262 ) |
13263 sed "s/^/$as_me: WARNING: /" >&2
13264 ;;
13265esac
13266echo "$as_me:$LINENO: checking for $ac_header" >&5
13267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13268if eval "test \"\${$as_ac_Header+set}\" = set"; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13272fi
e6cc62c6
VS
13273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13275
4f14bcd8 13276fi
e6cc62c6
VS
13277if test `eval echo '${'$as_ac_Header'}'` = yes; then
13278 cat >>confdefs.h <<_ACEOF
13279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13280_ACEOF
13281
21d1c967 13282fi
e6cc62c6 13283
21d1c967 13284done
3a922bb4 13285
8284b0c5 13286
4f5a7f74
VZ
13287case "${host}" in
13288 *-pc-os2_emx | *-pc-os2-emx )
13289 if test $ac_cv_header_langinfo_h = "yes"; then
13290 LIBS="$LIBS -lintl"
13291 fi
13292 ;;
13293esac
1542ea39 13294
a0b9e27f 13295if test "$wxUSE_GUI" = "yes"; then
73d617c9 13296 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13297
eb69fda5 13298for ac_header in X11/Xlib.h
21d1c967 13299do
e6cc62c6
VS
13300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306fi
13307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13309else
13310 # Is the header compilable?
13311echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313cat >conftest.$ac_ext <<_ACEOF
13314#line $LINENO "configure"
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320$ac_includes_default
13321#include <$ac_header>
13322_ACEOF
13323rm -f conftest.$ac_objext
13324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_header_compiler=yes
13336else
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340ac_header_compiler=no
13341fi
13342rm -f conftest.$ac_objext conftest.$ac_ext
13343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13344echo "${ECHO_T}$ac_header_compiler" >&6
13345
13346# Is the header present?
13347echo "$as_me:$LINENO: checking $ac_header presence" >&5
13348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13349cat >conftest.$ac_ext <<_ACEOF
13350#line $LINENO "configure"
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356#include <$ac_header>
13357_ACEOF
13358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } >/dev/null; then
13366 if test -s conftest.err; then
13367 ac_cpp_err=$ac_c_preproc_warn_flag
13368 else
13369 ac_cpp_err=
13370 fi
13371else
13372 ac_cpp_err=yes
13373fi
13374if test -z "$ac_cpp_err"; then
13375 ac_header_preproc=yes
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_header_preproc=no
13381fi
13382rm -f conftest.err conftest.$ac_ext
13383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384echo "${ECHO_T}$ac_header_preproc" >&6
13385
13386# So? What about this header?
13387case $ac_header_compiler:$ac_header_preproc in
13388 yes:no )
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13393 (
13394 cat <<\_ASBOX
13395## ------------------------------------ ##
13396## Report this to bug-autoconf@gnu.org. ##
13397## ------------------------------------ ##
13398_ASBOX
13399 ) |
13400 sed "s/^/$as_me: WARNING: /" >&2
13401 ;;
13402 no:yes )
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13409 (
13410 cat <<\_ASBOX
13411## ------------------------------------ ##
13412## Report this to bug-autoconf@gnu.org. ##
13413## ------------------------------------ ##
13414_ASBOX
13415 ) |
13416 sed "s/^/$as_me: WARNING: /" >&2
13417 ;;
13418esac
13419echo "$as_me:$LINENO: checking for $ac_header" >&5
13420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13421if eval "test \"\${$as_ac_Header+set}\" = set"; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13425fi
e6cc62c6
VS
13426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428
90dd450c 13429fi
e6cc62c6
VS
13430if test `eval echo '${'$as_ac_Header'}'` = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13433_ACEOF
13434
247f5006 13435fi
e6cc62c6 13436
eb69fda5
VS
13437done
13438
13439
13440for ac_header in X11/XKBlib.h
13441do
13442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13443echo "$as_me:$LINENO: checking for $ac_header" >&5
13444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13445if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13447else
13448 cat >conftest.$ac_ext <<_ACEOF
13449#line $LINENO "configure"
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
13454/* end confdefs.h. */
13455
13456 #if HAVE_X11_XLIB_H
13457 #include <X11/Xlib.h>
13458 #endif
13459
13460
13461#include <$ac_header>
13462_ACEOF
13463rm -f conftest.$ac_objext
13464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 eval "$as_ac_Header=yes"
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480eval "$as_ac_Header=no"
13481fi
13482rm -f conftest.$ac_objext conftest.$ac_ext
13483fi
13484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13486if test `eval echo '${'$as_ac_Header'}'` = yes; then
13487 cat >>confdefs.h <<_ACEOF
13488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13489_ACEOF
13490
13491fi
13492
247f5006
VZ
13493done
13494
a0b9e27f
MB
13495 fi
13496fi
247f5006 13497
247f5006 13498
e6cc62c6
VS
13499echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13500echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13501if test "${ac_cv_c_const+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13503else
13504 cat >conftest.$ac_ext <<_ACEOF
13505#line $LINENO "configure"
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511
13512int
13513main ()
13514{
13515/* FIXME: Include the comments suggested by Paul. */
13516#ifndef __cplusplus
13517 /* Ultrix mips cc rejects this. */
13518 typedef int charset[2];
13519 const charset x;
13520 /* SunOS 4.1.1 cc rejects this. */
13521 char const *const *ccp;
13522 char **p;
13523 /* NEC SVR4.0.2 mips cc rejects this. */
13524 struct point {int x, y;};
13525 static struct point const zero = {0,0};
13526 /* AIX XL C 1.02.0.0 rejects this.
13527 It does not let you subtract one const X* pointer from another in
13528 an arm of an if-expression whose if-part is not a constant
13529 expression */
13530 const char *g = "string";
13531 ccp = &g + (g ? g-g : 0);
13532 /* HPUX 7.0 cc rejects these. */
13533 ++ccp;
13534 p = (char**) ccp;
13535 ccp = (char const *const *) p;
13536 { /* SCO 3.2v4 cc rejects this. */
13537 char *t;
13538 char const *s = 0 ? (char *) 0 : (char const *) 0;
13539
13540 *t++ = 0;
13541 }
13542 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13543 int x[] = {25, 17};
13544 const int *foo = &x[0];
13545 ++foo;
13546 }
13547 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13548 typedef const int *iptr;
13549 iptr p = 0;
13550 ++p;
13551 }
13552 { /* AIX XL C 1.02.0.0 rejects this saying
13553 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13554 struct s { int j; const int *ap[3]; };
13555 struct s *b; b->j = 5;
13556 }
13557 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13558 const int foo = 10;
13559 }
13560#endif
13561
13562 ;
13563 return 0;
13564}
13565_ACEOF
13566rm -f conftest.$ac_objext
13567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
a0b9e27f 13578 ac_cv_c_const=yes
247f5006 13579else
e6cc62c6
VS
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
13583ac_cv_c_const=no
247f5006 13584fi
e6cc62c6 13585rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13586fi
e6cc62c6
VS
13587echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13588echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13589if test $ac_cv_c_const = no; then
e6cc62c6
VS
13590
13591cat >>confdefs.h <<\_ACEOF
13592#define const
13593_ACEOF
10f2d63a 13594
90dd450c 13595fi
81809c07 13596
e6cc62c6
VS
13597echo "$as_me:$LINENO: checking for inline" >&5
13598echo $ECHO_N "checking for inline... $ECHO_C" >&6
13599if test "${ac_cv_c_inline+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13601else
a0b9e27f
MB
13602 ac_cv_c_inline=no
13603for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13604 cat >conftest.$ac_ext <<_ACEOF
13605#line $LINENO "configure"
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611#ifndef __cplusplus
13612typedef int foo_t;
13613static $ac_kw foo_t static_foo () {return 0; }
13614$ac_kw foo_t foo () {return 0; }
13615#endif
a0b9e27f 13616
e6cc62c6
VS
13617_ACEOF
13618rm -f conftest.$ac_objext
13619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
a0b9e27f 13630 ac_cv_c_inline=$ac_kw; break
247f5006 13631else
e6cc62c6
VS
13632 echo "$as_me: failed program was:" >&5
13633sed 's/^/| /' conftest.$ac_ext >&5
13634
247f5006 13635fi
e6cc62c6 13636rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13637done
247f5006
VZ
13638
13639fi
e6cc62c6
VS
13640echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13641echo "${ECHO_T}$ac_cv_c_inline" >&6
13642case $ac_cv_c_inline in
a0b9e27f 13643 inline | yes) ;;
e6cc62c6
VS
13644 no)
13645cat >>confdefs.h <<\_ACEOF
13646#define inline
13647_ACEOF
a0b9e27f 13648 ;;
e6cc62c6 13649 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13650#define inline $ac_cv_c_inline
e6cc62c6 13651_ACEOF
a0b9e27f
MB
13652 ;;
13653esac
247f5006 13654
247f5006 13655
e6cc62c6
VS
13656echo "$as_me:$LINENO: checking for char" >&5
13657echo $ECHO_N "checking for char... $ECHO_C" >&6
13658if test "${ac_cv_type_char+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660else
13661 cat >conftest.$ac_ext <<_ACEOF
13662#line $LINENO "configure"
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669int
13670main ()
13671{
13672if ((char *) 0)
13673 return 0;
13674if (sizeof (char))
13675 return 0;
13676 ;
13677 return 0;
13678}
13679_ACEOF
13680rm -f conftest.$ac_objext
13681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13682 (eval $ac_compile) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -s conftest.$ac_objext'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 ac_cv_type_char=yes
13693else
13694 echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697ac_cv_type_char=no
13698fi
13699rm -f conftest.$ac_objext conftest.$ac_ext
13700fi
13701echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13702echo "${ECHO_T}$ac_cv_type_char" >&6
13703
13704echo "$as_me:$LINENO: checking size of char" >&5
13705echo $ECHO_N "checking size of char... $ECHO_C" >&6
13706if test "${ac_cv_sizeof_char+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 if test "$ac_cv_type_char" = yes; then
13710 # The cast to unsigned long works around a bug in the HP C Compiler
13711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13713 # This bug is HP SR number 8606223364.
a0b9e27f 13714 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13715 # Depending upon the size, compute the lo and hi bounds.
13716cat >conftest.$ac_ext <<_ACEOF
13717#line $LINENO "configure"
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723$ac_includes_default
13724int
13725main ()
13726{
13727static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13728test_array [0] = 0
13729
13730 ;
13731 return 0;
13732}
13733_ACEOF
13734rm -f conftest.$ac_objext
13735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_lo=0 ac_mid=0
13747 while :; do
13748 cat >conftest.$ac_ext <<_ACEOF
13749#line $LINENO "configure"
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755$ac_includes_default
13756int
13757main ()
13758{
13759static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13760test_array [0] = 0
13761
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest.$ac_objext'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_hi=$ac_mid; break
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783ac_lo=`expr $ac_mid + 1`
13784 if test $ac_lo -le $ac_mid; then
13785 ac_lo= ac_hi=
13786 break
13787 fi
13788 ac_mid=`expr 2 '*' $ac_mid + 1`
13789fi
13790rm -f conftest.$ac_objext conftest.$ac_ext
13791 done
a0b9e27f 13792else
e6cc62c6
VS
13793 echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
13796cat >conftest.$ac_ext <<_ACEOF
13797#line $LINENO "configure"
13798/* confdefs.h. */
13799_ACEOF
13800cat confdefs.h >>conftest.$ac_ext
13801cat >>conftest.$ac_ext <<_ACEOF
13802/* end confdefs.h. */
13803$ac_includes_default
13804int
13805main ()
13806{
13807static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13808test_array [0] = 0
13809
13810 ;
13811 return 0;
13812}
13813_ACEOF
13814rm -f conftest.$ac_objext
13815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -s conftest.$ac_objext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_hi=-1 ac_mid=-1
13827 while :; do
13828 cat >conftest.$ac_ext <<_ACEOF
13829#line $LINENO "configure"
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
13835$ac_includes_default
13836int
13837main ()
13838{
13839static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13840test_array [0] = 0
13841
13842 ;
13843 return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848 (eval $ac_compile) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13858 ac_lo=$ac_mid; break
13859else
13860 echo "$as_me: failed program was:" >&5
13861sed 's/^/| /' conftest.$ac_ext >&5
13862
13863ac_hi=`expr '(' $ac_mid ')' - 1`
13864 if test $ac_mid -le $ac_hi; then
13865 ac_lo= ac_hi=
13866 break
13867 fi
13868 ac_mid=`expr 2 '*' $ac_mid`
13869fi
13870rm -f conftest.$ac_objext conftest.$ac_ext
13871 done
13872else
13873 echo "$as_me: failed program was:" >&5
13874sed 's/^/| /' conftest.$ac_ext >&5
13875
13876ac_lo= ac_hi=
13877fi
13878rm -f conftest.$ac_objext conftest.$ac_ext
13879fi
13880rm -f conftest.$ac_objext conftest.$ac_ext
13881# Binary search between lo and hi bounds.
13882while test "x$ac_lo" != "x$ac_hi"; do
13883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13884 cat >conftest.$ac_ext <<_ACEOF
13885#line $LINENO "configure"
13886/* confdefs.h. */
13887_ACEOF
13888cat confdefs.h >>conftest.$ac_ext
13889cat >>conftest.$ac_ext <<_ACEOF
13890/* end confdefs.h. */
13891$ac_includes_default
13892int
13893main ()
13894{
13895static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13896test_array [0] = 0
13897
13898 ;
13899 return 0;
13900}
13901_ACEOF
13902rm -f conftest.$ac_objext
13903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_hi=$ac_mid
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919ac_lo=`expr '(' $ac_mid ')' + 1`
13920fi
13921rm -f conftest.$ac_objext conftest.$ac_ext
13922done
13923case $ac_lo in
13924?*) ac_cv_sizeof_char=$ac_lo;;
13925'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13926See \`config.log' for more details." >&5
13927echo "$as_me: error: cannot compute sizeof (char), 77
13928See \`config.log' for more details." >&2;}
13929 { (exit 1); exit 1; }; } ;;
13930esac
13931else
13932 if test "$cross_compiling" = yes; then
13933 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13934See \`config.log' for more details." >&5
13935echo "$as_me: error: cannot run test program while cross compiling
13936See \`config.log' for more details." >&2;}
13937 { (exit 1); exit 1; }; }
13938else
13939 cat >conftest.$ac_ext <<_ACEOF
13940#line $LINENO "configure"
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
13947long longval () { return (long) (sizeof (char)); }
13948unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13949#include <stdio.h>
e6cc62c6
VS
13950#include <stdlib.h>
13951int
13952main ()
247f5006 13953{
e6cc62c6
VS
13954
13955 FILE *f = fopen ("conftest.val", "w");
13956 if (! f)
13957 exit (1);
13958 if (((long) (sizeof (char))) < 0)
13959 {
13960 long i = longval ();
13961 if (i != ((long) (sizeof (char))))
13962 exit (1);
13963 fprintf (f, "%ld\n", i);
13964 }
13965 else
13966 {
13967 unsigned long i = ulongval ();
13968 if (i != ((long) (sizeof (char))))
13969 exit (1);
13970 fprintf (f, "%lu\n", i);
13971 }
13972 exit (ferror (f) || fclose (f) != 0);
13973
13974 ;
13975 return 0;
52127426 13976}
e6cc62c6
VS
13977_ACEOF
13978rm -f conftest$ac_exeext
13979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980 (eval $ac_link) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_sizeof_char=`cat conftest.val`
13990else
13991 echo "$as_me: program exited with status $ac_status" >&5
13992echo "$as_me: failed program was:" >&5
13993sed 's/^/| /' conftest.$ac_ext >&5
13994
13995( exit $ac_status )
13996{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13997See \`config.log' for more details." >&5
13998echo "$as_me: error: cannot compute sizeof (char), 77
13999See \`config.log' for more details." >&2;}
14000 { (exit 1); exit 1; }; }
14001fi
14002rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14003fi
14004fi
14005rm -f conftest.val
247f5006 14006else
a0b9e27f 14007 ac_cv_sizeof_char=0
247f5006 14008fi
247f5006 14009fi
e6cc62c6
VS
14010echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14011echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14012cat >>confdefs.h <<_ACEOF
14013#define SIZEOF_CHAR $ac_cv_sizeof_char
14014_ACEOF
14015
14016
14017echo "$as_me:$LINENO: checking for short" >&5
14018echo $ECHO_N "checking for short... $ECHO_C" >&6
14019if test "${ac_cv_type_short+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022 cat >conftest.$ac_ext <<_ACEOF
14023#line $LINENO "configure"
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
14028/* end confdefs.h. */
14029$ac_includes_default
14030int
14031main ()
14032{
14033if ((short *) 0)
14034 return 0;
14035if (sizeof (short))
14036 return 0;
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext
14042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_type_short=yes
14054else
14055 echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058ac_cv_type_short=no
14059fi
14060rm -f conftest.$ac_objext conftest.$ac_ext
14061fi
14062echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14063echo "${ECHO_T}$ac_cv_type_short" >&6
14064
14065echo "$as_me:$LINENO: checking size of short" >&5
14066echo $ECHO_N "checking size of short... $ECHO_C" >&6
14067if test "${ac_cv_sizeof_short+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069else
14070 if test "$ac_cv_type_short" = yes; then
14071 # The cast to unsigned long works around a bug in the HP C Compiler
14072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14074 # This bug is HP SR number 8606223364.
14075 if test "$cross_compiling" = yes; then
14076 # Depending upon the size, compute the lo and hi bounds.
14077cat >conftest.$ac_ext <<_ACEOF
14078#line $LINENO "configure"
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
14084$ac_includes_default
14085int
14086main ()
14087{
14088static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14089test_array [0] = 0
247f5006 14090
e6cc62c6
VS
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_lo=0 ac_mid=0
14108 while :; do
14109 cat >conftest.$ac_ext <<_ACEOF
14110#line $LINENO "configure"
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_includes_default
14117int
14118main ()
14119{
14120static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14121test_array [0] = 0
14122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_hi=$ac_mid; break
14140else
14141 echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144ac_lo=`expr $ac_mid + 1`
14145 if test $ac_lo -le $ac_mid; then
14146 ac_lo= ac_hi=
14147 break
14148 fi
14149 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14150fi
e6cc62c6
VS
14151rm -f conftest.$ac_objext conftest.$ac_ext
14152 done
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157cat >conftest.$ac_ext <<_ACEOF
14158#line $LINENO "configure"
14159/* confdefs.h. */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */
14164$ac_includes_default
14165int
14166main ()
14167{
14168static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14169test_array [0] = 0
247f5006 14170
e6cc62c6
VS
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_hi=-1 ac_mid=-1
14188 while :; do
14189 cat >conftest.$ac_ext <<_ACEOF
14190#line $LINENO "configure"
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
14196$ac_includes_default
14197int
14198main ()
14199{
14200static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14201test_array [0] = 0
247f5006 14202
e6cc62c6
VS
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext
14208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209 (eval $ac_compile) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_lo=$ac_mid; break
14220else
14221 echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
14223
14224ac_hi=`expr '(' $ac_mid ')' - 1`
14225 if test $ac_mid -le $ac_hi; then
14226 ac_lo= ac_hi=
14227 break
14228 fi
14229 ac_mid=`expr 2 '*' $ac_mid`
14230fi
14231rm -f conftest.$ac_objext conftest.$ac_ext
14232 done
247f5006 14233else
e6cc62c6
VS
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237ac_lo= ac_hi=
14238fi
14239rm -f conftest.$ac_objext conftest.$ac_ext
14240fi
14241rm -f conftest.$ac_objext conftest.$ac_ext
14242# Binary search between lo and hi bounds.
14243while test "x$ac_lo" != "x$ac_hi"; do
14244 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14245 cat >conftest.$ac_ext <<_ACEOF
14246#line $LINENO "configure"
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
14252$ac_includes_default
14253int
14254main ()
14255{
14256static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14257test_array [0] = 0
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext
14264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_hi=$ac_mid
14276else
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280ac_lo=`expr '(' $ac_mid ')' + 1`
14281fi
14282rm -f conftest.$ac_objext conftest.$ac_ext
14283done
14284case $ac_lo in
14285?*) ac_cv_sizeof_short=$ac_lo;;
14286'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14287See \`config.log' for more details." >&5
14288echo "$as_me: error: cannot compute sizeof (short), 77
14289See \`config.log' for more details." >&2;}
14290 { (exit 1); exit 1; }; } ;;
14291esac
247f5006 14292else
e6cc62c6
VS
14293 if test "$cross_compiling" = yes; then
14294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14295See \`config.log' for more details." >&5
14296echo "$as_me: error: cannot run test program while cross compiling
14297See \`config.log' for more details." >&2;}
14298 { (exit 1); exit 1; }; }
14299else
14300 cat >conftest.$ac_ext <<_ACEOF
14301#line $LINENO "configure"
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307$ac_includes_default
14308long longval () { return (long) (sizeof (short)); }
14309unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14310#include <stdio.h>
e6cc62c6
VS
14311#include <stdlib.h>
14312int
14313main ()
a0b9e27f 14314{
e6cc62c6
VS
14315
14316 FILE *f = fopen ("conftest.val", "w");
14317 if (! f)
14318 exit (1);
14319 if (((long) (sizeof (short))) < 0)
14320 {
14321 long i = longval ();
14322 if (i != ((long) (sizeof (short))))
14323 exit (1);
14324 fprintf (f, "%ld\n", i);
14325 }
14326 else
14327 {
14328 unsigned long i = ulongval ();
14329 if (i != ((long) (sizeof (short))))
14330 exit (1);
14331 fprintf (f, "%lu\n", i);
14332 }
14333 exit (ferror (f) || fclose (f) != 0);
14334
14335 ;
14336 return 0;
a0b9e27f 14337}
e6cc62c6
VS
14338_ACEOF
14339rm -f conftest$ac_exeext
14340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14341 (eval $ac_link) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_sizeof_short=`cat conftest.val`
14351else
14352 echo "$as_me: program exited with status $ac_status" >&5
14353echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5
14355
14356( exit $ac_status )
14357{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14358See \`config.log' for more details." >&5
14359echo "$as_me: error: cannot compute sizeof (short), 77
14360See \`config.log' for more details." >&2;}
14361 { (exit 1); exit 1; }; }
14362fi
14363rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14364fi
14365fi
14366rm -f conftest.val
247f5006 14367else
a0b9e27f 14368 ac_cv_sizeof_short=0
247f5006 14369fi
247f5006 14370fi
e6cc62c6
VS
14371echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14372echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14373cat >>confdefs.h <<_ACEOF
14374#define SIZEOF_SHORT $ac_cv_sizeof_short
14375_ACEOF
14376
14377
14378echo "$as_me:$LINENO: checking for void *" >&5
14379echo $ECHO_N "checking for void *... $ECHO_C" >&6
14380if test "${ac_cv_type_void_p+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 cat >conftest.$ac_ext <<_ACEOF
14384#line $LINENO "configure"
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390$ac_includes_default
14391int
14392main ()
14393{
14394if ((void * *) 0)
14395 return 0;
14396if (sizeof (void *))
14397 return 0;
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402rm -f conftest.$ac_objext
14403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 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'
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_cv_type_void_p=yes
14415else
14416 echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
14419ac_cv_type_void_p=no
14420fi
14421rm -f conftest.$ac_objext conftest.$ac_ext
14422fi
14423echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14424echo "${ECHO_T}$ac_cv_type_void_p" >&6
14425
14426echo "$as_me:$LINENO: checking size of void *" >&5
14427echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14428if test "${ac_cv_sizeof_void_p+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431 if test "$ac_cv_type_void_p" = yes; then
14432 # The cast to unsigned long works around a bug in the HP C Compiler
14433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14435 # This bug is HP SR number 8606223364.
14436 if test "$cross_compiling" = yes; then
14437 # Depending upon the size, compute the lo and hi bounds.
14438cat >conftest.$ac_ext <<_ACEOF
14439#line $LINENO "configure"
14440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
14444/* end confdefs.h. */
14445$ac_includes_default
14446int
14447main ()
14448{
14449static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14450test_array [0] = 0
14451
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456rm -f conftest.$ac_objext
14457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_lo=0 ac_mid=0
14469 while :; do
14470 cat >conftest.$ac_ext <<_ACEOF
14471#line $LINENO "configure"
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
14478int
14479main ()
14480{
14481static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14482test_array [0] = 0
247f5006 14483
e6cc62c6
VS
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488rm -f conftest.$ac_objext
14489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_hi=$ac_mid; break
14501else
14502 echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505ac_lo=`expr $ac_mid + 1`
14506 if test $ac_lo -le $ac_mid; then
14507 ac_lo= ac_hi=
14508 break
14509 fi
14510 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14511fi
e6cc62c6
VS
14512rm -f conftest.$ac_objext conftest.$ac_ext
14513 done
14514else
14515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518cat >conftest.$ac_ext <<_ACEOF
14519#line $LINENO "configure"
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525$ac_includes_default
14526int
14527main ()
14528{
14529static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14530test_array [0] = 0
247f5006 14531
e6cc62c6
VS
14532 ;
14533 return 0;
14534}
14535_ACEOF
14536rm -f conftest.$ac_objext
14537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest.$ac_objext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_hi=-1 ac_mid=-1
14549 while :; do
14550 cat >conftest.$ac_ext <<_ACEOF
14551#line $LINENO "configure"
14552/* confdefs.h. */
14553_ACEOF
14554cat confdefs.h >>conftest.$ac_ext
14555cat >>conftest.$ac_ext <<_ACEOF
14556/* end confdefs.h. */
14557$ac_includes_default
14558int
14559main ()
14560{
14561static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14562test_array [0] = 0
247f5006 14563
e6cc62c6
VS
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568rm -f conftest.$ac_objext
14569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -s conftest.$ac_objext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_lo=$ac_mid; break
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585ac_hi=`expr '(' $ac_mid ')' - 1`
14586 if test $ac_mid -le $ac_hi; then
14587 ac_lo= ac_hi=
14588 break
14589 fi
14590 ac_mid=`expr 2 '*' $ac_mid`
14591fi
14592rm -f conftest.$ac_objext conftest.$ac_ext
14593 done
a0b9e27f 14594else
e6cc62c6
VS
14595 echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598ac_lo= ac_hi=
14599fi
14600rm -f conftest.$ac_objext conftest.$ac_ext
14601fi
14602rm -f conftest.$ac_objext conftest.$ac_ext
14603# Binary search between lo and hi bounds.
14604while test "x$ac_lo" != "x$ac_hi"; do
14605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14606 cat >conftest.$ac_ext <<_ACEOF
14607#line $LINENO "configure"
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
14614int
14615main ()
14616{
14617static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14618test_array [0] = 0
14619
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext
14625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626 (eval $ac_compile) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_hi=$ac_mid
14637else
14638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641ac_lo=`expr '(' $ac_mid ')' + 1`
14642fi
14643rm -f conftest.$ac_objext conftest.$ac_ext
14644done
14645case $ac_lo in
14646?*) ac_cv_sizeof_void_p=$ac_lo;;
14647'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14648See \`config.log' for more details." >&5
14649echo "$as_me: error: cannot compute sizeof (void *), 77
14650See \`config.log' for more details." >&2;}
14651 { (exit 1); exit 1; }; } ;;
14652esac
247f5006 14653else
e6cc62c6
VS
14654 if test "$cross_compiling" = yes; then
14655 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14656See \`config.log' for more details." >&5
14657echo "$as_me: error: cannot run test program while cross compiling
14658See \`config.log' for more details." >&2;}
14659 { (exit 1); exit 1; }; }
14660else
14661 cat >conftest.$ac_ext <<_ACEOF
14662#line $LINENO "configure"
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
14668$ac_includes_default
14669long longval () { return (long) (sizeof (void *)); }
14670unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14671#include <stdio.h>
e6cc62c6
VS
14672#include <stdlib.h>
14673int
14674main ()
247f5006 14675{
e6cc62c6
VS
14676
14677 FILE *f = fopen ("conftest.val", "w");
14678 if (! f)
14679 exit (1);
14680 if (((long) (sizeof (void *))) < 0)
14681 {
14682 long i = longval ();
14683 if (i != ((long) (sizeof (void *))))
14684 exit (1);
14685 fprintf (f, "%ld\n", i);
14686 }
14687 else
14688 {
14689 unsigned long i = ulongval ();
14690 if (i != ((long) (sizeof (void *))))
14691 exit (1);
14692 fprintf (f, "%lu\n", i);
14693 }
14694 exit (ferror (f) || fclose (f) != 0);
14695
14696 ;
14697 return 0;
5c6fa7d2 14698}
e6cc62c6
VS
14699_ACEOF
14700rm -f conftest$ac_exeext
14701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_sizeof_void_p=`cat conftest.val`
14712else
14713 echo "$as_me: program exited with status $ac_status" >&5
14714echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5
14716
14717( exit $ac_status )
14718{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14719See \`config.log' for more details." >&5
14720echo "$as_me: error: cannot compute sizeof (void *), 77
14721See \`config.log' for more details." >&2;}
14722 { (exit 1); exit 1; }; }
14723fi
14724rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14725fi
14726fi
14727rm -f conftest.val
a0b9e27f 14728else
a0b9e27f
MB
14729 ac_cv_sizeof_void_p=0
14730fi
a0b9e27f 14731fi
e6cc62c6
VS
14732echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14733echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14734cat >>confdefs.h <<_ACEOF
14735#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14736_ACEOF
14737
14738
14739echo "$as_me:$LINENO: checking for int" >&5
14740echo $ECHO_N "checking for int... $ECHO_C" >&6
14741if test "${ac_cv_type_int+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743else
14744 cat >conftest.$ac_ext <<_ACEOF
14745#line $LINENO "configure"
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751$ac_includes_default
14752int
14753main ()
14754{
14755if ((int *) 0)
14756 return 0;
14757if (sizeof (int))
14758 return 0;
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_type_int=yes
14776else
14777 echo "$as_me: failed program was:" >&5
14778sed 's/^/| /' conftest.$ac_ext >&5
14779
14780ac_cv_type_int=no
14781fi
14782rm -f conftest.$ac_objext conftest.$ac_ext
14783fi
14784echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14785echo "${ECHO_T}$ac_cv_type_int" >&6
14786
14787echo "$as_me:$LINENO: checking size of int" >&5
14788echo $ECHO_N "checking size of int... $ECHO_C" >&6
14789if test "${ac_cv_sizeof_int+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791else
14792 if test "$ac_cv_type_int" = yes; then
14793 # The cast to unsigned long works around a bug in the HP C Compiler
14794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14796 # This bug is HP SR number 8606223364.
14797 if test "$cross_compiling" = yes; then
14798 # Depending upon the size, compute the lo and hi bounds.
14799cat >conftest.$ac_ext <<_ACEOF
14800#line $LINENO "configure"
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807int
14808main ()
14809{
14810static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14811test_array [0] = 0
8284b0c5 14812
e6cc62c6
VS
14813 ;
14814 return 0;
14815}
14816_ACEOF
14817rm -f conftest.$ac_objext
14818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 ac_lo=0 ac_mid=0
14830 while :; do
14831 cat >conftest.$ac_ext <<_ACEOF
14832#line $LINENO "configure"
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838$ac_includes_default
14839int
14840main ()
14841{
14842static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14843test_array [0] = 0
14844
14845 ;
14846 return 0;
14847}
14848_ACEOF
14849rm -f conftest.$ac_objext
14850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_hi=$ac_mid; break
14862else
14863 echo "$as_me: failed program was:" >&5
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
14866ac_lo=`expr $ac_mid + 1`
14867 if test $ac_lo -le $ac_mid; then
14868 ac_lo= ac_hi=
14869 break
14870 fi
14871 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14872fi
e6cc62c6
VS
14873rm -f conftest.$ac_objext conftest.$ac_ext
14874 done
14875else
14876 echo "$as_me: failed program was:" >&5
14877sed 's/^/| /' conftest.$ac_ext >&5
14878
14879cat >conftest.$ac_ext <<_ACEOF
14880#line $LINENO "configure"
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887int
14888main ()
14889{
14890static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14891test_array [0] = 0
247f5006 14892
e6cc62c6
VS
14893 ;
14894 return 0;
14895}
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899 (eval $ac_compile) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_hi=-1 ac_mid=-1
14910 while :; do
14911 cat >conftest.$ac_ext <<_ACEOF
14912#line $LINENO "configure"
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918$ac_includes_default
14919int
14920main ()
14921{
14922static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14923test_array [0] = 0
247f5006 14924
e6cc62c6
VS
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext
14930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_lo=$ac_mid; break
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946ac_hi=`expr '(' $ac_mid ')' - 1`
14947 if test $ac_mid -le $ac_hi; then
14948 ac_lo= ac_hi=
14949 break
14950 fi
14951 ac_mid=`expr 2 '*' $ac_mid`
14952fi
14953rm -f conftest.$ac_objext conftest.$ac_ext
14954 done
247f5006 14955else
e6cc62c6
VS
14956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959ac_lo= ac_hi=
14960fi
14961rm -f conftest.$ac_objext conftest.$ac_ext
14962fi
14963rm -f conftest.$ac_objext conftest.$ac_ext
14964# Binary search between lo and hi bounds.
14965while test "x$ac_lo" != "x$ac_hi"; do
14966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14967 cat >conftest.$ac_ext <<_ACEOF
14968#line $LINENO "configure"
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974$ac_includes_default
14975int
14976main ()
14977{
14978static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14979test_array [0] = 0
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -s conftest.$ac_objext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_hi=$ac_mid
14998else
14999 echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002ac_lo=`expr '(' $ac_mid ')' + 1`
15003fi
15004rm -f conftest.$ac_objext conftest.$ac_ext
15005done
15006case $ac_lo in
15007?*) ac_cv_sizeof_int=$ac_lo;;
15008'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15009See \`config.log' for more details." >&5
15010echo "$as_me: error: cannot compute sizeof (int), 77
15011See \`config.log' for more details." >&2;}
15012 { (exit 1); exit 1; }; } ;;
15013esac
a0b9e27f 15014else
e6cc62c6
VS
15015 if test "$cross_compiling" = yes; then
15016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15017See \`config.log' for more details." >&5
15018echo "$as_me: error: cannot run test program while cross compiling
15019See \`config.log' for more details." >&2;}
15020 { (exit 1); exit 1; }; }
15021else
15022 cat >conftest.$ac_ext <<_ACEOF
15023#line $LINENO "configure"
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030long longval () { return (long) (sizeof (int)); }
15031unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15032#include <stdio.h>
e6cc62c6
VS
15033#include <stdlib.h>
15034int
15035main ()
247f5006 15036{
e6cc62c6
VS
15037
15038 FILE *f = fopen ("conftest.val", "w");
15039 if (! f)
15040 exit (1);
15041 if (((long) (sizeof (int))) < 0)
15042 {
15043 long i = longval ();
15044 if (i != ((long) (sizeof (int))))
15045 exit (1);
15046 fprintf (f, "%ld\n", i);
15047 }
15048 else
15049 {
15050 unsigned long i = ulongval ();
15051 if (i != ((long) (sizeof (int))))
15052 exit (1);
15053 fprintf (f, "%lu\n", i);
15054 }
15055 exit (ferror (f) || fclose (f) != 0);
15056
15057 ;
15058 return 0;
247f5006 15059}
e6cc62c6
VS
15060_ACEOF
15061rm -f conftest$ac_exeext
15062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15063 (eval $ac_link) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 ac_cv_sizeof_int=`cat conftest.val`
15073else
15074 echo "$as_me: program exited with status $ac_status" >&5
15075echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078( exit $ac_status )
15079{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15080See \`config.log' for more details." >&5
15081echo "$as_me: error: cannot compute sizeof (int), 77
15082See \`config.log' for more details." >&2;}
15083 { (exit 1); exit 1; }; }
15084fi
15085rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15086fi
15087fi
15088rm -f conftest.val
6f72b082 15089else
a0b9e27f 15090 ac_cv_sizeof_int=0
21d1c967 15091fi
698dcdb6 15092fi
e6cc62c6
VS
15093echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15094echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15095cat >>confdefs.h <<_ACEOF
15096#define SIZEOF_INT $ac_cv_sizeof_int
15097_ACEOF
15098
15099
15100echo "$as_me:$LINENO: checking for long" >&5
15101echo $ECHO_N "checking for long... $ECHO_C" >&6
15102if test "${ac_cv_type_long+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104else
15105 cat >conftest.$ac_ext <<_ACEOF
15106#line $LINENO "configure"
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
15111/* end confdefs.h. */
15112$ac_includes_default
15113int
15114main ()
15115{
15116if ((long *) 0)
15117 return 0;
15118if (sizeof (long))
15119 return 0;
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124rm -f conftest.$ac_objext
15125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -s conftest.$ac_objext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_cv_type_long=yes
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141ac_cv_type_long=no
15142fi
15143rm -f conftest.$ac_objext conftest.$ac_ext
15144fi
15145echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15146echo "${ECHO_T}$ac_cv_type_long" >&6
15147
15148echo "$as_me:$LINENO: checking size of long" >&5
15149echo $ECHO_N "checking size of long... $ECHO_C" >&6
15150if test "${ac_cv_sizeof_long+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152else
15153 if test "$ac_cv_type_long" = yes; then
15154 # The cast to unsigned long works around a bug in the HP C Compiler
15155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15157 # This bug is HP SR number 8606223364.
15158 if test "$cross_compiling" = yes; then
15159 # Depending upon the size, compute the lo and hi bounds.
15160cat >conftest.$ac_ext <<_ACEOF
15161#line $LINENO "configure"
15162/* confdefs.h. */
15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
15167$ac_includes_default
15168int
15169main ()
15170{
15171static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15172test_array [0] = 0
15173
15174 ;
15175 return 0;
15176}
15177_ACEOF
15178rm -f conftest.$ac_objext
15179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_lo=0 ac_mid=0
15191 while :; do
15192 cat >conftest.$ac_ext <<_ACEOF
15193#line $LINENO "configure"
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15204test_array [0] = 0
4f14bcd8 15205
e6cc62c6
VS
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_hi=$ac_mid; break
15223else
15224 echo "$as_me: failed program was:" >&5
15225sed 's/^/| /' conftest.$ac_ext >&5
15226
15227ac_lo=`expr $ac_mid + 1`
15228 if test $ac_lo -le $ac_mid; then
15229 ac_lo= ac_hi=
15230 break
15231 fi
15232 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15233fi
e6cc62c6
VS
15234rm -f conftest.$ac_objext conftest.$ac_ext
15235 done
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240cat >conftest.$ac_ext <<_ACEOF
15241#line $LINENO "configure"
15242/* confdefs.h. */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
15246/* end confdefs.h. */
15247$ac_includes_default
15248int
15249main ()
15250{
15251static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15252test_array [0] = 0
4f14bcd8 15253
e6cc62c6
VS
15254 ;
15255 return 0;
15256}
15257_ACEOF
15258rm -f conftest.$ac_objext
15259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260 (eval $ac_compile) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_hi=-1 ac_mid=-1
15271 while :; do
15272 cat >conftest.$ac_ext <<_ACEOF
15273#line $LINENO "configure"
15274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h. */
15279$ac_includes_default
15280int
15281main ()
15282{
15283static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15284test_array [0] = 0
5c6fa7d2 15285
e6cc62c6
VS
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290rm -f conftest.$ac_objext
15291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292 (eval $ac_compile) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_lo=$ac_mid; break
15303else
15304 echo "$as_me: failed program was:" >&5
15305sed 's/^/| /' conftest.$ac_ext >&5
15306
15307ac_hi=`expr '(' $ac_mid ')' - 1`
15308 if test $ac_mid -le $ac_hi; then
15309 ac_lo= ac_hi=
15310 break
15311 fi
15312 ac_mid=`expr 2 '*' $ac_mid`
15313fi
15314rm -f conftest.$ac_objext conftest.$ac_ext
15315 done
247f5006 15316else
e6cc62c6
VS
15317 echo "$as_me: failed program was:" >&5
15318sed 's/^/| /' conftest.$ac_ext >&5
15319
15320ac_lo= ac_hi=
15321fi
15322rm -f conftest.$ac_objext conftest.$ac_ext
15323fi
15324rm -f conftest.$ac_objext conftest.$ac_ext
15325# Binary search between lo and hi bounds.
15326while test "x$ac_lo" != "x$ac_hi"; do
15327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15328 cat >conftest.$ac_ext <<_ACEOF
15329#line $LINENO "configure"
15330/* confdefs.h. */
15331_ACEOF
15332cat confdefs.h >>conftest.$ac_ext
15333cat >>conftest.$ac_ext <<_ACEOF
15334/* end confdefs.h. */
15335$ac_includes_default
15336int
15337main ()
15338{
15339static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15340test_array [0] = 0
15341
15342 ;
15343 return 0;
15344}
15345_ACEOF
15346rm -f conftest.$ac_objext
15347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348 (eval $ac_compile) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -s conftest.$ac_objext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_hi=$ac_mid
15359else
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363ac_lo=`expr '(' $ac_mid ')' + 1`
15364fi
15365rm -f conftest.$ac_objext conftest.$ac_ext
15366done
15367case $ac_lo in
15368?*) ac_cv_sizeof_long=$ac_lo;;
15369'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15370See \`config.log' for more details." >&5
15371echo "$as_me: error: cannot compute sizeof (long), 77
15372See \`config.log' for more details." >&2;}
15373 { (exit 1); exit 1; }; } ;;
15374esac
247f5006 15375else
e6cc62c6
VS
15376 if test "$cross_compiling" = yes; then
15377 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15378See \`config.log' for more details." >&5
15379echo "$as_me: error: cannot run test program while cross compiling
15380See \`config.log' for more details." >&2;}
15381 { (exit 1); exit 1; }; }
15382else
15383 cat >conftest.$ac_ext <<_ACEOF
15384#line $LINENO "configure"
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390$ac_includes_default
15391long longval () { return (long) (sizeof (long)); }
15392unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15393#include <stdio.h>
e6cc62c6
VS
15394#include <stdlib.h>
15395int
15396main ()
247f5006 15397{
e6cc62c6
VS
15398
15399 FILE *f = fopen ("conftest.val", "w");
15400 if (! f)
15401 exit (1);
15402 if (((long) (sizeof (long))) < 0)
15403 {
15404 long i = longval ();
15405 if (i != ((long) (sizeof (long))))
15406 exit (1);
15407 fprintf (f, "%ld\n", i);
15408 }
15409 else
15410 {
15411 unsigned long i = ulongval ();
15412 if (i != ((long) (sizeof (long))))
15413 exit (1);
15414 fprintf (f, "%lu\n", i);
15415 }
15416 exit (ferror (f) || fclose (f) != 0);
15417
15418 ;
15419 return 0;
247f5006 15420}
e6cc62c6
VS
15421_ACEOF
15422rm -f conftest$ac_exeext
15423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_sizeof_long=`cat conftest.val`
15434else
15435 echo "$as_me: program exited with status $ac_status" >&5
15436echo "$as_me: failed program was:" >&5
15437sed 's/^/| /' conftest.$ac_ext >&5
15438
15439( exit $ac_status )
15440{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15441See \`config.log' for more details." >&5
15442echo "$as_me: error: cannot compute sizeof (long), 77
15443See \`config.log' for more details." >&2;}
15444 { (exit 1); exit 1; }; }
15445fi
15446rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15447fi
15448fi
15449rm -f conftest.val
247f5006 15450else
a0b9e27f 15451 ac_cv_sizeof_long=0
247f5006 15452fi
247f5006 15453fi
e6cc62c6
VS
15454echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15455echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15456cat >>confdefs.h <<_ACEOF
a0b9e27f 15457#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15458_ACEOF
247f5006 15459
a0b9e27f
MB
15460
15461
15462case "${host}" in
15463 arm-*-linux* )
e6cc62c6
VS
15464 echo "$as_me:$LINENO: checking for long long" >&5
15465echo $ECHO_N "checking for long long... $ECHO_C" >&6
15466if test "${ac_cv_type_long_long+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469 cat >conftest.$ac_ext <<_ACEOF
15470#line $LINENO "configure"
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477int
15478main ()
15479{
15480if ((long long *) 0)
15481 return 0;
15482if (sizeof (long long))
15483 return 0;
15484 ;
15485 return 0;
15486}
15487_ACEOF
15488rm -f conftest.$ac_objext
15489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490 (eval $ac_compile) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_type_long_long=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_cv_type_long_long=no
15506fi
15507rm -f conftest.$ac_objext conftest.$ac_ext
15508fi
15509echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15510echo "${ECHO_T}$ac_cv_type_long_long" >&6
15511
15512echo "$as_me:$LINENO: checking size of long long" >&5
15513echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15514if test "${ac_cv_sizeof_long_long+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516else
15517 if test "$ac_cv_type_long_long" = yes; then
15518 # The cast to unsigned long works around a bug in the HP C Compiler
15519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15521 # This bug is HP SR number 8606223364.
a0b9e27f 15522 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15523 # Depending upon the size, compute the lo and hi bounds.
15524cat >conftest.$ac_ext <<_ACEOF
15525#line $LINENO "configure"
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531$ac_includes_default
15532int
15533main ()
15534{
15535static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15536test_array [0] = 0
15537
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -s conftest.$ac_objext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_lo=0 ac_mid=0
15555 while :; do
15556 cat >conftest.$ac_ext <<_ACEOF
15557#line $LINENO "configure"
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563$ac_includes_default
15564int
15565main ()
15566{
15567static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15568test_array [0] = 0
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576 (eval $ac_compile) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -s conftest.$ac_objext'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; }; then
15586 ac_hi=$ac_mid; break
15587else
15588 echo "$as_me: failed program was:" >&5
15589sed 's/^/| /' conftest.$ac_ext >&5
15590
15591ac_lo=`expr $ac_mid + 1`
15592 if test $ac_lo -le $ac_mid; then
15593 ac_lo= ac_hi=
15594 break
15595 fi
15596 ac_mid=`expr 2 '*' $ac_mid + 1`
15597fi
15598rm -f conftest.$ac_objext conftest.$ac_ext
15599 done
15600else
15601 echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604cat >conftest.$ac_ext <<_ACEOF
15605#line $LINENO "configure"
15606/* confdefs.h. */
15607_ACEOF
15608cat confdefs.h >>conftest.$ac_ext
15609cat >>conftest.$ac_ext <<_ACEOF
15610/* end confdefs.h. */
15611$ac_includes_default
15612int
15613main ()
15614{
15615static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15616test_array [0] = 0
15617
15618 ;
15619 return 0;
15620}
15621_ACEOF
15622rm -f conftest.$ac_objext
15623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_hi=-1 ac_mid=-1
15635 while :; do
15636 cat >conftest.$ac_ext <<_ACEOF
15637#line $LINENO "configure"
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643$ac_includes_default
15644int
15645main ()
15646{
15647static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15648test_array [0] = 0
15649
15650 ;
15651 return 0;
15652}
15653_ACEOF
15654rm -f conftest.$ac_objext
15655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15666 ac_lo=$ac_mid; break
15667else
15668 echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671ac_hi=`expr '(' $ac_mid ')' - 1`
15672 if test $ac_mid -le $ac_hi; then
15673 ac_lo= ac_hi=
15674 break
15675 fi
15676 ac_mid=`expr 2 '*' $ac_mid`
15677fi
15678rm -f conftest.$ac_objext conftest.$ac_ext
15679 done
15680else
15681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684ac_lo= ac_hi=
15685fi
15686rm -f conftest.$ac_objext conftest.$ac_ext
15687fi
15688rm -f conftest.$ac_objext conftest.$ac_ext
15689# Binary search between lo and hi bounds.
15690while test "x$ac_lo" != "x$ac_hi"; do
15691 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15692 cat >conftest.$ac_ext <<_ACEOF
15693#line $LINENO "configure"
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699$ac_includes_default
15700int
15701main ()
15702{
15703static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15704test_array [0] = 0
15705
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710rm -f conftest.$ac_objext
15711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15712 (eval $ac_compile) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_hi=$ac_mid
15723else
15724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727ac_lo=`expr '(' $ac_mid ')' + 1`
15728fi
15729rm -f conftest.$ac_objext conftest.$ac_ext
15730done
15731case $ac_lo in
15732?*) ac_cv_sizeof_long_long=$ac_lo;;
15733'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15734See \`config.log' for more details." >&5
15735echo "$as_me: error: cannot compute sizeof (long long), 77
15736See \`config.log' for more details." >&2;}
15737 { (exit 1); exit 1; }; } ;;
15738esac
a0b9e27f 15739else
e6cc62c6
VS
15740 if test "$cross_compiling" = yes; then
15741 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15742See \`config.log' for more details." >&5
15743echo "$as_me: error: cannot run test program while cross compiling
15744See \`config.log' for more details." >&2;}
15745 { (exit 1); exit 1; }; }
15746else
15747 cat >conftest.$ac_ext <<_ACEOF
15748#line $LINENO "configure"
15749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
15754$ac_includes_default
15755long longval () { return (long) (sizeof (long long)); }
15756unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15757#include <stdio.h>
e6cc62c6
VS
15758#include <stdlib.h>
15759int
15760main ()
247f5006 15761{
e6cc62c6
VS
15762
15763 FILE *f = fopen ("conftest.val", "w");
15764 if (! f)
15765 exit (1);
15766 if (((long) (sizeof (long long))) < 0)
15767 {
15768 long i = longval ();
15769 if (i != ((long) (sizeof (long long))))
15770 exit (1);
15771 fprintf (f, "%ld\n", i);
15772 }
15773 else
15774 {
15775 unsigned long i = ulongval ();
15776 if (i != ((long) (sizeof (long long))))
15777 exit (1);
15778 fprintf (f, "%lu\n", i);
15779 }
15780 exit (ferror (f) || fclose (f) != 0);
15781
15782 ;
15783 return 0;
247f5006 15784}
e6cc62c6
VS
15785_ACEOF
15786rm -f conftest$ac_exeext
15787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_cv_sizeof_long_long=`cat conftest.val`
15798else
15799 echo "$as_me: program exited with status $ac_status" >&5
15800echo "$as_me: failed program was:" >&5
15801sed 's/^/| /' conftest.$ac_ext >&5
15802
15803( exit $ac_status )
15804{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15805See \`config.log' for more details." >&5
15806echo "$as_me: error: cannot compute sizeof (long long), 77
15807See \`config.log' for more details." >&2;}
15808 { (exit 1); exit 1; }; }
15809fi
15810rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15811fi
15812fi
15813rm -f conftest.val
7b4a847f 15814else
a0b9e27f 15815 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15816fi
15817fi
e6cc62c6
VS
15818echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15819echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15820cat >>confdefs.h <<_ACEOF
15821#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15822_ACEOF
15823
15824
15825 ;;
15826 *-hp-hpux* )
15827 echo "$as_me:$LINENO: checking for long long" >&5
15828echo $ECHO_N "checking for long long... $ECHO_C" >&6
15829if test "${ac_cv_type_long_long+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15831else
15832 cat >conftest.$ac_ext <<_ACEOF
15833#line $LINENO "configure"
15834/* confdefs.h. */
15835_ACEOF
15836cat confdefs.h >>conftest.$ac_ext
15837cat >>conftest.$ac_ext <<_ACEOF
15838/* end confdefs.h. */
15839$ac_includes_default
15840int
15841main ()
15842{
15843if ((long long *) 0)
15844 return 0;
15845if (sizeof (long long))
15846 return 0;
15847 ;
15848 return 0;
15849}
15850_ACEOF
15851rm -f conftest.$ac_objext
15852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15853 (eval $ac_compile) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_type_long_long=yes
15864else
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
15868ac_cv_type_long_long=no
15869fi
15870rm -f conftest.$ac_objext conftest.$ac_ext
15871fi
15872echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15873echo "${ECHO_T}$ac_cv_type_long_long" >&6
15874
15875echo "$as_me:$LINENO: checking size of long long" >&5
15876echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15877if test "${ac_cv_sizeof_long_long+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879else
15880 if test "$ac_cv_type_long_long" = yes; then
15881 # The cast to unsigned long works around a bug in the HP C Compiler
15882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15884 # This bug is HP SR number 8606223364.
15885 if test "$cross_compiling" = yes; then
15886 # Depending upon the size, compute the lo and hi bounds.
15887cat >conftest.$ac_ext <<_ACEOF
15888#line $LINENO "configure"
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894$ac_includes_default
15895int
15896main ()
15897{
15898static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15899test_array [0] = 0
15900
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_lo=0 ac_mid=0
15918 while :; do
15919 cat >conftest.$ac_ext <<_ACEOF
15920#line $LINENO "configure"
15921/* confdefs.h. */
15922_ACEOF
15923cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */
15926$ac_includes_default
15927int
15928main ()
15929{
15930static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15931test_array [0] = 0
8284b0c5 15932
e6cc62c6
VS
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_hi=$ac_mid; break
15950else
15951 echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954ac_lo=`expr $ac_mid + 1`
15955 if test $ac_lo -le $ac_mid; then
15956 ac_lo= ac_hi=
15957 break
15958 fi
15959 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15960fi
e6cc62c6
VS
15961rm -f conftest.$ac_objext conftest.$ac_ext
15962 done
15963else
15964 echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967cat >conftest.$ac_ext <<_ACEOF
15968#line $LINENO "configure"
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974$ac_includes_default
15975int
15976main ()
15977{
15978static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15979test_array [0] = 0
a0b9e27f 15980
e6cc62c6
VS
15981 ;
15982 return 0;
15983}
15984_ACEOF
15985rm -f conftest.$ac_objext
15986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_hi=-1 ac_mid=-1
15998 while :; do
15999 cat >conftest.$ac_ext <<_ACEOF
16000#line $LINENO "configure"
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 long))) >= $ac_mid)];
16011test_array [0] = 0
a0b9e27f 16012
e6cc62c6
VS
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017rm -f conftest.$ac_objext
16018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019 (eval $ac_compile) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_lo=$ac_mid; break
16030else
16031 echo "$as_me: failed program was:" >&5
16032sed 's/^/| /' conftest.$ac_ext >&5
16033
16034ac_hi=`expr '(' $ac_mid ')' - 1`
16035 if test $ac_mid -le $ac_hi; then
16036 ac_lo= ac_hi=
16037 break
16038 fi
16039 ac_mid=`expr 2 '*' $ac_mid`
16040fi
16041rm -f conftest.$ac_objext conftest.$ac_ext
16042 done
8284b0c5 16043else
e6cc62c6
VS
16044 echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047ac_lo= ac_hi=
16048fi
16049rm -f conftest.$ac_objext conftest.$ac_ext
16050fi
16051rm -f conftest.$ac_objext conftest.$ac_ext
16052# Binary search between lo and hi bounds.
16053while test "x$ac_lo" != "x$ac_hi"; do
16054 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16055 cat >conftest.$ac_ext <<_ACEOF
16056#line $LINENO "configure"
16057/* confdefs.h. */
16058_ACEOF
16059cat confdefs.h >>conftest.$ac_ext
16060cat >>conftest.$ac_ext <<_ACEOF
16061/* end confdefs.h. */
16062$ac_includes_default
16063int
16064main ()
16065{
16066static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16067test_array [0] = 0
16068
16069 ;
16070 return 0;
16071}
16072_ACEOF
16073rm -f conftest.$ac_objext
16074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16075 (eval $ac_compile) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_hi=$ac_mid
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090ac_lo=`expr '(' $ac_mid ')' + 1`
16091fi
16092rm -f conftest.$ac_objext conftest.$ac_ext
16093done
16094case $ac_lo in
16095?*) ac_cv_sizeof_long_long=$ac_lo;;
16096'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16097See \`config.log' for more details." >&5
16098echo "$as_me: error: cannot compute sizeof (long long), 77
16099See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; } ;;
16101esac
8284b0c5 16102else
e6cc62c6
VS
16103 if test "$cross_compiling" = yes; then
16104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16105See \`config.log' for more details." >&5
16106echo "$as_me: error: cannot run test program while cross compiling
16107See \`config.log' for more details." >&2;}
16108 { (exit 1); exit 1; }; }
16109else
16110 cat >conftest.$ac_ext <<_ACEOF
16111#line $LINENO "configure"
16112/* confdefs.h. */
16113_ACEOF
16114cat confdefs.h >>conftest.$ac_ext
16115cat >>conftest.$ac_ext <<_ACEOF
16116/* end confdefs.h. */
16117$ac_includes_default
16118long longval () { return (long) (sizeof (long long)); }
16119unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16120#include <stdio.h>
e6cc62c6
VS
16121#include <stdlib.h>
16122int
16123main ()
8284b0c5 16124{
e6cc62c6
VS
16125
16126 FILE *f = fopen ("conftest.val", "w");
16127 if (! f)
16128 exit (1);
16129 if (((long) (sizeof (long long))) < 0)
16130 {
16131 long i = longval ();
16132 if (i != ((long) (sizeof (long long))))
16133 exit (1);
16134 fprintf (f, "%ld\n", i);
16135 }
16136 else
16137 {
16138 unsigned long i = ulongval ();
16139 if (i != ((long) (sizeof (long long))))
16140 exit (1);
16141 fprintf (f, "%lu\n", i);
16142 }
16143 exit (ferror (f) || fclose (f) != 0);
16144
16145 ;
16146 return 0;
8284b0c5 16147}
e6cc62c6
VS
16148_ACEOF
16149rm -f conftest$ac_exeext
16150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_sizeof_long_long=`cat conftest.val`
16161else
16162 echo "$as_me: program exited with status $ac_status" >&5
16163echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166( exit $ac_status )
16167{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16168See \`config.log' for more details." >&5
16169echo "$as_me: error: cannot compute sizeof (long long), 77
16170See \`config.log' for more details." >&2;}
16171 { (exit 1); exit 1; }; }
16172fi
16173rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16174fi
16175fi
16176rm -f conftest.val
5c6fa7d2
RR
16177else
16178 ac_cv_sizeof_long_long=0
52127426 16179fi
4f57cf11 16180fi
e6cc62c6
VS
16181echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16182echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16183cat >>confdefs.h <<_ACEOF
4f57cf11 16184#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16185_ACEOF
4f57cf11
GD
16186
16187
16188 if test "$ac_cv_sizeof_long_long" != "0"; then
16189 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16190 fi
16191 ;;
16192 * )
e6cc62c6
VS
16193 echo "$as_me:$LINENO: checking for long long" >&5
16194echo $ECHO_N "checking for long long... $ECHO_C" >&6
16195if test "${ac_cv_type_long_long+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16197else
16198 cat >conftest.$ac_ext <<_ACEOF
16199#line $LINENO "configure"
16200/* confdefs.h. */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h. */
16205$ac_includes_default
16206int
16207main ()
16208{
16209if ((long long *) 0)
16210 return 0;
16211if (sizeof (long long))
16212 return 0;
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219 (eval $ac_compile) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -s conftest.$ac_objext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 ac_cv_type_long_long=yes
16230else
16231 echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234ac_cv_type_long_long=no
16235fi
16236rm -f conftest.$ac_objext conftest.$ac_ext
16237fi
16238echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16239echo "${ECHO_T}$ac_cv_type_long_long" >&6
16240
16241echo "$as_me:$LINENO: checking size of long long" >&5
16242echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16243if test "${ac_cv_sizeof_long_long+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245else
16246 if test "$ac_cv_type_long_long" = yes; then
16247 # The cast to unsigned long works around a bug in the HP C Compiler
16248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16250 # This bug is HP SR number 8606223364.
4f57cf11 16251 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16252 # Depending upon the size, compute the lo and hi bounds.
16253cat >conftest.$ac_ext <<_ACEOF
16254#line $LINENO "configure"
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260$ac_includes_default
16261int
16262main ()
16263{
16264static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16265test_array [0] = 0
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273 (eval $ac_compile) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_lo=0 ac_mid=0
16284 while :; do
16285 cat >conftest.$ac_ext <<_ACEOF
16286#line $LINENO "configure"
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293int
16294main ()
16295{
16296static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16297test_array [0] = 0
16298
16299 ;
16300 return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 ac_hi=$ac_mid; break
16316else
16317 echo "$as_me: failed program was:" >&5
16318sed 's/^/| /' conftest.$ac_ext >&5
16319
16320ac_lo=`expr $ac_mid + 1`
16321 if test $ac_lo -le $ac_mid; then
16322 ac_lo= ac_hi=
16323 break
16324 fi
16325 ac_mid=`expr 2 '*' $ac_mid + 1`
16326fi
16327rm -f conftest.$ac_objext conftest.$ac_ext
16328 done
16329else
16330 echo "$as_me: failed program was:" >&5
16331sed 's/^/| /' conftest.$ac_ext >&5
16332
16333cat >conftest.$ac_ext <<_ACEOF
16334#line $LINENO "configure"
16335/* confdefs.h. */
16336_ACEOF
16337cat confdefs.h >>conftest.$ac_ext
16338cat >>conftest.$ac_ext <<_ACEOF
16339/* end confdefs.h. */
16340$ac_includes_default
16341int
16342main ()
16343{
16344static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16345test_array [0] = 0
16346
16347 ;
16348 return 0;
16349}
16350_ACEOF
16351rm -f conftest.$ac_objext
16352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16353 (eval $ac_compile) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -s conftest.$ac_objext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_hi=-1 ac_mid=-1
16364 while :; do
16365 cat >conftest.$ac_ext <<_ACEOF
16366#line $LINENO "configure"
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373int
16374main ()
16375{
16376static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16377test_array [0] = 0
16378
16379 ;
16380 return 0;
16381}
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385 (eval $ac_compile) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -s conftest.$ac_objext'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_lo=$ac_mid; break
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400ac_hi=`expr '(' $ac_mid ')' - 1`
16401 if test $ac_mid -le $ac_hi; then
16402 ac_lo= ac_hi=
16403 break
16404 fi
16405 ac_mid=`expr 2 '*' $ac_mid`
16406fi
16407rm -f conftest.$ac_objext conftest.$ac_ext
16408 done
4f57cf11 16409else
e6cc62c6
VS
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413ac_lo= ac_hi=
16414fi
16415rm -f conftest.$ac_objext conftest.$ac_ext
16416fi
16417rm -f conftest.$ac_objext conftest.$ac_ext
16418# Binary search between lo and hi bounds.
16419while test "x$ac_lo" != "x$ac_hi"; do
16420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16421 cat >conftest.$ac_ext <<_ACEOF
16422#line $LINENO "configure"
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429int
16430main ()
16431{
16432static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16433test_array [0] = 0
16434
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439rm -f conftest.$ac_objext
16440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -s conftest.$ac_objext'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 ac_hi=$ac_mid
16452else
16453 echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456ac_lo=`expr '(' $ac_mid ')' + 1`
16457fi
16458rm -f conftest.$ac_objext conftest.$ac_ext
16459done
16460case $ac_lo in
16461?*) ac_cv_sizeof_long_long=$ac_lo;;
16462'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16463See \`config.log' for more details." >&5
16464echo "$as_me: error: cannot compute sizeof (long long), 77
16465See \`config.log' for more details." >&2;}
16466 { (exit 1); exit 1; }; } ;;
16467esac
16468else
16469 if test "$cross_compiling" = yes; then
16470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16471See \`config.log' for more details." >&5
16472echo "$as_me: error: cannot run test program while cross compiling
16473See \`config.log' for more details." >&2;}
16474 { (exit 1); exit 1; }; }
16475else
16476 cat >conftest.$ac_ext <<_ACEOF
16477#line $LINENO "configure"
16478/* confdefs.h. */
16479_ACEOF
16480cat confdefs.h >>conftest.$ac_ext
16481cat >>conftest.$ac_ext <<_ACEOF
16482/* end confdefs.h. */
16483$ac_includes_default
16484long longval () { return (long) (sizeof (long long)); }
16485unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16486#include <stdio.h>
e6cc62c6
VS
16487#include <stdlib.h>
16488int
16489main ()
4f57cf11 16490{
e6cc62c6
VS
16491
16492 FILE *f = fopen ("conftest.val", "w");
16493 if (! f)
16494 exit (1);
16495 if (((long) (sizeof (long long))) < 0)
16496 {
16497 long i = longval ();
16498 if (i != ((long) (sizeof (long long))))
16499 exit (1);
16500 fprintf (f, "%ld\n", i);
16501 }
16502 else
16503 {
16504 unsigned long i = ulongval ();
16505 if (i != ((long) (sizeof (long long))))
16506 exit (1);
16507 fprintf (f, "%lu\n", i);
16508 }
16509 exit (ferror (f) || fclose (f) != 0);
16510
16511 ;
16512 return 0;
4f57cf11 16513}
e6cc62c6
VS
16514_ACEOF
16515rm -f conftest$ac_exeext
16516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16517 (eval $ac_link) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_cv_sizeof_long_long=`cat conftest.val`
16527else
16528 echo "$as_me: program exited with status $ac_status" >&5
16529echo "$as_me: failed program was:" >&5
16530sed 's/^/| /' conftest.$ac_ext >&5
16531
16532( exit $ac_status )
16533{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16534See \`config.log' for more details." >&5
16535echo "$as_me: error: cannot compute sizeof (long long), 77
16536See \`config.log' for more details." >&2;}
16537 { (exit 1); exit 1; }; }
16538fi
16539rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16540fi
16541fi
16542rm -f conftest.val
4f57cf11 16543else
4f57cf11
GD
16544 ac_cv_sizeof_long_long=0
16545fi
7b4a847f 16546fi
e6cc62c6
VS
16547echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16548echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16549cat >>confdefs.h <<_ACEOF
21d1c967 16550#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16551_ACEOF
9e691f46 16552
8284b0c5 16553
21d1c967
GD
16554esac
16555
e6cc62c6
VS
16556echo "$as_me:$LINENO: checking size of wchar_t" >&5
16557echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16558if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16560else
e6cc62c6 16561
21d1c967 16562 if test "$cross_compiling" = yes; then
e6cc62c6 16563
2b5f62a0
VZ
16564 case "${host}" in
16565 *-pc-msdosdjgpp )
16566 wx_cv_sizeof_wchar_t=0
16567 ;;
16568 * )
16569 wx_cv_sizeof_wchar_t=4
16570 ;;
16571 esac
e6cc62c6
VS
16572
16573
6f72b082 16574else
e6cc62c6
VS
16575 cat >conftest.$ac_ext <<_ACEOF
16576#line $LINENO "configure"
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
21d1c967 16582
2b5f62a0
VZ
16583 /* DJGPP only has fake wchar_t: */
16584 #ifdef __DJGPP__
16585 # error "fake wchar_t"
16586 #endif
21d1c967
GD
16587 #ifdef HAVE_WCHAR_H
16588 # ifdef __CYGWIN__
16589 # include <stddef.h>
16590 # endif
16591 # include <wchar.h>
16592 #endif
16593 #ifdef HAVE_STDLIB_H
16594 # include <stdlib.h>
16595 #endif
16596 #include <stdio.h>
16597 int main()
16598 {
16599 FILE *f=fopen("conftestval", "w");
16600 if (!f) exit(1);
16601 fprintf(f, "%i", sizeof(wchar_t));
16602 exit(0);
16603 }
e6cc62c6
VS
16604
16605_ACEOF
16606rm -f conftest$ac_exeext
16607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608 (eval $ac_link) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
21d1c967 16617 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16618else
e6cc62c6
VS
16619 echo "$as_me: program exited with status $ac_status" >&5
16620echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623( exit $ac_status )
16624wx_cv_sizeof_wchar_t=0
6f72b082 16625fi
e6cc62c6 16626rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16627fi
6f72b082 16628
3f345b47 16629fi
e6cc62c6
VS
16630echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16631echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16632
e6cc62c6 16633cat >>confdefs.h <<_ACEOF
21d1c967 16634#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16635_ACEOF
90dd450c 16636
8284b0c5 16637
21d1c967
GD
16638# Check whether --enable-largefile or --disable-largefile was given.
16639if test "${enable_largefile+set}" = set; then
16640 enableval="$enable_largefile"
3f345b47 16641
e6cc62c6 16642fi;
21d1c967
GD
16643if test "$enable_largefile" != no; then
16644 wx_largefile=no
e6cc62c6
VS
16645
16646 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16647echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16648if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651
16652 cat >conftest.$ac_ext <<_ACEOF
16653#line $LINENO "configure"
16654/* confdefs.h. */
16655_ACEOF
16656cat confdefs.h >>conftest.$ac_ext
16657cat >>conftest.$ac_ext <<_ACEOF
16658/* end confdefs.h. */
21d1c967
GD
16659#define _FILE_OFFSET_BITS 64
16660 #include <sys/types.h>
e6cc62c6
VS
16661int
16662main ()
16663{
21d1c967
GD
16664typedef struct {
16665 unsigned int field: sizeof(off_t) == 8;
16666} wxlf;
16667
e6cc62c6
VS
16668 ;
16669 return 0;
16670}
16671_ACEOF
16672rm -f conftest.$ac_objext
16673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16674 (eval $ac_compile) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
21d1c967 16684 ac_cv_sys_file_offset_bits=64
f6bcfd97 16685else
e6cc62c6
VS
16686 echo "$as_me: failed program was:" >&5
16687sed 's/^/| /' conftest.$ac_ext >&5
16688
16689ac_cv_sys_file_offset_bits=no
247f5006 16690fi
e6cc62c6
VS
16691rm -f conftest.$ac_objext conftest.$ac_ext
16692
a0b9e27f 16693
e6cc62c6
VS
16694fi
16695echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16696echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16697
16698 if test "$ac_cv_sys_file_offset_bits" != no; then
16699 wx_largefile=yes
e6cc62c6 16700 cat >>confdefs.h <<_ACEOF
21d1c967 16701#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16702_ACEOF
21d1c967
GD
16703
16704 fi
16705
16706 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16707
16708 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16709echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16710if test "${ac_cv_sys_large_files+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712else
16713
16714 cat >conftest.$ac_ext <<_ACEOF
16715#line $LINENO "configure"
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
16720/* end confdefs.h. */
21d1c967
GD
16721#define _LARGE_FILES 1
16722 #include <sys/types.h>
e6cc62c6
VS
16723int
16724main ()
16725{
21d1c967
GD
16726typedef struct {
16727 unsigned int field: sizeof(off_t) == 8;
16728} wxlf;
16729
e6cc62c6
VS
16730 ;
16731 return 0;
16732}
16733_ACEOF
16734rm -f conftest.$ac_objext
16735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
21d1c967 16746 ac_cv_sys_large_files=1
f6bcfd97 16747else
e6cc62c6
VS
16748 echo "$as_me: failed program was:" >&5
16749sed 's/^/| /' conftest.$ac_ext >&5
16750
16751ac_cv_sys_large_files=no
247f5006 16752fi
e6cc62c6 16753rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16754
e6cc62c6
VS
16755
16756fi
16757echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16758echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16759
21d1c967
GD
16760 if test "$ac_cv_sys_large_files" != no; then
16761 wx_largefile=yes
e6cc62c6 16762 cat >>confdefs.h <<_ACEOF
21d1c967 16763#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16764_ACEOF
90dd450c 16765
90dd450c
VZ
16766 fi
16767
90dd450c 16768 fi
90dd450c 16769
e6cc62c6
VS
16770 echo "$as_me:$LINENO: checking if large file support is available" >&5
16771echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16772 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16773 cat >>confdefs.h <<\_ACEOF
21d1c967 16774#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16775_ACEOF
90dd450c 16776
90dd450c 16777 fi
e6cc62c6
VS
16778 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16779echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16780fi
90dd450c 16781
8284b0c5 16782
f02444d0 16783if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16784 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16785 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16786 else
e26c13cf 16787 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16788 fi
e26c13cf 16789 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16790fi
16791
e6cc62c6
VS
16792echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16793echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16794if test "${ac_cv_c_bigendian+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16796else
21d1c967
GD
16797 ac_cv_c_bigendian=unknown
16798# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16799cat >conftest.$ac_ext <<_ACEOF
16800#line $LINENO "configure"
16801/* confdefs.h. */
16802_ACEOF
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
21d1c967
GD
16806#include <sys/types.h>
16807#include <sys/param.h>
e6cc62c6
VS
16808int
16809main ()
16810{
21d1c967
GD
16811
16812#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16813 bogus endian macros
16814#endif
e6cc62c6
VS
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819rm -f conftest.$ac_objext
16820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
21d1c967 16831 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16832cat >conftest.$ac_ext <<_ACEOF
16833#line $LINENO "configure"
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
21d1c967
GD
16839#include <sys/types.h>
16840#include <sys/param.h>
e6cc62c6
VS
16841int
16842main ()
16843{
21d1c967
GD
16844
16845#if BYTE_ORDER != BIG_ENDIAN
16846 not big endian
16847#endif
e6cc62c6
VS
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
21d1c967 16864 ac_cv_c_bigendian=yes
3f345b47 16865else
e6cc62c6
VS
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869ac_cv_c_bigendian=no
3f345b47 16870fi
e6cc62c6 16871rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16872else
e6cc62c6
VS
16873 echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
3f345b47 16876fi
e6cc62c6 16877rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16878if test $ac_cv_c_bigendian = unknown; then
16879if test "$cross_compiling" = yes; then
16880 ac_cv_c_bigendian=unknown
10f2d63a 16881else
e6cc62c6
VS
16882 cat >conftest.$ac_ext <<_ACEOF
16883#line $LINENO "configure"
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
21d1c967
GD
16889main () {
16890 /* Are we little or big endian? From Harbison&Steele. */
16891 union
16892 {
16893 long l;
16894 char c[sizeof (long)];
16895 } u;
16896 u.l = 1;
16897 exit (u.c[sizeof (long) - 1] == 1);
16898}
e6cc62c6
VS
16899_ACEOF
16900rm -f conftest$ac_exeext
16901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902 (eval $ac_link) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
21d1c967 16911 ac_cv_c_bigendian=no
3f345b47 16912else
e6cc62c6
VS
16913 echo "$as_me: program exited with status $ac_status" >&5
16914echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917( exit $ac_status )
16918ac_cv_c_bigendian=yes
247f5006 16919fi
e6cc62c6 16920rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16921fi
3f345b47 16922fi
8168de4c 16923fi
e6cc62c6
VS
16924echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16925echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16926if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16927 { 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
16928echo "$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
16929fi
16930if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16931 cat >>confdefs.h <<\_ACEOF
247f5006 16932#define WORDS_BIGENDIAN 1
e6cc62c6 16933_ACEOF
247f5006
VZ
16934
16935fi
16936
16937
e6cc62c6
VS
16938
16939ac_ext=cc
16940ac_cpp='$CXXCPP $CPPFLAGS'
16941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16944echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16945echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16946if test -z "$CXXCPP"; then
e6cc62c6
VS
16947 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 # Double quotes because CXXCPP needs to be expanded
16951 for CXXCPP in "$CXX -E" "/lib/cpp"
16952 do
16953 ac_preproc_ok=false
16954for ac_cxx_preproc_warn_flag in '' yes
16955do
16956 # Use a header file that comes with gcc, so configuring glibc
16957 # with a fresh cross-compiler works.
16958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 # <limits.h> exists even on freestanding compilers.
16960 # On the NeXT, cc -E runs the code through the compiler's parser,
16961 # not just through cpp. "Syntax error" is here to catch this case.
16962 cat >conftest.$ac_ext <<_ACEOF
16963#line $LINENO "configure"
16964/* confdefs.h. */
16965_ACEOF
16966cat confdefs.h >>conftest.$ac_ext
16967cat >>conftest.$ac_ext <<_ACEOF
16968/* end confdefs.h. */
16969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
16974 Syntax error
16975_ACEOF
16976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } >/dev/null; then
16984 if test -s conftest.err; then
16985 ac_cpp_err=$ac_cxx_preproc_warn_flag
16986 else
16987 ac_cpp_err=
16988 fi
247f5006 16989else
e6cc62c6
VS
16990 ac_cpp_err=yes
16991fi
16992if test -z "$ac_cpp_err"; then
16993 :
16994else
16995 echo "$as_me: failed program was:" >&5
16996sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 # Broken: fails on valid input.
16999continue
17000fi
17001rm -f conftest.err conftest.$ac_ext
17002
17003 # OK, works on sane cases. Now check whether non-existent headers
17004 # can be detected and how.
17005 cat >conftest.$ac_ext <<_ACEOF
17006#line $LINENO "configure"
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012#include <ac_nonexistent.h>
17013_ACEOF
17014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } >/dev/null; then
17022 if test -s conftest.err; then
17023 ac_cpp_err=$ac_cxx_preproc_warn_flag
17024 else
17025 ac_cpp_err=
17026 fi
17027else
17028 ac_cpp_err=yes
17029fi
17030if test -z "$ac_cpp_err"; then
17031 # Broken: success on invalid input.
17032continue
17033else
17034 echo "$as_me: failed program was:" >&5
17035sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 # Passes both tests.
17038ac_preproc_ok=:
17039break
17040fi
17041rm -f conftest.err conftest.$ac_ext
17042
17043done
17044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17045rm -f conftest.err conftest.$ac_ext
17046if $ac_preproc_ok; then
17047 break
17048fi
17049
17050 done
17051 ac_cv_prog_CXXCPP=$CXXCPP
17052
17053fi
17054 CXXCPP=$ac_cv_prog_CXXCPP
17055else
17056 ac_cv_prog_CXXCPP=$CXXCPP
17057fi
17058echo "$as_me:$LINENO: result: $CXXCPP" >&5
17059echo "${ECHO_T}$CXXCPP" >&6
17060ac_preproc_ok=false
17061for ac_cxx_preproc_warn_flag in '' yes
17062do
17063 # Use a header file that comes with gcc, so configuring glibc
17064 # with a fresh cross-compiler works.
17065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066 # <limits.h> exists even on freestanding compilers.
17067 # On the NeXT, cc -E runs the code through the compiler's parser,
17068 # not just through cpp. "Syntax error" is here to catch this case.
17069 cat >conftest.$ac_ext <<_ACEOF
17070#line $LINENO "configure"
17071/* confdefs.h. */
17072_ACEOF
17073cat confdefs.h >>conftest.$ac_ext
17074cat >>conftest.$ac_ext <<_ACEOF
17075/* end confdefs.h. */
17076#ifdef __STDC__
17077# include <limits.h>
17078#else
17079# include <assert.h>
17080#endif
17081 Syntax error
17082_ACEOF
17083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } >/dev/null; then
17091 if test -s conftest.err; then
17092 ac_cpp_err=$ac_cxx_preproc_warn_flag
17093 else
17094 ac_cpp_err=
17095 fi
17096else
17097 ac_cpp_err=yes
17098fi
17099if test -z "$ac_cpp_err"; then
21d1c967 17100 :
698dcdb6 17101else
e6cc62c6
VS
17102 echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 # Broken: fails on valid input.
17106continue
17107fi
17108rm -f conftest.err conftest.$ac_ext
17109
17110 # OK, works on sane cases. Now check whether non-existent headers
17111 # can be detected and how.
17112 cat >conftest.$ac_ext <<_ACEOF
17113#line $LINENO "configure"
17114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
17119#include <ac_nonexistent.h>
17120_ACEOF
17121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } >/dev/null; then
17129 if test -s conftest.err; then
17130 ac_cpp_err=$ac_cxx_preproc_warn_flag
17131 else
17132 ac_cpp_err=
17133 fi
17134else
17135 ac_cpp_err=yes
247f5006 17136fi
e6cc62c6
VS
17137if test -z "$ac_cpp_err"; then
17138 # Broken: success on invalid input.
17139continue
17140else
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 # Passes both tests.
17145ac_preproc_ok=:
17146break
328a083c 17147fi
e6cc62c6
VS
17148rm -f conftest.err conftest.$ac_ext
17149
17150done
17151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17152rm -f conftest.err conftest.$ac_ext
17153if $ac_preproc_ok; then
17154 :
17155else
17156 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17157See \`config.log' for more details." >&5
17158echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17159See \`config.log' for more details." >&2;}
17160 { (exit 1); exit 1; }; }
90dd450c 17161fi
e6cc62c6
VS
17162
17163ac_ext=cc
17164ac_cpp='$CXXCPP $CPPFLAGS'
17165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17168
1e6feb95 17169
1725144d 17170
21d1c967 17171 if test "$cross_compiling" = "yes"; then
e6cc62c6 17172 cat >>confdefs.h <<\_ACEOF
21d1c967 17173#define wxUSE_IOSTREAMH 1
e6cc62c6 17174_ACEOF
ab9b9eab 17175
21d1c967 17176 else
e6cc62c6
VS
17177
17178
17179 ac_ext=cc
5c6fa7d2 17180ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17184
52127426 17185
247f5006 17186
e6cc62c6 17187for ac_header in iostream
21d1c967 17188do
e6cc62c6
VS
17189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17190if eval "test \"\${$as_ac_Header+set}\" = set"; then
17191 echo "$as_me:$LINENO: checking for $ac_header" >&5
17192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17193if eval "test \"\${$as_ac_Header+set}\" = set"; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195fi
17196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17198else
17199 # Is the header compilable?
17200echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17202cat >conftest.$ac_ext <<_ACEOF
17203#line $LINENO "configure"
17204/* confdefs.h. */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h. */
17209$ac_includes_default
17210#include <$ac_header>
17211_ACEOF
17212rm -f conftest.$ac_objext
17213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_header_compiler=yes
17225else
17226 echo "$as_me: failed program was:" >&5
17227sed 's/^/| /' conftest.$ac_ext >&5
17228
17229ac_header_compiler=no
17230fi
17231rm -f conftest.$ac_objext conftest.$ac_ext
17232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17233echo "${ECHO_T}$ac_header_compiler" >&6
17234
17235# Is the header present?
17236echo "$as_me:$LINENO: checking $ac_header presence" >&5
17237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17238cat >conftest.$ac_ext <<_ACEOF
17239#line $LINENO "configure"
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245#include <$ac_header>
17246_ACEOF
17247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } >/dev/null; then
17255 if test -s conftest.err; then
17256 ac_cpp_err=$ac_cxx_preproc_warn_flag
17257 else
17258 ac_cpp_err=
17259 fi
17260else
17261 ac_cpp_err=yes
17262fi
17263if test -z "$ac_cpp_err"; then
17264 ac_header_preproc=yes
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269 ac_header_preproc=no
17270fi
17271rm -f conftest.err conftest.$ac_ext
17272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17273echo "${ECHO_T}$ac_header_preproc" >&6
17274
17275# So? What about this header?
17276case $ac_header_compiler:$ac_header_preproc in
17277 yes:no )
17278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17282 (
17283 cat <<\_ASBOX
17284## ------------------------------------ ##
17285## Report this to bug-autoconf@gnu.org. ##
17286## ------------------------------------ ##
17287_ASBOX
17288 ) |
17289 sed "s/^/$as_me: WARNING: /" >&2
17290 ;;
17291 no:yes )
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298 (
17299 cat <<\_ASBOX
17300## ------------------------------------ ##
17301## Report this to bug-autoconf@gnu.org. ##
17302## ------------------------------------ ##
17303_ASBOX
17304 ) |
17305 sed "s/^/$as_me: WARNING: /" >&2
17306 ;;
17307esac
17308echo "$as_me:$LINENO: checking for $ac_header" >&5
17309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17310if eval "test \"\${$as_ac_Header+set}\" = set"; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17314fi
e6cc62c6
VS
17315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17317
90dd450c 17318fi
e6cc62c6
VS
17319if test `eval echo '${'$as_ac_Header'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17322_ACEOF
17323
90dd450c 17324fi
e6cc62c6 17325
21d1c967 17326done
10f2d63a 17327
8284b0c5 17328
21d1c967
GD
17329 if test "$ac_cv_header_iostream" = "yes" ; then
17330 :
17331 else
e6cc62c6 17332 cat >>confdefs.h <<\_ACEOF
21d1c967 17333#define wxUSE_IOSTREAMH 1
e6cc62c6 17334_ACEOF
788deba1 17335
90dd450c 17336 fi
ab9b9eab 17337
21d1c967 17338 ac_ext=c
21d1c967 17339ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17343
21d1c967 17344 fi
ab9b9eab 17345
52127426 17346
8284b0c5 17347
e6cc62c6
VS
17348 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17349echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17350if test "${wx_cv_cpp_bool+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17352else
e6cc62c6
VS
17353
17354
17355
17356 ac_ext=cc
5c6fa7d2 17357ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17361
8284b0c5 17362
e6cc62c6
VS
17363 cat >conftest.$ac_ext <<_ACEOF
17364#line $LINENO "configure"
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
21d1c967 17370
e6cc62c6
VS
17371
17372int
17373main ()
17374{
21d1c967
GD
17375
17376 bool b = true;
17377
17378 return 0;
e6cc62c6
VS
17379
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384rm -f conftest.$ac_objext
17385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -s conftest.$ac_objext'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396
21d1c967 17397 wx_cv_cpp_bool=yes
e6cc62c6 17398
698dcdb6 17399else
e6cc62c6
VS
17400 echo "$as_me: failed program was:" >&5
17401sed 's/^/| /' conftest.$ac_ext >&5
17402
17403
21d1c967 17404 wx_cv_cpp_bool=no
e6cc62c6
VS
17405
17406
698dcdb6 17407fi
e6cc62c6 17408rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17409
17410 ac_ext=c
21d1c967 17411ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17415
a0b9e27f 17416
e6cc62c6
VS
17417fi
17418echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17419echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17420
17421 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17422 cat >>confdefs.h <<\_ACEOF
21d1c967 17423#define HAVE_BOOL 1
e6cc62c6 17424_ACEOF
ab9b9eab 17425
21d1c967
GD
17426 fi
17427
52127426 17428
8284b0c5 17429
e6cc62c6
VS
17430 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17431echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17432if test "${wx_cv_explicit+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17434else
e6cc62c6
VS
17435
17436
17437
17438 ac_ext=cc
5c6fa7d2 17439ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17443
8284b0c5 17444
e6cc62c6
VS
17445 cat >conftest.$ac_ext <<_ACEOF
17446#line $LINENO "configure"
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
986ecc86
VZ
17452
17453 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17454
17455int
17456main ()
17457{
986ecc86
VZ
17458
17459 return 0;
e6cc62c6
VS
17460
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext
17466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467 (eval $ac_compile) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477
17478 cat >conftest.$ac_ext <<_ACEOF
17479#line $LINENO "configure"
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
986ecc86
VZ
17485
17486 class Foo { public: explicit Foo(int) {} };
17487 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17488
17489int
17490main ()
17491{
986ecc86
VZ
17492
17493 TakeFoo(17);
17494 return 0;
e6cc62c6
VS
17495
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500rm -f conftest.$ac_objext
17501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
986ecc86
VZ
17512 wx_cv_explicit=no
17513else
e6cc62c6
VS
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517wx_cv_explicit=yes
17518
986ecc86 17519fi
e6cc62c6
VS
17520rm -f conftest.$ac_objext conftest.$ac_ext
17521
986ecc86 17522else
e6cc62c6
VS
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526wx_cv_explicit=no
17527
986ecc86 17528fi
e6cc62c6 17529rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17530
17531 ac_ext=c
986ecc86 17532ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17535ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17536
a0b9e27f 17537
e6cc62c6
VS
17538fi
17539echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17540echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17541
17542 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17543 cat >>confdefs.h <<\_ACEOF
986ecc86 17544#define HAVE_EXPLICIT 1
e6cc62c6 17545_ACEOF
986ecc86
VZ
17546
17547 fi
17548
8284b0c5 17549
e6cc62c6
VS
17550echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17551echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17552if test "${ac_cv_cxx_const_cast+set}" = set; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17554else
521196a2 17555
521196a2 17556
e6cc62c6
VS
17557 ac_ext=cc
17558ac_cpp='$CXXCPP $CPPFLAGS'
17559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17562
17563 cat >conftest.$ac_ext <<_ACEOF
17564#line $LINENO "configure"
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
17570
17571int
17572main ()
17573{
521196a2 17574int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext
17580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -s conftest.$ac_objext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
521196a2
MB
17591 ac_cv_cxx_const_cast=yes
17592else
e6cc62c6
VS
17593 echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
17596ac_cv_cxx_const_cast=no
521196a2 17597fi
e6cc62c6 17598rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17599 ac_ext=c
521196a2 17600ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17604
17605
17606fi
e6cc62c6
VS
17607echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17608echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17609if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17610
17611cat >>confdefs.h <<\_ACEOF
17612#define HAVE_CONST_CAST
17613_ACEOF
521196a2
MB
17614
17615fi
17616
17617
e87b7833
MB
17618if test "$wxUSE_STL" = "yes"; then
17619 ac_ext=cc
17620ac_cpp='$CXXCPP $CPPFLAGS'
17621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17624
17625
17626 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17627echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17628 cat >conftest.$ac_ext <<_ACEOF
17629#line $LINENO "configure"
17630/* confdefs.h. */
17631_ACEOF
17632cat confdefs.h >>conftest.$ac_ext
17633cat >>conftest.$ac_ext <<_ACEOF
17634/* end confdefs.h. */
17635#include <string>
17636 #include <functional>
17637 #include <algorithm>
17638 #include <vector>
17639 #include <list>
17640int
17641main ()
17642{
17643std::vector<int> moo;
17644 std::list<int> foo;
17645 std::vector<int>::iterator it =
17646 std::find_if(moo.begin(), moo.end(),
17647 std::bind2nd(std::less<int>(), 3));
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext
17653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -s conftest.$ac_objext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 echo "$as_me:$LINENO: result: yes" >&5
17665echo "${ECHO_T}yes" >&6
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670echo "$as_me:$LINENO: result: no" >&5
17671echo "${ECHO_T}no" >&6
17672 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17673echo "$as_me: error: Basic STL functionality missing" >&2;}
17674 { (exit 1); exit 1; }; }
17675fi
17676rm -f conftest.$ac_objext conftest.$ac_ext
17677
17678 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17679echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17680 cat >conftest.$ac_ext <<_ACEOF
17681#line $LINENO "configure"
17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687#include <string>
17688int
17689main ()
17690{
17691std::wstring foo;
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext
17697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698 (eval $ac_compile) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 echo "$as_me:$LINENO: result: yes" >&5
17709echo "${ECHO_T}yes" >&6
17710 cat >>confdefs.h <<\_ACEOF
17711#define HAVE_STD_WSTRING 1
17712_ACEOF
17713
17714else
17715 echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
17717
17718echo "$as_me:$LINENO: result: no" >&5
17719echo "${ECHO_T}no" >&6
17720fi
17721rm -f conftest.$ac_objext conftest.$ac_ext
17722
17723 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17724echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17725 cat >conftest.$ac_ext <<_ACEOF
17726#line $LINENO "configure"
17727/* confdefs.h. */
17728_ACEOF
17729cat confdefs.h >>conftest.$ac_ext
17730cat >>conftest.$ac_ext <<_ACEOF
17731/* end confdefs.h. */
17732#include <string>
17733int
17734main ()
17735{
17736std::string foo, bar;
17737 foo.compare(bar);
17738 foo.compare(1, 1, bar);
17739 foo.compare(1, 1, bar, 1, 1);
17740 foo.compare("");
17741 foo.compare(1, 1, "");
17742 foo.compare(1, 1, "", 2);
17743 ;
17744 return 0;
17745}
17746_ACEOF
17747rm -f conftest.$ac_objext
17748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17749 (eval $ac_compile) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -s conftest.$ac_objext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 echo "$as_me:$LINENO: result: yes" >&5
17760echo "${ECHO_T}yes" >&6
17761 cat >>confdefs.h <<\_ACEOF
17762#define HAVE_STD_STRING_COMPARE 1
17763_ACEOF
17764
17765else
17766 echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769echo "$as_me:$LINENO: result: no" >&5
17770echo "${ECHO_T}no" >&6
17771fi
17772rm -f conftest.$ac_objext conftest.$ac_ext
17773
17774 ac_ext=c
17775ac_cpp='$CPP $CPPFLAGS'
17776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17778ac_compiler_gnu=$ac_cv_c_compiler_gnu
17779
17780fi
17781
8284b0c5 17782
21d1c967
GD
17783SEARCH_INCLUDE="\
17784 /usr/local/include \
17785 \
17786 /usr/Motif-1.2/include \
17787 /usr/Motif-2.1/include \
17788 \
17789 /usr/include/Motif1.2 \
17790 /opt/xpm/include/X11 \
17791 /opt/GBxpm/include/ \
17792 /opt/GBxpm/X11/include/ \
17793 \
17794 /usr/Motif1.2/include \
17795 /usr/dt/include \
17796 /usr/openwin/include \
17797 \
17798 /usr/include/Xm \
17799 \
17800 /usr/X11R6/include \
17801 /usr/X11R6.4/include \
17802 /usr/X11R5/include \
17803 /usr/X11R4/include \
17804 \
17805 /usr/include/X11R6 \
17806 /usr/include/X11R5 \
17807 /usr/include/X11R4 \
17808 \
17809 /usr/local/X11R6/include \
17810 /usr/local/X11R5/include \
17811 /usr/local/X11R4/include \
17812 \
17813 /usr/local/include/X11R6 \
17814 /usr/local/include/X11R5 \
17815 /usr/local/include/X11R4 \
17816 \
17817 /usr/X11/include \
17818 /usr/include/X11 \
17819 /usr/local/X11/include \
17820 /usr/local/include/X11 \
17821 \
17822 /usr/X386/include \
17823 /usr/x386/include \
17824 /usr/XFree86/include/X11 \
17825 \
17826 X:/XFree86/include \
17827 X:/XFree86/include/X11 \
17828 \
17829 /usr/include/gtk \
17830 /usr/local/include/gtk \
17831 /usr/include/glib \
17832 /usr/local/include/glib \
17833 \
17834 /usr/include/qt \
17835 /usr/local/include/qt \
17836 \
17837 /usr/include/windows \
17838 /usr/include/wine \
17839 /usr/local/include/wine \
17840 \
17841 /usr/unsupported/include \
17842 /usr/athena/include \
17843 /usr/local/x11r5/include \
17844 /usr/lpp/Xamples/include \
17845 \
2b5f62a0 17846 /usr/openwin/share/include"
21d1c967
GD
17847
17848SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17849
8284b0c5 17850
e6cc62c6 17851cat >confcache <<\_ACEOF
21d1c967
GD
17852# This file is a shell script that caches the results of configure
17853# tests run on this system so they can be shared between configure
e6cc62c6
VS
17854# scripts and configure runs, see configure's option --config-cache.
17855# It is not useful on other systems. If it contains results you don't
17856# want to keep, you may remove or edit it.
21d1c967 17857#
e6cc62c6
VS
17858# config.status only pays attention to the cache file if you give it
17859# the --recheck option to rerun configure.
21d1c967 17860#
e6cc62c6
VS
17861# `ac_cv_env_foo' variables (set or unset) will be overridden when
17862# loading this file, other *unset* `ac_cv_foo' will be assigned the
17863# following values.
17864
17865_ACEOF
17866
21d1c967
GD
17867# The following way of writing the cache mishandles newlines in values,
17868# but we know of no workaround that is simple, portable, and efficient.
17869# So, don't put newlines in cache variables' values.
17870# Ultrix sh set writes to stderr and can't be redirected directly,
17871# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17872{
17873 (set) 2>&1 |
17874 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17875 *ac_space=\ *)
17876 # `set' does not quote correctly, so add quotes (double-quote
17877 # substitution turns \\\\ into \\, and sed turns \\ into \).
17878 sed -n \
17879 "s/'/'\\\\''/g;
17880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17881 ;;
17882 *)
17883 # `set' quotes correctly as required by POSIX, so do not add quotes.
17884 sed -n \
17885 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17886 ;;
17887 esac;
17888} |
17889 sed '
17890 t clear
17891 : clear
17892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17893 t end
17894 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17895 : end' >>confcache
17896if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17897 if test -w $cache_file; then
e6cc62c6
VS
17898 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17899 cat confcache >$cache_file
21d1c967
GD
17900 else
17901 echo "not updating unwritable cache $cache_file"
17902 fi
ab9b9eab 17903fi
21d1c967 17904rm -f confcache
ab9b9eab 17905
fe0895cf 17906if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17907 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17908echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17909if test "${wx_cv_lib_glibc21+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911else
17912
17913 cat >conftest.$ac_ext <<_ACEOF
17914#line $LINENO "configure"
17915/* confdefs.h. */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h. */
21d1c967 17920#include <features.h>
e6cc62c6
VS
17921int
17922main ()
17923{
ab9b9eab 17924
21d1c967
GD
17925 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17926 #error not glibc2.1
17927 #endif
e6cc62c6
VS
17928
17929 ;
17930 return 0;
17931}
17932_ACEOF
17933rm -f conftest.$ac_objext
17934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -s conftest.$ac_objext'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945
21d1c967 17946 wx_cv_lib_glibc21=yes
e6cc62c6 17947
698dcdb6 17948else
e6cc62c6
VS
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952
21d1c967 17953 wx_cv_lib_glibc21=no
e6cc62c6
VS
17954
17955
247f5006 17956fi
e6cc62c6 17957rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17958
e6cc62c6
VS
17959fi
17960echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17961echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17962 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17963 cat >>confdefs.h <<\_ACEOF
21d1c967 17964#define wxHAVE_GLIBC2 1
e6cc62c6 17965_ACEOF
1e487827 17966
90dd450c 17967 fi
ab9b9eab
VZ
17968fi
17969
5c0a20c3
VZ
17970if test "x$wx_cv_lib_glibc21" = "xyes"; then
17971 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17972 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17973#define _GNU_SOURCE 1
e6cc62c6 17974_ACEOF
5c0a20c3
VZ
17975
17976 fi
17977fi
17978
8284b0c5
MB
17979
17980
21d1c967
GD
17981REGEX_INCLUDE=
17982if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17983 cat >>confdefs.h <<\_ACEOF
21d1c967 17984#define wxUSE_REGEX 1
e6cc62c6 17985_ACEOF
698dcdb6 17986
8284b0c5 17987
21d1c967 17988 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17989 if test "${ac_cv_header_regex_h+set}" = set; then
17990 echo "$as_me:$LINENO: checking for regex.h" >&5
17991echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17992if test "${ac_cv_header_regex_h+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994fi
17995echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17996echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17997else
17998 # Is the header compilable?
17999echo "$as_me:$LINENO: checking regex.h usability" >&5
18000echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18001cat >conftest.$ac_ext <<_ACEOF
18002#line $LINENO "configure"
18003/* confdefs.h. */
18004_ACEOF
18005cat confdefs.h >>conftest.$ac_ext
18006cat >>conftest.$ac_ext <<_ACEOF
18007/* end confdefs.h. */
18008$ac_includes_default
247f5006 18009#include <regex.h>
e6cc62c6
VS
18010_ACEOF
18011rm -f conftest.$ac_objext
18012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_header_compiler=yes
18024else
18025 echo "$as_me: failed program was:" >&5
18026sed 's/^/| /' conftest.$ac_ext >&5
18027
18028ac_header_compiler=no
18029fi
18030rm -f conftest.$ac_objext conftest.$ac_ext
18031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18032echo "${ECHO_T}$ac_header_compiler" >&6
18033
18034# Is the header present?
18035echo "$as_me:$LINENO: checking regex.h presence" >&5
18036echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18037cat >conftest.$ac_ext <<_ACEOF
18038#line $LINENO "configure"
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044#include <regex.h>
18045_ACEOF
18046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null; then
18054 if test -s conftest.err; then
18055 ac_cpp_err=$ac_c_preproc_warn_flag
18056 else
18057 ac_cpp_err=
18058 fi
18059else
18060 ac_cpp_err=yes
18061fi
18062if test -z "$ac_cpp_err"; then
18063 ac_header_preproc=yes
18064else
18065 echo "$as_me: failed program was:" >&5
18066sed 's/^/| /' conftest.$ac_ext >&5
18067
18068 ac_header_preproc=no
18069fi
18070rm -f conftest.err conftest.$ac_ext
18071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18072echo "${ECHO_T}$ac_header_preproc" >&6
18073
18074# So? What about this header?
18075case $ac_header_compiler:$ac_header_preproc in
18076 yes:no )
18077 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18078echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18080echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18081 (
18082 cat <<\_ASBOX
18083## ------------------------------------ ##
18084## Report this to bug-autoconf@gnu.org. ##
18085## ------------------------------------ ##
18086_ASBOX
18087 ) |
18088 sed "s/^/$as_me: WARNING: /" >&2
18089 ;;
18090 no:yes )
18091 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18092echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18094echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18096echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18097 (
18098 cat <<\_ASBOX
18099## ------------------------------------ ##
18100## Report this to bug-autoconf@gnu.org. ##
18101## ------------------------------------ ##
18102_ASBOX
18103 ) |
18104 sed "s/^/$as_me: WARNING: /" >&2
18105 ;;
18106esac
18107echo "$as_me:$LINENO: checking for regex.h" >&5
18108echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18109if test "${ac_cv_header_regex_h+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111else
18112 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18113fi
e6cc62c6
VS
18114echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18115echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18116
698dcdb6 18117fi
e6cc62c6
VS
18118if test $ac_cv_header_regex_h = yes; then
18119
18120for ac_func in regcomp
21d1c967 18121do
e6cc62c6
VS
18122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18123echo "$as_me:$LINENO: checking for $ac_func" >&5
18124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18125if eval "test \"\${$as_ac_var+set}\" = set"; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128 cat >conftest.$ac_ext <<_ACEOF
18129#line $LINENO "configure"
18130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
a0b9e27f 18135/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18139#ifdef __STDC__
18140# include <limits.h>
18141#else
18142# include <assert.h>
18143#endif
21d1c967 18144/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18145#ifdef __cplusplus
18146extern "C"
18147{
18148#endif
21d1c967 18149/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18150 builtin and then its argument prototype would still apply. */
18151char $ac_func ();
21d1c967
GD
18152/* The GNU C library defines this for functions which it implements
18153 to always fail with ENOSYS. Some functions are actually named
18154 something starting with __ and the normal name is an alias. */
18155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18156choke me
18157#else
e6cc62c6
VS
18158char (*f) () = $ac_func;
18159#endif
18160#ifdef __cplusplus
18161}
21d1c967 18162#endif
90dd450c 18163
e6cc62c6
VS
18164int
18165main ()
18166{
18167return f != $ac_func;
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext conftest$ac_exeext
18173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -s conftest$ac_exeext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 eval "$as_ac_var=yes"
18185else
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189eval "$as_ac_var=no"
18190fi
18191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18192fi
18193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18195if test `eval echo '${'$as_ac_var'}'` = yes; then
18196 cat >>confdefs.h <<_ACEOF
18197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18198_ACEOF
5c6fa7d2 18199
698dcdb6 18200fi
21d1c967
GD
18201done
18202
ab9b9eab
VZ
18203fi
18204
8284b0c5 18205
e6cc62c6 18206
21d1c967
GD
18207 if test "x$ac_cv_func_regcomp" != "xyes"; then
18208 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18209 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18210echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18211 { (exit 1); exit 1; }; }
21d1c967 18212 else
e6cc62c6
VS
18213 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18214echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18215 wxUSE_REGEX=builtin
18216 fi
18217 else
18218 wxUSE_REGEX=sys
18219 fi
ab9b9eab 18220 fi
90dd450c 18221
21d1c967
GD
18222 if test "$wxUSE_REGEX" = "builtin" ; then
18223 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18224 fi
21d1c967 18225fi
90dd450c 18226
8284b0c5 18227
21d1c967
GD
18228ZLIB_INCLUDE=
18229ZLIB_LINK=
18230if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18231 cat >>confdefs.h <<\_ACEOF
21d1c967 18232#define wxUSE_ZLIB 1
e6cc62c6 18233_ACEOF
21d1c967 18234
8284b0c5 18235
21d1c967 18236 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18237 if test "$USE_DARWIN" = 1; then
18238 system_zlib_h_ok="yes"
18239 else
e6cc62c6
VS
18240 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18241echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18242if test "${ac_cv_header_zlib_h+set}" = set; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18244else
18245 if test "$cross_compiling" = yes; then
89e6bf6d 18246 unset ac_cv_header_zlib_h
e6cc62c6 18247
d643b80e 18248else
e6cc62c6
VS
18249 cat >conftest.$ac_ext <<_ACEOF
18250#line $LINENO "configure"
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256
ef33c576 18257 #include <zlib.h>
d775acfa 18258 #include <stdio.h>
d643b80e 18259
d775acfa
VZ
18260 int main()
18261 {
18262 FILE *f=fopen("conftestval", "w");
18263 if (!f) exit(1);
18264 fprintf(f, "%s",
18265 ZLIB_VERSION[0] == '1' &&
18266 (ZLIB_VERSION[2] > '1' ||
18267 (ZLIB_VERSION[2] == '1' &&
18268 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18269 exit(0);
18270 }
e6cc62c6
VS
18271
18272_ACEOF
18273rm -f conftest$ac_exeext
18274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18275 (eval $ac_link) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
d643b80e
VZ
18284 ac_cv_header_zlib_h=`cat conftestval`
18285else
e6cc62c6
VS
18286 echo "$as_me: program exited with status $ac_status" >&5
18287echo "$as_me: failed program was:" >&5
18288sed 's/^/| /' conftest.$ac_ext >&5
18289
18290( exit $ac_status )
18291ac_cv_header_zlib_h=no
d643b80e 18292fi
e6cc62c6 18293rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18294fi
18295
d643b80e 18296fi
e6cc62c6
VS
18297echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18298echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18299 if test "${ac_cv_header_zlib_h+set}" = set; then
18300 echo "$as_me:$LINENO: checking for zlib.h" >&5
18301echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18302if test "${ac_cv_header_zlib_h+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304fi
18305echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18306echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18307else
e6cc62c6
VS
18308 # Is the header compilable?
18309echo "$as_me:$LINENO: checking zlib.h usability" >&5
18310echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18311cat >conftest.$ac_ext <<_ACEOF
18312#line $LINENO "configure"
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
18318$ac_includes_default
89e6bf6d 18319#include <zlib.h>
e6cc62c6
VS
18320_ACEOF
18321rm -f conftest.$ac_objext
18322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_header_compiler=yes
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
18338ac_header_compiler=no
18339fi
18340rm -f conftest.$ac_objext conftest.$ac_ext
18341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18342echo "${ECHO_T}$ac_header_compiler" >&6
18343
18344# Is the header present?
18345echo "$as_me:$LINENO: checking zlib.h presence" >&5
18346echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18347cat >conftest.$ac_ext <<_ACEOF
18348#line $LINENO "configure"
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
18354#include <zlib.h>
18355_ACEOF
18356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } >/dev/null; then
18364 if test -s conftest.err; then
18365 ac_cpp_err=$ac_c_preproc_warn_flag
18366 else
18367 ac_cpp_err=
18368 fi
18369else
18370 ac_cpp_err=yes
18371fi
18372if test -z "$ac_cpp_err"; then
18373 ac_header_preproc=yes
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 ac_header_preproc=no
18379fi
18380rm -f conftest.err conftest.$ac_ext
18381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18382echo "${ECHO_T}$ac_header_preproc" >&6
18383
18384# So? What about this header?
18385case $ac_header_compiler:$ac_header_preproc in
18386 yes:no )
18387 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18388echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18390echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18391 (
18392 cat <<\_ASBOX
18393## ------------------------------------ ##
18394## Report this to bug-autoconf@gnu.org. ##
18395## ------------------------------------ ##
18396_ASBOX
18397 ) |
18398 sed "s/^/$as_me: WARNING: /" >&2
18399 ;;
18400 no:yes )
18401 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18402echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18404echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18406echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18407 (
18408 cat <<\_ASBOX
18409## ------------------------------------ ##
18410## Report this to bug-autoconf@gnu.org. ##
18411## ------------------------------------ ##
18412_ASBOX
18413 ) |
18414 sed "s/^/$as_me: WARNING: /" >&2
18415 ;;
18416esac
18417echo "$as_me:$LINENO: checking for zlib.h" >&5
18418echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18419if test "${ac_cv_header_zlib_h+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18421else
e6cc62c6
VS
18422 ac_cv_header_zlib_h=$ac_header_preproc
18423fi
18424echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18425echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18426
89e6bf6d
VZ
18427fi
18428
d643b80e 18429
e6cc62c6 18430
d775acfa
VZ
18431 system_zlib_h_ok=$ac_cv_header_zlib_h
18432 fi
18433
18434 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18435 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18436echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18437if test "${ac_cv_lib_z_deflate+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18439else
e6cc62c6 18440 ac_check_lib_save_LIBS=$LIBS
21d1c967 18441LIBS="-lz $LIBS"
e6cc62c6
VS
18442cat >conftest.$ac_ext <<_ACEOF
18443#line $LINENO "configure"
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
18449
21d1c967 18450/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18451#ifdef __cplusplus
18452extern "C"
18453#endif
21d1c967 18454/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18455 builtin and then its argument prototype would still apply. */
18456char deflate ();
18457int
18458main ()
18459{
18460deflate ();
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext conftest$ac_exeext
18466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_lib_z_deflate=yes
18478else
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
18482ac_cv_lib_z_deflate=no
18483fi
18484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18485LIBS=$ac_check_lib_save_LIBS
18486fi
18487echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18488echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18489if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18490 ZLIB_LINK=" -lz"
a0b9e27f 18491fi
698dcdb6 18492
d643b80e 18493 fi
247f5006 18494
21d1c967
GD
18495 if test "x$ZLIB_LINK" = "x" ; then
18496 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18497 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18498echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18499 { (exit 1); exit 1; }; }
21d1c967 18500 else
e6cc62c6
VS
18501 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18502echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18503 wxUSE_ZLIB=builtin
18504 fi
18505 else
18506 wxUSE_ZLIB=sys
18507 fi
18508 fi
18509
18510 if test "$wxUSE_ZLIB" = "builtin" ; then
18511 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18512 fi
ab9b9eab
VZ
18513fi
18514
8284b0c5 18515
21d1c967
GD
18516PNG_INCLUDE=
18517PNG_LINK=
18518if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18519 cat >>confdefs.h <<\_ACEOF
21d1c967 18520#define wxUSE_LIBPNG 1
e6cc62c6 18521_ACEOF
90dd450c 18522
8284b0c5 18523
21d1c967 18524 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18525 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18526echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18527 wxUSE_LIBPNG=sys
18528 fi
90dd450c 18529
21d1c967 18530 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18531 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18532echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18533 wxUSE_LIBPNG=builtin
18534 fi
18535
18536 if test "$wxUSE_MGL" != 1 ; then
18537 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18538 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18539echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18540if test "${ac_cv_header_png_h+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18542else
18543 if test "$cross_compiling" = yes; then
89e6bf6d 18544 unset ac_cv_header_png_h
e6cc62c6 18545
5d3f766d 18546else
e6cc62c6
VS
18547 cat >conftest.$ac_ext <<_ACEOF
18548#line $LINENO "configure"
18549/* confdefs.h. */
18550_ACEOF
18551cat confdefs.h >>conftest.$ac_ext
18552cat >>conftest.$ac_ext <<_ACEOF
18553/* end confdefs.h. */
18554
ef33c576 18555 #include <png.h>
5d3f766d
VZ
18556 #include <stdio.h>
18557
18558 int main()
18559 {
18560 FILE *f=fopen("conftestval", "w");
18561 if (!f) exit(1);
18562 fprintf(f, "%s",
18563 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18564 exit(0);
18565 }
e6cc62c6
VS
18566
18567_ACEOF
18568rm -f conftest$ac_exeext
18569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18570 (eval $ac_link) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
5d3f766d
VZ
18579 ac_cv_header_png_h=`cat conftestval`
18580else
e6cc62c6
VS
18581 echo "$as_me: program exited with status $ac_status" >&5
18582echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585( exit $ac_status )
18586ac_cv_header_png_h=no
5d3f766d 18587fi
e6cc62c6 18588rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18589fi
18590
5d3f766d 18591fi
e6cc62c6
VS
18592echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18593echo "${ECHO_T}$ac_cv_header_png_h" >&6
18594 if test "${ac_cv_header_png_h+set}" = set; then
18595 echo "$as_me:$LINENO: checking for png.h" >&5
18596echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18597if test "${ac_cv_header_png_h+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599fi
18600echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18601echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18602else
e6cc62c6
VS
18603 # Is the header compilable?
18604echo "$as_me:$LINENO: checking png.h usability" >&5
18605echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18606cat >conftest.$ac_ext <<_ACEOF
18607#line $LINENO "configure"
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613$ac_includes_default
89e6bf6d 18614#include <png.h>
e6cc62c6
VS
18615_ACEOF
18616rm -f conftest.$ac_objext
18617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -s conftest.$ac_objext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_header_compiler=yes
18629else
18630 echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633ac_header_compiler=no
18634fi
18635rm -f conftest.$ac_objext conftest.$ac_ext
18636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18637echo "${ECHO_T}$ac_header_compiler" >&6
18638
18639# Is the header present?
18640echo "$as_me:$LINENO: checking png.h presence" >&5
18641echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18642cat >conftest.$ac_ext <<_ACEOF
18643#line $LINENO "configure"
18644/* confdefs.h. */
18645_ACEOF
18646cat confdefs.h >>conftest.$ac_ext
18647cat >>conftest.$ac_ext <<_ACEOF
18648/* end confdefs.h. */
18649#include <png.h>
18650_ACEOF
18651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18653 ac_status=$?
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } >/dev/null; then
18659 if test -s conftest.err; then
18660 ac_cpp_err=$ac_c_preproc_warn_flag
18661 else
18662 ac_cpp_err=
18663 fi
18664else
18665 ac_cpp_err=yes
18666fi
18667if test -z "$ac_cpp_err"; then
18668 ac_header_preproc=yes
18669else
18670 echo "$as_me: failed program was:" >&5
18671sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_header_preproc=no
18674fi
18675rm -f conftest.err conftest.$ac_ext
18676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18677echo "${ECHO_T}$ac_header_preproc" >&6
18678
18679# So? What about this header?
18680case $ac_header_compiler:$ac_header_preproc in
18681 yes:no )
18682 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18683echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18684 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18685echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18686 (
18687 cat <<\_ASBOX
18688## ------------------------------------ ##
18689## Report this to bug-autoconf@gnu.org. ##
18690## ------------------------------------ ##
18691_ASBOX
18692 ) |
18693 sed "s/^/$as_me: WARNING: /" >&2
18694 ;;
18695 no:yes )
18696 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18697echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18699echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18700 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18701echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18702 (
18703 cat <<\_ASBOX
18704## ------------------------------------ ##
18705## Report this to bug-autoconf@gnu.org. ##
18706## ------------------------------------ ##
18707_ASBOX
18708 ) |
18709 sed "s/^/$as_me: WARNING: /" >&2
18710 ;;
18711esac
18712echo "$as_me:$LINENO: checking for png.h" >&5
18713echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18714if test "${ac_cv_header_png_h+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18716else
e6cc62c6
VS
18717 ac_cv_header_png_h=$ac_header_preproc
18718fi
18719echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18720echo "${ECHO_T}$ac_cv_header_png_h" >&6
18721
89e6bf6d
VZ
18722fi
18723
5d3f766d 18724
e6cc62c6 18725
5d3f766d 18726 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18727 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18728echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18729if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18731else
e6cc62c6 18732 ac_check_lib_save_LIBS=$LIBS
21d1c967 18733LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18734cat >conftest.$ac_ext <<_ACEOF
18735#line $LINENO "configure"
18736/* confdefs.h. */
18737_ACEOF
18738cat confdefs.h >>conftest.$ac_ext
18739cat >>conftest.$ac_ext <<_ACEOF
18740/* end confdefs.h. */
18741
21d1c967 18742/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18743#ifdef __cplusplus
18744extern "C"
18745#endif
21d1c967 18746/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18747 builtin and then its argument prototype would still apply. */
18748char png_check_sig ();
18749int
18750main ()
18751{
18752png_check_sig ();
18753 ;
18754 return 0;
18755}
18756_ACEOF
18757rm -f conftest.$ac_objext conftest$ac_exeext
18758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18759 (eval $ac_link) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -s conftest$ac_exeext'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_png_png_check_sig=yes
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774ac_cv_lib_png_png_check_sig=no
18775fi
18776rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18777LIBS=$ac_check_lib_save_LIBS
18778fi
18779echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18780echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18781if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18782 PNG_LINK=" -lpng"
a0b9e27f 18783fi
90dd450c 18784
5d3f766d 18785 fi
247f5006 18786
21d1c967
GD
18787 if test "x$PNG_LINK" = "x" ; then
18788 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18789 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18790echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18791 { (exit 1); exit 1; }; }
21d1c967 18792 else
e6cc62c6
VS
18793 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18794echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18795 wxUSE_LIBPNG=builtin
18796 fi
18797 else
2b5f62a0 18798 wxUSE_LIBPNG=sys
21d1c967
GD
18799 fi
18800 fi
18801 fi
90dd450c 18802
21d1c967
GD
18803 if test "$wxUSE_LIBPNG" = "builtin" ; then
18804 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18805 fi
90dd450c 18806
21d1c967 18807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18808fi
18809
8284b0c5 18810
21d1c967
GD
18811JPEG_INCLUDE=
18812JPEG_LINK=
18813if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18814 cat >>confdefs.h <<\_ACEOF
21d1c967 18815#define wxUSE_LIBJPEG 1
e6cc62c6 18816_ACEOF
90dd450c 18817
8284b0c5 18818
21d1c967 18819 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18820 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18821echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18822 wxUSE_LIBJPEG=sys
18823 fi
90dd450c 18824
21d1c967
GD
18825 if test "$wxUSE_MGL" != 1 ; then
18826 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18827 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18828echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18829 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831else
18832 cat >conftest.$ac_ext <<_ACEOF
18833#line $LINENO "configure"
18834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
90dd450c 18839
21d1c967
GD
18840 #undef HAVE_STDLIB_H
18841 #include <stdio.h>
18842 #include <jpeglib.h>
90dd450c 18843
e6cc62c6
VS
18844int
18845main ()
18846{
18847
18848
18849 ;
18850 return 0;
18851}
18852_ACEOF
18853rm -f conftest.$ac_objext
18854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855 (eval $ac_compile) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -s conftest.$ac_objext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
21d1c967 18865 ac_cv_header_jpeglib_h=yes
90dd450c 18866else
e6cc62c6
VS
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870ac_cv_header_jpeglib_h=no
18871
90dd450c 18872fi
e6cc62c6
VS
18873rm -f conftest.$ac_objext conftest.$ac_ext
18874
90dd450c
VZ
18875fi
18876
e6cc62c6
VS
18877 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18878echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18879
21d1c967 18880 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18881 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18882echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18883if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18885else
e6cc62c6 18886 ac_check_lib_save_LIBS=$LIBS
21d1c967 18887LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18888cat >conftest.$ac_ext <<_ACEOF
18889#line $LINENO "configure"
18890/* confdefs.h. */
18891_ACEOF
18892cat confdefs.h >>conftest.$ac_ext
18893cat >>conftest.$ac_ext <<_ACEOF
18894/* end confdefs.h. */
18895
21d1c967 18896/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18897#ifdef __cplusplus
18898extern "C"
18899#endif
21d1c967 18900/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18901 builtin and then its argument prototype would still apply. */
18902char jpeg_read_header ();
18903int
18904main ()
18905{
18906jpeg_read_header ();
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext conftest$ac_exeext
18912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913 (eval $ac_link) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -s conftest$ac_exeext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_lib_jpeg_jpeg_read_header=yes
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928ac_cv_lib_jpeg_jpeg_read_header=no
18929fi
18930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18931LIBS=$ac_check_lib_save_LIBS
18932fi
18933echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18934echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18935if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18936 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18937fi
18938
21d1c967 18939 fi
90dd450c 18940
21d1c967
GD
18941 if test "x$JPEG_LINK" = "x" ; then
18942 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18943 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18944echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18945 { (exit 1); exit 1; }; }
21d1c967 18946 else
e6cc62c6
VS
18947 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18948echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18949 wxUSE_LIBJPEG=builtin
18950 fi
18951 else
18952 wxUSE_LIBJPEG=sys
18953 fi
18954 fi
18955 fi
90dd450c 18956
21d1c967
GD
18957 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18958 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18959 fi
18960fi
90dd450c 18961
8284b0c5 18962
21d1c967
GD
18963TIFF_INCLUDE=
18964TIFF_LINK=
2b5f62a0 18965TIFF_PREREQ_LINKS=-lm
21d1c967 18966if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18967 cat >>confdefs.h <<\_ACEOF
21d1c967 18968#define wxUSE_LIBTIFF 1
e6cc62c6 18969_ACEOF
21d1c967 18970
8284b0c5 18971
21d1c967 18972 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18973 if test "$wxUSE_LIBJPEG" = "sys"; then
18974 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18975 fi
18976 if test "$wxUSE_ZLIB" = "sys"; then
18977 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18978 fi
e6cc62c6
VS
18979 if test "${ac_cv_header_tiffio_h+set}" = set; then
18980 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18981echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18982if test "${ac_cv_header_tiffio_h+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18984fi
18985echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18986echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18987else
18988 # Is the header compilable?
18989echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18990echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18991cat >conftest.$ac_ext <<_ACEOF
18992#line $LINENO "configure"
18993/* confdefs.h. */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h. */
18998$ac_includes_default
247f5006 18999#include <tiffio.h>
e6cc62c6
VS
19000_ACEOF
19001rm -f conftest.$ac_objext
19002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19003 (eval $ac_compile) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -s conftest.$ac_objext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_header_compiler=yes
19014else
19015 echo "$as_me: failed program was:" >&5
19016sed 's/^/| /' conftest.$ac_ext >&5
19017
19018ac_header_compiler=no
19019fi
19020rm -f conftest.$ac_objext conftest.$ac_ext
19021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19022echo "${ECHO_T}$ac_header_compiler" >&6
19023
19024# Is the header present?
19025echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19026echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19027cat >conftest.$ac_ext <<_ACEOF
19028#line $LINENO "configure"
19029/* confdefs.h. */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h. */
19034#include <tiffio.h>
19035_ACEOF
19036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } >/dev/null; then
19044 if test -s conftest.err; then
19045 ac_cpp_err=$ac_c_preproc_warn_flag
19046 else
19047 ac_cpp_err=
19048 fi
19049else
19050 ac_cpp_err=yes
19051fi
19052if test -z "$ac_cpp_err"; then
19053 ac_header_preproc=yes
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 ac_header_preproc=no
19059fi
19060rm -f conftest.err conftest.$ac_ext
19061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19062echo "${ECHO_T}$ac_header_preproc" >&6
19063
19064# So? What about this header?
19065case $ac_header_compiler:$ac_header_preproc in
19066 yes:no )
19067 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19068echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19070echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19071 (
19072 cat <<\_ASBOX
19073## ------------------------------------ ##
19074## Report this to bug-autoconf@gnu.org. ##
19075## ------------------------------------ ##
19076_ASBOX
19077 ) |
19078 sed "s/^/$as_me: WARNING: /" >&2
19079 ;;
19080 no:yes )
19081 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19082echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19083 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19084echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19085 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19086echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19087 (
19088 cat <<\_ASBOX
19089## ------------------------------------ ##
19090## Report this to bug-autoconf@gnu.org. ##
19091## ------------------------------------ ##
19092_ASBOX
19093 ) |
19094 sed "s/^/$as_me: WARNING: /" >&2
19095 ;;
19096esac
19097echo "$as_me:$LINENO: checking for tiffio.h" >&5
19098echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19099if test "${ac_cv_header_tiffio_h+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19103fi
e6cc62c6
VS
19104echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19105echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19106
21d1c967 19107fi
e6cc62c6 19108if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19109
19110 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19111echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19112if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19114else
e6cc62c6 19115 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19116LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19117cat >conftest.$ac_ext <<_ACEOF
19118#line $LINENO "configure"
19119/* confdefs.h. */
19120_ACEOF
19121cat confdefs.h >>conftest.$ac_ext
19122cat >>conftest.$ac_ext <<_ACEOF
19123/* end confdefs.h. */
19124
ab9b9eab 19125/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19126#ifdef __cplusplus
19127extern "C"
19128#endif
ab9b9eab 19129/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19130 builtin and then its argument prototype would still apply. */
19131char TIFFError ();
19132int
19133main ()
19134{
19135TIFFError ();
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext conftest$ac_exeext
19141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19142 (eval $ac_link) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -s conftest$ac_exeext'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_tiff_TIFFError=yes
19153else
19154 echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157ac_cv_lib_tiff_TIFFError=no
19158fi
19159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19160LIBS=$ac_check_lib_save_LIBS
19161fi
19162echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19163echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19164if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19165 TIFF_LINK=" -ltiff"
a0b9e27f 19166fi
cd6d6d5b 19167
e6cc62c6 19168
0e012a93 19169
a0b9e27f 19170fi
8284b0c5 19171
247f5006 19172
e6cc62c6 19173
21d1c967
GD
19174 if test "x$TIFF_LINK" = "x" ; then
19175 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19176 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19177echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19178 { (exit 1); exit 1; }; }
90dd450c 19179 else
e6cc62c6
VS
19180 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19181echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19182 wxUSE_LIBTIFF=builtin
d8356fa3 19183 fi
d8356fa3 19184 else
21d1c967 19185 wxUSE_LIBTIFF=sys
d8356fa3 19186 fi
21d1c967 19187 fi
d8356fa3 19188
21d1c967
GD
19189 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19190 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19191 fi
21d1c967 19192fi
10f2d63a 19193
8284b0c5 19194
672abd7a 19195if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19196 wxUSE_XML=yes
672abd7a
VS
19197 cat >>confdefs.h <<\_ACEOF
19198#define wxUSE_EXPAT 1
19199_ACEOF
19200
19201 cat >>confdefs.h <<\_ACEOF
19202#define wxUSE_XML 1
19203_ACEOF
19204
19205
19206 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19207 if test "${ac_cv_header_expat_h+set}" = set; then
19208 echo "$as_me:$LINENO: checking for expat.h" >&5
19209echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19210if test "${ac_cv_header_expat_h+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212fi
19213echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19214echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19215else
19216 # Is the header compilable?
19217echo "$as_me:$LINENO: checking expat.h usability" >&5
19218echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19219cat >conftest.$ac_ext <<_ACEOF
19220#line $LINENO "configure"
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226$ac_includes_default
19227#include <expat.h>
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -s conftest.$ac_objext'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 ac_header_compiler=yes
19242else
19243 echo "$as_me: failed program was:" >&5
19244sed 's/^/| /' conftest.$ac_ext >&5
19245
19246ac_header_compiler=no
19247fi
19248rm -f conftest.$ac_objext conftest.$ac_ext
19249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19250echo "${ECHO_T}$ac_header_compiler" >&6
19251
19252# Is the header present?
19253echo "$as_me:$LINENO: checking expat.h presence" >&5
19254echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19255cat >conftest.$ac_ext <<_ACEOF
19256#line $LINENO "configure"
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262#include <expat.h>
19263_ACEOF
19264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } >/dev/null; then
19272 if test -s conftest.err; then
19273 ac_cpp_err=$ac_c_preproc_warn_flag
19274 else
19275 ac_cpp_err=
19276 fi
19277else
19278 ac_cpp_err=yes
19279fi
19280if test -z "$ac_cpp_err"; then
19281 ac_header_preproc=yes
19282else
19283 echo "$as_me: failed program was:" >&5
19284sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 ac_header_preproc=no
19287fi
19288rm -f conftest.err conftest.$ac_ext
19289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19290echo "${ECHO_T}$ac_header_preproc" >&6
19291
19292# So? What about this header?
19293case $ac_header_compiler:$ac_header_preproc in
19294 yes:no )
19295 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19296echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19298echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19299 (
19300 cat <<\_ASBOX
19301## ------------------------------------ ##
19302## Report this to bug-autoconf@gnu.org. ##
19303## ------------------------------------ ##
19304_ASBOX
19305 ) |
19306 sed "s/^/$as_me: WARNING: /" >&2
19307 ;;
19308 no:yes )
19309 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19310echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19312echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19314echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19315 (
19316 cat <<\_ASBOX
19317## ------------------------------------ ##
19318## Report this to bug-autoconf@gnu.org. ##
19319## ------------------------------------ ##
19320_ASBOX
19321 ) |
19322 sed "s/^/$as_me: WARNING: /" >&2
19323 ;;
19324esac
19325echo "$as_me:$LINENO: checking for expat.h" >&5
19326echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19327if test "${ac_cv_header_expat_h+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329else
19330 ac_cv_header_expat_h=$ac_header_preproc
19331fi
19332echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19333echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19334
19335fi
5f0b6dff
VS
19336if test $ac_cv_header_expat_h = yes; then
19337 found_expat_h=1
19338fi
19339
19340
19341 if test "x$found_expat_h" = "x1"; then
19342 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19343echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19344if test "${wx_cv_expat_is_not_broken+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347
19348
672abd7a 19349
5f0b6dff
VS
19350 ac_ext=cc
19351ac_cpp='$CXXCPP $CPPFLAGS'
19352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19355
19356 cat >conftest.$ac_ext <<_ACEOF
19357#line $LINENO "configure"
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363#include <expat.h>
19364int
19365main ()
19366{
672abd7a 19367
5f0b6dff
VS
19368 ;
19369 return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374 (eval $ac_compile) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 wx_cv_expat_is_not_broken=yes
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389wx_cv_expat_is_not_broken=no
19390
19391fi
19392rm -f conftest.$ac_objext conftest.$ac_ext
19393 ac_ext=c
19394ac_cpp='$CPP $CPPFLAGS'
19395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397ac_compiler_gnu=$ac_cv_c_compiler_gnu
19398
19399
19400
19401fi
19402echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19403echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19404 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19405 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19406echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19407if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19409else
19410 ac_check_lib_save_LIBS=$LIBS
19411LIBS="-lexpat $LIBS"
19412cat >conftest.$ac_ext <<_ACEOF
19413#line $LINENO "configure"
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419
19420/* Override any gcc2 internal prototype to avoid an error. */
19421#ifdef __cplusplus
19422extern "C"
19423#endif
19424/* We use char because int might match the return type of a gcc2
19425 builtin and then its argument prototype would still apply. */
19426char XML_ParserCreate ();
19427int
19428main ()
19429{
19430XML_ParserCreate ();
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext conftest$ac_exeext
19436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19437 (eval $ac_link) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -s conftest$ac_exeext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 ac_cv_lib_expat_XML_ParserCreate=yes
19448else
19449 echo "$as_me: failed program was:" >&5
19450sed 's/^/| /' conftest.$ac_ext >&5
19451
19452ac_cv_lib_expat_XML_ParserCreate=no
19453fi
19454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19455LIBS=$ac_check_lib_save_LIBS
19456fi
19457echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19458echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19459if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19460 EXPAT_LINK=" -lexpat"
19461fi
19462
5f0b6dff 19463 fi
672abd7a
VS
19464 fi
19465 if test "x$EXPAT_LINK" = "x" ; then
19466 if test "$wxUSE_EXPAT" = "sys" ; then
19467 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19468echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19469 { (exit 1); exit 1; }; }
19470 else
19471 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19472echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19473 wxUSE_EXPAT=builtin
19474 fi
19475 else
19476 wxUSE_EXPAT=sys
19477 fi
19478 fi
19479 if test "$wxUSE_EXPAT" = "builtin" ; then
19480
19481
19482subdirs="$subdirs src/expat"
19483
19484 fi
19485fi
19486
19487
19488
21d1c967 19489AFMINSTALL=
2b5f62a0 19490WIN32INSTALL=
90dd450c 19491
21d1c967
GD
19492TOOLKIT=
19493TOOLKIT_INCLUDE=
19494WIDGET_SET=
19495
19496if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19497
19498for ac_header in w32api.h
21d1c967 19499do
e6cc62c6
VS
19500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19501if eval "test \"\${$as_ac_Header+set}\" = set"; then
19502 echo "$as_me:$LINENO: checking for $ac_header" >&5
19503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19504if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19506fi
19507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19509else
19510 # Is the header compilable?
19511echo "$as_me:$LINENO: checking $ac_header usability" >&5
19512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19513cat >conftest.$ac_ext <<_ACEOF
19514#line $LINENO "configure"
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520$ac_includes_default
19521#include <$ac_header>
19522_ACEOF
19523rm -f conftest.$ac_objext
19524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19525 (eval $ac_compile) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -s conftest.$ac_objext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_header_compiler=yes
19536else
19537 echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540ac_header_compiler=no
19541fi
19542rm -f conftest.$ac_objext conftest.$ac_ext
19543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19544echo "${ECHO_T}$ac_header_compiler" >&6
19545
19546# Is the header present?
19547echo "$as_me:$LINENO: checking $ac_header presence" >&5
19548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19549cat >conftest.$ac_ext <<_ACEOF
19550#line $LINENO "configure"
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
19556#include <$ac_header>
19557_ACEOF
19558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } >/dev/null; then
19566 if test -s conftest.err; then
19567 ac_cpp_err=$ac_c_preproc_warn_flag
19568 else
19569 ac_cpp_err=
19570 fi
19571else
19572 ac_cpp_err=yes
19573fi
19574if test -z "$ac_cpp_err"; then
19575 ac_header_preproc=yes
19576else
19577 echo "$as_me: failed program was:" >&5
19578sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_header_preproc=no
19581fi
19582rm -f conftest.err conftest.$ac_ext
19583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19584echo "${ECHO_T}$ac_header_preproc" >&6
19585
19586# So? What about this header?
19587case $ac_header_compiler:$ac_header_preproc in
19588 yes:no )
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19593 (
19594 cat <<\_ASBOX
19595## ------------------------------------ ##
19596## Report this to bug-autoconf@gnu.org. ##
19597## ------------------------------------ ##
19598_ASBOX
19599 ) |
19600 sed "s/^/$as_me: WARNING: /" >&2
19601 ;;
19602 no:yes )
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19606echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19609 (
19610 cat <<\_ASBOX
19611## ------------------------------------ ##
19612## Report this to bug-autoconf@gnu.org. ##
19613## ------------------------------------ ##
19614_ASBOX
19615 ) |
19616 sed "s/^/$as_me: WARNING: /" >&2
19617 ;;
19618esac
19619echo "$as_me:$LINENO: checking for $ac_header" >&5
19620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19621if eval "test \"\${$as_ac_Header+set}\" = set"; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19623else
19624 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19625fi
e6cc62c6
VS
19626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628
21d1c967 19629fi
e6cc62c6
VS
19630if test `eval echo '${'$as_ac_Header'}'` = yes; then
19631 cat >>confdefs.h <<_ACEOF
19632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19633_ACEOF
19634
21d1c967 19635fi
e6cc62c6 19636
21d1c967 19637done
f79bd02d 19638
e6cc62c6
VS
19639 if test "${ac_cv_header_windows_h+set}" = set; then
19640 echo "$as_me:$LINENO: checking for windows.h" >&5
19641echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19642if test "${ac_cv_header_windows_h+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644fi
19645echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19646echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19647else
19648 # Is the header compilable?
19649echo "$as_me:$LINENO: checking windows.h usability" >&5
19650echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19651cat >conftest.$ac_ext <<_ACEOF
19652#line $LINENO "configure"
19653/* confdefs.h. */
19654_ACEOF
19655cat confdefs.h >>conftest.$ac_ext
19656cat >>conftest.$ac_ext <<_ACEOF
19657/* end confdefs.h. */
19658$ac_includes_default
247f5006 19659#include <windows.h>
e6cc62c6
VS
19660_ACEOF
19661rm -f conftest.$ac_objext
19662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_header_compiler=yes
19674else
19675 echo "$as_me: failed program was:" >&5
19676sed 's/^/| /' conftest.$ac_ext >&5
19677
19678ac_header_compiler=no
19679fi
19680rm -f conftest.$ac_objext conftest.$ac_ext
19681echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19682echo "${ECHO_T}$ac_header_compiler" >&6
19683
19684# Is the header present?
19685echo "$as_me:$LINENO: checking windows.h presence" >&5
19686echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19687cat >conftest.$ac_ext <<_ACEOF
19688#line $LINENO "configure"
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h. */
19694#include <windows.h>
19695_ACEOF
19696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19698 ac_status=$?
19699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } >/dev/null; then
19704 if test -s conftest.err; then
19705 ac_cpp_err=$ac_c_preproc_warn_flag
19706 else
19707 ac_cpp_err=
19708 fi
19709else
19710 ac_cpp_err=yes
19711fi
19712if test -z "$ac_cpp_err"; then
19713 ac_header_preproc=yes
19714else
19715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 ac_header_preproc=no
19719fi
19720rm -f conftest.err conftest.$ac_ext
19721echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19722echo "${ECHO_T}$ac_header_preproc" >&6
19723
19724# So? What about this header?
19725case $ac_header_compiler:$ac_header_preproc in
19726 yes:no )
19727 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19728echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19730echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19731 (
19732 cat <<\_ASBOX
19733## ------------------------------------ ##
19734## Report this to bug-autoconf@gnu.org. ##
19735## ------------------------------------ ##
19736_ASBOX
19737 ) |
19738 sed "s/^/$as_me: WARNING: /" >&2
19739 ;;
19740 no:yes )
19741 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19742echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19744echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19746echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19747 (
19748 cat <<\_ASBOX
19749## ------------------------------------ ##
19750## Report this to bug-autoconf@gnu.org. ##
19751## ------------------------------------ ##
19752_ASBOX
19753 ) |
19754 sed "s/^/$as_me: WARNING: /" >&2
19755 ;;
19756esac
19757echo "$as_me:$LINENO: checking for windows.h" >&5
19758echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19759if test "${ac_cv_header_windows_h+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761else
19762 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19763fi
e6cc62c6
VS
19764echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19765echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19766
90dd450c 19767fi
e6cc62c6 19768if test $ac_cv_header_windows_h = yes; then
21d1c967 19769 :
90dd450c 19770else
21d1c967 19771
e6cc62c6
VS
19772 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19773echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19774 { (exit 1); exit 1; }; }
19775
5c6fa7d2 19776fi
7b4a847f 19777
5c6fa7d2 19778
e6cc62c6 19779
b3dfbbc9 19780 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19781
7bb2947d
MB
19782 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19783 LIBS="$LIBS -loleacc"
19784 fi
19785
21d1c967
GD
19786 case "${host}" in
19787 *-*-cygwin* )
b3dfbbc9 19788 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19789 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19790 esac
f79bd02d 19791
8647bec6
RG
19792 if test "$wxUSE_ODBC" = "sys" ; then
19793 wxUSE_ODBC = "yes"
21d1c967 19794 fi
8647bec6
RG
19795 if test "$wxUSE_ODBC" = "yes" ; then
19796 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19797 cat >>confdefs.h <<\_ACEOF
8647bec6 19798#define wxUSE_ODBC 1
e6cc62c6 19799_ACEOF
f79bd02d 19800
8647bec6 19801 fi
e6cc62c6 19802
21d1c967
GD
19803 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19804 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19805
19806 WIN32INSTALL=win32install
f79bd02d 19807fi
f79bd02d 19808
21d1c967
GD
19809if test "$wxUSE_GUI" = "yes"; then
19810 USE_GUI=1
f79bd02d 19811
21d1c967 19812 GUI_TK_LIBRARY=
f79bd02d 19813
21d1c967
GD
19814 WXGTK12=
19815 WXGTK127=
19816 WXGTK20=
f79bd02d 19817
21d1c967
GD
19818 if test "$wxUSE_MSW" = 1 ; then
19819 TOOLKIT=MSW
19820 GUIDIST=MSW_DIST
ffef10f6
VS
19821
19822 case "${host}" in
19823 *-*-mingw32* )
19824 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19825 esac
f79bd02d
JS
19826 fi
19827
21d1c967 19828 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19829 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19830echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19831
19832 gtk_version_cached=1
e6cc62c6
VS
19833 if test "${wx_cv_lib_gtk+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19835else
e6cc62c6 19836
21d1c967 19837 gtk_version_cached=0
e6cc62c6
VS
19838 echo "$as_me:$LINENO: result: " >&5
19839echo "${ECHO_T}" >&6
f79bd02d 19840
21d1c967
GD
19841 GTK_MODULES=
19842 if test "$wxUSE_THREADS" = "yes"; then
19843 GTK_MODULES=gthread
19844 fi
f79bd02d 19845
2b5f62a0 19846 wx_cv_lib_gtk=
21d1c967
GD
19847 if test "x$wxUSE_GTK2" = "xyes"; then
19848 # Check whether --enable-gtktest or --disable-gtktest was given.
19849if test "${enable_gtktest+set}" = set; then
19850 enableval="$enable_gtktest"
e6cc62c6 19851
f79bd02d 19852else
21d1c967 19853 enable_gtktest=yes
e6cc62c6 19854fi;
f79bd02d 19855
21d1c967
GD
19856 pkg_config_args=gtk+-2.0
19857 for module in . $GTK_MODULES
19858 do
19859 case "$module" in
e6cc62c6 19860 gthread)
21d1c967
GD
19861 pkg_config_args="$pkg_config_args gthread-2.0"
19862 ;;
19863 esac
19864 done
19865
19866 no_gtk=""
f79bd02d 19867
21d1c967
GD
19868 # Extract the first word of "pkg-config", so it can be a program name with args.
19869set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19870echo "$as_me:$LINENO: checking for $ac_word" >&5
19871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19872if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19874else
e6cc62c6
VS
19875 case $PKG_CONFIG in
19876 [\\/]* | ?:[\\/]*)
21d1c967
GD
19877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19878 ;;
21d1c967 19879 *)
e6cc62c6
VS
19880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19881for as_dir in $PATH
19882do
19883 IFS=$as_save_IFS
19884 test -z "$as_dir" && as_dir=.
19885 for ac_exec_ext in '' $ac_executable_extensions; do
19886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19889 break 2
19890 fi
19891done
19892done
19893
21d1c967
GD
19894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19895 ;;
19896esac
f79bd02d 19897fi
e6cc62c6
VS
19898PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19899
21d1c967 19900if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19901 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19902echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19903else
e6cc62c6
VS
19904 echo "$as_me:$LINENO: result: no" >&5
19905echo "${ECHO_T}no" >&6
f79bd02d
JS
19906fi
19907
8284b0c5 19908
21d1c967
GD
19909 if test x$PKG_CONFIG != xno ; then
19910 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19911 :
19912 else
19913 echo *** pkg-config too old; version 0.7 or better required.
19914 no_gtk=yes
19915 PKG_CONFIG=no
19916 fi
19917 else
19918 no_gtk=yes
19919 fi
f79bd02d 19920
21d1c967 19921 min_gtk_version=2.0.0
e6cc62c6
VS
19922 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19923echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19924
21d1c967
GD
19925 if test x$PKG_CONFIG != xno ; then
19926 ## don't try to run the test against uninstalled libtool libs
19927 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19928 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19929 enable_gtktest=no
19930 fi
f79bd02d 19931
21d1c967
GD
19932 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19933 :
19934 else
19935 no_gtk=yes
19936 fi
19937 fi
f79bd02d 19938
21d1c967
GD
19939 if test x"$no_gtk" = x ; then
19940 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19941 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19942 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19944 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19946 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19947 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19948 if test "x$enable_gtktest" = "xyes" ; then
19949 ac_save_CFLAGS="$CFLAGS"
19950 ac_save_LIBS="$LIBS"
19951 CFLAGS="$CFLAGS $GTK_CFLAGS"
19952 LIBS="$GTK_LIBS $LIBS"
19953 rm -f conf.gtktest
19954 if test "$cross_compiling" = yes; then
19955 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19956else
e6cc62c6
VS
19957 cat >conftest.$ac_ext <<_ACEOF
19958#line $LINENO "configure"
19959/* confdefs.h. */
19960_ACEOF
19961cat confdefs.h >>conftest.$ac_ext
19962cat >>conftest.$ac_ext <<_ACEOF
19963/* end confdefs.h. */
f79bd02d 19964
21d1c967
GD
19965#include <gtk/gtk.h>
19966#include <stdio.h>
19967#include <stdlib.h>
f79bd02d 19968
e6cc62c6 19969int
21d1c967
GD
19970main ()
19971{
19972 int major, minor, micro;
19973 char *tmp_version;
f79bd02d 19974
21d1c967 19975 system ("touch conf.gtktest");
f79bd02d 19976
21d1c967
GD
19977 /* HP/UX 9 (%@#!) writes to sscanf strings */
19978 tmp_version = g_strdup("$min_gtk_version");
19979 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19980 printf("%s, bad version string\n", "$min_gtk_version");
19981 exit(1);
19982 }
f79bd02d 19983
21d1c967
GD
19984 if ((gtk_major_version != $gtk_config_major_version) ||
19985 (gtk_minor_version != $gtk_config_minor_version) ||
19986 (gtk_micro_version != $gtk_config_micro_version))
19987 {
e6cc62c6 19988 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19989 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19990 gtk_major_version, gtk_minor_version, gtk_micro_version);
19991 printf ("*** was found! If pkg-config was correct, then it is best\n");
19992 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19993 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19994 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19995 printf("*** required on your system.\n");
19996 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19997 printf("*** to point to the correct configuration files\n");
e6cc62c6 19998 }
21d1c967
GD
19999 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20000 (gtk_minor_version != GTK_MINOR_VERSION) ||
20001 (gtk_micro_version != GTK_MICRO_VERSION))
20002 {
20003 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20004 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20005 printf("*** library (version %d.%d.%d)\n",
20006 gtk_major_version, gtk_minor_version, gtk_micro_version);
20007 }
20008 else
20009 {
20010 if ((gtk_major_version > major) ||
20011 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20012 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20013 {
20014 return 0;
20015 }
20016 else
20017 {
20018 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20019 gtk_major_version, gtk_minor_version, gtk_micro_version);
20020 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20021 major, minor, micro);
20022 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20023 printf("***\n");
20024 printf("*** If you have already installed a sufficiently new version, this error\n");
20025 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20026 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20027 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20028 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20029 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20030 printf("*** so that the correct libraries are found at run-time))\n");
20031 }
20032 }
20033 return 1;
20034}
f79bd02d 20035
e6cc62c6
VS
20036_ACEOF
20037rm -f conftest$ac_exeext
20038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
21d1c967 20048 :
f79bd02d 20049else
e6cc62c6
VS
20050 echo "$as_me: program exited with status $ac_status" >&5
20051echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054( exit $ac_status )
20055no_gtk=yes
f79bd02d 20056fi
e6cc62c6 20057rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20058fi
21d1c967
GD
20059 CFLAGS="$ac_save_CFLAGS"
20060 LIBS="$ac_save_LIBS"
20061 fi
20062 fi
20063 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20064 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20065echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20066 wx_cv_lib_gtk=2.0
21d1c967 20067 else
e6cc62c6
VS
20068 echo "$as_me:$LINENO: result: no" >&5
20069echo "${ECHO_T}no" >&6
21d1c967
GD
20070 if test "$PKG_CONFIG" = "no" ; then
20071 echo "*** A new enough version of pkg-config was not found."
20072 echo "*** See http://pkgconfig.sourceforge.net"
20073 else
20074 if test -f conf.gtktest ; then
20075 :
20076 else
20077 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20078 ac_save_CFLAGS="$CFLAGS"
20079 ac_save_LIBS="$LIBS"
21d1c967
GD
20080 CFLAGS="$CFLAGS $GTK_CFLAGS"
20081 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20082 cat >conftest.$ac_ext <<_ACEOF
20083#line $LINENO "configure"
20084/* confdefs.h. */
20085_ACEOF
20086cat confdefs.h >>conftest.$ac_ext
20087cat >>conftest.$ac_ext <<_ACEOF
20088/* end confdefs.h. */
21d1c967
GD
20089
20090#include <gtk/gtk.h>
20091#include <stdio.h>
f79bd02d 20092
e6cc62c6
VS
20093int
20094main ()
20095{
20096 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20097 ;
20098 return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext conftest$ac_exeext
20102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103 (eval $ac_link) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -s conftest$ac_exeext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
21d1c967
GD
20113 echo "*** The test program compiled, but did not run. This usually means"
20114 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20115 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20116 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20117 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20118 echo "*** is required on your system"
20119 echo "***"
20120 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20121 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20122else
e6cc62c6
VS
20123 echo "$as_me: failed program was:" >&5
20124sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20127 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20128fi
e6cc62c6 20129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20130 CFLAGS="$ac_save_CFLAGS"
20131 LIBS="$ac_save_LIBS"
20132 fi
20133 fi
20134 GTK_CFLAGS=""
20135 GTK_LIBS=""
20136 :
20137 fi
e6cc62c6
VS
20138
20139
21d1c967 20140 rm -f conf.gtktest
f79bd02d 20141
2b5f62a0 20142 else
e6cc62c6
VS
20143
20144# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20145if test "${with_gtk_prefix+set}" = set; then
20146 withval="$with_gtk_prefix"
20147 gtk_config_prefix="$withval"
20148else
20149 gtk_config_prefix=""
e6cc62c6 20150fi;
f79bd02d 20151
21d1c967
GD
20152# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20153if test "${with_gtk_exec_prefix+set}" = set; then
20154 withval="$with_gtk_exec_prefix"
20155 gtk_config_exec_prefix="$withval"
20156else
20157 gtk_config_exec_prefix=""
e6cc62c6 20158fi;
21d1c967
GD
20159# Check whether --enable-gtktest or --disable-gtktest was given.
20160if test "${enable_gtktest+set}" = set; then
20161 enableval="$enable_gtktest"
e6cc62c6 20162
21d1c967
GD
20163else
20164 enable_gtktest=yes
e6cc62c6 20165fi;
21d1c967
GD
20166
20167 for module in . $GTK_MODULES
20168 do
20169 case "$module" in
e6cc62c6 20170 gthread)
21d1c967
GD
20171 gtk_config_args="$gtk_config_args gthread"
20172 ;;
20173 esac
20174 done
20175
20176 if test x$gtk_config_exec_prefix != x ; then
20177 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20178 if test x${GTK_CONFIG+set} != xset ; then
20179 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20180 fi
20181 fi
20182 if test x$gtk_config_prefix != x ; then
20183 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20184 if test x${GTK_CONFIG+set} != xset ; then
20185 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20186 fi
20187 fi
20188
20189 # Extract the first word of "gtk-config", so it can be a program name with args.
20190set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20191echo "$as_me:$LINENO: checking for $ac_word" >&5
20192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20193if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20195else
e6cc62c6
VS
20196 case $GTK_CONFIG in
20197 [\\/]* | ?:[\\/]*)
21d1c967
GD
20198 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20199 ;;
21d1c967 20200 *)
e6cc62c6
VS
20201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20202for as_dir in $PATH
20203do
20204 IFS=$as_save_IFS
20205 test -z "$as_dir" && as_dir=.
20206 for ac_exec_ext in '' $ac_executable_extensions; do
20207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20208 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20210 break 2
20211 fi
20212done
20213done
20214
21d1c967
GD
20215 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20216 ;;
20217esac
20218fi
e6cc62c6
VS
20219GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20220
21d1c967 20221if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20222 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20223echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20224else
e6cc62c6
VS
20225 echo "$as_me:$LINENO: result: no" >&5
20226echo "${ECHO_T}no" >&6
21d1c967
GD
20227fi
20228
20229 min_gtk_version=1.2.7
e6cc62c6
VS
20230 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20231echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20232 no_gtk=""
20233 if test "$GTK_CONFIG" = "no" ; then
20234 no_gtk=yes
20235 else
20236 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20237 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20238 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20240 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20242 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20244 if test "x$enable_gtktest" = "xyes" ; then
20245 ac_save_CFLAGS="$CFLAGS"
20246 ac_save_LIBS="$LIBS"
20247 CFLAGS="$CFLAGS $GTK_CFLAGS"
20248 LIBS="$GTK_LIBS $LIBS"
20249 rm -f conf.gtktest
20250 if test "$cross_compiling" = yes; then
20251 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20252else
e6cc62c6
VS
20253 cat >conftest.$ac_ext <<_ACEOF
20254#line $LINENO "configure"
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
f79bd02d 20260
21d1c967
GD
20261#include <gtk/gtk.h>
20262#include <stdio.h>
20263#include <stdlib.h>
f79bd02d 20264
e6cc62c6 20265int
21d1c967
GD
20266main ()
20267{
20268 int major, minor, micro;
20269 char *tmp_version;
20270
20271 system ("touch conf.gtktest");
20272
20273 /* HP/UX 9 (%@#!) writes to sscanf strings */
20274 tmp_version = g_strdup("$min_gtk_version");
20275 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20276 printf("%s, bad version string\n", "$min_gtk_version");
20277 exit(1);
20278 }
90dd450c 20279
21d1c967
GD
20280 if ((gtk_major_version != $gtk_config_major_version) ||
20281 (gtk_minor_version != $gtk_config_minor_version) ||
20282 (gtk_micro_version != $gtk_config_micro_version))
20283 {
e6cc62c6 20284 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20285 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20286 gtk_major_version, gtk_minor_version, gtk_micro_version);
20287 printf ("*** was found! If gtk-config was correct, then it is best\n");
20288 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20289 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20290 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20291 printf("*** required on your system.\n");
20292 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20293 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20294 printf("*** before re-running configure\n");
e6cc62c6 20295 }
21d1c967
GD
20296#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20297 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20298 (gtk_minor_version != GTK_MINOR_VERSION) ||
20299 (gtk_micro_version != GTK_MICRO_VERSION))
20300 {
20301 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20302 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20303 printf("*** library (version %d.%d.%d)\n",
20304 gtk_major_version, gtk_minor_version, gtk_micro_version);
20305 }
20306#endif /* defined (GTK_MAJOR_VERSION) ... */
20307 else
20308 {
20309 if ((gtk_major_version > major) ||
20310 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20311 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20312 {
20313 return 0;
20314 }
20315 else
20316 {
20317 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20318 gtk_major_version, gtk_minor_version, gtk_micro_version);
20319 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20320 major, minor, micro);
20321 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20322 printf("***\n");
20323 printf("*** If you have already installed a sufficiently new version, this error\n");
20324 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20325 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20326 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20327 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20328 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20329 printf("*** so that the correct libraries are found at run-time))\n");
20330 }
20331 }
20332 return 1;
20333}
20334
e6cc62c6
VS
20335_ACEOF
20336rm -f conftest$ac_exeext
20337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20338 (eval $ac_link) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
21d1c967
GD
20347 :
20348else
e6cc62c6
VS
20349 echo "$as_me: program exited with status $ac_status" >&5
20350echo "$as_me: failed program was:" >&5
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
20353( exit $ac_status )
20354no_gtk=yes
21d1c967 20355fi
e6cc62c6 20356rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20357fi
21d1c967
GD
20358 CFLAGS="$ac_save_CFLAGS"
20359 LIBS="$ac_save_LIBS"
20360 fi
20361 fi
20362 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20363 echo "$as_me:$LINENO: result: yes" >&5
20364echo "${ECHO_T}yes" >&6
20365 wx_cv_lib_gtk=1.2.7
21d1c967 20366 else
e6cc62c6
VS
20367 echo "$as_me:$LINENO: result: no" >&5
20368echo "${ECHO_T}no" >&6
21d1c967
GD
20369 if test "$GTK_CONFIG" = "no" ; then
20370 echo "*** The gtk-config script installed by GTK could not be found"
20371 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20372 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20373 echo "*** full path to gtk-config."
20374 else
20375 if test -f conf.gtktest ; then
20376 :
20377 else
20378 echo "*** Could not run GTK test program, checking why..."
20379 CFLAGS="$CFLAGS $GTK_CFLAGS"
20380 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20381 cat >conftest.$ac_ext <<_ACEOF
20382#line $LINENO "configure"
20383/* confdefs.h. */
20384_ACEOF
20385cat confdefs.h >>conftest.$ac_ext
20386cat >>conftest.$ac_ext <<_ACEOF
20387/* end confdefs.h. */
21d1c967
GD
20388
20389#include <gtk/gtk.h>
20390#include <stdio.h>
20391
e6cc62c6
VS
20392int
20393main ()
20394{
20395 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20396 ;
20397 return 0;
20398}
20399_ACEOF
20400rm -f conftest.$ac_objext conftest$ac_exeext
20401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -s conftest$ac_exeext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
21d1c967
GD
20412 echo "*** The test program compiled, but did not run. This usually means"
20413 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20414 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20415 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20416 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20417 echo "*** is required on your system"
20418 echo "***"
20419 echo "*** If you have an old version installed, it is best to remove it, although"
20420 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20421 echo "***"
20422 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20423 echo "*** came with the system with the command"
20424 echo "***"
e6cc62c6 20425 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20426else
e6cc62c6
VS
20427 echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20431 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20432 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20433 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20434fi
e6cc62c6 20435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20436 CFLAGS="$ac_save_CFLAGS"
20437 LIBS="$ac_save_LIBS"
20438 fi
20439 fi
20440 GTK_CFLAGS=""
20441 GTK_LIBS=""
20442 :
20443 fi
e6cc62c6
VS
20444
20445
21d1c967
GD
20446 rm -f conf.gtktest
20447
21d1c967 20448
2b5f62a0 20449 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20450
20451# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20452if test "${with_gtk_prefix+set}" = set; then
20453 withval="$with_gtk_prefix"
20454 gtk_config_prefix="$withval"
20455else
20456 gtk_config_prefix=""
e6cc62c6 20457fi;
f79bd02d 20458
21d1c967
GD
20459# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20460if test "${with_gtk_exec_prefix+set}" = set; then
20461 withval="$with_gtk_exec_prefix"
20462 gtk_config_exec_prefix="$withval"
20463else
20464 gtk_config_exec_prefix=""
e6cc62c6 20465fi;
21d1c967
GD
20466# Check whether --enable-gtktest or --disable-gtktest was given.
20467if test "${enable_gtktest+set}" = set; then
20468 enableval="$enable_gtktest"
e6cc62c6 20469
90dd450c 20470else
21d1c967 20471 enable_gtktest=yes
e6cc62c6 20472fi;
21d1c967
GD
20473
20474 for module in . $GTK_MODULES
20475 do
20476 case "$module" in
e6cc62c6 20477 gthread)
21d1c967
GD
20478 gtk_config_args="$gtk_config_args gthread"
20479 ;;
20480 esac
20481 done
20482
20483 if test x$gtk_config_exec_prefix != x ; then
20484 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20485 if test x${GTK_CONFIG+set} != xset ; then
20486 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20487 fi
20488 fi
20489 if test x$gtk_config_prefix != x ; then
20490 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20491 if test x${GTK_CONFIG+set} != xset ; then
20492 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20493 fi
20494 fi
20495
20496 # Extract the first word of "gtk-config", so it can be a program name with args.
20497set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20498echo "$as_me:$LINENO: checking for $ac_word" >&5
20499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20500if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20502else
e6cc62c6
VS
20503 case $GTK_CONFIG in
20504 [\\/]* | ?:[\\/]*)
21d1c967
GD
20505 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20506 ;;
21d1c967 20507 *)
e6cc62c6
VS
20508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20509for as_dir in $PATH
20510do
20511 IFS=$as_save_IFS
20512 test -z "$as_dir" && as_dir=.
20513 for ac_exec_ext in '' $ac_executable_extensions; do
20514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20515 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20517 break 2
20518 fi
20519done
20520done
20521
21d1c967
GD
20522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20523 ;;
20524esac
20525fi
e6cc62c6
VS
20526GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20527
21d1c967 20528if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20529 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20530echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20531else
e6cc62c6
VS
20532 echo "$as_me:$LINENO: result: no" >&5
20533echo "${ECHO_T}no" >&6
21d1c967
GD
20534fi
20535
20536 min_gtk_version=1.2.3
e6cc62c6
VS
20537 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20538echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20539 no_gtk=""
20540 if test "$GTK_CONFIG" = "no" ; then
20541 no_gtk=yes
20542 else
20543 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20544 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20545 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20547 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20549 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20550 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20551 if test "x$enable_gtktest" = "xyes" ; then
20552 ac_save_CFLAGS="$CFLAGS"
20553 ac_save_LIBS="$LIBS"
20554 CFLAGS="$CFLAGS $GTK_CFLAGS"
20555 LIBS="$GTK_LIBS $LIBS"
20556 rm -f conf.gtktest
20557 if test "$cross_compiling" = yes; then
20558 echo $ac_n "cross compiling; assumed OK... $ac_c"
20559else
e6cc62c6
VS
20560 cat >conftest.$ac_ext <<_ACEOF
20561#line $LINENO "configure"
20562/* confdefs.h. */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h. */
21d1c967
GD
20567
20568#include <gtk/gtk.h>
20569#include <stdio.h>
20570#include <stdlib.h>
20571
e6cc62c6 20572int
21d1c967
GD
20573main ()
20574{
20575 int major, minor, micro;
20576 char *tmp_version;
20577
20578 system ("touch conf.gtktest");
20579
20580 /* HP/UX 9 (%@#!) writes to sscanf strings */
20581 tmp_version = g_strdup("$min_gtk_version");
20582 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20583 printf("%s, bad version string\n", "$min_gtk_version");
20584 exit(1);
20585 }
20586
20587 if ((gtk_major_version != $gtk_config_major_version) ||
20588 (gtk_minor_version != $gtk_config_minor_version) ||
20589 (gtk_micro_version != $gtk_config_micro_version))
20590 {
e6cc62c6 20591 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20592 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20593 gtk_major_version, gtk_minor_version, gtk_micro_version);
20594 printf ("*** was found! If gtk-config was correct, then it is best\n");
20595 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20596 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20597 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20598 printf("*** required on your system.\n");
20599 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20600 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20601 printf("*** before re-running configure\n");
e6cc62c6 20602 }
21d1c967
GD
20603#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20604 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20605 (gtk_minor_version != GTK_MINOR_VERSION) ||
20606 (gtk_micro_version != GTK_MICRO_VERSION))
20607 {
20608 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20609 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20610 printf("*** library (version %d.%d.%d)\n",
20611 gtk_major_version, gtk_minor_version, gtk_micro_version);
20612 }
20613#endif /* defined (GTK_MAJOR_VERSION) ... */
20614 else
20615 {
20616 if ((gtk_major_version > major) ||
20617 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20618 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20619 {
20620 return 0;
20621 }
20622 else
20623 {
20624 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20625 gtk_major_version, gtk_minor_version, gtk_micro_version);
20626 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20627 major, minor, micro);
20628 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20629 printf("***\n");
20630 printf("*** If you have already installed a sufficiently new version, this error\n");
20631 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20632 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20633 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20634 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20635 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20636 printf("*** so that the correct libraries are found at run-time))\n");
20637 }
20638 }
20639 return 1;
20640}
20641
e6cc62c6
VS
20642_ACEOF
20643rm -f conftest$ac_exeext
20644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645 (eval $ac_link) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
21d1c967
GD
20654 :
20655else
e6cc62c6
VS
20656 echo "$as_me: program exited with status $ac_status" >&5
20657echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660( exit $ac_status )
20661no_gtk=yes
21d1c967 20662fi
e6cc62c6 20663rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20664fi
21d1c967
GD
20665 CFLAGS="$ac_save_CFLAGS"
20666 LIBS="$ac_save_LIBS"
20667 fi
20668 fi
20669 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20670 echo "$as_me:$LINENO: result: yes" >&5
20671echo "${ECHO_T}yes" >&6
20672 wx_cv_lib_gtk=1.2.3
21d1c967 20673 else
e6cc62c6
VS
20674 echo "$as_me:$LINENO: result: no" >&5
20675echo "${ECHO_T}no" >&6
21d1c967
GD
20676 if test "$GTK_CONFIG" = "no" ; then
20677 echo "*** The gtk-config script installed by GTK could not be found"
20678 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20679 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20680 echo "*** full path to gtk-config."
20681 else
20682 if test -f conf.gtktest ; then
20683 :
20684 else
20685 echo "*** Could not run GTK test program, checking why..."
20686 CFLAGS="$CFLAGS $GTK_CFLAGS"
20687 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20688 cat >conftest.$ac_ext <<_ACEOF
20689#line $LINENO "configure"
20690/* confdefs.h. */
20691_ACEOF
20692cat confdefs.h >>conftest.$ac_ext
20693cat >>conftest.$ac_ext <<_ACEOF
20694/* end confdefs.h. */
21d1c967
GD
20695
20696#include <gtk/gtk.h>
20697#include <stdio.h>
f79bd02d 20698
e6cc62c6
VS
20699int
20700main ()
20701{
20702 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20703 ;
20704 return 0;
20705}
20706_ACEOF
20707rm -f conftest.$ac_objext conftest$ac_exeext
20708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20709 (eval $ac_link) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } &&
20713 { ac_try='test -s conftest$ac_exeext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
21d1c967
GD
20719 echo "*** The test program compiled, but did not run. This usually means"
20720 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20721 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20722 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20723 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20724 echo "*** is required on your system"
20725 echo "***"
20726 echo "*** If you have an old version installed, it is best to remove it, although"
20727 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20728 echo "***"
20729 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20730 echo "*** came with the system with the command"
20731 echo "***"
e6cc62c6 20732 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20733else
e6cc62c6
VS
20734 echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20738 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20739 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20740 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20741fi
e6cc62c6 20742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20743 CFLAGS="$ac_save_CFLAGS"
20744 LIBS="$ac_save_LIBS"
20745 fi
20746 fi
20747 GTK_CFLAGS=""
20748 GTK_LIBS=""
20749 :
20750 fi
e6cc62c6
VS
20751
20752
21d1c967 20753 rm -f conf.gtktest
f79bd02d 20754
2b5f62a0 20755 fi
21d1c967
GD
20756 fi
20757
20758 if test -z "$wx_cv_lib_gtk"; then
20759 wx_cv_lib_gtk=none
20760 else
20761 wx_cv_cflags_gtk=$GTK_CFLAGS
20762 wx_cv_libs_gtk=$GTK_LIBS
20763 fi
e6cc62c6
VS
20764
20765
5c6fa7d2 20766fi
52127426 20767
8284b0c5 20768
21d1c967 20769 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20770 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20771echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20772 fi
20773
20774 case "$wx_cv_lib_gtk" in
20775 2.0) WXGTK20=1
2b5f62a0 20776 TOOLKIT_VERSION=2
21d1c967
GD
20777 ;;
20778 1.2.7) WXGTK127=1
20779 WXGTK12=1
20780 ;;
20781 1.2.3) WXGTK12=1
20782 ;;
e6cc62c6
VS
20783 *) { { echo "$as_me:$LINENO: error:
20784Please check that gtk-config is in path, the directory
20785where GTK+ libraries are installed (returned by
20786'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20787equivalent variable and GTK+ is version 1.2.3 or above.
20788 " >&5
20789echo "$as_me: error:
247f5006
VZ
20790Please check that gtk-config is in path, the directory
20791where GTK+ libraries are installed (returned by
20792'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20793equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20794 " >&2;}
20795 { (exit 1); exit 1; }; }
21d1c967
GD
20796 ;;
20797 esac
20798
b13cd66e
VZ
20799 if test "$WXGTK20" = 1; then
20800 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20801
f09359cf
VS
20802 succeeded=no
20803
20804 if test -z "$PKG_CONFIG"; then
20805 # Extract the first word of "pkg-config", so it can be a program name with args.
20806set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20807echo "$as_me:$LINENO: checking for $ac_word" >&5
20808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20809if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20811else
e6cc62c6
VS
20812 case $PKG_CONFIG in
20813 [\\/]* | ?:[\\/]*)
f09359cf
VS
20814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20815 ;;
f09359cf 20816 *)
e6cc62c6
VS
20817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20818for as_dir in $PATH
20819do
20820 IFS=$as_save_IFS
20821 test -z "$as_dir" && as_dir=.
20822 for ac_exec_ext in '' $ac_executable_extensions; do
20823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20826 break 2
20827 fi
20828done
20829done
20830
f09359cf
VS
20831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20832 ;;
20833esac
20834fi
e6cc62c6
VS
20835PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20836
f09359cf 20837if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20838 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20839echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20840else
e6cc62c6
VS
20841 echo "$as_me:$LINENO: result: no" >&5
20842echo "${ECHO_T}no" >&6
f09359cf
VS
20843fi
20844
20845 fi
20846
20847 if test "$PKG_CONFIG" = "no" ; then
20848 echo "*** The pkg-config script could not be found. Make sure it is"
20849 echo "*** in your path, or set the PKG_CONFIG environment variable"
20850 echo "*** to the full path to pkg-config."
20851 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20852 else
20853 PKG_CONFIG_MIN_VERSION=0.9.0
20854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20855 echo "$as_me:$LINENO: checking for pangoft2" >&5
20856echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20857
20858 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20859 echo "$as_me:$LINENO: result: yes" >&5
20860echo "${ECHO_T}yes" >&6
f09359cf
VS
20861 succeeded=yes
20862
e6cc62c6
VS
20863 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20864echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20865 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20866 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20867echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20868
e6cc62c6
VS
20869 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20870echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20871 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20872 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20873echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20874 else
20875 PANGOFT2_CFLAGS=""
20876 PANGOFT2_LIBS=""
e6cc62c6 20877 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20878 ## do set a variable so people can do so.
20879 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20880
f09359cf
VS
20881 fi
20882
e6cc62c6
VS
20883
20884
f09359cf
VS
20885 else
20886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20888 fi
20889 fi
20890
20891 if test $succeeded = yes; then
e6cc62c6 20892
b13cd66e 20893 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20894 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20895
f09359cf 20896 else
e6cc62c6
VS
20897
20898 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20899echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20900 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20901
20902
f09359cf
VS
20903 fi
20904
b13cd66e 20905 fi
2b5f62a0
VZ
20906 else
20907 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20908 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20909echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20910 wxUSE_UNICODE=no
20911 fi
20912 fi
20913
20914 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20915
20916for ac_func in poll
2b5f62a0 20917do
e6cc62c6
VS
20918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20919echo "$as_me:$LINENO: checking for $ac_func" >&5
20920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20921if eval "test \"\${$as_ac_var+set}\" = set"; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923else
20924 cat >conftest.$ac_ext <<_ACEOF
20925#line $LINENO "configure"
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h. */
2b5f62a0 20931/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20932 which can conflict with char $ac_func (); below.
20933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20934 <limits.h> exists even on freestanding compilers. */
20935#ifdef __STDC__
20936# include <limits.h>
20937#else
20938# include <assert.h>
20939#endif
2b5f62a0 20940/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20941#ifdef __cplusplus
20942extern "C"
20943{
20944#endif
2b5f62a0 20945/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20946 builtin and then its argument prototype would still apply. */
20947char $ac_func ();
2b5f62a0
VZ
20948/* The GNU C library defines this for functions which it implements
20949 to always fail with ENOSYS. Some functions are actually named
20950 something starting with __ and the normal name is an alias. */
20951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20952choke me
20953#else
e6cc62c6
VS
20954char (*f) () = $ac_func;
20955#endif
20956#ifdef __cplusplus
20957}
2b5f62a0
VZ
20958#endif
20959
e6cc62c6
VS
20960int
20961main ()
20962{
20963return f != $ac_func;
20964 ;
20965 return 0;
20966}
20967_ACEOF
20968rm -f conftest.$ac_objext conftest$ac_exeext
20969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -s conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 eval "$as_ac_var=yes"
20981else
20982 echo "$as_me: failed program was:" >&5
20983sed 's/^/| /' conftest.$ac_ext >&5
20984
20985eval "$as_ac_var=no"
20986fi
20987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20988fi
20989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20991if test `eval echo '${'$as_ac_var'}'` = yes; then
20992 cat >>confdefs.h <<_ACEOF
20993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20994_ACEOF
2b5f62a0 20995
2b5f62a0
VZ
20996fi
20997done
20998
f09359cf
VS
20999 fi
21000
21d1c967 21001 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21002 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21003
21004 AFMINSTALL=afminstall
21005 TOOLKIT=GTK
21006 GUIDIST=GTK_DIST
21007
e6cc62c6
VS
21008 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21009echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21010if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21012else
e6cc62c6 21013 ac_check_lib_save_LIBS=$LIBS
21d1c967 21014LIBS="-lgdk $LIBS"
e6cc62c6
VS
21015cat >conftest.$ac_ext <<_ACEOF
21016#line $LINENO "configure"
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
21022
5c6fa7d2 21023/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21024#ifdef __cplusplus
21025extern "C"
21026#endif
5c6fa7d2 21027/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21028 builtin and then its argument prototype would still apply. */
21029char gdk_im_open ();
21030int
21031main ()
21032{
21033gdk_im_open ();
21034 ;
21035 return 0;
21036}
21037_ACEOF
21038rm -f conftest.$ac_objext conftest$ac_exeext
21039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040 (eval $ac_link) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -s conftest$ac_exeext'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_cv_lib_gdk_gdk_im_open=yes
21051else
21052 echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055ac_cv_lib_gdk_gdk_im_open=no
21056fi
21057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21058LIBS=$ac_check_lib_save_LIBS
21059fi
21060echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21061echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21062if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21063 cat >>confdefs.h <<\_ACEOF
21d1c967 21064#define HAVE_XIM 1
e6cc62c6 21065_ACEOF
21d1c967 21066
90dd450c 21067fi
1e6feb95 21068
21d1c967 21069 fi
1e6feb95 21070
21d1c967 21071 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21072 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21073echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21074 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21075 echo "$as_me:$LINENO: result: not found" >&5
21076echo "${ECHO_T}not found" >&6
21077 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21078echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21079 { (exit 1); exit 1; }; }
21d1c967 21080 else
e6cc62c6
VS
21081 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21082echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21083 fi
21084
e6cc62c6
VS
21085 echo "$as_me:$LINENO: checking for libmgl location" >&5
21086echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21087 case "${host}" in
21d1c967 21088 *-*-linux* )
e46d2a18
VS
21089 if test "x$wxUSE_SHARED" = xyes ; then
21090 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21091 else
e46d2a18 21092 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21093 fi
21d1c967
GD
21094 ;;
21095 *-pc-msdosdjgpp )
63a76696 21096 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21097 ;;
21098 *)
e6cc62c6
VS
21099 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21100echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21101 { (exit 1); exit 1; }; }
21d1c967 21102 esac
1e6feb95 21103
21d1c967 21104 mgl_lib_type=""
63a76696
VS
21105 mgl_os=""
21106
21107 for mgl_os_i in $mgl_os_candidates ; do
21108 if test "x$mgl_os" = x ; then
21109 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21110 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21111 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21112 mgl_lib_type=debug
21113 mgl_os=$mgl_os_i
21114 fi
21115 fi
21116 if test "x$mgl_lib_type" = x ; then
21117 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21118 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21119 mgl_lib_type=release
21120 mgl_os=$mgl_os_i
21121 fi
21122 fi
21d1c967 21123 fi
63a76696 21124 done
2224580a 21125
63a76696 21126 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21127 echo "$as_me:$LINENO: result: not found" >&5
21128echo "${ECHO_T}not found" >&6
21129 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21130echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21131 { (exit 1); exit 1; }; }
63a76696 21132 fi
e6cc62c6
VS
21133 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21134echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21135
1d1b75ac
VZ
21136 wxUSE_UNIVERSAL="yes"
21137
21d1c967
GD
21138 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21139 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21140
90dd450c 21141 AFMINSTALL=afminstall
21d1c967
GD
21142 TOOLKIT=MGL
21143 GUIDIST=MGL_DIST
21144 fi
dad6c0ea 21145
21d1c967 21146 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21147 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21148echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21149 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21150 echo "$as_me:$LINENO: result: not found" >&5
21151echo "${ECHO_T}not found" >&6
21152 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21153echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21154 { (exit 1); exit 1; }; }
21d1c967 21155 else
e6cc62c6
VS
21156 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21157echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21158 fi
f6bcfd97 21159
21d1c967 21160 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21161 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21162echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21163 else
e6cc62c6
VS
21164 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21165echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21166 { (exit 1); exit 1; }; }
90dd450c 21167 fi
0b2effe9 21168
21d1c967
GD
21169 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21170 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21171
1d1b75ac
VZ
21172 wxUSE_UNIVERSAL="yes"
21173
21d1c967
GD
21174 AFMINSTALL=afminstall
21175 TOOLKIT=MICROWIN
21176 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21177
21178 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21179 fi
f6bcfd97 21180
21d1c967 21181 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21182 echo "$as_me:$LINENO: checking for X" >&5
21183echo $ECHO_N "checking for X... $ECHO_C" >&6
21184
d8356fa3 21185
21d1c967
GD
21186# Check whether --with-x or --without-x was given.
21187if test "${with_x+set}" = set; then
21188 withval="$with_x"
2224580a 21189
e6cc62c6 21190fi;
21d1c967
GD
21191# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21192if test "x$with_x" = xno; then
21193 # The user explicitly disabled X.
21194 have_x=disabled
21195else
21196 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21197 # Both variables are already set.
21198 have_x=yes
21199 else
e6cc62c6
VS
21200 if test "${ac_cv_have_x+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21202else
21203 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21204ac_x_includes=no ac_x_libraries=no
21205rm -fr conftest.dir
21206if mkdir conftest.dir; then
21207 cd conftest.dir
21d1c967 21208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21209 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21210acfindx:
21211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21212_ACEOF
21d1c967
GD
21213 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21217 for ac_extension in a so sl; do
21218 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21219 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21220 ac_im_usrlibdir=$ac_im_libdir; break
21221 fi
21222 done
21223 # Screen out bogus values from the imake configuration. They are
21224 # bogus both because they are the default anyway, and because
21225 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21226 case $ac_im_incroot in
21d1c967 21227 /usr/include) ;;
e6cc62c6 21228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21229 esac
e6cc62c6 21230 case $ac_im_usrlibdir in
21d1c967 21231 /usr/lib | /lib) ;;
e6cc62c6 21232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21233 esac
21234 fi
21235 cd ..
e6cc62c6 21236 rm -fr conftest.dir
21d1c967 21237fi
10f2d63a 21238
e6cc62c6
VS
21239# Standard set of common directories for X headers.
21240# Check X11 before X11Rn because it is often a symlink to the current release.
21241ac_x_header_dirs='
21242/usr/X11/include
21243/usr/X11R6/include
21244/usr/X11R5/include
21245/usr/X11R4/include
21246
21247/usr/include/X11
21248/usr/include/X11R6
21249/usr/include/X11R5
21250/usr/include/X11R4
21251
21252/usr/local/X11/include
21253/usr/local/X11R6/include
21254/usr/local/X11R5/include
21255/usr/local/X11R4/include
21256
21257/usr/local/include/X11
21258/usr/local/include/X11R6
21259/usr/local/include/X11R5
21260/usr/local/include/X11R4
21261
21262/usr/X386/include
21263/usr/x386/include
21264/usr/XFree86/include/X11
21265
21266/usr/include
21267/usr/local/include
21268/usr/unsupported/include
21269/usr/athena/include
21270/usr/local/x11r5/include
21271/usr/lpp/Xamples/include
21272
21273/usr/openwin/include
21274/usr/openwin/share/include'
21275
21276if test "$ac_x_includes" = no; then
21277 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21278 # First, try using that file with no special directory specified.
e6cc62c6
VS
21279 cat >conftest.$ac_ext <<_ACEOF
21280#line $LINENO "configure"
21281/* confdefs.h. */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h. */
21286#include <X11/Intrinsic.h>
21287_ACEOF
21288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } >/dev/null; then
21296 if test -s conftest.err; then
21297 ac_cpp_err=$ac_c_preproc_warn_flag
21298 else
21299 ac_cpp_err=
21300 fi
21301else
21302 ac_cpp_err=yes
21303fi
21304if test -z "$ac_cpp_err"; then
21d1c967
GD
21305 # We can compile using X headers with no special include directory.
21306ac_x_includes=
90dd450c 21307else
e6cc62c6
VS
21308 echo "$as_me: failed program was:" >&5
21309sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 for ac_dir in $ac_x_header_dirs; do
21312 if test -r "$ac_dir/X11/Intrinsic.h"; then
21313 ac_x_includes=$ac_dir
21314 break
21315 fi
21316done
3a922bb4 21317fi
e6cc62c6
VS
21318rm -f conftest.err conftest.$ac_ext
21319fi # $ac_x_includes = no
10f2d63a 21320
e6cc62c6 21321if test "$ac_x_libraries" = no; then
21d1c967 21322 # Check for the libraries.
21d1c967
GD
21323 # See if we find them without any special options.
21324 # Don't add to $LIBS permanently.
e6cc62c6
VS
21325 ac_save_LIBS=$LIBS
21326 LIBS="-lXt $LIBS"
21327 cat >conftest.$ac_ext <<_ACEOF
21328#line $LINENO "configure"
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334#include <X11/Intrinsic.h>
21335int
21336main ()
21337{
21338XtMalloc (0)
21339 ;
21340 return 0;
21341}
21342_ACEOF
21343rm -f conftest.$ac_objext conftest$ac_exeext
21344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21345 (eval $ac_link) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } &&
21349 { ac_try='test -s conftest$ac_exeext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 LIBS=$ac_save_LIBS
21d1c967
GD
21356# We can link X programs with no special library path.
21357ac_x_libraries=
3a922bb4 21358else
e6cc62c6
VS
21359 echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
21362LIBS=$ac_save_LIBS
21363for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21364do
e6cc62c6 21365 # Don't even attempt the hair of trying to link an X program!
21d1c967 21366 for ac_extension in a so sl; do
e6cc62c6 21367 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21368 ac_x_libraries=$ac_dir
21369 break 2
21370 fi
21371 done
21372done
3a922bb4 21373fi
e6cc62c6
VS
21374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375fi # $ac_x_libraries = no
90dd450c 21376
e6cc62c6 21377if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21378 # Didn't find X anywhere. Cache the known absence of X.
21379 ac_cv_have_x="have_x=no"
21380else
21381 # Record where we found X for the cache.
21382 ac_cv_have_x="have_x=yes \
21383 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21384fi
21d1c967 21385fi
e6cc62c6 21386
21d1c967
GD
21387 fi
21388 eval "$ac_cv_have_x"
21389fi # $with_x != no
90dd450c 21390
21d1c967 21391if test "$have_x" != yes; then
e6cc62c6
VS
21392 echo "$as_me:$LINENO: result: $have_x" >&5
21393echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21394 no_x=yes
21395else
21396 # If each of the values was on the command line, it overrides each guess.
21397 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21398 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21399 # Update the cache value to reflect the command line values.
21400 ac_cv_have_x="have_x=yes \
21401 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21402 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21403echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21404fi
90dd450c 21405
21d1c967 21406if test "$no_x" = yes; then
90dd450c 21407 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21408
21409cat >>confdefs.h <<\_ACEOF
90dd450c 21410#define X_DISPLAY_MISSING 1
e6cc62c6 21411_ACEOF
90dd450c
VZ
21412
21413 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21414else
21415 if test -n "$x_includes"; then
21416 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21417 fi
3a922bb4 21418
90dd450c
VZ
21419 # It would also be nice to do this for all -L options, not just this one.
21420 if test -n "$x_libraries"; then
21421 X_LIBS="$X_LIBS -L$x_libraries"
21422 # For Solaris; some versions of Sun CC require a space after -R and
21423 # others require no space. Words are not sufficient . . . .
e6cc62c6 21424 case `(uname -sr) 2>/dev/null` in
90dd450c 21425 "SunOS 5"*)
e6cc62c6
VS
21426 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21427echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21428 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21429 cat >conftest.$ac_ext <<_ACEOF
21430#line $LINENO "configure"
21431/* confdefs.h. */
21432_ACEOF
21433cat confdefs.h >>conftest.$ac_ext
21434cat >>conftest.$ac_ext <<_ACEOF
21435/* end confdefs.h. */
21436
21437int
21438main ()
21439{
90dd450c 21440
e6cc62c6
VS
21441 ;
21442 return 0;
21443}
21444_ACEOF
21445rm -f conftest.$ac_objext conftest$ac_exeext
21446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21447 (eval $ac_link) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
21451 { ac_try='test -s conftest$ac_exeext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
90dd450c 21457 ac_R_nospace=yes
3a922bb4 21458else
e6cc62c6
VS
21459 echo "$as_me: failed program was:" >&5
21460sed 's/^/| /' conftest.$ac_ext >&5
21461
21462ac_R_nospace=no
3a922bb4 21463fi
e6cc62c6 21464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21465 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21466 echo "$as_me:$LINENO: result: no" >&5
21467echo "${ECHO_T}no" >&6
90dd450c
VZ
21468 X_LIBS="$X_LIBS -R$x_libraries"
21469 else
21470 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21471 cat >conftest.$ac_ext <<_ACEOF
21472#line $LINENO "configure"
21473/* confdefs.h. */
21474_ACEOF
21475cat confdefs.h >>conftest.$ac_ext
21476cat >>conftest.$ac_ext <<_ACEOF
21477/* end confdefs.h. */
21478
21479int
21480main ()
21481{
6f754473 21482
e6cc62c6
VS
21483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext conftest$ac_exeext
21488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489 (eval $ac_link) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
90dd450c
VZ
21499 ac_R_space=yes
21500else
e6cc62c6
VS
21501 echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504ac_R_space=no
90dd450c 21505fi
e6cc62c6 21506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21507 if test $ac_R_space = yes; then
e6cc62c6
VS
21508 echo "$as_me:$LINENO: result: yes" >&5
21509echo "${ECHO_T}yes" >&6
90dd450c
VZ
21510 X_LIBS="$X_LIBS -R $x_libraries"
21511 else
e6cc62c6
VS
21512 echo "$as_me:$LINENO: result: neither works" >&5
21513echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21514 fi
21515 fi
e6cc62c6 21516 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21517 esac
21518 fi
21519
21520 # Check for system-dependent libraries X programs must link with.
21521 # Do this before checking for the system-independent R6 libraries
21522 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21523
90dd450c
VZ
21524 if test "$ISC" = yes; then
21525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21526 else
e6cc62c6
VS
21527 # Martyn Johnson says this is needed for Ultrix, if the X
21528 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21529 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21530 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21531 cat >conftest.$ac_ext <<_ACEOF
21532#line $LINENO "configure"
21533/* confdefs.h. */
21534_ACEOF
21535cat confdefs.h >>conftest.$ac_ext
21536cat >>conftest.$ac_ext <<_ACEOF
21537/* end confdefs.h. */
21538
247f5006 21539/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21540#ifdef __cplusplus
21541extern "C"
21542#endif
247f5006 21543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21544 builtin and then its argument prototype would still apply. */
21545char XOpenDisplay ();
21546int
21547main ()
21548{
21549XOpenDisplay ();
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext conftest$ac_exeext
21555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21556 (eval $ac_link) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -s conftest$ac_exeext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 :
21567else
21568 echo "$as_me: failed program was:" >&5
21569sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21570
e6cc62c6
VS
21571echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21572echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21573if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21575else
e6cc62c6
VS
21576 ac_check_lib_save_LIBS=$LIBS
21577LIBS="-ldnet $LIBS"
21578cat >conftest.$ac_ext <<_ACEOF
21579#line $LINENO "configure"
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
a0b9e27f 21585
e6cc62c6
VS
21586/* Override any gcc2 internal prototype to avoid an error. */
21587#ifdef __cplusplus
21588extern "C"
21589#endif
21590/* We use char because int might match the return type of a gcc2
21591 builtin and then its argument prototype would still apply. */
21592char dnet_ntoa ();
21593int
21594main ()
21595{
21596dnet_ntoa ();
21597 ;
21598 return 0;
21599}
21600_ACEOF
21601rm -f conftest.$ac_objext conftest$ac_exeext
21602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21603 (eval $ac_link) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -s conftest$ac_exeext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_lib_dnet_dnet_ntoa=yes
21614else
21615 echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
21618ac_cv_lib_dnet_dnet_ntoa=no
21619fi
21620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21621LIBS=$ac_check_lib_save_LIBS
21622fi
21623echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21624echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21625if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21626 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21627fi
21628
90dd450c 21629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21630 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21631echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21632if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21634else
e6cc62c6 21635 ac_check_lib_save_LIBS=$LIBS
90dd450c 21636LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21637cat >conftest.$ac_ext <<_ACEOF
21638#line $LINENO "configure"
21639/* confdefs.h. */
21640_ACEOF
21641cat confdefs.h >>conftest.$ac_ext
21642cat >>conftest.$ac_ext <<_ACEOF
21643/* end confdefs.h. */
21644
90dd450c 21645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21646#ifdef __cplusplus
21647extern "C"
21648#endif
90dd450c 21649/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21650 builtin and then its argument prototype would still apply. */
21651char dnet_ntoa ();
21652int
21653main ()
21654{
21655dnet_ntoa ();
21656 ;
21657 return 0;
21658}
21659_ACEOF
21660rm -f conftest.$ac_objext conftest$ac_exeext
21661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662 (eval $ac_link) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } &&
21666 { ac_try='test -s conftest$ac_exeext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21673else
21674 echo "$as_me: failed program was:" >&5
21675sed 's/^/| /' conftest.$ac_ext >&5
21676
21677ac_cv_lib_dnet_stub_dnet_ntoa=no
21678fi
21679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21680LIBS=$ac_check_lib_save_LIBS
21681fi
21682echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21683echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21684if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21686fi
21687
90dd450c 21688 fi
e6cc62c6
VS
21689fi
21690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21691 LIBS="$ac_xsave_LIBS"
978f1259 21692
90dd450c
VZ
21693 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21694 # to get the SysV transport functions.
e6cc62c6 21695 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21696 # needs -lnsl.
21697 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21698 # on Irix 5.2, according to T.E. Dickey.
21699 # The functions gethostbyname, getservbyname, and inet_addr are
21700 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21701 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21702echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21703if test "${ac_cv_func_gethostbyname+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705else
21706 cat >conftest.$ac_ext <<_ACEOF
21707#line $LINENO "configure"
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
90dd450c 21713/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21714 which can conflict with char gethostbyname (); below.
21715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21716 <limits.h> exists even on freestanding compilers. */
21717#ifdef __STDC__
21718# include <limits.h>
21719#else
21720# include <assert.h>
21721#endif
90dd450c 21722/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21723#ifdef __cplusplus
21724extern "C"
21725{
21726#endif
90dd450c 21727/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21728 builtin and then its argument prototype would still apply. */
21729char gethostbyname ();
90dd450c
VZ
21730/* The GNU C library defines this for functions which it implements
21731 to always fail with ENOSYS. Some functions are actually named
21732 something starting with __ and the normal name is an alias. */
21733#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21734choke me
21735#else
e6cc62c6
VS
21736char (*f) () = gethostbyname;
21737#endif
21738#ifdef __cplusplus
21739}
90dd450c 21740#endif
978f1259 21741
e6cc62c6
VS
21742int
21743main ()
21744{
21745return f != gethostbyname;
21746 ;
21747 return 0;
21748}
21749_ACEOF
21750rm -f conftest.$ac_objext conftest$ac_exeext
21751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21752 (eval $ac_link) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
21756 { ac_try='test -s conftest$ac_exeext'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 ac_cv_func_gethostbyname=yes
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767ac_cv_func_gethostbyname=no
21768fi
21769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21770fi
21771echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21772echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21773
90dd450c 21774 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21775 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21776echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21777if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21779else
e6cc62c6 21780 ac_check_lib_save_LIBS=$LIBS
90dd450c 21781LIBS="-lnsl $LIBS"
e6cc62c6
VS
21782cat >conftest.$ac_ext <<_ACEOF
21783#line $LINENO "configure"
21784/* confdefs.h. */
21785_ACEOF
21786cat confdefs.h >>conftest.$ac_ext
21787cat >>conftest.$ac_ext <<_ACEOF
21788/* end confdefs.h. */
21789
90dd450c 21790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21791#ifdef __cplusplus
21792extern "C"
21793#endif
90dd450c 21794/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21795 builtin and then its argument prototype would still apply. */
21796char gethostbyname ();
21797int
21798main ()
21799{
21800gethostbyname ();
21801 ;
21802 return 0;
21803}
21804_ACEOF
21805rm -f conftest.$ac_objext conftest$ac_exeext
21806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21807 (eval $ac_link) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -s conftest$ac_exeext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_lib_nsl_gethostbyname=yes
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822ac_cv_lib_nsl_gethostbyname=no
21823fi
21824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21825LIBS=$ac_check_lib_save_LIBS
21826fi
21827echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21828echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21829if test $ac_cv_lib_nsl_gethostbyname = yes; then
21830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21831fi
247f5006 21832
e6cc62c6
VS
21833 if test $ac_cv_lib_nsl_gethostbyname = no; then
21834 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21835echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21836if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21838else
e6cc62c6
VS
21839 ac_check_lib_save_LIBS=$LIBS
21840LIBS="-lbsd $LIBS"
21841cat >conftest.$ac_ext <<_ACEOF
21842#line $LINENO "configure"
21843/* confdefs.h. */
21844_ACEOF
21845cat confdefs.h >>conftest.$ac_ext
21846cat >>conftest.$ac_ext <<_ACEOF
21847/* end confdefs.h. */
21848
21849/* Override any gcc2 internal prototype to avoid an error. */
21850#ifdef __cplusplus
21851extern "C"
21852#endif
21853/* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21855char gethostbyname ();
21856int
21857main ()
21858{
21859gethostbyname ();
21860 ;
21861 return 0;
21862}
21863_ACEOF
21864rm -f conftest.$ac_objext conftest$ac_exeext
21865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866 (eval $ac_link) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -s conftest$ac_exeext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21873 ac_status=$?
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ac_cv_lib_bsd_gethostbyname=yes
21877else
21878 echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881ac_cv_lib_bsd_gethostbyname=no
21882fi
21883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21884LIBS=$ac_check_lib_save_LIBS
21885fi
21886echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21887echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21888if test $ac_cv_lib_bsd_gethostbyname = yes; then
21889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21890fi
b12915c1 21891
e6cc62c6 21892 fi
90dd450c
VZ
21893 fi
21894
21895 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21896 # socket/setsockopt and other routines are undefined under SCO ODT
21897 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21898 # on later versions), says Simon Leinen: it contains gethostby*
21899 # variants that don't use the name server (or something). -lsocket
21900 # must be given before -lnsl if both are needed. We assume that
21901 # if connect needs -lnsl, so does gethostbyname.
21902 echo "$as_me:$LINENO: checking for connect" >&5
21903echo $ECHO_N "checking for connect... $ECHO_C" >&6
21904if test "${ac_cv_func_connect+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906else
21907 cat >conftest.$ac_ext <<_ACEOF
21908#line $LINENO "configure"
21909/* confdefs.h. */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h. */
90dd450c 21914/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21915 which can conflict with char connect (); below.
21916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21917 <limits.h> exists even on freestanding compilers. */
21918#ifdef __STDC__
21919# include <limits.h>
21920#else
21921# include <assert.h>
21922#endif
90dd450c 21923/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21924#ifdef __cplusplus
21925extern "C"
21926{
21927#endif
90dd450c 21928/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21929 builtin and then its argument prototype would still apply. */
21930char connect ();
90dd450c
VZ
21931/* The GNU C library defines this for functions which it implements
21932 to always fail with ENOSYS. Some functions are actually named
21933 something starting with __ and the normal name is an alias. */
21934#if defined (__stub_connect) || defined (__stub___connect)
21935choke me
21936#else
e6cc62c6
VS
21937char (*f) () = connect;
21938#endif
21939#ifdef __cplusplus
21940}
90dd450c
VZ
21941#endif
21942
e6cc62c6
VS
21943int
21944main ()
21945{
21946return f != connect;
21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext conftest$ac_exeext
21952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21953 (eval $ac_link) 2>&5
21954 ac_status=$?
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -s conftest$ac_exeext'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; }; then
21963 ac_cv_func_connect=yes
21964else
21965 echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968ac_cv_func_connect=no
21969fi
21970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21971fi
21972echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21973echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21974
90dd450c 21975 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21976 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21977echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21978if test "${ac_cv_lib_socket_connect+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21980else
e6cc62c6 21981 ac_check_lib_save_LIBS=$LIBS
90dd450c 21982LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21983cat >conftest.$ac_ext <<_ACEOF
21984#line $LINENO "configure"
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990
90dd450c 21991/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21992#ifdef __cplusplus
21993extern "C"
21994#endif
90dd450c 21995/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21996 builtin and then its argument prototype would still apply. */
21997char connect ();
21998int
21999main ()
22000{
22001connect ();
22002 ;
22003 return 0;
22004}
22005_ACEOF
22006rm -f conftest.$ac_objext conftest$ac_exeext
22007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22008 (eval $ac_link) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
22012 { ac_try='test -s conftest$ac_exeext'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_cv_lib_socket_connect=yes
22019else
22020 echo "$as_me: failed program was:" >&5
22021sed 's/^/| /' conftest.$ac_ext >&5
22022
22023ac_cv_lib_socket_connect=no
22024fi
22025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22026LIBS=$ac_check_lib_save_LIBS
22027fi
22028echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22029echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22030if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22031 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22032fi
77e13408 22033
90dd450c 22034 fi
25d0687a 22035
e6cc62c6
VS
22036 # Guillermo Gomez says -lposix is necessary on A/UX.
22037 echo "$as_me:$LINENO: checking for remove" >&5
22038echo $ECHO_N "checking for remove... $ECHO_C" >&6
22039if test "${ac_cv_func_remove+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041else
22042 cat >conftest.$ac_ext <<_ACEOF
22043#line $LINENO "configure"
22044/* confdefs.h. */
22045_ACEOF
22046cat confdefs.h >>conftest.$ac_ext
22047cat >>conftest.$ac_ext <<_ACEOF
22048/* end confdefs.h. */
90dd450c 22049/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22050 which can conflict with char remove (); below.
22051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22052 <limits.h> exists even on freestanding compilers. */
22053#ifdef __STDC__
22054# include <limits.h>
22055#else
22056# include <assert.h>
22057#endif
90dd450c 22058/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22059#ifdef __cplusplus
22060extern "C"
22061{
22062#endif
90dd450c 22063/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22064 builtin and then its argument prototype would still apply. */
22065char remove ();
90dd450c
VZ
22066/* The GNU C library defines this for functions which it implements
22067 to always fail with ENOSYS. Some functions are actually named
22068 something starting with __ and the normal name is an alias. */
22069#if defined (__stub_remove) || defined (__stub___remove)
22070choke me
22071#else
e6cc62c6
VS
22072char (*f) () = remove;
22073#endif
22074#ifdef __cplusplus
22075}
90dd450c 22076#endif
55e80573 22077
e6cc62c6
VS
22078int
22079main ()
22080{
22081return f != remove;
22082 ;
22083 return 0;
22084}
22085_ACEOF
22086rm -f conftest.$ac_objext conftest$ac_exeext
22087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088 (eval $ac_link) 2>&5
22089 ac_status=$?
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
22092 { ac_try='test -s conftest$ac_exeext'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ac_cv_func_remove=yes
22099else
22100 echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103ac_cv_func_remove=no
22104fi
22105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22106fi
22107echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22108echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22109
90dd450c 22110 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22111 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22112echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22113if test "${ac_cv_lib_posix_remove+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22115else
e6cc62c6 22116 ac_check_lib_save_LIBS=$LIBS
90dd450c 22117LIBS="-lposix $LIBS"
e6cc62c6
VS
22118cat >conftest.$ac_ext <<_ACEOF
22119#line $LINENO "configure"
22120/* confdefs.h. */
22121_ACEOF
22122cat confdefs.h >>conftest.$ac_ext
22123cat >>conftest.$ac_ext <<_ACEOF
22124/* end confdefs.h. */
22125
90dd450c 22126/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22127#ifdef __cplusplus
22128extern "C"
22129#endif
90dd450c 22130/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22131 builtin and then its argument prototype would still apply. */
22132char remove ();
22133int
22134main ()
22135{
22136remove ();
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141rm -f conftest.$ac_objext conftest$ac_exeext
22142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22143 (eval $ac_link) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try='test -s conftest$ac_exeext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 ac_cv_lib_posix_remove=yes
22154else
22155 echo "$as_me: failed program was:" >&5
22156sed 's/^/| /' conftest.$ac_ext >&5
22157
22158ac_cv_lib_posix_remove=no
22159fi
22160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22161LIBS=$ac_check_lib_save_LIBS
22162fi
22163echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22164echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22165if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22167fi
f6bcfd97 22168
6fa882bd
RR
22169 fi
22170
90dd450c 22171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22172 echo "$as_me:$LINENO: checking for shmat" >&5
22173echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22174if test "${ac_cv_func_shmat+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176else
22177 cat >conftest.$ac_ext <<_ACEOF
22178#line $LINENO "configure"
22179/* confdefs.h. */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h. */
90dd450c 22184/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22185 which can conflict with char shmat (); below.
22186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187 <limits.h> exists even on freestanding compilers. */
22188#ifdef __STDC__
22189# include <limits.h>
22190#else
22191# include <assert.h>
22192#endif
90dd450c 22193/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22194#ifdef __cplusplus
22195extern "C"
22196{
22197#endif
90dd450c 22198/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22199 builtin and then its argument prototype would still apply. */
22200char shmat ();
90dd450c
VZ
22201/* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204#if defined (__stub_shmat) || defined (__stub___shmat)
22205choke me
22206#else
e6cc62c6
VS
22207char (*f) () = shmat;
22208#endif
22209#ifdef __cplusplus
22210}
90dd450c 22211#endif
10f2d63a 22212
e6cc62c6
VS
22213int
22214main ()
22215{
22216return f != shmat;
22217 ;
22218 return 0;
22219}
22220_ACEOF
22221rm -f conftest.$ac_objext conftest$ac_exeext
22222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223 (eval $ac_link) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } &&
22227 { ac_try='test -s conftest$ac_exeext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_cv_func_shmat=yes
22234else
22235 echo "$as_me: failed program was:" >&5
22236sed 's/^/| /' conftest.$ac_ext >&5
22237
22238ac_cv_func_shmat=no
22239fi
22240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22241fi
22242echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22243echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22244
90dd450c 22245 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22246 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22247echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22248if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22250else
e6cc62c6 22251 ac_check_lib_save_LIBS=$LIBS
90dd450c 22252LIBS="-lipc $LIBS"
e6cc62c6
VS
22253cat >conftest.$ac_ext <<_ACEOF
22254#line $LINENO "configure"
22255/* confdefs.h. */
22256_ACEOF
22257cat confdefs.h >>conftest.$ac_ext
22258cat >>conftest.$ac_ext <<_ACEOF
22259/* end confdefs.h. */
22260
8284b0c5 22261/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22262#ifdef __cplusplus
22263extern "C"
22264#endif
90dd450c 22265/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22266 builtin and then its argument prototype would still apply. */
22267char shmat ();
22268int
22269main ()
22270{
22271shmat ();
22272 ;
22273 return 0;
22274}
22275_ACEOF
22276rm -f conftest.$ac_objext conftest$ac_exeext
22277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22278 (eval $ac_link) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
22282 { ac_try='test -s conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 ac_cv_lib_ipc_shmat=yes
22289else
22290 echo "$as_me: failed program was:" >&5
22291sed 's/^/| /' conftest.$ac_ext >&5
22292
22293ac_cv_lib_ipc_shmat=no
22294fi
22295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22296LIBS=$ac_check_lib_save_LIBS
22297fi
22298echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22299echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22300if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22301 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22302fi
22303
d558c907 22304 fi
90dd450c 22305 fi
3a922bb4 22306
90dd450c 22307 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22308 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22309 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22310 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22311 # check for ICE first), but we must link in the order -lSM -lICE or
22312 # we get undefined symbols. So assume we have SM if we have ICE.
22313 # These have to be linked with before -lX11, unlike the other
22314 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22315 # John Interrante, Karl Berry
22316 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22317echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22318if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320else
22321 ac_check_lib_save_LIBS=$LIBS
f09359cf 22322LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22323cat >conftest.$ac_ext <<_ACEOF
22324#line $LINENO "configure"
22325/* confdefs.h. */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h. */
22330
90dd450c 22331/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22332#ifdef __cplusplus
22333extern "C"
22334#endif
90dd450c 22335/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22336 builtin and then its argument prototype would still apply. */
22337char IceConnectionNumber ();
22338int
22339main ()
22340{
22341IceConnectionNumber ();
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346rm -f conftest.$ac_objext conftest$ac_exeext
22347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22348 (eval $ac_link) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -s conftest$ac_exeext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358 ac_cv_lib_ICE_IceConnectionNumber=yes
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363ac_cv_lib_ICE_IceConnectionNumber=no
22364fi
22365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22366LIBS=$ac_check_lib_save_LIBS
22367fi
22368echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22369echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22370if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22371 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22372fi
10f2d63a 22373
e6cc62c6 22374 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22375
22376fi
22377
8284b0c5 22378
90dd450c 22379 if test "$no_x" = "yes"; then
e6cc62c6
VS
22380 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22381echo "$as_me: error: X11 not found" >&2;}
22382 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22383 fi
22384
22385 GUI_TK_LIBRARY="$X_LIBS"
22386 TOOLKIT_INCLUDE="$X_CFLAGS"
22387 AFMINSTALL=afminstall
22388 COMPILED_X_PROGRAM=0
22389
21d1c967 22390 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22391 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22392echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22393 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22394 echo "$as_me:$LINENO: result: not found" >&5
22395echo "${ECHO_T}not found" >&6
22396 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22397echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22398 { (exit 1); exit 1; }; }
90dd450c 22399 else
e6cc62c6
VS
22400 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22401echo "${ECHO_T}$MICROWIN" >&6
22402 cat >>confdefs.h <<\_ACEOF
21d1c967 22403#define wxUSE_NANOX 1
e6cc62c6 22404_ACEOF
21d1c967 22405
90dd450c
VZ
22406 fi
22407 fi
22408
22409 xpm_link=
e6cc62c6
VS
22410 echo "$as_me:$LINENO: checking for Xpm library" >&5
22411echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22412
90dd450c 22413ac_find_libraries=
2b5f62a0 22414for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22415 do
22416 for ac_extension in a so sl dylib; do
22417 if test -f "$ac_dir/libXpm.$ac_extension"; then
22418 ac_find_libraries=$ac_dir
22419 break 2
22420 fi
22421 done
22422 done
22423
22424 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22425
90dd450c
VZ
22426 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22427 result=$?
22428 if test $result = 0; then
22429 ac_path_to_link=""
22430 else
22431 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22432 fi
90dd450c 22433
21d1c967
GD
22434 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22435 xpm_link=" -lXpm"
e6cc62c6 22436 cat >>confdefs.h <<\_ACEOF
21d1c967 22437#define wxHAVE_LIB_XPM 1
e6cc62c6 22438_ACEOF
90dd450c 22439
e6cc62c6
VS
22440 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22441echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22442 else
e6cc62c6
VS
22443 cat >conftest.$ac_ext <<_ACEOF
22444#line $LINENO "configure"
22445/* confdefs.h. */
22446_ACEOF
22447cat confdefs.h >>conftest.$ac_ext
22448cat >>conftest.$ac_ext <<_ACEOF
22449/* end confdefs.h. */
90dd450c 22450
21d1c967 22451 #include <X11/xpm.h>
e6cc62c6
VS
22452
22453int
22454main ()
22455{
6f72b082 22456
21d1c967
GD
22457 int version;
22458 version = XpmLibraryVersion();
e6cc62c6
VS
22459
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466 (eval $ac_compile) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest.$ac_objext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476
21d1c967 22477 xpm_link=" -lXpm"
e6cc62c6 22478 cat >>confdefs.h <<\_ACEOF
21d1c967 22479#define wxHAVE_LIB_XPM 1
e6cc62c6 22480_ACEOF
90dd450c 22481
e6cc62c6
VS
22482 echo "$as_me:$LINENO: result: found in default search path" >&5
22483echo "${ECHO_T}found in default search path" >&6
21d1c967 22484 COMPILED_X_PROGRAM=0
e6cc62c6 22485
21d1c967 22486else
e6cc62c6
VS
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490
22491 echo "$as_me:$LINENO: result: no" >&5
22492echo "${ECHO_T}no" >&6
22493 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22494echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22495
22496
6f72b082 22497fi
e6cc62c6 22498rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22499 fi
90dd450c 22500
e6cc62c6
VS
22501 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22502echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22503if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22505else
e6cc62c6 22506 ac_check_lib_save_LIBS=$LIBS
f7f78039 22507LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22508cat >conftest.$ac_ext <<_ACEOF
22509#line $LINENO "configure"
22510/* confdefs.h. */
22511_ACEOF
22512cat confdefs.h >>conftest.$ac_ext
22513cat >>conftest.$ac_ext <<_ACEOF
22514/* end confdefs.h. */
22515
f7f78039 22516/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22517#ifdef __cplusplus
22518extern "C"
22519#endif
f7f78039 22520/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22521 builtin and then its argument prototype would still apply. */
22522char XShapeQueryExtension ();
22523int
22524main ()
22525{
22526XShapeQueryExtension ();
22527 ;
22528 return 0;
22529}
22530_ACEOF
22531rm -f conftest.$ac_objext conftest$ac_exeext
22532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
22537 { ac_try='test -s conftest$ac_exeext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_cv_lib_Xext_XShapeQueryExtension=yes
22544else
22545 echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548ac_cv_lib_Xext_XShapeQueryExtension=no
22549fi
22550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22551LIBS=$ac_check_lib_save_LIBS
22552fi
22553echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22554echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22555if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22556
f7f78039
MB
22557 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22558 wxHAVE_XEXT_LIB=1
e6cc62c6 22559
f7f78039
MB
22560fi
22561
22562
2b5f62a0 22563 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22564
2b5f62a0 22565 succeeded=no
90dd450c 22566
2b5f62a0
VZ
22567 if test -z "$PKG_CONFIG"; then
22568 # Extract the first word of "pkg-config", so it can be a program name with args.
22569set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22570echo "$as_me:$LINENO: checking for $ac_word" >&5
22571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22572if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22574else
e6cc62c6
VS
22575 case $PKG_CONFIG in
22576 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22578 ;;
2b5f62a0 22579 *)
e6cc62c6
VS
22580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22581for as_dir in $PATH
22582do
22583 IFS=$as_save_IFS
22584 test -z "$as_dir" && as_dir=.
22585 for ac_exec_ext in '' $ac_executable_extensions; do
22586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22589 break 2
22590 fi
22591done
22592done
22593
2b5f62a0
VZ
22594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22595 ;;
22596esac
22597fi
e6cc62c6
VS
22598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22599
2b5f62a0 22600if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22601 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22602echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22603else
e6cc62c6
VS
22604 echo "$as_me:$LINENO: result: no" >&5
22605echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22606fi
22607
22608 fi
22609
22610 if test "$PKG_CONFIG" = "no" ; then
22611 echo "*** The pkg-config script could not be found. Make sure it is"
22612 echo "*** in your path, or set the PKG_CONFIG environment variable"
22613 echo "*** to the full path to pkg-config."
22614 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22615 else
22616 PKG_CONFIG_MIN_VERSION=0.9.0
22617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22618 echo "$as_me:$LINENO: checking for pangox" >&5
22619echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22620
22621 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22622 echo "$as_me:$LINENO: result: yes" >&5
22623echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22624 succeeded=yes
22625
e6cc62c6
VS
22626 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22627echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22628 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22629 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22630echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22631
e6cc62c6
VS
22632 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22633echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22634 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22635 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22636echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22637 else
22638 PANGOX_CFLAGS=""
22639 PANGOX_LIBS=""
e6cc62c6 22640 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22641 ## do set a variable so people can do so.
22642 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22643
2b5f62a0
VZ
22644 fi
22645
e6cc62c6
VS
22646
22647
2b5f62a0
VZ
22648 else
22649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22651 fi
22652 fi
22653
22654 if test $succeeded = yes; then
e6cc62c6 22655
2b5f62a0 22656 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22657 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22658
2b5f62a0 22659 else
e6cc62c6
VS
22660
22661 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22662echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22663 { (exit 1); exit 1; }; }
22664
22665
2b5f62a0
VZ
22666 fi
22667
e6cc62c6 22668
2b5f62a0
VZ
22669 succeeded=no
22670
22671 if test -z "$PKG_CONFIG"; then
22672 # Extract the first word of "pkg-config", so it can be a program name with args.
22673set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22674echo "$as_me:$LINENO: checking for $ac_word" >&5
22675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22676if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22678else
e6cc62c6
VS
22679 case $PKG_CONFIG in
22680 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22681 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22682 ;;
2b5f62a0 22683 *)
e6cc62c6
VS
22684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22685for as_dir in $PATH
22686do
22687 IFS=$as_save_IFS
22688 test -z "$as_dir" && as_dir=.
22689 for ac_exec_ext in '' $ac_executable_extensions; do
22690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22691 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22693 break 2
22694 fi
22695done
22696done
22697
2b5f62a0
VZ
22698 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22699 ;;
22700esac
22701fi
e6cc62c6
VS
22702PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22703
2b5f62a0 22704if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22705 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22706echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22707else
e6cc62c6
VS
22708 echo "$as_me:$LINENO: result: no" >&5
22709echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22710fi
22711
22712 fi
22713
22714 if test "$PKG_CONFIG" = "no" ; then
22715 echo "*** The pkg-config script could not be found. Make sure it is"
22716 echo "*** in your path, or set the PKG_CONFIG environment variable"
22717 echo "*** to the full path to pkg-config."
22718 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22719 else
22720 PKG_CONFIG_MIN_VERSION=0.9.0
22721 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22722 echo "$as_me:$LINENO: checking for pangoft2" >&5
22723echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22724
22725 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22726 echo "$as_me:$LINENO: result: yes" >&5
22727echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22728 succeeded=yes
22729
e6cc62c6
VS
22730 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22731echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22732 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22734echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22735
e6cc62c6
VS
22736 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22737echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22738 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22739 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22740echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22741 else
22742 PANGOFT2_CFLAGS=""
22743 PANGOFT2_LIBS=""
e6cc62c6 22744 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22745 ## do set a variable so people can do so.
22746 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22747
2b5f62a0
VZ
22748 fi
22749
e6cc62c6
VS
22750
22751
2b5f62a0
VZ
22752 else
22753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22755 fi
22756 fi
22757
22758 if test $succeeded = yes; then
e6cc62c6 22759
2b5f62a0 22760 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22761 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22762
2b5f62a0 22763 else
e6cc62c6
VS
22764
22765 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22766echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22767 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22768
22769
2b5f62a0
VZ
22770 fi
22771
e6cc62c6 22772
2b5f62a0
VZ
22773 succeeded=no
22774
22775 if test -z "$PKG_CONFIG"; then
22776 # Extract the first word of "pkg-config", so it can be a program name with args.
22777set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22778echo "$as_me:$LINENO: checking for $ac_word" >&5
22779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22780if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22782else
e6cc62c6
VS
22783 case $PKG_CONFIG in
22784 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22786 ;;
2b5f62a0 22787 *)
e6cc62c6
VS
22788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22789for as_dir in $PATH
22790do
22791 IFS=$as_save_IFS
22792 test -z "$as_dir" && as_dir=.
22793 for ac_exec_ext in '' $ac_executable_extensions; do
22794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22795 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22797 break 2
22798 fi
22799done
22800done
22801
2b5f62a0
VZ
22802 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22803 ;;
22804esac
22805fi
e6cc62c6
VS
22806PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22807
2b5f62a0 22808if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22809 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22810echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22811else
e6cc62c6
VS
22812 echo "$as_me:$LINENO: result: no" >&5
22813echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22814fi
22815
22816 fi
22817
22818 if test "$PKG_CONFIG" = "no" ; then
22819 echo "*** The pkg-config script could not be found. Make sure it is"
22820 echo "*** in your path, or set the PKG_CONFIG environment variable"
22821 echo "*** to the full path to pkg-config."
22822 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22823 else
22824 PKG_CONFIG_MIN_VERSION=0.9.0
22825 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22826 echo "$as_me:$LINENO: checking for pangoxft" >&5
22827echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22828
22829 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22830 echo "$as_me:$LINENO: result: yes" >&5
22831echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22832 succeeded=yes
22833
e6cc62c6
VS
22834 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22835echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22836 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22837 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22838echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22839
e6cc62c6
VS
22840 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22841echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22842 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22843 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22844echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22845 else
22846 PANGOXFT_CFLAGS=""
22847 PANGOXFT_LIBS=""
e6cc62c6 22848 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22849 ## do set a variable so people can do so.
22850 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22851
2b5f62a0
VZ
22852 fi
22853
e6cc62c6
VS
22854
22855
2b5f62a0
VZ
22856 else
22857 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22858 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22859 fi
22860 fi
22861
22862 if test $succeeded = yes; then
e6cc62c6 22863
2b5f62a0 22864 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22865 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22866
2b5f62a0 22867 else
e6cc62c6
VS
22868
22869 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22870echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22871
22872
2b5f62a0
VZ
22873 fi
22874
22875 fi
22876
22877 wxUSE_UNIVERSAL="yes"
22878
22879 if test "$wxUSE_NANOX" = "yes"; then
22880 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22881 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
22882 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22883 else
22884 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22885 fi
22886
22887 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22888 TOOLKIT=X11
22889 GUIDIST=X11_DIST
22890 fi
22891
21d1c967
GD
22892 if test "$wxUSE_MOTIF" = 1; then
22893 if test "$no_x" = yes; then
22894 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22895
22896cat >>confdefs.h <<\_ACEOF
21d1c967 22897#define X_DISPLAY_MISSING 1
e6cc62c6 22898_ACEOF
21d1c967
GD
22899
22900 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22901else
22902 if test -n "$x_includes"; then
22903 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22904 fi
22905
21d1c967
GD
22906 # It would also be nice to do this for all -L options, not just this one.
22907 if test -n "$x_libraries"; then
22908 X_LIBS="$X_LIBS -L$x_libraries"
22909 # For Solaris; some versions of Sun CC require a space after -R and
22910 # others require no space. Words are not sufficient . . . .
e6cc62c6 22911 case `(uname -sr) 2>/dev/null` in
21d1c967 22912 "SunOS 5"*)
e6cc62c6
VS
22913 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22914echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22915 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22916 cat >conftest.$ac_ext <<_ACEOF
22917#line $LINENO "configure"
22918/* confdefs.h. */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h. */
22923
22924int
22925main ()
22926{
21d1c967 22927
e6cc62c6
VS
22928 ;
22929 return 0;
22930}
22931_ACEOF
22932rm -f conftest.$ac_objext conftest$ac_exeext
22933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22934 (eval $ac_link) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
22938 { ac_try='test -s conftest$ac_exeext'
22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); }; }; then
21d1c967 22944 ac_R_nospace=yes
698dcdb6 22945else
e6cc62c6
VS
22946 echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949ac_R_nospace=no
10f2d63a 22950fi
e6cc62c6 22951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22952 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22953 echo "$as_me:$LINENO: result: no" >&5
22954echo "${ECHO_T}no" >&6
21d1c967
GD
22955 X_LIBS="$X_LIBS -R$x_libraries"
22956 else
22957 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22958 cat >conftest.$ac_ext <<_ACEOF
22959#line $LINENO "configure"
22960/* confdefs.h. */
22961_ACEOF
22962cat confdefs.h >>conftest.$ac_ext
22963cat >>conftest.$ac_ext <<_ACEOF
22964/* end confdefs.h. */
22965
22966int
22967main ()
22968{
f0c87536 22969
e6cc62c6
VS
22970 ;
22971 return 0;
22972}
22973_ACEOF
22974rm -f conftest.$ac_objext conftest$ac_exeext
22975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976 (eval $ac_link) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -s conftest$ac_exeext'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
21d1c967
GD
22986 ac_R_space=yes
22987else
e6cc62c6
VS
22988 echo "$as_me: failed program was:" >&5
22989sed 's/^/| /' conftest.$ac_ext >&5
22990
22991ac_R_space=no
21d1c967 22992fi
e6cc62c6 22993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22994 if test $ac_R_space = yes; then
e6cc62c6
VS
22995 echo "$as_me:$LINENO: result: yes" >&5
22996echo "${ECHO_T}yes" >&6
21d1c967
GD
22997 X_LIBS="$X_LIBS -R $x_libraries"
22998 else
e6cc62c6
VS
22999 echo "$as_me:$LINENO: result: neither works" >&5
23000echo "${ECHO_T}neither works" >&6
21d1c967
GD
23001 fi
23002 fi
e6cc62c6 23003 LIBS=$ac_xsave_LIBS
21d1c967
GD
23004 esac
23005 fi
90dd450c 23006
21d1c967
GD
23007 # Check for system-dependent libraries X programs must link with.
23008 # Do this before checking for the system-independent R6 libraries
23009 # (-lICE), since we may need -lsocket or whatever for X linking.
23010
23011 if test "$ISC" = yes; then
23012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23013 else
e6cc62c6
VS
23014 # Martyn Johnson says this is needed for Ultrix, if the X
23015 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23016 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23017 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23018 cat >conftest.$ac_ext <<_ACEOF
23019#line $LINENO "configure"
23020/* confdefs.h. */
23021_ACEOF
23022cat confdefs.h >>conftest.$ac_ext
23023cat >>conftest.$ac_ext <<_ACEOF
23024/* end confdefs.h. */
23025
247f5006 23026/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23027#ifdef __cplusplus
23028extern "C"
23029#endif
247f5006 23030/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23031 builtin and then its argument prototype would still apply. */
23032char XOpenDisplay ();
23033int
23034main ()
23035{
23036XOpenDisplay ();
23037 ;
23038 return 0;
23039}
23040_ACEOF
23041rm -f conftest.$ac_objext conftest$ac_exeext
23042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23043 (eval $ac_link) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } &&
23047 { ac_try='test -s conftest$ac_exeext'
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 :
23054else
23055 echo "$as_me: failed program was:" >&5
23056sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23057
e6cc62c6
VS
23058echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23059echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23060if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23062else
e6cc62c6
VS
23063 ac_check_lib_save_LIBS=$LIBS
23064LIBS="-ldnet $LIBS"
23065cat >conftest.$ac_ext <<_ACEOF
23066#line $LINENO "configure"
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
a0b9e27f 23072
e6cc62c6
VS
23073/* Override any gcc2 internal prototype to avoid an error. */
23074#ifdef __cplusplus
23075extern "C"
23076#endif
23077/* We use char because int might match the return type of a gcc2
23078 builtin and then its argument prototype would still apply. */
23079char dnet_ntoa ();
23080int
23081main ()
23082{
23083dnet_ntoa ();
23084 ;
23085 return 0;
23086}
23087_ACEOF
23088rm -f conftest.$ac_objext conftest$ac_exeext
23089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23090 (eval $ac_link) 2>&5
23091 ac_status=$?
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } &&
23094 { ac_try='test -s conftest$ac_exeext'
23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); }; }; then
23100 ac_cv_lib_dnet_dnet_ntoa=yes
23101else
23102 echo "$as_me: failed program was:" >&5
23103sed 's/^/| /' conftest.$ac_ext >&5
23104
23105ac_cv_lib_dnet_dnet_ntoa=no
23106fi
23107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23108LIBS=$ac_check_lib_save_LIBS
23109fi
23110echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23111echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23112if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23114fi
0fb0dd83 23115
21d1c967 23116 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23117 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23118echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23119if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23121else
e6cc62c6 23122 ac_check_lib_save_LIBS=$LIBS
21d1c967 23123LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23124cat >conftest.$ac_ext <<_ACEOF
23125#line $LINENO "configure"
23126/* confdefs.h. */
23127_ACEOF
23128cat confdefs.h >>conftest.$ac_ext
23129cat >>conftest.$ac_ext <<_ACEOF
23130/* end confdefs.h. */
23131
21d1c967 23132/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23133#ifdef __cplusplus
23134extern "C"
23135#endif
21d1c967 23136/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23137 builtin and then its argument prototype would still apply. */
23138char dnet_ntoa ();
23139int
23140main ()
23141{
23142dnet_ntoa ();
23143 ;
23144 return 0;
23145}
23146_ACEOF
23147rm -f conftest.$ac_objext conftest$ac_exeext
23148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149 (eval $ac_link) 2>&5
23150 ac_status=$?
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -s conftest$ac_exeext'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23156 ac_status=$?
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23160else
23161 echo "$as_me: failed program was:" >&5
23162sed 's/^/| /' conftest.$ac_ext >&5
23163
23164ac_cv_lib_dnet_stub_dnet_ntoa=no
23165fi
23166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23167LIBS=$ac_check_lib_save_LIBS
23168fi
23169echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23170echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23171if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23172 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23173fi
23174
21d1c967 23175 fi
e6cc62c6
VS
23176fi
23177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23178 LIBS="$ac_xsave_LIBS"
90dd450c 23179
21d1c967
GD
23180 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23181 # to get the SysV transport functions.
e6cc62c6 23182 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23183 # needs -lnsl.
23184 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23185 # on Irix 5.2, according to T.E. Dickey.
23186 # The functions gethostbyname, getservbyname, and inet_addr are
23187 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23188 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23189echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23190if test "${ac_cv_func_gethostbyname+set}" = set; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23192else
23193 cat >conftest.$ac_ext <<_ACEOF
23194#line $LINENO "configure"
23195/* confdefs.h. */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>conftest.$ac_ext <<_ACEOF
23199/* end confdefs.h. */
21d1c967 23200/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23201 which can conflict with char gethostbyname (); below.
23202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23203 <limits.h> exists even on freestanding compilers. */
23204#ifdef __STDC__
23205# include <limits.h>
23206#else
23207# include <assert.h>
23208#endif
21d1c967 23209/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23210#ifdef __cplusplus
23211extern "C"
23212{
23213#endif
21d1c967 23214/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23215 builtin and then its argument prototype would still apply. */
23216char gethostbyname ();
21d1c967
GD
23217/* The GNU C library defines this for functions which it implements
23218 to always fail with ENOSYS. Some functions are actually named
23219 something starting with __ and the normal name is an alias. */
23220#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23221choke me
23222#else
e6cc62c6
VS
23223char (*f) () = gethostbyname;
23224#endif
23225#ifdef __cplusplus
23226}
21d1c967 23227#endif
90dd450c 23228
e6cc62c6
VS
23229int
23230main ()
23231{
23232return f != gethostbyname;
23233 ;
23234 return 0;
23235}
23236_ACEOF
23237rm -f conftest.$ac_objext conftest$ac_exeext
23238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } &&
23243 { ac_try='test -s conftest$ac_exeext'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }; then
23249 ac_cv_func_gethostbyname=yes
23250else
23251 echo "$as_me: failed program was:" >&5
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
23254ac_cv_func_gethostbyname=no
23255fi
23256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23257fi
23258echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23259echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23260
21d1c967 23261 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23262 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23263echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23264if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23266else
e6cc62c6 23267 ac_check_lib_save_LIBS=$LIBS
21d1c967 23268LIBS="-lnsl $LIBS"
e6cc62c6
VS
23269cat >conftest.$ac_ext <<_ACEOF
23270#line $LINENO "configure"
23271/* confdefs.h. */
23272_ACEOF
23273cat confdefs.h >>conftest.$ac_ext
23274cat >>conftest.$ac_ext <<_ACEOF
23275/* end confdefs.h. */
23276
21d1c967 23277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23278#ifdef __cplusplus
23279extern "C"
23280#endif
21d1c967 23281/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23282 builtin and then its argument prototype would still apply. */
23283char gethostbyname ();
23284int
23285main ()
23286{
23287gethostbyname ();
23288 ;
23289 return 0;
23290}
23291_ACEOF
23292rm -f conftest.$ac_objext conftest$ac_exeext
23293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23294 (eval $ac_link) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
23298 { ac_try='test -s conftest$ac_exeext'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_lib_nsl_gethostbyname=yes
23305else
23306 echo "$as_me: failed program was:" >&5
23307sed 's/^/| /' conftest.$ac_ext >&5
23308
23309ac_cv_lib_nsl_gethostbyname=no
23310fi
23311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23312LIBS=$ac_check_lib_save_LIBS
23313fi
23314echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23315echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23316if test $ac_cv_lib_nsl_gethostbyname = yes; then
23317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23318fi
247f5006 23319
e6cc62c6
VS
23320 if test $ac_cv_lib_nsl_gethostbyname = no; then
23321 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23322echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23323if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23325else
e6cc62c6
VS
23326 ac_check_lib_save_LIBS=$LIBS
23327LIBS="-lbsd $LIBS"
23328cat >conftest.$ac_ext <<_ACEOF
23329#line $LINENO "configure"
23330/* confdefs.h. */
23331_ACEOF
23332cat confdefs.h >>conftest.$ac_ext
23333cat >>conftest.$ac_ext <<_ACEOF
23334/* end confdefs.h. */
23335
23336/* Override any gcc2 internal prototype to avoid an error. */
23337#ifdef __cplusplus
23338extern "C"
23339#endif
23340/* We use char because int might match the return type of a gcc2
23341 builtin and then its argument prototype would still apply. */
23342char gethostbyname ();
23343int
23344main ()
23345{
23346gethostbyname ();
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext conftest$ac_exeext
23352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353 (eval $ac_link) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try='test -s conftest$ac_exeext'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_lib_bsd_gethostbyname=yes
23364else
23365 echo "$as_me: failed program was:" >&5
23366sed 's/^/| /' conftest.$ac_ext >&5
23367
23368ac_cv_lib_bsd_gethostbyname=no
23369fi
23370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23371LIBS=$ac_check_lib_save_LIBS
23372fi
23373echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23374echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23375if test $ac_cv_lib_bsd_gethostbyname = yes; then
23376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23377fi
90dd450c 23378
e6cc62c6 23379 fi
90dd450c
VZ
23380 fi
23381
21d1c967
GD
23382 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23383 # socket/setsockopt and other routines are undefined under SCO ODT
23384 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23385 # on later versions), says Simon Leinen: it contains gethostby*
23386 # variants that don't use the name server (or something). -lsocket
23387 # must be given before -lnsl if both are needed. We assume that
23388 # if connect needs -lnsl, so does gethostbyname.
23389 echo "$as_me:$LINENO: checking for connect" >&5
23390echo $ECHO_N "checking for connect... $ECHO_C" >&6
23391if test "${ac_cv_func_connect+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23393else
23394 cat >conftest.$ac_ext <<_ACEOF
23395#line $LINENO "configure"
23396/* confdefs.h. */
23397_ACEOF
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h. */
21d1c967 23401/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23402 which can conflict with char connect (); below.
23403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23404 <limits.h> exists even on freestanding compilers. */
23405#ifdef __STDC__
23406# include <limits.h>
23407#else
23408# include <assert.h>
23409#endif
21d1c967 23410/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23411#ifdef __cplusplus
23412extern "C"
23413{
23414#endif
21d1c967 23415/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23416 builtin and then its argument prototype would still apply. */
23417char connect ();
21d1c967
GD
23418/* The GNU C library defines this for functions which it implements
23419 to always fail with ENOSYS. Some functions are actually named
23420 something starting with __ and the normal name is an alias. */
23421#if defined (__stub_connect) || defined (__stub___connect)
23422choke me
23423#else
e6cc62c6
VS
23424char (*f) () = connect;
23425#endif
23426#ifdef __cplusplus
23427}
21d1c967 23428#endif
90dd450c 23429
e6cc62c6
VS
23430int
23431main ()
23432{
23433return f != connect;
23434 ;
23435 return 0;
23436}
23437_ACEOF
23438rm -f conftest.$ac_objext conftest$ac_exeext
23439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>&5
23441 ac_status=$?
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } &&
23444 { ac_try='test -s conftest$ac_exeext'
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_func_connect=yes
23451else
23452 echo "$as_me: failed program was:" >&5
23453sed 's/^/| /' conftest.$ac_ext >&5
23454
23455ac_cv_func_connect=no
23456fi
23457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23458fi
23459echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23460echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23461
21d1c967 23462 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23463 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23464echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23465if test "${ac_cv_lib_socket_connect+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23467else
e6cc62c6 23468 ac_check_lib_save_LIBS=$LIBS
21d1c967 23469LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23470cat >conftest.$ac_ext <<_ACEOF
23471#line $LINENO "configure"
23472/* confdefs.h. */
23473_ACEOF
23474cat confdefs.h >>conftest.$ac_ext
23475cat >>conftest.$ac_ext <<_ACEOF
23476/* end confdefs.h. */
23477
21d1c967 23478/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23479#ifdef __cplusplus
23480extern "C"
23481#endif
21d1c967 23482/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23483 builtin and then its argument prototype would still apply. */
23484char connect ();
23485int
23486main ()
23487{
23488connect ();
23489 ;
23490 return 0;
23491}
23492_ACEOF
23493rm -f conftest.$ac_objext conftest$ac_exeext
23494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23495 (eval $ac_link) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } &&
23499 { ac_try='test -s conftest$ac_exeext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_lib_socket_connect=yes
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510ac_cv_lib_socket_connect=no
23511fi
23512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23513LIBS=$ac_check_lib_save_LIBS
23514fi
23515echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23516echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23517if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23518 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23519fi
90dd450c 23520
21d1c967 23521 fi
90dd450c 23522
e6cc62c6
VS
23523 # Guillermo Gomez says -lposix is necessary on A/UX.
23524 echo "$as_me:$LINENO: checking for remove" >&5
23525echo $ECHO_N "checking for remove... $ECHO_C" >&6
23526if test "${ac_cv_func_remove+set}" = set; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23528else
23529 cat >conftest.$ac_ext <<_ACEOF
23530#line $LINENO "configure"
23531/* confdefs.h. */
23532_ACEOF
23533cat confdefs.h >>conftest.$ac_ext
23534cat >>conftest.$ac_ext <<_ACEOF
23535/* end confdefs.h. */
21d1c967 23536/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23537 which can conflict with char remove (); below.
23538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23539 <limits.h> exists even on freestanding compilers. */
23540#ifdef __STDC__
23541# include <limits.h>
23542#else
23543# include <assert.h>
23544#endif
21d1c967 23545/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23546#ifdef __cplusplus
23547extern "C"
23548{
23549#endif
21d1c967 23550/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23551 builtin and then its argument prototype would still apply. */
23552char remove ();
21d1c967
GD
23553/* The GNU C library defines this for functions which it implements
23554 to always fail with ENOSYS. Some functions are actually named
23555 something starting with __ and the normal name is an alias. */
23556#if defined (__stub_remove) || defined (__stub___remove)
23557choke me
23558#else
e6cc62c6
VS
23559char (*f) () = remove;
23560#endif
23561#ifdef __cplusplus
23562}
21d1c967 23563#endif
90dd450c 23564
e6cc62c6
VS
23565int
23566main ()
23567{
23568return f != remove;
23569 ;
23570 return 0;
23571}
23572_ACEOF
23573rm -f conftest.$ac_objext conftest$ac_exeext
23574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23575 (eval $ac_link) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
23579 { ac_try='test -s conftest$ac_exeext'
23580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; }; then
23585 ac_cv_func_remove=yes
23586else
23587 echo "$as_me: failed program was:" >&5
23588sed 's/^/| /' conftest.$ac_ext >&5
23589
23590ac_cv_func_remove=no
23591fi
23592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23593fi
23594echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23595echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23596
21d1c967 23597 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23598 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23599echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23600if test "${ac_cv_lib_posix_remove+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23602else
e6cc62c6 23603 ac_check_lib_save_LIBS=$LIBS
21d1c967 23604LIBS="-lposix $LIBS"
e6cc62c6
VS
23605cat >conftest.$ac_ext <<_ACEOF
23606#line $LINENO "configure"
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612
21d1c967 23613/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23614#ifdef __cplusplus
23615extern "C"
23616#endif
21d1c967 23617/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23618 builtin and then its argument prototype would still apply. */
23619char remove ();
23620int
23621main ()
23622{
23623remove ();
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext conftest$ac_exeext
23629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630 (eval $ac_link) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
23634 { ac_try='test -s conftest$ac_exeext'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ac_cv_lib_posix_remove=yes
23641else
23642 echo "$as_me: failed program was:" >&5
23643sed 's/^/| /' conftest.$ac_ext >&5
23644
23645ac_cv_lib_posix_remove=no
23646fi
23647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23648LIBS=$ac_check_lib_save_LIBS
23649fi
23650echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23651echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23652if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23653 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23654fi
19bc6aad 23655
90dd450c 23656 fi
19bc6aad 23657
21d1c967 23658 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23659 echo "$as_me:$LINENO: checking for shmat" >&5
23660echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23661if test "${ac_cv_func_shmat+set}" = set; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23663else
23664 cat >conftest.$ac_ext <<_ACEOF
23665#line $LINENO "configure"
23666/* confdefs.h. */
23667_ACEOF
23668cat confdefs.h >>conftest.$ac_ext
23669cat >>conftest.$ac_ext <<_ACEOF
23670/* end confdefs.h. */
21d1c967 23671/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23672 which can conflict with char shmat (); below.
23673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23674 <limits.h> exists even on freestanding compilers. */
23675#ifdef __STDC__
23676# include <limits.h>
23677#else
23678# include <assert.h>
23679#endif
21d1c967 23680/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23681#ifdef __cplusplus
23682extern "C"
23683{
23684#endif
21d1c967 23685/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23686 builtin and then its argument prototype would still apply. */
23687char shmat ();
21d1c967
GD
23688/* The GNU C library defines this for functions which it implements
23689 to always fail with ENOSYS. Some functions are actually named
23690 something starting with __ and the normal name is an alias. */
23691#if defined (__stub_shmat) || defined (__stub___shmat)
23692choke me
23693#else
e6cc62c6
VS
23694char (*f) () = shmat;
23695#endif
23696#ifdef __cplusplus
23697}
21d1c967 23698#endif
90dd450c 23699
e6cc62c6
VS
23700int
23701main ()
23702{
23703return f != shmat;
23704 ;
23705 return 0;
23706}
23707_ACEOF
23708rm -f conftest.$ac_objext conftest$ac_exeext
23709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23710 (eval $ac_link) 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -s conftest$ac_exeext'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 ac_cv_func_shmat=yes
23721else
23722 echo "$as_me: failed program was:" >&5
23723sed 's/^/| /' conftest.$ac_ext >&5
23724
23725ac_cv_func_shmat=no
23726fi
23727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23728fi
23729echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23730echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23731
21d1c967 23732 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23733 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23734echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23735if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23736 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23737else
e6cc62c6 23738 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23739LIBS="-lipc $LIBS"
e6cc62c6
VS
23740cat >conftest.$ac_ext <<_ACEOF
23741#line $LINENO "configure"
23742/* confdefs.h. */
23743_ACEOF
23744cat confdefs.h >>conftest.$ac_ext
23745cat >>conftest.$ac_ext <<_ACEOF
23746/* end confdefs.h. */
23747
5c6fa7d2 23748/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23749#ifdef __cplusplus
23750extern "C"
23751#endif
5c6fa7d2 23752/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23753 builtin and then its argument prototype would still apply. */
23754char shmat ();
23755int
23756main ()
23757{
23758shmat ();
23759 ;
23760 return 0;
23761}
23762_ACEOF
23763rm -f conftest.$ac_objext conftest$ac_exeext
23764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23765 (eval $ac_link) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -s conftest$ac_exeext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_lib_ipc_shmat=yes
23776else
23777 echo "$as_me: failed program was:" >&5
23778sed 's/^/| /' conftest.$ac_ext >&5
23779
23780ac_cv_lib_ipc_shmat=no
23781fi
23782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23783LIBS=$ac_check_lib_save_LIBS
23784fi
23785echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23786echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23787if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23789fi
90dd450c 23790
90dd450c 23791 fi
21d1c967 23792 fi
10f2d63a 23793
21d1c967 23794 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23795 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23796 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23797 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23798 # check for ICE first), but we must link in the order -lSM -lICE or
23799 # we get undefined symbols. So assume we have SM if we have ICE.
23800 # These have to be linked with before -lX11, unlike the other
23801 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23802 # John Interrante, Karl Berry
23803 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23804echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23805if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23807else
23808 ac_check_lib_save_LIBS=$LIBS
f09359cf 23809LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23810cat >conftest.$ac_ext <<_ACEOF
23811#line $LINENO "configure"
23812/* confdefs.h. */
23813_ACEOF
23814cat confdefs.h >>conftest.$ac_ext
23815cat >>conftest.$ac_ext <<_ACEOF
23816/* end confdefs.h. */
23817
21d1c967 23818/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23819#ifdef __cplusplus
23820extern "C"
23821#endif
21d1c967 23822/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23823 builtin and then its argument prototype would still apply. */
23824char IceConnectionNumber ();
23825int
23826main ()
23827{
23828IceConnectionNumber ();
23829 ;
23830 return 0;
23831}
23832_ACEOF
23833rm -f conftest.$ac_objext conftest$ac_exeext
23834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835 (eval $ac_link) 2>&5
23836 ac_status=$?
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
23839 { ac_try='test -s conftest$ac_exeext'
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; }; then
23845 ac_cv_lib_ICE_IceConnectionNumber=yes
23846else
23847 echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850ac_cv_lib_ICE_IceConnectionNumber=no
23851fi
23852rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23853LIBS=$ac_check_lib_save_LIBS
23854fi
23855echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23856echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23857if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23858 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23859fi
21d1c967 23860
e6cc62c6 23861 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23862
10f2d63a
VZ
23863fi
23864
8284b0c5 23865
21d1c967 23866 if test "$no_x" = "yes"; then
e6cc62c6
VS
23867 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23868echo "$as_me: error: X11 not found" >&2;}
23869 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23870 fi
23871
2b5f62a0
VZ
23872 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23873 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23874 AFMINSTALL=afminstall
23875 COMPILED_X_PROGRAM=0
23876
e6cc62c6
VS
23877 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23878echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23879
21d1c967 23880ac_find_includes=
2b5f62a0 23881for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23882 do
23883 if test -f "$ac_dir/Xm/Xm.h"; then
23884 ac_find_includes=$ac_dir
23885 break
23886 fi
23887 done
23888
23889 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23890 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23891echo "${ECHO_T}found in $ac_find_includes" >&6
23892
2b5f62a0 23893 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23894 ac_path_to_include=""
23895 else
2b5f62a0
VZ
23896 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23897 result=$?
23898 if test $result = 0; then
23899 ac_path_to_include=""
23900 else
23901 ac_path_to_include=" -I$ac_find_includes"
23902 fi
dd0e4a90
VZ
23903 fi
23904
23905 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23906 else
e6cc62c6
VS
23907 cat >conftest.$ac_ext <<_ACEOF
23908#line $LINENO "configure"
23909/* confdefs.h. */
23910_ACEOF
23911cat confdefs.h >>conftest.$ac_ext
23912cat >>conftest.$ac_ext <<_ACEOF
23913/* end confdefs.h. */
21d1c967
GD
23914
23915 #include <Xm/Xm.h>
e6cc62c6
VS
23916
23917int
23918main ()
23919{
21d1c967
GD
23920
23921 int version;
23922 version = xmUseVersion;
e6cc62c6
VS
23923
23924 ;
23925 return 0;
23926}
23927_ACEOF
23928rm -f conftest.$ac_objext
23929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23930 (eval $ac_compile) 2>&5
23931 ac_status=$?
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } &&
23934 { ac_try='test -s conftest.$ac_objext'
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; }; then
23940
23941 echo "$as_me:$LINENO: result: found in default search path" >&5
23942echo "${ECHO_T}found in default search path" >&6
21d1c967 23943 COMPILED_X_PROGRAM=1
e6cc62c6 23944
10f2d63a 23945else
e6cc62c6
VS
23946 echo "$as_me: failed program was:" >&5
23947sed 's/^/| /' conftest.$ac_ext >&5
23948
23949
23950 echo "$as_me:$LINENO: result: no" >&5
23951echo "${ECHO_T}no" >&6
23952 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23953echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23954 { (exit 1); exit 1; }; }
23955
23956
10f2d63a 23957fi
e6cc62c6 23958rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23959 fi
10f2d63a 23960
21d1c967 23961 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23962 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23963echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23964
21d1c967 23965ac_find_libraries=
2b5f62a0 23966for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23967 do
23968 for ac_extension in a so sl dylib; do
23969 if test -f "$ac_dir/libXm.$ac_extension"; then
23970 ac_find_libraries=$ac_dir
23971 break 2
23972 fi
23973 done
23974 done
23975
23976 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23977 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23978echo "${ECHO_T}found at $ac_find_libraries" >&6
23979
21d1c967 23980
21d1c967
GD
23981 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23982 result=$?
23983 if test $result = 0; then
23984 ac_path_to_link=""
23985 else
23986 ac_path_to_link=" -L$ac_find_libraries"
23987 fi
23988
21d1c967 23989 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23990 else
dd0e4a90
VZ
23991 save_CFLAGS=$CFLAGS
23992 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23993
e6cc62c6
VS
23994 cat >conftest.$ac_ext <<_ACEOF
23995#line $LINENO "configure"
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
21d1c967
GD
24001
24002 #include <Xm/Xm.h>
e6cc62c6
VS
24003
24004int
24005main ()
24006{
21d1c967
GD
24007
24008 int version;
24009 version = xmUseVersion;
e6cc62c6
VS
24010
24011 ;
24012 return 0;
24013}
24014_ACEOF
24015rm -f conftest.$ac_objext
24016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24017 (eval $ac_compile) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
24021 { ac_try='test -s conftest.$ac_objext'
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24024 ac_status=$?
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027
24028 echo "$as_me:$LINENO: result: found in default search path" >&5
24029echo "${ECHO_T}found in default search path" >&6
21d1c967 24030 COMPILED_X_PROGRAM=1
e6cc62c6 24031
d836ee96 24032else
e6cc62c6
VS
24033 echo "$as_me: failed program was:" >&5
24034sed 's/^/| /' conftest.$ac_ext >&5
24035
24036
24037 echo "$as_me:$LINENO: result: no" >&5
24038echo "${ECHO_T}no" >&6
24039 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24040echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24041 { (exit 1); exit 1; }; }
24042
24043
d836ee96 24044fi
e6cc62c6 24045rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24046
24047 CFLAGS=$save_CFLAGS
21d1c967
GD
24048 fi
24049 fi
24050
24051 xpm_link=
e6cc62c6
VS
24052 echo "$as_me:$LINENO: checking for Xpm library" >&5
24053echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24054
21d1c967 24055ac_find_libraries=
2b5f62a0 24056for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24057 do
24058 for ac_extension in a so sl dylib; do
24059 if test -f "$ac_dir/libXpm.$ac_extension"; then
24060 ac_find_libraries=$ac_dir
24061 break 2
24062 fi
24063 done
24064 done
24065
24066 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24067
21d1c967
GD
24068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24069 result=$?
24070 if test $result = 0; then
24071 ac_path_to_link=""
24072 else
24073 ac_path_to_link=" -L$ac_find_libraries"
24074 fi
24075
24076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24077
21d1c967 24078 xpm_link=" -lXpm"
e6cc62c6 24079 cat >>confdefs.h <<\_ACEOF
21d1c967 24080#define wxHAVE_LIB_XPM 1
e6cc62c6 24081_ACEOF
90dd450c 24082
e6cc62c6
VS
24083 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24084echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24085 else
dd0e4a90
VZ
24086 save_CFLAGS=$CFLAGS
24087 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24088
e6cc62c6
VS
24089 cat >conftest.$ac_ext <<_ACEOF
24090#line $LINENO "configure"
24091/* confdefs.h. */
24092_ACEOF
24093cat confdefs.h >>conftest.$ac_ext
24094cat >>conftest.$ac_ext <<_ACEOF
24095/* end confdefs.h. */
21d1c967
GD
24096
24097 #include <X11/xpm.h>
e6cc62c6
VS
24098
24099int
24100main ()
24101{
21d1c967
GD
24102
24103 int version;
24104 version = XpmLibraryVersion();
e6cc62c6
VS
24105
24106 ;
24107 return 0;
24108}
24109_ACEOF
24110rm -f conftest.$ac_objext
24111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24112 (eval $ac_compile) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } &&
24116 { ac_try='test -s conftest.$ac_objext'
24117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24118 (eval $ac_try) 2>&5
24119 ac_status=$?
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); }; }; then
24122
21d1c967 24123 xpm_link=" -lXpm"
e6cc62c6 24124 cat >>confdefs.h <<\_ACEOF
21d1c967 24125#define wxHAVE_LIB_XPM 1
e6cc62c6 24126_ACEOF
21d1c967 24127
e6cc62c6
VS
24128 echo "$as_me:$LINENO: result: found in default search path" >&5
24129echo "${ECHO_T}found in default search path" >&6
21d1c967 24130 COMPILED_X_PROGRAM=0
e6cc62c6 24131
d836ee96 24132else
e6cc62c6
VS
24133 echo "$as_me: failed program was:" >&5
24134sed 's/^/| /' conftest.$ac_ext >&5
24135
24136
24137 echo "$as_me:$LINENO: result: no" >&5
24138echo "${ECHO_T}no" >&6
24139 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24140echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24141
24142
d836ee96 24143fi
e6cc62c6 24144rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24145
24146 CFLAGS=$save_CFLAGS
21d1c967
GD
24147 fi
24148
e6cc62c6
VS
24149 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24150echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24151 libp_link=""
24152 libsm_ice_link=""
24153 libs_found=0
24154 for libp in "" " -lXp"; do
24155 if test "$libs_found" = "0"; then
7015ef3a 24156 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24157 if test "$libs_found" = "0"; then
6a30f1c8
MB
24158 save_LIBS="$LIBS"
24159 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24160 save_CFLAGS=$CFLAGS
24161 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24162
e6cc62c6
VS
24163 cat >conftest.$ac_ext <<_ACEOF
24164#line $LINENO "configure"
24165/* confdefs.h. */
24166_ACEOF
24167cat confdefs.h >>conftest.$ac_ext
24168cat >>conftest.$ac_ext <<_ACEOF
24169/* end confdefs.h. */
17234b26 24170
6a30f1c8
MB
24171 #include <Xm/Xm.h>
24172 #include <Xm/List.h>
e6cc62c6
VS
24173
24174int
24175main ()
24176{
6a30f1c8
MB
24177
24178 XmString string = NULL;
24179 Widget w = NULL;
24180 int position = 0;
24181 XmListAddItem(w, string, position);
e6cc62c6
VS
24182
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187rm -f conftest.$ac_objext conftest$ac_exeext
24188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24189 (eval $ac_link) 2>&5
24190 ac_status=$?
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } &&
24193 { ac_try='test -s conftest$ac_exeext'
24194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
24199
6a30f1c8
MB
24200 libp_link="$libp"
24201 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24202 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24203echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24204 libs_found=1
e6cc62c6 24205
6a30f1c8 24206else
e6cc62c6
VS
24207 echo "$as_me: failed program was:" >&5
24208sed 's/^/| /' conftest.$ac_ext >&5
24209
24210
24211
6a30f1c8 24212fi
e6cc62c6 24213rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24214
6a30f1c8 24215 LIBS="$save_LIBS"
dd0e4a90 24216 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24217 fi
24218 done
24219 fi
24220 done
24221
24222 if test "$libs_found" = "0"; then
e6cc62c6
VS
24223 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24224echo "${ECHO_T}can't find the right libraries" >&6
24225 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24226echo "$as_me: error: can't link a simple motif program" >&2;}
24227 { (exit 1); exit 1; }; }
6a30f1c8
MB
24228 fi
24229
da494b40
MB
24230 save_CFLAGS=$CFLAGS
24231 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24232 echo "$as_me:$LINENO: checking for Motif 2" >&5
24233echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24234 cat >conftest.$ac_ext <<_ACEOF
24235#line $LINENO "configure"
24236/* confdefs.h. */
24237_ACEOF
24238cat confdefs.h >>conftest.$ac_ext
24239cat >>conftest.$ac_ext <<_ACEOF
24240/* end confdefs.h. */
da494b40
MB
24241
24242 #include <Xm/Xm.h>
e6cc62c6
VS
24243
24244int
24245main ()
24246{
da494b40
MB
24247
24248 #if XmVersion < 2000
24249 #error "Not Motif 2"
24250 #endif
e6cc62c6
VS
24251
24252 ;
24253 return 0;
24254}
24255_ACEOF
24256rm -f conftest.$ac_objext
24257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 (eval $ac_compile) 2>&5
24259 ac_status=$?
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } &&
24262 { ac_try='test -s conftest.$ac_objext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268
24269 cat >>confdefs.h <<\_ACEOF
da494b40 24270#define __WXMOTIF20__ 1
e6cc62c6
VS
24271_ACEOF
24272
24273 echo "$as_me:$LINENO: result: found" >&5
24274echo "${ECHO_T}found" >&6
da494b40 24275
da494b40 24276else
e6cc62c6
VS
24277 echo "$as_me: failed program was:" >&5
24278sed 's/^/| /' conftest.$ac_ext >&5
24279
24280
24281 cat >>confdefs.h <<\_ACEOF
da494b40 24282#define __WXMOTIF20__ 0
e6cc62c6
VS
24283_ACEOF
24284
24285 echo "$as_me:$LINENO: result: not found" >&5
24286echo "${ECHO_T}not found" >&6
da494b40 24287
da494b40 24288fi
e6cc62c6 24289rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24290 CFLAGS=$save_CFLAGS
24291
6a30f1c8 24292 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24293 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24294 TOOLKIT=MOTIF
24295 GUIDIST=MOTIF_DIST
f7f78039
MB
24296 wxHAVE_XEXT_LIB=1
24297 fi
24298
24299 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24300 test "$wxHAVE_XEXT_LIB" = 1; then
24301 save_CFLAGS="$CFLAGS"
24302 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24303
e6cc62c6
VS
24304 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24305echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24307#line $LINENO "configure"
24308/* confdefs.h. */
24309_ACEOF
24310cat confdefs.h >>conftest.$ac_ext
24311cat >>conftest.$ac_ext <<_ACEOF
24312/* end confdefs.h. */
24313
24314 #include <X11/Xlib.h>
f7f78039 24315 #include <X11/extensions/shape.h>
e6cc62c6
VS
24316
24317int
24318main ()
24319{
f7f78039
MB
24320
24321 int dummy1, dummy2;
24322 XShapeQueryExtension((Display*)NULL,
24323 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24324
24325 ;
24326 return 0;
24327}
24328_ACEOF
24329rm -f conftest.$ac_objext
24330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24331 (eval $ac_compile) 2>&5
24332 ac_status=$?
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -s conftest.$ac_objext'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24341
24342 cat >>confdefs.h <<\_ACEOF
f7f78039 24343#define HAVE_XSHAPE 1
e6cc62c6
VS
24344_ACEOF
24345
24346 echo "$as_me:$LINENO: result: found" >&5
24347echo "${ECHO_T}found" >&6
f7f78039 24348
f7f78039 24349else
e6cc62c6
VS
24350 echo "$as_me: failed program was:" >&5
24351sed 's/^/| /' conftest.$ac_ext >&5
24352
24353
24354 echo "$as_me:$LINENO: result: not found" >&5
24355echo "${ECHO_T}not found" >&6
24356
f7f78039 24357fi
e6cc62c6 24358rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24359 CFLAGS="$save_CFLAGS"
21d1c967
GD
24360 fi
24361
24362 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24363 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24364echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24365 if test "$GCC" = yes; then
24366 echo "$as_me:$LINENO: result: gcc" >&5
24367echo "${ECHO_T}gcc" >&6
24368 CPPFLAGS_PASCAL="-fpascal-strings"
24369 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24370 echo "$as_me:$LINENO: result: xlc" >&5
24371echo "${ECHO_T}xlc" >&6
24372 CPPFLAGS_PASCAL="-qmacpstr"
24373 else
24374 echo "$as_me:$LINENO: result: none" >&5
24375echo "${ECHO_T}none" >&6
24376 fi
24377
24378 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24379
0c98a14e 24380 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24381 TOOLKIT=MAC
24382 GUIDIST=MACX_DIST
cf615ebb 24383 WXBASEPORT="_carbon"
21d1c967
GD
24384 fi
24385
ac0c4cc3
DE
24386 if test "$wxUSE_COCOA" = 1; then
24387 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24388 TOOLKIT=COCOA
24389 GUIDIST=COCOA_DIST
24390 fi
24391
21d1c967
GD
24392 if test "$wxUSE_PM" = 1; then
24393 TOOLKIT=PM
24394 GUIDIST=GTK_DIST
24395 fi
24396
24397 if test "$TOOLKIT" = "PM" ; then
24398 TOOLKIT_DIR="os2"
24399 else
24400 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24401 fi
24402
24403 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24404
24405 if test "$wxUSE_UNIVERSAL" = "yes"; then
24406 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24407
24408 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24409 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24410
24411 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24412 if test "$wxUSE_X11" = 1; then
24413 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24414 else
24415 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24416 fi
24417 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24418 WIDGET_SET=univ
24419 else
24420 ALL_OBJECTS="\$(GUIOBJS)"
24421 ALL_SOURCES="\$(ALL_SOURCES)"
24422 ALL_HEADERS="\$(ALL_HEADERS)"
24423 fi
24424
24425 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24426
24427 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24428 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24429 fi
24430
24431 if test "$wxUSE_HTML" = "yes"; then
24432 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24433 fi
24434
24435 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24436 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24437 fi
24438 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24439 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24440 fi
24441 if test "$wxUSE_LIBPNG" = "builtin" ; then
24442 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24443 fi
24444
24445 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24446 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24447else
21d1c967
GD
24448 USE_GUI=0
24449
24450 TOOLKIT_DIR="base"
24451
24452 if test "$USE_WIN32" = 1 ; then
24453 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24454 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24455
24456 TOOLKIT="MSW"
24457 else
24458 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24459 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24460 fi
24461
24462 ALL_SOURCES="\$(ALL_SOURCES)"
24463 ALL_HEADERS="\$(ALL_HEADERS)"
24464
24465 PORT_FILES="\${top_srcdir}/src/files.lst"
24466
24467 GUIDIST="BASE_DIST"
24468 DISTDIR="wxBase"
d836ee96
VZ
24469fi
24470
8284b0c5 24471
8647bec6
RG
24472
24473
24474IODBC_C_SRC=""
24475
24476
24477if test "$TOOLKIT" != "MSW" ; then
24478
bb41dcbe 24479 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24480
bb41dcbe 24481 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24482 echo "$as_me:$LINENO: checking for sql.h" >&5
24483echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24484if test "${ac_cv_header_sql_h+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486fi
24487echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24488echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24489else
24490 # Is the header compilable?
24491echo "$as_me:$LINENO: checking sql.h usability" >&5
24492echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24493cat >conftest.$ac_ext <<_ACEOF
24494#line $LINENO "configure"
24495/* confdefs.h. */
24496_ACEOF
24497cat confdefs.h >>conftest.$ac_ext
24498cat >>conftest.$ac_ext <<_ACEOF
24499/* end confdefs.h. */
24500$ac_includes_default
8647bec6 24501#include <sql.h>
e6cc62c6
VS
24502_ACEOF
24503rm -f conftest.$ac_objext
24504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24505 (eval $ac_compile) 2>&5
24506 ac_status=$?
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } &&
24509 { ac_try='test -s conftest.$ac_objext'
24510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511 (eval $ac_try) 2>&5
24512 ac_status=$?
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); }; }; then
24515 ac_header_compiler=yes
24516else
24517 echo "$as_me: failed program was:" >&5
24518sed 's/^/| /' conftest.$ac_ext >&5
24519
24520ac_header_compiler=no
24521fi
24522rm -f conftest.$ac_objext conftest.$ac_ext
24523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24524echo "${ECHO_T}$ac_header_compiler" >&6
24525
24526# Is the header present?
24527echo "$as_me:$LINENO: checking sql.h presence" >&5
24528echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24529cat >conftest.$ac_ext <<_ACEOF
24530#line $LINENO "configure"
24531/* confdefs.h. */
24532_ACEOF
24533cat confdefs.h >>conftest.$ac_ext
24534cat >>conftest.$ac_ext <<_ACEOF
24535/* end confdefs.h. */
24536#include <sql.h>
24537_ACEOF
24538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24540 ac_status=$?
24541 grep -v '^ *+' conftest.er1 >conftest.err
24542 rm -f conftest.er1
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } >/dev/null; then
24546 if test -s conftest.err; then
24547 ac_cpp_err=$ac_c_preproc_warn_flag
24548 else
24549 ac_cpp_err=
24550 fi
24551else
24552 ac_cpp_err=yes
24553fi
24554if test -z "$ac_cpp_err"; then
24555 ac_header_preproc=yes
24556else
24557 echo "$as_me: failed program was:" >&5
24558sed 's/^/| /' conftest.$ac_ext >&5
24559
24560 ac_header_preproc=no
24561fi
24562rm -f conftest.err conftest.$ac_ext
24563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24564echo "${ECHO_T}$ac_header_preproc" >&6
24565
24566# So? What about this header?
24567case $ac_header_compiler:$ac_header_preproc in
24568 yes:no )
24569 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24570echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24571 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24572echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24573 (
24574 cat <<\_ASBOX
24575## ------------------------------------ ##
24576## Report this to bug-autoconf@gnu.org. ##
24577## ------------------------------------ ##
24578_ASBOX
24579 ) |
24580 sed "s/^/$as_me: WARNING: /" >&2
24581 ;;
24582 no:yes )
24583 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24584echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24586echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24588echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24589 (
24590 cat <<\_ASBOX
24591## ------------------------------------ ##
24592## Report this to bug-autoconf@gnu.org. ##
24593## ------------------------------------ ##
24594_ASBOX
24595 ) |
24596 sed "s/^/$as_me: WARNING: /" >&2
24597 ;;
24598esac
24599echo "$as_me:$LINENO: checking for sql.h" >&5
24600echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24601if test "${ac_cv_header_sql_h+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24603else
e6cc62c6
VS
24604 ac_cv_header_sql_h=$ac_header_preproc
24605fi
24606echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24607echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24608
bb41dcbe
VS
24609fi
24610if test $ac_cv_header_sql_h = yes; then
24611 found_sql_h=1
8647bec6
RG
24612fi
24613
e6cc62c6 24614
bb41dcbe 24615 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24616 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24617echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24618if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24619 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24620else
bb41dcbe 24621 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24622LIBS="-liodbc $LIBS"
e6cc62c6
VS
24623cat >conftest.$ac_ext <<_ACEOF
24624#line $LINENO "configure"
24625/* confdefs.h. */
24626_ACEOF
24627cat confdefs.h >>conftest.$ac_ext
24628cat >>conftest.$ac_ext <<_ACEOF
24629/* end confdefs.h. */
24630
8647bec6 24631/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24632#ifdef __cplusplus
24633extern "C"
24634#endif
8647bec6 24635/* We use char because int might match the return type of a gcc2
e6cc62c6 24636 builtin and then its argument prototype would still apply. */
e46d2a18 24637char SQLAllocEnv ();
e6cc62c6
VS
24638int
24639main ()
24640{
e46d2a18 24641SQLAllocEnv ();
e6cc62c6
VS
24642 ;
24643 return 0;
24644}
24645_ACEOF
24646rm -f conftest.$ac_objext conftest$ac_exeext
24647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24648 (eval $ac_link) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); } &&
24652 { ac_try='test -s conftest$ac_exeext'
24653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654 (eval $ac_try) 2>&5
24655 ac_status=$?
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); }; }; then
e46d2a18 24658 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24659else
e6cc62c6
VS
24660 echo "$as_me: failed program was:" >&5
24661sed 's/^/| /' conftest.$ac_ext >&5
24662
e46d2a18 24663ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24664fi
e6cc62c6 24665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24666LIBS=$ac_check_lib_save_LIBS
24667fi
e46d2a18
VS
24668echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24669echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24670if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24671 ODBC_LINK=" -liodbc"
24672else
24673
e46d2a18
VS
24674 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24675echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24676if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24678else
24679 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24680LIBS="-lunixodbc $LIBS"
bb41dcbe 24681cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24682#line $LINENO "configure"
24683/* confdefs.h. */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h. */
24688
8647bec6 24689/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24690#ifdef __cplusplus
24691extern "C"
24692#endif
8647bec6 24693/* We use char because int might match the return type of a gcc2
e6cc62c6 24694 builtin and then its argument prototype would still apply. */
e46d2a18 24695char SQLAllocEnv ();
e6cc62c6
VS
24696int
24697main ()
24698{
e46d2a18 24699SQLAllocEnv ();
e6cc62c6
VS
24700 ;
24701 return 0;
24702}
24703_ACEOF
24704rm -f conftest.$ac_objext conftest$ac_exeext
24705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24706 (eval $ac_link) 2>&5
24707 ac_status=$?
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } &&
24710 { ac_try='test -s conftest$ac_exeext'
24711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); }; }; then
e46d2a18 24716 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 24717else
e6cc62c6
VS
24718 echo "$as_me: failed program was:" >&5
24719sed 's/^/| /' conftest.$ac_ext >&5
24720
e46d2a18 24721ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 24722fi
e6cc62c6 24723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24724LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24725fi
e46d2a18
VS
24726echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
24727echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
24728if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24729 ODBC_LINK=" -lunixodbc"
24730else
24731
e46d2a18
VS
24732 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
24733echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
24734if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24735 echo $ECHO_N "(cached) $ECHO_C" >&6
24736else
24737 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24738LIBS="-lodbc $LIBS"
bb41dcbe
VS
24739cat >conftest.$ac_ext <<_ACEOF
24740#line $LINENO "configure"
24741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
e6cc62c6 24746
bb41dcbe
VS
24747/* Override any gcc2 internal prototype to avoid an error. */
24748#ifdef __cplusplus
24749extern "C"
24750#endif
24751/* We use char because int might match the return type of a gcc2
24752 builtin and then its argument prototype would still apply. */
e46d2a18 24753char SQLAllocEnv ();
bb41dcbe
VS
24754int
24755main ()
24756{
e46d2a18 24757SQLAllocEnv ();
bb41dcbe
VS
24758 ;
24759 return 0;
24760}
24761_ACEOF
24762rm -f conftest.$ac_objext conftest$ac_exeext
24763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24764 (eval $ac_link) 2>&5
24765 ac_status=$?
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
24768 { ac_try='test -s conftest$ac_exeext'
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24771 ac_status=$?
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; }; then
e46d2a18 24774 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 24775else
bb41dcbe
VS
24776 echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
e46d2a18 24779ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe
VS
24780fi
24781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24782LIBS=$ac_check_lib_save_LIBS
24783fi
e46d2a18
VS
24784echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
24785echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
24786if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24787 ODBC_LINK=" -lodbc"
24788fi
24789
24790
24791fi
e6cc62c6 24792
e6cc62c6 24793
8647bec6 24794fi
e6cc62c6 24795
fd3d7534 24796 fi
bb41dcbe
VS
24797 if test "x$ODBC_LINK" = "x" ; then
24798 if test "$wxUSE_ODBC" = "sys" ; then
24799 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24800echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24801 { (exit 1); exit 1; }; }
24802 else
24803 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24804echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24805 wxUSE_ODBC=builtin
24806 fi
24807 else
24808 wxUSE_ODBC=sys
8647bec6 24809 fi
8647bec6 24810 fi
bb41dcbe
VS
24811 if test "$wxUSE_ODBC" != "no" ; then
24812 cat >>confdefs.h <<\_ACEOF
24813#define wxUSE_ODBC 1
24814_ACEOF
e6cc62c6 24815
0bdb08e7
VS
24816 if test "$wxUSE_ODBC" = "builtin" ; then
24817 cat >>confdefs.h <<\_ACEOF
24818#define wxUSE_BUILTIN_IODBC 1
24819_ACEOF
24820
24821 fi
bb41dcbe
VS
24822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24823
24824 WXODBCFLAG="-D_IODBC_"
24825 fi
6232543b 24826fi
21d1c967
GD
24827
24828if test "$wxUSE_REGEX" = "builtin" ; then
24829 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24830fi
21d1c967
GD
24831if test "$wxUSE_ZLIB" = "builtin" ; then
24832 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24833fi
24834
8284b0c5 24835
4d264332 24836USE_OPENGL=0
21d1c967 24837if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24838 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24839 OPENGL_LIBS="-framework OpenGL -framework AGL"
24840 elif test "$wxUSE_MSW" = 1; then
24841 OPENGL_LIBS="-lopengl32 -lglu32"
24842 else
01aa5863
VS
24843
24844
24845ac_find_includes=
24846for ac_dir in $SEARCH_INCLUDE /usr/include;
24847 do
24848 if test -f "$ac_dir/GL/gl.h"; then
24849 ac_find_includes=$ac_dir
24850 break
24851 fi
24852 done
24853
24854 if test "$ac_find_includes" != "" ; then
24855 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24856echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24857
24858 if test "x$ac_find_includes" = "x/usr/include"; then
24859 ac_path_to_include=""
24860 else
24861 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24862 result=$?
24863 if test $result = 0; then
24864 ac_path_to_include=""
24865 else
24866 ac_path_to_include=" -I$ac_find_includes"
24867 fi
24868 fi
24869
24870 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24871 fi
24872
e6cc62c6
VS
24873 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24874 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24875echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24876if test "${ac_cv_header_GL_gl_h+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24878fi
24879echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24880echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24881else
24882 # Is the header compilable?
24883echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24884echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24885cat >conftest.$ac_ext <<_ACEOF
24886#line $LINENO "configure"
24887/* confdefs.h. */
24888_ACEOF
24889cat confdefs.h >>conftest.$ac_ext
24890cat >>conftest.$ac_ext <<_ACEOF
24891/* end confdefs.h. */
24892$ac_includes_default
21d1c967 24893#include <GL/gl.h>
e6cc62c6
VS
24894_ACEOF
24895rm -f conftest.$ac_objext
24896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24897 (eval $ac_compile) 2>&5
24898 ac_status=$?
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try='test -s conftest.$ac_objext'
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_header_compiler=yes
24908else
24909 echo "$as_me: failed program was:" >&5
24910sed 's/^/| /' conftest.$ac_ext >&5
24911
24912ac_header_compiler=no
24913fi
24914rm -f conftest.$ac_objext conftest.$ac_ext
24915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24916echo "${ECHO_T}$ac_header_compiler" >&6
24917
24918# Is the header present?
24919echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24920echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24921cat >conftest.$ac_ext <<_ACEOF
24922#line $LINENO "configure"
24923/* confdefs.h. */
24924_ACEOF
24925cat confdefs.h >>conftest.$ac_ext
24926cat >>conftest.$ac_ext <<_ACEOF
24927/* end confdefs.h. */
24928#include <GL/gl.h>
24929_ACEOF
24930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24932 ac_status=$?
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } >/dev/null; then
24938 if test -s conftest.err; then
24939 ac_cpp_err=$ac_c_preproc_warn_flag
24940 else
24941 ac_cpp_err=
24942 fi
24943else
24944 ac_cpp_err=yes
24945fi
24946if test -z "$ac_cpp_err"; then
24947 ac_header_preproc=yes
24948else
24949 echo "$as_me: failed program was:" >&5
24950sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_header_preproc=no
24953fi
24954rm -f conftest.err conftest.$ac_ext
24955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24956echo "${ECHO_T}$ac_header_preproc" >&6
24957
24958# So? What about this header?
24959case $ac_header_compiler:$ac_header_preproc in
24960 yes:no )
24961 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24962echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24964echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24965 (
24966 cat <<\_ASBOX
24967## ------------------------------------ ##
24968## Report this to bug-autoconf@gnu.org. ##
24969## ------------------------------------ ##
24970_ASBOX
24971 ) |
24972 sed "s/^/$as_me: WARNING: /" >&2
24973 ;;
24974 no:yes )
24975 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24976echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24978echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24980echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24981 (
24982 cat <<\_ASBOX
24983## ------------------------------------ ##
24984## Report this to bug-autoconf@gnu.org. ##
24985## ------------------------------------ ##
24986_ASBOX
24987 ) |
24988 sed "s/^/$as_me: WARNING: /" >&2
24989 ;;
24990esac
24991echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24992echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24993if test "${ac_cv_header_GL_gl_h+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995else
24996 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24997fi
e6cc62c6
VS
24998echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24999echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25000
698dcdb6 25001fi
e6cc62c6
VS
25002if test $ac_cv_header_GL_gl_h = yes; then
25003
89e3b3e4
VZ
25004 found_gl=0
25005
e6cc62c6
VS
25006 echo "$as_me:$LINENO: checking for -lGL" >&5
25007echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25008
21d1c967 25009ac_find_libraries=
2b5f62a0 25010for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25011 do
25012 for ac_extension in a so sl dylib; do
25013 if test -f "$ac_dir/libGL.$ac_extension"; then
25014 ac_find_libraries=$ac_dir
25015 break 2
25016 fi
25017 done
25018 done
25019
25020 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25021
21d1c967
GD
25022 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25023 result=$?
25024 if test $result = 0; then
25025 ac_path_to_link=""
25026 else
25027 ac_path_to_link=" -L$ac_find_libraries"
25028 fi
25029
89e3b3e4
VZ
25030 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25031 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25032 fi
89e3b3e4 25033
e6cc62c6 25034
89e3b3e4
VZ
25035ac_find_libraries=
25036for ac_dir in $SEARCH_LIB /usr/lib;
25037 do
25038 for ac_extension in a so sl dylib; do
25039 if test -f "$ac_dir/libGLU.$ac_extension"; then
25040 ac_find_libraries=$ac_dir
25041 break 2
25042 fi
25043 done
25044 done
25045
25046 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25047
89e3b3e4
VZ
25048 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25049 result=$?
25050 if test $result = 0; then
25051 ac_path_to_link=""
25052 else
25053 ac_path_to_link=" -L$ac_find_libraries"
25054 fi
25055
25056 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25057 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25058 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25059 fi
25060
25061 found_gl=1
25062 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25063 echo "$as_me:$LINENO: result: yes" >&5
25064echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25065 fi
25066 fi
25067
bb41dcbe 25068 if test "$found_gl" != 1; then
e6cc62c6
VS
25069 echo "$as_me:$LINENO: result: no" >&5
25070echo "${ECHO_T}no" >&6
25071 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25072echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25073
21d1c967 25074ac_find_libraries=
2b5f62a0 25075for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25076 do
25077 for ac_extension in a so sl dylib; do
25078 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25079 ac_find_libraries=$ac_dir
25080 break 2
25081 fi
25082 done
25083 done
25084
25085 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25086
21d1c967
GD
25087 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25088 result=$?
25089 if test $result = 0; then
25090 ac_path_to_link=""
25091 else
25092 ac_path_to_link=" -L$ac_find_libraries"
25093 fi
25094
25095 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25096 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25097 echo "$as_me:$LINENO: result: yes" >&5
25098echo "${ECHO_T}yes" >&6
21d1c967 25099 else
e6cc62c6
VS
25100 echo "$as_me:$LINENO: result: no" >&5
25101echo "${ECHO_T}no" >&6
21d1c967
GD
25102 fi
25103 fi
e6cc62c6 25104
5c6fa7d2 25105fi
52127426 25106
8284b0c5 25107
e6cc62c6 25108
21d1c967 25109 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25110 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25111echo "$as_me: error: OpenGL libraries not available" >&2;}
25112 { (exit 1); exit 1; }; }
21d1c967
GD
25113 fi
25114 fi
90dd450c 25115
21d1c967 25116 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25117 USE_OPENGL=1
e6cc62c6 25118 cat >>confdefs.h <<\_ACEOF
21d1c967 25119#define wxUSE_OPENGL 1
e6cc62c6 25120_ACEOF
21d1c967 25121
e6cc62c6 25122 cat >>confdefs.h <<\_ACEOF
21d1c967 25123#define wxUSE_GLCANVAS 1
e6cc62c6 25124_ACEOF
21d1c967 25125
520755bb 25126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25127 fi
10f2d63a 25128fi
21d1c967
GD
25129
25130if test -z "$TOOLKIT_VPATH" ; then
25131 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25132fi
21d1c967
GD
25133
25134if test -n "$TOOLKIT" ; then
25135 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25136fi
25137
fe0895cf 25138UNICODE=0
21d1c967
GD
25139lib_unicode_suffix=
25140if test "$wxUSE_UNICODE" = "yes"; then
25141 lib_unicode_suffix=u
fe0895cf 25142 UNICODE=1
90dd450c 25143fi
698dcdb6 25144
21d1c967 25145lib_debug_suffix=
6c67131a 25146DEBUG_FLAG=0
21d1c967
GD
25147if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25148 lib_debug_suffix=d
6c67131a
VS
25149 DEBUG_FLAG=1
25150fi
25151
25152DEBUG_INFO=0
25153if test "$wxUSE_DEBUG_INFO" = "yes"; then
25154 DEBUG_INFO=1
21d1c967 25155fi
698dcdb6 25156
1cbb95a2 25157WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25158
25159TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25160TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25161
25162if test "$cross_compiling" = "yes"; then
25163 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25164 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25165 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25166fi
25167
25168WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25169WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25170WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25171WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25172
25173WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25174WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25175
25176WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25177WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25178WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25179WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25180
25181case "${host}" in
25182 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25183 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25184 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25185 ;;
25186
25187 *-*-darwin* )
e6cc62c6 25188
05159a27
GD
25189 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25190 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25191
25192 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25193 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25194 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25195 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25196
21d1c967 25197 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25198 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25199 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25200 fi
25201 ;;
25202esac
25203
25204WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25205WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25206
25207WXCONFIG_LIBS="-l${WX_LIBRARY}"
25208WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25209
25210if test "$wxUSE_OPENGL" = "yes"; then
25211 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25212 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25213fi
25214
8284b0c5
MB
25215
25216
21d1c967
GD
25217if test "$wxUSE_SHARED" = "yes"; then
25218 case "${host}" in
25219 *-pc-os2_emx | *-pc-os2-emx | \
25220 *-pc-msdosdjgpp )
25221 wxUSE_SHARED=no
e6cc62c6
VS
25222 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25223echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25224 ;;
25225 esac
25226fi
25227
fe0895cf 25228SHARED=0
2b5f62a0 25229if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25230 SHARED=1
2b5f62a0 25231
e6cc62c6 25232
2b5f62a0
VZ
25233 found_versioning=no
25234
e6cc62c6 25235
2b5f62a0 25236 if test $found_versioning = no ; then
e6cc62c6
VS
25237 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25238echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25239if test "${wx_cv_version_script+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25241else
e6cc62c6 25242
2b5f62a0
VZ
25243 echo "VER_1 { *; };" >conftest.sym
25244 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25245
2b5f62a0
VZ
25246 if { ac_try='
25247 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25248 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25254 if test -s conftest.stderr ; then
25255 wx_cv_version_script=no
25256 else
25257 wx_cv_version_script=yes
25258 fi
25259 else
25260 wx_cv_version_script=no
25261 fi
25262 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25263
e6cc62c6
VS
25264fi
25265echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25266echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25267 if test $wx_cv_version_script = yes ; then
e6cc62c6 25268 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25269 fi
25270 fi
21d1c967 25271
21d1c967 25272
21d1c967 25273 case "${host}" in
fe0895cf 25274 *-*-linux* | *-*-gnu* )
e6cc62c6 25275 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25276 ;;
21d1c967
GD
25277
25278 *-*-solaris2* )
25279 if test "$GCC" = yes ; then
25280 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25281
25282 saveLdflags="$LDFLAGS"
25283 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25284 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25285echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25286 cat >conftest.$ac_ext <<_ACEOF
25287#line $LINENO "configure"
25288/* confdefs.h. */
25289_ACEOF
25290cat confdefs.h >>conftest.$ac_ext
25291cat >>conftest.$ac_ext <<_ACEOF
25292/* end confdefs.h. */
25293
25294int
25295main ()
25296{
fe0895cf 25297
e6cc62c6
VS
25298 ;
25299 return 0;
25300}
25301_ACEOF
25302rm -f conftest.$ac_objext conftest$ac_exeext
25303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25304 (eval $ac_link) 2>&5
25305 ac_status=$?
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } &&
25308 { ac_try='test -s conftest$ac_exeext'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
25314
25315 echo "$as_me:$LINENO: result: yes" >&5
25316echo "${ECHO_T}yes" >&6
25317 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25318
25319else
25320 echo "$as_me: failed program was:" >&5
25321sed 's/^/| /' conftest.$ac_ext >&5
25322
25323
25324 echo "$as_me:$LINENO: result: no" >&5
25325echo "${ECHO_T}no" >&6
25326 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25327echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25328 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25329 cat >conftest.$ac_ext <<_ACEOF
25330#line $LINENO "configure"
25331/* confdefs.h. */
25332_ACEOF
25333cat confdefs.h >>conftest.$ac_ext
25334cat >>conftest.$ac_ext <<_ACEOF
25335/* end confdefs.h. */
25336
25337int
25338main ()
25339{
25340
25341 ;
25342 return 0;
25343}
25344_ACEOF
25345rm -f conftest.$ac_objext conftest$ac_exeext
25346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25347 (eval $ac_link) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
25351 { ac_try='test -s conftest$ac_exeext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357
25358 echo "$as_me:$LINENO: result: yes" >&5
25359echo "${ECHO_T}yes" >&6
25360 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25361else
25362 echo "$as_me: failed program was:" >&5
25363sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25364
fe0895cf 25365
e6cc62c6
VS
25366 echo "$as_me:$LINENO: result: no" >&5
25367echo "${ECHO_T}no" >&6
25368
fe0895cf 25369fi
e6cc62c6
VS
25370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25371
25372fi
25373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25374 LDFLAGS="$saveLdflags"
21d1c967
GD
25375 else
25376 SHARED_LD="${CXX} -G -o"
25377 PIC_FLAG="-KPIC"
e6cc62c6 25378 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25379 fi
25380 ;;
0f1bc9c2
VS
25381
25382 powerpc-*-darwin* )
ef0add05
VS
25383 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25384 cat <<EOF >change-install-names
25385#!/bin/sh
25386libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25387inst_cmd="install_name_tool "
25388for i in \${libnames} ; do
25389 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25390done
25391\${inst_cmd} \${3}
25392EOF
25393 chmod +x change-install-names
0f1bc9c2
VS
25394 ;;
25395
21d1c967
GD
25396 esac
25397
25398 if test "x$WX_TARGET_LIBRARY" = "x"; then
25399 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25400 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25401 fi
25402
25403 WX_TARGET_LIBRARY_TYPE="so"
25404 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25405fi
10f2d63a 25406
21d1c967
GD
25407if test "$wxUSE_SHARED" = "no"; then
25408
25409 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25410 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25411 fi
25412
ac0c4cc3 25413 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25414 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25415 fi
25416
25417 if test "$wxUSE_OPENGL" = "yes"; then
25418 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25419 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25420 else
25421 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25422 fi
25423
25424 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25425 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25426
25427 WX_TARGET_LIBRARY_TYPE="a"
25428 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25429
25430 STATIC_FLAG="yes"
25431else
25432 STATIC_FLAG="no"
90dd450c 25433fi
1e487827 25434
93fac604
VZ
25435MACRESCOMP="@#"
25436MACSETFILE="@#"
36825681 25437MACRESWXCONFIG="#"
21d1c967 25438if test "$wxUSE_MAC" = 1; then
e6cc62c6 25439 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25440 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25441 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25442 # Extract the first word of "Rez", so it can be a program name with args.
25443set dummy Rez; ac_word=$2
e6cc62c6
VS
25444echo "$as_me:$LINENO: checking for $ac_word" >&5
25445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25446if test "${ac_cv_prog_RESCOMP+set}" = set; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25448else
21d1c967
GD
25449 if test -n "$RESCOMP"; then
25450 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25451else
e6cc62c6
VS
25452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25453for as_dir in $PATH
25454do
25455 IFS=$as_save_IFS
25456 test -z "$as_dir" && as_dir=.
25457 for ac_exec_ext in '' $ac_executable_extensions; do
25458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25459 ac_cv_prog_RESCOMP="Rez"
25460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25461 break 2
25462 fi
25463done
25464done
25465
21d1c967 25466 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25467fi
b93d0d08 25468fi
e6cc62c6 25469RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25470if test -n "$RESCOMP"; then
e6cc62c6
VS
25471 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25472echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25473else
e6cc62c6
VS
25474 echo "$as_me:$LINENO: result: no" >&5
25475echo "${ECHO_T}no" >&6
90dd450c 25476fi
b93d0d08 25477
21d1c967
GD
25478 # Extract the first word of "DeRez", so it can be a program name with args.
25479set dummy DeRez; ac_word=$2
e6cc62c6
VS
25480echo "$as_me:$LINENO: checking for $ac_word" >&5
25481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25482if test "${ac_cv_prog_DEREZ+set}" = set; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25484else
21d1c967
GD
25485 if test -n "$DEREZ"; then
25486 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25487else
e6cc62c6
VS
25488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25489for as_dir in $PATH
25490do
25491 IFS=$as_save_IFS
25492 test -z "$as_dir" && as_dir=.
25493 for ac_exec_ext in '' $ac_executable_extensions; do
25494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25495 ac_cv_prog_DEREZ="DeRez"
25496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25497 break 2
25498 fi
25499done
25500done
25501
21d1c967 25502 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25503fi
90dd450c 25504fi
e6cc62c6 25505DEREZ=$ac_cv_prog_DEREZ
21d1c967 25506if test -n "$DEREZ"; then
e6cc62c6
VS
25507 echo "$as_me:$LINENO: result: $DEREZ" >&5
25508echo "${ECHO_T}$DEREZ" >&6
90dd450c 25509else
e6cc62c6
VS
25510 echo "$as_me:$LINENO: result: no" >&5
25511echo "${ECHO_T}no" >&6
3a922bb4 25512fi
698dcdb6 25513
36825681
GD
25514 # Extract the first word of "SetFile", so it can be a program name with args.
25515set dummy SetFile; ac_word=$2
e6cc62c6
VS
25516echo "$as_me:$LINENO: checking for $ac_word" >&5
25517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25518if test "${ac_cv_prog_SETFILE+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25520else
25521 if test -n "$SETFILE"; then
25522 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25523else
e6cc62c6
VS
25524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25525for as_dir in $PATH
25526do
25527 IFS=$as_save_IFS
25528 test -z "$as_dir" && as_dir=.
25529 for ac_exec_ext in '' $ac_executable_extensions; do
25530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25531 ac_cv_prog_SETFILE="SetFile"
25532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25533 break 2
25534 fi
25535done
25536done
25537
36825681
GD
25538 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25539fi
25540fi
e6cc62c6 25541SETFILE=$ac_cv_prog_SETFILE
36825681 25542if test -n "$SETFILE"; then
e6cc62c6
VS
25543 echo "$as_me:$LINENO: result: $SETFILE" >&5
25544echo "${ECHO_T}$SETFILE" >&6
36825681 25545else
e6cc62c6
VS
25546 echo "$as_me:$LINENO: result: no" >&5
25547echo "${ECHO_T}no" >&6
36825681
GD
25548fi
25549
21d1c967 25550 MACOSX_BUNDLE="bundle"
36825681
GD
25551 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25552 MACSETFILE="\$(SETFILE)"
9711d31e 25553 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25554elif test "$wxUSE_COCOA" = 1; then
25555 # Extract the first word of "Rez", so it can be a program name with args.
25556set dummy Rez; ac_word=$2
e6cc62c6
VS
25557echo "$as_me:$LINENO: checking for $ac_word" >&5
25558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25559if test "${ac_cv_prog_RESCOMP+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25561else
25562 if test -n "$RESCOMP"; then
25563 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25564else
e6cc62c6
VS
25565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25566for as_dir in $PATH
25567do
25568 IFS=$as_save_IFS
25569 test -z "$as_dir" && as_dir=.
25570 for ac_exec_ext in '' $ac_executable_extensions; do
25571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25572 ac_cv_prog_RESCOMP="Rez"
25573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25574 break 2
25575 fi
25576done
25577done
25578
64440d77
DE
25579 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25580fi
25581fi
e6cc62c6 25582RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25583if test -n "$RESCOMP"; then
e6cc62c6
VS
25584 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25585echo "${ECHO_T}$RESCOMP" >&6
64440d77 25586else
e6cc62c6
VS
25587 echo "$as_me:$LINENO: result: no" >&5
25588echo "${ECHO_T}no" >&6
64440d77
DE
25589fi
25590
25591 # Extract the first word of "DeRez", so it can be a program name with args.
25592set dummy DeRez; ac_word=$2
e6cc62c6
VS
25593echo "$as_me:$LINENO: checking for $ac_word" >&5
25594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25595if test "${ac_cv_prog_DEREZ+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25597else
25598 if test -n "$DEREZ"; then
25599 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25600else
e6cc62c6
VS
25601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602for as_dir in $PATH
25603do
25604 IFS=$as_save_IFS
25605 test -z "$as_dir" && as_dir=.
25606 for ac_exec_ext in '' $ac_executable_extensions; do
25607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608 ac_cv_prog_DEREZ="DeRez"
25609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25610 break 2
25611 fi
25612done
25613done
25614
64440d77
DE
25615 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25616fi
25617fi
e6cc62c6 25618DEREZ=$ac_cv_prog_DEREZ
64440d77 25619if test -n "$DEREZ"; then
e6cc62c6
VS
25620 echo "$as_me:$LINENO: result: $DEREZ" >&5
25621echo "${ECHO_T}$DEREZ" >&6
64440d77 25622else
e6cc62c6
VS
25623 echo "$as_me:$LINENO: result: no" >&5
25624echo "${ECHO_T}no" >&6
64440d77
DE
25625fi
25626
25627 # Extract the first word of "SetFile", so it can be a program name with args.
25628set dummy SetFile; ac_word=$2
e6cc62c6
VS
25629echo "$as_me:$LINENO: checking for $ac_word" >&5
25630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25631if test "${ac_cv_prog_SETFILE+set}" = set; then
25632 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25633else
25634 if test -n "$SETFILE"; then
25635 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25636else
e6cc62c6
VS
25637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25638for as_dir in $PATH
25639do
25640 IFS=$as_save_IFS
25641 test -z "$as_dir" && as_dir=.
25642 for ac_exec_ext in '' $ac_executable_extensions; do
25643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25644 ac_cv_prog_SETFILE="SetFile"
25645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25646 break 2
25647 fi
25648done
25649done
25650
64440d77
DE
25651 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25652fi
25653fi
e6cc62c6 25654SETFILE=$ac_cv_prog_SETFILE
64440d77 25655if test -n "$SETFILE"; then
e6cc62c6
VS
25656 echo "$as_me:$LINENO: result: $SETFILE" >&5
25657echo "${ECHO_T}$SETFILE" >&6
64440d77 25658else
e6cc62c6
VS
25659 echo "$as_me:$LINENO: result: no" >&5
25660echo "${ECHO_T}no" >&6
64440d77
DE
25661fi
25662
25663 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25664 MACSETFILE="\$(SETFILE)"
9711d31e 25665 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25666else
25667 if test "$wxUSE_PM" = 1; then
36825681 25668 MACRESCOMP="emxbind -ep"
90dd450c 25669 fi
4f14bcd8 25670fi
10f2d63a 25671
8284b0c5 25672
e6cc62c6
VS
25673echo "$as_me:$LINENO: checking for mode_t" >&5
25674echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25675if test "${ac_cv_type_mode_t+set}" = set; then
25676 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25677else
e6cc62c6
VS
25678 cat >conftest.$ac_ext <<_ACEOF
25679#line $LINENO "configure"
25680/* confdefs.h. */
25681_ACEOF
25682cat confdefs.h >>conftest.$ac_ext
25683cat >>conftest.$ac_ext <<_ACEOF
25684/* end confdefs.h. */
25685$ac_includes_default
25686int
25687main ()
25688{
25689if ((mode_t *) 0)
25690 return 0;
25691if (sizeof (mode_t))
25692 return 0;
25693 ;
25694 return 0;
25695}
25696_ACEOF
25697rm -f conftest.$ac_objext
25698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>&5
25700 ac_status=$?
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -s conftest.$ac_objext'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; }; then
25709 ac_cv_type_mode_t=yes
a0b9e27f 25710else
e6cc62c6
VS
25711 echo "$as_me: failed program was:" >&5
25712sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25713
e6cc62c6 25714ac_cv_type_mode_t=no
a0b9e27f 25715fi
e6cc62c6 25716rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25717fi
e6cc62c6
VS
25718echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25719echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25720if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25721 :
25722else
a0b9e27f 25723
e6cc62c6
VS
25724cat >>confdefs.h <<_ACEOF
25725#define mode_t int
25726_ACEOF
8284b0c5
MB
25727
25728fi
25729
e6cc62c6
VS
25730echo "$as_me:$LINENO: checking for off_t" >&5
25731echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25732if test "${ac_cv_type_off_t+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25734else
e6cc62c6
VS
25735 cat >conftest.$ac_ext <<_ACEOF
25736#line $LINENO "configure"
25737/* confdefs.h. */
25738_ACEOF
25739cat confdefs.h >>conftest.$ac_ext
25740cat >>conftest.$ac_ext <<_ACEOF
25741/* end confdefs.h. */
25742$ac_includes_default
25743int
25744main ()
25745{
25746if ((off_t *) 0)
25747 return 0;
25748if (sizeof (off_t))
25749 return 0;
25750 ;
25751 return 0;
25752}
25753_ACEOF
25754rm -f conftest.$ac_objext
25755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756 (eval $ac_compile) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } &&
25760 { ac_try='test -s conftest.$ac_objext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_cv_type_off_t=yes
5c6fa7d2 25767else
e6cc62c6
VS
25768 echo "$as_me: failed program was:" >&5
25769sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25770
e6cc62c6 25771ac_cv_type_off_t=no
8284b0c5 25772fi
e6cc62c6 25773rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25774fi
e6cc62c6
VS
25775echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25776echo "${ECHO_T}$ac_cv_type_off_t" >&6
25777if test $ac_cv_type_off_t = yes; then
25778 :
247f5006
VZ
25779else
25780
e6cc62c6 25781cat >>confdefs.h <<_ACEOF
90dd450c 25782#define off_t long
e6cc62c6 25783_ACEOF
10f2d63a 25784
90dd450c 25785fi
10f2d63a 25786
e6cc62c6
VS
25787echo "$as_me:$LINENO: checking for pid_t" >&5
25788echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25789if test "${ac_cv_type_pid_t+set}" = set; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25791else
e6cc62c6
VS
25792 cat >conftest.$ac_ext <<_ACEOF
25793#line $LINENO "configure"
25794/* confdefs.h. */
25795_ACEOF
25796cat confdefs.h >>conftest.$ac_ext
25797cat >>conftest.$ac_ext <<_ACEOF
25798/* end confdefs.h. */
25799$ac_includes_default
25800int
25801main ()
25802{
25803if ((pid_t *) 0)
25804 return 0;
25805if (sizeof (pid_t))
25806 return 0;
25807 ;
25808 return 0;
25809}
25810_ACEOF
25811rm -f conftest.$ac_objext
25812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25813 (eval $ac_compile) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } &&
25817 { ac_try='test -s conftest.$ac_objext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
90dd450c 25823 ac_cv_type_pid_t=yes
698dcdb6 25824else
e6cc62c6
VS
25825 echo "$as_me: failed program was:" >&5
25826sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25827
e6cc62c6
VS
25828ac_cv_type_pid_t=no
25829fi
25830rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25831fi
e6cc62c6
VS
25832echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25833echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25834if test $ac_cv_type_pid_t = yes; then
25835 :
25836else
25837
25838cat >>confdefs.h <<_ACEOF
90dd450c 25839#define pid_t int
e6cc62c6 25840_ACEOF
10f2d63a 25841
7b4a847f
RR
25842fi
25843
e6cc62c6
VS
25844echo "$as_me:$LINENO: checking for size_t" >&5
25845echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25846if test "${ac_cv_type_size_t+set}" = set; then
25847 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25848else
e6cc62c6
VS
25849 cat >conftest.$ac_ext <<_ACEOF
25850#line $LINENO "configure"
25851/* confdefs.h. */
25852_ACEOF
25853cat confdefs.h >>conftest.$ac_ext
25854cat >>conftest.$ac_ext <<_ACEOF
25855/* end confdefs.h. */
25856$ac_includes_default
25857int
25858main ()
25859{
25860if ((size_t *) 0)
25861 return 0;
25862if (sizeof (size_t))
25863 return 0;
25864 ;
25865 return 0;
25866}
25867_ACEOF
25868rm -f conftest.$ac_objext
25869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>&5
25871 ac_status=$?
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
90dd450c 25880 ac_cv_type_size_t=yes
18dbb1f6 25881else
e6cc62c6
VS
25882 echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25884
e6cc62c6 25885ac_cv_type_size_t=no
a0b9e27f 25886fi
e6cc62c6
VS
25887rm -f conftest.$ac_objext conftest.$ac_ext
25888fi
25889echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25890echo "${ECHO_T}$ac_cv_type_size_t" >&6
25891if test $ac_cv_type_size_t = yes; then
25892 :
25893else
25894
25895cat >>confdefs.h <<_ACEOF
90dd450c 25896#define size_t unsigned
e6cc62c6 25897_ACEOF
90dd450c
VZ
25898
25899fi
25900
e6cc62c6
VS
25901echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25902echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25903if test "${ac_cv_type_uid_t+set}" = set; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25905else
e6cc62c6
VS
25906 cat >conftest.$ac_ext <<_ACEOF
25907#line $LINENO "configure"
25908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
90dd450c 25913#include <sys/types.h>
e6cc62c6
VS
25914
25915_ACEOF
90dd450c 25916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25917 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25918 ac_cv_type_uid_t=yes
b3e8d00a 25919else
90dd450c 25920 ac_cv_type_uid_t=no
b3e8d00a 25921fi
90dd450c 25922rm -f conftest*
b3e8d00a 25923
4f14bcd8 25924fi
e6cc62c6
VS
25925echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25926echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25927if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25928
25929cat >>confdefs.h <<\_ACEOF
90dd450c 25930#define uid_t int
e6cc62c6 25931_ACEOF
247f5006 25932
e6cc62c6
VS
25933
25934cat >>confdefs.h <<\_ACEOF
90dd450c 25935#define gid_t int
e6cc62c6 25936_ACEOF
4f14bcd8 25937
b3e8d00a 25938fi
b3e8d00a 25939
8284b0c5
MB
25940
25941
e6cc62c6
VS
25942
25943ac_ext=cc
4f14bcd8 25944ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25948
25949echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25950echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25951if test "${wx_cv_size_t_is_uint+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25953else
25954
25955 cat >conftest.$ac_ext <<_ACEOF
25956#line $LINENO "configure"
25957/* confdefs.h. */
25958_ACEOF
25959cat confdefs.h >>conftest.$ac_ext
25960cat >>conftest.$ac_ext <<_ACEOF
25961/* end confdefs.h. */
90dd450c 25962#include <stddef.h>
e6cc62c6
VS
25963int
25964main ()
25965{
90dd450c
VZ
25966
25967 return 0; }
25968
25969 struct Foo { void foo(size_t); void foo(unsigned int); };
25970
25971 int bar() {
e6cc62c6
VS
25972
25973 ;
25974 return 0;
25975}
25976_ACEOF
25977rm -f conftest.$ac_objext
25978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979 (eval $ac_compile) 2>&5
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } &&
25983 { ac_try='test -s conftest.$ac_objext'
25984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); }; }; then
90dd450c 25989 wx_cv_size_t_is_uint=no
698dcdb6 25990else
e6cc62c6
VS
25991 echo "$as_me: failed program was:" >&5
25992sed 's/^/| /' conftest.$ac_ext >&5
25993
25994wx_cv_size_t_is_uint=yes
8284b0c5 25995
247f5006 25996fi
e6cc62c6
VS
25997rm -f conftest.$ac_objext conftest.$ac_ext
25998
a0b9e27f 25999
e6cc62c6
VS
26000fi
26001echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26002echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26003
90dd450c 26004if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26005 cat >>confdefs.h <<\_ACEOF
90dd450c 26006#define wxSIZE_T_IS_UINT 1
e6cc62c6 26007_ACEOF
698dcdb6 26008
90dd450c 26009else
e6cc62c6
VS
26010 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26011echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26012if test "${wx_cv_size_t_is_ulong+set}" = set; then
26013 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26014else
e6cc62c6
VS
26015 cat >conftest.$ac_ext <<_ACEOF
26016#line $LINENO "configure"
26017/* confdefs.h. */
26018_ACEOF
26019cat confdefs.h >>conftest.$ac_ext
26020cat >>conftest.$ac_ext <<_ACEOF
26021/* end confdefs.h. */
90dd450c 26022#include <stddef.h>
e6cc62c6
VS
26023int
26024main ()
26025{
90dd450c
VZ
26026
26027 return 0; }
26028
26029 struct Foo { void foo(size_t); void foo(unsigned long); };
26030
26031 int bar() {
e6cc62c6
VS
26032
26033 ;
26034 return 0;
26035}
26036_ACEOF
26037rm -f conftest.$ac_objext
26038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26039 (eval $ac_compile) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
26043 { ac_try='test -s conftest.$ac_objext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
90dd450c 26049 wx_cv_size_t_is_ulong=no
698dcdb6 26050else
e6cc62c6
VS
26051 echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054wx_cv_size_t_is_ulong=yes
26055
247f5006 26056fi
e6cc62c6 26057rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26058
e6cc62c6
VS
26059fi
26060echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26061echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26062
90dd450c 26063 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26064 cat >>confdefs.h <<\_ACEOF
90dd450c 26065#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26066_ACEOF
4f14bcd8
GD
26067
26068 fi
90dd450c 26069fi
1e487827 26070
90dd450c 26071ac_ext=c
4f14bcd8 26072ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26075ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26076
5c6fa7d2 26077
8284b0c5 26078
e6cc62c6
VS
26079echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26080echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26081if test "${wx_cv_struct_pw_gecos+set}" = set; then
26082 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26083else
e6cc62c6
VS
26084
26085 cat >conftest.$ac_ext <<_ACEOF
26086#line $LINENO "configure"
26087/* confdefs.h. */
26088_ACEOF
26089cat confdefs.h >>conftest.$ac_ext
26090cat >>conftest.$ac_ext <<_ACEOF
26091/* end confdefs.h. */
90dd450c 26092#include <pwd.h>
e6cc62c6
VS
26093int
26094main ()
26095{
f6bcfd97 26096
90dd450c
VZ
26097 char *p;
26098 struct passwd *pw;
26099 p = pw->pw_gecos;
e6cc62c6
VS
26100
26101 ;
26102 return 0;
26103}
26104_ACEOF
26105rm -f conftest.$ac_objext
26106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107 (eval $ac_compile) 2>&5
26108 ac_status=$?
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } &&
26111 { ac_try='test -s conftest.$ac_objext'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; }; then
26117
90dd450c 26118 wx_cv_struct_pw_gecos=yes
e6cc62c6 26119
10f2d63a 26120else
e6cc62c6
VS
26121 echo "$as_me: failed program was:" >&5
26122sed 's/^/| /' conftest.$ac_ext >&5
26123
26124
90dd450c 26125 wx_cv_struct_pw_gecos=no
e6cc62c6 26126
247f5006
VZ
26127
26128fi
e6cc62c6 26129rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26130
e6cc62c6
VS
26131
26132fi
26133echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26134echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26135
90dd450c 26136if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26137 cat >>confdefs.h <<\_ACEOF
90dd450c 26138#define HAVE_PW_GECOS 1
e6cc62c6 26139_ACEOF
c521c494 26140
90dd450c 26141fi
4f14bcd8 26142
8284b0c5 26143
d29b553b 26144if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26145 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26146#define wxUSE_WCHAR_T 1
e6cc62c6 26147_ACEOF
d74f4b5a 26148
8284b0c5 26149
d74f4b5a
VZ
26150 WCSLEN_FOUND=0
26151 WCHAR_LINK=
e6cc62c6
VS
26152
26153for ac_func in wcslen
7a30264c 26154do
e6cc62c6
VS
26155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26156echo "$as_me:$LINENO: checking for $ac_func" >&5
26157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26158if eval "test \"\${$as_ac_var+set}\" = set"; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26160else
26161 cat >conftest.$ac_ext <<_ACEOF
26162#line $LINENO "configure"
26163/* confdefs.h. */
26164_ACEOF
26165cat confdefs.h >>conftest.$ac_ext
26166cat >>conftest.$ac_ext <<_ACEOF
26167/* end confdefs.h. */
7a30264c 26168/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26169 which can conflict with char $ac_func (); below.
26170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26171 <limits.h> exists even on freestanding compilers. */
26172#ifdef __STDC__
26173# include <limits.h>
26174#else
26175# include <assert.h>
26176#endif
4f14bcd8 26177/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26178#ifdef __cplusplus
26179extern "C"
26180{
26181#endif
4f14bcd8 26182/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26183 builtin and then its argument prototype would still apply. */
26184char $ac_func ();
7a30264c
VZ
26185/* The GNU C library defines this for functions which it implements
26186 to always fail with ENOSYS. Some functions are actually named
26187 something starting with __ and the normal name is an alias. */
26188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26189choke me
26190#else
e6cc62c6
VS
26191char (*f) () = $ac_func;
26192#endif
26193#ifdef __cplusplus
26194}
7a30264c
VZ
26195#endif
26196
e6cc62c6
VS
26197int
26198main ()
26199{
26200return f != $ac_func;
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205rm -f conftest.$ac_objext conftest$ac_exeext
26206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26207 (eval $ac_link) 2>&5
26208 ac_status=$?
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } &&
26211 { ac_try='test -s conftest$ac_exeext'
26212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26213 (eval $ac_try) 2>&5
26214 ac_status=$?
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); }; }; then
26217 eval "$as_ac_var=yes"
26218else
26219 echo "$as_me: failed program was:" >&5
26220sed 's/^/| /' conftest.$ac_ext >&5
26221
26222eval "$as_ac_var=no"
26223fi
26224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26225fi
26226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26228if test `eval echo '${'$as_ac_var'}'` = yes; then
26229 cat >>confdefs.h <<_ACEOF
26230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26231_ACEOF
d74f4b5a 26232 WCSLEN_FOUND=1
7a30264c
VZ
26233fi
26234done
9d8deca0 26235
8284b0c5 26236
d74f4b5a 26237 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26238 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26239 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26240echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26241if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26243else
e6cc62c6 26244 ac_check_lib_save_LIBS=$LIBS
7a30264c 26245LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26246cat >conftest.$ac_ext <<_ACEOF
26247#line $LINENO "configure"
26248/* confdefs.h. */
26249_ACEOF
26250cat confdefs.h >>conftest.$ac_ext
26251cat >>conftest.$ac_ext <<_ACEOF
26252/* end confdefs.h. */
26253
4f14bcd8 26254/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26255#ifdef __cplusplus
26256extern "C"
26257#endif
4f14bcd8 26258/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26259 builtin and then its argument prototype would still apply. */
26260char wcslen ();
26261int
26262main ()
26263{
26264wcslen ();
26265 ;
26266 return 0;
26267}
26268_ACEOF
26269rm -f conftest.$ac_objext conftest$ac_exeext
26270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26271 (eval $ac_link) 2>&5
26272 ac_status=$?
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } &&
26275 { ac_try='test -s conftest$ac_exeext'
26276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277 (eval $ac_try) 2>&5
26278 ac_status=$?
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; }; then
26281 ac_cv_lib_msvcrt_wcslen=yes
26282else
26283 echo "$as_me: failed program was:" >&5
26284sed 's/^/| /' conftest.$ac_ext >&5
26285
26286ac_cv_lib_msvcrt_wcslen=no
26287fi
26288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26289LIBS=$ac_check_lib_save_LIBS
26290fi
26291echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26292echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26293if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26294 WCHAR_OK=1
d29b553b 26295fi
698dcdb6 26296
7a30264c 26297 else
e6cc62c6
VS
26298 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26299echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26300if test "${ac_cv_lib_w_wcslen+set}" = set; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26302else
e6cc62c6 26303 ac_check_lib_save_LIBS=$LIBS
7a30264c 26304LIBS="-lw $LIBS"
e6cc62c6
VS
26305cat >conftest.$ac_ext <<_ACEOF
26306#line $LINENO "configure"
26307/* confdefs.h. */
26308_ACEOF
26309cat confdefs.h >>conftest.$ac_ext
26310cat >>conftest.$ac_ext <<_ACEOF
26311/* end confdefs.h. */
26312
4f14bcd8 26313/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26314#ifdef __cplusplus
26315extern "C"
26316#endif
4f14bcd8 26317/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26318 builtin and then its argument prototype would still apply. */
26319char wcslen ();
26320int
26321main ()
26322{
26323wcslen ();
26324 ;
26325 return 0;
26326}
26327_ACEOF
26328rm -f conftest.$ac_objext conftest$ac_exeext
26329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26330 (eval $ac_link) 2>&5
26331 ac_status=$?
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } &&
26334 { ac_try='test -s conftest$ac_exeext'
26335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336 (eval $ac_try) 2>&5
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); }; }; then
26340 ac_cv_lib_w_wcslen=yes
26341else
26342 echo "$as_me: failed program was:" >&5
26343sed 's/^/| /' conftest.$ac_ext >&5
26344
26345ac_cv_lib_w_wcslen=no
26346fi
26347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26348LIBS=$ac_check_lib_save_LIBS
26349fi
26350echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26351echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26352if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26353
7a30264c 26354 WCHAR_LINK=" -lw"
d74f4b5a 26355 WCSLEN_FOUND=1
e6cc62c6 26356
4f14bcd8 26357fi
10f2d63a 26358
7a30264c 26359 fi
d29b553b 26360 fi
95c8801c 26361
d74f4b5a 26362 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26363 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26364#define HAVE_WCSLEN 1
e6cc62c6 26365_ACEOF
10f2d63a 26366
d74f4b5a 26367 fi
52127426 26368
e6cc62c6
VS
26369
26370for ac_func in wcsrtombs
eb4efbdc 26371do
e6cc62c6
VS
26372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26373echo "$as_me:$LINENO: checking for $ac_func" >&5
26374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26375if eval "test \"\${$as_ac_var+set}\" = set"; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377else
26378 cat >conftest.$ac_ext <<_ACEOF
26379#line $LINENO "configure"
26380/* confdefs.h. */
26381_ACEOF
26382cat confdefs.h >>conftest.$ac_ext
26383cat >>conftest.$ac_ext <<_ACEOF
26384/* end confdefs.h. */
eb4efbdc 26385/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26386 which can conflict with char $ac_func (); below.
26387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26388 <limits.h> exists even on freestanding compilers. */
26389#ifdef __STDC__
26390# include <limits.h>
26391#else
26392# include <assert.h>
26393#endif
eb4efbdc 26394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26395#ifdef __cplusplus
26396extern "C"
26397{
26398#endif
4f14bcd8 26399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26400 builtin and then its argument prototype would still apply. */
26401char $ac_func ();
10f2d63a
VZ
26402/* The GNU C library defines this for functions which it implements
26403 to always fail with ENOSYS. Some functions are actually named
26404 something starting with __ and the normal name is an alias. */
247f5006 26405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26406choke me
26407#else
e6cc62c6
VS
26408char (*f) () = $ac_func;
26409#endif
26410#ifdef __cplusplus
26411}
10f2d63a
VZ
26412#endif
26413
e6cc62c6
VS
26414int
26415main ()
26416{
26417return f != $ac_func;
26418 ;
26419 return 0;
26420}
26421_ACEOF
26422rm -f conftest.$ac_objext conftest$ac_exeext
26423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26424 (eval $ac_link) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); } &&
26428 { ac_try='test -s conftest$ac_exeext'
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; }; then
26434 eval "$as_ac_var=yes"
26435else
26436 echo "$as_me: failed program was:" >&5
26437sed 's/^/| /' conftest.$ac_ext >&5
26438
26439eval "$as_ac_var=no"
26440fi
26441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26442fi
26443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26445if test `eval echo '${'$as_ac_var'}'` = yes; then
26446 cat >>confdefs.h <<_ACEOF
26447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26448_ACEOF
270a909e 26449
4f14bcd8 26450fi
247f5006 26451done
1e487827 26452
af15babd 26453else
e6cc62c6
VS
26454 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26455echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26456fi
52127426 26457
8284b0c5 26458
e6cc62c6
VS
26459
26460ac_ext=cc
247f5006 26461ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26465
af15babd 26466
247f5006
VZ
26467
26468for ac_func in vsnprintf
26469do
e6cc62c6
VS
26470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26471echo "$as_me:$LINENO: checking for $ac_func" >&5
26472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26473if eval "test \"\${$as_ac_var+set}\" = set"; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476 cat >conftest.$ac_ext <<_ACEOF
26477#line $LINENO "configure"
26478/* confdefs.h. */
26479_ACEOF
26480cat confdefs.h >>conftest.$ac_ext
26481cat >>conftest.$ac_ext <<_ACEOF
26482/* end confdefs.h. */
247f5006 26483/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26484 which can conflict with char $ac_func (); below.
26485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26486 <limits.h> exists even on freestanding compilers. */
26487#ifdef __STDC__
26488# include <limits.h>
26489#else
26490# include <assert.h>
26491#endif
247f5006
VZ
26492/* Override any gcc2 internal prototype to avoid an error. */
26493#ifdef __cplusplus
26494extern "C"
e6cc62c6 26495{
247f5006
VZ
26496#endif
26497/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26498 builtin and then its argument prototype would still apply. */
26499char $ac_func ();
247f5006
VZ
26500/* The GNU C library defines this for functions which it implements
26501 to always fail with ENOSYS. Some functions are actually named
26502 something starting with __ and the normal name is an alias. */
26503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26504choke me
26505#else
e6cc62c6
VS
26506char (*f) () = $ac_func;
26507#endif
26508#ifdef __cplusplus
26509}
247f5006 26510#endif
af15babd 26511
e6cc62c6
VS
26512int
26513main ()
26514{
26515return f != $ac_func;
26516 ;
26517 return 0;
26518}
26519_ACEOF
26520rm -f conftest.$ac_objext conftest$ac_exeext
26521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26522 (eval $ac_link) 2>&5
26523 ac_status=$?
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -s conftest$ac_exeext'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26532 eval "$as_ac_var=yes"
26533else
26534 echo "$as_me: failed program was:" >&5
26535sed 's/^/| /' conftest.$ac_ext >&5
26536
26537eval "$as_ac_var=no"
26538fi
26539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26540fi
26541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26543if test `eval echo '${'$as_ac_var'}'` = yes; then
26544 cat >>confdefs.h <<_ACEOF
26545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26546_ACEOF
52127426 26547
5c6fa7d2 26548fi
247f5006 26549done
8284b0c5 26550
4f14bcd8 26551
8d90d2f2 26552if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26553 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26554echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26555if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26556 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26557else
e6cc62c6
VS
26558
26559 cat >conftest.$ac_ext <<_ACEOF
26560#line $LINENO "configure"
26561/* confdefs.h. */
26562_ACEOF
26563cat confdefs.h >>conftest.$ac_ext
26564cat >>conftest.$ac_ext <<_ACEOF
26565/* end confdefs.h. */
8d90d2f2
VZ
26566
26567 #include <stdio.h>
26568 #include <stdarg.h>
e6cc62c6
VS
26569
26570int
26571main ()
26572{
8d90d2f2
VZ
26573
26574 char *buf;
26575 va_list ap;
26576 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26577
26578 ;
26579 return 0;
26580}
26581_ACEOF
26582rm -f conftest.$ac_objext
26583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26584 (eval $ac_compile) 2>&5
26585 ac_status=$?
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } &&
26588 { ac_try='test -s conftest.$ac_objext'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26591 ac_status=$?
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
8d90d2f2
VZ
26594 wx_cv_func_vsnprintf_decl=yes
26595else
e6cc62c6
VS
26596 echo "$as_me: failed program was:" >&5
26597sed 's/^/| /' conftest.$ac_ext >&5
26598
26599wx_cv_func_vsnprintf_decl=no
26600
8d90d2f2 26601fi
e6cc62c6
VS
26602rm -f conftest.$ac_objext conftest.$ac_ext
26603
8d90d2f2 26604
e6cc62c6
VS
26605fi
26606echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26607echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26608
26609 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26610 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26611#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26612_ACEOF
8d90d2f2
VZ
26613
26614 fi
26615fi
26616
247f5006 26617if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26618
26619
26620
26621for ac_func in fputwc wprintf vswprintf
d74f4b5a 26622do
e6cc62c6
VS
26623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624echo "$as_me:$LINENO: checking for $ac_func" >&5
26625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626if eval "test \"\${$as_ac_var+set}\" = set"; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629 cat >conftest.$ac_ext <<_ACEOF
26630#line $LINENO "configure"
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
d74f4b5a 26636/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26637 which can conflict with char $ac_func (); below.
26638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26639 <limits.h> exists even on freestanding compilers. */
26640#ifdef __STDC__
26641# include <limits.h>
26642#else
26643# include <assert.h>
26644#endif
d74f4b5a 26645/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26646#ifdef __cplusplus
26647extern "C"
e6cc62c6 26648{
247f5006 26649#endif
d74f4b5a 26650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26651 builtin and then its argument prototype would still apply. */
26652char $ac_func ();
d74f4b5a
VZ
26653/* The GNU C library defines this for functions which it implements
26654 to always fail with ENOSYS. Some functions are actually named
26655 something starting with __ and the normal name is an alias. */
26656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26657choke me
26658#else
e6cc62c6
VS
26659char (*f) () = $ac_func;
26660#endif
26661#ifdef __cplusplus
26662}
d74f4b5a
VZ
26663#endif
26664
e6cc62c6
VS
26665int
26666main ()
26667{
26668return f != $ac_func;
26669 ;
26670 return 0;
26671}
26672_ACEOF
26673rm -f conftest.$ac_objext conftest$ac_exeext
26674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675 (eval $ac_link) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } &&
26679 { ac_try='test -s conftest$ac_exeext'
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; }; then
26685 eval "$as_ac_var=yes"
26686else
26687 echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690eval "$as_ac_var=no"
26691fi
26692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26693fi
26694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26696if test `eval echo '${'$as_ac_var'}'` = yes; then
26697 cat >>confdefs.h <<_ACEOF
26698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26699_ACEOF
d74f4b5a 26700
d74f4b5a
VZ
26701fi
26702done
26703
8d90d2f2 26704
e6cc62c6
VS
26705 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26706echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26707 cat >conftest.$ac_ext <<_ACEOF
26708#line $LINENO "configure"
26709/* confdefs.h. */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h. */
79668cae 26714#include <wchar.h>
e6cc62c6
VS
26715int
26716main ()
26717{
79668cae 26718&_vsnwprintf;
e6cc62c6
VS
26719 ;
26720 return 0;
26721}
26722_ACEOF
26723rm -f conftest.$ac_objext
26724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26725 (eval $ac_compile) 2>&5
26726 ac_status=$?
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
26729 { ac_try='test -s conftest.$ac_objext'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735 echo "$as_me:$LINENO: result: yes" >&5
26736echo "${ECHO_T}yes" >&6
26737 cat >>confdefs.h <<\_ACEOF
79668cae 26738#define HAVE__VSNWPRINTF 1
e6cc62c6 26739_ACEOF
79668cae
MB
26740
26741else
e6cc62c6
VS
26742 echo "$as_me: failed program was:" >&5
26743sed 's/^/| /' conftest.$ac_ext >&5
26744
26745echo "$as_me:$LINENO: result: no" >&5
26746echo "${ECHO_T}no" >&6
79668cae 26747fi
e6cc62c6 26748rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26749fi
26750
247f5006
VZ
26751ac_ext=c
26752ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26755ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26756
26757
26758
26759
4f14bcd8 26760if test "$TOOLKIT" != "MSW"; then
af15babd 26761
8284b0c5
MB
26762
26763
e6cc62c6
VS
26764
26765ac_ext=cc
4f14bcd8 26766ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26770
52127426 26771
e6cc62c6
VS
26772
26773
26774# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26775if test "${with_libiconv_prefix+set}" = set; then
26776 withval="$with_libiconv_prefix"
e6cc62c6 26777
b040e242
VS
26778 for dir in `echo "$withval" | tr : ' '`; do
26779 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26780 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26781 done
b040e242 26782
e6cc62c6 26783fi;
b040e242 26784
e6cc62c6
VS
26785 echo "$as_me:$LINENO: checking for iconv" >&5
26786echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26787if test "${am_cv_func_iconv+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26789else
e6cc62c6 26790
b040e242
VS
26791 am_cv_func_iconv="no, consider installing GNU libiconv"
26792 am_cv_lib_iconv=no
e6cc62c6
VS
26793 cat >conftest.$ac_ext <<_ACEOF
26794#line $LINENO "configure"
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
b040e242 26800#include <stdlib.h>
4f14bcd8 26801#include <iconv.h>
e6cc62c6
VS
26802int
26803main ()
26804{
b040e242
VS
26805iconv_t cd = iconv_open("","");
26806 iconv(cd,NULL,NULL,NULL,NULL);
26807 iconv_close(cd);
e6cc62c6
VS
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814 (eval $ac_link) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
26818 { ac_try='test -s conftest$ac_exeext'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
b040e242 26824 am_cv_func_iconv=yes
af15babd 26825else
e6cc62c6
VS
26826 echo "$as_me: failed program was:" >&5
26827sed 's/^/| /' conftest.$ac_ext >&5
26828
b040e242 26829fi
e6cc62c6 26830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26831 if test "$am_cv_func_iconv" != yes; then
26832 am_save_LIBS="$LIBS"
26833 LIBS="$LIBS -liconv"
e6cc62c6
VS
26834 cat >conftest.$ac_ext <<_ACEOF
26835#line $LINENO "configure"
26836/* confdefs.h. */
26837_ACEOF
26838cat confdefs.h >>conftest.$ac_ext
26839cat >>conftest.$ac_ext <<_ACEOF
26840/* end confdefs.h. */
b040e242
VS
26841#include <stdlib.h>
26842#include <iconv.h>
e6cc62c6
VS
26843int
26844main ()
26845{
b040e242
VS
26846iconv_t cd = iconv_open("","");
26847 iconv(cd,NULL,NULL,NULL,NULL);
26848 iconv_close(cd);
e6cc62c6
VS
26849 ;
26850 return 0;
26851}
26852_ACEOF
26853rm -f conftest.$ac_objext conftest$ac_exeext
26854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26855 (eval $ac_link) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
26859 { ac_try='test -s conftest$ac_exeext'
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
b040e242
VS
26865 am_cv_lib_iconv=yes
26866 am_cv_func_iconv=yes
26867else
e6cc62c6
VS
26868 echo "$as_me: failed program was:" >&5
26869sed 's/^/| /' conftest.$ac_ext >&5
26870
af15babd 26871fi
e6cc62c6 26872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26873 LIBS="$am_save_LIBS"
26874 fi
247f5006 26875
e6cc62c6
VS
26876fi
26877echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26878echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26879 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26880
26881cat >>confdefs.h <<\_ACEOF
b040e242 26882#define HAVE_ICONV 1
e6cc62c6 26883_ACEOF
b040e242 26884
e6cc62c6
VS
26885 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26886echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26887if test "${wx_cv_func_iconv_const+set}" = set; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26889else
e6cc62c6
VS
26890 cat >conftest.$ac_ext <<_ACEOF
26891#line $LINENO "configure"
26892/* confdefs.h. */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h. */
b040e242
VS
26897
26898#include <stdlib.h>
26899#include <iconv.h>
26900extern
26901#ifdef __cplusplus
26902"C"
26903#endif
26904#if defined(__STDC__) || defined(__cplusplus)
26905size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26906#else
26907size_t iconv();
26908#endif
af15babd 26909
e6cc62c6
VS
26910int
26911main ()
26912{
26913
26914 ;
26915 return 0;
26916}
26917_ACEOF
26918rm -f conftest.$ac_objext
26919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26920 (eval $ac_compile) 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); } &&
26924 { ac_try='test -s conftest.$ac_objext'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
b7043674 26930 wx_cv_func_iconv_const="no"
b040e242 26931else
e6cc62c6
VS
26932 echo "$as_me: failed program was:" >&5
26933sed 's/^/| /' conftest.$ac_ext >&5
26934
26935wx_cv_func_iconv_const="yes"
26936
247f5006 26937fi
e6cc62c6 26938rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26939
e6cc62c6
VS
26940fi
26941echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26942echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26943
26944 iconv_const=
1c405bb5 26945 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26946 iconv_const="const"
26947 fi
26948
e6cc62c6
VS
26949
26950cat >>confdefs.h <<_ACEOF
f09359cf 26951#define ICONV_CONST $iconv_const
e6cc62c6 26952_ACEOF
b040e242
VS
26953
26954 fi
26955 LIBICONV=
26956 if test "$am_cv_lib_iconv" = yes; then
26957 LIBICONV="-liconv"
26958 fi
e6cc62c6 26959
b040e242
VS
26960
26961LIBS="$LIBICONV $LIBS"
4f14bcd8 26962ac_ext=c
4f14bcd8 26963ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26967
5c6fa7d2 26968
8284b0c5 26969if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26970
26971for ac_func in sigaction
af15babd 26972do
e6cc62c6
VS
26973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26974echo "$as_me:$LINENO: checking for $ac_func" >&5
26975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26976if eval "test \"\${$as_ac_var+set}\" = set"; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26978else
26979 cat >conftest.$ac_ext <<_ACEOF
26980#line $LINENO "configure"
26981/* confdefs.h. */
26982_ACEOF
26983cat confdefs.h >>conftest.$ac_ext
26984cat >>conftest.$ac_ext <<_ACEOF
26985/* end confdefs.h. */
af15babd 26986/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26987 which can conflict with char $ac_func (); below.
26988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26989 <limits.h> exists even on freestanding compilers. */
26990#ifdef __STDC__
26991# include <limits.h>
26992#else
26993# include <assert.h>
26994#endif
af15babd 26995/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26996#ifdef __cplusplus
26997extern "C"
26998{
26999#endif
af15babd 27000/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27001 builtin and then its argument prototype would still apply. */
27002char $ac_func ();
af15babd
VZ
27003/* The GNU C library defines this for functions which it implements
27004 to always fail with ENOSYS. Some functions are actually named
27005 something starting with __ and the normal name is an alias. */
27006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27007choke me
27008#else
e6cc62c6
VS
27009char (*f) () = $ac_func;
27010#endif
27011#ifdef __cplusplus
27012}
af15babd
VZ
27013#endif
27014
e6cc62c6
VS
27015int
27016main ()
27017{
27018return f != $ac_func;
27019 ;
27020 return 0;
27021}
27022_ACEOF
27023rm -f conftest.$ac_objext conftest$ac_exeext
27024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27025 (eval $ac_link) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } &&
27029 { ac_try='test -s conftest$ac_exeext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 eval "$as_ac_var=yes"
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040eval "$as_ac_var=no"
27041fi
27042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27043fi
27044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27046if test `eval echo '${'$as_ac_var'}'` = yes; then
27047 cat >>confdefs.h <<_ACEOF
27048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27049_ACEOF
7b4a847f 27050
4f14bcd8
GD
27051fi
27052done
27053
8284b0c5 27054
4f14bcd8 27055 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27056 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27057echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27058 wxUSE_ON_FATAL_EXCEPTION=no
27059 fi
27060
27061 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27062
27063
27064 ac_ext=cc
5c6fa7d2 27065ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27069
5c6fa7d2 27070
e6cc62c6
VS
27071 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27072echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27073if test "${wx_cv_type_sa_handler+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27075else
e6cc62c6
VS
27076
27077 cat >conftest.$ac_ext <<_ACEOF
27078#line $LINENO "configure"
27079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
4f14bcd8 27084#include <signal.h>
e6cc62c6
VS
27085int
27086main ()
27087{
4f14bcd8
GD
27088
27089 extern void testSigHandler(int);
27090
27091 struct sigaction sa;
27092 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27093
27094 ;
27095 return 0;
27096}
27097_ACEOF
27098rm -f conftest.$ac_objext
27099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27100 (eval $ac_compile) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -s conftest.$ac_objext'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; }; then
27110
4f14bcd8 27111 wx_cv_type_sa_handler=int
e6cc62c6 27112
af15babd 27113else
e6cc62c6
VS
27114 echo "$as_me: failed program was:" >&5
27115sed 's/^/| /' conftest.$ac_ext >&5
27116
27117
4f14bcd8 27118 wx_cv_type_sa_handler=void
e6cc62c6 27119
247f5006 27120fi
e6cc62c6 27121rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27122
e6cc62c6
VS
27123fi
27124echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27125echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27126
27127 ac_ext=c
4f14bcd8 27128ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27131ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27132
8284b0c5 27133
e6cc62c6 27134 cat >>confdefs.h <<_ACEOF
4f14bcd8 27135#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27136_ACEOF
af15babd 27137
4f14bcd8
GD
27138 fi
27139fi
af15babd 27140
e6cc62c6
VS
27141
27142
a1d22ad7 27143for ac_func in mkstemp mktemp
af15babd 27144do
e6cc62c6
VS
27145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27146echo "$as_me:$LINENO: checking for $ac_func" >&5
27147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27148if eval "test \"\${$as_ac_var+set}\" = set"; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
27150else
27151 cat >conftest.$ac_ext <<_ACEOF
27152#line $LINENO "configure"
27153/* confdefs.h. */
27154_ACEOF
27155cat confdefs.h >>conftest.$ac_ext
27156cat >>conftest.$ac_ext <<_ACEOF
27157/* end confdefs.h. */
af15babd 27158/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27159 which can conflict with char $ac_func (); below.
27160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27161 <limits.h> exists even on freestanding compilers. */
27162#ifdef __STDC__
27163# include <limits.h>
27164#else
27165# include <assert.h>
27166#endif
af15babd 27167/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27168#ifdef __cplusplus
27169extern "C"
27170{
27171#endif
af15babd 27172/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27173 builtin and then its argument prototype would still apply. */
27174char $ac_func ();
af15babd
VZ
27175/* The GNU C library defines this for functions which it implements
27176 to always fail with ENOSYS. Some functions are actually named
27177 something starting with __ and the normal name is an alias. */
27178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27179choke me
27180#else
e6cc62c6
VS
27181char (*f) () = $ac_func;
27182#endif
27183#ifdef __cplusplus
27184}
af15babd
VZ
27185#endif
27186
e6cc62c6
VS
27187int
27188main ()
27189{
27190return f != $ac_func;
27191 ;
27192 return 0;
27193}
27194_ACEOF
27195rm -f conftest.$ac_objext conftest$ac_exeext
27196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27197 (eval $ac_link) 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
27201 { ac_try='test -s conftest$ac_exeext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27207 eval "$as_ac_var=yes"
27208else
27209 echo "$as_me: failed program was:" >&5
27210sed 's/^/| /' conftest.$ac_ext >&5
27211
27212eval "$as_ac_var=no"
27213fi
27214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27215fi
27216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27218if test `eval echo '${'$as_ac_var'}'` = yes; then
27219 cat >>confdefs.h <<_ACEOF
27220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27221_ACEOF
ade35f11 27222 break
ade35f11
VZ
27223fi
27224done
27225
8284b0c5 27226
e6cc62c6
VS
27227echo "$as_me:$LINENO: checking for statfs" >&5
27228echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27229if test "${wx_cv_func_statfs+set}" = set; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27231else
e6cc62c6
VS
27232 cat >conftest.$ac_ext <<_ACEOF
27233#line $LINENO "configure"
27234/* confdefs.h. */
27235_ACEOF
27236cat confdefs.h >>conftest.$ac_ext
27237cat >>conftest.$ac_ext <<_ACEOF
27238/* end confdefs.h. */
4f14bcd8
GD
27239
27240 #if defined(__BSD__)
27241 #include <sys/param.h>
27242 #include <sys/mount.h>
27243 #else
27244 #include <sys/vfs.h>
27245 #endif
e6cc62c6
VS
27246
27247int
27248main ()
27249{
4f14bcd8
GD
27250
27251 long l;
27252 struct statfs fs;
27253 statfs("/", &fs);
27254 l = fs.f_bsize;
27255 l += fs.f_blocks;
27256 l += fs.f_bavail;
e6cc62c6
VS
27257
27258 ;
27259 return 0;
27260}
27261_ACEOF
27262rm -f conftest.$ac_objext
27263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27264 (eval $ac_compile) 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); } &&
27268 { ac_try='test -s conftest.$ac_objext'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5
27271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; }; then
27274
4f14bcd8 27275 wx_cv_func_statfs=yes
e6cc62c6 27276
4f14bcd8 27277else
e6cc62c6
VS
27278 echo "$as_me: failed program was:" >&5
27279sed 's/^/| /' conftest.$ac_ext >&5
27280
27281
4f14bcd8 27282 wx_cv_func_statfs=no
e6cc62c6 27283
8284b0c5 27284
247f5006 27285fi
e6cc62c6 27286rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27287
e6cc62c6
VS
27288fi
27289echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27290echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27291
27292if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27293 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27294 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27295#define HAVE_STATFS 1
e6cc62c6 27296_ACEOF
4f14bcd8
GD
27297
27298else
e6cc62c6
VS
27299 echo "$as_me:$LINENO: checking for statvfs" >&5
27300echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27301if test "${wx_cv_func_statvfs+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27303else
e6cc62c6
VS
27304 cat >conftest.$ac_ext <<_ACEOF
27305#line $LINENO "configure"
27306/* confdefs.h. */
27307_ACEOF
27308cat confdefs.h >>conftest.$ac_ext
27309cat >>conftest.$ac_ext <<_ACEOF
27310/* end confdefs.h. */
af15babd 27311
54ab82b3
VZ
27312 #include <stddef.h>
27313 #include <sys/statvfs.h>
e6cc62c6
VS
27314
27315int
27316main ()
27317{
af15babd 27318
54ab82b3 27319 statvfs("/", NULL);
e6cc62c6
VS
27320
27321 ;
27322 return 0;
27323}
27324_ACEOF
27325rm -f conftest.$ac_objext
27326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27327 (eval $ac_compile) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } &&
27331 { ac_try='test -s conftest.$ac_objext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
54ab82b3 27337 wx_cv_func_statvfs=yes
af15babd 27338else
e6cc62c6
VS
27339 echo "$as_me: failed program was:" >&5
27340sed 's/^/| /' conftest.$ac_ext >&5
27341
27342wx_cv_func_statvfs=no
27343
247f5006 27344fi
e6cc62c6 27345rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27346
e6cc62c6
VS
27347fi
27348echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27349echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27350
4f14bcd8 27351 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27352
27353
27354 ac_ext=cc
54ab82b3 27355ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27359
27360
e6cc62c6
VS
27361 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27362echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27363if test "${wx_cv_type_statvfs_t+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27365else
e6cc62c6
VS
27366 cat >conftest.$ac_ext <<_ACEOF
27367#line $LINENO "configure"
27368/* confdefs.h. */
27369_ACEOF
27370cat confdefs.h >>conftest.$ac_ext
27371cat >>conftest.$ac_ext <<_ACEOF
27372/* end confdefs.h. */
54ab82b3
VZ
27373
27374 #include <sys/statvfs.h>
e6cc62c6
VS
27375
27376int
27377main ()
27378{
54ab82b3
VZ
27379
27380 long l;
27381 statvfs_t fs;
27382 statvfs("/", &fs);
27383 l = fs.f_bsize;
27384 l += fs.f_blocks;
27385 l += fs.f_bavail;
e6cc62c6
VS
27386
27387 ;
27388 return 0;
27389}
27390_ACEOF
27391rm -f conftest.$ac_objext
27392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27393 (eval $ac_compile) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
54ab82b3
VZ
27403 wx_cv_type_statvfs_t=statvfs_t
27404else
e6cc62c6
VS
27405 echo "$as_me: failed program was:" >&5
27406sed 's/^/| /' conftest.$ac_ext >&5
27407
27408
27409 cat >conftest.$ac_ext <<_ACEOF
27410#line $LINENO "configure"
27411/* confdefs.h. */
27412_ACEOF
27413cat confdefs.h >>conftest.$ac_ext
27414cat >>conftest.$ac_ext <<_ACEOF
27415/* end confdefs.h. */
54ab82b3
VZ
27416
27417 #include <sys/statvfs.h>
e6cc62c6
VS
27418
27419int
27420main ()
27421{
54ab82b3
VZ
27422
27423 long l;
65d8ef1e 27424 struct statvfs fs;
54ab82b3
VZ
27425 statvfs("/", &fs);
27426 l = fs.f_bsize;
27427 l += fs.f_blocks;
27428 l += fs.f_bavail;
e6cc62c6
VS
27429
27430 ;
27431 return 0;
27432}
27433_ACEOF
27434rm -f conftest.$ac_objext
27435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436 (eval $ac_compile) 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } &&
27440 { ac_try='test -s conftest.$ac_objext'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; }; then
54ab82b3
VZ
27446 wx_cv_type_statvfs_t="struct statvfs"
27447else
e6cc62c6
VS
27448 echo "$as_me: failed program was:" >&5
27449sed 's/^/| /' conftest.$ac_ext >&5
27450
27451wx_cv_type_statvfs_t="unknown"
27452
54ab82b3 27453fi
e6cc62c6
VS
27454rm -f conftest.$ac_objext conftest.$ac_ext
27455
27456
54ab82b3 27457fi
e6cc62c6 27458rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27459
e6cc62c6
VS
27460fi
27461echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27462echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27463
27464 ac_ext=c
54ab82b3 27465ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27468ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27469
27470
27471 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27472 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27473#define HAVE_STATVFS 1
e6cc62c6 27474_ACEOF
af15babd 27475
54ab82b3 27476 fi
4f14bcd8 27477 else
54ab82b3 27478 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27479 fi
27480fi
af15babd 27481
54ab82b3 27482if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27483 cat >>confdefs.h <<_ACEOF
54ab82b3 27484#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27485_ACEOF
54ab82b3
VZ
27486
27487else
e6cc62c6
VS
27488 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27489echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27490fi
27491
4f14bcd8 27492if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27493
27494
27495for ac_func in fcntl flock
af15babd 27496do
e6cc62c6
VS
27497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498echo "$as_me:$LINENO: checking for $ac_func" >&5
27499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500if eval "test \"\${$as_ac_var+set}\" = set"; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502else
27503 cat >conftest.$ac_ext <<_ACEOF
27504#line $LINENO "configure"
27505/* confdefs.h. */
27506_ACEOF
27507cat confdefs.h >>conftest.$ac_ext
27508cat >>conftest.$ac_ext <<_ACEOF
27509/* end confdefs.h. */
af15babd 27510/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27511 which can conflict with char $ac_func (); below.
27512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27513 <limits.h> exists even on freestanding compilers. */
27514#ifdef __STDC__
27515# include <limits.h>
27516#else
27517# include <assert.h>
27518#endif
af15babd 27519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27520#ifdef __cplusplus
27521extern "C"
27522{
27523#endif
af15babd 27524/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27525 builtin and then its argument prototype would still apply. */
27526char $ac_func ();
af15babd
VZ
27527/* The GNU C library defines this for functions which it implements
27528 to always fail with ENOSYS. Some functions are actually named
27529 something starting with __ and the normal name is an alias. */
27530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27531choke me
27532#else
e6cc62c6
VS
27533char (*f) () = $ac_func;
27534#endif
27535#ifdef __cplusplus
27536}
af15babd
VZ
27537#endif
27538
e6cc62c6
VS
27539int
27540main ()
27541{
27542return f != $ac_func;
27543 ;
27544 return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext conftest$ac_exeext
27548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27549 (eval $ac_link) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); } &&
27553 { ac_try='test -s conftest$ac_exeext'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 eval "$as_ac_var=yes"
27560else
27561 echo "$as_me: failed program was:" >&5
27562sed 's/^/| /' conftest.$ac_ext >&5
27563
27564eval "$as_ac_var=no"
27565fi
27566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27567fi
27568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27570if test `eval echo '${'$as_ac_var'}'` = yes; then
27571 cat >>confdefs.h <<_ACEOF
27572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27573_ACEOF
4f14bcd8 27574 break
af15babd
VZ
27575fi
27576done
27577
8284b0c5 27578
4f14bcd8 27579 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27580 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27581echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27582 wxUSE_SNGLINST_CHECKER=no
27583 fi
27584fi
af15babd 27585
e6cc62c6 27586
4f14bcd8 27587for ac_func in timegm
af15babd 27588do
e6cc62c6
VS
27589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27590echo "$as_me:$LINENO: checking for $ac_func" >&5
27591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27592if eval "test \"\${$as_ac_var+set}\" = set"; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27594else
27595 cat >conftest.$ac_ext <<_ACEOF
27596#line $LINENO "configure"
27597/* confdefs.h. */
27598_ACEOF
27599cat confdefs.h >>conftest.$ac_ext
27600cat >>conftest.$ac_ext <<_ACEOF
27601/* end confdefs.h. */
af15babd 27602/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27603 which can conflict with char $ac_func (); below.
27604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27605 <limits.h> exists even on freestanding compilers. */
27606#ifdef __STDC__
27607# include <limits.h>
27608#else
27609# include <assert.h>
27610#endif
af15babd 27611/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27612#ifdef __cplusplus
27613extern "C"
27614{
27615#endif
af15babd 27616/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27617 builtin and then its argument prototype would still apply. */
27618char $ac_func ();
af15babd
VZ
27619/* The GNU C library defines this for functions which it implements
27620 to always fail with ENOSYS. Some functions are actually named
27621 something starting with __ and the normal name is an alias. */
247f5006
VZ
27622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27623choke me
27624#else
e6cc62c6
VS
27625char (*f) () = $ac_func;
27626#endif
27627#ifdef __cplusplus
27628}
247f5006
VZ
27629#endif
27630
e6cc62c6
VS
27631int
27632main ()
27633{
27634return f != $ac_func;
27635 ;
27636 return 0;
27637}
27638_ACEOF
27639rm -f conftest.$ac_objext conftest$ac_exeext
27640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27641 (eval $ac_link) 2>&5
27642 ac_status=$?
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); } &&
27645 { ac_try='test -s conftest$ac_exeext'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651 eval "$as_ac_var=yes"
27652else
27653 echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656eval "$as_ac_var=no"
27657fi
27658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27659fi
27660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27662if test `eval echo '${'$as_ac_var'}'` = yes; then
27663 cat >>confdefs.h <<_ACEOF
27664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27665_ACEOF
703e0a69 27666
af15babd
VZ
27667fi
27668done
27669
8284b0c5 27670
e6cc62c6
VS
27671
27672
4f14bcd8 27673for ac_func in putenv setenv
10f2d63a 27674do
e6cc62c6
VS
27675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27676echo "$as_me:$LINENO: checking for $ac_func" >&5
27677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27678if eval "test \"\${$as_ac_var+set}\" = set"; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681 cat >conftest.$ac_ext <<_ACEOF
27682#line $LINENO "configure"
27683/* confdefs.h. */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h. */
af15babd 27688/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27689 which can conflict with char $ac_func (); below.
27690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27691 <limits.h> exists even on freestanding compilers. */
27692#ifdef __STDC__
27693# include <limits.h>
27694#else
27695# include <assert.h>
27696#endif
af15babd 27697/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27698#ifdef __cplusplus
27699extern "C"
27700{
27701#endif
af15babd 27702/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27703 builtin and then its argument prototype would still apply. */
27704char $ac_func ();
af15babd
VZ
27705/* The GNU C library defines this for functions which it implements
27706 to always fail with ENOSYS. Some functions are actually named
27707 something starting with __ and the normal name is an alias. */
27708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27709choke me
27710#else
e6cc62c6
VS
27711char (*f) () = $ac_func;
27712#endif
27713#ifdef __cplusplus
27714}
af15babd
VZ
27715#endif
27716
e6cc62c6
VS
27717int
27718main ()
27719{
27720return f != $ac_func;
27721 ;
27722 return 0;
27723}
27724_ACEOF
27725rm -f conftest.$ac_objext conftest$ac_exeext
27726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27727 (eval $ac_link) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } &&
27731 { ac_try='test -s conftest$ac_exeext'
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 eval "$as_ac_var=yes"
27738else
27739 echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742eval "$as_ac_var=no"
27743fi
27744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27745fi
27746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27748if test `eval echo '${'$as_ac_var'}'` = yes; then
27749 cat >>confdefs.h <<_ACEOF
27750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27751_ACEOF
4f14bcd8 27752 break
af15babd 27753fi
af15babd
VZ
27754done
27755
8284b0c5 27756
4f14bcd8
GD
27757HAVE_SOME_SLEEP_FUNC=0
27758if test "$USE_BEOS" = 1; then
e6cc62c6 27759 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27760#define HAVE_SLEEP 1
e6cc62c6 27761_ACEOF
af15babd 27762
4f14bcd8 27763 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27764fi
27765
4f14bcd8 27766if test "$USE_DARWIN" = 1; then
e6cc62c6 27767 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27768#define HAVE_USLEEP 1
e6cc62c6 27769_ACEOF
10f2d63a 27770
4f14bcd8 27771 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27772fi
27773
4f14bcd8
GD
27774if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27775 POSIX4_LINK=
e6cc62c6
VS
27776
27777for ac_func in nanosleep
4f14bcd8 27778do
e6cc62c6
VS
27779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27780echo "$as_me:$LINENO: checking for $ac_func" >&5
27781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27782if eval "test \"\${$as_ac_var+set}\" = set"; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27784else
27785 cat >conftest.$ac_ext <<_ACEOF
27786#line $LINENO "configure"
27787/* confdefs.h. */
27788_ACEOF
27789cat confdefs.h >>conftest.$ac_ext
27790cat >>conftest.$ac_ext <<_ACEOF
27791/* end confdefs.h. */
4f14bcd8 27792/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27793 which can conflict with char $ac_func (); below.
27794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27795 <limits.h> exists even on freestanding compilers. */
27796#ifdef __STDC__
27797# include <limits.h>
27798#else
27799# include <assert.h>
27800#endif
10f2d63a 27801/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27802#ifdef __cplusplus
27803extern "C"
27804{
27805#endif
10f2d63a 27806/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27807 builtin and then its argument prototype would still apply. */
27808char $ac_func ();
4f14bcd8
GD
27809/* The GNU C library defines this for functions which it implements
27810 to always fail with ENOSYS. Some functions are actually named
27811 something starting with __ and the normal name is an alias. */
27812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27813choke me
27814#else
e6cc62c6
VS
27815char (*f) () = $ac_func;
27816#endif
27817#ifdef __cplusplus
27818}
4f14bcd8
GD
27819#endif
27820
e6cc62c6
VS
27821int
27822main ()
27823{
27824return f != $ac_func;
27825 ;
27826 return 0;
27827}
27828_ACEOF
27829rm -f conftest.$ac_objext conftest$ac_exeext
27830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831 (eval $ac_link) 2>&5
27832 ac_status=$?
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
27835 { ac_try='test -s conftest$ac_exeext'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
27841 eval "$as_ac_var=yes"
27842else
27843 echo "$as_me: failed program was:" >&5
27844sed 's/^/| /' conftest.$ac_ext >&5
27845
27846eval "$as_ac_var=no"
27847fi
27848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27849fi
27850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27852if test `eval echo '${'$as_ac_var'}'` = yes; then
27853 cat >>confdefs.h <<_ACEOF
27854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27855_ACEOF
27856 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27857#define HAVE_NANOSLEEP 1
e6cc62c6 27858_ACEOF
4f14bcd8 27859
10f2d63a 27860else
e6cc62c6
VS
27861
27862 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27863echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27864if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27865 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27866else
e6cc62c6 27867 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27868LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27869cat >conftest.$ac_ext <<_ACEOF
27870#line $LINENO "configure"
27871/* confdefs.h. */
27872_ACEOF
27873cat confdefs.h >>conftest.$ac_ext
27874cat >>conftest.$ac_ext <<_ACEOF
27875/* end confdefs.h. */
27876
10f2d63a 27877/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27878#ifdef __cplusplus
27879extern "C"
27880#endif
10f2d63a 27881/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27882 builtin and then its argument prototype would still apply. */
27883char nanosleep ();
27884int
27885main ()
27886{
27887nanosleep ();
27888 ;
27889 return 0;
27890}
27891_ACEOF
27892rm -f conftest.$ac_objext conftest$ac_exeext
27893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27894 (eval $ac_link) 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); } &&
27898 { ac_try='test -s conftest$ac_exeext'
27899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900 (eval $ac_try) 2>&5
27901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_lib_posix4_nanosleep=yes
27905else
27906 echo "$as_me: failed program was:" >&5
27907sed 's/^/| /' conftest.$ac_ext >&5
27908
27909ac_cv_lib_posix4_nanosleep=no
27910fi
27911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27912LIBS=$ac_check_lib_save_LIBS
27913fi
27914echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27915echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27916if test $ac_cv_lib_posix4_nanosleep = yes; then
27917
27918 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27919#define HAVE_NANOSLEEP 1
e6cc62c6 27920_ACEOF
4f14bcd8 27921
3d63bc3a 27922 POSIX4_LINK=" -lposix4"
e6cc62c6 27923
10f2d63a 27924else
10f2d63a 27925
e6cc62c6
VS
27926
27927for ac_func in usleep
4f14bcd8 27928do
e6cc62c6
VS
27929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930echo "$as_me:$LINENO: checking for $ac_func" >&5
27931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27932if eval "test \"\${$as_ac_var+set}\" = set"; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27934else
27935 cat >conftest.$ac_ext <<_ACEOF
27936#line $LINENO "configure"
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
4f14bcd8 27942/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27943 which can conflict with char $ac_func (); below.
27944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27945 <limits.h> exists even on freestanding compilers. */
27946#ifdef __STDC__
27947# include <limits.h>
27948#else
27949# include <assert.h>
27950#endif
4f14bcd8 27951/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27952#ifdef __cplusplus
27953extern "C"
27954{
27955#endif
4f14bcd8 27956/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27957 builtin and then its argument prototype would still apply. */
27958char $ac_func ();
4f14bcd8
GD
27959/* The GNU C library defines this for functions which it implements
27960 to always fail with ENOSYS. Some functions are actually named
27961 something starting with __ and the normal name is an alias. */
27962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27963choke me
27964#else
e6cc62c6
VS
27965char (*f) () = $ac_func;
27966#endif
27967#ifdef __cplusplus
27968}
4f14bcd8
GD
27969#endif
27970
e6cc62c6
VS
27971int
27972main ()
27973{
27974return f != $ac_func;
27975 ;
27976 return 0;
27977}
27978_ACEOF
27979rm -f conftest.$ac_objext conftest$ac_exeext
27980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27981 (eval $ac_link) 2>&5
27982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -s conftest$ac_exeext'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; }; then
27991 eval "$as_ac_var=yes"
27992else
27993 echo "$as_me: failed program was:" >&5
27994sed 's/^/| /' conftest.$ac_ext >&5
27995
27996eval "$as_ac_var=no"
27997fi
27998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27999fi
28000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28002if test `eval echo '${'$as_ac_var'}'` = yes; then
28003 cat >>confdefs.h <<_ACEOF
28004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28005_ACEOF
28006 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28007#define HAVE_USLEEP 1
e6cc62c6 28008_ACEOF
4f14bcd8 28009
698dcdb6 28010else
e6cc62c6
VS
28011 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28012echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28013
10f2d63a 28014fi
4f14bcd8 28015done
10f2d63a 28016
e6cc62c6
VS
28017
28018
6232543b 28019fi
10f2d63a 28020
e6cc62c6
VS
28021
28022
1e487827 28023fi
4f14bcd8 28024done
703e0a69 28025
10f2d63a
VZ
28026fi
28027
e6cc62c6
VS
28028
28029
4f14bcd8 28030for ac_func in uname gethostname
70846f0a 28031do
e6cc62c6
VS
28032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28033echo "$as_me:$LINENO: checking for $ac_func" >&5
28034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28035if eval "test \"\${$as_ac_var+set}\" = set"; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28037else
28038 cat >conftest.$ac_ext <<_ACEOF
28039#line $LINENO "configure"
28040/* confdefs.h. */
28041_ACEOF
28042cat confdefs.h >>conftest.$ac_ext
28043cat >>conftest.$ac_ext <<_ACEOF
28044/* end confdefs.h. */
70846f0a 28045/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28046 which can conflict with char $ac_func (); below.
28047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28048 <limits.h> exists even on freestanding compilers. */
28049#ifdef __STDC__
28050# include <limits.h>
28051#else
28052# include <assert.h>
28053#endif
70846f0a 28054/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28055#ifdef __cplusplus
28056extern "C"
28057{
28058#endif
70846f0a 28059/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28060 builtin and then its argument prototype would still apply. */
28061char $ac_func ();
70846f0a
VZ
28062/* The GNU C library defines this for functions which it implements
28063 to always fail with ENOSYS. Some functions are actually named
28064 something starting with __ and the normal name is an alias. */
28065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28066choke me
28067#else
e6cc62c6
VS
28068char (*f) () = $ac_func;
28069#endif
28070#ifdef __cplusplus
28071}
70846f0a
VZ
28072#endif
28073
e6cc62c6
VS
28074int
28075main ()
28076{
28077return f != $ac_func;
28078 ;
28079 return 0;
28080}
28081_ACEOF
28082rm -f conftest.$ac_objext conftest$ac_exeext
28083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28084 (eval $ac_link) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
28088 { ac_try='test -s conftest$ac_exeext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 eval "$as_ac_var=yes"
28095else
28096 echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
28099eval "$as_ac_var=no"
28100fi
28101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28102fi
28103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28105if test `eval echo '${'$as_ac_var'}'` = yes; then
28106 cat >>confdefs.h <<_ACEOF
28107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28108_ACEOF
4f14bcd8 28109 break
70846f0a
VZ
28110fi
28111done
28112
8284b0c5
MB
28113
28114
e6cc62c6
VS
28115
28116ac_ext=cc
4f14bcd8 28117ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28121
8284b0c5 28122
4f14bcd8
GD
28123
28124for ac_func in strtok_r
10f2d63a 28125do
e6cc62c6
VS
28126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28127echo "$as_me:$LINENO: checking for $ac_func" >&5
28128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28129if eval "test \"\${$as_ac_var+set}\" = set"; then
28130 echo $ECHO_N "(cached) $ECHO_C" >&6
28131else
28132 cat >conftest.$ac_ext <<_ACEOF
28133#line $LINENO "configure"
28134/* confdefs.h. */
28135_ACEOF
28136cat confdefs.h >>conftest.$ac_ext
28137cat >>conftest.$ac_ext <<_ACEOF
28138/* end confdefs.h. */
4f14bcd8 28139/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28140 which can conflict with char $ac_func (); below.
28141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28142 <limits.h> exists even on freestanding compilers. */
28143#ifdef __STDC__
28144# include <limits.h>
28145#else
28146# include <assert.h>
28147#endif
4f14bcd8
GD
28148/* Override any gcc2 internal prototype to avoid an error. */
28149#ifdef __cplusplus
28150extern "C"
e6cc62c6 28151{
4f14bcd8
GD
28152#endif
28153/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28154 builtin and then its argument prototype would still apply. */
28155char $ac_func ();
4f14bcd8
GD
28156/* The GNU C library defines this for functions which it implements
28157 to always fail with ENOSYS. Some functions are actually named
28158 something starting with __ and the normal name is an alias. */
28159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28160choke me
28161#else
e6cc62c6
VS
28162char (*f) () = $ac_func;
28163#endif
28164#ifdef __cplusplus
28165}
4f14bcd8
GD
28166#endif
28167
e6cc62c6
VS
28168int
28169main ()
28170{
28171return f != $ac_func;
28172 ;
28173 return 0;
28174}
28175_ACEOF
28176rm -f conftest.$ac_objext conftest$ac_exeext
28177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28178 (eval $ac_link) 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); } &&
28182 { ac_try='test -s conftest$ac_exeext'
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; }; then
28188 eval "$as_ac_var=yes"
28189else
28190 echo "$as_me: failed program was:" >&5
28191sed 's/^/| /' conftest.$ac_ext >&5
28192
28193eval "$as_ac_var=no"
28194fi
28195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28196fi
28197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28198echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28199if test `eval echo '${'$as_ac_var'}'` = yes; then
28200 cat >>confdefs.h <<_ACEOF
28201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28202_ACEOF
4f14bcd8 28203
10f2d63a
VZ
28204fi
28205done
28206
8284b0c5 28207
4f14bcd8 28208ac_ext=c
4f14bcd8 28209ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28212ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28213
5c6fa7d2 28214
8284b0c5 28215INET_LINK=
e6cc62c6 28216
4f14bcd8
GD
28217for ac_func in inet_addr
28218do
e6cc62c6
VS
28219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28220echo "$as_me:$LINENO: checking for $ac_func" >&5
28221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28222if eval "test \"\${$as_ac_var+set}\" = set"; then
28223 echo $ECHO_N "(cached) $ECHO_C" >&6
28224else
28225 cat >conftest.$ac_ext <<_ACEOF
28226#line $LINENO "configure"
28227/* confdefs.h. */
28228_ACEOF
28229cat confdefs.h >>conftest.$ac_ext
28230cat >>conftest.$ac_ext <<_ACEOF
28231/* end confdefs.h. */
4f14bcd8 28232/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28233 which can conflict with char $ac_func (); below.
28234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28235 <limits.h> exists even on freestanding compilers. */
28236#ifdef __STDC__
28237# include <limits.h>
28238#else
28239# include <assert.h>
28240#endif
10f2d63a 28241/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28242#ifdef __cplusplus
28243extern "C"
28244{
28245#endif
10f2d63a 28246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28247 builtin and then its argument prototype would still apply. */
28248char $ac_func ();
4f14bcd8
GD
28249/* The GNU C library defines this for functions which it implements
28250 to always fail with ENOSYS. Some functions are actually named
28251 something starting with __ and the normal name is an alias. */
28252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28253choke me
28254#else
e6cc62c6
VS
28255char (*f) () = $ac_func;
28256#endif
28257#ifdef __cplusplus
28258}
4f14bcd8
GD
28259#endif
28260
e6cc62c6
VS
28261int
28262main ()
28263{
28264return f != $ac_func;
28265 ;
28266 return 0;
28267}
28268_ACEOF
28269rm -f conftest.$ac_objext conftest$ac_exeext
28270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28271 (eval $ac_link) 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
28275 { ac_try='test -s conftest$ac_exeext'
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 eval "$as_ac_var=yes"
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286eval "$as_ac_var=no"
28287fi
28288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28289fi
28290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28292if test `eval echo '${'$as_ac_var'}'` = yes; then
28293 cat >>confdefs.h <<_ACEOF
28294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28295_ACEOF
28296 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28297#define HAVE_INET_ADDR 1
e6cc62c6 28298_ACEOF
10f2d63a
VZ
28299
28300else
e6cc62c6
VS
28301
28302 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28303echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28304if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28306else
e6cc62c6 28307 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28308LIBS="-lnsl $LIBS"
e6cc62c6
VS
28309cat >conftest.$ac_ext <<_ACEOF
28310#line $LINENO "configure"
28311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
28316
10f2d63a 28317/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28318#ifdef __cplusplus
28319extern "C"
28320#endif
10f2d63a 28321/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28322 builtin and then its argument prototype would still apply. */
28323char inet_addr ();
28324int
28325main ()
28326{
28327inet_addr ();
28328 ;
28329 return 0;
28330}
28331_ACEOF
28332rm -f conftest.$ac_objext conftest$ac_exeext
28333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28334 (eval $ac_link) 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); } &&
28338 { ac_try='test -s conftest$ac_exeext'
28339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340 (eval $ac_try) 2>&5
28341 ac_status=$?
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; }; then
28344 ac_cv_lib_nsl_inet_addr=yes
28345else
28346 echo "$as_me: failed program was:" >&5
28347sed 's/^/| /' conftest.$ac_ext >&5
28348
28349ac_cv_lib_nsl_inet_addr=no
28350fi
28351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28352LIBS=$ac_check_lib_save_LIBS
28353fi
28354echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28355echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28356if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28357 INET_LINK="nsl"
10f2d63a 28358else
0e012a93
VZ
28359
28360 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28361echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28362if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28364else
e6cc62c6 28365 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28366LIBS="-lresolv $LIBS"
e6cc62c6
VS
28367cat >conftest.$ac_ext <<_ACEOF
28368#line $LINENO "configure"
28369/* confdefs.h. */
28370_ACEOF
28371cat confdefs.h >>conftest.$ac_ext
28372cat >>conftest.$ac_ext <<_ACEOF
28373/* end confdefs.h. */
28374
5c6fa7d2 28375/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28376#ifdef __cplusplus
28377extern "C"
28378#endif
5c6fa7d2 28379/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28380 builtin and then its argument prototype would still apply. */
28381char inet_addr ();
28382int
28383main ()
28384{
28385inet_addr ();
28386 ;
28387 return 0;
28388}
28389_ACEOF
28390rm -f conftest.$ac_objext conftest$ac_exeext
28391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28392 (eval $ac_link) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -s conftest$ac_exeext'
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; }; then
28402 ac_cv_lib_resolv_inet_addr=yes
28403else
28404 echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407ac_cv_lib_resolv_inet_addr=no
28408fi
28409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28410LIBS=$ac_check_lib_save_LIBS
28411fi
28412echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28413echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28414if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28415 INET_LINK="resolv"
698dcdb6 28416else
0e012a93
VZ
28417
28418 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28419echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28420if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28421 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28422else
e6cc62c6 28423 ac_check_lib_save_LIBS=$LIBS
3c011993 28424LIBS="-lsocket $LIBS"
e6cc62c6
VS
28425cat >conftest.$ac_ext <<_ACEOF
28426#line $LINENO "configure"
28427/* confdefs.h. */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h. */
28432
3c011993 28433/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28434#ifdef __cplusplus
28435extern "C"
28436#endif
3c011993 28437/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28438 builtin and then its argument prototype would still apply. */
28439char inet_addr ();
28440int
28441main ()
28442{
28443inet_addr ();
28444 ;
28445 return 0;
28446}
28447_ACEOF
28448rm -f conftest.$ac_objext conftest$ac_exeext
28449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28450 (eval $ac_link) 2>&5
28451 ac_status=$?
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } &&
28454 { ac_try='test -s conftest$ac_exeext'
28455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; }; then
28460 ac_cv_lib_socket_inet_addr=yes
28461else
28462 echo "$as_me: failed program was:" >&5
28463sed 's/^/| /' conftest.$ac_ext >&5
28464
28465ac_cv_lib_socket_inet_addr=no
28466fi
28467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28468LIBS=$ac_check_lib_save_LIBS
28469fi
28470echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28471echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28472if test $ac_cv_lib_socket_inet_addr = yes; then
28473 INET_LINK="socket"
4f14bcd8 28474
8284b0c5 28475fi
e6cc62c6 28476
698dcdb6 28477
0e012a93 28478
7b4a847f 28479fi
e6cc62c6
VS
28480
28481
0e012a93 28482
a0b9e27f 28483fi
579d8138 28484
e6cc62c6
VS
28485
28486
5c6fa7d2 28487fi
e6cc62c6
VS
28488done
28489
28490
28491
28492for ac_func in inet_aton
28493do
28494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28495echo "$as_me:$LINENO: checking for $ac_func" >&5
28496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28497if eval "test \"\${$as_ac_var+set}\" = set"; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28499else
28500 cat >conftest.$ac_ext <<_ACEOF
28501#line $LINENO "configure"
28502/* confdefs.h. */
28503_ACEOF
28504cat confdefs.h >>conftest.$ac_ext
28505cat >>conftest.$ac_ext <<_ACEOF
28506/* end confdefs.h. */
28507/* System header to define __stub macros and hopefully few prototypes,
28508 which can conflict with char $ac_func (); below.
28509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28510 <limits.h> exists even on freestanding compilers. */
28511#ifdef __STDC__
28512# include <limits.h>
28513#else
28514# include <assert.h>
28515#endif
28516/* Override any gcc2 internal prototype to avoid an error. */
28517#ifdef __cplusplus
28518extern "C"
28519{
28520#endif
28521/* We use char because int might match the return type of a gcc2
28522 builtin and then its argument prototype would still apply. */
28523char $ac_func ();
28524/* The GNU C library defines this for functions which it implements
28525 to always fail with ENOSYS. Some functions are actually named
28526 something starting with __ and the normal name is an alias. */
28527#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28528choke me
28529#else
28530char (*f) () = $ac_func;
28531#endif
28532#ifdef __cplusplus
28533}
28534#endif
28535
28536int
28537main ()
28538{
28539return f != $ac_func;
28540 ;
28541 return 0;
28542}
28543_ACEOF
28544rm -f conftest.$ac_objext conftest$ac_exeext
28545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28546 (eval $ac_link) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } &&
28550 { ac_try='test -s conftest$ac_exeext'
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28553 ac_status=$?
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; }; then
28556 eval "$as_ac_var=yes"
28557else
28558 echo "$as_me: failed program was:" >&5
28559sed 's/^/| /' conftest.$ac_ext >&5
28560
28561eval "$as_ac_var=no"
28562fi
28563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28564fi
28565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28567if test `eval echo '${'$as_ac_var'}'` = yes; then
28568 cat >>confdefs.h <<_ACEOF
28569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28570_ACEOF
28571 cat >>confdefs.h <<\_ACEOF
28572#define HAVE_INET_ATON 1
28573_ACEOF
28574
28575else
28576
28577 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28578echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28579echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28580if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583 ac_check_lib_save_LIBS=$LIBS
28584LIBS="-l$INET_LINK $LIBS"
28585cat >conftest.$ac_ext <<_ACEOF
28586#line $LINENO "configure"
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592
28593/* Override any gcc2 internal prototype to avoid an error. */
28594#ifdef __cplusplus
28595extern "C"
28596#endif
28597/* We use char because int might match the return type of a gcc2
28598 builtin and then its argument prototype would still apply. */
28599char inet_aton ();
28600int
28601main ()
28602{
28603inet_aton ();
28604 ;
28605 return 0;
28606}
28607_ACEOF
28608rm -f conftest.$ac_objext conftest$ac_exeext
28609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28610 (eval $ac_link) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); } &&
28614 { ac_try='test -s conftest$ac_exeext'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 eval "$as_ac_Lib=yes"
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625eval "$as_ac_Lib=no"
28626fi
28627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28628LIBS=$ac_check_lib_save_LIBS
28629fi
28630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28631echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28632if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28633 cat >>confdefs.h <<\_ACEOF
28634#define HAVE_INET_ATON 1
28635_ACEOF
52127426 28636
a0b9e27f 28637fi
247f5006 28638
8284b0c5 28639
698dcdb6 28640fi
4f14bcd8
GD
28641done
28642
8284b0c5 28643
e6cc62c6
VS
28644if test "x$INET_LINK" != "x"; then
28645 cat >>confdefs.h <<\_ACEOF
28646#define HAVE_INET_ADDR 1
28647_ACEOF
28648
28649 INET_LINK=" -l$INET_LINK"
28650fi
28651
28652fi
a0b9e27f 28653
a0b9e27f 28654
4f14bcd8 28655
edd891e2
VS
28656EXTRALIBS_ESD=
28657echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28658echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28659if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661else
28662 ac_check_lib_save_LIBS=$LIBS
28663LIBS="-lesd $LIBS"
28664cat >conftest.$ac_ext <<_ACEOF
28665#line $LINENO "configure"
28666/* confdefs.h. */
28667_ACEOF
28668cat confdefs.h >>conftest.$ac_ext
28669cat >>conftest.$ac_ext <<_ACEOF
28670/* end confdefs.h. */
28671
28672/* Override any gcc2 internal prototype to avoid an error. */
28673#ifdef __cplusplus
28674extern "C"
28675#endif
28676/* We use char because int might match the return type of a gcc2
28677 builtin and then its argument prototype would still apply. */
28678char esd_close ();
28679int
28680main ()
28681{
28682esd_close ();
28683 ;
28684 return 0;
28685}
28686_ACEOF
28687rm -f conftest.$ac_objext conftest$ac_exeext
28688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28689 (eval $ac_link) 2>&5
28690 ac_status=$?
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); } &&
28693 { ac_try='test -s conftest$ac_exeext'
28694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28695 (eval $ac_try) 2>&5
28696 ac_status=$?
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_cv_lib_esd_esd_close=yes
28700else
28701 echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704ac_cv_lib_esd_esd_close=no
28705fi
28706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28707LIBS=$ac_check_lib_save_LIBS
28708fi
28709echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28710echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28711if test $ac_cv_lib_esd_esd_close = yes; then
28712
28713
28714for ac_header in esd.h
28715do
28716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28717if eval "test \"\${$as_ac_Header+set}\" = set"; then
28718 echo "$as_me:$LINENO: checking for $ac_header" >&5
28719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28720if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28722fi
edd891e2
VS
28723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28725else
28726 # Is the header compilable?
edd891e2
VS
28727echo "$as_me:$LINENO: checking $ac_header usability" >&5
28728echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28729cat >conftest.$ac_ext <<_ACEOF
28730#line $LINENO "configure"
28731/* confdefs.h. */
28732_ACEOF
28733cat confdefs.h >>conftest.$ac_ext
28734cat >>conftest.$ac_ext <<_ACEOF
28735/* end confdefs.h. */
28736$ac_includes_default
edd891e2 28737#include <$ac_header>
e6cc62c6
VS
28738_ACEOF
28739rm -f conftest.$ac_objext
28740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28741 (eval $ac_compile) 2>&5
28742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); } &&
28745 { ac_try='test -s conftest.$ac_objext'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; }; then
28751 ac_header_compiler=yes
28752else
28753 echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756ac_header_compiler=no
28757fi
28758rm -f conftest.$ac_objext conftest.$ac_ext
28759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28760echo "${ECHO_T}$ac_header_compiler" >&6
28761
28762# Is the header present?
edd891e2
VS
28763echo "$as_me:$LINENO: checking $ac_header presence" >&5
28764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28765cat >conftest.$ac_ext <<_ACEOF
28766#line $LINENO "configure"
28767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
edd891e2 28772#include <$ac_header>
e6cc62c6
VS
28773_ACEOF
28774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28776 ac_status=$?
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } >/dev/null; then
28782 if test -s conftest.err; then
28783 ac_cpp_err=$ac_c_preproc_warn_flag
28784 else
28785 ac_cpp_err=
28786 fi
a0b9e27f 28787else
e6cc62c6
VS
28788 ac_cpp_err=yes
28789fi
28790if test -z "$ac_cpp_err"; then
28791 ac_header_preproc=yes
28792else
28793 echo "$as_me: failed program was:" >&5
28794sed 's/^/| /' conftest.$ac_ext >&5
28795
28796 ac_header_preproc=no
28797fi
28798rm -f conftest.err conftest.$ac_ext
28799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28800echo "${ECHO_T}$ac_header_preproc" >&6
28801
28802# So? What about this header?
28803case $ac_header_compiler:$ac_header_preproc in
28804 yes:no )
edd891e2
VS
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28809 (
28810 cat <<\_ASBOX
28811## ------------------------------------ ##
28812## Report this to bug-autoconf@gnu.org. ##
28813## ------------------------------------ ##
28814_ASBOX
28815 ) |
28816 sed "s/^/$as_me: WARNING: /" >&2
28817 ;;
28818 no:yes )
edd891e2
VS
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28825 (
28826 cat <<\_ASBOX
28827## ------------------------------------ ##
28828## Report this to bug-autoconf@gnu.org. ##
28829## ------------------------------------ ##
28830_ASBOX
28831 ) |
28832 sed "s/^/$as_me: WARNING: /" >&2
28833 ;;
28834esac
edd891e2
VS
28835echo "$as_me:$LINENO: checking for $ac_header" >&5
28836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28837if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839else
edd891e2 28840 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28841fi
edd891e2
VS
28842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28844
e6cc62c6 28845fi
edd891e2
VS
28846if test `eval echo '${'$as_ac_Header'}'` = yes; then
28847 cat >>confdefs.h <<_ACEOF
28848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28849_ACEOF
e6cc62c6 28850
edd891e2 28851 EXTRALIBS_ESD="-lesd"
4f14bcd8 28852
a0b9e27f 28853fi
247f5006 28854
edd891e2 28855done
8284b0c5 28856
4f14bcd8 28857
6232543b 28858fi
10f2d63a 28859
703e0a69 28860
8284b0c5 28861
d19d1899
MB
28862echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
28863echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
28864cat >conftest.$ac_ext <<_ACEOF
28865#line $LINENO "configure"
28866/* confdefs.h. */
28867_ACEOF
28868cat confdefs.h >>conftest.$ac_ext
28869cat >>conftest.$ac_ext <<_ACEOF
28870/* end confdefs.h. */
28871#ifdef __linux__
28872 #include <linux/cdrom.h>
28873 #else
28874 /* For Solaris */
28875 #include <sys/cdio.h>
28876 #endif
28877
28878int
28879main ()
28880{
28881struct cdrom_tocentry entry, old_entry;
28882 ;
28883 return 0;
28884}
28885_ACEOF
28886rm -f conftest.$ac_objext
28887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28888 (eval $ac_compile) 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } &&
28892 { ac_try='test -s conftest.$ac_objext'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; }; then
28898 echo "$as_me:$LINENO: result: yes" >&5
28899echo "${ECHO_T}yes" >&6
28900 cat >>confdefs.h <<\_ACEOF
28901#define HAVE_KNOWN_CDROM_INTERFACE 1
28902_ACEOF
28903
28904else
28905 echo "$as_me: failed program was:" >&5
28906sed 's/^/| /' conftest.$ac_ext >&5
28907
28908echo "$as_me:$LINENO: result: no" >&5
28909echo "${ECHO_T}no" >&6
28910fi
28911rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28912
28913
28914cat >confcache <<\_ACEOF
4f14bcd8
GD
28915# This file is a shell script that caches the results of configure
28916# tests run on this system so they can be shared between configure
e6cc62c6
VS
28917# scripts and configure runs, see configure's option --config-cache.
28918# It is not useful on other systems. If it contains results you don't
28919# want to keep, you may remove or edit it.
4f14bcd8 28920#
e6cc62c6
VS
28921# config.status only pays attention to the cache file if you give it
28922# the --recheck option to rerun configure.
4f14bcd8 28923#
e6cc62c6
VS
28924# `ac_cv_env_foo' variables (set or unset) will be overridden when
28925# loading this file, other *unset* `ac_cv_foo' will be assigned the
28926# following values.
28927
28928_ACEOF
28929
4f14bcd8
GD
28930# The following way of writing the cache mishandles newlines in values,
28931# but we know of no workaround that is simple, portable, and efficient.
28932# So, don't put newlines in cache variables' values.
28933# Ultrix sh set writes to stderr and can't be redirected directly,
28934# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28935{
28936 (set) 2>&1 |
28937 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28938 *ac_space=\ *)
28939 # `set' does not quote correctly, so add quotes (double-quote
28940 # substitution turns \\\\ into \\, and sed turns \\ into \).
28941 sed -n \
28942 "s/'/'\\\\''/g;
28943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28944 ;;
28945 *)
28946 # `set' quotes correctly as required by POSIX, so do not add quotes.
28947 sed -n \
28948 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28949 ;;
28950 esac;
28951} |
28952 sed '
28953 t clear
28954 : clear
28955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28956 t end
28957 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28958 : end' >>confcache
28959if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28960 if test -w $cache_file; then
e6cc62c6
VS
28961 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28962 cat confcache >$cache_file
f6bcfd97 28963 else
4f14bcd8 28964 echo "not updating unwritable cache $cache_file"
f6bcfd97 28965 fi
4f14bcd8
GD
28966fi
28967rm -f confcache
f6bcfd97 28968
8284b0c5 28969
009fead0 28970CPP_MT_FLAG=
73d617c9 28971if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 28972
e6cc62c6 28973
7274f1c7 28974 THREADS_LINK=
009fead0 28975 THREADS_CFLAGS=
7274f1c7
RL
28976
28977 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28978 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28979 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28980echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28981 wxUSE_THREADS="no"
28982 fi
4f14bcd8 28983 fi
4f14bcd8 28984
7274f1c7 28985 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28986
28987
009fead0
VZ
28988 THREAD_OPTS="-pthread"
28989 case "${host}" in
28990 *-*-solaris2* | *-*-sunos4* )
28991 if test "x$GCC" = "xyes"; then
126be6b4 28992 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28993 else
28994 THREAD_OPTS="-mt $THREAD_OPTS"
28995 fi
28996 ;;
28997 *-*-freebsd*)
28998 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28999 ;;
17234b26
MB
29000 *-*-darwin* | *-*-cygwin* )
29001 THREAD_OPTS=""
4101db81 29002 ;;
8f4a9a10 29003 *-*-aix*)
009fead0
VZ
29004 THREAD_OPTS="pthreads"
29005 ;;
4f5a7f74
VZ
29006 *-hp-hpux* )
29007 if test "x$GCC" != "xyes"; then
29008 THREAD_OPTS=""
29009 fi
89e3b3e4
VZ
29010 ;;
29011
29012 *-*-irix* )
29013 if test "x$GCC" = "xyes"; then
29014 THREAD_OPTS=""
29015 fi
29016 ;;
29017
29018 *-*-*UnixWare*)
29019 if test "x$GCC" != "xyes"; then
29020 THREAD_OPTS="-Ethread"
29021 fi
29022 ;;
009fead0 29023 esac
4f14bcd8 29024
02a1dfba 29025 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29026
009fead0
VZ
29027 THREADS_OK=no
29028 for flag in $THREAD_OPTS; do
29029 case $flag in
29030 none)
e6cc62c6
VS
29031 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29032echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29033 ;;
698dcdb6 29034
009fead0 29035 -*)
e6cc62c6
VS
29036 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29037echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29038 THREADS_CFLAGS="$flag"
29039 ;;
698dcdb6 29040
009fead0 29041 *)
e6cc62c6
VS
29042 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29043echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29044 THREADS_LINK="-l$flag"
29045 ;;
29046 esac
10f2d63a 29047
009fead0
VZ
29048 save_LIBS="$LIBS"
29049 save_CFLAGS="$CFLAGS"
29050 LIBS="$THREADS_LINK $LIBS"
04727afd 29051 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29052
e6cc62c6
VS
29053 cat >conftest.$ac_ext <<_ACEOF
29054#line $LINENO "configure"
29055/* confdefs.h. */
29056_ACEOF
29057cat confdefs.h >>conftest.$ac_ext
29058cat >>conftest.$ac_ext <<_ACEOF
29059/* end confdefs.h. */
009fead0 29060#include <pthread.h>
e6cc62c6
VS
29061int
29062main ()
29063{
009fead0 29064pthread_create(0,0,0,0);
e6cc62c6
VS
29065 ;
29066 return 0;
29067}
29068_ACEOF
29069rm -f conftest.$ac_objext conftest$ac_exeext
29070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29071 (eval $ac_link) 2>&5
29072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); } &&
29075 { ac_try='test -s conftest$ac_exeext'
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
009fead0 29081 THREADS_OK=yes
10f2d63a 29082else
e6cc62c6
VS
29083 echo "$as_me: failed program was:" >&5
29084sed 's/^/| /' conftest.$ac_ext >&5
29085
6232543b 29086fi
e6cc62c6 29087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29088
009fead0
VZ
29089 LIBS="$save_LIBS"
29090 CFLAGS="$save_CFLAGS"
d9b9876f 29091
e6cc62c6
VS
29092 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29093echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29094 if test "x$THREADS_OK" = "xyes"; then
29095 break;
29096 fi
d9b9876f 29097
009fead0
VZ
29098 THREADS_LINK=""
29099 THREADS_CFLAGS=""
29100 done
4f14bcd8 29101
009fead0
VZ
29102 if test "x$THREADS_OK" != "xyes"; then
29103 wxUSE_THREADS=no
e6cc62c6
VS
29104 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29105echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29106 else
db82f09e
VZ
29107 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29108 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29109
e6cc62c6
VS
29110 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29111echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29112 flag=no
29113 case "${host}" in
2b5f62a0
VZ
29114 *-aix*)
29115 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29116 flag="-D_THREAD_SAFE"
29117 ;;
29118 *-freebsd*)
009fead0
VZ
29119 flag="-D_THREAD_SAFE"
29120 ;;
06313569
GD
29121 *-hp-hpux* )
29122 flag="-D_REENTRANT"
4f5a7f74
VZ
29123 if test "x$GCC" != "xyes"; then
29124 flag="$flag -D_RWSTD_MULTI_THREAD"
29125 fi
06313569 29126 ;;
009fead0
VZ
29127 *solaris* | alpha*-osf*)
29128 flag="-D_REENTRANT"
29129 ;;
29130 esac
e6cc62c6
VS
29131 echo "$as_me:$LINENO: result: ${flag}" >&5
29132echo "${ECHO_T}${flag}" >&6
009fead0 29133 if test "x$flag" != xno; then
04727afd 29134 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29135 fi
29136
009fead0 29137 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29138 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29139 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29140 fi
29141 fi
4f14bcd8 29142 fi
4f14bcd8 29143
7274f1c7 29144 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29145
29146for ac_func in thr_setconcurrency
4f14bcd8 29147do
e6cc62c6
VS
29148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29149echo "$as_me:$LINENO: checking for $ac_func" >&5
29150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29151if eval "test \"\${$as_ac_var+set}\" = set"; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29153else
29154 cat >conftest.$ac_ext <<_ACEOF
29155#line $LINENO "configure"
29156/* confdefs.h. */
29157_ACEOF
29158cat confdefs.h >>conftest.$ac_ext
29159cat >>conftest.$ac_ext <<_ACEOF
29160/* end confdefs.h. */
4f14bcd8 29161/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29162 which can conflict with char $ac_func (); below.
29163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29164 <limits.h> exists even on freestanding compilers. */
29165#ifdef __STDC__
29166# include <limits.h>
29167#else
29168# include <assert.h>
29169#endif
4f14bcd8 29170/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29171#ifdef __cplusplus
29172extern "C"
29173{
29174#endif
4f14bcd8 29175/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29176 builtin and then its argument prototype would still apply. */
29177char $ac_func ();
4f14bcd8
GD
29178/* The GNU C library defines this for functions which it implements
29179 to always fail with ENOSYS. Some functions are actually named
29180 something starting with __ and the normal name is an alias. */
29181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29182choke me
29183#else
e6cc62c6
VS
29184char (*f) () = $ac_func;
29185#endif
29186#ifdef __cplusplus
29187}
4f14bcd8
GD
29188#endif
29189
e6cc62c6
VS
29190int
29191main ()
29192{
29193return f != $ac_func;
29194 ;
29195 return 0;
29196}
29197_ACEOF
29198rm -f conftest.$ac_objext conftest$ac_exeext
29199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29200 (eval $ac_link) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
29204 { ac_try='test -s conftest$ac_exeext'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210 eval "$as_ac_var=yes"
29211else
29212 echo "$as_me: failed program was:" >&5
29213sed 's/^/| /' conftest.$ac_ext >&5
29214
29215eval "$as_ac_var=no"
29216fi
29217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29218fi
29219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29221if test `eval echo '${'$as_ac_var'}'` = yes; then
29222 cat >>confdefs.h <<_ACEOF
29223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29224_ACEOF
698dcdb6 29225
10f2d63a 29226fi
4f14bcd8 29227done
10f2d63a 29228
8284b0c5 29229
e6cc62c6
VS
29230
29231for ac_header in sched.h
4f14bcd8 29232do
e6cc62c6
VS
29233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29234if eval "test \"\${$as_ac_Header+set}\" = set"; then
29235 echo "$as_me:$LINENO: checking for $ac_header" >&5
29236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29237if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29239fi
29240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29242else
29243 # Is the header compilable?
29244echo "$as_me:$LINENO: checking $ac_header usability" >&5
29245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29246cat >conftest.$ac_ext <<_ACEOF
29247#line $LINENO "configure"
29248/* confdefs.h. */
29249_ACEOF
29250cat confdefs.h >>conftest.$ac_ext
29251cat >>conftest.$ac_ext <<_ACEOF
29252/* end confdefs.h. */
29253$ac_includes_default
29254#include <$ac_header>
29255_ACEOF
29256rm -f conftest.$ac_objext
29257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29258 (eval $ac_compile) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
29262 { ac_try='test -s conftest.$ac_objext'
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; }; then
29268 ac_header_compiler=yes
29269else
29270 echo "$as_me: failed program was:" >&5
29271sed 's/^/| /' conftest.$ac_ext >&5
29272
29273ac_header_compiler=no
29274fi
29275rm -f conftest.$ac_objext conftest.$ac_ext
29276echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29277echo "${ECHO_T}$ac_header_compiler" >&6
29278
29279# Is the header present?
29280echo "$as_me:$LINENO: checking $ac_header presence" >&5
29281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29282cat >conftest.$ac_ext <<_ACEOF
29283#line $LINENO "configure"
29284/* confdefs.h. */
29285_ACEOF
29286cat confdefs.h >>conftest.$ac_ext
29287cat >>conftest.$ac_ext <<_ACEOF
29288/* end confdefs.h. */
29289#include <$ac_header>
29290_ACEOF
29291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29293 ac_status=$?
29294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); } >/dev/null; then
29299 if test -s conftest.err; then
29300 ac_cpp_err=$ac_c_preproc_warn_flag
29301 else
29302 ac_cpp_err=
29303 fi
29304else
29305 ac_cpp_err=yes
29306fi
29307if test -z "$ac_cpp_err"; then
29308 ac_header_preproc=yes
29309else
29310 echo "$as_me: failed program was:" >&5
29311sed 's/^/| /' conftest.$ac_ext >&5
29312
29313 ac_header_preproc=no
29314fi
29315rm -f conftest.err conftest.$ac_ext
29316echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29317echo "${ECHO_T}$ac_header_preproc" >&6
29318
29319# So? What about this header?
29320case $ac_header_compiler:$ac_header_preproc in
29321 yes:no )
29322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29326 (
29327 cat <<\_ASBOX
29328## ------------------------------------ ##
29329## Report this to bug-autoconf@gnu.org. ##
29330## ------------------------------------ ##
29331_ASBOX
29332 ) |
29333 sed "s/^/$as_me: WARNING: /" >&2
29334 ;;
29335 no:yes )
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29339echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29342 (
29343 cat <<\_ASBOX
29344## ------------------------------------ ##
29345## Report this to bug-autoconf@gnu.org. ##
29346## ------------------------------------ ##
29347_ASBOX
29348 ) |
29349 sed "s/^/$as_me: WARNING: /" >&2
29350 ;;
29351esac
29352echo "$as_me:$LINENO: checking for $ac_header" >&5
29353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29354if eval "test \"\${$as_ac_Header+set}\" = set"; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29358fi
e6cc62c6
VS
29359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29361
10f2d63a 29362fi
e6cc62c6
VS
29363if test `eval echo '${'$as_ac_Header'}'` = yes; then
29364 cat >>confdefs.h <<_ACEOF
29365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29366_ACEOF
29367
f6bcfd97 29368fi
e6cc62c6 29369
4f14bcd8 29370done
f6bcfd97 29371
009fead0 29372 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29373 echo "$as_me:$LINENO: checking for sched_yield" >&5
29374echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29375if test "${ac_cv_func_sched_yield+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29377else
29378 cat >conftest.$ac_ext <<_ACEOF
29379#line $LINENO "configure"
29380/* confdefs.h. */
29381_ACEOF
29382cat confdefs.h >>conftest.$ac_ext
29383cat >>conftest.$ac_ext <<_ACEOF
29384/* end confdefs.h. */
009fead0 29385/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29386 which can conflict with char sched_yield (); below.
29387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29388 <limits.h> exists even on freestanding compilers. */
29389#ifdef __STDC__
29390# include <limits.h>
29391#else
29392# include <assert.h>
29393#endif
4f14bcd8 29394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29395#ifdef __cplusplus
29396extern "C"
29397{
29398#endif
4f14bcd8 29399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29400 builtin and then its argument prototype would still apply. */
29401char sched_yield ();
009fead0
VZ
29402/* The GNU C library defines this for functions which it implements
29403 to always fail with ENOSYS. Some functions are actually named
29404 something starting with __ and the normal name is an alias. */
29405#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29406choke me
29407#else
e6cc62c6
VS
29408char (*f) () = sched_yield;
29409#endif
29410#ifdef __cplusplus
29411}
009fead0
VZ
29412#endif
29413
e6cc62c6
VS
29414int
29415main ()
29416{
29417return f != sched_yield;
29418 ;
29419 return 0;
29420}
29421_ACEOF
29422rm -f conftest.$ac_objext conftest$ac_exeext
29423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29424 (eval $ac_link) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); } &&
29428 { ac_try='test -s conftest$ac_exeext'
29429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430 (eval $ac_try) 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; }; then
29434 ac_cv_func_sched_yield=yes
29435else
29436 echo "$as_me: failed program was:" >&5
29437sed 's/^/| /' conftest.$ac_ext >&5
29438
29439ac_cv_func_sched_yield=no
29440fi
29441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29442fi
29443echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29444echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29445if test $ac_cv_func_sched_yield = yes; then
29446 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29447#define HAVE_SCHED_YIELD 1
e6cc62c6 29448_ACEOF
10f2d63a 29449
4f14bcd8 29450else
009fead0 29451
e6cc62c6
VS
29452 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29453echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29454if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29456else
e6cc62c6 29457 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29458LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29459cat >conftest.$ac_ext <<_ACEOF
29460#line $LINENO "configure"
29461/* confdefs.h. */
29462_ACEOF
29463cat confdefs.h >>conftest.$ac_ext
29464cat >>conftest.$ac_ext <<_ACEOF
29465/* end confdefs.h. */
29466
4f14bcd8 29467/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29468#ifdef __cplusplus
29469extern "C"
29470#endif
4f14bcd8 29471/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29472 builtin and then its argument prototype would still apply. */
29473char sched_yield ();
29474int
29475main ()
29476{
29477sched_yield ();
29478 ;
29479 return 0;
29480}
29481_ACEOF
29482rm -f conftest.$ac_objext conftest$ac_exeext
29483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29484 (eval $ac_link) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
29488 { ac_try='test -s conftest$ac_exeext'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 ac_cv_lib_posix4_sched_yield=yes
29495else
29496 echo "$as_me: failed program was:" >&5
29497sed 's/^/| /' conftest.$ac_ext >&5
29498
29499ac_cv_lib_posix4_sched_yield=no
29500fi
29501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29502LIBS=$ac_check_lib_save_LIBS
29503fi
29504echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29505echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29506if test $ac_cv_lib_posix4_sched_yield = yes; then
29507 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29508#define HAVE_SCHED_YIELD 1
e6cc62c6 29509_ACEOF
3d63bc3a 29510 POSIX4_LINK=" -lposix4"
4f14bcd8 29511else
e6cc62c6
VS
29512 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29513echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29514
54276ccf
VZ
29515fi
29516
e6cc62c6
VS
29517
29518
4f14bcd8 29519fi
698dcdb6 29520
009fead0 29521 fi
10f2d63a 29522
7274f1c7 29523 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29524 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29525echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29526if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528else
29529 cat >conftest.$ac_ext <<_ACEOF
29530#line $LINENO "configure"
29531/* confdefs.h. */
29532_ACEOF
29533cat confdefs.h >>conftest.$ac_ext
29534cat >>conftest.$ac_ext <<_ACEOF
29535/* end confdefs.h. */
009fead0 29536/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29537 which can conflict with char pthread_attr_getschedpolicy (); below.
29538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29539 <limits.h> exists even on freestanding compilers. */
29540#ifdef __STDC__
29541# include <limits.h>
29542#else
29543# include <assert.h>
29544#endif
4f14bcd8 29545/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29546#ifdef __cplusplus
29547extern "C"
29548{
29549#endif
4f14bcd8 29550/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29551 builtin and then its argument prototype would still apply. */
29552char pthread_attr_getschedpolicy ();
009fead0
VZ
29553/* The GNU C library defines this for functions which it implements
29554 to always fail with ENOSYS. Some functions are actually named
29555 something starting with __ and the normal name is an alias. */
29556#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29557choke me
29558#else
e6cc62c6
VS
29559char (*f) () = pthread_attr_getschedpolicy;
29560#endif
29561#ifdef __cplusplus
29562}
009fead0
VZ
29563#endif
29564
e6cc62c6
VS
29565int
29566main ()
29567{
29568return f != pthread_attr_getschedpolicy;
29569 ;
29570 return 0;
29571}
29572_ACEOF
29573rm -f conftest.$ac_objext conftest$ac_exeext
29574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575 (eval $ac_link) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
29579 { ac_try='test -s conftest$ac_exeext'
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 ac_cv_func_pthread_attr_getschedpolicy=yes
29586else
29587 echo "$as_me: failed program was:" >&5
29588sed 's/^/| /' conftest.$ac_ext >&5
29589
29590ac_cv_func_pthread_attr_getschedpolicy=no
29591fi
29592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29593fi
29594echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29595echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29596if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29597 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29598echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29599if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29601else
29602 cat >conftest.$ac_ext <<_ACEOF
29603#line $LINENO "configure"
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
a0b9e27f 29609/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29610 which can conflict with char pthread_attr_setschedparam (); below.
29611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29612 <limits.h> exists even on freestanding compilers. */
29613#ifdef __STDC__
29614# include <limits.h>
29615#else
29616# include <assert.h>
29617#endif
422107f9 29618/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29619#ifdef __cplusplus
29620extern "C"
29621{
29622#endif
422107f9 29623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29624 builtin and then its argument prototype would still apply. */
29625char pthread_attr_setschedparam ();
009fead0
VZ
29626/* The GNU C library defines this for functions which it implements
29627 to always fail with ENOSYS. Some functions are actually named
29628 something starting with __ and the normal name is an alias. */
29629#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29630choke me
29631#else
e6cc62c6
VS
29632char (*f) () = pthread_attr_setschedparam;
29633#endif
29634#ifdef __cplusplus
29635}
009fead0
VZ
29636#endif
29637
e6cc62c6
VS
29638int
29639main ()
29640{
29641return f != pthread_attr_setschedparam;
29642 ;
29643 return 0;
29644}
29645_ACEOF
29646rm -f conftest.$ac_objext conftest$ac_exeext
29647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29648 (eval $ac_link) 2>&5
29649 ac_status=$?
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
29652 { ac_try='test -s conftest$ac_exeext'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
29658 ac_cv_func_pthread_attr_setschedparam=yes
29659else
29660 echo "$as_me: failed program was:" >&5
29661sed 's/^/| /' conftest.$ac_ext >&5
29662
29663ac_cv_func_pthread_attr_setschedparam=no
29664fi
29665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29666fi
29667echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29668echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29669if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29670 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29671echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29672if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674else
29675 cat >conftest.$ac_ext <<_ACEOF
29676#line $LINENO "configure"
29677/* confdefs.h. */
29678_ACEOF
29679cat confdefs.h >>conftest.$ac_ext
29680cat >>conftest.$ac_ext <<_ACEOF
29681/* end confdefs.h. */
ef33c576 29682/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29683 which can conflict with char sched_get_priority_max (); below.
29684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29685 <limits.h> exists even on freestanding compilers. */
29686#ifdef __STDC__
29687# include <limits.h>
29688#else
29689# include <assert.h>
29690#endif
4f14bcd8 29691/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29692#ifdef __cplusplus
29693extern "C"
29694{
29695#endif
4f14bcd8 29696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29697 builtin and then its argument prototype would still apply. */
29698char sched_get_priority_max ();
009fead0
VZ
29699/* The GNU C library defines this for functions which it implements
29700 to always fail with ENOSYS. Some functions are actually named
29701 something starting with __ and the normal name is an alias. */
29702#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29703choke me
29704#else
e6cc62c6
VS
29705char (*f) () = sched_get_priority_max;
29706#endif
29707#ifdef __cplusplus
29708}
009fead0
VZ
29709#endif
29710
e6cc62c6
VS
29711int
29712main ()
29713{
29714return f != sched_get_priority_max;
29715 ;
29716 return 0;
29717}
29718_ACEOF
29719rm -f conftest.$ac_objext conftest$ac_exeext
29720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29721 (eval $ac_link) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
29725 { ac_try='test -s conftest$ac_exeext'
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29728 ac_status=$?
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 ac_cv_func_sched_get_priority_max=yes
29732else
29733 echo "$as_me: failed program was:" >&5
29734sed 's/^/| /' conftest.$ac_ext >&5
29735
29736ac_cv_func_sched_get_priority_max=no
29737fi
29738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29739fi
29740echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29741echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29742if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29743 HAVE_PRIOR_FUNCS=1
29744else
e6cc62c6
VS
29745 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29746echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29747if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29749else
e6cc62c6 29750 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29751LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29752cat >conftest.$ac_ext <<_ACEOF
29753#line $LINENO "configure"
29754/* confdefs.h. */
29755_ACEOF
29756cat confdefs.h >>conftest.$ac_ext
29757cat >>conftest.$ac_ext <<_ACEOF
29758/* end confdefs.h. */
29759
422107f9 29760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29761#ifdef __cplusplus
29762extern "C"
29763#endif
422107f9 29764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29765 builtin and then its argument prototype would still apply. */
29766char sched_get_priority_max ();
29767int
29768main ()
29769{
29770sched_get_priority_max ();
29771 ;
29772 return 0;
29773}
29774_ACEOF
29775rm -f conftest.$ac_objext conftest$ac_exeext
29776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29777 (eval $ac_link) 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } &&
29781 { ac_try='test -s conftest$ac_exeext'
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_lib_posix4_sched_get_priority_max=yes
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
29792ac_cv_lib_posix4_sched_get_priority_max=no
29793fi
29794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29795LIBS=$ac_check_lib_save_LIBS
29796fi
29797echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29798echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29799if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29800
7274f1c7
RL
29801 HAVE_PRIOR_FUNCS=1
29802 POSIX4_LINK=" -lposix4"
e6cc62c6 29803
4f14bcd8 29804fi
463abc64 29805
e6cc62c6 29806
328a083c 29807fi
463abc64 29808
e6cc62c6 29809
7b4a847f 29810fi
579d8138 29811
e6cc62c6 29812
5c6fa7d2 29813fi
52127426 29814
8284b0c5 29815
7274f1c7 29816 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29817 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29818#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29819_ACEOF
463abc64 29820
7274f1c7 29821 else
e6cc62c6
VS
29822 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29823echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29824 fi
463abc64 29825
e6cc62c6
VS
29826 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29827echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29828if test "${ac_cv_func_pthread_cancel+set}" = set; then
29829 echo $ECHO_N "(cached) $ECHO_C" >&6
29830else
29831 cat >conftest.$ac_ext <<_ACEOF
29832#line $LINENO "configure"
29833/* confdefs.h. */
29834_ACEOF
29835cat confdefs.h >>conftest.$ac_ext
29836cat >>conftest.$ac_ext <<_ACEOF
29837/* end confdefs.h. */
009fead0 29838/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29839 which can conflict with char pthread_cancel (); below.
29840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29841 <limits.h> exists even on freestanding compilers. */
29842#ifdef __STDC__
29843# include <limits.h>
29844#else
29845# include <assert.h>
29846#endif
422107f9 29847/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29848#ifdef __cplusplus
29849extern "C"
29850{
29851#endif
422107f9 29852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29853 builtin and then its argument prototype would still apply. */
29854char pthread_cancel ();
009fead0
VZ
29855/* The GNU C library defines this for functions which it implements
29856 to always fail with ENOSYS. Some functions are actually named
29857 something starting with __ and the normal name is an alias. */
29858#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29859choke me
29860#else
e6cc62c6
VS
29861char (*f) () = pthread_cancel;
29862#endif
29863#ifdef __cplusplus
29864}
009fead0
VZ
29865#endif
29866
e6cc62c6
VS
29867int
29868main ()
29869{
29870return f != pthread_cancel;
29871 ;
29872 return 0;
29873}
29874_ACEOF
29875rm -f conftest.$ac_objext conftest$ac_exeext
29876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29877 (eval $ac_link) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } &&
29881 { ac_try='test -s conftest$ac_exeext'
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29884 ac_status=$?
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; }; then
29887 ac_cv_func_pthread_cancel=yes
29888else
29889 echo "$as_me: failed program was:" >&5
29890sed 's/^/| /' conftest.$ac_ext >&5
29891
29892ac_cv_func_pthread_cancel=no
29893fi
29894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29895fi
29896echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29897echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29898if test $ac_cv_func_pthread_cancel = yes; then
29899 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29900#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29901_ACEOF
4f14bcd8 29902
698dcdb6 29903else
e6cc62c6
VS
29904 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29905echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29906fi
29907
5c6fa7d2 29908
4f14bcd8 29909
e6cc62c6
VS
29910
29911 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29912echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29913if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29915else
e6cc62c6
VS
29916
29917 cat >conftest.$ac_ext <<_ACEOF
29918#line $LINENO "configure"
29919/* confdefs.h. */
29920_ACEOF
29921cat confdefs.h >>conftest.$ac_ext
29922cat >>conftest.$ac_ext <<_ACEOF
29923/* end confdefs.h. */
4f14bcd8 29924#include <pthread.h>
e6cc62c6
VS
29925int
29926main ()
29927{
4f14bcd8 29928
7274f1c7
RL
29929 pthread_mutexattr_t attr;
29930 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29931
29932 ;
29933 return 0;
29934}
29935_ACEOF
29936rm -f conftest.$ac_objext
29937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29938 (eval $ac_compile) 2>&5
29939 ac_status=$?
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); } &&
29942 { ac_try='test -s conftest.$ac_objext'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
29948
7274f1c7 29949 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29950
3fed1840 29951else
e6cc62c6
VS
29952 echo "$as_me: failed program was:" >&5
29953sed 's/^/| /' conftest.$ac_ext >&5
29954
29955
7274f1c7 29956 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29957
29958
247f5006 29959fi
e6cc62c6 29960rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29961
e6cc62c6
VS
29962fi
29963echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29964echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29965
7274f1c7 29966 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29967 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29968#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29969_ACEOF
4f14bcd8 29970
7274f1c7 29971 else
e6cc62c6
VS
29972 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29973echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29974if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29976else
29977
29978 cat >conftest.$ac_ext <<_ACEOF
29979#line $LINENO "configure"
29980/* confdefs.h. */
29981_ACEOF
29982cat confdefs.h >>conftest.$ac_ext
29983cat >>conftest.$ac_ext <<_ACEOF
29984/* end confdefs.h. */
4f14bcd8 29985#include <pthread.h>
e6cc62c6
VS
29986int
29987main ()
29988{
4f14bcd8 29989
7274f1c7 29990 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29991
29992 ;
29993 return 0;
29994}
29995_ACEOF
29996rm -f conftest.$ac_objext
29997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29998 (eval $ac_compile) 2>&5
29999 ac_status=$?
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
30002 { ac_try='test -s conftest.$ac_objext'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; }; then
30008
7274f1c7 30009 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30010
698dcdb6 30011else
e6cc62c6
VS
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015
7274f1c7 30016 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30017
30018
247f5006 30019fi
e6cc62c6 30020rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30021
e6cc62c6
VS
30022fi
30023echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30024echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30025 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30026 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30027#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30028_ACEOF
3fed1840 30029
7274f1c7 30030 else
e6cc62c6
VS
30031 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30032echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30033 fi
30034 fi
7274f1c7 30035 fi
3fed1840 30036
a0b9e27f
MB
30037else
30038 if test "$wxUSE_THREADS" = "yes" ; then
30039 case "${host}" in
30040 *-*-mingw32* )
e6cc62c6
VS
30041 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30042echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30043if test "${wx_cv_cflags_mthread+set}" = set; then
30044 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30045else
e6cc62c6 30046
ca8e52b3
VZ
30047 CFLAGS_OLD="$CFLAGS"
30048 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30049 cat >conftest.$ac_ext <<_ACEOF
30050#line $LINENO "configure"
30051/* confdefs.h. */
30052_ACEOF
30053cat confdefs.h >>conftest.$ac_ext
30054cat >>conftest.$ac_ext <<_ACEOF
30055/* end confdefs.h. */
30056
30057int
30058main ()
30059{
ca8e52b3 30060
e6cc62c6
VS
30061 ;
30062 return 0;
30063}
30064_ACEOF
30065rm -f conftest.$ac_objext
30066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30067 (eval $ac_compile) 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } &&
30071 { ac_try='test -s conftest.$ac_objext'
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30074 ac_status=$?
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; }; then
ca8e52b3
VZ
30077 wx_cv_cflags_mthread=yes
30078else
e6cc62c6
VS
30079 echo "$as_me: failed program was:" >&5
30080sed 's/^/| /' conftest.$ac_ext >&5
30081
30082wx_cv_cflags_mthread=no
30083
ca8e52b3 30084fi
e6cc62c6
VS
30085rm -f conftest.$ac_objext conftest.$ac_ext
30086
ca8e52b3 30087
e6cc62c6
VS
30088fi
30089echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30090echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30091
30092 if test "$wx_cv_cflags_mthread" = "yes"; then
30093 CXXFLAGS="$CXXFLAGS -mthreads"
30094 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30095 LDFLAGS="$LDFLAGS -mthreads"
30096 else
30097 CFLAGS="$CFLAGS_OLD"
30098 fi
a0b9e27f 30099 ;;
73d617c9
MB
30100 *-pc-os2*emx )
30101 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30102 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30103 LDFLAGS="$LDFLAGS -Zmt"
30104 ;;
a0b9e27f
MB
30105 esac
30106 fi
4f14bcd8
GD
30107fi
30108
30109if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30110 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30111#define wxUSE_THREADS 1
e6cc62c6 30112_ACEOF
7b6058cd 30113
8284b0c5 30114
4f14bcd8 30115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30116else
4f14bcd8 30117 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30118 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30119echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30120 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30121 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30122 echo "$as_me:$LINENO: result: yes" >&5
30123echo "${ECHO_T}yes" >&6
4f14bcd8 30124 else
e6cc62c6
VS
30125 echo "$as_me:$LINENO: result: no" >&5
30126echo "${ECHO_T}no" >&6
4f14bcd8
GD
30127 fi
30128 fi
30129fi
30130
30131if test "$WXGTK20" = 1 ; then
e6cc62c6 30132 cat >>confdefs.h <<_ACEOF
4f14bcd8 30133#define __WXGTK20__ $WXGTK20
e6cc62c6 30134_ACEOF
4f14bcd8
GD
30135
30136 WXGTK12=1
10f2d63a 30137fi
4f14bcd8
GD
30138
30139if test "$WXGTK12" = 1 ; then
e6cc62c6 30140 cat >>confdefs.h <<_ACEOF
4f14bcd8 30141#define __WXGTK12__ $WXGTK12
e6cc62c6 30142_ACEOF
4f14bcd8 30143
10f2d63a 30144fi
698dcdb6 30145
4f14bcd8 30146if test "$WXGTK127" = 1 ; then
e6cc62c6 30147 cat >>confdefs.h <<_ACEOF
4f14bcd8 30148#define __WXGTK127__ $WXGTK127
e6cc62c6 30149_ACEOF
4f14bcd8 30150
698dcdb6 30151fi
10f2d63a 30152
4f14bcd8
GD
30153WXDEBUG=
30154
30155if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30156 WXDEBUG="-g"
30157 wxUSE_OPTIMISE=no
698dcdb6 30158fi
4f14bcd8
GD
30159
30160if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30161 wxUSE_DEBUG_INFO=yes
30162 WXDEBUG="-ggdb"
10f2d63a
VZ
30163fi
30164
4f14bcd8 30165if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30166 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30167#define WXDEBUG 1
e6cc62c6 30168_ACEOF
4f14bcd8
GD
30169
30170 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30171else
4f14bcd8
GD
30172 if test "$wxUSE_GTK" = 1 ; then
30173 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30174 fi
30175fi
30176
30177if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30178 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30179#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30180_ACEOF
4f14bcd8 30181
e6cc62c6 30182 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30183#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30184_ACEOF
4f14bcd8 30185
e6cc62c6 30186 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30187#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30188_ACEOF
4f14bcd8
GD
30189
30190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30191fi
30192
30193if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30194 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30195fi
30196
30197PROFILE=
30198if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30199 PROFILE=" -pg"
10f2d63a
VZ
30200fi
30201
009fead0
VZ
30202CODE_GEN_FLAGS=
30203CODE_GEN_FLAGS_CXX=
88e30f2b 30204if test "$GCC" = "yes" ; then
4f14bcd8
GD
30205 if test "$wxUSE_NO_RTTI" = "yes" ; then
30206 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30207 fi
4f14bcd8
GD
30208 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30209 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30210 fi
30211 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30212 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30213 fi
1d1b75ac 30214
2b5f62a0 30215 case "${host}" in
1d1b75ac
VZ
30216 powerpc*-*-aix* )
30217 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30218 ;;
2b5f62a0
VZ
30219 *-hppa* )
30220 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30221 ;;
1d1b75ac 30222 esac
4f14bcd8
GD
30223fi
30224
af7b5345 30225OPTIMISE=
4f14bcd8 30226if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30227 if test "$GCC" = yes ; then
30228 OPTIMISE="-O0"
30229 fi
4f14bcd8
GD
30230else
30231 if test "$GCC" = yes ; then
30232 OPTIMISE="-O2"
af7b5345
VZ
30233
30234 case "${host}" in
4f14bcd8
GD
30235 i586-*-*|i686-*-* )
30236 OPTIMISE="${OPTIMISE} "
30237 ;;
30238 esac
30239 else
30240 OPTIMISE="-O"
30241 fi
30242fi
30243
8d90d2f2 30244
65d8ef1e 30245if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30246 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30247#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30248_ACEOF
4f14bcd8 30249
8d90d2f2
VZ
30250
30251 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30252fi
30253
65d8ef1e 30254if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30255 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30256#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30257_ACEOF
65d8ef1e
VS
30258
30259fi
30260
8284b0c5 30261
10f2d63a 30262if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30263 cat >>confdefs.h <<\_ACEOF
10f2d63a 30264#define wxUSE_GUI 1
e6cc62c6 30265_ACEOF
10f2d63a 30266
8284b0c5 30267
10f2d63a 30268 else
e6cc62c6 30269 cat >>confdefs.h <<\_ACEOF
10f2d63a 30270#define wxUSE_NOGUI 1
e6cc62c6 30271_ACEOF
10f2d63a
VZ
30272
30273fi
30274
8284b0c5 30275
10f2d63a 30276if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30277 cat >>confdefs.h <<\_ACEOF
10f2d63a 30278#define wxUSE_UNIX 1
e6cc62c6 30279_ACEOF
10f2d63a
VZ
30280
30281fi
30282
8284b0c5 30283
df5168c4
MB
30284if test "$wxUSE_STL" = "yes"; then
30285 cat >>confdefs.h <<\_ACEOF
30286#define wxUSE_STL 1
30287_ACEOF
30288
30289fi
30290
10f2d63a 30291if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30292 cat >>confdefs.h <<\_ACEOF
10f2d63a 30293#define wxUSE_APPLE_IEEE 1
e6cc62c6 30294_ACEOF
10f2d63a
VZ
30295
30296fi
30297
1e6feb95 30298if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30299 cat >>confdefs.h <<\_ACEOF
1e6feb95 30300#define wxUSE_TIMER 1
e6cc62c6 30301_ACEOF
1e6feb95
VZ
30302
30303fi
30304
10f2d63a 30305if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30306 cat >>confdefs.h <<\_ACEOF
10f2d63a 30307#define wxUSE_WAVE 1
e6cc62c6 30308_ACEOF
10f2d63a
VZ
30309
30310fi
30311
1e6feb95 30312if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30313 cat >>confdefs.h <<\_ACEOF
1e6feb95 30314#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30315_ACEOF
1e6feb95
VZ
30316
30317fi
30318
30319if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30320 cat >>confdefs.h <<\_ACEOF
1e6feb95 30321#define wxUSE_STOPWATCH 1
e6cc62c6 30322_ACEOF
1e6feb95
VZ
30323
30324fi
30325
30326if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30327 cat >>confdefs.h <<\_ACEOF
1e6feb95 30328#define wxUSE_DATETIME 1
e6cc62c6 30329_ACEOF
1e6feb95
VZ
30330
30331fi
30332
10f2d63a 30333if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30334 cat >>confdefs.h <<\_ACEOF
10f2d63a 30335#define wxUSE_FILE 1
e6cc62c6 30336_ACEOF
10f2d63a
VZ
30337
30338fi
30339
1e6feb95 30340if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30341 cat >>confdefs.h <<\_ACEOF
1e6feb95 30342#define wxUSE_FFILE 1
e6cc62c6 30343_ACEOF
1e6feb95
VZ
30344
30345fi
30346
24528b0c 30347if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30348 cat >>confdefs.h <<\_ACEOF
24528b0c 30349#define wxUSE_FILESYSTEM 1
e6cc62c6 30350_ACEOF
24528b0c
VS
30351
30352fi
30353
10f2d63a 30354if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30355 cat >>confdefs.h <<\_ACEOF
10f2d63a 30356#define wxUSE_FS_ZIP 1
e6cc62c6 30357_ACEOF
10f2d63a
VZ
30358
30359fi
30360
30361if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30362 cat >>confdefs.h <<\_ACEOF
10f2d63a 30363#define wxUSE_ZIPSTREAM 1
e6cc62c6 30364_ACEOF
10f2d63a
VZ
30365
30366fi
30367
7015ef3a
VZ
30368if test "$wxUSE_GZSTREAM" = "yes"; then
30369 cat >>confdefs.h <<\_ACEOF
30370#define wxUSE_GZSTREAM 1
30371_ACEOF
30372
30373fi
30374
eb4efbdc 30375if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30376 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30377#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30378_ACEOF
eb4efbdc
VZ
30379
30380fi
30381
4f3c5f06 30382if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30383 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30384#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30385_ACEOF
4f3c5f06
VZ
30386
30387fi
30388
10f2d63a 30389if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30390 cat >>confdefs.h <<\_ACEOF
10f2d63a 30391#define wxUSE_BUSYINFO 1
e6cc62c6 30392_ACEOF
10f2d63a
VZ
30393
30394fi
30395
30396if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30397 cat >>confdefs.h <<\_ACEOF
10f2d63a 30398#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30399_ACEOF
10f2d63a
VZ
30400
30401fi
30402
a3a584a7 30403if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30404 cat >>confdefs.h <<\_ACEOF
a3a584a7 30405#define wxUSE_TEXTBUFFER 1
e6cc62c6 30406_ACEOF
a3a584a7
VZ
30407
30408fi
30409
10f2d63a 30410if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30411 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30412 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30413echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30414 else
e6cc62c6 30415 cat >>confdefs.h <<\_ACEOF
10f2d63a 30416#define wxUSE_TEXTFILE 1
e6cc62c6 30417_ACEOF
10f2d63a
VZ
30418
30419 fi
30420fi
30421
30422if test "$wxUSE_CONFIG" = "yes" ; then
30423 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30424 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30425echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30426 else
e6cc62c6 30427 cat >>confdefs.h <<\_ACEOF
10f2d63a 30428#define wxUSE_CONFIG 1
e6cc62c6 30429_ACEOF
10f2d63a
VZ
30430
30431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30432 fi
30433fi
30434
30435if test "$wxUSE_INTL" = "yes" ; then
30436 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30437 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30438echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30439 else
e6cc62c6 30440 cat >>confdefs.h <<\_ACEOF
10f2d63a 30441#define wxUSE_INTL 1
e6cc62c6 30442_ACEOF
10f2d63a
VZ
30443
30444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30445 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30446 fi
30447fi
30448
30449if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30450 cat >>confdefs.h <<\_ACEOF
10f2d63a 30451#define wxUSE_LOG 1
e6cc62c6 30452_ACEOF
10f2d63a 30453
8284b0c5 30454
d73be714 30455 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30456 cat >>confdefs.h <<\_ACEOF
d73be714 30457#define wxUSE_LOGGUI 1
e6cc62c6 30458_ACEOF
d73be714
VZ
30459
30460 fi
30461
30462 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30463 cat >>confdefs.h <<\_ACEOF
d73be714 30464#define wxUSE_LOGWINDOW 1
e6cc62c6 30465_ACEOF
69d27ff7
MB
30466
30467 fi
30468
30469 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30470 cat >>confdefs.h <<\_ACEOF
69d27ff7 30471#define wxUSE_LOG_DIALOG 1
e6cc62c6 30472_ACEOF
d73be714
VZ
30473
30474 fi
10f2d63a
VZ
30475fi
30476
30477if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30478 cat >>confdefs.h <<\_ACEOF
10f2d63a 30479#define wxUSE_LONGLONG 1
e6cc62c6 30480_ACEOF
10f2d63a
VZ
30481
30482fi
30483
e8f65ba6 30484if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30485 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30486#define wxUSE_GEOMETRY 1
e6cc62c6 30487_ACEOF
e8f65ba6
RR
30488
30489fi
30490
10f2d63a 30491if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30492 cat >>confdefs.h <<\_ACEOF
10f2d63a 30493#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30494_ACEOF
10f2d63a 30495
70f7a477 30496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30497fi
30498
30499if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30500 cat >>confdefs.h <<\_ACEOF
10f2d63a 30501#define wxUSE_STREAMS 1
e6cc62c6 30502_ACEOF
10f2d63a
VZ
30503
30504fi
30505
5c6fa7d2 30506
8284b0c5 30507if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30508
30509for ac_func in strptime
83307f33 30510do
e6cc62c6
VS
30511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30512echo "$as_me:$LINENO: checking for $ac_func" >&5
30513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30514if eval "test \"\${$as_ac_var+set}\" = set"; then
30515 echo $ECHO_N "(cached) $ECHO_C" >&6
30516else
30517 cat >conftest.$ac_ext <<_ACEOF
30518#line $LINENO "configure"
30519/* confdefs.h. */
30520_ACEOF
30521cat confdefs.h >>conftest.$ac_ext
30522cat >>conftest.$ac_ext <<_ACEOF
30523/* end confdefs.h. */
83307f33 30524/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30525 which can conflict with char $ac_func (); below.
30526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30527 <limits.h> exists even on freestanding compilers. */
30528#ifdef __STDC__
30529# include <limits.h>
30530#else
30531# include <assert.h>
30532#endif
83307f33 30533/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30534#ifdef __cplusplus
30535extern "C"
30536{
30537#endif
83307f33 30538/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30539 builtin and then its argument prototype would still apply. */
30540char $ac_func ();
83307f33
VZ
30541/* The GNU C library defines this for functions which it implements
30542 to always fail with ENOSYS. Some functions are actually named
30543 something starting with __ and the normal name is an alias. */
30544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30545choke me
30546#else
e6cc62c6
VS
30547char (*f) () = $ac_func;
30548#endif
30549#ifdef __cplusplus
30550}
83307f33
VZ
30551#endif
30552
e6cc62c6
VS
30553int
30554main ()
30555{
30556return f != $ac_func;
30557 ;
30558 return 0;
30559}
30560_ACEOF
30561rm -f conftest.$ac_objext conftest$ac_exeext
30562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30563 (eval $ac_link) 2>&5
30564 ac_status=$?
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } &&
30567 { ac_try='test -s conftest$ac_exeext'
30568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30569 (eval $ac_try) 2>&5
30570 ac_status=$?
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); }; }; then
30573 eval "$as_ac_var=yes"
30574else
30575 echo "$as_me: failed program was:" >&5
30576sed 's/^/| /' conftest.$ac_ext >&5
30577
30578eval "$as_ac_var=no"
30579fi
30580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30581fi
30582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30584if test `eval echo '${'$as_ac_var'}'` = yes; then
30585 cat >>confdefs.h <<_ACEOF
30586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30587_ACEOF
83307f33 30588
83307f33
VZ
30589fi
30590done
30591
5c6fa7d2 30592
e6cc62c6
VS
30593 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30594echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30595if test "${wx_cv_var_timezone+set}" = set; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30597else
e6cc62c6
VS
30598
30599 cat >conftest.$ac_ext <<_ACEOF
30600#line $LINENO "configure"
30601/* confdefs.h. */
30602_ACEOF
30603cat confdefs.h >>conftest.$ac_ext
30604cat >>conftest.$ac_ext <<_ACEOF
30605/* end confdefs.h. */
360d6699 30606
b4085ce6 30607 #include <time.h>
e6cc62c6
VS
30608
30609int
30610main ()
30611{
360d6699
VZ
30612
30613 int tz;
4f11a343 30614 tz = timezone;
e6cc62c6
VS
30615
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext
30621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30622 (eval $ac_compile) 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
30626 { ac_try='test -s conftest.$ac_objext'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; }; then
30632
4f11a343 30633 wx_cv_var_timezone=timezone
e6cc62c6 30634
360d6699 30635else
e6cc62c6
VS
30636 echo "$as_me: failed program was:" >&5
30637sed 's/^/| /' conftest.$ac_ext >&5
30638
30639
30640 cat >conftest.$ac_ext <<_ACEOF
30641#line $LINENO "configure"
30642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
360d6699 30647
b4085ce6 30648 #include <time.h>
e6cc62c6
VS
30649
30650int
30651main ()
30652{
360d6699
VZ
30653
30654 int tz;
30655 tz = _timezone;
e6cc62c6
VS
30656
30657 ;
30658 return 0;
30659}
30660_ACEOF
30661rm -f conftest.$ac_objext
30662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30663 (eval $ac_compile) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); } &&
30667 { ac_try='test -s conftest.$ac_objext'
30668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30669 (eval $ac_try) 2>&5
30670 ac_status=$?
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); }; }; then
30673
360d6699 30674 wx_cv_var_timezone=_timezone
e6cc62c6 30675
5357c8e8 30676else
e6cc62c6
VS
30677 echo "$as_me: failed program was:" >&5
30678sed 's/^/| /' conftest.$ac_ext >&5
30679
30680
30681 cat >conftest.$ac_ext <<_ACEOF
30682#line $LINENO "configure"
30683/* confdefs.h. */
30684_ACEOF
30685cat confdefs.h >>conftest.$ac_ext
30686cat >>conftest.$ac_ext <<_ACEOF
30687/* end confdefs.h. */
5357c8e8 30688
b4085ce6 30689 #include <time.h>
e6cc62c6
VS
30690
30691int
30692main ()
30693{
5357c8e8
VZ
30694
30695 int tz;
4f11a343 30696 tz = __timezone;
e6cc62c6
VS
30697
30698 ;
30699 return 0;
30700}
30701_ACEOF
30702rm -f conftest.$ac_objext
30703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30704 (eval $ac_compile) 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
30708 { ac_try='test -s conftest.$ac_objext'
30709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30710 (eval $ac_try) 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; }; then
30714
4f11a343 30715 wx_cv_var_timezone=__timezone
e6cc62c6 30716
360d6699 30717else
e6cc62c6
VS
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721
f9bc1684 30722 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30723 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30724echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30725 fi
e6cc62c6
VS
30726
30727
7b4a847f 30728fi
e6cc62c6
VS
30729rm -f conftest.$ac_objext conftest.$ac_ext
30730
30731
5c6fa7d2 30732fi
e6cc62c6
VS
30733rm -f conftest.$ac_objext conftest.$ac_ext
30734
30735
247f5006 30736fi
e6cc62c6 30737rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30738
e6cc62c6
VS
30739
30740fi
30741echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30742echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30743
f9bc1684 30744 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30745 cat >>confdefs.h <<_ACEOF
360d6699 30746#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30747_ACEOF
360d6699 30748
f9bc1684 30749 fi
698dcdb6 30750
e6cc62c6
VS
30751
30752for ac_func in localtime
afc31813 30753do
e6cc62c6
VS
30754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755echo "$as_me:$LINENO: checking for $ac_func" >&5
30756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30757if eval "test \"\${$as_ac_var+set}\" = set"; then
30758 echo $ECHO_N "(cached) $ECHO_C" >&6
30759else
30760 cat >conftest.$ac_ext <<_ACEOF
30761#line $LINENO "configure"
30762/* confdefs.h. */
30763_ACEOF
30764cat confdefs.h >>conftest.$ac_ext
30765cat >>conftest.$ac_ext <<_ACEOF
30766/* end confdefs.h. */
afc31813 30767/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30768 which can conflict with char $ac_func (); below.
30769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30770 <limits.h> exists even on freestanding compilers. */
30771#ifdef __STDC__
30772# include <limits.h>
30773#else
30774# include <assert.h>
30775#endif
afc31813 30776/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30777#ifdef __cplusplus
30778extern "C"
30779{
30780#endif
afc31813 30781/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30782 builtin and then its argument prototype would still apply. */
30783char $ac_func ();
afc31813
VZ
30784/* The GNU C library defines this for functions which it implements
30785 to always fail with ENOSYS. Some functions are actually named
30786 something starting with __ and the normal name is an alias. */
30787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30788choke me
30789#else
e6cc62c6
VS
30790char (*f) () = $ac_func;
30791#endif
30792#ifdef __cplusplus
30793}
afc31813
VZ
30794#endif
30795
e6cc62c6
VS
30796int
30797main ()
30798{
30799return f != $ac_func;
30800 ;
30801 return 0;
30802}
30803_ACEOF
30804rm -f conftest.$ac_objext conftest$ac_exeext
30805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30806 (eval $ac_link) 2>&5
30807 ac_status=$?
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); } &&
30810 { ac_try='test -s conftest$ac_exeext'
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; }; then
30816 eval "$as_ac_var=yes"
30817else
30818 echo "$as_me: failed program was:" >&5
30819sed 's/^/| /' conftest.$ac_ext >&5
30820
30821eval "$as_ac_var=no"
30822fi
30823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30824fi
30825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30827if test `eval echo '${'$as_ac_var'}'` = yes; then
30828 cat >>confdefs.h <<_ACEOF
30829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30830_ACEOF
afc31813 30831
afc31813
VZ
30832fi
30833done
30834
5c6fa7d2 30835
8284b0c5 30836 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30837 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30838echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30839if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30840 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30841else
e6cc62c6
VS
30842
30843 cat >conftest.$ac_ext <<_ACEOF
30844#line $LINENO "configure"
30845/* confdefs.h. */
30846_ACEOF
30847cat confdefs.h >>conftest.$ac_ext
30848cat >>conftest.$ac_ext <<_ACEOF
30849/* end confdefs.h. */
0470b1e6 30850
b4085ce6 30851 #include <time.h>
e6cc62c6
VS
30852
30853int
30854main ()
30855{
0470b1e6
VZ
30856
30857 struct tm tm;
30858 tm.tm_gmtoff++;
e6cc62c6
VS
30859
30860 ;
30861 return 0;
30862}
30863_ACEOF
30864rm -f conftest.$ac_objext
30865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30866 (eval $ac_compile) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } &&
30870 { ac_try='test -s conftest.$ac_objext'
30871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872 (eval $ac_try) 2>&5
30873 ac_status=$?
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; }; then
30876
f03a98d8 30877 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30878
0470b1e6 30879else
e6cc62c6
VS
30880 echo "$as_me: failed program was:" >&5
30881sed 's/^/| /' conftest.$ac_ext >&5
30882
30883wx_cv_struct_tm_has_gmtoff=no
30884
247f5006 30885fi
e6cc62c6 30886rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30887
e6cc62c6
VS
30888fi
30889echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30890echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30891 fi
30892
30893 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30894 cat >>confdefs.h <<\_ACEOF
6232543b 30895#define WX_GMTOFF_IN_TM 1
e6cc62c6 30896_ACEOF
0470b1e6 30897
3fcdd07b
VZ
30898 fi
30899
e6cc62c6
VS
30900
30901
30902for ac_func in gettimeofday ftime
3fcdd07b 30903do
e6cc62c6
VS
30904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30905echo "$as_me:$LINENO: checking for $ac_func" >&5
30906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30907if eval "test \"\${$as_ac_var+set}\" = set"; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909else
30910 cat >conftest.$ac_ext <<_ACEOF
30911#line $LINENO "configure"
30912/* confdefs.h. */
30913_ACEOF
30914cat confdefs.h >>conftest.$ac_ext
30915cat >>conftest.$ac_ext <<_ACEOF
30916/* end confdefs.h. */
3fcdd07b 30917/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30918 which can conflict with char $ac_func (); below.
30919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30920 <limits.h> exists even on freestanding compilers. */
30921#ifdef __STDC__
30922# include <limits.h>
30923#else
30924# include <assert.h>
30925#endif
3fcdd07b 30926/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30927#ifdef __cplusplus
30928extern "C"
30929{
30930#endif
3fcdd07b 30931/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30932 builtin and then its argument prototype would still apply. */
30933char $ac_func ();
3fcdd07b
VZ
30934/* The GNU C library defines this for functions which it implements
30935 to always fail with ENOSYS. Some functions are actually named
30936 something starting with __ and the normal name is an alias. */
30937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30938choke me
30939#else
e6cc62c6
VS
30940char (*f) () = $ac_func;
30941#endif
30942#ifdef __cplusplus
30943}
3fcdd07b
VZ
30944#endif
30945
e6cc62c6
VS
30946int
30947main ()
30948{
30949return f != $ac_func;
30950 ;
30951 return 0;
30952}
30953_ACEOF
30954rm -f conftest.$ac_objext conftest$ac_exeext
30955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30956 (eval $ac_link) 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); } &&
30960 { ac_try='test -s conftest$ac_exeext'
30961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30962 (eval $ac_try) 2>&5
30963 ac_status=$?
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); }; }; then
30966 eval "$as_ac_var=yes"
30967else
30968 echo "$as_me: failed program was:" >&5
30969sed 's/^/| /' conftest.$ac_ext >&5
30970
30971eval "$as_ac_var=no"
30972fi
30973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30974fi
30975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30977if test `eval echo '${'$as_ac_var'}'` = yes; then
30978 cat >>confdefs.h <<_ACEOF
30979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30980_ACEOF
3fcdd07b 30981 break
3fcdd07b
VZ
30982fi
30983done
30984
698dcdb6 30985
8284b0c5 30986 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30987 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30988echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30989if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992
30993
30994
30995 ac_ext=cc
5c6fa7d2 30996ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31000
8284b0c5 31001
e6cc62c6
VS
31002 cat >conftest.$ac_ext <<_ACEOF
31003#line $LINENO "configure"
31004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
afc31813
VZ
31009
31010 #include <sys/time.h>
31011 #include <unistd.h>
e6cc62c6
VS
31012
31013int
31014main ()
31015{
afc31813
VZ
31016
31017 struct timeval tv;
776862b4 31018 gettimeofday(&tv, NULL);
e6cc62c6
VS
31019
31020 ;
31021 return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext
31025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31026 (eval $ac_compile) 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } &&
31030 { ac_try='test -s conftest.$ac_objext'
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
afc31813 31036 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31037else
e6cc62c6
VS
31038 echo "$as_me: failed program was:" >&5
31039sed 's/^/| /' conftest.$ac_ext >&5
31040
31041cat >conftest.$ac_ext <<_ACEOF
31042#line $LINENO "configure"
31043/* confdefs.h. */
31044_ACEOF
31045cat confdefs.h >>conftest.$ac_ext
31046cat >>conftest.$ac_ext <<_ACEOF
31047/* end confdefs.h. */
afc31813
VZ
31048
31049 #include <sys/time.h>
31050 #include <unistd.h>
e6cc62c6
VS
31051
31052int
31053main ()
31054{
afc31813
VZ
31055
31056 struct timeval tv;
31057 gettimeofday(&tv);
e6cc62c6
VS
31058
31059 ;
31060 return 0;
31061}
31062_ACEOF
31063rm -f conftest.$ac_objext
31064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31065 (eval $ac_compile) 2>&5
31066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } &&
31069 { ac_try='test -s conftest.$ac_objext'
31070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071 (eval $ac_try) 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
afc31813 31075 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31076else
e6cc62c6
VS
31077 echo "$as_me: failed program was:" >&5
31078sed 's/^/| /' conftest.$ac_ext >&5
31079
31080
31081 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31082echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31083 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31084
31085
10f2d63a 31086fi
e6cc62c6
VS
31087rm -f conftest.$ac_objext conftest.$ac_ext
31088
10f2d63a 31089fi
e6cc62c6 31090rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31091 ac_ext=c
10f2d63a 31092ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31095ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31096
a0b9e27f 31097
e6cc62c6
VS
31098fi
31099echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31100echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31101
afc31813 31102 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31103 cat >>confdefs.h <<\_ACEOF
afc31813 31104#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31105_ACEOF
afc31813
VZ
31106
31107 fi
31108 fi
31109
afc31813
VZ
31110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31111fi
31112
8284b0c5 31113
52127426 31114if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31115 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31116 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31117echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31118 wxUSE_SOCKETS="no"
31119 fi
3879ecda
VZ
31120 if test "$wxUSE_COCOA" = "1"; then
31121 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31122echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31123 wxUSE_SOCKETS="no"
31124 fi
0feee163 31125fi
b089607b 31126
0feee163
VZ
31127if test "$wxUSE_SOCKETS" = "yes"; then
31128 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31129 echo "$as_me:$LINENO: checking for socket" >&5
31130echo $ECHO_N "checking for socket... $ECHO_C" >&6
31131if test "${ac_cv_func_socket+set}" = set; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31133else
31134 cat >conftest.$ac_ext <<_ACEOF
31135#line $LINENO "configure"
31136/* confdefs.h. */
31137_ACEOF
31138cat confdefs.h >>conftest.$ac_ext
31139cat >>conftest.$ac_ext <<_ACEOF
31140/* end confdefs.h. */
c63c7106 31141/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31142 which can conflict with char socket (); below.
31143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31144 <limits.h> exists even on freestanding compilers. */
31145#ifdef __STDC__
31146# include <limits.h>
31147#else
31148# include <assert.h>
31149#endif
c63c7106 31150/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31151#ifdef __cplusplus
31152extern "C"
31153{
31154#endif
c63c7106 31155/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31156 builtin and then its argument prototype would still apply. */
31157char socket ();
c63c7106
VZ
31158/* The GNU C library defines this for functions which it implements
31159 to always fail with ENOSYS. Some functions are actually named
31160 something starting with __ and the normal name is an alias. */
31161#if defined (__stub_socket) || defined (__stub___socket)
31162choke me
31163#else
e6cc62c6
VS
31164char (*f) () = socket;
31165#endif
31166#ifdef __cplusplus
31167}
c63c7106
VZ
31168#endif
31169
e6cc62c6
VS
31170int
31171main ()
31172{
31173return f != socket;
31174 ;
31175 return 0;
31176}
31177_ACEOF
31178rm -f conftest.$ac_objext conftest$ac_exeext
31179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31180 (eval $ac_link) 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); } &&
31184 { ac_try='test -s conftest$ac_exeext'
31185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186 (eval $ac_try) 2>&5
31187 ac_status=$?
31188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189 (exit $ac_status); }; }; then
31190 ac_cv_func_socket=yes
31191else
31192 echo "$as_me: failed program was:" >&5
31193sed 's/^/| /' conftest.$ac_ext >&5
31194
31195ac_cv_func_socket=no
31196fi
31197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31198fi
31199echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31200echo "${ECHO_T}$ac_cv_func_socket" >&6
31201if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31202 :
31203else
0e012a93
VZ
31204
31205 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31206echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31207if test "${ac_cv_lib_socket_socket+set}" = set; then
31208 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31209else
e6cc62c6 31210 ac_check_lib_save_LIBS=$LIBS
c63c7106 31211LIBS="-lsocket $LIBS"
e6cc62c6
VS
31212cat >conftest.$ac_ext <<_ACEOF
31213#line $LINENO "configure"
31214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
31219
c63c7106 31220/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31221#ifdef __cplusplus
31222extern "C"
31223#endif
c63c7106 31224/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31225 builtin and then its argument prototype would still apply. */
31226char socket ();
31227int
31228main ()
31229{
31230socket ();
31231 ;
31232 return 0;
31233}
31234_ACEOF
31235rm -f conftest.$ac_objext conftest$ac_exeext
31236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31237 (eval $ac_link) 2>&5
31238 ac_status=$?
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); } &&
31241 { ac_try='test -s conftest$ac_exeext'
31242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31243 (eval $ac_try) 2>&5
31244 ac_status=$?
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; }; then
31247 ac_cv_lib_socket_socket=yes
31248else
31249 echo "$as_me: failed program was:" >&5
31250sed 's/^/| /' conftest.$ac_ext >&5
31251
31252ac_cv_lib_socket_socket=no
31253fi
31254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31255LIBS=$ac_check_lib_save_LIBS
31256fi
31257echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31258echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31259if test $ac_cv_lib_socket_socket = yes; then
d558c907 31260 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31261 INET_LINK="$INET_LINK -lsocket"
31262 fi
c63c7106 31263else
afc31813 31264
0e012a93 31265 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31266echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31267 wxUSE_SOCKETS=no
e6cc62c6
VS
31268
31269
6232543b 31270fi
b089607b 31271
e6cc62c6 31272
0e012a93 31273
1e487827 31274fi
afc31813 31275
3a922bb4 31276 fi
0feee163 31277fi
51a9faba 31278
0feee163
VZ
31279if test "$wxUSE_SOCKETS" = "yes" ; then
31280 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31281 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31282echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31283if test "${wx_cv_type_getsockname3+set}" = set; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31285else
e6cc62c6
VS
31286
31287 cat >conftest.$ac_ext <<_ACEOF
31288#line $LINENO "configure"
31289/* confdefs.h. */
31290_ACEOF
31291cat confdefs.h >>conftest.$ac_ext
31292cat >>conftest.$ac_ext <<_ACEOF
31293/* end confdefs.h. */
51a9faba 31294
3a922bb4
RL
31295 #include <sys/types.h>
31296 #include <sys/socket.h>
e6cc62c6
VS
31297
31298int
31299main ()
31300{
51a9faba 31301
3a922bb4
RL
31302 socklen_t len;
31303 getsockname(0, 0, &len);
e6cc62c6
VS
31304
31305 ;
31306 return 0;
31307}
31308_ACEOF
31309rm -f conftest.$ac_objext
31310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31311 (eval $ac_compile) 2>&5
31312 ac_status=$?
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
31315 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
51a9faba 31321 wx_cv_type_getsockname3=socklen_t
afc31813 31322else
e6cc62c6
VS
31323 echo "$as_me: failed program was:" >&5
31324sed 's/^/| /' conftest.$ac_ext >&5
31325
31326
9711d31e
GD
31327 CFLAGS_OLD="$CFLAGS"
31328 if test "$GCC" = yes ; then
31329 CFLAGS="$CFLAGS -Werror"
31330 fi
31331
e6cc62c6
VS
31332 cat >conftest.$ac_ext <<_ACEOF
31333#line $LINENO "configure"
31334/* confdefs.h. */
31335_ACEOF
31336cat confdefs.h >>conftest.$ac_ext
31337cat >>conftest.$ac_ext <<_ACEOF
31338/* end confdefs.h. */
51a9faba 31339
9711d31e
GD
31340 #include <sys/types.h>
31341 #include <sys/socket.h>
e6cc62c6
VS
31342
31343int
31344main ()
31345{
51a9faba 31346
9711d31e
GD
31347 size_t len;
31348 getsockname(0, 0, &len);
e6cc62c6
VS
31349
31350 ;
31351 return 0;
31352}
31353_ACEOF
31354rm -f conftest.$ac_objext
31355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31356 (eval $ac_compile) 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } &&
31360 { ac_try='test -s conftest.$ac_objext'
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; }; then
51a9faba 31366 wx_cv_type_getsockname3=size_t
afc31813 31367else
e6cc62c6
VS
31368 echo "$as_me: failed program was:" >&5
31369sed 's/^/| /' conftest.$ac_ext >&5
31370
31371cat >conftest.$ac_ext <<_ACEOF
31372#line $LINENO "configure"
31373/* confdefs.h. */
31374_ACEOF
31375cat confdefs.h >>conftest.$ac_ext
31376cat >>conftest.$ac_ext <<_ACEOF
31377/* end confdefs.h. */
51a9faba 31378
9711d31e
GD
31379 #include <sys/types.h>
31380 #include <sys/socket.h>
e6cc62c6
VS
31381
31382int
31383main ()
31384{
51a9faba 31385
9711d31e
GD
31386 int len;
31387 getsockname(0, 0, &len);
e6cc62c6
VS
31388
31389 ;
31390 return 0;
31391}
31392_ACEOF
31393rm -f conftest.$ac_objext
31394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31395 (eval $ac_compile) 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
31399 { ac_try='test -s conftest.$ac_objext'
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
51a9faba 31405 wx_cv_type_getsockname3=int
afc31813 31406else
e6cc62c6
VS
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410wx_cv_type_getsockname3=unknown
31411
afc31813 31412fi
e6cc62c6
VS
31413rm -f conftest.$ac_objext conftest.$ac_ext
31414
afc31813 31415fi
e6cc62c6 31416rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31417
31418 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31419
31420
247f5006 31421fi
e6cc62c6 31422rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31423
e6cc62c6
VS
31424fi
31425echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31426echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31427
3a922bb4
RL
31428 if test "$wx_cv_type_getsockname3" = "unknown"; then
31429 wxUSE_SOCKETS=no
e6cc62c6
VS
31430 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31431echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31432 else
e6cc62c6 31433 cat >>confdefs.h <<_ACEOF
51a9faba 31434#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31435_ACEOF
51a9faba 31436
3a922bb4 31437 fi
51a9faba
VZ
31438 fi
31439fi
afc31813 31440
51a9faba 31441if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31442 cat >>confdefs.h <<\_ACEOF
afc31813 31443#define wxUSE_SOCKETS 1
e6cc62c6 31444_ACEOF
afc31813 31445
70f7a477 31446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31447fi
31448
3879ecda
VZ
31449if test "$wxUSE_PROTOCOL" = "yes"; then
31450 if test "$wxUSE_SOCKETS" != "yes"; then
31451 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31452echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31453 wxUSE_PROTOCOL=no
31454 fi
31455fi
31456
31457if test "$wxUSE_PROTOCOL" = "yes"; then
31458 cat >>confdefs.h <<\_ACEOF
31459#define wxUSE_PROTOCOL 1
31460_ACEOF
31461
31462
31463 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31464 cat >>confdefs.h <<\_ACEOF
31465#define wxUSE_PROTOCOL_HTTP 1
31466_ACEOF
31467
31468 fi
31469 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31470 cat >>confdefs.h <<\_ACEOF
31471#define wxUSE_PROTOCOL_FTP 1
31472_ACEOF
31473
31474 fi
31475 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31476 cat >>confdefs.h <<\_ACEOF
31477#define wxUSE_PROTOCOL_FILE 1
31478_ACEOF
31479
31480 fi
31481else
31482 if test "$wxUSE_FS_INET" = "yes"; then
31483 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31484echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31485 wxUSE_FS_INET="no"
31486 fi
31487fi
31488
31489if test "$wxUSE_URL" = "yes"; then
31490 if test "$wxUSE_PROTOCOL" != "yes"; then
31491 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31492echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31493 wxUSE_URL=no
31494 fi
31495 if test "$wxUSE_URL" = "yes"; then
31496 cat >>confdefs.h <<\_ACEOF
31497#define wxUSE_URL 1
31498_ACEOF
31499
31500 fi
31501fi
31502
31503if test "$wxUSE_FS_INET" = "yes"; then
31504 cat >>confdefs.h <<\_ACEOF
31505#define wxUSE_FS_INET 1
31506_ACEOF
31507
31508fi
31509
8284b0c5 31510
dc3d889d
VZ
31511if test "$wxUSE_GUI" = "yes"; then
31512
ac0c4cc3 31513 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31514 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31515echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31516 wxUSE_JOYSTICK=no
156b2523
GD
31517 fi
31518
131f235d 31519 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31520 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31521
31522for ac_header in linux/joystick.h
10f2d63a 31523do
e6cc62c6
VS
31524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31525if eval "test \"\${$as_ac_Header+set}\" = set"; then
31526 echo "$as_me:$LINENO: checking for $ac_header" >&5
31527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31528if eval "test \"\${$as_ac_Header+set}\" = set"; then
31529 echo $ECHO_N "(cached) $ECHO_C" >&6
31530fi
31531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31533else
31534 # Is the header compilable?
31535echo "$as_me:$LINENO: checking $ac_header usability" >&5
31536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31537cat >conftest.$ac_ext <<_ACEOF
31538#line $LINENO "configure"
31539/* confdefs.h. */
31540_ACEOF
31541cat confdefs.h >>conftest.$ac_ext
31542cat >>conftest.$ac_ext <<_ACEOF
31543/* end confdefs.h. */
31544$ac_includes_default
31545#include <$ac_header>
31546_ACEOF
31547rm -f conftest.$ac_objext
31548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31549 (eval $ac_compile) 2>&5
31550 ac_status=$?
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } &&
31553 { ac_try='test -s conftest.$ac_objext'
31554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31555 (eval $ac_try) 2>&5
31556 ac_status=$?
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; }; then
31559 ac_header_compiler=yes
31560else
31561 echo "$as_me: failed program was:" >&5
31562sed 's/^/| /' conftest.$ac_ext >&5
31563
31564ac_header_compiler=no
31565fi
31566rm -f conftest.$ac_objext conftest.$ac_ext
31567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31568echo "${ECHO_T}$ac_header_compiler" >&6
31569
31570# Is the header present?
31571echo "$as_me:$LINENO: checking $ac_header presence" >&5
31572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31573cat >conftest.$ac_ext <<_ACEOF
31574#line $LINENO "configure"
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580#include <$ac_header>
31581_ACEOF
31582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31584 ac_status=$?
31585 grep -v '^ *+' conftest.er1 >conftest.err
31586 rm -f conftest.er1
31587 cat conftest.err >&5
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } >/dev/null; then
31590 if test -s conftest.err; then
31591 ac_cpp_err=$ac_c_preproc_warn_flag
31592 else
31593 ac_cpp_err=
31594 fi
31595else
31596 ac_cpp_err=yes
31597fi
31598if test -z "$ac_cpp_err"; then
31599 ac_header_preproc=yes
31600else
31601 echo "$as_me: failed program was:" >&5
31602sed 's/^/| /' conftest.$ac_ext >&5
31603
31604 ac_header_preproc=no
31605fi
31606rm -f conftest.err conftest.$ac_ext
31607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31608echo "${ECHO_T}$ac_header_preproc" >&6
31609
31610# So? What about this header?
31611case $ac_header_compiler:$ac_header_preproc in
31612 yes:no )
31613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31617 (
31618 cat <<\_ASBOX
31619## ------------------------------------ ##
31620## Report this to bug-autoconf@gnu.org. ##
31621## ------------------------------------ ##
31622_ASBOX
31623 ) |
31624 sed "s/^/$as_me: WARNING: /" >&2
31625 ;;
31626 no:yes )
31627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31633 (
31634 cat <<\_ASBOX
31635## ------------------------------------ ##
31636## Report this to bug-autoconf@gnu.org. ##
31637## ------------------------------------ ##
31638_ASBOX
31639 ) |
31640 sed "s/^/$as_me: WARNING: /" >&2
31641 ;;
31642esac
31643echo "$as_me:$LINENO: checking for $ac_header" >&5
31644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31645if eval "test \"\${$as_ac_Header+set}\" = set"; then
31646 echo $ECHO_N "(cached) $ECHO_C" >&6
31647else
31648 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31649fi
e6cc62c6
VS
31650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31652
10f2d63a 31653fi
e6cc62c6
VS
31654if test `eval echo '${'$as_ac_Header'}'` = yes; then
31655 cat >>confdefs.h <<_ACEOF
31656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31657_ACEOF
31658
247f5006 31659fi
e6cc62c6 31660
10f2d63a
VZ
31661done
31662
3a922bb4
RL
31663 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31664 wxUSE_JOYSTICK=no
e6cc62c6
VS
31665 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31666echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31667 fi
31668 fi
31669 fi
b089607b 31670
3a922bb4 31671 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31672 cat >>confdefs.h <<\_ACEOF
10f2d63a 31673#define wxUSE_JOYSTICK 1
e6cc62c6 31674_ACEOF
10f2d63a 31675
3a922bb4
RL
31676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31677 fi
dc3d889d
VZ
31678fi
31679
8284b0c5 31680
73d617c9 31681if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 31682
3a922bb4
RL
31683 HAVE_DL_FUNCS=0
31684 HAVE_SHL_FUNCS=0
0b9ab0bd 31685 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31686 if test "$USE_DARWIN" = 1; then
31687 HAVE_DL_FUNCS=1
31688 else
e6cc62c6
VS
31689
31690for ac_func in dlopen
10f2d63a 31691do
e6cc62c6
VS
31692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31693echo "$as_me:$LINENO: checking for $ac_func" >&5
31694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31695if eval "test \"\${$as_ac_var+set}\" = set"; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697else
31698 cat >conftest.$ac_ext <<_ACEOF
31699#line $LINENO "configure"
31700/* confdefs.h. */
31701_ACEOF
31702cat confdefs.h >>conftest.$ac_ext
31703cat >>conftest.$ac_ext <<_ACEOF
31704/* end confdefs.h. */
10f2d63a 31705/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31706 which can conflict with char $ac_func (); below.
31707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31708 <limits.h> exists even on freestanding compilers. */
31709#ifdef __STDC__
31710# include <limits.h>
31711#else
31712# include <assert.h>
31713#endif
10f2d63a 31714/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31715#ifdef __cplusplus
31716extern "C"
31717{
31718#endif
10f2d63a 31719/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31720 builtin and then its argument prototype would still apply. */
31721char $ac_func ();
10f2d63a
VZ
31722/* The GNU C library defines this for functions which it implements
31723 to always fail with ENOSYS. Some functions are actually named
31724 something starting with __ and the normal name is an alias. */
31725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31726choke me
31727#else
e6cc62c6
VS
31728char (*f) () = $ac_func;
31729#endif
31730#ifdef __cplusplus
31731}
10f2d63a
VZ
31732#endif
31733
e6cc62c6
VS
31734int
31735main ()
31736{
31737return f != $ac_func;
31738 ;
31739 return 0;
31740}
31741_ACEOF
31742rm -f conftest.$ac_objext conftest$ac_exeext
31743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31744 (eval $ac_link) 2>&5
31745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } &&
31748 { ac_try='test -s conftest$ac_exeext'
31749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750 (eval $ac_try) 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 eval "$as_ac_var=yes"
31755else
31756 echo "$as_me: failed program was:" >&5
31757sed 's/^/| /' conftest.$ac_ext >&5
31758
31759eval "$as_ac_var=no"
31760fi
31761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31762fi
31763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31765if test `eval echo '${'$as_ac_var'}'` = yes; then
31766 cat >>confdefs.h <<_ACEOF
31767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31768_ACEOF
31769
31770 cat >>confdefs.h <<\_ACEOF
10f2d63a 31771#define HAVE_DLOPEN 1
e6cc62c6 31772_ACEOF
10f2d63a 31773
3a922bb4 31774 HAVE_DL_FUNCS=1
e6cc62c6 31775
10f2d63a 31776else
e6cc62c6
VS
31777
31778 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31779echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31780if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31781 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31782else
e6cc62c6 31783 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31784LIBS="-ldl $LIBS"
e6cc62c6
VS
31785cat >conftest.$ac_ext <<_ACEOF
31786#line $LINENO "configure"
31787/* confdefs.h. */
31788_ACEOF
31789cat confdefs.h >>conftest.$ac_ext
31790cat >>conftest.$ac_ext <<_ACEOF
31791/* end confdefs.h. */
31792
10f2d63a 31793/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31794#ifdef __cplusplus
31795extern "C"
31796#endif
10f2d63a 31797/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31798 builtin and then its argument prototype would still apply. */
31799char dlopen ();
31800int
31801main ()
31802{
31803dlopen ();
31804 ;
31805 return 0;
31806}
31807_ACEOF
31808rm -f conftest.$ac_objext conftest$ac_exeext
31809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31810 (eval $ac_link) 2>&5
31811 ac_status=$?
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -s conftest$ac_exeext'
31815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31816 (eval $ac_try) 2>&5
31817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; }; then
31820 ac_cv_lib_dl_dlopen=yes
31821else
31822 echo "$as_me: failed program was:" >&5
31823sed 's/^/| /' conftest.$ac_ext >&5
31824
31825ac_cv_lib_dl_dlopen=no
31826fi
31827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31828LIBS=$ac_check_lib_save_LIBS
31829fi
31830echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31831echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31832if test $ac_cv_lib_dl_dlopen = yes; then
31833
31834 cat >>confdefs.h <<\_ACEOF
10f2d63a 31835#define HAVE_DLOPEN 1
e6cc62c6 31836_ACEOF
10f2d63a 31837
3a922bb4 31838 HAVE_DL_FUNCS=1
3d63bc3a 31839 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31840
10f2d63a 31841else
10f2d63a 31842
e6cc62c6
VS
31843
31844for ac_func in shl_load
10f2d63a 31845do
e6cc62c6
VS
31846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31847echo "$as_me:$LINENO: checking for $ac_func" >&5
31848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31849if eval "test \"\${$as_ac_var+set}\" = set"; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851else
31852 cat >conftest.$ac_ext <<_ACEOF
31853#line $LINENO "configure"
31854/* confdefs.h. */
31855_ACEOF
31856cat confdefs.h >>conftest.$ac_ext
31857cat >>conftest.$ac_ext <<_ACEOF
31858/* end confdefs.h. */
10f2d63a 31859/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31860 which can conflict with char $ac_func (); below.
31861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31862 <limits.h> exists even on freestanding compilers. */
31863#ifdef __STDC__
31864# include <limits.h>
31865#else
31866# include <assert.h>
31867#endif
10f2d63a 31868/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31869#ifdef __cplusplus
31870extern "C"
31871{
31872#endif
10f2d63a 31873/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31874 builtin and then its argument prototype would still apply. */
31875char $ac_func ();
10f2d63a
VZ
31876/* The GNU C library defines this for functions which it implements
31877 to always fail with ENOSYS. Some functions are actually named
31878 something starting with __ and the normal name is an alias. */
31879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31880choke me
31881#else
e6cc62c6
VS
31882char (*f) () = $ac_func;
31883#endif
31884#ifdef __cplusplus
31885}
10f2d63a
VZ
31886#endif
31887
e6cc62c6
VS
31888int
31889main ()
31890{
31891return f != $ac_func;
31892 ;
31893 return 0;
31894}
31895_ACEOF
31896rm -f conftest.$ac_objext conftest$ac_exeext
31897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31898 (eval $ac_link) 2>&5
31899 ac_status=$?
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } &&
31902 { ac_try='test -s conftest$ac_exeext'
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; }; then
31908 eval "$as_ac_var=yes"
31909else
31910 echo "$as_me: failed program was:" >&5
31911sed 's/^/| /' conftest.$ac_ext >&5
31912
31913eval "$as_ac_var=no"
31914fi
31915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31916fi
31917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31919if test `eval echo '${'$as_ac_var'}'` = yes; then
31920 cat >>confdefs.h <<_ACEOF
31921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31922_ACEOF
31923
31924 cat >>confdefs.h <<\_ACEOF
10f2d63a 31925#define HAVE_SHL_LOAD 1
e6cc62c6 31926_ACEOF
10f2d63a 31927
3a922bb4 31928 HAVE_SHL_FUNCS=1
e6cc62c6 31929
10f2d63a 31930else
e6cc62c6
VS
31931
31932 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31933echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31934if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31935 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31936else
e6cc62c6 31937 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31938LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31939cat >conftest.$ac_ext <<_ACEOF
31940#line $LINENO "configure"
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
31946
8284b0c5 31947/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31948#ifdef __cplusplus
31949extern "C"
31950#endif
f6bcfd97 31951/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31952 builtin and then its argument prototype would still apply. */
31953char dld ();
31954int
31955main ()
31956{
31957dld ();
31958 ;
31959 return 0;
31960}
31961_ACEOF
31962rm -f conftest.$ac_objext conftest$ac_exeext
31963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31964 (eval $ac_link) 2>&5
31965 ac_status=$?
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); } &&
31968 { ac_try='test -s conftest$ac_exeext'
31969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970 (eval $ac_try) 2>&5
31971 ac_status=$?
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; }; then
31974 ac_cv_lib_shl_load_dld=yes
31975else
31976 echo "$as_me: failed program was:" >&5
31977sed 's/^/| /' conftest.$ac_ext >&5
31978
31979ac_cv_lib_shl_load_dld=no
31980fi
31981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31982LIBS=$ac_check_lib_save_LIBS
31983fi
31984echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31985echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31986if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31987
3a922bb4 31988 HAVE_SHL_FUNCS=1
3d63bc3a 31989 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31990
f6bcfd97
BP
31991fi
31992
e6cc62c6 31993
10f2d63a
VZ
31994fi
31995done
31996
e6cc62c6 31997
10f2d63a
VZ
31998fi
31999
e6cc62c6 32000
10f2d63a
VZ
32001fi
32002done
32003
5c6fa7d2 32004
8284b0c5 32005 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32006
32007for ac_func in dlerror
f6bcfd97 32008do
e6cc62c6
VS
32009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32010echo "$as_me:$LINENO: checking for $ac_func" >&5
32011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32012if eval "test \"\${$as_ac_var+set}\" = set"; then
32013 echo $ECHO_N "(cached) $ECHO_C" >&6
32014else
32015 cat >conftest.$ac_ext <<_ACEOF
32016#line $LINENO "configure"
32017/* confdefs.h. */
32018_ACEOF
32019cat confdefs.h >>conftest.$ac_ext
32020cat >>conftest.$ac_ext <<_ACEOF
32021/* end confdefs.h. */
f6bcfd97 32022/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32023 which can conflict with char $ac_func (); below.
32024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32025 <limits.h> exists even on freestanding compilers. */
32026#ifdef __STDC__
32027# include <limits.h>
32028#else
32029# include <assert.h>
32030#endif
f6bcfd97 32031/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32032#ifdef __cplusplus
32033extern "C"
32034{
32035#endif
f6bcfd97 32036/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32037 builtin and then its argument prototype would still apply. */
32038char $ac_func ();
f6bcfd97
BP
32039/* The GNU C library defines this for functions which it implements
32040 to always fail with ENOSYS. Some functions are actually named
32041 something starting with __ and the normal name is an alias. */
32042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32043choke me
32044#else
e6cc62c6
VS
32045char (*f) () = $ac_func;
32046#endif
32047#ifdef __cplusplus
32048}
f6bcfd97
BP
32049#endif
32050
e6cc62c6
VS
32051int
32052main ()
32053{
32054return f != $ac_func;
32055 ;
32056 return 0;
32057}
32058_ACEOF
32059rm -f conftest.$ac_objext conftest$ac_exeext
32060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32061 (eval $ac_link) 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); } &&
32065 { ac_try='test -s conftest$ac_exeext'
32066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32067 (eval $ac_try) 2>&5
32068 ac_status=$?
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; }; then
32071 eval "$as_ac_var=yes"
32072else
32073 echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076eval "$as_ac_var=no"
32077fi
32078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32079fi
32080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32082if test `eval echo '${'$as_ac_var'}'` = yes; then
32083 cat >>confdefs.h <<_ACEOF
32084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32085_ACEOF
32086 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32087#define HAVE_DLERROR 1
e6cc62c6 32088_ACEOF
f6bcfd97
BP
32089
32090else
0e012a93
VZ
32091
32092 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
32093echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32094if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32096else
e6cc62c6 32097 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32098LIBS="-ldl $LIBS"
e6cc62c6
VS
32099cat >conftest.$ac_ext <<_ACEOF
32100#line $LINENO "configure"
32101/* confdefs.h. */
32102_ACEOF
32103cat confdefs.h >>conftest.$ac_ext
32104cat >>conftest.$ac_ext <<_ACEOF
32105/* end confdefs.h. */
32106
f6bcfd97 32107/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32108#ifdef __cplusplus
32109extern "C"
32110#endif
f6bcfd97 32111/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32112 builtin and then its argument prototype would still apply. */
32113char dlerror ();
32114int
32115main ()
32116{
32117dlerror ();
32118 ;
32119 return 0;
32120}
32121_ACEOF
32122rm -f conftest.$ac_objext conftest$ac_exeext
32123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32124 (eval $ac_link) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); } &&
32128 { ac_try='test -s conftest$ac_exeext'
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32131 ac_status=$?
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; }; then
32134 ac_cv_lib_dl_dlerror=yes
32135else
32136 echo "$as_me: failed program was:" >&5
32137sed 's/^/| /' conftest.$ac_ext >&5
32138
32139ac_cv_lib_dl_dlerror=no
32140fi
32141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32142LIBS=$ac_check_lib_save_LIBS
32143fi
32144echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32145echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32146if test $ac_cv_lib_dl_dlerror = yes; then
32147 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32148#define HAVE_DLERROR 1
e6cc62c6 32149_ACEOF
f6bcfd97 32150
f6bcfd97
BP
32151fi
32152
0e012a93
VZ
32153
32154
f6bcfd97
BP
32155fi
32156done
32157
3a922bb4
RL
32158 fi
32159 fi
f6bcfd97 32160
3a922bb4
RL
32161 if test "$HAVE_DL_FUNCS" = 0; then
32162 if test "$HAVE_SHL_FUNCS" = 0; then
32163 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32164 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32165echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32166 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32167 wxUSE_DYNLIB_CLASS=no
32168 else
e6cc62c6
VS
32169 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32170echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32171 fi
32172 fi
10f2d63a
VZ
32173 fi
32174 fi
32175fi
32176
0b9ab0bd 32177if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32178 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32179#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32180_ACEOF
0b9ab0bd 32181
1948bb32
VS
32182fi
32183if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32184 cat >>confdefs.h <<\_ACEOF
10f2d63a 32185#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32186_ACEOF
10f2d63a
VZ
32187
32188fi
32189
8284b0c5 32190
1e6feb95 32191if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32192 cat >>confdefs.h <<\_ACEOF
1e6feb95 32193#define wxUSE_FONTMAP 1
e6cc62c6 32194_ACEOF
1e6feb95
VZ
32195
32196fi
32197
10f2d63a 32198if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32199 cat >>confdefs.h <<\_ACEOF
10f2d63a 32200#define wxUSE_UNICODE 1
e6cc62c6 32201_ACEOF
10f2d63a 32202
8284b0c5 32203
eb854003 32204 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32205 wxUSE_UNICODE_MSLU=no
32206 fi
a72a4bfa 32207
eb854003 32208 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32209 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32210echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32211if test "${ac_cv_lib_unicows_main+set}" = set; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32213else
e6cc62c6 32214 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32215LIBS="-lunicows $LIBS"
e6cc62c6
VS
32216cat >conftest.$ac_ext <<_ACEOF
32217#line $LINENO "configure"
32218/* confdefs.h. */
32219_ACEOF
32220cat confdefs.h >>conftest.$ac_ext
32221cat >>conftest.$ac_ext <<_ACEOF
32222/* end confdefs.h. */
a72a4bfa 32223
8284b0c5 32224
e6cc62c6
VS
32225int
32226main ()
32227{
32228main ();
32229 ;
32230 return 0;
32231}
32232_ACEOF
32233rm -f conftest.$ac_objext conftest$ac_exeext
32234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32235 (eval $ac_link) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); } &&
32239 { ac_try='test -s conftest$ac_exeext'
32240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241 (eval $ac_try) 2>&5
32242 ac_status=$?
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32245 ac_cv_lib_unicows_main=yes
32246else
32247 echo "$as_me: failed program was:" >&5
32248sed 's/^/| /' conftest.$ac_ext >&5
32249
32250ac_cv_lib_unicows_main=no
32251fi
32252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32253LIBS=$ac_check_lib_save_LIBS
32254fi
32255echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32256echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32257if test $ac_cv_lib_unicows_main = yes; then
32258
32259 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32260#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32261_ACEOF
32262
a72a4bfa 32263
a72a4bfa 32264else
a72a4bfa 32265
e6cc62c6
VS
32266 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32267 Applications will only run on Windows NT/2000/XP!" >&5
32268echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32269 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32270 wxUSE_UNICODE_MSLU=no
e6cc62c6 32271
a72a4bfa
VS
32272fi
32273
32274 fi
10f2d63a
VZ
32275fi
32276
10f2d63a 32277if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32278 cat >>confdefs.h <<\_ACEOF
10f2d63a 32279#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32280_ACEOF
10f2d63a
VZ
32281
32282fi
32283
8284b0c5 32284
10f2d63a 32285if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32286 cat >>confdefs.h <<\_ACEOF
10f2d63a 32287#define wxUSE_POSTSCRIPT 1
e6cc62c6 32288_ACEOF
10f2d63a
VZ
32289
32290fi
32291
e6cc62c6 32292cat >>confdefs.h <<\_ACEOF
10f2d63a 32293#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32294_ACEOF
10f2d63a 32295
8284b0c5 32296
e6cc62c6 32297cat >>confdefs.h <<\_ACEOF
10f2d63a 32298#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32299_ACEOF
10f2d63a 32300
8284b0c5
MB
32301
32302
10f2d63a 32303if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32304 cat >>confdefs.h <<\_ACEOF
10f2d63a 32305#define wxUSE_CONSTRAINTS 1
e6cc62c6 32306_ACEOF
10f2d63a
VZ
32307
32308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32309fi
32310
3879ecda 32311if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32312 cat >>confdefs.h <<\_ACEOF
10f2d63a 32313#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32314_ACEOF
10f2d63a 32315
1772d20c 32316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32317fi
32318
32319if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32320 cat >>confdefs.h <<\_ACEOF
10f2d63a 32321#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32322_ACEOF
10f2d63a
VZ
32323
32324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32325 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32327 fi
32328fi
32329
32330if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32331 cat >>confdefs.h <<\_ACEOF
10f2d63a 32332#define wxUSE_HELP 1
e6cc62c6 32333_ACEOF
10f2d63a
VZ
32334
32335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32336
77e13408 32337 if test "$wxUSE_MSW" = 1; then
031d8228 32338 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32339 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32340#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32341_ACEOF
29fd3c0c 32342
3e44f09d 32343 fi
3379ed37 32344 fi
031d8228
VS
32345
32346 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32347 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32348 cat >>confdefs.h <<\_ACEOF
031d8228 32349#define wxUSE_WXHTML_HELP 1
e6cc62c6 32350_ACEOF
031d8228
VS
32351
32352 else
e6cc62c6
VS
32353 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32354echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32355 wxUSE_WXHTML_HELP=no
32356 fi
32357 fi
10f2d63a
VZ
32358fi
32359
32360if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32361 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32362 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32363echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32364 else
e6cc62c6 32365 cat >>confdefs.h <<\_ACEOF
10f2d63a 32366#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32367_ACEOF
10f2d63a
VZ
32368
32369 fi
32370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32371fi
32372
e6cc62c6
VS
32373if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32374 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32375echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32376 { (exit 1); exit 1; }; }
32377fi
32378
32379
32380if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32381 -o "$wxUSE_CLIPBOARD" = "yes" \
32382 -o "$wxUSE_OLE" = "yes" \
32383 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32384
32385for ac_header in ole2.h
32386do
32387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32388if eval "test \"\${$as_ac_Header+set}\" = set"; then
32389 echo "$as_me:$LINENO: checking for $ac_header" >&5
32390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32391if eval "test \"\${$as_ac_Header+set}\" = set"; then
32392 echo $ECHO_N "(cached) $ECHO_C" >&6
32393fi
32394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32396else
32397 # Is the header compilable?
32398echo "$as_me:$LINENO: checking $ac_header usability" >&5
32399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32400cat >conftest.$ac_ext <<_ACEOF
32401#line $LINENO "configure"
32402/* confdefs.h. */
32403_ACEOF
32404cat confdefs.h >>conftest.$ac_ext
32405cat >>conftest.$ac_ext <<_ACEOF
32406/* end confdefs.h. */
32407$ac_includes_default
32408#include <$ac_header>
32409_ACEOF
32410rm -f conftest.$ac_objext
32411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32412 (eval $ac_compile) 2>&5
32413 ac_status=$?
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } &&
32416 { ac_try='test -s conftest.$ac_objext'
32417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418 (eval $ac_try) 2>&5
32419 ac_status=$?
32420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421 (exit $ac_status); }; }; then
32422 ac_header_compiler=yes
32423else
32424 echo "$as_me: failed program was:" >&5
32425sed 's/^/| /' conftest.$ac_ext >&5
32426
32427ac_header_compiler=no
32428fi
32429rm -f conftest.$ac_objext conftest.$ac_ext
32430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32431echo "${ECHO_T}$ac_header_compiler" >&6
32432
32433# Is the header present?
32434echo "$as_me:$LINENO: checking $ac_header presence" >&5
32435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32436cat >conftest.$ac_ext <<_ACEOF
32437#line $LINENO "configure"
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443#include <$ac_header>
32444_ACEOF
32445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32447 ac_status=$?
32448 grep -v '^ *+' conftest.er1 >conftest.err
32449 rm -f conftest.er1
32450 cat conftest.err >&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } >/dev/null; then
32453 if test -s conftest.err; then
32454 ac_cpp_err=$ac_c_preproc_warn_flag
32455 else
32456 ac_cpp_err=
32457 fi
32458else
32459 ac_cpp_err=yes
32460fi
32461if test -z "$ac_cpp_err"; then
32462 ac_header_preproc=yes
32463else
32464 echo "$as_me: failed program was:" >&5
32465sed 's/^/| /' conftest.$ac_ext >&5
32466
32467 ac_header_preproc=no
32468fi
32469rm -f conftest.err conftest.$ac_ext
32470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32471echo "${ECHO_T}$ac_header_preproc" >&6
32472
32473# So? What about this header?
32474case $ac_header_compiler:$ac_header_preproc in
32475 yes:no )
32476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32480 (
32481 cat <<\_ASBOX
32482## ------------------------------------ ##
32483## Report this to bug-autoconf@gnu.org. ##
32484## ------------------------------------ ##
32485_ASBOX
32486 ) |
32487 sed "s/^/$as_me: WARNING: /" >&2
32488 ;;
32489 no:yes )
32490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32496 (
32497 cat <<\_ASBOX
32498## ------------------------------------ ##
32499## Report this to bug-autoconf@gnu.org. ##
32500## ------------------------------------ ##
32501_ASBOX
32502 ) |
32503 sed "s/^/$as_me: WARNING: /" >&2
32504 ;;
32505esac
32506echo "$as_me:$LINENO: checking for $ac_header" >&5
32507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32508if eval "test \"\${$as_ac_Header+set}\" = set"; then
32509 echo $ECHO_N "(cached) $ECHO_C" >&6
32510else
32511 eval "$as_ac_Header=$ac_header_preproc"
32512fi
32513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32515
10f2d63a 32516fi
e6cc62c6
VS
32517if test `eval echo '${'$as_ac_Header'}'` = yes; then
32518 cat >>confdefs.h <<_ACEOF
32519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32520_ACEOF
10f2d63a 32521
10f2d63a 32522fi
e6cc62c6 32523
10f2d63a
VZ
32524done
32525
8284b0c5 32526
2b9bdf71
VZ
32527 if test "$ac_cv_header_ole2_h" = "yes" ; then
32528 if test "$GCC" = yes ; then
8284b0c5
MB
32529
32530
e6cc62c6
VS
32531 ac_ext=cc
32532ac_cpp='$CXXCPP $CPPFLAGS'
32533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536
32537
32538 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32539echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32540 cat >conftest.$ac_ext <<_ACEOF
32541#line $LINENO "configure"
32542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
8284b0c5
MB
32547#include <windows.h>
32548 #include <ole2.h>
e6cc62c6
VS
32549int
32550main ()
32551{
8284b0c5 32552
e6cc62c6
VS
32553 ;
32554 return 0;
32555}
32556_ACEOF
32557rm -f conftest.$ac_objext
32558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32559 (eval $ac_compile) 2>&5
32560 ac_status=$?
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } &&
32563 { ac_try='test -s conftest.$ac_objext'
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32566 ac_status=$?
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; }; then
32569 echo "$as_me:$LINENO: result: no" >&5
32570echo "${ECHO_T}no" >&6
32571else
32572 echo "$as_me: failed program was:" >&5
32573sed 's/^/| /' conftest.$ac_ext >&5
32574
32575echo "$as_me:$LINENO: result: yes" >&5
32576echo "${ECHO_T}yes" >&6
8284b0c5
MB
32577 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32578fi
e6cc62c6 32579rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32580 ac_ext=c
8284b0c5 32581ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32584ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32585
2b9bdf71 32586 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32587 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32588 cat >>confdefs.h <<\_ACEOF
4f11a343 32589#define wxUSE_OLE 1
e6cc62c6 32590_ACEOF
4f11a343 32591
8284b0c5 32592
2b9bdf71
VZ
32593 fi
32594
e6cc62c6 32595 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32596#define wxUSE_DATAOBJ 1
e6cc62c6 32597_ACEOF
2b9bdf71
VZ
32598
32599 else
e6cc62c6
VS
32600 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32601echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32602
32603 wxUSE_CLIPBOARD=no
32604 wxUSE_DRAG_AND_DROP=no
32605 wxUSE_DATAOBJ=no
3bce6687
JS
32606 wxUSE_OLE=no
32607 fi
32608
32609 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32610 cat >>confdefs.h <<\_ACEOF
3bce6687 32611#define wxUSE_METAFILE 1
e6cc62c6 32612_ACEOF
3bce6687
JS
32613
32614
e6cc62c6 32615 cat >>confdefs.h <<\_ACEOF
3bce6687 32616#define wxUSE_ENH_METAFILE 1
e6cc62c6 32617_ACEOF
3bce6687
JS
32618
32619 fi
32620fi
32621
2b9bdf71
VZ
32622if test "$wxUSE_IPC" = "yes"; then
32623 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32624 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32625echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32626 fi
32627
e6cc62c6 32628 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32629#define wxUSE_IPC 1
e6cc62c6 32630_ACEOF
2b9bdf71
VZ
32631
32632fi
32633
32634if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32635 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32636 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32637echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32638 wxUSE_CLIPBOARD=no
32639 fi
32640
32641 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32642 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32643#define wxUSE_CLIPBOARD 1
e6cc62c6 32644_ACEOF
2b9bdf71 32645
8284b0c5 32646
e6cc62c6 32647 cat >>confdefs.h <<\_ACEOF
673f4220 32648#define wxUSE_DATAOBJ 1
e6cc62c6 32649_ACEOF
673f4220 32650
6c657b52 32651 fi
2b9bdf71
VZ
32652fi
32653
32654if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32655 if test "$wxUSE_GTK" = 1; then
32656 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32657 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32658echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32659 wxUSE_DRAG_AND_DROP=no
32660 fi
32661 fi
32662
2b9bdf71 32663 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32664 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32665echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32666 wxUSE_DRAG_AND_DROP=no
32667 fi
32668
f79bd02d 32669 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32670 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32671echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32672 wxUSE_DRAG_AND_DROP=no
32673 fi
32674
6c657b52 32675 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32676 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32677echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32678 wxUSE_DRAG_AND_DROP=no
32679 fi
32680
10f2d63a 32681 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32682 cat >>confdefs.h <<\_ACEOF
10f2d63a 32683#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32684_ACEOF
10f2d63a
VZ
32685
32686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32687 fi
32688
32689fi
32690
32691if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32692 cat >>confdefs.h <<\_ACEOF
10f2d63a 32693#define wxUSE_SPLINES 1
e6cc62c6 32694_ACEOF
10f2d63a
VZ
32695
32696fi
32697
8284b0c5 32698
1e6feb95
VZ
32699USES_CONTROLS=0
32700if test "$wxUSE_CONTROLS" = "yes"; then
32701 USES_CONTROLS=1
32702fi
32703
10f2d63a 32704if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32705 cat >>confdefs.h <<\_ACEOF
10f2d63a 32706#define wxUSE_ACCEL 1
e6cc62c6 32707_ACEOF
10f2d63a 32708
1e6feb95
VZ
32709 USES_CONTROLS=1
32710fi
32711
32712if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32713 cat >>confdefs.h <<\_ACEOF
1e6feb95 32714#define wxUSE_BUTTON 1
e6cc62c6 32715_ACEOF
1e6feb95
VZ
32716
32717 USES_CONTROLS=1
32718fi
32719
32720if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32721 cat >>confdefs.h <<\_ACEOF
1e6feb95 32722#define wxUSE_BMPBUTTON 1
e6cc62c6 32723_ACEOF
1e6feb95
VZ
32724
32725 USES_CONTROLS=1
32726fi
32727
32728if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32729 cat >>confdefs.h <<\_ACEOF
1e6feb95 32730#define wxUSE_CALENDARCTRL 1
e6cc62c6 32731_ACEOF
1e6feb95
VZ
32732
32733 USES_CONTROLS=1
32734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32735fi
32736
32737if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32738 cat >>confdefs.h <<\_ACEOF
10f2d63a 32739#define wxUSE_CARET 1
e6cc62c6 32740_ACEOF
10f2d63a 32741
1e6feb95 32742 USES_CONTROLS=1
10f2d63a
VZ
32743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32744fi
32745
32746if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32747 cat >>confdefs.h <<\_ACEOF
10f2d63a 32748#define wxUSE_COMBOBOX 1
e6cc62c6 32749_ACEOF
10f2d63a 32750
1e6feb95 32751 USES_CONTROLS=1
10f2d63a
VZ
32752fi
32753
32754if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32755 cat >>confdefs.h <<\_ACEOF
10f2d63a 32756#define wxUSE_CHOICE 1
e6cc62c6 32757_ACEOF
10f2d63a 32758
1e6feb95 32759 USES_CONTROLS=1
10f2d63a
VZ
32760fi
32761
32762if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32763 cat >>confdefs.h <<\_ACEOF
10f2d63a 32764#define wxUSE_CHECKBOX 1
e6cc62c6 32765_ACEOF
10f2d63a 32766
1e6feb95 32767 USES_CONTROLS=1
10f2d63a
VZ
32768fi
32769
32770if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32771 cat >>confdefs.h <<\_ACEOF
10f2d63a 32772#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32773_ACEOF
10f2d63a 32774
1e6feb95 32775 USES_CONTROLS=1
10f2d63a
VZ
32776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32777fi
32778
da494b40 32779if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32780 cat >>confdefs.h <<\_ACEOF
da494b40 32781#define wxUSE_DISPLAY 1
e6cc62c6 32782_ACEOF
da494b40
MB
32783
32784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32785fi
32786
10f2d63a 32787if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32788 cat >>confdefs.h <<\_ACEOF
10f2d63a 32789#define wxUSE_GAUGE 1
e6cc62c6 32790_ACEOF
10f2d63a 32791
1e6feb95 32792 USES_CONTROLS=1
10f2d63a
VZ
32793fi
32794
d6a55c4b 32795if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32796 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32797#define wxUSE_GRID 1
e6cc62c6 32798_ACEOF
10f2d63a 32799
1e6feb95 32800 USES_CONTROLS=1
d6a55c4b 32801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32802fi
32803
32804if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32805 cat >>confdefs.h <<\_ACEOF
10f2d63a 32806#define wxUSE_IMAGLIST 1
e6cc62c6 32807_ACEOF
10f2d63a
VZ
32808
32809fi
32810
0e012a93
VZ
32811if test "$wxUSE_LISTBOOK" = "yes"; then
32812 cat >>confdefs.h <<\_ACEOF
32813#define wxUSE_LISTBOOK 1
32814_ACEOF
32815
32816 USES_CONTROLS=1
32817fi
32818
10f2d63a 32819if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32820 cat >>confdefs.h <<\_ACEOF
10f2d63a 32821#define wxUSE_LISTBOX 1
e6cc62c6 32822_ACEOF
10f2d63a 32823
1e6feb95 32824 USES_CONTROLS=1
10f2d63a
VZ
32825fi
32826
32827if test "$wxUSE_LISTCTRL" = "yes"; then
32828 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32829 cat >>confdefs.h <<\_ACEOF
10f2d63a 32830#define wxUSE_LISTCTRL 1
e6cc62c6 32831_ACEOF
10f2d63a 32832
1e6feb95 32833 USES_CONTROLS=1
10f2d63a
VZ
32834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32835 else
e6cc62c6
VS
32836 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32837echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32838 fi
32839fi
32840
32841if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32842 cat >>confdefs.h <<\_ACEOF
10f2d63a 32843#define wxUSE_NOTEBOOK 1
e6cc62c6 32844_ACEOF
10f2d63a 32845
1e6feb95 32846 USES_CONTROLS=1
10f2d63a
VZ
32847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32848fi
32849
24176f2c 32850
10f2d63a 32851if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32852 cat >>confdefs.h <<\_ACEOF
10f2d63a 32853#define wxUSE_RADIOBOX 1
e6cc62c6 32854_ACEOF
10f2d63a 32855
1e6feb95 32856 USES_CONTROLS=1
10f2d63a
VZ
32857fi
32858
32859if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
10f2d63a 32861#define wxUSE_RADIOBTN 1
e6cc62c6 32862_ACEOF
10f2d63a 32863
1e6feb95 32864 USES_CONTROLS=1
10f2d63a
VZ
32865fi
32866
32867if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32868 cat >>confdefs.h <<\_ACEOF
10f2d63a 32869#define wxUSE_SASH 1
e6cc62c6 32870_ACEOF
10f2d63a
VZ
32871
32872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32873fi
32874
32875if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32876 cat >>confdefs.h <<\_ACEOF
10f2d63a 32877#define wxUSE_SCROLLBAR 1
e6cc62c6 32878_ACEOF
10f2d63a 32879
1e6feb95 32880 USES_CONTROLS=1
741a9306 32881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32882fi
32883
32884if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
10f2d63a 32886#define wxUSE_SLIDER 1
e6cc62c6 32887_ACEOF
10f2d63a 32888
1e6feb95 32889 USES_CONTROLS=1
10f2d63a
VZ
32890fi
32891
32892if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32893 cat >>confdefs.h <<\_ACEOF
10f2d63a 32894#define wxUSE_SPINBTN 1
e6cc62c6 32895_ACEOF
10f2d63a 32896
1e6feb95 32897 USES_CONTROLS=1
10f2d63a
VZ
32898fi
32899
56cfaa52 32900if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32901 cat >>confdefs.h <<\_ACEOF
56cfaa52 32902#define wxUSE_SPINCTRL 1
e6cc62c6 32903_ACEOF
56cfaa52 32904
1e6feb95 32905 USES_CONTROLS=1
56cfaa52
RR
32906fi
32907
10f2d63a 32908if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32909 cat >>confdefs.h <<\_ACEOF
10f2d63a 32910#define wxUSE_SPLITTER 1
e6cc62c6 32911_ACEOF
10f2d63a
VZ
32912
32913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32914fi
32915
32916if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32917 cat >>confdefs.h <<\_ACEOF
10f2d63a 32918#define wxUSE_STATBMP 1
e6cc62c6 32919_ACEOF
10f2d63a 32920
1e6feb95 32921 USES_CONTROLS=1
10f2d63a
VZ
32922fi
32923
32924if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
10f2d63a 32926#define wxUSE_STATBOX 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
1e6feb95
VZ
32929 USES_CONTROLS=1
32930fi
32931
32932if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
1e6feb95 32934#define wxUSE_STATTEXT 1
e6cc62c6 32935_ACEOF
1e6feb95
VZ
32936
32937 USES_CONTROLS=1
10f2d63a
VZ
32938fi
32939
32940if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32941 cat >>confdefs.h <<\_ACEOF
10f2d63a 32942#define wxUSE_STATLINE 1
e6cc62c6 32943_ACEOF
10f2d63a 32944
89e6bf6d 32945 USES_CONTROLS=1
10f2d63a
VZ
32946fi
32947
32948if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32949 cat >>confdefs.h <<\_ACEOF
10f2d63a 32950#define wxUSE_STATUSBAR 1
e6cc62c6 32951_ACEOF
10f2d63a 32952
1e6feb95 32953 USES_CONTROLS=1
698dcdb6 32954
2286341c 32955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32956fi
32957
32958if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32959 cat >>confdefs.h <<\_ACEOF
10f2d63a 32960#define wxUSE_TAB_DIALOG 1
e6cc62c6 32961_ACEOF
10f2d63a
VZ
32962
32963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32964fi
32965
1e6feb95 32966if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32967 cat >>confdefs.h <<\_ACEOF
1e6feb95 32968#define wxUSE_TEXTCTRL 1
e6cc62c6 32969_ACEOF
1e6feb95
VZ
32970
32971 USES_CONTROLS=1
32972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32973fi
32974
1db8dc4a 32975if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32976 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32977 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32978echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32979 wxUSE_TOGGLEBTN=no
32980 fi
32981 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32982 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32983echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32984 wxUSE_TOGGLEBTN=no
32985 fi
32986
32987 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32988 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32989#define wxUSE_TOGGLEBTN 1
e6cc62c6 32990_ACEOF
1db8dc4a 32991
1e6feb95 32992 USES_CONTROLS=1
a45d7ab7 32993 fi
1db8dc4a
VZ
32994fi
32995
360d6699 32996if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32997 cat >>confdefs.h <<\_ACEOF
360d6699 32998#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32999_ACEOF
360d6699
VZ
33000
33001 wxUSE_TOOLBAR="yes"
1e6feb95 33002 USES_CONTROLS=1
360d6699
VZ
33003fi
33004
10f2d63a 33005if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
10f2d63a 33007#define wxUSE_TOOLBAR 1
e6cc62c6 33008_ACEOF
10f2d63a 33009
1e6feb95 33010 USES_CONTROLS=1
698dcdb6 33011
360d6699
VZ
33012 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33013 wxUSE_TOOLBAR_NATIVE="yes"
33014 fi
33015
1e6feb95 33016 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33017 cat >>confdefs.h <<\_ACEOF
360d6699 33018#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33019_ACEOF
360d6699 33020
1e6feb95
VZ
33021 USES_CONTROLS=1
33022 fi
33023
33024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33025fi
33026
10f2d63a
VZ
33027if test "$wxUSE_TOOLTIPS" = "yes"; then
33028 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33029 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33030echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33031 else
89e6bf6d 33032 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33033 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33034echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33035 else
e6cc62c6 33036 cat >>confdefs.h <<\_ACEOF
10f2d63a 33037#define wxUSE_TOOLTIPS 1
e6cc62c6 33038_ACEOF
10f2d63a
VZ
33039
33040 fi
33041 fi
33042fi
33043
33044if test "$wxUSE_TREECTRL" = "yes"; then
33045 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33046 cat >>confdefs.h <<\_ACEOF
10f2d63a 33047#define wxUSE_TREECTRL 1
e6cc62c6 33048_ACEOF
10f2d63a 33049
1e6feb95 33050 USES_CONTROLS=1
10f2d63a
VZ
33051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33052 else
e6cc62c6
VS
33053 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33054echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33055 fi
33056fi
33057
9f41d601 33058if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33059 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33060 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33061echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33062 else
485cf710 33063 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33064 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33065echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33066 else
3c011993 33067 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33068 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33069echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33070 else
e6cc62c6 33071 cat >>confdefs.h <<\_ACEOF
9f41d601 33072#define wxUSE_POPUPWIN 1
e6cc62c6 33073_ACEOF
9f41d601 33074
8284b0c5 33075
3c011993
VZ
33076 USES_CONTROLS=1
33077 fi
485cf710 33078 fi
6abe4b65 33079 fi
9f41d601
RR
33080fi
33081
dd964dcc 33082if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33083 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33084 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33085echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33086 else
e6cc62c6 33087 cat >>confdefs.h <<\_ACEOF
dd964dcc 33088#define wxUSE_TIPWINDOW 1
e6cc62c6 33089_ACEOF
dd964dcc 33090
3c011993 33091 fi
dd964dcc
VZ
33092fi
33093
1e6feb95 33094if test "$USES_CONTROLS" = 1; then
e6cc62c6 33095 cat >>confdefs.h <<\_ACEOF
1e6feb95 33096#define wxUSE_CONTROLS 1
e6cc62c6 33097_ACEOF
10f2d63a 33098
10f2d63a
VZ
33099fi
33100
8284b0c5 33101
e46d2a18
VS
33102if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33103 cat >>confdefs.h <<\_ACEOF
33104#define wxUSE_ACCESSIBILITY 1
33105_ACEOF
33106
33107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33108fi
1e6feb95 33109
24fd6d87 33110if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33111 cat >>confdefs.h <<\_ACEOF
24fd6d87 33112#define wxUSE_DRAGIMAGE 1
e6cc62c6 33113_ACEOF
24fd6d87
VZ
33114
33115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33116fi
33117
e46d2a18 33118if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33119 cat >>confdefs.h <<\_ACEOF
e46d2a18 33120#define wxUSE_EXCEPTIONS 1
e6cc62c6 33121_ACEOF
7bb2947d 33122
e46d2a18
VS
33123fi
33124
33125USE_HTML=0
33126if test "$wxUSE_HTML" = "yes"; then
33127 cat >>confdefs.h <<\_ACEOF
33128#define wxUSE_HTML 1
33129_ACEOF
33130
33131 USE_HTML=1
33132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33133fi
33134
1e6feb95 33135if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33136 cat >>confdefs.h <<\_ACEOF
1e6feb95 33137#define wxUSE_MENUS 1
e6cc62c6 33138_ACEOF
10f2d63a 33139
1e6feb95 33140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33141fi
33142
1e6feb95 33143if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33144 cat >>confdefs.h <<\_ACEOF
1e6feb95 33145#define wxUSE_METAFILE 1
e6cc62c6 33146_ACEOF
10f2d63a 33147
10f2d63a
VZ
33148fi
33149
1e6feb95 33150if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33151 cat >>confdefs.h <<\_ACEOF
1e6feb95 33152#define wxUSE_MIMETYPE 1
e6cc62c6 33153_ACEOF
10f2d63a 33154
10f2d63a
VZ
33155fi
33156
33157if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33158 cat >>confdefs.h <<\_ACEOF
10f2d63a 33159#define wxUSE_MINIFRAME 1
e6cc62c6 33160_ACEOF
10f2d63a
VZ
33161
33162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33163fi
33164
e46d2a18 33165if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33166 cat >>confdefs.h <<\_ACEOF
e46d2a18 33167#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33168_ACEOF
10f2d63a 33169
e46d2a18
VS
33170 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33171 "$TOOLKIT" = "MOTIF"; then
33172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33173 fi
10f2d63a
VZ
33174fi
33175
e46d2a18 33176
10f2d63a 33177if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33178 cat >>confdefs.h <<\_ACEOF
1e487827 33179#define wxUSE_VALIDATORS 1
e6cc62c6 33180_ACEOF
703e0a69 33181
698dcdb6
VZ
33182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33183fi
33184
edae8572 33185if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33186 cat >>confdefs.h <<\_ACEOF
edae8572 33187#define wxUSE_PALETTE 1
e6cc62c6 33188_ACEOF
edae8572
VZ
33189
33190fi
33191
e46d2a18
VS
33192if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33193 LIBS=" -lunicows $LIBS"
33194fi
33195
33196
698dcdb6 33197if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33198 cat >>confdefs.h <<\_ACEOF
698dcdb6 33199#define wxUSE_IMAGE 1
e6cc62c6 33200_ACEOF
698dcdb6 33201
698dcdb6 33202
e46d2a18
VS
33203 if test "$wxUSE_GIF" = "yes" ; then
33204 cat >>confdefs.h <<\_ACEOF
698dcdb6 33205#define wxUSE_GIF 1
e6cc62c6 33206_ACEOF
698dcdb6 33207
e46d2a18 33208 fi
698dcdb6 33209
e46d2a18
VS
33210 if test "$wxUSE_PCX" = "yes" ; then
33211 cat >>confdefs.h <<\_ACEOF
698dcdb6 33212#define wxUSE_PCX 1
e6cc62c6 33213_ACEOF
698dcdb6 33214
e46d2a18 33215 fi
698dcdb6 33216
e46d2a18
VS
33217 if test "$wxUSE_IFF" = "yes" ; then
33218 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33219#define wxUSE_IFF 1
e6cc62c6 33220_ACEOF
4b6b4dfc 33221
e46d2a18 33222 fi
4b6b4dfc 33223
e46d2a18
VS
33224 if test "$wxUSE_PNM" = "yes" ; then
33225 cat >>confdefs.h <<\_ACEOF
698dcdb6 33226#define wxUSE_PNM 1
e6cc62c6 33227_ACEOF
698dcdb6 33228
e46d2a18 33229 fi
698dcdb6 33230
e46d2a18
VS
33231 if test "$wxUSE_XPM" = "yes" ; then
33232 cat >>confdefs.h <<\_ACEOF
698dcdb6 33233#define wxUSE_XPM 1
e6cc62c6 33234_ACEOF
698dcdb6 33235
e46d2a18 33236 fi
698dcdb6 33237
e46d2a18
VS
33238 if test "$wxUSE_ICO_CUR" = "yes" ; then
33239 cat >>confdefs.h <<\_ACEOF
658974ae 33240#define wxUSE_ICO_CUR 1
e6cc62c6 33241_ACEOF
658974ae 33242
e46d2a18 33243 fi
a72a4bfa
VS
33244fi
33245
8284b0c5 33246
1e6feb95 33247if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33248 cat >>confdefs.h <<\_ACEOF
1e6feb95 33249#define wxUSE_CHOICEDLG 1
e6cc62c6 33250_ACEOF
1e6feb95
VZ
33251
33252fi
33253
33254if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33255 cat >>confdefs.h <<\_ACEOF
1e6feb95 33256#define wxUSE_COLOURDLG 1
e6cc62c6 33257_ACEOF
1e6feb95
VZ
33258
33259fi
33260
33261if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33262 cat >>confdefs.h <<\_ACEOF
1e6feb95 33263#define wxUSE_FILEDLG 1
e6cc62c6 33264_ACEOF
1e6feb95
VZ
33265
33266fi
33267
8db37e06 33268if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33269 cat >>confdefs.h <<\_ACEOF
8db37e06 33270#define wxUSE_FINDREPLDLG 1
e6cc62c6 33271_ACEOF
8db37e06
VZ
33272
33273fi
33274
1e6feb95 33275if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33276 cat >>confdefs.h <<\_ACEOF
1e6feb95 33277#define wxUSE_FONTDLG 1
e6cc62c6 33278_ACEOF
1e6feb95
VZ
33279
33280fi
33281
33282if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33283 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33284 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33285echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33286 else
e6cc62c6 33287 cat >>confdefs.h <<\_ACEOF
1e6feb95 33288#define wxUSE_DIRDLG 1
e6cc62c6 33289_ACEOF
1e6feb95 33290
1e6feb95
VZ
33291 fi
33292fi
33293
33294if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33295 cat >>confdefs.h <<\_ACEOF
1e6feb95 33296#define wxUSE_MSGDLG 1
e6cc62c6 33297_ACEOF
1e6feb95
VZ
33298
33299fi
33300
33301if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33302 cat >>confdefs.h <<\_ACEOF
1e6feb95 33303#define wxUSE_NUMBERDLG 1
e6cc62c6 33304_ACEOF
1e6feb95
VZ
33305
33306fi
33307
33308if test "$wxUSE_PROGRESSDLG" = "yes"; then
33309 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33310 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33311echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33312 else
e6cc62c6 33313 cat >>confdefs.h <<\_ACEOF
1e6feb95 33314#define wxUSE_PROGRESSDLG 1
e6cc62c6 33315_ACEOF
1e6feb95
VZ
33316
33317 fi
33318fi
33319
cbca9943 33320if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33321 cat >>confdefs.h <<\_ACEOF
cbca9943 33322#define wxUSE_SPLASH 1
e6cc62c6 33323_ACEOF
cbca9943
VZ
33324
33325fi
33326
1e6feb95
VZ
33327if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33328 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33329 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33330echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33331 else
e6cc62c6 33332 cat >>confdefs.h <<\_ACEOF
1e6feb95 33333#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33334_ACEOF
1e6feb95 33335
7b4a847f
RR
33336 fi
33337fi
579d8138 33338
8284b0c5 33339if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33340 cat >>confdefs.h <<\_ACEOF
8284b0c5 33341#define wxUSE_TEXTDLG 1
e6cc62c6 33342_ACEOF
8284b0c5
MB
33343
33344fi
33345
33346if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33347 cat >>confdefs.h <<\_ACEOF
8284b0c5 33348#define wxUSE_WIZARDDLG 1
e6cc62c6 33349_ACEOF
8284b0c5
MB
33350
33351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33352fi
33353
33354
33355if test "$cross_compiling" = "yes"; then
33356 OSINFO="\"$host\""
33357else
33358 OSINFO=`uname -s -r -m`
33359 OSINFO="\"$OSINFO\""
33360fi
33361
e6cc62c6 33362cat >>confdefs.h <<_ACEOF
8284b0c5 33363#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33364_ACEOF
8284b0c5
MB
33365
33366
33367
33368if test "x$prefix" != "xNONE"; then
33369 wxPREFIX=$prefix
33370else
33371 wxPREFIX=$ac_default_prefix
33372fi
33373
e6cc62c6 33374cat >>confdefs.h <<_ACEOF
8284b0c5 33375#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33376_ACEOF
8284b0c5
MB
33377
33378
e6cc62c6 33379top_builddir_wxconfig=`pwd`
52c71b80 33380
8284b0c5
MB
33381
33382
edd891e2
VS
33383CORE_BASE_LIBS="net base"
33384CORE_GUI_LIBS="adv core"
33385
33386if test "$wxUSE_XML" = "yes" ; then
33387 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33388fi
45293562
VS
33389if test "$wxUSE_ODBC" != "no" ; then
33390 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33391 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33392fi
33393if test "$wxUSE_HTML" = "yes" ; then
33394 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33395fi
33396
57e7d4ac
VS
33397if test "$wxUSE_GUI" != "yes"; then
33398 CORE_GUI_LIBS=""
33399fi
33400
edd891e2
VS
33401
33402
33403
33404
33405
33406
8284b0c5
MB
33407
33408if test "$wxUSE_MAC" = 1 ; then
33409 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33410fi
ac0c4cc3
DE
33411if test "$wxUSE_COCOA" = 1 ; then
33412 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33413fi
8284b0c5
MB
33414
33415
2b5f62a0
VZ
33416LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33417
33418have_cos=0
33419have_floor=0
e6cc62c6 33420
2b5f62a0
VZ
33421for ac_func in cos
33422do
e6cc62c6
VS
33423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33424echo "$as_me:$LINENO: checking for $ac_func" >&5
33425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33426if eval "test \"\${$as_ac_var+set}\" = set"; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
33428else
33429 cat >conftest.$ac_ext <<_ACEOF
33430#line $LINENO "configure"
33431/* confdefs.h. */
33432_ACEOF
33433cat confdefs.h >>conftest.$ac_ext
33434cat >>conftest.$ac_ext <<_ACEOF
33435/* end confdefs.h. */
2b5f62a0 33436/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33437 which can conflict with char $ac_func (); below.
33438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33439 <limits.h> exists even on freestanding compilers. */
33440#ifdef __STDC__
33441# include <limits.h>
33442#else
33443# include <assert.h>
33444#endif
2b5f62a0 33445/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33446#ifdef __cplusplus
33447extern "C"
33448{
33449#endif
2b5f62a0 33450/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33451 builtin and then its argument prototype would still apply. */
33452char $ac_func ();
2b5f62a0
VZ
33453/* The GNU C library defines this for functions which it implements
33454 to always fail with ENOSYS. Some functions are actually named
33455 something starting with __ and the normal name is an alias. */
33456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33457choke me
33458#else
e6cc62c6
VS
33459char (*f) () = $ac_func;
33460#endif
33461#ifdef __cplusplus
33462}
2b5f62a0
VZ
33463#endif
33464
e6cc62c6
VS
33465int
33466main ()
33467{
33468return f != $ac_func;
33469 ;
33470 return 0;
33471}
33472_ACEOF
33473rm -f conftest.$ac_objext conftest$ac_exeext
33474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33475 (eval $ac_link) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } &&
33479 { ac_try='test -s conftest$ac_exeext'
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; }; then
33485 eval "$as_ac_var=yes"
33486else
33487 echo "$as_me: failed program was:" >&5
33488sed 's/^/| /' conftest.$ac_ext >&5
33489
33490eval "$as_ac_var=no"
33491fi
33492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33493fi
33494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33495echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33496if test `eval echo '${'$as_ac_var'}'` = yes; then
33497 cat >>confdefs.h <<_ACEOF
33498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33499_ACEOF
2b5f62a0 33500 have_cos=1
2b5f62a0
VZ
33501fi
33502done
33503
e6cc62c6 33504
2b5f62a0
VZ
33505for ac_func in floor
33506do
e6cc62c6
VS
33507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33508echo "$as_me:$LINENO: checking for $ac_func" >&5
33509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33510if eval "test \"\${$as_ac_var+set}\" = set"; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33512else
33513 cat >conftest.$ac_ext <<_ACEOF
33514#line $LINENO "configure"
33515/* confdefs.h. */
33516_ACEOF
33517cat confdefs.h >>conftest.$ac_ext
33518cat >>conftest.$ac_ext <<_ACEOF
33519/* end confdefs.h. */
2b5f62a0 33520/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33521 which can conflict with char $ac_func (); below.
33522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33523 <limits.h> exists even on freestanding compilers. */
33524#ifdef __STDC__
33525# include <limits.h>
33526#else
33527# include <assert.h>
33528#endif
2b5f62a0 33529/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33530#ifdef __cplusplus
33531extern "C"
33532{
33533#endif
2b5f62a0 33534/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33535 builtin and then its argument prototype would still apply. */
33536char $ac_func ();
2b5f62a0
VZ
33537/* The GNU C library defines this for functions which it implements
33538 to always fail with ENOSYS. Some functions are actually named
33539 something starting with __ and the normal name is an alias. */
33540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33541choke me
33542#else
e6cc62c6
VS
33543char (*f) () = $ac_func;
33544#endif
33545#ifdef __cplusplus
33546}
2b5f62a0
VZ
33547#endif
33548
e6cc62c6
VS
33549int
33550main ()
33551{
33552return f != $ac_func;
33553 ;
33554 return 0;
33555}
33556_ACEOF
33557rm -f conftest.$ac_objext conftest$ac_exeext
33558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33559 (eval $ac_link) 2>&5
33560 ac_status=$?
33561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562 (exit $ac_status); } &&
33563 { ac_try='test -s conftest$ac_exeext'
33564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33565 (eval $ac_try) 2>&5
33566 ac_status=$?
33567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568 (exit $ac_status); }; }; then
33569 eval "$as_ac_var=yes"
33570else
33571 echo "$as_me: failed program was:" >&5
33572sed 's/^/| /' conftest.$ac_ext >&5
33573
33574eval "$as_ac_var=no"
33575fi
33576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33577fi
33578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33580if test `eval echo '${'$as_ac_var'}'` = yes; then
33581 cat >>confdefs.h <<_ACEOF
33582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33583_ACEOF
2b5f62a0 33584 have_floor=1
2b5f62a0
VZ
33585fi
33586done
33587
e6cc62c6
VS
33588echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33589echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33590if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33591 echo "$as_me:$LINENO: result: yes" >&5
33592echo "${ECHO_T}yes" >&6
2b5f62a0 33593else
e6cc62c6
VS
33594 echo "$as_me:$LINENO: result: no" >&5
33595echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33596 LIBS="$LIBS -lm"
33597 # use different functions to avoid configure caching
33598 have_sin=0
33599 have_ceil=0
e6cc62c6
VS
33600
33601for ac_func in sin
2b5f62a0 33602do
e6cc62c6
VS
33603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33604echo "$as_me:$LINENO: checking for $ac_func" >&5
33605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33606if eval "test \"\${$as_ac_var+set}\" = set"; then
33607 echo $ECHO_N "(cached) $ECHO_C" >&6
33608else
33609 cat >conftest.$ac_ext <<_ACEOF
33610#line $LINENO "configure"
33611/* confdefs.h. */
33612_ACEOF
33613cat confdefs.h >>conftest.$ac_ext
33614cat >>conftest.$ac_ext <<_ACEOF
33615/* end confdefs.h. */
2b5f62a0 33616/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33617 which can conflict with char $ac_func (); below.
33618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33619 <limits.h> exists even on freestanding compilers. */
33620#ifdef __STDC__
33621# include <limits.h>
33622#else
33623# include <assert.h>
33624#endif
2b5f62a0 33625/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33626#ifdef __cplusplus
33627extern "C"
33628{
33629#endif
2b5f62a0 33630/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33631 builtin and then its argument prototype would still apply. */
33632char $ac_func ();
2b5f62a0
VZ
33633/* The GNU C library defines this for functions which it implements
33634 to always fail with ENOSYS. Some functions are actually named
33635 something starting with __ and the normal name is an alias. */
33636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33637choke me
33638#else
e6cc62c6
VS
33639char (*f) () = $ac_func;
33640#endif
33641#ifdef __cplusplus
33642}
2b5f62a0
VZ
33643#endif
33644
e6cc62c6
VS
33645int
33646main ()
33647{
33648return f != $ac_func;
33649 ;
33650 return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext conftest$ac_exeext
33654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33655 (eval $ac_link) 2>&5
33656 ac_status=$?
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } &&
33659 { ac_try='test -s conftest$ac_exeext'
33660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661 (eval $ac_try) 2>&5
33662 ac_status=$?
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); }; }; then
33665 eval "$as_ac_var=yes"
33666else
33667 echo "$as_me: failed program was:" >&5
33668sed 's/^/| /' conftest.$ac_ext >&5
33669
33670eval "$as_ac_var=no"
33671fi
33672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33673fi
33674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33676if test `eval echo '${'$as_ac_var'}'` = yes; then
33677 cat >>confdefs.h <<_ACEOF
33678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33679_ACEOF
2b5f62a0 33680 have_sin=1
2b5f62a0
VZ
33681fi
33682done
33683
e6cc62c6
VS
33684
33685for ac_func in ceil
2b5f62a0 33686do
e6cc62c6
VS
33687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33688echo "$as_me:$LINENO: checking for $ac_func" >&5
33689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33690if eval "test \"\${$as_ac_var+set}\" = set"; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33692else
33693 cat >conftest.$ac_ext <<_ACEOF
33694#line $LINENO "configure"
33695/* confdefs.h. */
33696_ACEOF
33697cat confdefs.h >>conftest.$ac_ext
33698cat >>conftest.$ac_ext <<_ACEOF
33699/* end confdefs.h. */
2b5f62a0 33700/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33701 which can conflict with char $ac_func (); below.
33702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33703 <limits.h> exists even on freestanding compilers. */
33704#ifdef __STDC__
33705# include <limits.h>
33706#else
33707# include <assert.h>
33708#endif
2b5f62a0 33709/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33710#ifdef __cplusplus
33711extern "C"
33712{
33713#endif
2b5f62a0 33714/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33715 builtin and then its argument prototype would still apply. */
33716char $ac_func ();
2b5f62a0
VZ
33717/* The GNU C library defines this for functions which it implements
33718 to always fail with ENOSYS. Some functions are actually named
33719 something starting with __ and the normal name is an alias. */
33720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33721choke me
33722#else
e6cc62c6
VS
33723char (*f) () = $ac_func;
33724#endif
33725#ifdef __cplusplus
33726}
2b5f62a0
VZ
33727#endif
33728
e6cc62c6
VS
33729int
33730main ()
33731{
33732return f != $ac_func;
33733 ;
33734 return 0;
33735}
33736_ACEOF
33737rm -f conftest.$ac_objext conftest$ac_exeext
33738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33739 (eval $ac_link) 2>&5
33740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } &&
33743 { ac_try='test -s conftest$ac_exeext'
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33749 eval "$as_ac_var=yes"
33750else
33751 echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
33753
33754eval "$as_ac_var=no"
33755fi
33756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33757fi
33758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33760if test `eval echo '${'$as_ac_var'}'` = yes; then
33761 cat >>confdefs.h <<_ACEOF
33762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33763_ACEOF
2b5f62a0 33764 have_ceil=1
2b5f62a0
VZ
33765fi
33766done
33767
e6cc62c6
VS
33768 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33769echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33770 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33771 echo "$as_me:$LINENO: result: yes" >&5
33772echo "${ECHO_T}yes" >&6
2b5f62a0 33773 else
e6cc62c6
VS
33774 echo "$as_me:$LINENO: result: no" >&5
33775echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33776 # not sure we should warn the user, crash, etc.
33777 fi
33778fi
8284b0c5
MB
33779
33780if test "$wxUSE_GUI" = "yes"; then
33781
e6cc62c6 33782
8284b0c5
MB
33783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33784 drawing dynamic erase event exec font image \
1dd02ac0 33785 minimal propsize rotate shaped widgets render"
b625909c
VS
33786
33787 if test "$wxUSE_MONOLITHIC" != "yes"; then
33788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33789 fi
8284b0c5
MB
33790else
33791 SAMPLES_SUBDIRS="console"
33792fi
33793
33794
e6cc62c6 33795INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33796-I\${top_srcdir}/include \
33797$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33798$TOOLKIT_INCLUDE"
33799
fddeb06b
VS
33800if test "$GXX" = yes ; then
33801 CXXWARNINGS="-Wall"
33802 fi
33803
33804EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33805
95318f7d 33806CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33807CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33808CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33809
33810
fddeb06b 33811LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33812EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33813EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33814EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33815if test "$wxUSE_GUI" = "yes"; then
33816 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33817fi
34b08d2c
VS
33818if test "$wxUSE_OPENGL" = "yes"; then
33819 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33820fi
fddeb06b
VS
33821
33822LDFLAGS="$LDFLAGS $PROFILE"
33823
8284b0c5
MB
33824if test "$wxUSE_GTK" = 1; then
33825 WXCONFIG_INCLUDE=
33826else
33827 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33828fi
33829
67c13b6c
VS
33830WXCONFIG_EXTRALIBS="$LIBS"
33831
33832if test "$wxUSE_REGEX" = "builtin" ; then
33833 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33834fi
33835if test "$wxUSE_EXPAT" = "builtin" ; then
33836 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33837fi
33838if test "$wxUSE_ODBC" = "builtin" ; then
33839 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33840fi
33841if test "$wxUSE_LIBTIFF" = "builtin" ; then
33842 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33843fi
33844if test "$wxUSE_LIBJPEG" = "builtin" ; then
33845 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33846fi
33847if test "$wxUSE_LIBPNG" = "builtin" ; then
33848 wxconfig_3rdparty="$wxconfig_3rdparty png"
33849fi
33850if test "$wxUSE_ZLIB" = "builtin" ; then
33851 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33852fi
bb41dcbe
VS
33853if test "$wxUSE_ODBC" = "builtin" ; then
33854 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33855fi
67c13b6c
VS
33856
33857for i in $wxconfig_3rdparty ; do
33858 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33859done
33860
33861
fe0895cf
VS
33862if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33863 WXUNIV=1
33864else
33865 WXUNIV=0
8284b0c5
MB
33866fi
33867
8284b0c5
MB
33868
33869
33870
33871
33872
33873
33874
672abd7a 33875
9747f85d
VS
33876if test $wxUSE_MONOLITHIC = "yes" ; then
33877 MONOLITHIC=1
33878else
33879 MONOLITHIC=0
33880fi
8284b0c5 33881
bb41dcbe
VS
33882if test $wxUSE_ODBC != "no" ; then
33883 USE_ODBC=1
33884else
33885 USE_ODBC=0
33886fi
33887
029b47ad
VS
33888if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33889 OFFICIAL_BUILD=1
33890else
33891 OFFICIAL_BUILD=0
33892fi
33893
8ee2dd05
VS
33894
33895
33896
8284b0c5
MB
33897
33898
33899
33900
33901
33902
c74dc163 33903
34b08d2c 33904
672abd7a 33905
cf615ebb 33906
6c67131a
VS
33907
33908
bb41dcbe 33909
fe0895cf 33910TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33911
33912
33913
33914
33915
ea66c762 33916
0f1bc9c2 33917
fe0895cf 33918 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33919
33920 if test -n "$ac_tool_prefix"; then
33921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33923echo "$as_me:$LINENO: checking for $ac_word" >&5
33924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33925if test "${ac_cv_prog_RANLIB+set}" = set; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33927else
fe0895cf
VS
33928 if test -n "$RANLIB"; then
33929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33930else
e6cc62c6
VS
33931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33932for as_dir in $PATH
33933do
33934 IFS=$as_save_IFS
33935 test -z "$as_dir" && as_dir=.
33936 for ac_exec_ext in '' $ac_executable_extensions; do
33937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33940 break 2
33941 fi
33942done
33943done
33944
10f2d63a 33945fi
10f2d63a 33946fi
e6cc62c6 33947RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33948if test -n "$RANLIB"; then
e6cc62c6
VS
33949 echo "$as_me:$LINENO: result: $RANLIB" >&5
33950echo "${ECHO_T}$RANLIB" >&6
33951else
33952 echo "$as_me:$LINENO: result: no" >&5
33953echo "${ECHO_T}no" >&6
33954fi
33955
33956fi
33957if test -z "$ac_cv_prog_RANLIB"; then
33958 ac_ct_RANLIB=$RANLIB
33959 # Extract the first word of "ranlib", so it can be a program name with args.
33960set dummy ranlib; ac_word=$2
33961echo "$as_me:$LINENO: checking for $ac_word" >&5
33962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33963if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33964 echo $ECHO_N "(cached) $ECHO_C" >&6
33965else
33966 if test -n "$ac_ct_RANLIB"; then
33967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33968else
33969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33970for as_dir in $PATH
33971do
33972 IFS=$as_save_IFS
33973 test -z "$as_dir" && as_dir=.
33974 for ac_exec_ext in '' $ac_executable_extensions; do
33975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33976 ac_cv_prog_ac_ct_RANLIB="ranlib"
33977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33978 break 2
33979 fi
33980done
33981done
33982
33983 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33984fi
33985fi
33986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33987if test -n "$ac_ct_RANLIB"; then
33988 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33989echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33990else
e6cc62c6
VS
33991 echo "$as_me:$LINENO: result: no" >&5
33992echo "${ECHO_T}no" >&6
33993fi
33994
33995 RANLIB=$ac_ct_RANLIB
33996else
33997 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33998fi
665bbe97 33999
fe0895cf
VS
34000 # Find a good install program. We prefer a C program (faster),
34001# so one script is as good as another. But avoid the broken or
34002# incompatible versions:
34003# SysV /etc/install, /usr/sbin/install
34004# SunOS /usr/etc/install
34005# IRIX /sbin/install
34006# AIX /bin/install
e6cc62c6 34007# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34011# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34012echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34013echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34014if test -z "$INSTALL"; then
e6cc62c6
VS
34015if test "${ac_cv_path_install+set}" = set; then
34016 echo $ECHO_N "(cached) $ECHO_C" >&6
34017else
34018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34019for as_dir in $PATH
34020do
34021 IFS=$as_save_IFS
34022 test -z "$as_dir" && as_dir=.
34023 # Account for people who put trailing slashes in PATH elements.
34024case $as_dir/ in
34025 ./ | .// | /cC/* | \
34026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34027 /usr/ucb/* ) ;;
34028 *)
34029 # OSF1 and SCO ODT 3.0 have their own names for install.
34030 # Don't use installbsd from OSF since it installs stuff as root
34031 # by default.
34032 for ac_prog in ginstall scoinst install; do
34033 for ac_exec_ext in '' $ac_executable_extensions; do
34034 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34035 if test $ac_prog = install &&
34036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34037 # AIX install. It has an incompatible calling convention.
34038 :
34039 elif test $ac_prog = install &&
34040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34041 # program-specific install script used by HP pwplus--don't use.
34042 :
34043 else
34044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34045 break 3
34046 fi
34047 fi
fe0895cf 34048 done
e6cc62c6
VS
34049 done
34050 ;;
34051esac
34052done
34053
fe0895cf
VS
34054
34055fi
34056 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34057 INSTALL=$ac_cv_path_install
fe0895cf
VS
34058 else
34059 # As a last resort, use the slow shell script. We don't cache a
34060 # path for INSTALL within a source directory, because that will
34061 # break other packages using the cache if that directory is
34062 # removed, or if the path is relative.
e6cc62c6 34063 INSTALL=$ac_install_sh
fe0895cf
VS
34064 fi
34065fi
e6cc62c6
VS
34066echo "$as_me:$LINENO: result: $INSTALL" >&5
34067echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34068
34069# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34070# It thinks the first close brace ends the variable substitution.
34071test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34072
e6cc62c6 34073test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34074
34075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34076
e6cc62c6
VS
34077 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34078echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34079LN_S=$as_ln_s
34080if test "$LN_S" = "ln -s"; then
34081 echo "$as_me:$LINENO: result: yes" >&5
34082echo "${ECHO_T}yes" >&6
fe0895cf 34083else
e6cc62c6
VS
34084 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34085echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34086fi
34087
34088
e6cc62c6
VS
34089 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34090echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34091set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34092if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34094else
e6cc62c6 34095 cat >conftest.make <<\_ACEOF
fe0895cf 34096all:
e6cc62c6
VS
34097 @echo 'ac_maketemp="$(MAKE)"'
34098_ACEOF
fe0895cf 34099# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34100eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34101if test -n "$ac_maketemp"; then
34102 eval ac_cv_prog_make_${ac_make}_set=yes
34103else
34104 eval ac_cv_prog_make_${ac_make}_set=no
34105fi
e6cc62c6 34106rm -f conftest.make
fe0895cf
VS
34107fi
34108if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34109 echo "$as_me:$LINENO: result: yes" >&5
34110echo "${ECHO_T}yes" >&6
fe0895cf
VS
34111 SET_MAKE=
34112else
e6cc62c6
VS
34113 echo "$as_me:$LINENO: result: no" >&5
34114echo "${ECHO_T}no" >&6
fe0895cf
VS
34115 SET_MAKE="MAKE=${MAKE-make}"
34116fi
34117
e6cc62c6
VS
34118
34119
874d12cf
VS
34120 if test -n "$ac_tool_prefix"; then
34121 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34122set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34123echo "$as_me:$LINENO: checking for $ac_word" >&5
34124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34125if test "${ac_cv_prog_AR+set}" = set; then
34126 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34127else
34128 if test -n "$AR"; then
34129 ac_cv_prog_AR="$AR" # Let the user override the test.
34130else
e6cc62c6
VS
34131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34132for as_dir in $PATH
34133do
34134 IFS=$as_save_IFS
34135 test -z "$as_dir" && as_dir=.
34136 for ac_exec_ext in '' $ac_executable_extensions; do
34137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34138 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34140 break 2
34141 fi
34142done
34143done
34144
fe0895cf
VS
34145fi
34146fi
e6cc62c6 34147AR=$ac_cv_prog_AR
fe0895cf 34148if test -n "$AR"; then
e6cc62c6
VS
34149 echo "$as_me:$LINENO: result: $AR" >&5
34150echo "${ECHO_T}$AR" >&6
fe0895cf 34151else
e6cc62c6
VS
34152 echo "$as_me:$LINENO: result: no" >&5
34153echo "${ECHO_T}no" >&6
fe0895cf
VS
34154fi
34155
874d12cf
VS
34156fi
34157if test -z "$ac_cv_prog_AR"; then
34158 ac_ct_AR=$AR
34159 # Extract the first word of "ar", so it can be a program name with args.
34160set dummy ar; ac_word=$2
34161echo "$as_me:$LINENO: checking for $ac_word" >&5
34162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34163if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34164 echo $ECHO_N "(cached) $ECHO_C" >&6
34165else
34166 if test -n "$ac_ct_AR"; then
34167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34168else
34169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34170for as_dir in $PATH
34171do
34172 IFS=$as_save_IFS
34173 test -z "$as_dir" && as_dir=.
34174 for ac_exec_ext in '' $ac_executable_extensions; do
34175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34176 ac_cv_prog_ac_ct_AR="ar"
34177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34178 break 2
34179 fi
34180done
34181done
34182
34183 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34184fi
34185fi
34186ac_ct_AR=$ac_cv_prog_ac_ct_AR
34187if test -n "$ac_ct_AR"; then
34188 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34189echo "${ECHO_T}$ac_ct_AR" >&6
34190else
34191 echo "$as_me:$LINENO: result: no" >&5
34192echo "${ECHO_T}no" >&6
34193fi
34194
34195 AR=$ac_ct_AR
34196else
34197 AR="$ac_cv_prog_AR"
34198fi
34199
34200 if test -n "$ac_tool_prefix"; then
34201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34202set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34203echo "$as_me:$LINENO: checking for $ac_word" >&5
34204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34205if test "${ac_cv_prog_STRIP+set}" = set; then
34206 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34207else
34208 if test -n "$STRIP"; then
34209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34210else
e6cc62c6
VS
34211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214 IFS=$as_save_IFS
34215 test -z "$as_dir" && as_dir=.
34216 for ac_exec_ext in '' $ac_executable_extensions; do
34217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
34219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34220 break 2
34221 fi
34222done
34223done
34224
fe0895cf
VS
34225fi
34226fi
e6cc62c6 34227STRIP=$ac_cv_prog_STRIP
fe0895cf 34228if test -n "$STRIP"; then
e6cc62c6
VS
34229 echo "$as_me:$LINENO: result: $STRIP" >&5
34230echo "${ECHO_T}$STRIP" >&6
fe0895cf 34231else
e6cc62c6
VS
34232 echo "$as_me:$LINENO: result: no" >&5
34233echo "${ECHO_T}no" >&6
fe0895cf
VS
34234fi
34235
874d12cf
VS
34236fi
34237if test -z "$ac_cv_prog_STRIP"; then
34238 ac_ct_STRIP=$STRIP
34239 # Extract the first word of "strip", so it can be a program name with args.
34240set dummy strip; ac_word=$2
34241echo "$as_me:$LINENO: checking for $ac_word" >&5
34242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34243if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34244 echo $ECHO_N "(cached) $ECHO_C" >&6
34245else
34246 if test -n "$ac_ct_STRIP"; then
34247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34248else
34249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250for as_dir in $PATH
34251do
34252 IFS=$as_save_IFS
34253 test -z "$as_dir" && as_dir=.
34254 for ac_exec_ext in '' $ac_executable_extensions; do
34255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34256 ac_cv_prog_ac_ct_STRIP="strip"
34257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34258 break 2
34259 fi
34260done
34261done
34262
34263 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
34264fi
34265fi
34266ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34267if test -n "$ac_ct_STRIP"; then
34268 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34269echo "${ECHO_T}$ac_ct_STRIP" >&6
34270else
34271 echo "$as_me:$LINENO: result: no" >&5
34272echo "${ECHO_T}no" >&6
34273fi
34274
34275 STRIP=$ac_ct_STRIP
34276else
34277 STRIP="$ac_cv_prog_STRIP"
34278fi
34279
34280 if test -n "$ac_tool_prefix"; then
34281 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
34282set dummy ${ac_tool_prefix}nm; ac_word=$2
34283echo "$as_me:$LINENO: checking for $ac_word" >&5
34284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34285if test "${ac_cv_prog_NM+set}" = set; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34287else
34288 if test -n "$NM"; then
34289 ac_cv_prog_NM="$NM" # Let the user override the test.
34290else
34291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34292for as_dir in $PATH
34293do
34294 IFS=$as_save_IFS
34295 test -z "$as_dir" && as_dir=.
34296 for ac_exec_ext in '' $ac_executable_extensions; do
34297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34298 ac_cv_prog_NM="${ac_tool_prefix}nm"
34299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34300 break 2
34301 fi
34302done
34303done
34304
34305fi
34306fi
34307NM=$ac_cv_prog_NM
34308if test -n "$NM"; then
34309 echo "$as_me:$LINENO: result: $NM" >&5
34310echo "${ECHO_T}$NM" >&6
34311else
34312 echo "$as_me:$LINENO: result: no" >&5
34313echo "${ECHO_T}no" >&6
34314fi
34315
34316fi
34317if test -z "$ac_cv_prog_NM"; then
34318 ac_ct_NM=$NM
34319 # Extract the first word of "nm", so it can be a program name with args.
34320set dummy nm; ac_word=$2
34321echo "$as_me:$LINENO: checking for $ac_word" >&5
34322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34323if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325else
34326 if test -n "$ac_ct_NM"; then
34327 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
34328else
34329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332 IFS=$as_save_IFS
34333 test -z "$as_dir" && as_dir=.
34334 for ac_exec_ext in '' $ac_executable_extensions; do
34335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34336 ac_cv_prog_ac_ct_NM="nm"
34337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34338 break 2
34339 fi
34340done
34341done
34342
34343 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
34344fi
34345fi
34346ac_ct_NM=$ac_cv_prog_ac_ct_NM
34347if test -n "$ac_ct_NM"; then
34348 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
34349echo "${ECHO_T}$ac_ct_NM" >&6
34350else
34351 echo "$as_me:$LINENO: result: no" >&5
34352echo "${ECHO_T}no" >&6
34353fi
34354
34355 NM=$ac_ct_NM
34356else
34357 NM="$ac_cv_prog_NM"
34358fi
34359
fe0895cf
VS
34360
34361 case ${host} in
34362 *-hp-hpux* )
34363 INSTALL_DIR="mkdir"
34364 ;;
34365 *) INSTALL_DIR="$INSTALL -d"
34366 ;;
34367 esac
e6cc62c6 34368
fe0895cf 34369
6b9d41a5
VS
34370 LDFLAGS_GUI=
34371 case ${host} in
34372 *-*-cygwin* | *-*-mingw32* )
34373 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34374 esac
34375
34376
fe0895cf 34377 fi
e6cc62c6
VS
34378
34379 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34380echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34381if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34382 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34383else
e6cc62c6 34384
fe0895cf
VS
34385 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34386 egrep -s GNU > /dev/null); then
34387 bakefile_cv_prog_makeisgnu="yes"
34388 else
34389 bakefile_cv_prog_makeisgnu="no"
34390 fi
fe0895cf 34391
e6cc62c6 34392fi
49b0a3aa
VS
34393echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34394echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34395
34396 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34397 IF_GNU_MAKE=""
34398 else
34399 IF_GNU_MAKE="#"
34400 fi
fe0895cf 34401
e6cc62c6
VS
34402
34403
fe0895cf
VS
34404 PLATFORM_UNIX=0
34405 PLATFORM_WIN32=0
34406 PLATFORM_MSDOS=0
34407 PLATFORM_MAC=0
34408 PLATFORM_MACOSX=0
96c1699d 34409 PLATFORM_OS2=0
e6cc62c6 34410
fe0895cf
VS
34411 case "${host}" in
34412 *-*-cygwin* | *-*-mingw32* )
34413 PLATFORM_WIN32=1
34414 ;;
96c1699d 34415 *-pc-msdosdjgpp )
fe0895cf
VS
34416 PLATFORM_MSDOS=1
34417 ;;
96c1699d
VS
34418 *-pc-os2_emx | *-pc-os2-emx )
34419 PLATFORM_OS2=1
34420 ;;
fe0895cf
VS
34421 powerpc-*-darwin* )
34422 PLATFORM_MAC=1
34423 PLATFORM_MACOSX=1
34424 ;;
34425 * )
34426 PLATFORM_UNIX=1
34427 ;;
34428 esac
34429
fe0895cf 34430
e6cc62c6
VS
34431
34432
34433
34434
34435
34436
96c1699d 34437
fe0895cf 34438 SO_SUFFIX="so"
131f235d 34439 SO_SUFFIX_MODULE="so"
fe0895cf 34440 EXEEXT=""
4b1f6360 34441 LIBPREFIX=lib
fe0895cf 34442 DLLPREFIX=lib
131f235d 34443 DLLPREFIX_MODULE=
e6cc62c6 34444
fe0895cf
VS
34445 case "${host}" in
34446 *-hp-hpux* )
34447 SO_SUFFIX="sl"
131f235d 34448 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34449 ;;
34450 *-*-aix* )
34451 SO_SUFFIX="a"
131f235d 34452 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34453 ;;
34454 *-*-cygwin* | *-*-mingw32* )
34455 SO_SUFFIX="dll"
131f235d 34456 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34457 EXEEXT=".exe"
34458 DLLPREFIX=""
34459 ;;
4b1f6360
VS
34460 *-pc-msdosdjgpp )
34461 EXEEXT=".exe"
34462 DLLPREFIX=""
34463 ;;
34464 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34465 EXEEXT=".exe"
34466 DLLPREFIX=""
4b1f6360 34467 LIBPREFIX=""
fe0895cf
VS
34468 ;;
34469 powerpc-*-darwin* )
34470 SO_SUFFIX="dylib"
131f235d 34471 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34472 ;;
34473 esac
34474
fe0895cf 34475
e6cc62c6
VS
34476
34477
34478
34479
131f235d
VS
34480
34481
4b1f6360 34482
fe0895cf
VS
34483 SHARED_LD_CC="\$(CC) -shared -o"
34484 SHARED_LD_CXX="\$(CXX) -shared -o"
34485
34486 if test "x$GCC" = "xyes"; then
34487 PIC_FLAG="-fPIC"
34488 fi
34489
34490 case "${host}" in
34491 *-hp-hpux* )
34492 if test "x$GCC" = "xyes"; then
34493 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34494 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34495 else
34496 LDFLAGS="$LDFLAGS -L/usr/lib"
34497
34498 SHARED_LD_CC="${CC} -b -o"
34499 SHARED_LD_CXX="${CXX} -b -o"
34500 PIC_FLAG="+Z"
34501 fi
34502 ;;
34503
34504 *-*-linux* )
34505 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34506 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34507echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34508if test "${bakefile_cv_prog_icc+set}" = set; then
34509 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34510else
fe0895cf 34511
e6cc62c6
VS
34512 cat >conftest.$ac_ext <<_ACEOF
34513#line $LINENO "configure"
34514/* confdefs.h. */
34515_ACEOF
34516cat confdefs.h >>conftest.$ac_ext
34517cat >>conftest.$ac_ext <<_ACEOF
34518/* end confdefs.h. */
34519
34520int
34521main ()
34522{
fe0895cf
VS
34523
34524 #ifndef __INTEL_COMPILER
34525 #error Not icc
34526 #endif
e6cc62c6
VS
34527
34528 ;
34529 return 0;
34530}
34531_ACEOF
34532rm -f conftest.$ac_objext
34533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34534 (eval $ac_compile) 2>&5
34535 ac_status=$?
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); } &&
34538 { ac_try='test -s conftest.$ac_objext'
34539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540 (eval $ac_try) 2>&5
34541 ac_status=$?
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; }; then
fe0895cf
VS
34544 bakefile_cv_prog_icc=yes
34545else
e6cc62c6
VS
34546 echo "$as_me: failed program was:" >&5
34547sed 's/^/| /' conftest.$ac_ext >&5
34548
34549bakefile_cv_prog_icc=no
34550
fe0895cf 34551fi
e6cc62c6 34552rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34553
e6cc62c6
VS
34554fi
34555echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34556echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34557 if test "$bakefile_cv_prog_icc" = "yes"; then
34558 PIC_FLAG="-KPIC"
34559 fi
34560 fi
34561 ;;
34562
34563 *-*-solaris2* )
34564 if test "x$GCC" != xyes ; then
34565 SHARED_LD_CC="${CC} -G -o"
34566 SHARED_LD_CXX="${CXX} -G -o"
34567 PIC_FLAG="-KPIC"
34568 fi
34569 ;;
34570
34571 *-*-darwin* )
34572 CFLAGS="$CFLAGS -fno-common"
34573 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34574
34575
2a879853 34576 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
34577echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
34578if test "${wx_cv_gcc31+set}" = set; then
34579 echo $ECHO_N "(cached) $ECHO_C" >&6
34580else
34581
2a879853 34582 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
34583#line $LINENO "configure"
34584/* confdefs.h. */
34585_ACEOF
34586cat confdefs.h >>conftest.$ac_ext
34587cat >>conftest.$ac_ext <<_ACEOF
34588/* end confdefs.h. */
34589
34590int
34591main ()
34592{
34593
2a879853
VS
34594 #if (__GNUC__ < 3) || \
34595 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
34596 #error old gcc
34597 #endif
43948499
RD
34598
34599 ;
34600 return 0;
34601}
34602_ACEOF
34603rm -f conftest.$ac_objext
34604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34605 (eval $ac_compile) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); } &&
34609 { ac_try='test -s conftest.$ac_objext'
34610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34611 (eval $ac_try) 2>&5
34612 ac_status=$?
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); }; }; then
34615
2a879853 34616 wx_cv_gcc31=yes
43948499
RD
34617
34618else
34619 echo "$as_me: failed program was:" >&5
34620sed 's/^/| /' conftest.$ac_ext >&5
34621
34622
2a879853 34623 wx_cv_gcc31=no
43948499
RD
34624
34625
34626fi
34627rm -f conftest.$ac_objext conftest.$ac_ext
34628
34629fi
34630echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
34631echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 34632 if test "$wx_cv_gcc31" = "no"; then
43948499 34633 cat <<EOF >shared-ld-sh
fe0895cf
VS
34634#!/bin/sh
34635#-----------------------------------------------------------------------------
34636#-- Name: distrib/mac/shared-ld-sh
34637#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34638#-- Author: Gilles Depeyrot
34639#-- Copyright: (c) 2002 Gilles Depeyrot
34640#-- Licence: any use permitted
34641#-----------------------------------------------------------------------------
34642
34643verbose=0
34644args=""
34645objects=""
131f235d 34646linking_flag="-dynamiclib"
fe0895cf
VS
34647
34648while test \${#} -gt 0; do
34649 case \${1} in
34650
34651 -v)
34652 verbose=1
34653 ;;
34654
34655 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34656 # collect these options and values
34657 args="\${args} \${1} \${2}"
34658 shift
34659 ;;
34660
34661 -l*|-L*|-flat_namespace)
34662 # collect these options
34663 args="\${args} \${1}"
34664 ;;
34665
131f235d
VS
34666 -dynamiclib|-bundle)
34667 linking_flag="\${1}"
fe0895cf
VS
34668 ;;
34669
34670 -*)
34671 echo "shared-ld: unhandled option '\${1}'"
34672 exit 1
34673 ;;
34674
4d264332 34675 *.o | *.a | *.dylib)
fe0895cf
VS
34676 # collect object files
34677 objects="\${objects} \${1}"
34678 ;;
34679
34680 *)
34681 echo "shared-ld: unhandled argument '\${1}'"
34682 exit 1
34683 ;;
34684
34685 esac
34686 shift
34687done
34688
34689#
34690# Link one module containing all the others
34691#
34692if test \${verbose} = 1; then
34693 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34694fi
34695c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34696status=\$?
34697if test \${status} != 0; then
34698 exit \${status}
34699fi
34700
34701#
34702# Link the shared library from the single module created
34703#
34704if test \${verbose} = 1; then
2a879853 34705 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34706fi
131f235d 34707c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34708status=\$?
34709if test \${status} != 0; then
34710 exit \${status}
34711fi
34712
34713#
34714# Remove intermediate module
34715#
34716rm -f master.\$\$.o
34717
34718exit 0
34719EOF
43948499 34720 chmod +x shared-ld-sh
fe0895cf 34721
2a879853
VS
34722 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o"
34723 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o"
34724 SHARED_LD_CXX="$SHARED_LD_CC"
34725 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34726 else
34727 SHARED_LD_CC="\${CC} -dynamiclib -single_module -o"
34728 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o"
34729 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o"
34730 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o"
34731 fi
34732
fe0895cf 34733 PIC_FLAG="-dynamic -fPIC"
2a879853 34734 ;;
fe0895cf
VS
34735
34736 *-*-aix* )
34737 if test "x$GCC" != "xyes"; then
34738 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34739set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34740echo "$as_me:$LINENO: checking for $ac_word" >&5
34741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34742if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34743 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34744else
34745 if test -n "$AIX_CXX_LD"; then
34746 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34747else
e6cc62c6
VS
34748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34749for as_dir in $PATH
34750do
34751 IFS=$as_save_IFS
34752 test -z "$as_dir" && as_dir=.
34753 for ac_exec_ext in '' $ac_executable_extensions; do
34754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34755 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34757 break 2
34758 fi
34759done
34760done
34761
fe0895cf
VS
34762 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34763fi
34764fi
e6cc62c6 34765AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34766if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34767 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34768echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34769else
e6cc62c6
VS
34770 echo "$as_me:$LINENO: result: no" >&5
34771echo "${ECHO_T}no" >&6
fe0895cf
VS
34772fi
34773
34774 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34775 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34776 fi
34777 ;;
34778
34779 *-*-beos* )
34780 SHARED_LD_CC="${LD} -shared -o"
34781 SHARED_LD_CXX="${LD} -shared -o"
34782 ;;
34783
34784 *-*-irix* )
34785 if test "x$GCC" != "xyes"; then
34786 PIC_FLAG="-KPIC"
34787 fi
34788 ;;
e6cc62c6 34789
fe0895cf
VS
34790 *-*-cygwin* | *-*-mingw32* )
34791 PIC_FLAG=""
34792 ;;
e6cc62c6 34793
fe0895cf
VS
34794 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34795 *-*-sunos4* | \
34796 *-*-osf* | \
34797 *-*-dgux5* | \
4b1f6360 34798 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
34799 *-*-sysv5* )
34800 ;;
34801
34802 *)
e6cc62c6
VS
34803 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34804echo "$as_me: error: unknown system type $host." >&2;}
34805 { (exit 1); exit 1; }; }
fe0895cf
VS
34806 esac
34807
131f235d
VS
34808 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34809 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34810 fi
34811 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34812 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34813 fi
34814
34815
34816
fe0895cf 34817
e6cc62c6
VS
34818
34819
34820
34821
fe0895cf
VS
34822 USE_SOVERSION=0
34823 USE_SOVERLINUX=0
34824 USE_SOVERSOLARIS=0
34825 USE_SOSYMLINKS=0
34826 USE_MACVERSION=0
34827 SONAME_FLAG=
34828
34829 case "${host}" in
34830 *-*-linux* )
34831 SONAME_FLAG="-Wl,-soname,"
34832 USE_SOVERSION=1
34833 USE_SOVERLINUX=1
34834 USE_SOSYMLINKS=1
34835 ;;
34836
34837 *-*-solaris2* )
34838 SONAME_FLAG="-h "
34839 USE_SOVERSION=1
34840 USE_SOVERSOLARIS=1
34841 USE_SOSYMLINKS=1
34842 ;;
34843
34844 *-*-darwin* )
34845 USE_MACVERSION=1
34846 USE_SOVERSION=1
34847 USE_SOSYMLINKS=1
e6cc62c6 34848 ;;
fe0895cf
VS
34849 esac
34850
fe0895cf 34851
e6cc62c6
VS
34852
34853
34854
34855
34856
34857
34858
49b0a3aa
VS
34859 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34860echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34861 DEPS_TRACKING=0
34862
fe0895cf 34863 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34864 DEPSMODE=gcc
34865 DEPS_TRACKING=1
3e5c3c83
VS
34866 case "${host}" in
34867 powerpc-*-darwin* )
34868 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34869 ;;
34870 * )
34871 DEPSFLAG_GCC="-MMD"
34872 ;;
34873 esac
49b0a3aa
VS
34874 echo "$as_me:$LINENO: result: gcc" >&5
34875echo "${ECHO_T}gcc" >&6
34876 else
34877 echo "$as_me:$LINENO: result: none" >&5
34878echo "${ECHO_T}none" >&6
34879 fi
34880
34881 if test $DEPS_TRACKING = 1 ; then
34882 cat <<EOF >bk-deps
34883#!/bin/sh
34884
45842500
VS
34885# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34886# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34887#
34888# Permission is given to use this file in any way.
34889
34890DEPSMODE=$DEPSMODE
34891DEPSDIR=.deps
3e5c3c83 34892DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34893
34894mkdir -p \$DEPSDIR
34895
34896if test \$DEPSMODE = gcc ; then
3e5c3c83 34897 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34898 status=\${?}
34899 if test \${status} != 0 ; then
34900 exit \${status}
34901 fi
34902 # move created file to the location we want it in:
34903 while test \${#} -gt 0; do
34904 case "\${1}" in
34905 -o )
34906 shift
34907 objfile=\${1}
34908 ;;
34909 -* )
34910 ;;
34911 * )
34912 srcfile=\${1}
34913 ;;
34914 esac
34915 shift
34916 done
34917 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34918 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34919 if test -f \$depfile ; then
34920 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34921 rm -f \$depfile
34922 else
34923 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34924 if test -f \$depfile ; then
4c8b7f4b 34925 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34926 rm -f \$depfile
34927 fi
34928 fi
49b0a3aa
VS
34929 exit 0
34930else
34931 \${*}
34932 exit \${?}
34933fi
34934EOF
34935 chmod +x bk-deps
fe0895cf 34936 fi
fe0895cf 34937
e6cc62c6
VS
34938
34939
34940
fe0895cf
VS
34941 RESCOMP=
34942 SETFILE=
34943
e6cc62c6 34944 case ${host} in
fe0895cf
VS
34945 *-*-cygwin* | *-*-mingw32* )
34946 if test "$build" != "$host" ; then
34947 RESCOMP=$host_alias-windres
34948 else
34949 # Extract the first word of "windres", so it can be a program name with args.
34950set dummy windres; ac_word=$2
e6cc62c6
VS
34951echo "$as_me:$LINENO: checking for $ac_word" >&5
34952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34953if test "${ac_cv_prog_RESCOMP+set}" = set; then
34954 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34955else
34956 if test -n "$RESCOMP"; then
34957 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34958else
e6cc62c6
VS
34959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34960for as_dir in $PATH
34961do
34962 IFS=$as_save_IFS
34963 test -z "$as_dir" && as_dir=.
34964 for ac_exec_ext in '' $ac_executable_extensions; do
34965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34966 ac_cv_prog_RESCOMP="windres"
34967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34968 break 2
34969 fi
34970done
34971done
34972
fe0895cf
VS
34973 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34974fi
34975fi
e6cc62c6 34976RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34977if test -n "$RESCOMP"; then
e6cc62c6
VS
34978 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34979echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34980else
e6cc62c6
VS
34981 echo "$as_me:$LINENO: result: no" >&5
34982echo "${ECHO_T}no" >&6
fe0895cf
VS
34983fi
34984
34985 fi
34986 ;;
e6cc62c6 34987
fe0895cf
VS
34988 *-*-darwin* )
34989 # Extract the first word of "Rez", so it can be a program name with args.
34990set dummy Rez; ac_word=$2
e6cc62c6
VS
34991echo "$as_me:$LINENO: checking for $ac_word" >&5
34992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34993if test "${ac_cv_prog_RESCOMP+set}" = set; then
34994 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34995else
34996 if test -n "$RESCOMP"; then
34997 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34998else
e6cc62c6
VS
34999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35000for as_dir in $PATH
35001do
35002 IFS=$as_save_IFS
35003 test -z "$as_dir" && as_dir=.
35004 for ac_exec_ext in '' $ac_executable_extensions; do
35005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35006 ac_cv_prog_RESCOMP="Rez"
35007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35008 break 2
35009 fi
35010done
35011done
35012
fe0895cf
VS
35013 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35014fi
35015fi
e6cc62c6 35016RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35017if test -n "$RESCOMP"; then
e6cc62c6
VS
35018 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35019echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35020else
e6cc62c6
VS
35021 echo "$as_me:$LINENO: result: no" >&5
35022echo "${ECHO_T}no" >&6
fe0895cf
VS
35023fi
35024
35025 # Extract the first word of "SetFile", so it can be a program name with args.
35026set dummy SetFile; ac_word=$2
e6cc62c6
VS
35027echo "$as_me:$LINENO: checking for $ac_word" >&5
35028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35029if test "${ac_cv_prog_SETFILE+set}" = set; then
35030 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35031else
35032 if test -n "$SETFILE"; then
35033 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35034else
e6cc62c6
VS
35035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35036for as_dir in $PATH
35037do
35038 IFS=$as_save_IFS
35039 test -z "$as_dir" && as_dir=.
35040 for ac_exec_ext in '' $ac_executable_extensions; do
35041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35042 ac_cv_prog_SETFILE="SetFile"
35043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35044 break 2
35045 fi
35046done
35047done
35048
fe0895cf
VS
35049 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35050fi
35051fi
e6cc62c6 35052SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35053if test -n "$SETFILE"; then
e6cc62c6
VS
35054 echo "$as_me:$LINENO: result: $SETFILE" >&5
35055echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35056else
e6cc62c6
VS
35057 echo "$as_me:$LINENO: result: no" >&5
35058echo "${ECHO_T}no" >&6
fe0895cf
VS
35059fi
35060
35061 ;;
35062 esac
35063
fe0895cf
VS
35064
35065
e6cc62c6
VS
35066
35067
35068
35069
45842500 35070
57e7d4ac
VS
35071
35072
45842500
VS
35073 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35074if test "${enable_precomp_headers+set}" = set; then
35075 enableval="$enable_precomp_headers"
35076 bk_use_pch="$enableval"
35077fi;
35078
35079 GCC_PCH=0
35080
35081 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35082 if test "x$GCC" = "xyes"; then
35083 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35084echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35085 cat >conftest.$ac_ext <<_ACEOF
35086#line $LINENO "configure"
35087/* confdefs.h. */
35088_ACEOF
35089cat confdefs.h >>conftest.$ac_ext
35090cat >>conftest.$ac_ext <<_ACEOF
35091/* end confdefs.h. */
35092
35093int
35094main ()
35095{
35096
8bcf2d20
VS
35097 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35098 #error "no pch support"
35099 #endif
35100 #if (__GNUC__ < 3)
35101 #error "no pch support"
35102 #endif
35103 #if (__GNUC__ == 3) && \
35104 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35105 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35106 #error "no pch support"
45842500
VS
35107 #endif
35108
35109 ;
35110 return 0;
35111}
35112_ACEOF
35113rm -f conftest.$ac_objext
35114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35115 (eval $ac_compile) 2>&5
35116 ac_status=$?
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
35119 { ac_try='test -s conftest.$ac_objext'
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; }; then
35125
35126 echo "$as_me:$LINENO: result: yes" >&5
35127echo "${ECHO_T}yes" >&6
35128 CPPFLAGS="-fpch-deps $CPPFLAGS"
35129 GCC_PCH=1
35130
35131else
35132 echo "$as_me: failed program was:" >&5
35133sed 's/^/| /' conftest.$ac_ext >&5
35134
35135
35136 echo "$as_me:$LINENO: result: no" >&5
35137echo "${ECHO_T}no" >&6
35138
35139fi
35140rm -f conftest.$ac_objext conftest.$ac_ext
35141 if test $GCC_PCH = 1 ; then
35142 cat <<EOF >bk-make-pch
35143#!/bin/sh
35144
35145# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35146# script. It is used to generated precompiled headers.
35147#
35148# Permission is given to use this file in any way.
35149
35150outfile="\${1}"
35151header="\${2}"
35152shift
35153shift
35154
35155compiler=
35156headerfile=
35157while test \${#} -gt 0; do
35158 case "\${1}" in
35159 -I* )
35160 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35161 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35162 headerfile="\${incdir}/\${header}"
35163 fi
35164 ;;
35165 esac
35166 compiler="\${compiler} \${1}"
35167 shift
35168done
35169
35170if test "x\${headerfile}" = "x" ; then
35171 echo "error: can't find header \${header} in include paths" >2
35172else
35173 if test -f \${outfile} ; then
35174 rm -f \${outfile}
35175 else
35176 mkdir -p \`dirname \${outfile}\`
35177 fi
35178 depsfile=".deps/\`basename \${outfile}\`.d"
35179 mkdir -p .deps
35180 # can do this because gcc is >= 3.4:
35181 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35182 exit \${?}
35183fi
35184EOF
35185 chmod +x bk-make-pch
35186 fi
35187 fi
35188 fi
35189
35190
35191
35192
35193
d78c94f2 35194 COND_BUILD_DEBUG="#"
6f628073 35195 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35196 COND_BUILD_DEBUG=""
6f628073
VS
35197 fi
35198
6c67131a
VS
35199 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35200 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35201 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35202 fi
35203
35204 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35205 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35206 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35207 fi
35208
d78c94f2 35209 COND_BUILD_RELEASE="#"
6f628073 35210 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35211 COND_BUILD_RELEASE=""
6b9d41a5
VS
35212 fi
35213
6c67131a
VS
35214 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35215 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35216 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35217 fi
35218
35219 COND_DEBUG_FLAG_1="#"
35220 if test "x$DEBUG_FLAG" = "x1" ; then
35221 COND_DEBUG_FLAG_1=""
35222 fi
35223
35224 COND_DEBUG_INFO_0="#"
35225 if test "x$DEBUG_INFO" = "x0" ; then
35226 COND_DEBUG_INFO_0=""
35227 fi
35228
35229 COND_DEBUG_INFO_1="#"
35230 if test "x$DEBUG_INFO" = "x1" ; then
35231 COND_DEBUG_INFO_1=""
35232 fi
35233
f95cd8fa
VS
35234 COND_DEPS_TRACKING_0="#"
35235 if test "x$DEPS_TRACKING" = "x0" ; then
35236 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35237 fi
35238
8ee2dd05
VS
35239 COND_DEPS_TRACKING_1="#"
35240 if test "x$DEPS_TRACKING" = "x1" ; then
35241 COND_DEPS_TRACKING_1=""
35242 fi
35243
45842500
VS
35244 COND_GCC_PCH_1="#"
35245 if test "x$GCC_PCH" = "x1" ; then
35246 COND_GCC_PCH_1=""
35247 fi
35248
6f628073
VS
35249 COND_MONOLITHIC_0="#"
35250 if test "x$MONOLITHIC" = "x0" ; then
35251 COND_MONOLITHIC_0=""
6b9d41a5
VS
35252 fi
35253
6f628073
VS
35254 COND_MONOLITHIC_0_SHARED_0="#"
35255 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35256 COND_MONOLITHIC_0_SHARED_0=""
35257 fi
35258
35259 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35260 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35261 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35262 fi
e6cc62c6 35263
8772a1a7
VS
35264 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35265 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35266 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35267 fi
35268
250700e4
RD
35269 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35270 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35271 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35272 fi
35273
eb69fda5
VS
35274 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35275 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35276 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35277 fi
35278
8ee2dd05
VS
35279 COND_MONOLITHIC_0_SHARED_1="#"
35280 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35281 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35282 fi
e6cc62c6 35283
6f628073
VS
35284 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35285 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35286 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35287 fi
35288
8772a1a7
VS
35289 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35290 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35291 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35292 fi
35293
250700e4
RD
35294 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35295 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35296 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35297 fi
35298
eb69fda5
VS
35299 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35300 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35301 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35302 fi
35303
3af038c0
VS
35304 COND_MONOLITHIC_1="#"
35305 if test "x$MONOLITHIC" = "x1" ; then
35306 COND_MONOLITHIC_1=""
35307 fi
35308
6f628073
VS
35309 COND_MONOLITHIC_1_SHARED_0="#"
35310 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35311 COND_MONOLITHIC_1_SHARED_0=""
35312 fi
35313
35314 COND_MONOLITHIC_1_SHARED_1="#"
35315 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35316 COND_MONOLITHIC_1_SHARED_1=""
35317 fi
35318
3af038c0
VS
35319 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35320 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35321 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35322 fi
35323
35324 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35325 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35326 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35327 fi
35328
6f628073
VS
35329 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35330 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35331 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35332 fi
35333
3af038c0
VS
35334 COND_PLATFORM_MACOSX_1="#"
35335 if test "x$PLATFORM_MACOSX" = "x1" ; then
35336 COND_PLATFORM_MACOSX_1=""
35337 fi
35338
250700e4
RD
35339 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35340 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35341 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35342 fi
35343
35344 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35345 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35346 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35347 fi
35348
35349 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35350 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35351 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35352 fi
35353
8ee2dd05
VS
35354 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35355 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35356 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35357 fi
35358
45842500
VS
35359 COND_PLATFORM_MAC_1="#"
35360 if test "x$PLATFORM_MAC" = "x1" ; then
35361 COND_PLATFORM_MAC_1=""
35362 fi
35363
3d8c1de0
VS
35364 COND_PLATFORM_OS2_1="#"
35365 if test "x$PLATFORM_OS2" = "x1" ; then
35366 COND_PLATFORM_OS2_1=""
35367 fi
35368
8772a1a7
VS
35369 COND_PLATFORM_UNIX_0="#"
35370 if test "x$PLATFORM_UNIX" = "x0" ; then
35371 COND_PLATFORM_UNIX_0=""
35372 fi
35373
3af038c0
VS
35374 COND_PLATFORM_UNIX_1="#"
35375 if test "x$PLATFORM_UNIX" = "x1" ; then
35376 COND_PLATFORM_UNIX_1=""
35377 fi
35378
35379 COND_PLATFORM_WIN32_0="#"
35380 if test "x$PLATFORM_WIN32" = "x0" ; then
35381 COND_PLATFORM_WIN32_0=""
35382 fi
35383
35384 COND_PLATFORM_WIN32_1="#"
35385 if test "x$PLATFORM_WIN32" = "x1" ; then
35386 COND_PLATFORM_WIN32_1=""
35387 fi
35388
45842500
VS
35389 COND_SHARED_0="#"
35390 if test "x$SHARED" = "x0" ; then
35391 COND_SHARED_0=""
35392 fi
35393
250700e4
RD
35394 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35395 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35396 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35397 fi
35398
52a5a009
VS
35399 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35400 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35401 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35402 fi
35403
35404 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35405 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35406 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35407 fi
35408
35409 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35410 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35411 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35412 fi
35413
35414 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35415 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35416 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35417 fi
35418
35419 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35420 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35421 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35422 fi
35423
35424 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35425 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35426 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35427 fi
35428
35429 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35430 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35431 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35432 fi
35433
45842500
VS
35434 COND_SHARED_1="#"
35435 if test "x$SHARED" = "x1" ; then
35436 COND_SHARED_1=""
35437 fi
35438
250700e4
RD
35439 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35440 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35441 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35442 fi
35443
6f628073
VS
35444 COND_TOOLKIT_COCOA="#"
35445 if test "x$TOOLKIT" = "xCOCOA" ; then
35446 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35447 fi
35448
6f628073
VS
35449 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35450 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35451 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35452 fi
35453
6f628073
VS
35454 COND_TOOLKIT_GTK="#"
35455 if test "x$TOOLKIT" = "xGTK" ; then
35456 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35457 fi
35458
6f628073
VS
35459 COND_TOOLKIT_GTK_USE_GUI_1="#"
35460 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35461 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35462 fi
35463
6f628073
VS
35464 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35465 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35466 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35467 fi
35468
3af038c0
VS
35469 COND_TOOLKIT_MAC="#"
35470 if test "x$TOOLKIT" = "xMAC" ; then
35471 COND_TOOLKIT_MAC=""
35472 fi
35473
8772a1a7
VS
35474 COND_TOOLKIT_MAC_USE_GUI_1="#"
35475 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35476 COND_TOOLKIT_MAC_USE_GUI_1=""
35477 fi
35478
6f628073
VS
35479 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35480 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35481 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35482 fi
35483
6f628073
VS
35484 COND_TOOLKIT_MGL="#"
35485 if test "x$TOOLKIT" = "xMGL" ; then
35486 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35487 fi
35488
6f628073
VS
35489 COND_TOOLKIT_MGL_USE_GUI_1="#"
35490 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35491 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35492 fi
35493
6f628073
VS
35494 COND_TOOLKIT_MOTIF="#"
35495 if test "x$TOOLKIT" = "xMOTIF" ; then
35496 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35497 fi
35498
6f628073
VS
35499 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35500 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35501 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35502 fi
e6cc62c6 35503
6f628073
VS
35504 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35505 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35506 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35507 fi
35508
6f628073
VS
35509 COND_TOOLKIT_MSW="#"
35510 if test "x$TOOLKIT" = "xMSW" ; then
35511 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35512 fi
35513
6f628073
VS
35514 COND_TOOLKIT_MSW_USE_GUI_1="#"
35515 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35516 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35517 fi
e6cc62c6 35518
6f628073
VS
35519 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35520 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35521 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35522 fi
e6cc62c6 35523
96c1699d
VS
35524 COND_TOOLKIT_PM="#"
35525 if test "x$TOOLKIT" = "xPM" ; then
35526 COND_TOOLKIT_PM=""
35527 fi
35528
35529 COND_TOOLKIT_PM_USE_GUI_1="#"
35530 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35531 COND_TOOLKIT_PM_USE_GUI_1=""
35532 fi
35533
35534 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35535 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35536 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35537 fi
35538
6f628073
VS
35539 COND_TOOLKIT_X11="#"
35540 if test "x$TOOLKIT" = "xX11" ; then
35541 COND_TOOLKIT_X11=""
9747f85d
VS
35542 fi
35543
6f628073
VS
35544 COND_TOOLKIT_X11_USE_GUI_1="#"
35545 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35546 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35547 fi
35548
3af038c0
VS
35549 COND_UNICODE_1="#"
35550 if test "x$UNICODE" = "x1" ; then
35551 COND_UNICODE_1=""
35552 fi
35553
7015ef3a
VZ
35554 COND_USE_EXCEPTIONS_0="#"
35555 if test "x$USE_EXCEPTIONS" = "x0" ; then
35556 COND_USE_EXCEPTIONS_0=""
35557 fi
35558
35559 COND_USE_EXCEPTIONS_1="#"
35560 if test "x$USE_EXCEPTIONS" = "x1" ; then
35561 COND_USE_EXCEPTIONS_1=""
35562 fi
35563
3af038c0
VS
35564 COND_USE_GUI_0="#"
35565 if test "x$USE_GUI" = "x0" ; then
35566 COND_USE_GUI_0=""
35567 fi
35568
35569 COND_USE_GUI_1="#"
35570 if test "x$USE_GUI" = "x1" ; then
35571 COND_USE_GUI_1=""
35572 fi
35573
e6cc62c6 35574 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35575 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35576 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35577 fi
e6cc62c6
VS
35578
35579 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35580 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35581 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35582 fi
35583
66a96744
VS
35584 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35585 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35586 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35587 fi
35588
35589 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35590 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35591 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35592 fi
35593
35594 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35595 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35596 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35597 fi
35598
57e7d4ac
VS
35599 COND_USE_ODBC_1="#"
35600 if test "x$USE_ODBC" = "x1" ; then
35601 COND_USE_ODBC_1=""
35602 fi
35603
6f628073
VS
35604 COND_USE_SOSYMLINKS_1="#"
35605 if test "x$USE_SOSYMLINKS" = "x1" ; then
35606 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35607 fi
35608
6f628073
VS
35609 COND_USE_SOVERLINUX_1="#"
35610 if test "x$USE_SOVERLINUX" = "x1" ; then
35611 COND_USE_SOVERLINUX_1=""
b625909c
VS
35612 fi
35613
6f628073
VS
35614 COND_USE_SOVERSION_0="#"
35615 if test "x$USE_SOVERSION" = "x0" ; then
35616 COND_USE_SOVERSION_0=""
fddeb06b 35617 fi
fe0895cf 35618
6f628073
VS
35619 COND_USE_SOVERSOLARIS_1="#"
35620 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35621 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35622 fi
fe0895cf 35623
3af038c0
VS
35624 COND_WXUNIV_1="#"
35625 if test "x$WXUNIV" = "x1" ; then
35626 COND_WXUNIV_1=""
35627 fi
35628
66a96744
VS
35629 COND_WXUSE_EXPAT_BUILTIN="#"
35630 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35631 COND_WXUSE_EXPAT_BUILTIN=""
35632 fi
35633
02980527
VS
35634 COND_WXUSE_LIBJPEG_BUILTIN="#"
35635 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35636 COND_WXUSE_LIBJPEG_BUILTIN=""
35637 fi
35638
35639 COND_WXUSE_LIBPNG_BUILTIN="#"
35640 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35641 COND_WXUSE_LIBPNG_BUILTIN=""
35642 fi
35643
35644 COND_WXUSE_LIBTIFF_BUILTIN="#"
35645 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35646 COND_WXUSE_LIBTIFF_BUILTIN=""
35647 fi
35648
35649 COND_WXUSE_ODBC_BUILTIN="#"
35650 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35651 COND_WXUSE_ODBC_BUILTIN=""
35652 fi
35653
35654 COND_WXUSE_REGEX_BUILTIN="#"
35655 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35656 COND_WXUSE_REGEX_BUILTIN=""
35657 fi
35658
35659 COND_WXUSE_ZLIB_BUILTIN="#"
35660 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35661 COND_WXUSE_ZLIB_BUILTIN=""
35662 fi
35663
1772d20c 35664
fe0895cf 35665
fe0895cf 35666
fe0895cf 35667
45842500
VS
35668if test $GCC_PCH = 1 ; then
35669 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35670else
35671 case "${host}" in
35672 powerpc-*-darwin* )
35673 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35674 ;;
45842500
VS
35675 esac
35676fi
2c6f14e1
VS
35677case "${host}" in
35678 powerpc-*-darwin* )
35679 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35680 ;;
35681esac
fe0895cf
VS
35682
35683
fddeb06b 35684SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
fe0895cf 35779
f0290fca
VS
35780
35781
67c13b6c 35782
e6cc62c6
VS
35783
35784
35785echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35786echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35787set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35788if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35789 echo $ECHO_N "(cached) $ECHO_C" >&6
35790else
35791 cat >conftest.make <<\_ACEOF
35792all:
35793 @echo 'ac_maketemp="$(MAKE)"'
35794_ACEOF
35795# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35796eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35797if test -n "$ac_maketemp"; then
35798 eval ac_cv_prog_make_${ac_make}_set=yes
35799else
35800 eval ac_cv_prog_make_${ac_make}_set=no
35801fi
35802rm -f conftest.make
35803fi
35804if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35805 echo "$as_me:$LINENO: result: yes" >&5
35806echo "${ECHO_T}yes" >&6
35807 SET_MAKE=
35808else
35809 echo "$as_me:$LINENO: result: no" >&5
35810echo "${ECHO_T}no" >&6
35811 SET_MAKE="MAKE=${MAKE-make}"
35812fi
35813
35814
35815if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35816 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35817fi
35818
35819 ac_config_headers="$ac_config_headers setup.h"
35820
35821
81345eef 35822 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35823
35824
35825 ac_config_commands="$ac_config_commands default"
35826
35827
9de9b8f0 35828
6c3e36af
VZ
35829if test "$wxUSE_GUI" = "yes"; then
35830 SUBDIRS="samples demos utils contrib"
35831else SUBDIRS="samples utils"
35832fi
e6cc62c6 35833
166263e6 35834for subdir in `echo $SUBDIRS`; do
9747f85d 35835 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35836 if test "$wxUSE_GUI" = "yes"; then
166263e6 35837 if test ${subdir} = "samples"; then
8772a1a7
VS
35838 makefiles="samples/Makefile.in $makefiles"
35839 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35840 if test -d $srcdir/samples/$sample; then
35841 makefiles="samples/$sample/Makefile.in $makefiles"
35842 fi
35843 done
35844 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35845 fi
6c3e36af 35846 else if test ${subdir} = "samples"; then
8772a1a7 35847 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 35848 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
35849 utils/HelpGen/src/Makefile.in \
35850 utils/tex2rtf/Makefile.in \
35851 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
35852 fi
35853 fi
35854
9747f85d
VS
35855 for mkin in $makefiles ; do
35856 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35857 ac_config_files="$ac_config_files $mk"
e6cc62c6 35858
9747f85d
VS
35859 done
35860 fi
35861done
e6cc62c6 35862
9de9b8f0 35863
e6cc62c6
VS
35864cat >confcache <<\_ACEOF
35865# This file is a shell script that caches the results of configure
35866# tests run on this system so they can be shared between configure
35867# scripts and configure runs, see configure's option --config-cache.
35868# It is not useful on other systems. If it contains results you don't
35869# want to keep, you may remove or edit it.
35870#
35871# config.status only pays attention to the cache file if you give it
35872# the --recheck option to rerun configure.
35873#
35874# `ac_cv_env_foo' variables (set or unset) will be overridden when
35875# loading this file, other *unset* `ac_cv_foo' will be assigned the
35876# following values.
35877
35878_ACEOF
35879
35880# The following way of writing the cache mishandles newlines in values,
35881# but we know of no workaround that is simple, portable, and efficient.
35882# So, don't put newlines in cache variables' values.
35883# Ultrix sh set writes to stderr and can't be redirected directly,
35884# and sets the high bit in the cache file unless we assign to the vars.
35885{
35886 (set) 2>&1 |
35887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35888 *ac_space=\ *)
35889 # `set' does not quote correctly, so add quotes (double-quote
35890 # substitution turns \\\\ into \\, and sed turns \\ into \).
35891 sed -n \
35892 "s/'/'\\\\''/g;
35893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35894 ;;
35895 *)
35896 # `set' quotes correctly as required by POSIX, so do not add quotes.
35897 sed -n \
35898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35899 ;;
35900 esac;
35901} |
35902 sed '
35903 t clear
35904 : clear
35905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35906 t end
35907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35908 : end' >>confcache
35909if diff $cache_file confcache >/dev/null 2>&1; then :; else
35910 if test -w $cache_file; then
35911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35912 cat confcache >$cache_file
35913 else
35914 echo "not updating unwritable cache $cache_file"
35915 fi
35916fi
35917rm -f confcache
35918
35919test "x$prefix" = xNONE && prefix=$ac_default_prefix
35920# Let make expand exec_prefix.
35921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35922
35923# VPATH may cause trouble with some makes, so we remove $(srcdir),
35924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35925# trailing colons and then remove the whole line if VPATH becomes empty
35926# (actually we leave an empty line to preserve line numbers).
35927if test "x$srcdir" = x.; then
35928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35929s/:*\$(srcdir):*/:/;
35930s/:*\${srcdir}:*/:/;
35931s/:*@srcdir@:*/:/;
35932s/^\([^=]*=[ ]*\):*/\1/;
35933s/:*$//;
35934s/^[^=]*=[ ]*$//;
35935}'
35936fi
35937
35938DEFS=-DHAVE_CONFIG_H
35939
35940ac_libobjs=
35941ac_ltlibobjs=
35942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35943 # 1. Remove the extension, and $U if already installed.
35944 ac_i=`echo "$ac_i" |
35945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35946 # 2. Add them.
35947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35949done
35950LIBOBJS=$ac_libobjs
35951
35952LTLIBOBJS=$ac_ltlibobjs
35953
35954
35955
35956: ${CONFIG_STATUS=./config.status}
35957ac_clean_files_save=$ac_clean_files
35958ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35959{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35960echo "$as_me: creating $CONFIG_STATUS" >&6;}
35961cat >$CONFIG_STATUS <<_ACEOF
35962#! $SHELL
35963# Generated by $as_me.
35964# Run this file to recreate the current configuration.
35965# Compiler output produced by configure, useful for debugging
35966# configure, is in config.log if it exists.
35967
35968debug=false
35969ac_cs_recheck=false
35970ac_cs_silent=false
35971SHELL=\${CONFIG_SHELL-$SHELL}
35972_ACEOF
35973
35974cat >>$CONFIG_STATUS <<\_ACEOF
35975## --------------------- ##
35976## M4sh Initialization. ##
35977## --------------------- ##
35978
35979# Be Bourne compatible
35980if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35981 emulate sh
35982 NULLCMD=:
35983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35984 # is contrary to our usage. Disable this feature.
35985 alias -g '${1+"$@"}'='"$@"'
35986elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35987 set -o posix
35988fi
35989
35990# Support unset when possible.
35991if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35992 as_unset=unset
35993else
35994 as_unset=false
35995fi
35996
35997
35998# Work around bugs in pre-3.0 UWIN ksh.
35999$as_unset ENV MAIL MAILPATH
36000PS1='$ '
36001PS2='> '
36002PS4='+ '
36003
36004# NLS nuisances.
36005for as_var in \
36006 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36007 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36008 LC_TELEPHONE LC_TIME
36009do
36010 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
36011 eval $as_var=C; export $as_var
36012 else
36013 $as_unset $as_var
36014 fi
36015done
36016
36017# Required to use basename.
36018if expr a : '\(a\)' >/dev/null 2>&1; then
36019 as_expr=expr
36020else
36021 as_expr=false
36022fi
36023
36024if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36025 as_basename=basename
36026else
36027 as_basename=false
36028fi
36029
36030
36031# Name of the executable.
36032as_me=`$as_basename "$0" ||
36033$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36034 X"$0" : 'X\(//\)$' \| \
36035 X"$0" : 'X\(/\)$' \| \
36036 . : '\(.\)' 2>/dev/null ||
36037echo X/"$0" |
36038 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36039 /^X\/\(\/\/\)$/{ s//\1/; q; }
36040 /^X\/\(\/\).*/{ s//\1/; q; }
36041 s/.*/./; q'`
36042
36043
36044# PATH needs CR, and LINENO needs CR and PATH.
36045# Avoid depending upon Character Ranges.
36046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36049as_cr_digits='0123456789'
36050as_cr_alnum=$as_cr_Letters$as_cr_digits
36051
36052# The user is always right.
36053if test "${PATH_SEPARATOR+set}" != set; then
36054 echo "#! /bin/sh" >conf$$.sh
36055 echo "exit 0" >>conf$$.sh
36056 chmod +x conf$$.sh
36057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36058 PATH_SEPARATOR=';'
36059 else
36060 PATH_SEPARATOR=:
36061 fi
36062 rm -f conf$$.sh
36063fi
36064
36065
36066 as_lineno_1=$LINENO
36067 as_lineno_2=$LINENO
36068 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36069 test "x$as_lineno_1" != "x$as_lineno_2" &&
36070 test "x$as_lineno_3" = "x$as_lineno_2" || {
36071 # Find who we are. Look in the path if we contain no path at all
36072 # relative or not.
36073 case $0 in
36074 *[\\/]* ) as_myself=$0 ;;
36075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36076for as_dir in $PATH
36077do
36078 IFS=$as_save_IFS
36079 test -z "$as_dir" && as_dir=.
36080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36081done
36082
36083 ;;
36084 esac
36085 # We did not find ourselves, most probably we were run as `sh COMMAND'
36086 # in which case we are not to be found in the path.
36087 if test "x$as_myself" = x; then
36088 as_myself=$0
36089 fi
36090 if test ! -f "$as_myself"; then
36091 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36092echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36093 { (exit 1); exit 1; }; }
36094 fi
36095 case $CONFIG_SHELL in
36096 '')
36097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36098for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36099do
36100 IFS=$as_save_IFS
36101 test -z "$as_dir" && as_dir=.
36102 for as_base in sh bash ksh sh5; do
36103 case $as_dir in
36104 /*)
36105 if ("$as_dir/$as_base" -c '
36106 as_lineno_1=$LINENO
36107 as_lineno_2=$LINENO
36108 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36109 test "x$as_lineno_1" != "x$as_lineno_2" &&
36110 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36111 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36112 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36113 CONFIG_SHELL=$as_dir/$as_base
36114 export CONFIG_SHELL
36115 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36116 fi;;
36117 esac
36118 done
36119done
36120;;
36121 esac
36122
36123 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36124 # uniformly replaced by the line number. The first 'sed' inserts a
36125 # line-number line before each line; the second 'sed' does the real
36126 # work. The second script uses 'N' to pair each line-number line
36127 # with the numbered line, and appends trailing '-' during
36128 # substitution so that $LINENO is not a special case at line end.
36129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36130 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36131 sed '=' <$as_myself |
36132 sed '
36133 N
36134 s,$,-,
36135 : loop
36136 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36137 t loop
36138 s,-$,,
36139 s,^['$as_cr_digits']*\n,,
36140 ' >$as_me.lineno &&
36141 chmod +x $as_me.lineno ||
36142 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36143echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36144 { (exit 1); exit 1; }; }
36145
36146 # Don't try to exec as it changes $[0], causing all sort of problems
36147 # (the dirname of $[0] is not the place where we might find the
36148 # original and so on. Autoconf is especially sensible to this).
36149 . ./$as_me.lineno
36150 # Exit status is that of the last command.
36151 exit
36152}
36153
36154
36155case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36156 *c*,-n*) ECHO_N= ECHO_C='
36157' ECHO_T=' ' ;;
36158 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36159 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36160esac
36161
36162if expr a : '\(a\)' >/dev/null 2>&1; then
36163 as_expr=expr
36164else
36165 as_expr=false
36166fi
36167
36168rm -f conf$$ conf$$.exe conf$$.file
36169echo >conf$$.file
36170if ln -s conf$$.file conf$$ 2>/dev/null; then
36171 # We could just check for DJGPP; but this test a) works b) is more generic
36172 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36173 if test -f conf$$.exe; then
36174 # Don't use ln at all; we don't have any links
36175 as_ln_s='cp -p'
36176 else
36177 as_ln_s='ln -s'
36178 fi
36179elif ln conf$$.file conf$$ 2>/dev/null; then
36180 as_ln_s=ln
36181else
36182 as_ln_s='cp -p'
36183fi
36184rm -f conf$$ conf$$.exe conf$$.file
36185
36186if mkdir -p . 2>/dev/null; then
36187 as_mkdir_p=:
36188else
36189 as_mkdir_p=false
36190fi
36191
36192as_executable_p="test -f"
36193
36194# Sed expression to map a string onto a valid CPP name.
36195as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36196
36197# Sed expression to map a string onto a valid variable name.
36198as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36199
36200
36201# IFS
36202# We need space, tab and new line, in precisely that order.
36203as_nl='
36204'
36205IFS=" $as_nl"
36206
36207# CDPATH.
36208$as_unset CDPATH
36209
36210exec 6>&1
36211
36212# Open the log real soon, to keep \$[0] and so on meaningful, and to
36213# report actual input values of CONFIG_FILES etc. instead of their
36214# values after options handling. Logging --version etc. is OK.
36215exec 5>>config.log
36216{
36217 echo
36218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36219## Running $as_me. ##
36220_ASBOX
36221} >&5
36222cat >&5 <<_CSEOF
36223
e46d2a18 36224This file was extended by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
36225generated by GNU Autoconf 2.57. Invocation command line was
36226
36227 CONFIG_FILES = $CONFIG_FILES
36228 CONFIG_HEADERS = $CONFIG_HEADERS
36229 CONFIG_LINKS = $CONFIG_LINKS
36230 CONFIG_COMMANDS = $CONFIG_COMMANDS
36231 $ $0 $@
36232
36233_CSEOF
36234echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36235echo >&5
36236_ACEOF
36237
36238# Files that config.status was made for.
36239if test -n "$ac_config_files"; then
36240 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36241fi
36242
36243if test -n "$ac_config_headers"; then
36244 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36245fi
36246
36247if test -n "$ac_config_links"; then
36248 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36249fi
36250
36251if test -n "$ac_config_commands"; then
36252 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36253fi
36254
36255cat >>$CONFIG_STATUS <<\_ACEOF
36256
36257ac_cs_usage="\
36258\`$as_me' instantiates files from templates according to the
36259current configuration.
36260
36261Usage: $0 [OPTIONS] [FILE]...
36262
36263 -h, --help print this help, then exit
36264 -V, --version print version number, then exit
36265 -q, --quiet do not print progress messages
36266 -d, --debug don't remove temporary files
36267 --recheck update $as_me by reconfiguring in the same conditions
36268 --file=FILE[:TEMPLATE]
36269 instantiate the configuration file FILE
36270 --header=FILE[:TEMPLATE]
36271 instantiate the configuration header FILE
36272
36273Configuration files:
36274$config_files
36275
36276Configuration headers:
36277$config_headers
36278
36279Configuration commands:
36280$config_commands
36281
36282Report bugs to <bug-autoconf@gnu.org>."
36283_ACEOF
36284
36285cat >>$CONFIG_STATUS <<_ACEOF
36286ac_cs_version="\\
e46d2a18 36287wxWindows config.status 2.5.1
e6cc62c6
VS
36288configured by $0, generated by GNU Autoconf 2.57,
36289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36290
36291Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36292Free Software Foundation, Inc.
36293This config.status script is free software; the Free Software Foundation
36294gives unlimited permission to copy, distribute and modify it."
36295srcdir=$srcdir
36296INSTALL="$INSTALL"
36297_ACEOF
36298
36299cat >>$CONFIG_STATUS <<\_ACEOF
36300# If no file are specified by the user, then we need to provide default
36301# value. By we need to know if files were specified by the user.
36302ac_need_defaults=:
36303while test $# != 0
36304do
36305 case $1 in
36306 --*=*)
36307 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36308 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36309 ac_shift=:
36310 ;;
36311 -*)
36312 ac_option=$1
36313 ac_optarg=$2
36314 ac_shift=shift
36315 ;;
36316 *) # This is not an option, so the user has probably given explicit
36317 # arguments.
36318 ac_option=$1
36319 ac_need_defaults=false;;
36320 esac
36321
36322 case $ac_option in
36323 # Handling of the options.
36324_ACEOF
36325cat >>$CONFIG_STATUS <<\_ACEOF
36326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36327 ac_cs_recheck=: ;;
36328 --version | --vers* | -V )
36329 echo "$ac_cs_version"; exit 0 ;;
36330 --he | --h)
36331 # Conflict between --help and --header
36332 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36333Try \`$0 --help' for more information." >&5
36334echo "$as_me: error: ambiguous option: $1
36335Try \`$0 --help' for more information." >&2;}
36336 { (exit 1); exit 1; }; };;
36337 --help | --hel | -h )
36338 echo "$ac_cs_usage"; exit 0 ;;
36339 --debug | --d* | -d )
36340 debug=: ;;
36341 --file | --fil | --fi | --f )
36342 $ac_shift
36343 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36344 ac_need_defaults=false;;
36345 --header | --heade | --head | --hea )
36346 $ac_shift
36347 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36348 ac_need_defaults=false;;
36349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36351 ac_cs_silent=: ;;
36352
36353 # This is an error.
36354 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36355Try \`$0 --help' for more information." >&5
36356echo "$as_me: error: unrecognized option: $1
36357Try \`$0 --help' for more information." >&2;}
36358 { (exit 1); exit 1; }; } ;;
36359
36360 *) ac_config_targets="$ac_config_targets $1" ;;
36361
36362 esac
36363 shift
36364done
36365
36366ac_configure_extra_args=
36367
36368if $ac_cs_silent; then
36369 exec 6>/dev/null
36370 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36371fi
36372
e6cc62c6
VS
36373_ACEOF
36374cat >>$CONFIG_STATUS <<_ACEOF
36375if \$ac_cs_recheck; then
36376 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36377 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36378fi
36379
e6cc62c6 36380_ACEOF
fe0895cf 36381
e6cc62c6 36382cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36383#
e6cc62c6 36384# INIT-COMMANDS section.
10f2d63a 36385#
10f2d63a 36386
a0b9e27f 36387
e6cc62c6
VS
36388 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36389 LN_S="${LN_S}"
10f2d63a 36390
10f2d63a 36391
10f2d63a 36392
e6cc62c6 36393_ACEOF
8284b0c5 36394
52127426 36395
247f5006 36396
e6cc62c6
VS
36397cat >>$CONFIG_STATUS <<\_ACEOF
36398for ac_config_target in $ac_config_targets
247f5006 36399do
e6cc62c6
VS
36400 case "$ac_config_target" in
36401 # Handling of arguments.
81345eef
VZ
36402 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36403 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36404 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36405 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36406 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36407 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36410 { (exit 1); exit 1; }; };;
247f5006
VZ
36411 esac
36412done
36413
e6cc62c6
VS
36414# If the user did not use the arguments to specify the items to instantiate,
36415# then the envvar interface is used. Set only those that are not.
36416# We use the long form for the default assignment because of an extremely
36417# bizarre bug on SunOS 4.1.3.
36418if $ac_need_defaults; then
36419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36420 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36422fi
36423
36424# Have a temporary directory for convenience. Make it in the build tree
36425# simply because there is no reason to put it here, and in addition,
36426# creating and moving files from /tmp can sometimes cause problems.
36427# Create a temporary directory, and hook for its removal unless debugging.
36428$debug ||
36429{
36430 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36431 trap '{ (exit 1); exit 1; }' 1 2 13 15
36432}
247f5006 36433
e6cc62c6 36434# Create a (secure) tmp directory for tmp files.
247f5006 36435
e6cc62c6
VS
36436{
36437 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36438 test -n "$tmp" && test -d "$tmp"
36439} ||
36440{
36441 tmp=./confstat$$-$RANDOM
36442 (umask 077 && mkdir $tmp)
36443} ||
36444{
36445 echo "$me: cannot create a temporary directory in ." >&2
36446 { (exit 1); exit 1; }
36447}
36448
36449_ACEOF
36450
36451cat >>$CONFIG_STATUS <<_ACEOF
36452
36453#
36454# CONFIG_FILES section.
36455#
247f5006 36456
e6cc62c6
VS
36457# No need to generate the scripts if there are no CONFIG_FILES.
36458# This happens for instance when ./config.status config.h
36459if test -n "\$CONFIG_FILES"; then
36460 # Protect against being on the right side of a sed subst in config.status.
36461 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36462 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36463s,@SHELL@,$SHELL,;t t
36464s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36465s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36466s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36467s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36468s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36469s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36470s,@exec_prefix@,$exec_prefix,;t t
36471s,@prefix@,$prefix,;t t
36472s,@program_transform_name@,$program_transform_name,;t t
36473s,@bindir@,$bindir,;t t
36474s,@sbindir@,$sbindir,;t t
36475s,@libexecdir@,$libexecdir,;t t
36476s,@datadir@,$datadir,;t t
36477s,@sysconfdir@,$sysconfdir,;t t
36478s,@sharedstatedir@,$sharedstatedir,;t t
36479s,@localstatedir@,$localstatedir,;t t
36480s,@libdir@,$libdir,;t t
36481s,@includedir@,$includedir,;t t
36482s,@oldincludedir@,$oldincludedir,;t t
36483s,@infodir@,$infodir,;t t
36484s,@mandir@,$mandir,;t t
36485s,@build_alias@,$build_alias,;t t
36486s,@host_alias@,$host_alias,;t t
36487s,@target_alias@,$target_alias,;t t
36488s,@DEFS@,$DEFS,;t t
36489s,@ECHO_C@,$ECHO_C,;t t
36490s,@ECHO_N@,$ECHO_N,;t t
36491s,@ECHO_T@,$ECHO_T,;t t
36492s,@LIBS@,$LIBS,;t t
36493s,@build@,$build,;t t
36494s,@build_cpu@,$build_cpu,;t t
36495s,@build_vendor@,$build_vendor,;t t
36496s,@build_os@,$build_os,;t t
36497s,@host@,$host,;t t
36498s,@host_cpu@,$host_cpu,;t t
36499s,@host_vendor@,$host_vendor,;t t
36500s,@host_os@,$host_os,;t t
36501s,@target@,$target,;t t
36502s,@target_cpu@,$target_cpu,;t t
36503s,@target_vendor@,$target_vendor,;t t
36504s,@target_os@,$target_os,;t t
36505s,@CC@,$CC,;t t
36506s,@CFLAGS@,$CFLAGS,;t t
36507s,@LDFLAGS@,$LDFLAGS,;t t
36508s,@CPPFLAGS@,$CPPFLAGS,;t t
36509s,@ac_ct_CC@,$ac_ct_CC,;t t
36510s,@EXEEXT@,$EXEEXT,;t t
36511s,@OBJEXT@,$OBJEXT,;t t
36512s,@CPP@,$CPP,;t t
36513s,@EGREP@,$EGREP,;t t
36514s,@CXX@,$CXX,;t t
36515s,@CXXFLAGS@,$CXXFLAGS,;t t
36516s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36517s,@RANLIB@,$RANLIB,;t t
36518s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36519s,@AR@,$AR,;t t
36520s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36521s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36522s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36523s,@STRIP@,$STRIP,;t t
36524s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36525s,@LN_S@,$LN_S,;t t
36526s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36527s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36528s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36529s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36530s,@GTK_LIBS@,$GTK_LIBS,;t t
36531s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36532s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36533s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36534s,@X_CFLAGS@,$X_CFLAGS,;t t
36535s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36536s,@X_LIBS@,$X_LIBS,;t t
36537s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36538s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36539s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36540s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36541s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36542s,@RESCOMP@,$RESCOMP,;t t
36543s,@DEREZ@,$DEREZ,;t t
36544s,@SETFILE@,$SETFILE,;t t
36545s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36546s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36547s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36548s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36549s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36550s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36551s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36552s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36553s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36554s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36555s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36556s,@VENDOR@,$VENDOR,;t t
36557s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36558s,@WXUNIV@,$WXUNIV,;t t
36559s,@MONOLITHIC@,$MONOLITHIC,;t t
36560s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36561s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36562s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36563s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36564s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36565s,@UNICODE@,$UNICODE,;t t
36566s,@BUILD@,$BUILD,;t t
6c67131a
VS
36567s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36568s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36569s,@SHARED@,$SHARED,;t t
36570s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36571s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36572s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36573s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36574s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36575s,@SET_MAKE@,$SET_MAKE,;t t
36576s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
36577s,@ac_ct_AR@,$ac_ct_AR,;t t
36578s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36579s,@NM@,$NM,;t t
36580s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 36581s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36582s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36583s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36584s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36585s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36586s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36587s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36588s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36589s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36590s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36591s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36592s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36593s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36594s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36595s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36596s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36597s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36598s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36599s,@PIC_FLAG@,$PIC_FLAG,;t t
36600s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36601s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36602s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36603s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36604s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36605s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36606s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36607s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36608s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36609s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36610s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36611s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36612s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36613s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36614s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36615s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36616s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36617s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36618s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36619s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36620s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36621s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36622s,@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 36623s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36624s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36625s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36626s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36627s,@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 36628s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36629s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36630s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36631s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36632s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36633s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36634s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36635s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36636s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36637s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36638s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36639s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36640s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36641s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36642s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36643s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36644s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36645s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36646s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36647s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36648s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36649s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36650s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36651s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36652s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36653s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36654s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36655s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36656s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36657s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36658s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36659s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36660s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36661s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36662s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36663s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36664s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36665s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36666s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36667s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36668s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36669s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36670s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36671s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36672s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36673s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36674s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36675s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36676s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36677s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36678s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 36679s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
36680s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
36681s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
36682s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36683s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36684s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36685s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36686s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36687s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36688s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 36689s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
36690s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36691s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36692s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36693s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36694s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36695s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36696s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36697s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36698s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36699s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36700s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36701s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36702s,@PATH_IFS@,$PATH_IFS,;t t
36703s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36704s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36705s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36706s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36707s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36708s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36709s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36710s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36711s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36712s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36713s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36714s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36715s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36716s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36717s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36718s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36719s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36720s,@WX_ALL@,$WX_ALL,;t t
36721s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36722s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36723s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36724s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36725s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36726s,@USE_GUI@,$USE_GUI,;t t
36727s,@AFMINSTALL@,$AFMINSTALL,;t t
36728s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36729s,@TOOLKIT@,$TOOLKIT,;t t
36730s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36731s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36732s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36733s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36734s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36735s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36736s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36737s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36738s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36739s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36740s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36741s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36742s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36743s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36744s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36745s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36746s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36747s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36748s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36749s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36750s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36751s,@GUIDIST@,$GUIDIST,;t t
36752s,@PORT_FILES@,$PORT_FILES,;t t
36753s,@DISTDIR@,$DISTDIR,;t t
36754s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36755s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36756s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36757s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36758s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36759s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36760s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36761s,@RESFLAGS@,$RESFLAGS,;t t
36762s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36763s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36764s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36765s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36766s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36767s,@MACRESCOMP@,$MACRESCOMP,;t t
36768s,@MACSETFILE@,$MACSETFILE,;t t
36769s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36770s,@GCC@,$GCC,;t t
36771s,@DLLTOOL@,$DLLTOOL,;t t
36772s,@AS@,$AS,;t t
e6cc62c6
VS
36773s,@LD@,$LD,;t t
36774s,@MAKEINFO@,$MAKEINFO,;t t
36775s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36776s,@LIBOBJS@,$LIBOBJS,;t t
36777s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36778CEOF
36779
e6cc62c6
VS
36780_ACEOF
36781
36782 cat >>$CONFIG_STATUS <<\_ACEOF
36783 # Split the substitutions into bite-sized pieces for seds with
36784 # small command number limits, like on Digital OSF/1 and HP-UX.
36785 ac_max_sed_lines=48
36786 ac_sed_frag=1 # Number of current file.
36787 ac_beg=1 # First line for current file.
36788 ac_end=$ac_max_sed_lines # Line after last line for current file.
36789 ac_more_lines=:
36790 ac_sed_cmds=
36791 while $ac_more_lines; do
36792 if test $ac_beg -gt 1; then
36793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36794 else
e6cc62c6
VS
36795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36796 fi
36797 if test ! -s $tmp/subs.frag; then
36798 ac_more_lines=false
36799 else
36800 # The purpose of the label and of the branching condition is to
36801 # speed up the sed processing (if there are no `@' at all, there
36802 # is no need to browse any of the substitutions).
36803 # These are the two extra sed commands mentioned above.
36804 (echo ':t
36805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36806 if test -z "$ac_sed_cmds"; then
36807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36808 else
36809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36810 fi
36811 ac_sed_frag=`expr $ac_sed_frag + 1`
36812 ac_beg=$ac_end
36813 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36814 fi
e6cc62c6
VS
36815 done
36816 if test -z "$ac_sed_cmds"; then
36817 ac_sed_cmds=cat
10f2d63a 36818 fi
e6cc62c6 36819fi # test -n "$CONFIG_FILES"
10f2d63a 36820
e6cc62c6
VS
36821_ACEOF
36822cat >>$CONFIG_STATUS <<\_ACEOF
36823for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36825 case $ac_file in
36826 - | *:- | *:-:* ) # input from stdin
36827 cat >$tmp/stdin
36828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36832 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36833 esac
247f5006 36834
e6cc62c6
VS
36835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36838 X"$ac_file" : 'X\(//\)[^/]' \| \
36839 X"$ac_file" : 'X\(//\)$' \| \
36840 X"$ac_file" : 'X\(/\)' \| \
36841 . : '\(.\)' 2>/dev/null ||
36842echo X"$ac_file" |
36843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36845 /^X\(\/\/\)$/{ s//\1/; q; }
36846 /^X\(\/\).*/{ s//\1/; q; }
36847 s/.*/./; q'`
36848 { if $as_mkdir_p; then
36849 mkdir -p "$ac_dir"
a0b9e27f 36850 else
e6cc62c6
VS
36851 as_dir="$ac_dir"
36852 as_dirs=
36853 while test ! -d "$as_dir"; do
36854 as_dirs="$as_dir $as_dirs"
36855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36856$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36857 X"$as_dir" : 'X\(//\)[^/]' \| \
36858 X"$as_dir" : 'X\(//\)$' \| \
36859 X"$as_dir" : 'X\(/\)' \| \
36860 . : '\(.\)' 2>/dev/null ||
36861echo X"$as_dir" |
36862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36864 /^X\(\/\/\)$/{ s//\1/; q; }
36865 /^X\(\/\).*/{ s//\1/; q; }
36866 s/.*/./; q'`
36867 done
36868 test ! -n "$as_dirs" || mkdir $as_dirs
36869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36870echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36871 { (exit 1); exit 1; }; }; }
36872
36873 ac_builddir=.
36874
36875if test "$ac_dir" != .; then
36876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36877 # A "../" for each directory in $ac_dir_suffix.
36878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36879else
36880 ac_dir_suffix= ac_top_builddir=
36881fi
247f5006 36882
e6cc62c6
VS
36883case $srcdir in
36884 .) # No --srcdir option. We are building in place.
36885 ac_srcdir=.
36886 if test -z "$ac_top_builddir"; then
36887 ac_top_srcdir=.
36888 else
36889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36890 fi ;;
36891 [\\/]* | ?:[\\/]* ) # Absolute path.
36892 ac_srcdir=$srcdir$ac_dir_suffix;
36893 ac_top_srcdir=$srcdir ;;
247f5006 36894 *) # Relative path.
e6cc62c6
VS
36895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36897esac
36898# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36899# absolute.
36900ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36901ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36902ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36903ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36904
247f5006 36905
e6cc62c6
VS
36906 case $INSTALL in
36907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36908 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36909 esac
247f5006 36910
e6cc62c6
VS
36911 if test x"$ac_file" != x-; then
36912 { echo "$as_me:$LINENO: creating $ac_file" >&5
36913echo "$as_me: creating $ac_file" >&6;}
36914 rm -f "$ac_file"
36915 fi
36916 # Let's still pretend it is `configure' which instantiates (i.e., don't
36917 # use $as_me), people would be surprised to read:
36918 # /* config.h. Generated by config.status. */
36919 if test x"$ac_file" = x-; then
36920 configure_input=
36921 else
36922 configure_input="$ac_file. "
36923 fi
36924 configure_input=$configure_input"Generated from `echo $ac_file_in |
36925 sed 's,.*/,,'` by configure."
36926
36927 # First look for the input files in the build tree, otherwise in the
36928 # src tree.
36929 ac_file_inputs=`IFS=:
36930 for f in $ac_file_in; do
36931 case $f in
36932 -) echo $tmp/stdin ;;
36933 [\\/$]*)
36934 # Absolute (can't be DOS-style, as IFS=:)
36935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36936echo "$as_me: error: cannot find input file: $f" >&2;}
36937 { (exit 1); exit 1; }; }
36938 echo $f;;
36939 *) # Relative
36940 if test -f "$f"; then
36941 # Build tree
36942 echo $f
36943 elif test -f "$srcdir/$f"; then
36944 # Source tree
36945 echo $srcdir/$f
36946 else
36947 # /dev/null tree
36948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36949echo "$as_me: error: cannot find input file: $f" >&2;}
36950 { (exit 1); exit 1; }; }
36951 fi;;
36952 esac
36953 done` || { (exit 1); exit 1; }
36954_ACEOF
36955cat >>$CONFIG_STATUS <<_ACEOF
36956 sed "$ac_vpsub
36957$extrasub
36958_ACEOF
36959cat >>$CONFIG_STATUS <<\_ACEOF
36960:t
36961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36962s,@configure_input@,$configure_input,;t t
36963s,@srcdir@,$ac_srcdir,;t t
36964s,@abs_srcdir@,$ac_abs_srcdir,;t t
36965s,@top_srcdir@,$ac_top_srcdir,;t t
36966s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36967s,@builddir@,$ac_builddir,;t t
36968s,@abs_builddir@,$ac_abs_builddir,;t t
36969s,@top_builddir@,$ac_top_builddir,;t t
36970s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36971s,@INSTALL@,$ac_INSTALL,;t t
36972" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36973 rm -f $tmp/stdin
36974 if test x"$ac_file" != x-; then
36975 mv $tmp/out $ac_file
36976 else
36977 cat $tmp/out
36978 rm -f $tmp/out
36979 fi
36980
36981done
36982_ACEOF
36983cat >>$CONFIG_STATUS <<\_ACEOF
36984
36985#
36986# CONFIG_HEADER section.
36987#
10f2d63a
VZ
36988
36989# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36990# NAME is the cpp macro being defined and VALUE is the value it is being given.
36991#
36992# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36993ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36994ac_dB='[ ].*$,\1#\2'
36995ac_dC=' '
36996ac_dD=',;t'
36997# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36998ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36999ac_uB='$,\1#\2define\3'
10f2d63a 37000ac_uC=' '
e6cc62c6
VS
37001ac_uD=',;t'
37002
37003for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 37004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37005 case $ac_file in
37006 - | *:- | *:-:* ) # input from stdin
37007 cat >$tmp/stdin
37008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37012 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
37013 esac
37014
e6cc62c6
VS
37015 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37016echo "$as_me: creating $ac_file" >&6;}
37017
37018 # First look for the input files in the build tree, otherwise in the
37019 # src tree.
37020 ac_file_inputs=`IFS=:
37021 for f in $ac_file_in; do
37022 case $f in
37023 -) echo $tmp/stdin ;;
37024 [\\/$]*)
37025 # Absolute (can't be DOS-style, as IFS=:)
37026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37027echo "$as_me: error: cannot find input file: $f" >&2;}
37028 { (exit 1); exit 1; }; }
37029 echo $f;;
37030 *) # Relative
37031 if test -f "$f"; then
37032 # Build tree
37033 echo $f
37034 elif test -f "$srcdir/$f"; then
37035 # Source tree
37036 echo $srcdir/$f
37037 else
37038 # /dev/null tree
37039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37040echo "$as_me: error: cannot find input file: $f" >&2;}
37041 { (exit 1); exit 1; }; }
37042 fi;;
37043 esac
37044 done` || { (exit 1); exit 1; }
37045 # Remove the trailing spaces.
37046 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37047
37048_ACEOF
37049
37050# Transform confdefs.h into two sed scripts, `conftest.defines' and
37051# `conftest.undefs', that substitutes the proper values into
37052# config.h.in to produce config.h. The first handles `#define'
37053# templates, and the second `#undef' templates.
37054# And first: Protect against being on the right side of a sed subst in
37055# config.status. Protect against being in an unquoted here document
37056# in config.status.
37057rm -f conftest.defines conftest.undefs
37058# Using a here document instead of a string reduces the quoting nightmare.
37059# Putting comments in sed scripts is not portable.
37060#
37061# `end' is used to avoid that the second main sed command (meant for
37062# 0-ary CPP macros) applies to n-ary macro definitions.
37063# See the Autoconf documentation for `clear'.
37064cat >confdef2sed.sed <<\_ACEOF
37065s/[\\&,]/\\&/g
37066s,[\\$`],\\&,g
37067t clear
37068: clear
37069s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37070t end
37071s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37072: end
37073_ACEOF
37074# If some macros were called several times there might be several times
37075# the same #defines, which is useless. Nevertheless, we may not want to
37076# sort them, since we want the *last* AC-DEFINE to be honored.
37077uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37078sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37079rm -f confdef2sed.sed
10f2d63a
VZ
37080
37081# This sed command replaces #undef with comments. This is necessary, for
37082# example, in the case of _POSIX_SOURCE, which is predefined and required
37083# on some systems where configure will not decide to define it.
e6cc62c6
VS
37084cat >>conftest.undefs <<\_ACEOF
37085s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37086_ACEOF
37087
37088# Break up conftest.defines because some shells have a limit on the size
37089# of here documents, and old seds have small limits too (100 cmds).
37090echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37091echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37092echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37093echo ' :' >>$CONFIG_STATUS
37094rm -f conftest.tail
37095while grep . conftest.defines >/dev/null
37096do
37097 # Write a limited-size here document to $tmp/defines.sed.
37098 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37099 # Speed up: don't consider the non `#define' lines.
37100 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37101 # Work around the forget-to-reset-the-flag bug.
37102 echo 't clr' >>$CONFIG_STATUS
37103 echo ': clr' >>$CONFIG_STATUS
37104 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37105 echo 'CEOF
37106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37107 rm -f $tmp/in
37108 mv $tmp/out $tmp/in
37109' >>$CONFIG_STATUS
37110 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37111 rm -f conftest.defines
37112 mv conftest.tail conftest.defines
37113done
37114rm -f conftest.defines
37115echo ' fi # grep' >>$CONFIG_STATUS
37116echo >>$CONFIG_STATUS
10f2d63a 37117
e6cc62c6
VS
37118# Break up conftest.undefs because some shells have a limit on the size
37119# of here documents, and old seds have small limits too (100 cmds).
37120echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 37121rm -f conftest.tail
e6cc62c6 37122while grep . conftest.undefs >/dev/null
10f2d63a 37123do
e6cc62c6
VS
37124 # Write a limited-size here document to $tmp/undefs.sed.
37125 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37126 # Speed up: don't consider the non `#undef'
37127 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37128 # Work around the forget-to-reset-the-flag bug.
37129 echo 't clr' >>$CONFIG_STATUS
37130 echo ': clr' >>$CONFIG_STATUS
37131 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 37132 echo 'CEOF
e6cc62c6
VS
37133 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37134 rm -f $tmp/in
37135 mv $tmp/out $tmp/in
37136' >>$CONFIG_STATUS
37137 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37138 rm -f conftest.undefs
37139 mv conftest.tail conftest.undefs
10f2d63a 37140done
e6cc62c6
VS
37141rm -f conftest.undefs
37142
37143cat >>$CONFIG_STATUS <<\_ACEOF
37144 # Let's still pretend it is `configure' which instantiates (i.e., don't
37145 # use $as_me), people would be surprised to read:
37146 # /* config.h. Generated by config.status. */
37147 if test x"$ac_file" = x-; then
37148 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37149 else
e6cc62c6 37150 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37151 fi
e6cc62c6
VS
37152 cat $tmp/in >>$tmp/config.h
37153 rm -f $tmp/in
37154 if test x"$ac_file" != x-; then
37155 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37157echo "$as_me: $ac_file is unchanged" >&6;}
37158 else
37159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37161 X"$ac_file" : 'X\(//\)[^/]' \| \
37162 X"$ac_file" : 'X\(//\)$' \| \
37163 X"$ac_file" : 'X\(/\)' \| \
37164 . : '\(.\)' 2>/dev/null ||
37165echo X"$ac_file" |
37166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37168 /^X\(\/\/\)$/{ s//\1/; q; }
37169 /^X\(\/\).*/{ s//\1/; q; }
37170 s/.*/./; q'`
37171 { if $as_mkdir_p; then
37172 mkdir -p "$ac_dir"
37173 else
37174 as_dir="$ac_dir"
37175 as_dirs=
37176 while test ! -d "$as_dir"; do
37177 as_dirs="$as_dir $as_dirs"
37178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37180 X"$as_dir" : 'X\(//\)[^/]' \| \
37181 X"$as_dir" : 'X\(//\)$' \| \
37182 X"$as_dir" : 'X\(/\)' \| \
37183 . : '\(.\)' 2>/dev/null ||
37184echo X"$as_dir" |
37185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37187 /^X\(\/\/\)$/{ s//\1/; q; }
37188 /^X\(\/\).*/{ s//\1/; q; }
37189 s/.*/./; q'`
37190 done
37191 test ! -n "$as_dirs" || mkdir $as_dirs
37192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37193echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37194 { (exit 1); exit 1; }; }; }
a0b9e27f 37195
e6cc62c6
VS
37196 rm -f $ac_file
37197 mv $tmp/config.h $ac_file
37198 fi
37199 else
37200 cat $tmp/config.h
37201 rm -f $tmp/config.h
37202 fi
37203done
37204_ACEOF
37205cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37206
e6cc62c6
VS
37207#
37208# CONFIG_COMMANDS section.
37209#
37210for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37211 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37212 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37213 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37214$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37215 X"$ac_dest" : 'X\(//\)[^/]' \| \
37216 X"$ac_dest" : 'X\(//\)$' \| \
37217 X"$ac_dest" : 'X\(/\)' \| \
37218 . : '\(.\)' 2>/dev/null ||
37219echo X"$ac_dest" |
37220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37222 /^X\(\/\/\)$/{ s//\1/; q; }
37223 /^X\(\/\).*/{ s//\1/; q; }
37224 s/.*/./; q'`
37225 ac_builddir=.
37226
37227if test "$ac_dir" != .; then
37228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37229 # A "../" for each directory in $ac_dir_suffix.
37230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37231else
37232 ac_dir_suffix= ac_top_builddir=
37233fi
37234
37235case $srcdir in
37236 .) # No --srcdir option. We are building in place.
37237 ac_srcdir=.
37238 if test -z "$ac_top_builddir"; then
37239 ac_top_srcdir=.
37240 else
37241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37242 fi ;;
37243 [\\/]* | ?:[\\/]* ) # Absolute path.
37244 ac_srcdir=$srcdir$ac_dir_suffix;
37245 ac_top_srcdir=$srcdir ;;
37246 *) # Relative path.
37247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37249esac
37250# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37251# absolute.
37252ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37253ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37254ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37255ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37256
37257
37258 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37259echo "$as_me: executing $ac_dest commands" >&6;}
37260 case $ac_dest in
37261 default )
652d930d 37262 if test ! -h wx-config; then
991a5759 37263 chmod +x wx-config
3a922bb4
RL
37264 mv wx-config wx${TOOLCHAIN_NAME}-config
37265 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37266 fi
665bbe97 37267
00cf1208
RR
37268 if test ! -d lib; then
37269 mkdir lib
37270 fi
37271 if test ! -d lib/wx; then
37272 mkdir lib/wx
37273 fi
37274 if test ! -d lib/wx/include; then
37275 mkdir lib/wx/include
37276 fi
3a922bb4
RL
37277 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37278 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37279 fi
3a922bb4
RL
37280 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37281 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37282 fi
37283 if test -f setup.h; then
3a922bb4 37284 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37285 fi
e6cc62c6
VS
37286 ;;
37287 esac
37288done
37289_ACEOF
2224580a 37290
e6cc62c6 37291cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37292
e6cc62c6
VS
37293{ (exit 0); exit 0; }
37294_ACEOF
37295chmod +x $CONFIG_STATUS
37296ac_clean_files=$ac_clean_files_save
37297
37298
37299# configure is writing to config.log, and then calls config.status.
37300# config.status does its own redirection, appending to config.log.
37301# Unfortunately, on DOS this fails, as config.log is still kept open
37302# by configure, so config.status won't be able to write to it; its
37303# output is simply discarded. So we exec the FD to /dev/null,
37304# effectively closing config.log, so it can be properly (re)opened and
37305# appended to by config.status. When coming back to configure, we
37306# need to make the FD available again.
37307if test "$no_create" != yes; then
37308 ac_cs_success=:
37309 ac_config_status_args=
37310 test "$silent" = yes &&
37311 ac_config_status_args="$ac_config_status_args --quiet"
37312 exec 5>/dev/null
37313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37314 exec 5>>config.log
37315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37316 # would make configure fail if this is the last instruction.
37317 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37318fi
37319
672abd7a
VS
37320#
37321# CONFIG_SUBDIRS section.
37322#
37323if test "$no_recursion" != yes; then
37324
37325 # Remove --cache-file and --srcdir arguments so they do not pile up.
37326 ac_sub_configure_args=
37327 ac_prev=
37328 for ac_arg in $ac_configure_args; do
37329 if test -n "$ac_prev"; then
37330 ac_prev=
37331 continue
37332 fi
37333 case $ac_arg in
37334 -cache-file | --cache-file | --cache-fil | --cache-fi \
37335 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37336 ac_prev=cache_file ;;
37337 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37338 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37339 | --c=*)
37340 ;;
37341 --config-cache | -C)
37342 ;;
37343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37344 ac_prev=srcdir ;;
37345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37346 ;;
37347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37348 ac_prev=prefix ;;
37349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37350 ;;
37351 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37352 esac
37353 done
37354
37355 # Always prepend --prefix to ensure using the same prefix
37356 # in subdir configurations.
37357 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37358
37359 ac_popdir=`pwd`
37360 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37361
37362 # Do not complain, so a configure script can configure whichever
37363 # parts of a large source tree are present.
37364 test -d $srcdir/$ac_dir || continue
37365
37366 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37367echo "$as_me: configuring in $ac_dir" >&6;}
37368 { if $as_mkdir_p; then
37369 mkdir -p "$ac_dir"
37370 else
37371 as_dir="$ac_dir"
37372 as_dirs=
37373 while test ! -d "$as_dir"; do
37374 as_dirs="$as_dir $as_dirs"
37375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37377 X"$as_dir" : 'X\(//\)[^/]' \| \
37378 X"$as_dir" : 'X\(//\)$' \| \
37379 X"$as_dir" : 'X\(/\)' \| \
37380 . : '\(.\)' 2>/dev/null ||
37381echo X"$as_dir" |
37382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37384 /^X\(\/\/\)$/{ s//\1/; q; }
37385 /^X\(\/\).*/{ s//\1/; q; }
37386 s/.*/./; q'`
37387 done
37388 test ! -n "$as_dirs" || mkdir $as_dirs
37389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37390echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37391 { (exit 1); exit 1; }; }; }
37392
37393 ac_builddir=.
37394
37395if test "$ac_dir" != .; then
37396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37397 # A "../" for each directory in $ac_dir_suffix.
37398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37399else
37400 ac_dir_suffix= ac_top_builddir=
37401fi
37402
37403case $srcdir in
37404 .) # No --srcdir option. We are building in place.
37405 ac_srcdir=.
37406 if test -z "$ac_top_builddir"; then
37407 ac_top_srcdir=.
37408 else
37409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37410 fi ;;
37411 [\\/]* | ?:[\\/]* ) # Absolute path.
37412 ac_srcdir=$srcdir$ac_dir_suffix;
37413 ac_top_srcdir=$srcdir ;;
37414 *) # Relative path.
37415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37417esac
37418# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37419# absolute.
37420ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37421ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37422ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37423ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37424
37425
37426 cd $ac_dir
37427
37428 # Check for guested configure; otherwise get Cygnus style configure.
37429 if test -f $ac_srcdir/configure.gnu; then
37430 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37431 elif test -f $ac_srcdir/configure; then
37432 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37433 elif test -f $ac_srcdir/configure.in; then
37434 ac_sub_configure=$ac_configure
37435 else
37436 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37437echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37438 ac_sub_configure=
37439 fi
37440
37441 # The recursion is here.
37442 if test -n "$ac_sub_configure"; then
37443 # Make the cache file name correct relative to the subdirectory.
37444 case $cache_file in
37445 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37446 *) # Relative path.
37447 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37448 esac
37449
37450 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37451echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37452 # The eval makes quoting arguments work.
37453 eval $ac_sub_configure $ac_sub_configure_args \
37454 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37455 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37456echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37457 { (exit 1); exit 1; }; }
37458 fi
37459
37460 cd $ac_popdir
37461 done
37462fi
37463
8284b0c5 37464
2b5f62a0
VZ
37465echo
37466echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37467echo ""
37468echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37469echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37470
37471echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37472echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37473echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37474
0c98a14e 37475echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37476echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37477echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37478
2b5f62a0
VZ
37479echo " Which libraries should wxWindows use?"
37480echo " jpeg ${wxUSE_LIBJPEG-none}"
37481echo " png ${wxUSE_LIBPNG-none}"
37482echo " regex ${wxUSE_REGEX}"
37483echo " tiff ${wxUSE_LIBTIFF-none}"
37484echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37485echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37486echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37487
37488echo ""
37489