]> git.saurik.com Git - wxWidgets.git/blame - configure
builtin iODBC build fixes
[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.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
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'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
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"
0bdb08e7 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 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_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_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 NM 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
796\`configure' configures wxWindows 2.5.0 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
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
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
898 --enable-ole use OLE classes
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
901 --enable-cmdline use wxCmdLineParser class
902 --enable-datetime use wxDateTime class
903 --enable-stopwatch use wxStopWatch class
904 --enable-dialupman use dialup network classes
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-timer use wxTimer class
907 --enable-wave use wxWave class
908 --enable-fraction use wxFraction class
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-longlong use wxLongLong class
912 --enable-geometry use geometry class
913 --enable-log use logging system
914 --enable-streams use wxStream etc classes
915 --enable-file use wxFile classes
916 --enable-ffile use wxFFile classes
917 --enable-textbuf use wxTextBuffer class
918 --enable-textfile use wxTextFile class
919 --enable-fontmap use font encodings conversion classes
920 --enable-unicode compile wxString with Unicode support
921 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
922 --enable-wxprintfv use wxWindows implementation of vprintf()
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-filesystem use virtual file systems classes
925 --enable-fs_inet use virtual HTTP/FTP filesystems
926 --enable-fs_zip use virtual ZIP filesystems
927 --enable-zipstream use wxZipInputStream
928 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
929 --enable-snglinst use wxSingleInstanceChecker class
930 --enable-mimetype use wxMimeTypesManager
931 --enable-sysoptions use wxSystemOptions
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
0e012a93 969 --enable-listbook use wxListbook class
e6cc62c6
VS
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1027 --enable-official_build official build of wxWindows (win32 DLL only)
1028 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1029 --disable-largefile omit support for large files
1030 --disable-gtktest do not try to compile and run a test GTK+ program
1031 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1032 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1033
1034Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gtk use GTK+
1038 --with-motif use Motif/Lesstif
1039 --with-mac use Mac OS X
1040 --with-cocoa use Cocoa
1041 --with-wine use Wine
1042 --with-msw use MS-Windows
1043 --with-pm use OS/2 Presentation Manager
1044 --with-mgl use SciTech MGL
1045 --with-microwin use MicroWindows
1046 --with-x11 use X11
1047 --with-libpng use libpng (PNG image format)
1048 --with-libjpeg use libjpeg (JPEG file format)
1049 --with-libtiff use libtiff (TIFF file format)
1050 --with-opengl use OpenGL (or Mesa)
1051 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1052 --with-regex enable support for wxRegEx class
1053 --with-zlib use zlib for LZW compression
1054 --with-odbc use the IODBC and wxODBC classes
672abd7a 1055 --with-expat enable XML support using expat parser
e6cc62c6
VS
1056 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1057 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1058 --with-x use the X Window System
1059 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1060
1061Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1068 CPP C preprocessor
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <wx-dev@lists.wxwindows.org>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
1110# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1111# absolute.
1112ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1113ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1114ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1115ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
1132 cd $ac_popdir
1133 done
1134fi
8284b0c5 1135
e6cc62c6
VS
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
1139wxWindows configure 2.5.0
1140generated by GNU Autoconf 2.57
10f2d63a 1141
e6cc62c6
VS
1142Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1143Free Software Foundation, Inc.
1144This configure script is free software; the Free Software Foundation
1145gives unlimited permission to copy, distribute and modify it.
1146_ACEOF
1147 exit 0
7c66a493 1148fi
e6cc62c6
VS
1149exec 5>config.log
1150cat >&5 <<_ACEOF
1151This file contains any messages produced by compilers while
1152running configure, to aid debugging if configure makes a mistake.
1153
1154It was created by wxWindows $as_me 2.5.0, which was
1155generated by GNU Autoconf 2.57. Invocation command line was
1156
1157 $ $0 $@
1158
1159_ACEOF
1160{
1161cat <<_ASUNAME
1162## --------- ##
1163## Platform. ##
1164## --------- ##
1165
1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1174
1175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182
1183_ASUNAME
1184
1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186for as_dir in $PATH
1187do
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1191done
1192
1193} >&5
1194
1195cat >&5 <<_ACEOF
1196
1197
1198## ----------- ##
1199## Core tests. ##
1200## ----------- ##
1201
1202_ACEOF
1203
1204
1205# Keep a trace of the command line.
1206# Strip out --no-create and --no-recursion so they do not pile up.
1207# Strip out --silent because we don't want to record it for future runs.
1208# Also quote any args containing shell meta-characters.
1209# Make two passes to allow for proper duplicate-argument suppression.
1210ac_configure_args=
1211ac_configure_args0=
1212ac_configure_args1=
1213ac_sep=
1214ac_must_keep_next=false
1215for ac_pass in 1 2
1216do
1217 for ac_arg
1218 do
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229 2)
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1233 else
1234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1242 ;;
1243 -* ) ac_must_keep_next=true ;;
1244 esac
1245 fi
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
1249 ;;
1250 esac
1251 done
1252done
1253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256# When interrupted or exit'd, cleanup temporary files, and complete
1257# config.log. We remove comments because anyway the quotes in there
1258# would cause problems or look ugly.
1259# WARNING: Be sure not to use single quotes in there, as some shells,
1260# such as our DU 5.0 friend, will then `close' the trap.
1261trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1263 {
1264 echo
1265
1266 cat <<\_ASBOX
1267## ---------------- ##
1268## Cache variables. ##
1269## ---------------- ##
1270_ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
1273{
1274 (set) 2>&1 |
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
1277 sed -n \
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 ;;
1281 *)
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284 ;;
1285 esac;
1286}
1287 echo
1288
1289 cat <<\_ASBOX
1290## ----------------- ##
1291## Output variables. ##
1292## ----------------- ##
1293_ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1296 do
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1299 done | sort
1300 echo
1301
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
1304## ------------- ##
1305## Output files. ##
1306## ------------- ##
1307_ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1310 do
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1315 fi
1316
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319## ----------- ##
1320## confdefs.h. ##
1321## ----------- ##
1322_ASBOX
1323 echo
1324 sed "/^$/d" confdefs.h | sort
1325 echo
1326 fi
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1330 } >&5
1331 rm -f core core.* *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 exit $exit_status
1334 ' 0
1335for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337done
1338ac_signal=0
1339
1340# confdefs.h avoids OS command line length limits that DEFS can exceed.
1341rm -rf conftest* confdefs.h
1342# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343echo >confdefs.h
1344
1345# Predefined preprocessor variables.
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_NAME "$PACKAGE_NAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_VERSION "$PACKAGE_VERSION"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_STRING "$PACKAGE_STRING"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369_ACEOF
1370
1371
1372# Let the site file select an alternate cache file if it wants to.
1373# Prefer explicitly selected file to automatically selected ones.
1374if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379 fi
1380fi
1381for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1386 . "$ac_site_file"
1387 fi
1388done
1389
1390if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395echo "$as_me: loading cache $cache_file" >&6;}
1396 case $cache_file in
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1399 esac
1400 fi
1401else
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403echo "$as_me: creating cache $cache_file" >&6;}
1404 >$cache_file
1405fi
1406
1407# Check that the precious variables saved in the cache have kept the same
1408# value.
1409ac_cache_corrupted=false
1410for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1417 set,)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,set)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,);;
1426 *)
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1456fi
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
698dcdb6 1480
8284b0c5 1481
7c66a493 1482
a0b9e27f
MB
1483
1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
e6cc62c6
VS
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
7c66a493
VZ
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
8284b0c5
MB
1600
1601
a0b9e27f 1602
10f2d63a 1603WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1604WX_MINOR_VERSION_NUMBER=5
1605WX_RELEASE_NUMBER=0
10f2d63a 1606
10f2d63a 1607WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1608WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1609
978f1259
RL
1610WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1611
34bed6d9 1612WX_CURRENT=0
6426998c
RL
1613WX_REVISION=0
1614WX_AGE=0
1615
8284b0c5
MB
1616
1617
10f2d63a
VZ
1618USE_UNIX=1
1619USE_WIN32=0
f9bc1684 1620USE_DOS=0
b12915c1 1621USE_BEOS=0
1216f52d 1622USE_MAC=0
b12915c1 1623
10f2d63a 1624USE_AIX=
fe0895cf
VS
1625USE_BSD= USE_DARWIN= USE_FREEBSD=
1626USE_GNU= USE_HPUX=
89e3b3e4 1627USE_LINUX=
f6bcfd97 1628USE_NETBSD=
89e3b3e4 1629USE_OPENBSD=
fe0895cf
VS
1630USE_OSF= USE_SGI=
1631USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1632USE_ULTRIX=
89e3b3e4
VZ
1633USE_UNIXWARE=
1634
1635USE_ALPHA=
10f2d63a 1636
ab9b9eab
VZ
1637NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1638
ac0c4cc3 1639ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1640
ac0c4cc3 1641DEFAULT_wxUSE_COCOA=0
10f2d63a 1642DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1643DEFAULT_wxUSE_MAC=0
1644DEFAULT_wxUSE_MGL=0
1725144d 1645DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1646DEFAULT_wxUSE_MOTIF=0
1647DEFAULT_wxUSE_MSW=0
e07802fc 1648DEFAULT_wxUSE_PM=0
f79bd02d 1649DEFAULT_wxUSE_X11=0
10f2d63a 1650
ac0c4cc3 1651DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1652DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1653DEFAULT_DEFAULT_wxUSE_MAC=0
1654DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1655DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1656DEFAULT_DEFAULT_wxUSE_MOTIF=0
1657DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1658DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1659DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1660
d6a55c4b 1661PROGRAM_EXT=
3a922bb4 1662SO_SUFFIX=so
fe0895cf 1663SAMPLES_RPATH_FLAG=
0f1bc9c2 1664SAMPLES_RPATH_POSTLINK=
d6a55c4b 1665
10f2d63a
VZ
1666case "${host}" in
1667 *-hp-hpux* )
1668 USE_HPUX=1
1669 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1670 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1671 SO_SUFFIX=sl
e6cc62c6 1672 cat >>confdefs.h <<\_ACEOF
10f2d63a 1673#define __HPUX__ 1
e6cc62c6 1674_ACEOF
10f2d63a
VZ
1675
1676 ;;
1677 *-*-linux* )
1678 USE_LINUX=1
e6cc62c6 1679 cat >>confdefs.h <<\_ACEOF
10f2d63a 1680#define __LINUX__ 1
e6cc62c6 1681_ACEOF
10f2d63a
VZ
1682
1683 TMP=`uname -m`
1684 if test "x$TMP" = "xalpha"; then
1685 USE_ALPHA=1
e6cc62c6 1686 cat >>confdefs.h <<\_ACEOF
10f2d63a 1687#define __ALPHA__ 1
e6cc62c6 1688_ACEOF
fe0895cf
VS
1689
1690 fi
1691 DEFAULT_DEFAULT_wxUSE_GTK=1
1692 ;;
1693 *-*-gnu* )
1694 USE_GNU=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
fe0895cf 1696#define __GNU__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 TMP=`uname -m`
1700 if test "x$TMP" = "xalpha"; then
1701 USE_ALPHA=1
e6cc62c6 1702 cat >>confdefs.h <<\_ACEOF
fe0895cf 1703#define __ALPHA__ 1
e6cc62c6 1704_ACEOF
10f2d63a
VZ
1705
1706 fi
1707 DEFAULT_DEFAULT_wxUSE_GTK=1
1708 ;;
1709 *-*-irix5* | *-*-irix6* )
1710 USE_SGI=1
1711 USE_SVR4=1
e6cc62c6 1712 cat >>confdefs.h <<\_ACEOF
10f2d63a 1713#define __SGI__ 1
e6cc62c6 1714_ACEOF
10f2d63a 1715
e6cc62c6 1716 cat >>confdefs.h <<\_ACEOF
10f2d63a 1717#define __SVR4__ 1
e6cc62c6 1718_ACEOF
10f2d63a
VZ
1719
1720 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721 ;;
1722 *-*-solaris2* )
1723 USE_SUN=1
1724 USE_SOLARIS=1
1725 USE_SVR4=1
e6cc62c6 1726 cat >>confdefs.h <<\_ACEOF
10f2d63a 1727#define __SUN__ 1
e6cc62c6 1728_ACEOF
10f2d63a 1729
e6cc62c6 1730 cat >>confdefs.h <<\_ACEOF
10f2d63a 1731#define __SOLARIS__ 1
e6cc62c6 1732_ACEOF
10f2d63a 1733
e6cc62c6 1734 cat >>confdefs.h <<\_ACEOF
10f2d63a 1735#define __SVR4__ 1
e6cc62c6 1736_ACEOF
10f2d63a
VZ
1737
1738 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1739 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1740 ;;
1741 *-*-sunos4* )
1742 USE_SUN=1
1743 USE_SUNOS=1
1744 USE_BSD=1
e6cc62c6 1745 cat >>confdefs.h <<\_ACEOF
10f2d63a 1746#define __SUN__ 1
e6cc62c6 1747_ACEOF
10f2d63a 1748
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __SUNOS__ 1
e6cc62c6 1751_ACEOF
10f2d63a 1752
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __BSD__ 1
e6cc62c6 1755_ACEOF
10f2d63a
VZ
1756
1757 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758 ;;
f6bcfd97 1759 *-*-freebsd*)
10f2d63a
VZ
1760 USE_BSD=1
1761 USE_FREEBSD=1
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __FREEBSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a 1765
e6cc62c6 1766 cat >>confdefs.h <<\_ACEOF
10f2d63a 1767#define __BSD__ 1
e6cc62c6 1768_ACEOF
95c8801c
VS
1769
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-openbsd*)
1773 USE_BSD=1
1774 USE_OPENBSD=1
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1776#define __OPENBSD__ 1
e6cc62c6 1777_ACEOF
95c8801c 1778
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1780#define __BSD__ 1
e6cc62c6 1781_ACEOF
f6bcfd97
BP
1782
1783 DEFAULT_DEFAULT_wxUSE_GTK=1
1784 ;;
1785 *-*-netbsd*)
1786 USE_BSD=1
1787 USE_NETBSD=1
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __NETBSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97 1791
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1793#define __BSD__ 1
e6cc62c6 1794_ACEOF
10f2d63a
VZ
1795
1796 DEFAULT_DEFAULT_wxUSE_GTK=1
1797 ;;
1798 *-*-osf* )
1799 USE_ALPHA=1
1800 USE_OSF=1
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
10f2d63a 1802#define __ALPHA__ 1
e6cc62c6 1803_ACEOF
10f2d63a 1804
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __OSF__ 1
e6cc62c6 1807_ACEOF
10f2d63a
VZ
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1810 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1811 ;;
1812 *-*-dgux5* )
1813 USE_ALPHA=1
1814 USE_SVR4=1
e6cc62c6 1815 cat >>confdefs.h <<\_ACEOF
10f2d63a 1816#define __ALPHA__ 1
e6cc62c6 1817_ACEOF
10f2d63a 1818
e6cc62c6 1819 cat >>confdefs.h <<\_ACEOF
10f2d63a 1820#define __SVR4__ 1
e6cc62c6 1821_ACEOF
10f2d63a
VZ
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-sysv5* )
1826 USE_SYSV=1
1827 USE_SVR4=1
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SYSV__ 1
e6cc62c6 1830_ACEOF
10f2d63a 1831
e6cc62c6 1832 cat >>confdefs.h <<\_ACEOF
10f2d63a 1833#define __SVR4__ 1
e6cc62c6 1834_ACEOF
10f2d63a
VZ
1835
1836 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837 ;;
1838 *-*-aix* )
1839 USE_AIX=1
1840 USE_SYSV=1
1841 USE_SVR4=1
2b5f62a0 1842 SO_SUFFIX=a
e6cc62c6 1843 cat >>confdefs.h <<\_ACEOF
10f2d63a 1844#define __AIX__ 1
e6cc62c6 1845_ACEOF
10f2d63a 1846
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __SYSV__ 1
e6cc62c6 1849_ACEOF
10f2d63a 1850
e6cc62c6 1851 cat >>confdefs.h <<\_ACEOF
10f2d63a 1852#define __SVR4__ 1
e6cc62c6 1853_ACEOF
10f2d63a
VZ
1854
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 ;;
1857
89e3b3e4
VZ
1858 *-*-*UnixWare*)
1859 USE_SYSV=1
1860 USE_SVR4=1
1861 USE_UNIXWARE=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1863#define __UNIXWARE__ 1
e6cc62c6 1864_ACEOF
89e3b3e4
VZ
1865
1866 ;;
1867
1c8183e2 1868 *-*-cygwin* | *-*-mingw32* )
17234b26 1869 SO_SUFFIX=dll
cf27ef00 1870 PROGRAM_EXT=".exe"
7b7a7637 1871 RESCOMP=windres
10f2d63a
VZ
1872 DEFAULT_DEFAULT_wxUSE_MSW=1
1873 ;;
1874
f9bc1684
VS
1875 *-pc-msdosdjgpp )
1876 USE_UNIX=0
1877 USE_DOS=1
e6cc62c6 1878 cat >>confdefs.h <<\_ACEOF
f9bc1684 1879#define __DOS__ 1
e6cc62c6 1880_ACEOF
f9bc1684
VS
1881
1882 PROGRAM_EXT=".exe"
1883 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1884 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1885 ;;
1886
6fa882bd 1887 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1888 cat >>confdefs.h <<\_ACEOF
10f2d63a 1889#define __EMX__ 1
e6cc62c6 1890_ACEOF
10f2d63a 1891
cf27ef00 1892 PROGRAM_EXT=".exe"
e07802fc 1893 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5
VS
1894 CXX=gcc
1895 LIBS="$LIBS -lstdcpp"
d5fc095c
VS
1896 ac_executable_extensions=".exe"
1897 export ac_executable_extensions
1898 ac_save_IFS="$IFS"
1899 IFS="\\"
1900 ac_TEMP_PATH=
1901 for ac_dir in $PATH; do
1902 IFS=$ac_save_IFS
1903 if test -z "$ac_TEMP_PATH"; then
1904 ac_TEMP_PATH="$ac_dir"
1905 else
1906 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1907 fi
1908 done
1909 export PATH="$ac_TEMP_PATH"
1910 unset ac_TEMP_PATH
10f2d63a
VZ
1911 ;;
1912
d08b457b
GD
1913 powerpc-*-darwin* )
1914 USE_BSD=1
f11bdd03 1915 USE_DARWIN=1
3a922bb4 1916 SO_SUFFIX=dylib
e6cc62c6 1917 cat >>confdefs.h <<\_ACEOF
f11bdd03 1918#define __BSD__ 1
e6cc62c6 1919_ACEOF
b4085ce6 1920
e6cc62c6 1921 cat >>confdefs.h <<\_ACEOF
f11bdd03 1922#define __DARWIN__ 1
e6cc62c6 1923_ACEOF
d08b457b 1924
e6cc62c6 1925 cat >>confdefs.h <<\_ACEOF
d08b457b 1926#define __POWERPC__ 1
e6cc62c6 1927_ACEOF
82d43113 1928
e6cc62c6 1929 cat >>confdefs.h <<\_ACEOF
82d43113 1930#define TARGET_CARBON 1
e6cc62c6 1931_ACEOF
b4085ce6
GD
1932
1933 DEFAULT_DEFAULT_wxUSE_MAC=1
1934 ;;
1935
b12915c1
VZ
1936 *-*-beos* )
1937 USE_BEOS=1
e6cc62c6 1938 cat >>confdefs.h <<\_ACEOF
b12915c1 1939#define __BEOS__ 1
e6cc62c6 1940_ACEOF
b12915c1
VZ
1941
1942 ;;
1943
10f2d63a 1944 *)
e6cc62c6
VS
1945 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1946echo "$as_me: error: unknown system type ${host}." >&2;}
1947 { (exit 1); exit 1; }; }
10f2d63a
VZ
1948esac
1949
8284b0c5
MB
1950
1951
1952
1953 wx_arg_cache_file="configarg.cache"
1954 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1955 rm -f ${wx_arg_cache_file}.tmp
1956 touch ${wx_arg_cache_file}.tmp
1957 touch ${wx_arg_cache_file}
e6cc62c6 1958
10f2d63a
VZ
1959
1960DEBUG_CONFIGURE=0
1961if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1962 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1963 DEFAULT_wxUSE_STL=no
1e6feb95 1964
d8356fa3
VZ
1965 DEFAULT_wxUSE_NANOX=no
1966
10f2d63a
VZ
1967 DEFAULT_wxUSE_THREADS=yes
1968
1969 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1970 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1971 DEFAULT_wxUSE_PROFILE=no
1972 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1973 DEFAULT_wxUSE_NO_RTTI=no
1974 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1975 DEFAULT_wxUSE_PERMISSIVE=no
1976 DEFAULT_wxUSE_DEBUG_FLAG=yes
1977 DEFAULT_wxUSE_DEBUG_INFO=yes
1978 DEFAULT_wxUSE_DEBUG_GDB=yes
1979 DEFAULT_wxUSE_MEM_TRACING=no
1980 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1981 DEFAULT_wxUSE_DMALLOC=no
1982 DEFAULT_wxUSE_APPLE_IEEE=no
1983
1984 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1985 DEFAULT_wxUSE_LOGWINDOW=no
1986 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1987 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1988
1989 DEFAULT_wxUSE_GUI=yes
1e6feb95 1990 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1991
3e44f09d 1992 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1993 DEFAULT_wxUSE_XML=no
1994 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1995 DEFAULT_wxUSE_ZLIB=no
1996 DEFAULT_wxUSE_LIBPNG=no
1997 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1998 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1999 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2000 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2001
eb4efbdc 2002 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2003 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2004 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2005 DEFAULT_wxUSE_CMDLINE_PARSER=no
2006 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2007 DEFAULT_wxUSE_TIMER=no
2008 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2009 DEFAULT_wxUSE_FILE=no
1e6feb95 2010 DEFAULT_wxUSE_FFILE=no
a3a584a7 2011 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2012 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2013 DEFAULT_wxUSE_WAVE=no
2014 DEFAULT_wxUSE_INTL=no
2015 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2016 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2017 DEFAULT_wxUSE_STREAMS=no
2018 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2019 DEFAULT_wxUSE_OLE=no
2020 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2021 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2022 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2023 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2024 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2025 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2026 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2027
2028 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2029 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2030 DEFAULT_wxUSE_POSTSCRIPT=no
2031
10f2d63a
VZ
2032 DEFAULT_wxUSE_CLIPBOARD=no
2033 DEFAULT_wxUSE_TOOLTIPS=no
2034 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2035 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2036 DEFAULT_wxUSE_SPLINES=no
2037
2038 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2039 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2040 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2041
10f2d63a
VZ
2042 DEFAULT_wxUSE_RESOURCES=no
2043 DEFAULT_wxUSE_CONSTRAINTS=no
2044 DEFAULT_wxUSE_IPC=no
2045 DEFAULT_wxUSE_HELP=no
29fd3c0c 2046 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2047 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2048 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2049 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2050 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2051 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2052 DEFAULT_wxUSE_PROTOCOL=no
2053 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2054 DEFAULT_wxUSE_PROTOCOL_FTP=no
2055 DEFAULT_wxUSE_PROTOCOL_FILE=no
2056 DEFAULT_wxUSE_URL=no
3bd8fb5f 2057
10f2d63a 2058 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2059 DEFAULT_wxUSE_CHOICEDLG=no
2060 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2061 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2062 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2063 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2064 DEFAULT_wxUSE_FONTDLG=no
2065 DEFAULT_wxUSE_MSGDLG=no
2066 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2067 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2068 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2069 DEFAULT_wxUSE_STARTUP_TIPS=no
2070 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2071 DEFAULT_wxUSE_WIZARDDLG=no
2072
1e6feb95 2073 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2074 DEFAULT_wxUSE_MINIFRAME=no
2075 DEFAULT_wxUSE_HTML=no
24528b0c 2076 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_FS_INET=no
2078 DEFAULT_wxUSE_FS_ZIP=no
2079 DEFAULT_wxUSE_BUSYINFO=no
2080 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2081 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2082
2083 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2084 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2085 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2086 DEFAULT_wxUSE_CALCTRL=no
2087 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_CHECKBOX=no
2089 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2090 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2091 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2092 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2093 DEFAULT_wxUSE_GAUGE=no
2094 DEFAULT_wxUSE_GRID=no
10f2d63a 2095 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2096 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2097 DEFAULT_wxUSE_LISTBOX=no
2098 DEFAULT_wxUSE_LISTCTRL=no
2099 DEFAULT_wxUSE_NOTEBOOK=no
2100 DEFAULT_wxUSE_RADIOBOX=no
2101 DEFAULT_wxUSE_RADIOBTN=no
2102 DEFAULT_wxUSE_SASH=no
2103 DEFAULT_wxUSE_SCROLLBAR=no
2104 DEFAULT_wxUSE_SLIDER=no
2105 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2106 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_SPLITTER=no
2108 DEFAULT_wxUSE_STATBMP=no
2109 DEFAULT_wxUSE_STATBOX=no
2110 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2111 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2112 DEFAULT_wxUSE_STATUSBAR=yes
2113 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2114 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2115 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2116 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2117 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2118 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2119 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2120 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2121 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2122
2123 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2124 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2125 DEFAULT_wxUSE_WCSRTOMBS=no
2126
edae8572 2127 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2128 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2129 DEFAULT_wxUSE_GIF=no
2130 DEFAULT_wxUSE_PCX=no
2131 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2132 DEFAULT_wxUSE_IFF=no
0046ff7c 2133 DEFAULT_wxUSE_XPM=no
658974ae 2134 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2135 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2136
e9e0dc15 2137 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2138 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2139else
1e6feb95 2140 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2141 DEFAULT_wxUSE_STL=no
1e6feb95 2142
d8356fa3
VZ
2143 DEFAULT_wxUSE_NANOX=no
2144
10f2d63a
VZ
2145 DEFAULT_wxUSE_THREADS=yes
2146
2147 DEFAULT_wxUSE_SHARED=yes
2148 DEFAULT_wxUSE_OPTIMISE=yes
2149 DEFAULT_wxUSE_PROFILE=no
2150 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2151 DEFAULT_wxUSE_NO_RTTI=no
2152 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2153 DEFAULT_wxUSE_PERMISSIVE=no
2154 DEFAULT_wxUSE_DEBUG_FLAG=no
2155 DEFAULT_wxUSE_DEBUG_INFO=no
2156 DEFAULT_wxUSE_DEBUG_GDB=no
2157 DEFAULT_wxUSE_MEM_TRACING=no
2158 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2159 DEFAULT_wxUSE_DMALLOC=no
2160 DEFAULT_wxUSE_APPLE_IEEE=yes
2161
2162 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2163 DEFAULT_wxUSE_LOGWINDOW=yes
2164 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2165 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2166
2167 DEFAULT_wxUSE_GUI=yes
2168
831b3152 2169 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2170 DEFAULT_wxUSE_XML=yes
2171 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2172 DEFAULT_wxUSE_ZLIB=yes
2173 DEFAULT_wxUSE_LIBPNG=yes
2174 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2175 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2176 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2177 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2178
eb4efbdc 2179 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2180 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2181 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2182 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2183 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2184 DEFAULT_wxUSE_TIMER=yes
2185 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2186 DEFAULT_wxUSE_FILE=yes
1e6feb95 2187 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2188 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2189 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2190 DEFAULT_wxUSE_WAVE=no
2191 DEFAULT_wxUSE_INTL=yes
2192 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2193 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2194 DEFAULT_wxUSE_STREAMS=yes
2195 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2196 DEFAULT_wxUSE_OLE=yes
2197 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2198 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2199 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2200 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2201 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2202 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2203 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2204
2205 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2206 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2207 DEFAULT_wxUSE_POSTSCRIPT=yes
2208
10f2d63a
VZ
2209 DEFAULT_wxUSE_CLIPBOARD=yes
2210 DEFAULT_wxUSE_TOOLTIPS=yes
2211 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2212 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2213 DEFAULT_wxUSE_SPLINES=yes
2214
2215 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2216 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2217 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2218
2b5f62a0 2219 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2220 DEFAULT_wxUSE_CONSTRAINTS=yes
2221 DEFAULT_wxUSE_IPC=yes
2222 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2223 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2224 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2225 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2226 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2227 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2228 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2229 DEFAULT_wxUSE_PROTOCOL=yes
2230 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2231 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2232 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2233 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2234
2235 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2236 DEFAULT_wxUSE_CHOICEDLG=yes
2237 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2238 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2239 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2240 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2241 DEFAULT_wxUSE_FONTDLG=yes
2242 DEFAULT_wxUSE_MSGDLG=yes
2243 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2244 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2245 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2246 DEFAULT_wxUSE_STARTUP_TIPS=yes
2247 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2248 DEFAULT_wxUSE_WIZARDDLG=yes
2249
1e6feb95 2250 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2251 DEFAULT_wxUSE_MINIFRAME=yes
2252 DEFAULT_wxUSE_HTML=yes
24528b0c 2253 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_FS_INET=yes
2255 DEFAULT_wxUSE_FS_ZIP=yes
2256 DEFAULT_wxUSE_BUSYINFO=yes
2257 DEFAULT_wxUSE_ZIPSTREAM=yes
2258 DEFAULT_wxUSE_VALIDATORS=yes
2259
2260 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2261 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2262 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2263 DEFAULT_wxUSE_CALCTRL=yes
2264 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2265 DEFAULT_wxUSE_CHECKBOX=yes
2266 DEFAULT_wxUSE_CHECKLST=yes
2267 DEFAULT_wxUSE_CHOICE=yes
2268 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2269 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2270 DEFAULT_wxUSE_GAUGE=yes
2271 DEFAULT_wxUSE_GRID=yes
10f2d63a 2272 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2273 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2274 DEFAULT_wxUSE_LISTBOX=yes
2275 DEFAULT_wxUSE_LISTCTRL=yes
2276 DEFAULT_wxUSE_NOTEBOOK=yes
2277 DEFAULT_wxUSE_RADIOBOX=yes
2278 DEFAULT_wxUSE_RADIOBTN=yes
2279 DEFAULT_wxUSE_SASH=yes
2280 DEFAULT_wxUSE_SCROLLBAR=yes
2281 DEFAULT_wxUSE_SLIDER=yes
2282 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2283 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2284 DEFAULT_wxUSE_SPLITTER=yes
2285 DEFAULT_wxUSE_STATBMP=yes
2286 DEFAULT_wxUSE_STATBOX=yes
2287 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2288 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2289 DEFAULT_wxUSE_STATUSBAR=yes
2290 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2291 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2292 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2293 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2294 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2295 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2296 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2297 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2298 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2299
2300 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2301 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2302 DEFAULT_wxUSE_WCSRTOMBS=no
2303
edae8572 2304 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2305 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2306 DEFAULT_wxUSE_GIF=yes
2307 DEFAULT_wxUSE_PCX=yes
cc0e8480 2308 DEFAULT_wxUSE_IFF=no
10f2d63a 2309 DEFAULT_wxUSE_PNM=yes
0046ff7c 2310 DEFAULT_wxUSE_XPM=yes
658974ae 2311 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2312 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2313
e9e0dc15 2314 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2315 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2316fi
2317
8284b0c5
MB
2318
2319
10f2d63a 2320for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2321 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2322 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2323 has_toolkit_in_cache=1
2324 eval "DEFAULT_$LINE"
2325 eval "CACHE_$toolkit=1"
2326 fi
2327done
2328
8284b0c5
MB
2329
2330
5005acfe 2331 enablestring=
e6cc62c6
VS
2332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2333echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2334 no_cache=0
2335 # Check whether --enable-gui or --disable-gui was given.
2336if test "${enable_gui+set}" = set; then
2337 enableval="$enable_gui"
e6cc62c6 2338
10f2d63a
VZ
2339 if test "$enableval" = yes; then
2340 ac_cv_use_gui='wxUSE_GUI=yes'
2341 else
2342 ac_cv_use_gui='wxUSE_GUI=no'
2343 fi
e6cc62c6 2344
10f2d63a 2345else
e6cc62c6 2346
10f2d63a
VZ
2347 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2355
e6cc62c6 2356fi;
10f2d63a
VZ
2357
2358 eval "$ac_cv_use_gui"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2364 echo "$as_me:$LINENO: result: yes" >&5
2365echo "${ECHO_T}yes" >&6
10f2d63a 2366 else
e6cc62c6
VS
2367 echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
10f2d63a 2369 fi
e6cc62c6 2370
10f2d63a 2371
9747f85d
VS
2372 enablestring=
2373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2374echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2375 no_cache=0
2376 # Check whether --enable-monolithic or --disable-monolithic was given.
2377if test "${enable_monolithic+set}" = set; then
2378 enableval="$enable_monolithic"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2382 else
2383 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2396
2397fi;
2398
2399 eval "$ac_cv_use_monolithic"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_MONOLITHIC" = yes; then
2405 echo "$as_me:$LINENO: result: yes" >&5
2406echo "${ECHO_T}yes" >&6
2407 else
2408 echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6
2410 fi
2411
2412
b12915c1 2413if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2414
8284b0c5 2415
5005acfe 2416 enablestring=
e6cc62c6
VS
2417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2418echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2419 no_cache=0
2420 # Check whether --enable-universal or --disable-universal was given.
2421if test "${enable_universal+set}" = set; then
2422 enableval="$enable_universal"
e6cc62c6 2423
1e6feb95
VZ
2424 if test "$enableval" = yes; then
2425 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2426 else
2427 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2428 fi
e6cc62c6 2429
1e6feb95 2430else
e6cc62c6 2431
1e6feb95
VZ
2432 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2440
e6cc62c6 2441fi;
1e6feb95
VZ
2442
2443 eval "$ac_cv_use_universal"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2449 echo "$as_me:$LINENO: result: yes" >&5
2450echo "${ECHO_T}yes" >&6
1e6feb95 2451 else
e6cc62c6
VS
2452 echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6
1e6feb95 2454 fi
e6cc62c6
VS
2455
2456
10f2d63a
VZ
2457# Check whether --with-gtk or --without-gtk was given.
2458if test "${with_gtk+set}" = set; then
2459 withval="$with_gtk"
2460 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2461fi;
10f2d63a
VZ
2462
2463# Check whether --with-motif or --without-motif was given.
2464if test "${with_motif+set}" = set; then
2465 withval="$with_motif"
2466 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2467fi;
10f2d63a 2468
b4085ce6
GD
2469# Check whether --with-mac or --without-mac was given.
2470if test "${with_mac+set}" = set; then
2471 withval="$with_mac"
2472 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2473fi;
b4085ce6 2474
ac0c4cc3
DE
2475# Check whether --with-cocoa or --without-cocoa was given.
2476if test "${with_cocoa+set}" = set; then
2477 withval="$with_cocoa"
2478 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2479fi;
ac0c4cc3 2480
10f2d63a
VZ
2481# Check whether --with-wine or --without-wine was given.
2482if test "${with_wine+set}" = set; then
2483 withval="$with_wine"
89e6bf6d 2484 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2485fi;
10f2d63a 2486
77e13408
RL
2487# Check whether --with-msw or --without-msw was given.
2488if test "${with_msw+set}" = set; then
2489 withval="$with_msw"
b4efce5e 2490 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2491fi;
10f2d63a 2492
e07802fc
VZ
2493# Check whether --with-pm or --without-pm was given.
2494if test "${with_pm+set}" = set; then
2495 withval="$with_pm"
2496 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2497fi;
698dcdb6 2498
1e6feb95
VZ
2499# Check whether --with-mgl or --without-mgl was given.
2500if test "${with_mgl+set}" = set; then
2501 withval="$with_mgl"
6c657b52 2502 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2503fi;
1e6feb95 2504
1725144d
RR
2505# Check whether --with-microwin or --without-microwin was given.
2506if test "${with_microwin+set}" = set; then
2507 withval="$with_microwin"
2508 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2509fi;
1725144d 2510
f79bd02d
JS
2511# Check whether --with-x11 or --without-x11 was given.
2512if test "${with_x11+set}" = set; then
2513 withval="$with_x11"
3c011993 2514 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2515fi;
a0b9e27f 2516
5005acfe 2517 enablestring=
e6cc62c6
VS
2518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2519echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2520 no_cache=0
ba875e66
VZ
2521 # Check whether --enable-nanox or --disable-nanox was given.
2522if test "${enable_nanox+set}" = set; then
2523 enableval="$enable_nanox"
e6cc62c6 2524
d8356fa3 2525 if test "$enableval" = yes; then
ba875e66 2526 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2527 else
ba875e66 2528 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2529 fi
e6cc62c6 2530
d8356fa3 2531else
e6cc62c6 2532
d8356fa3
VZ
2533 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
ba875e66 2540 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2541
e6cc62c6 2542fi;
d8356fa3 2543
ba875e66 2544 eval "$ac_cv_use_nanox"
d8356fa3 2545 if test "$no_cache" != 1; then
ba875e66 2546 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2547 fi
2548
2549 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2550 echo "$as_me:$LINENO: result: yes" >&5
2551echo "${ECHO_T}yes" >&6
d8356fa3 2552 else
e6cc62c6
VS
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
d8356fa3 2555 fi
e6cc62c6 2556
8284b0c5 2557
d74f4b5a 2558
5005acfe 2559 enablestring=
e6cc62c6
VS
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2562 no_cache=0
2563 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2564if test "${enable_gtk2+set}" = set; then
2565 enableval="$enable_gtk2"
e6cc62c6 2566
d74f4b5a
VZ
2567 if test "$enableval" = yes; then
2568 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2569 else
2570 ac_cv_use_gtk2='wxUSE_GTK2=no'
2571 fi
e6cc62c6 2572
10f2d63a 2573else
e6cc62c6 2574
d74f4b5a
VZ
2575 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2583
e6cc62c6 2584fi;
328a083c 2585
d74f4b5a
VZ
2586 eval "$ac_cv_use_gtk2"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
d74f4b5a 2594 else
e6cc62c6
VS
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
d74f4b5a 2597 fi
d74f4b5a 2598
5c6fa7d2 2599
e6cc62c6
VS
2600
2601 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2602echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2603 no_cache=0
e6cc62c6
VS
2604
2605# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2606if test "${with_libpng+set}" = set; then
2607 withval="$with_libpng"
e6cc62c6 2608
10f2d63a 2609 if test "$withval" = yes; then
b12915c1 2610 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2611 elif test "$withval" = no; then
b12915c1 2612 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2613 elif test "$withval" = sys; then
2614 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2615 elif test "$withval" = builtin; then
2616 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2617 else
e6cc62c6
VS
2618 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2619echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2620 { (exit 1); exit 1; }; }
10f2d63a 2621 fi
e6cc62c6 2622
10f2d63a 2623else
e6cc62c6 2624
b12915c1 2625 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
b12915c1 2632 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2633
e6cc62c6 2634fi;
10f2d63a 2635
b12915c1 2636 eval "$ac_cv_use_libpng"
10f2d63a 2637 if test "$no_cache" != 1; then
b12915c1 2638 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2639 fi
2640
b12915c1 2641 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2642 echo "$as_me:$LINENO: result: yes" >&5
2643echo "${ECHO_T}yes" >&6
422107f9 2644 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2645 echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6
422107f9 2647 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2648 echo "$as_me:$LINENO: result: system version" >&5
2649echo "${ECHO_T}system version" >&6
4f14bcd8 2650 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2651 echo "$as_me:$LINENO: result: builtin version" >&5
2652echo "${ECHO_T}builtin version" >&6
422107f9 2653 else
e6cc62c6
VS
2654 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2655echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2656 { (exit 1); exit 1; }; }
10f2d63a 2657 fi
10f2d63a 2658
e6cc62c6
VS
2659
2660 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2661echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2662 no_cache=0
e6cc62c6
VS
2663
2664# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2665if test "${with_libjpeg+set}" = set; then
2666 withval="$with_libjpeg"
e6cc62c6 2667
10f2d63a 2668 if test "$withval" = yes; then
b12915c1 2669 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2670 elif test "$withval" = no; then
b12915c1 2671 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2672 elif test "$withval" = sys; then
2673 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2674 elif test "$withval" = builtin; then
2675 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2676 else
e6cc62c6
VS
2677 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2678echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2679 { (exit 1); exit 1; }; }
10f2d63a 2680 fi
e6cc62c6 2681
10f2d63a 2682else
e6cc62c6 2683
b12915c1 2684 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2685 if test "x$LINE" != x ; then
2686 eval "DEFAULT_$LINE"
2687 else
2688 no_cache=1
2689 fi
2690
b12915c1 2691 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2692
e6cc62c6 2693fi;
10f2d63a 2694
b12915c1 2695 eval "$ac_cv_use_libjpeg"
10f2d63a 2696 if test "$no_cache" != 1; then
b12915c1 2697 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2698 fi
2699
b12915c1 2700 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2701 echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6
422107f9 2703 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
422107f9 2706 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2707 echo "$as_me:$LINENO: result: system version" >&5
2708echo "${ECHO_T}system version" >&6
4f14bcd8 2709 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2710 echo "$as_me:$LINENO: result: builtin version" >&5
2711echo "${ECHO_T}builtin version" >&6
422107f9 2712 else
e6cc62c6
VS
2713 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2714echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2715 { (exit 1); exit 1; }; }
10f2d63a 2716 fi
10f2d63a 2717
e6cc62c6
VS
2718
2719 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2720echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2721 no_cache=0
e6cc62c6
VS
2722
2723# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2724if test "${with_libtiff+set}" = set; then
2725 withval="$with_libtiff"
e6cc62c6 2726
10f2d63a 2727 if test "$withval" = yes; then
b12915c1 2728 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2729 elif test "$withval" = no; then
b12915c1 2730 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2731 elif test "$withval" = sys; then
2732 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2733 elif test "$withval" = builtin; then
2734 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2735 else
e6cc62c6
VS
2736 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2737echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2738 { (exit 1); exit 1; }; }
10f2d63a 2739 fi
e6cc62c6 2740
10f2d63a 2741else
e6cc62c6 2742
b12915c1 2743 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
b12915c1 2750 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2751
e6cc62c6 2752fi;
10f2d63a 2753
b12915c1 2754 eval "$ac_cv_use_libtiff"
10f2d63a 2755 if test "$no_cache" != 1; then
b12915c1 2756 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2757 fi
2758
b12915c1 2759 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2760 echo "$as_me:$LINENO: result: yes" >&5
2761echo "${ECHO_T}yes" >&6
0dcf9893 2762 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2763 echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6
0dcf9893 2765 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2766 echo "$as_me:$LINENO: result: system version" >&5
2767echo "${ECHO_T}system version" >&6
4f14bcd8 2768 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2769 echo "$as_me:$LINENO: result: builtin version" >&5
2770echo "${ECHO_T}builtin version" >&6
0dcf9893 2771 else
e6cc62c6
VS
2772 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2773echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2774 { (exit 1); exit 1; }; }
10f2d63a 2775 fi
10f2d63a 2776
e6cc62c6
VS
2777
2778 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2779echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2780 no_cache=0
e6cc62c6
VS
2781
2782# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2783if test "${with_opengl+set}" = set; then
2784 withval="$with_opengl"
e6cc62c6 2785
10f2d63a 2786 if test "$withval" = yes; then
b12915c1 2787 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2788 else
b12915c1 2789 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2790 fi
e6cc62c6 2791
10f2d63a 2792else
e6cc62c6 2793
b12915c1 2794 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2795 if test "x$LINE" != x ; then
2796 eval "DEFAULT_$LINE"
2797 else
2798 no_cache=1
2799 fi
2800
b12915c1 2801 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2802
e6cc62c6 2803fi;
10f2d63a 2804
b12915c1 2805 eval "$ac_cv_use_opengl"
10f2d63a 2806 if test "$no_cache" != 1; then
b12915c1 2807 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2808 fi
2809
b12915c1 2810 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2811 echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
10f2d63a 2813 else
e6cc62c6
VS
2814 echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6
10f2d63a 2816 fi
e6cc62c6 2817
10f2d63a 2818
b12915c1
VZ
2819fi
2820
5c6fa7d2 2821
e6cc62c6
VS
2822 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2823echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2824 no_cache=0
e6cc62c6
VS
2825
2826# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2827if test "${with_dmalloc+set}" = set; then
2828 withval="$with_dmalloc"
e6cc62c6 2829
c7a2bf27 2830 if test "$withval" = yes; then
b12915c1 2831 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2832 else
b12915c1 2833 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2834 fi
e6cc62c6 2835
c7a2bf27 2836else
e6cc62c6 2837
b12915c1 2838 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
b12915c1 2845 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2846
e6cc62c6 2847fi;
c7a2bf27 2848
b12915c1 2849 eval "$ac_cv_use_dmalloc"
c7a2bf27 2850 if test "$no_cache" != 1; then
b12915c1 2851 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2852 fi
2853
b12915c1 2854 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2855 echo "$as_me:$LINENO: result: yes" >&5
2856echo "${ECHO_T}yes" >&6
c7a2bf27 2857 else
e6cc62c6
VS
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
c7a2bf27 2860 fi
c7a2bf27 2861
e6cc62c6
VS
2862
2863 echo "$as_me:$LINENO: checking for --with-regex" >&5
2864echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2865 no_cache=0
e6cc62c6
VS
2866
2867# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2868if test "${with_regex+set}" = set; then
2869 withval="$with_regex"
e6cc62c6 2870
3e44f09d
VZ
2871 if test "$withval" = yes; then
2872 ac_cv_use_regex='wxUSE_REGEX=yes'
2873 elif test "$withval" = no; then
2874 ac_cv_use_regex='wxUSE_REGEX=no'
2875 elif test "$withval" = sys; then
2876 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2877 elif test "$withval" = builtin; then
2878 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2879 else
e6cc62c6
VS
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
3e44f09d 2883 fi
e6cc62c6 2884
3e44f09d 2885else
e6cc62c6 2886
3e44f09d
VZ
2887 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2888 if test "x$LINE" != x ; then
2889 eval "DEFAULT_$LINE"
2890 else
2891 no_cache=1
2892 fi
2893
2894 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2895
e6cc62c6 2896fi;
3e44f09d
VZ
2897
2898 eval "$ac_cv_use_regex"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2904 echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6
3e44f09d 2906 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
3e44f09d 2909 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2910 echo "$as_me:$LINENO: result: system version" >&5
2911echo "${ECHO_T}system version" >&6
4f14bcd8 2912 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2913 echo "$as_me:$LINENO: result: builtin version" >&5
2914echo "${ECHO_T}builtin version" >&6
3e44f09d 2915 else
e6cc62c6
VS
2916 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2917echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2918 { (exit 1); exit 1; }; }
3e44f09d 2919 fi
3e44f09d 2920
e6cc62c6
VS
2921
2922 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2923echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2924 no_cache=0
e6cc62c6
VS
2925
2926# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2927if test "${with_zlib+set}" = set; then
2928 withval="$with_zlib"
e6cc62c6 2929
10f2d63a 2930 if test "$withval" = yes; then
b12915c1 2931 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2932 elif test "$withval" = no; then
b12915c1 2933 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2934 elif test "$withval" = sys; then
2935 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2936 elif test "$withval" = builtin; then
2937 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2938 else
e6cc62c6
VS
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
10f2d63a 2942 fi
e6cc62c6 2943
10f2d63a 2944else
e6cc62c6 2945
b12915c1 2946 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
b12915c1 2953 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2954
e6cc62c6 2955fi;
10f2d63a 2956
b12915c1 2957 eval "$ac_cv_use_zlib"
10f2d63a 2958 if test "$no_cache" != 1; then
b12915c1 2959 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2960 fi
2961
b12915c1 2962 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
422107f9 2965 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
422107f9 2968 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2969 echo "$as_me:$LINENO: result: system version" >&5
2970echo "${ECHO_T}system version" >&6
4f14bcd8 2971 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2972 echo "$as_me:$LINENO: result: builtin version" >&5
2973echo "${ECHO_T}builtin version" >&6
422107f9 2974 else
e6cc62c6
VS
2975 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2976echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2977 { (exit 1); exit 1; }; }
10f2d63a 2978 fi
10f2d63a 2979
e6cc62c6
VS
2980
2981 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2982echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2983 no_cache=0
e6cc62c6
VS
2984
2985# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2986if test "${with_odbc+set}" = set; then
2987 withval="$with_odbc"
e6cc62c6 2988
10f2d63a
VZ
2989 if test "$withval" = yes; then
2990 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2991 elif test "$withval" = no; then
10f2d63a 2992 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2993 elif test "$withval" = sys; then
2994 ac_cv_use_odbc='wxUSE_ODBC=sys'
2995 elif test "$withval" = builtin; then
2996 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2997 else
e6cc62c6
VS
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
10f2d63a 3001 fi
e6cc62c6 3002
10f2d63a 3003else
e6cc62c6 3004
10f2d63a
VZ
3005 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3013
e6cc62c6 3014fi;
10f2d63a
VZ
3015
3016 eval "$ac_cv_use_odbc"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3022 echo "$as_me:$LINENO: result: yes" >&5
3023echo "${ECHO_T}yes" >&6
8647bec6 3024 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
8647bec6 3027 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3028 echo "$as_me:$LINENO: result: system version" >&5
3029echo "${ECHO_T}system version" >&6
8647bec6 3030 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3031 echo "$as_me:$LINENO: result: builtin version" >&5
3032echo "${ECHO_T}builtin version" >&6
8647bec6 3033 else
e6cc62c6
VS
3034 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3035echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3036 { (exit 1); exit 1; }; }
10f2d63a 3037 fi
e6cc62c6 3038
52127426 3039
672abd7a
VS
3040 echo "$as_me:$LINENO: checking for --with-expat" >&5
3041echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3042 no_cache=0
3043
3044# Check whether --with-expat or --without-expat was given.
3045if test "${with_expat+set}" = set; then
3046 withval="$with_expat"
3047
3048 if test "$withval" = yes; then
3049 ac_cv_use_expat='wxUSE_EXPAT=yes'
3050 elif test "$withval" = no; then
3051 ac_cv_use_expat='wxUSE_EXPAT=no'
3052 elif test "$withval" = sys; then
3053 ac_cv_use_expat='wxUSE_EXPAT=sys'
3054 elif test "$withval" = builtin; then
3055 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3056 else
3057 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3058echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3059 { (exit 1); exit 1; }; }
3060 fi
3061
3062else
3063
3064 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3072
3073fi;
3074
3075 eval "$ac_cv_use_expat"
3076 if test "$no_cache" != 1; then
3077 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3078 fi
3079
3080 if test "$wxUSE_EXPAT" = yes; then
3081 echo "$as_me:$LINENO: result: yes" >&5
3082echo "${ECHO_T}yes" >&6
3083 elif test "$wxUSE_EXPAT" = no; then
3084 echo "$as_me:$LINENO: result: no" >&5
3085echo "${ECHO_T}no" >&6
3086 elif test "$wxUSE_EXPAT" = sys; then
3087 echo "$as_me:$LINENO: result: system version" >&5
3088echo "${ECHO_T}system version" >&6
3089 elif test "$wxUSE_EXPAT" = builtin; then
3090 echo "$as_me:$LINENO: result: builtin version" >&5
3091echo "${ECHO_T}builtin version" >&6
3092 else
3093 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3094echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3095 { (exit 1); exit 1; }; }
3096 fi
3097
3098
8284b0c5
MB
3099
3100
5005acfe 3101 enablestring=
e6cc62c6
VS
3102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3103echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3104 no_cache=0
3105 # Check whether --enable-shared or --disable-shared was given.
3106if test "${enable_shared+set}" = set; then
3107 enableval="$enable_shared"
e6cc62c6 3108
10f2d63a
VZ
3109 if test "$enableval" = yes; then
3110 ac_cv_use_shared='wxUSE_SHARED=yes'
3111 else
3112 ac_cv_use_shared='wxUSE_SHARED=no'
3113 fi
e6cc62c6 3114
10f2d63a 3115else
e6cc62c6 3116
10f2d63a
VZ
3117 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3125
e6cc62c6 3126fi;
10f2d63a
VZ
3127
3128 eval "$ac_cv_use_shared"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3134 echo "$as_me:$LINENO: result: yes" >&5
3135echo "${ECHO_T}yes" >&6
10f2d63a 3136 else
e6cc62c6
VS
3137 echo "$as_me:$LINENO: result: no" >&5
3138echo "${ECHO_T}no" >&6
10f2d63a 3139 fi
e6cc62c6 3140
10f2d63a 3141
5005acfe 3142 enablestring=
e6cc62c6
VS
3143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3144echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3145 no_cache=0
3146 # Check whether --enable-optimise or --disable-optimise was given.
3147if test "${enable_optimise+set}" = set; then
3148 enableval="$enable_optimise"
e6cc62c6 3149
10f2d63a
VZ
3150 if test "$enableval" = yes; then
3151 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3152 else
3153 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3154 fi
e6cc62c6 3155
10f2d63a 3156else
e6cc62c6 3157
10f2d63a
VZ
3158 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3159 if test "x$LINE" != x ; then
3160 eval "DEFAULT_$LINE"
3161 else
3162 no_cache=1
3163 fi
3164
3165 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3166
e6cc62c6 3167fi;
10f2d63a
VZ
3168
3169 eval "$ac_cv_use_optimise"
3170 if test "$no_cache" != 1; then
3171 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3172 fi
3173
3174 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3175 echo "$as_me:$LINENO: result: yes" >&5
3176echo "${ECHO_T}yes" >&6
10f2d63a 3177 else
e6cc62c6
VS
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
10f2d63a 3180 fi
e6cc62c6 3181
10f2d63a 3182
5005acfe 3183 enablestring=
e6cc62c6
VS
3184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3185echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3186 no_cache=0
3187 # Check whether --enable-debug or --disable-debug was given.
3188if test "${enable_debug+set}" = set; then
3189 enableval="$enable_debug"
e6cc62c6 3190
10f2d63a
VZ
3191 if test "$enableval" = yes; then
3192 ac_cv_use_debug='wxUSE_DEBUG=yes'
3193 else
3194 ac_cv_use_debug='wxUSE_DEBUG=no'
3195 fi
e6cc62c6 3196
10f2d63a 3197else
e6cc62c6 3198
10f2d63a
VZ
3199 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3200 if test "x$LINE" != x ; then
3201 eval "DEFAULT_$LINE"
3202 else
3203 no_cache=1
3204 fi
3205
3206 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3207
e6cc62c6 3208fi;
10f2d63a
VZ
3209
3210 eval "$ac_cv_use_debug"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3216 echo "$as_me:$LINENO: result: yes" >&5
3217echo "${ECHO_T}yes" >&6
10f2d63a 3218 else
e6cc62c6
VS
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
10f2d63a 3221 fi
e6cc62c6 3222
52127426 3223
df5168c4
MB
3224 enablestring=
3225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3226echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3227 no_cache=0
3228 # Check whether --enable-stl or --disable-stl was given.
3229if test "${enable_stl+set}" = set; then
3230 enableval="$enable_stl"
3231
3232 if test "$enableval" = yes; then
3233 ac_cv_use_stl='wxUSE_STL=yes'
3234 else
3235 ac_cv_use_stl='wxUSE_STL=no'
3236 fi
3237
3238else
3239
3240 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3241 if test "x$LINE" != x ; then
3242 eval "DEFAULT_$LINE"
3243 else
3244 no_cache=1
3245 fi
3246
3247 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3248
3249fi;
3250
3251 eval "$ac_cv_use_stl"
3252 if test "$no_cache" != 1; then
3253 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3254 fi
3255
3256 if test "$wxUSE_STL" = yes; then
3257 echo "$as_me:$LINENO: result: yes" >&5
3258echo "${ECHO_T}yes" >&6
3259 else
3260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262 fi
3263
3264
10f2d63a
VZ
3265if test "$wxUSE_DEBUG" = "yes"; then
3266 DEFAULT_wxUSE_DEBUG_FLAG=yes
3267 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3268 BUILD=debug
10f2d63a
VZ
3269elif test "$wxUSE_DEBUG" = "no"; then
3270 DEFAULT_wxUSE_DEBUG_FLAG=no
3271 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3272 BUILD=release
10f2d63a
VZ
3273fi
3274
8284b0c5 3275
5005acfe 3276 enablestring=
e6cc62c6
VS
3277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3278echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3279 no_cache=0
3280 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3281if test "${enable_debug_flag+set}" = set; then
3282 enableval="$enable_debug_flag"
e6cc62c6 3283
10f2d63a
VZ
3284 if test "$enableval" = yes; then
3285 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3286 else
3287 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3288 fi
e6cc62c6 3289
10f2d63a 3290else
e6cc62c6 3291
10f2d63a
VZ
3292 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3300
e6cc62c6 3301fi;
10f2d63a
VZ
3302
3303 eval "$ac_cv_use_debug_flag"
3304 if test "$no_cache" != 1; then
3305 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3306 fi
3307
3308 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3309 echo "$as_me:$LINENO: result: yes" >&5
3310echo "${ECHO_T}yes" >&6
10f2d63a 3311 else
e6cc62c6
VS
3312 echo "$as_me:$LINENO: result: no" >&5
3313echo "${ECHO_T}no" >&6
10f2d63a 3314 fi
e6cc62c6 3315
10f2d63a 3316
5005acfe 3317 enablestring=
e6cc62c6
VS
3318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3319echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3320 no_cache=0
3321 # Check whether --enable-debug_info or --disable-debug_info was given.
3322if test "${enable_debug_info+set}" = set; then
3323 enableval="$enable_debug_info"
e6cc62c6 3324
10f2d63a
VZ
3325 if test "$enableval" = yes; then
3326 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3327 else
3328 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3329 fi
e6cc62c6 3330
10f2d63a 3331else
e6cc62c6 3332
10f2d63a
VZ
3333 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3341
e6cc62c6 3342fi;
10f2d63a
VZ
3343
3344 eval "$ac_cv_use_debug_info"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3350 echo "$as_me:$LINENO: result: yes" >&5
3351echo "${ECHO_T}yes" >&6
10f2d63a 3352 else
e6cc62c6
VS
3353 echo "$as_me:$LINENO: result: no" >&5
3354echo "${ECHO_T}no" >&6
10f2d63a 3355 fi
e6cc62c6 3356
10f2d63a 3357
5005acfe 3358 enablestring=
e6cc62c6
VS
3359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3360echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3361 no_cache=0
3362 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3363if test "${enable_debug_gdb+set}" = set; then
3364 enableval="$enable_debug_gdb"
e6cc62c6 3365
10f2d63a
VZ
3366 if test "$enableval" = yes; then
3367 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3368 else
3369 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3370 fi
e6cc62c6 3371
10f2d63a 3372else
e6cc62c6 3373
10f2d63a
VZ
3374 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3382
e6cc62c6 3383fi;
10f2d63a
VZ
3384
3385 eval "$ac_cv_use_debug_gdb"
3386 if test "$no_cache" != 1; then
3387 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3388 fi
3389
3390 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3391 echo "$as_me:$LINENO: result: yes" >&5
3392echo "${ECHO_T}yes" >&6
10f2d63a 3393 else
e6cc62c6
VS
3394 echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
10f2d63a 3396 fi
e6cc62c6 3397
10f2d63a 3398
5005acfe 3399 enablestring=
e6cc62c6
VS
3400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3401echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3402 no_cache=0
3403 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3404if test "${enable_debug_cntxt+set}" = set; then
3405 enableval="$enable_debug_cntxt"
e6cc62c6 3406
10f2d63a
VZ
3407 if test "$enableval" = yes; then
3408 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3409 else
3410 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3411 fi
e6cc62c6 3412
10f2d63a 3413else
e6cc62c6 3414
10f2d63a
VZ
3415 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3423
e6cc62c6 3424fi;
10f2d63a
VZ
3425
3426 eval "$ac_cv_use_debug_cntxt"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3432 echo "$as_me:$LINENO: result: yes" >&5
3433echo "${ECHO_T}yes" >&6
10f2d63a 3434 else
e6cc62c6
VS
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
10f2d63a 3437 fi
e6cc62c6 3438
10f2d63a 3439
5005acfe 3440 enablestring=
e6cc62c6
VS
3441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3442echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3443 no_cache=0
3444 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3445if test "${enable_mem_tracing+set}" = set; then
3446 enableval="$enable_mem_tracing"
e6cc62c6 3447
10f2d63a
VZ
3448 if test "$enableval" = yes; then
3449 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3450 else
3451 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3452 fi
e6cc62c6 3453
10f2d63a 3454else
e6cc62c6 3455
10f2d63a
VZ
3456 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3464
e6cc62c6 3465fi;
10f2d63a
VZ
3466
3467 eval "$ac_cv_use_mem_tracing"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
10f2d63a 3475 else
e6cc62c6
VS
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
10f2d63a 3478 fi
e6cc62c6 3479
10f2d63a 3480
5005acfe 3481 enablestring=
e6cc62c6
VS
3482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3483echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3484 no_cache=0
3485 # Check whether --enable-profile or --disable-profile was given.
3486if test "${enable_profile+set}" = set; then
3487 enableval="$enable_profile"
e6cc62c6 3488
10f2d63a
VZ
3489 if test "$enableval" = yes; then
3490 ac_cv_use_profile='wxUSE_PROFILE=yes'
3491 else
3492 ac_cv_use_profile='wxUSE_PROFILE=no'
3493 fi
e6cc62c6 3494
10f2d63a 3495else
e6cc62c6 3496
10f2d63a
VZ
3497 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3505
e6cc62c6 3506fi;
10f2d63a
VZ
3507
3508 eval "$ac_cv_use_profile"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3514 echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
10f2d63a 3516 else
e6cc62c6
VS
3517 echo "$as_me:$LINENO: result: no" >&5
3518echo "${ECHO_T}no" >&6
10f2d63a 3519 fi
e6cc62c6 3520
10f2d63a 3521
5005acfe 3522 enablestring=
e6cc62c6
VS
3523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3524echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3525 no_cache=0
3526 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3527if test "${enable_no_rtti+set}" = set; then
3528 enableval="$enable_no_rtti"
e6cc62c6 3529
10f2d63a
VZ
3530 if test "$enableval" = yes; then
3531 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3532 else
3533 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3534 fi
e6cc62c6 3535
10f2d63a 3536else
e6cc62c6 3537
10f2d63a
VZ
3538 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3546
e6cc62c6 3547fi;
10f2d63a
VZ
3548
3549 eval "$ac_cv_use_no_rtti"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
10f2d63a 3557 else
e6cc62c6
VS
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
10f2d63a 3560 fi
e6cc62c6 3561
10f2d63a 3562
5005acfe 3563 enablestring=
e6cc62c6
VS
3564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3565echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3566 no_cache=0
3567 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3568if test "${enable_no_exceptions+set}" = set; then
3569 enableval="$enable_no_exceptions"
e6cc62c6 3570
10f2d63a
VZ
3571 if test "$enableval" = yes; then
3572 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3573 else
3574 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3575 fi
e6cc62c6 3576
10f2d63a 3577else
e6cc62c6 3578
10f2d63a
VZ
3579 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3580 if test "x$LINE" != x ; then
3581 eval "DEFAULT_$LINE"
3582 else
3583 no_cache=1
3584 fi
3585
3586 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3587
e6cc62c6 3588fi;
10f2d63a
VZ
3589
3590 eval "$ac_cv_use_no_exceptions"
3591 if test "$no_cache" != 1; then
3592 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3593 fi
3594
3595 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3596 echo "$as_me:$LINENO: result: yes" >&5
3597echo "${ECHO_T}yes" >&6
10f2d63a 3598 else
e6cc62c6
VS
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
10f2d63a 3601 fi
e6cc62c6 3602
10f2d63a 3603
5005acfe 3604 enablestring=
e6cc62c6
VS
3605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3606echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3607 no_cache=0
3608 # Check whether --enable-permissive or --disable-permissive was given.
3609if test "${enable_permissive+set}" = set; then
3610 enableval="$enable_permissive"
e6cc62c6 3611
10f2d63a
VZ
3612 if test "$enableval" = yes; then
3613 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3614 else
3615 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3616 fi
e6cc62c6 3617
10f2d63a 3618else
e6cc62c6 3619
10f2d63a
VZ
3620 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3621 if test "x$LINE" != x ; then
3622 eval "DEFAULT_$LINE"
3623 else
3624 no_cache=1
3625 fi
3626
3627 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3628
e6cc62c6 3629fi;
10f2d63a
VZ
3630
3631 eval "$ac_cv_use_permissive"
3632 if test "$no_cache" != 1; then
3633 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3634 fi
3635
3636 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3637 echo "$as_me:$LINENO: result: yes" >&5
3638echo "${ECHO_T}yes" >&6
10f2d63a 3639 else
e6cc62c6
VS
3640 echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6
10f2d63a 3642 fi
e6cc62c6 3643
10f2d63a 3644
5005acfe 3645 enablestring=
e6cc62c6
VS
3646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3647echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3648 no_cache=0
3649 # Check whether --enable-no_deps or --disable-no_deps was given.
3650if test "${enable_no_deps+set}" = set; then
3651 enableval="$enable_no_deps"
e6cc62c6 3652
10f2d63a
VZ
3653 if test "$enableval" = yes; then
3654 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3655 else
3656 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3657 fi
e6cc62c6 3658
10f2d63a 3659else
e6cc62c6 3660
10f2d63a
VZ
3661 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3662 if test "x$LINE" != x ; then
3663 eval "DEFAULT_$LINE"
3664 else
3665 no_cache=1
3666 fi
3667
3668 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3669
e6cc62c6 3670fi;
10f2d63a
VZ
3671
3672 eval "$ac_cv_use_no_deps"
3673 if test "$no_cache" != 1; then
3674 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3675 fi
3676
3677 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3678 echo "$as_me:$LINENO: result: yes" >&5
3679echo "${ECHO_T}yes" >&6
10f2d63a 3680 else
e6cc62c6
VS
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
10f2d63a 3683 fi
e6cc62c6 3684
52127426 3685
8284b0c5 3686
65d8ef1e 3687 enablestring=
e6cc62c6
VS
3688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3689echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3690 no_cache=0
3691 # Check whether --enable-compat22 or --disable-compat22 was given.
3692if test "${enable_compat22+set}" = set; then
3693 enableval="$enable_compat22"
e6cc62c6 3694
54276ccf
VZ
3695 if test "$enableval" = yes; then
3696 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3697 else
3698 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3699 fi
e6cc62c6 3700
54276ccf 3701else
e6cc62c6 3702
54276ccf
VZ
3703 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3711
e6cc62c6 3712fi;
54276ccf
VZ
3713
3714 eval "$ac_cv_use_compat22"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3720 echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
54276ccf 3722 else
e6cc62c6
VS
3723 echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
54276ccf 3725 fi
e6cc62c6 3726
54276ccf 3727
65d8ef1e 3728 enablestring=disable
e6cc62c6
VS
3729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3730echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3731 no_cache=0
3732 # Check whether --enable-compat24 or --disable-compat24 was given.
3733if test "${enable_compat24+set}" = set; then
3734 enableval="$enable_compat24"
e6cc62c6 3735
65d8ef1e
VS
3736 if test "$enableval" = yes; then
3737 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3738 else
3739 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3740 fi
e6cc62c6 3741
65d8ef1e 3742else
e6cc62c6 3743
65d8ef1e
VS
3744 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3752
e6cc62c6 3753fi;
65d8ef1e
VS
3754
3755 eval "$ac_cv_use_compat24"
3756 if test "$no_cache" != 1; then
3757 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3758 fi
3759
3760 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3761 echo "$as_me:$LINENO: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
65d8ef1e 3763 else
e6cc62c6
VS
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
65d8ef1e 3766 fi
e6cc62c6 3767
65d8ef1e 3768
3bd8fb5f
RD
3769# Check whether --enable-rpath or --disable-rpath was given.
3770if test "${enable_rpath+set}" = set; then
3771 enableval="$enable_rpath"
3772 wxRPATH_DIR="$enableval"
e6cc62c6 3773fi;
3bd8fb5f
RD
3774
3775if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3776 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3777fi
3778
8284b0c5
MB
3779
3780
3781
5005acfe 3782 enablestring=
e6cc62c6
VS
3783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3784echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3785 no_cache=0
3786 # Check whether --enable-intl or --disable-intl was given.
3787if test "${enable_intl+set}" = set; then
3788 enableval="$enable_intl"
e6cc62c6 3789
10f2d63a
VZ
3790 if test "$enableval" = yes; then
3791 ac_cv_use_intl='wxUSE_INTL=yes'
3792 else
3793 ac_cv_use_intl='wxUSE_INTL=no'
3794 fi
e6cc62c6 3795
10f2d63a 3796else
e6cc62c6 3797
10f2d63a
VZ
3798 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3806
e6cc62c6 3807fi;
10f2d63a
VZ
3808
3809 eval "$ac_cv_use_intl"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3815 echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6
10f2d63a 3817 else
e6cc62c6
VS
3818 echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6
10f2d63a 3820 fi
e6cc62c6 3821
10f2d63a 3822
5005acfe 3823 enablestring=
e6cc62c6
VS
3824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3825echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3826 no_cache=0
3827 # Check whether --enable-config or --disable-config was given.
3828if test "${enable_config+set}" = set; then
3829 enableval="$enable_config"
e6cc62c6 3830
10f2d63a
VZ
3831 if test "$enableval" = yes; then
3832 ac_cv_use_config='wxUSE_CONFIG=yes'
3833 else
3834 ac_cv_use_config='wxUSE_CONFIG=no'
3835 fi
e6cc62c6 3836
10f2d63a 3837else
e6cc62c6 3838
10f2d63a
VZ
3839 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3847
e6cc62c6 3848fi;
10f2d63a
VZ
3849
3850 eval "$ac_cv_use_config"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3856 echo "$as_me:$LINENO: result: yes" >&5
3857echo "${ECHO_T}yes" >&6
10f2d63a 3858 else
e6cc62c6
VS
3859 echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6
10f2d63a 3861 fi
e6cc62c6 3862
52127426 3863
8284b0c5 3864
5005acfe 3865 enablestring=
e6cc62c6
VS
3866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3867echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3868 no_cache=0
3869 # Check whether --enable-protocols or --disable-protocols was given.
3870if test "${enable_protocols+set}" = set; then
3871 enableval="$enable_protocols"
e6cc62c6 3872
a1622950
VZ
3873 if test "$enableval" = yes; then
3874 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3875 else
3876 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3877 fi
e6cc62c6 3878
a1622950 3879else
e6cc62c6 3880
a1622950
VZ
3881 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3889
e6cc62c6 3890fi;
a1622950
VZ
3891
3892 eval "$ac_cv_use_protocols"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3898 echo "$as_me:$LINENO: result: yes" >&5
3899echo "${ECHO_T}yes" >&6
a1622950 3900 else
e6cc62c6
VS
3901 echo "$as_me:$LINENO: result: no" >&5
3902echo "${ECHO_T}no" >&6
a1622950 3903 fi
e6cc62c6 3904
a1622950 3905
5005acfe 3906 enablestring=
e6cc62c6
VS
3907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3908echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3909 no_cache=0
3910 # Check whether --enable-ftp or --disable-ftp was given.
3911if test "${enable_ftp+set}" = set; then
3912 enableval="$enable_ftp"
e6cc62c6 3913
a1622950
VZ
3914 if test "$enableval" = yes; then
3915 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3916 else
3917 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3918 fi
e6cc62c6 3919
a1622950 3920else
e6cc62c6 3921
a1622950
VZ
3922 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3930
e6cc62c6 3931fi;
a1622950
VZ
3932
3933 eval "$ac_cv_use_ftp"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
a1622950 3941 else
e6cc62c6
VS
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
a1622950 3944 fi
e6cc62c6 3945
a1622950 3946
5005acfe 3947 enablestring=
e6cc62c6
VS
3948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3949echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3950 no_cache=0
3951 # Check whether --enable-http or --disable-http was given.
3952if test "${enable_http+set}" = set; then
3953 enableval="$enable_http"
e6cc62c6 3954
a1622950
VZ
3955 if test "$enableval" = yes; then
3956 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3957 else
3958 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3959 fi
e6cc62c6 3960
a1622950 3961else
e6cc62c6 3962
a1622950
VZ
3963 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3971
e6cc62c6 3972fi;
a1622950
VZ
3973
3974 eval "$ac_cv_use_http"
3975 if test "$no_cache" != 1; then
3976 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3977 fi
3978
3979 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3980 echo "$as_me:$LINENO: result: yes" >&5
3981echo "${ECHO_T}yes" >&6
a1622950 3982 else
e6cc62c6
VS
3983 echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
a1622950 3985 fi
e6cc62c6 3986
a1622950 3987
5005acfe 3988 enablestring=
e6cc62c6
VS
3989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3990echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3991 no_cache=0
3992 # Check whether --enable-fileproto or --disable-fileproto was given.
3993if test "${enable_fileproto+set}" = set; then
3994 enableval="$enable_fileproto"
e6cc62c6 3995
a1622950
VZ
3996 if test "$enableval" = yes; then
3997 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3998 else
3999 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4000 fi
e6cc62c6 4001
a1622950 4002else
e6cc62c6 4003
a1622950
VZ
4004 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4005 if test "x$LINE" != x ; then
4006 eval "DEFAULT_$LINE"
4007 else
4008 no_cache=1
4009 fi
4010
4011 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4012
e6cc62c6 4013fi;
a1622950
VZ
4014
4015 eval "$ac_cv_use_fileproto"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4021 echo "$as_me:$LINENO: result: yes" >&5
4022echo "${ECHO_T}yes" >&6
a1622950 4023 else
e6cc62c6
VS
4024 echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6
a1622950 4026 fi
e6cc62c6 4027
a1622950 4028
5005acfe 4029 enablestring=
e6cc62c6
VS
4030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4031echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4032 no_cache=0
4033 # Check whether --enable-sockets or --disable-sockets was given.
4034if test "${enable_sockets+set}" = set; then
4035 enableval="$enable_sockets"
e6cc62c6 4036
10f2d63a
VZ
4037 if test "$enableval" = yes; then
4038 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4039 else
4040 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4041 fi
e6cc62c6 4042
10f2d63a 4043else
e6cc62c6 4044
10f2d63a
VZ
4045 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4046 if test "x$LINE" != x ; then
4047 eval "DEFAULT_$LINE"
4048 else
4049 no_cache=1
4050 fi
4051
4052 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4053
e6cc62c6 4054fi;
10f2d63a
VZ
4055
4056 eval "$ac_cv_use_sockets"
4057 if test "$no_cache" != 1; then
4058 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4059 fi
4060
4061 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4062 echo "$as_me:$LINENO: result: yes" >&5
4063echo "${ECHO_T}yes" >&6
10f2d63a 4064 else
e6cc62c6
VS
4065 echo "$as_me:$LINENO: result: no" >&5
4066echo "${ECHO_T}no" >&6
10f2d63a 4067 fi
e6cc62c6 4068
8284b0c5 4069
5005acfe 4070 enablestring=
e6cc62c6
VS
4071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4072echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4073 no_cache=0
4074 # Check whether --enable-ole or --disable-ole was given.
4075if test "${enable_ole+set}" = set; then
4076 enableval="$enable_ole"
e6cc62c6 4077
3bce6687
JS
4078 if test "$enableval" = yes; then
4079 ac_cv_use_ole='wxUSE_OLE=yes'
4080 else
4081 ac_cv_use_ole='wxUSE_OLE=no'
4082 fi
e6cc62c6 4083
3bce6687 4084else
e6cc62c6 4085
3bce6687
JS
4086 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4094
e6cc62c6 4095fi;
3bce6687
JS
4096
4097 eval "$ac_cv_use_ole"
4098 if test "$no_cache" != 1; then
4099 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4100 fi
4101
4102 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4103 echo "$as_me:$LINENO: result: yes" >&5
4104echo "${ECHO_T}yes" >&6
3bce6687 4105 else
e6cc62c6
VS
4106 echo "$as_me:$LINENO: result: no" >&5
4107echo "${ECHO_T}no" >&6
3bce6687 4108 fi
e6cc62c6 4109
3bce6687 4110
5005acfe 4111 enablestring=
e6cc62c6
VS
4112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4113echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4114 no_cache=0
4115 # Check whether --enable-dataobj or --disable-dataobj was given.
4116if test "${enable_dataobj+set}" = set; then
4117 enableval="$enable_dataobj"
e6cc62c6 4118
3bce6687
JS
4119 if test "$enableval" = yes; then
4120 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4121 else
4122 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4123 fi
e6cc62c6 4124
3bce6687 4125else
e6cc62c6 4126
3bce6687
JS
4127 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4135
e6cc62c6 4136fi;
3bce6687
JS
4137
4138 eval "$ac_cv_use_dataobj"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4144 echo "$as_me:$LINENO: result: yes" >&5
4145echo "${ECHO_T}yes" >&6
3bce6687 4146 else
e6cc62c6
VS
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
3bce6687 4149 fi
e6cc62c6 4150
3bce6687 4151
52127426 4152
5005acfe 4153 enablestring=
e6cc62c6
VS
4154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4155echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4156 no_cache=0
eb4efbdc
VZ
4157 # Check whether --enable-ipc or --disable-ipc was given.
4158if test "${enable_ipc+set}" = set; then
4159 enableval="$enable_ipc"
e6cc62c6 4160
10f2d63a 4161 if test "$enableval" = yes; then
eb4efbdc 4162 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4163 else
eb4efbdc 4164 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4165 fi
e6cc62c6 4166
10f2d63a 4167else
e6cc62c6 4168
eb4efbdc 4169 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4170 if test "x$LINE" != x ; then
4171 eval "DEFAULT_$LINE"
4172 else
4173 no_cache=1
4174 fi
4175
eb4efbdc 4176 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4177
e6cc62c6 4178fi;
10f2d63a 4179
eb4efbdc 4180 eval "$ac_cv_use_ipc"
10f2d63a 4181 if test "$no_cache" != 1; then
eb4efbdc 4182 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4183 fi
4184
eb4efbdc 4185 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4186 echo "$as_me:$LINENO: result: yes" >&5
4187echo "${ECHO_T}yes" >&6
10f2d63a 4188 else
e6cc62c6
VS
4189 echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
10f2d63a 4191 fi
e6cc62c6 4192
52127426 4193
8284b0c5 4194
5005acfe 4195 enablestring=
e6cc62c6
VS
4196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4197echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4198 no_cache=0
4199 # Check whether --enable-cmdline or --disable-cmdline was given.
4200if test "${enable_cmdline+set}" = set; then
4201 enableval="$enable_cmdline"
e6cc62c6 4202
1e6feb95
VZ
4203 if test "$enableval" = yes; then
4204 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4205 else
4206 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4207 fi
e6cc62c6 4208
1e6feb95 4209else
e6cc62c6 4210
1e6feb95
VZ
4211 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4219
e6cc62c6 4220fi;
1e6feb95
VZ
4221
4222 eval "$ac_cv_use_cmdline"
4223 if test "$no_cache" != 1; then
4224 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4225 fi
4226
4227 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4228 echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6
1e6feb95 4230 else
e6cc62c6
VS
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
1e6feb95 4233 fi
e6cc62c6 4234
1e6feb95 4235
5005acfe 4236 enablestring=
e6cc62c6
VS
4237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4238echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4239 no_cache=0
4240 # Check whether --enable-datetime or --disable-datetime was given.
4241if test "${enable_datetime+set}" = set; then
4242 enableval="$enable_datetime"
e6cc62c6 4243
1e6feb95
VZ
4244 if test "$enableval" = yes; then
4245 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4246 else
4247 ac_cv_use_datetime='wxUSE_DATETIME=no'
4248 fi
e6cc62c6 4249
1e6feb95 4250else
e6cc62c6 4251
1e6feb95
VZ
4252 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4260
e6cc62c6 4261fi;
1e6feb95
VZ
4262
4263 eval "$ac_cv_use_datetime"
4264 if test "$no_cache" != 1; then
4265 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4266 fi
4267
4268 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4269 echo "$as_me:$LINENO: result: yes" >&5
4270echo "${ECHO_T}yes" >&6
1e6feb95 4271 else
e6cc62c6
VS
4272 echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
1e6feb95 4274 fi
e6cc62c6 4275
1e6feb95 4276
5005acfe 4277 enablestring=
e6cc62c6
VS
4278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4279echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4280 no_cache=0
4281 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4282if test "${enable_stopwatch+set}" = set; then
4283 enableval="$enable_stopwatch"
e6cc62c6 4284
1e6feb95
VZ
4285 if test "$enableval" = yes; then
4286 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4287 else
4288 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4289 fi
e6cc62c6 4290
1e6feb95 4291else
e6cc62c6 4292
1e6feb95
VZ
4293 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4294 if test "x$LINE" != x ; then
4295 eval "DEFAULT_$LINE"
4296 else
4297 no_cache=1
4298 fi
4299
4300 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4301
e6cc62c6 4302fi;
1e6feb95
VZ
4303
4304 eval "$ac_cv_use_stopwatch"
4305 if test "$no_cache" != 1; then
4306 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4307 fi
4308
4309 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4310 echo "$as_me:$LINENO: result: yes" >&5
4311echo "${ECHO_T}yes" >&6
1e6feb95 4312 else
e6cc62c6
VS
4313 echo "$as_me:$LINENO: result: no" >&5
4314echo "${ECHO_T}no" >&6
1e6feb95 4315 fi
e6cc62c6 4316
1e6feb95 4317
5005acfe 4318 enablestring=
e6cc62c6
VS
4319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4320echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4321 no_cache=0
eb4efbdc
VZ
4322 # Check whether --enable-dialupman or --disable-dialupman was given.
4323if test "${enable_dialupman+set}" = set; then
4324 enableval="$enable_dialupman"
e6cc62c6 4325
10f2d63a 4326 if test "$enableval" = yes; then
eb4efbdc 4327 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4328 else
eb4efbdc 4329 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4330 fi
e6cc62c6 4331
10f2d63a 4332else
e6cc62c6 4333
eb4efbdc 4334 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4335 if test "x$LINE" != x ; then
4336 eval "DEFAULT_$LINE"
4337 else
4338 no_cache=1
4339 fi
4340
eb4efbdc 4341 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4342
e6cc62c6 4343fi;
10f2d63a 4344
eb4efbdc 4345 eval "$ac_cv_use_dialupman"
10f2d63a 4346 if test "$no_cache" != 1; then
eb4efbdc 4347 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4348 fi
4349
eb4efbdc 4350 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4351 echo "$as_me:$LINENO: result: yes" >&5
4352echo "${ECHO_T}yes" >&6
10f2d63a 4353 else
e6cc62c6
VS
4354 echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
10f2d63a 4356 fi
e6cc62c6 4357
10f2d63a 4358
5005acfe 4359 enablestring=
e6cc62c6
VS
4360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4361echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4362 no_cache=0
4363 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4364if test "${enable_apple_ieee+set}" = set; then
4365 enableval="$enable_apple_ieee"
e6cc62c6 4366
10f2d63a
VZ
4367 if test "$enableval" = yes; then
4368 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4369 else
4370 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4371 fi
e6cc62c6 4372
10f2d63a 4373else
e6cc62c6 4374
10f2d63a
VZ
4375 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4376 if test "x$LINE" != x ; then
4377 eval "DEFAULT_$LINE"
4378 else
4379 no_cache=1
4380 fi
4381
4382 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4383
e6cc62c6 4384fi;
10f2d63a
VZ
4385
4386 eval "$ac_cv_use_apple_ieee"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4392 echo "$as_me:$LINENO: result: yes" >&5
4393echo "${ECHO_T}yes" >&6
10f2d63a 4394 else
e6cc62c6
VS
4395 echo "$as_me:$LINENO: result: no" >&5
4396echo "${ECHO_T}no" >&6
10f2d63a 4397 fi
e6cc62c6 4398
10f2d63a 4399
5005acfe 4400 enablestring=
e6cc62c6
VS
4401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4402echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4403 no_cache=0
1e6feb95
VZ
4404 # Check whether --enable-timer or --disable-timer was given.
4405if test "${enable_timer+set}" = set; then
4406 enableval="$enable_timer"
e6cc62c6 4407
10f2d63a 4408 if test "$enableval" = yes; then
1e6feb95 4409 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4410 else
1e6feb95 4411 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4412 fi
e6cc62c6 4413
10f2d63a 4414else
e6cc62c6 4415
1e6feb95 4416 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4417 if test "x$LINE" != x ; then
4418 eval "DEFAULT_$LINE"
4419 else
4420 no_cache=1
4421 fi
4422
1e6feb95 4423 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4424
e6cc62c6 4425fi;
10f2d63a 4426
1e6feb95 4427 eval "$ac_cv_use_timer"
10f2d63a 4428 if test "$no_cache" != 1; then
1e6feb95 4429 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4430 fi
4431
1e6feb95 4432 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4433 echo "$as_me:$LINENO: result: yes" >&5
4434echo "${ECHO_T}yes" >&6
10f2d63a 4435 else
e6cc62c6
VS
4436 echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6
10f2d63a 4438 fi
e6cc62c6 4439
10f2d63a 4440
5005acfe 4441 enablestring=
e6cc62c6
VS
4442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4443echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4444 no_cache=0
4445 # Check whether --enable-wave or --disable-wave was given.
4446if test "${enable_wave+set}" = set; then
4447 enableval="$enable_wave"
e6cc62c6 4448
10f2d63a
VZ
4449 if test "$enableval" = yes; then
4450 ac_cv_use_wave='wxUSE_WAVE=yes'
4451 else
4452 ac_cv_use_wave='wxUSE_WAVE=no'
4453 fi
e6cc62c6 4454
10f2d63a 4455else
e6cc62c6 4456
10f2d63a
VZ
4457 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4465
e6cc62c6 4466fi;
10f2d63a
VZ
4467
4468 eval "$ac_cv_use_wave"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4474 echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
10f2d63a 4476 else
e6cc62c6
VS
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
10f2d63a 4479 fi
e6cc62c6 4480
10f2d63a 4481
5005acfe 4482 enablestring=
e6cc62c6
VS
4483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4484echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4485 no_cache=0
4486 # Check whether --enable-fraction or --disable-fraction was given.
4487if test "${enable_fraction+set}" = set; then
4488 enableval="$enable_fraction"
e6cc62c6 4489
10f2d63a
VZ
4490 if test "$enableval" = yes; then
4491 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4492 else
4493 ac_cv_use_fraction='wxUSE_FRACTION=no'
4494 fi
e6cc62c6 4495
10f2d63a 4496else
e6cc62c6 4497
10f2d63a
VZ
4498 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4506
e6cc62c6 4507fi;
10f2d63a
VZ
4508
4509 eval "$ac_cv_use_fraction"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4515 echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
10f2d63a 4517 else
e6cc62c6
VS
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
10f2d63a 4520 fi
e6cc62c6 4521
10f2d63a 4522
5005acfe 4523 enablestring=
e6cc62c6
VS
4524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4525echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4526 no_cache=0
4527 # Check whether --enable-dynlib or --disable-dynlib was given.
4528if test "${enable_dynlib+set}" = set; then
4529 enableval="$enable_dynlib"
e6cc62c6 4530
10f2d63a
VZ
4531 if test "$enableval" = yes; then
4532 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4533 else
4534 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4535 fi
e6cc62c6 4536
10f2d63a 4537else
e6cc62c6 4538
10f2d63a
VZ
4539 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4540 if test "x$LINE" != x ; then
4541 eval "DEFAULT_$LINE"
4542 else
4543 no_cache=1
4544 fi
4545
4546 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4547
e6cc62c6 4548fi;
10f2d63a
VZ
4549
4550 eval "$ac_cv_use_dynlib"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4556 echo "$as_me:$LINENO: result: yes" >&5
4557echo "${ECHO_T}yes" >&6
10f2d63a 4558 else
e6cc62c6
VS
4559 echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
10f2d63a 4561 fi
e6cc62c6 4562
10f2d63a 4563
5005acfe 4564 enablestring=
e6cc62c6
VS
4565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4566echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4567 no_cache=0
4568 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4569if test "${enable_dynamicloader+set}" = set; then
4570 enableval="$enable_dynamicloader"
e6cc62c6 4571
0b9ab0bd
RL
4572 if test "$enableval" = yes; then
4573 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4574 else
4575 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4576 fi
e6cc62c6 4577
0b9ab0bd 4578else
e6cc62c6 4579
0b9ab0bd
RL
4580 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4588
e6cc62c6 4589fi;
0b9ab0bd
RL
4590
4591 eval "$ac_cv_use_dynamicloader"
4592 if test "$no_cache" != 1; then
4593 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4594 fi
4595
4596 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4597 echo "$as_me:$LINENO: result: yes" >&5
4598echo "${ECHO_T}yes" >&6
0b9ab0bd 4599 else
e6cc62c6
VS
4600 echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
0b9ab0bd 4602 fi
e6cc62c6 4603
0b9ab0bd 4604
5005acfe 4605 enablestring=
e6cc62c6
VS
4606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4607echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4608 no_cache=0
4609 # Check whether --enable-longlong or --disable-longlong was given.
4610if test "${enable_longlong+set}" = set; then
4611 enableval="$enable_longlong"
e6cc62c6 4612
10f2d63a
VZ
4613 if test "$enableval" = yes; then
4614 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4615 else
4616 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4617 fi
e6cc62c6 4618
10f2d63a 4619else
e6cc62c6 4620
10f2d63a
VZ
4621 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4629
e6cc62c6 4630fi;
10f2d63a
VZ
4631
4632 eval "$ac_cv_use_longlong"
4633 if test "$no_cache" != 1; then
4634 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4635 fi
4636
4637 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4638 echo "$as_me:$LINENO: result: yes" >&5
4639echo "${ECHO_T}yes" >&6
10f2d63a 4640 else
e6cc62c6
VS
4641 echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6
10f2d63a 4643 fi
e6cc62c6 4644
10f2d63a 4645
5005acfe 4646 enablestring=
e6cc62c6
VS
4647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4648echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4649 no_cache=0
4650 # Check whether --enable-geometry or --disable-geometry was given.
4651if test "${enable_geometry+set}" = set; then
4652 enableval="$enable_geometry"
e6cc62c6 4653
e8f65ba6
RR
4654 if test "$enableval" = yes; then
4655 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4656 else
4657 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4658 fi
e6cc62c6 4659
e8f65ba6 4660else
e6cc62c6 4661
e8f65ba6
RR
4662 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4663 if test "x$LINE" != x ; then
4664 eval "DEFAULT_$LINE"
4665 else
4666 no_cache=1
4667 fi
4668
4669 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4670
e6cc62c6 4671fi;
e8f65ba6
RR
4672
4673 eval "$ac_cv_use_geometry"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4679 echo "$as_me:$LINENO: result: yes" >&5
4680echo "${ECHO_T}yes" >&6
e8f65ba6 4681 else
e6cc62c6
VS
4682 echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6
e8f65ba6 4684 fi
e6cc62c6 4685
e8f65ba6 4686
5005acfe 4687 enablestring=
e6cc62c6
VS
4688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4689echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-log or --disable-log was given.
4692if test "${enable_log+set}" = set; then
4693 enableval="$enable_log"
e6cc62c6 4694
10f2d63a
VZ
4695 if test "$enableval" = yes; then
4696 ac_cv_use_log='wxUSE_LOG=yes'
4697 else
4698 ac_cv_use_log='wxUSE_LOG=no'
4699 fi
e6cc62c6 4700
10f2d63a 4701else
e6cc62c6 4702
10f2d63a
VZ
4703 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4711
e6cc62c6 4712fi;
10f2d63a
VZ
4713
4714 eval "$ac_cv_use_log"
4715 if test "$no_cache" != 1; then
4716 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4717 fi
4718
4719 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4720 echo "$as_me:$LINENO: result: yes" >&5
4721echo "${ECHO_T}yes" >&6
10f2d63a 4722 else
e6cc62c6
VS
4723 echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
10f2d63a 4725 fi
e6cc62c6 4726
10f2d63a 4727
5005acfe 4728 enablestring=
e6cc62c6
VS
4729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4730echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4731 no_cache=0
4732 # Check whether --enable-streams or --disable-streams was given.
4733if test "${enable_streams+set}" = set; then
4734 enableval="$enable_streams"
e6cc62c6 4735
10f2d63a
VZ
4736 if test "$enableval" = yes; then
4737 ac_cv_use_streams='wxUSE_STREAMS=yes'
4738 else
4739 ac_cv_use_streams='wxUSE_STREAMS=no'
4740 fi
e6cc62c6 4741
10f2d63a 4742else
e6cc62c6 4743
10f2d63a
VZ
4744 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4752
e6cc62c6 4753fi;
10f2d63a
VZ
4754
4755 eval "$ac_cv_use_streams"
4756 if test "$no_cache" != 1; then
4757 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4758 fi
4759
4760 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4761 echo "$as_me:$LINENO: result: yes" >&5
4762echo "${ECHO_T}yes" >&6
10f2d63a 4763 else
e6cc62c6
VS
4764 echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6
10f2d63a 4766 fi
e6cc62c6 4767
10f2d63a 4768
5005acfe 4769 enablestring=
e6cc62c6
VS
4770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4771echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4772 no_cache=0
4773 # Check whether --enable-file or --disable-file was given.
4774if test "${enable_file+set}" = set; then
4775 enableval="$enable_file"
e6cc62c6 4776
10f2d63a
VZ
4777 if test "$enableval" = yes; then
4778 ac_cv_use_file='wxUSE_FILE=yes'
4779 else
4780 ac_cv_use_file='wxUSE_FILE=no'
4781 fi
e6cc62c6 4782
10f2d63a 4783else
e6cc62c6 4784
10f2d63a
VZ
4785 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4786 if test "x$LINE" != x ; then
4787 eval "DEFAULT_$LINE"
4788 else
4789 no_cache=1
4790 fi
4791
4792 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4793
e6cc62c6 4794fi;
10f2d63a
VZ
4795
4796 eval "$ac_cv_use_file"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4802 echo "$as_me:$LINENO: result: yes" >&5
4803echo "${ECHO_T}yes" >&6
10f2d63a 4804 else
e6cc62c6
VS
4805 echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6
10f2d63a 4807 fi
e6cc62c6 4808
10f2d63a 4809
5005acfe 4810 enablestring=
e6cc62c6
VS
4811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4812echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4813 no_cache=0
1e6feb95
VZ
4814 # Check whether --enable-ffile or --disable-ffile was given.
4815if test "${enable_ffile+set}" = set; then
4816 enableval="$enable_ffile"
e6cc62c6 4817
10f2d63a 4818 if test "$enableval" = yes; then
1e6feb95 4819 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4820 else
1e6feb95 4821 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4822 fi
e6cc62c6 4823
10f2d63a 4824else
e6cc62c6 4825
1e6feb95 4826 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4827 if test "x$LINE" != x ; then
4828 eval "DEFAULT_$LINE"
4829 else
4830 no_cache=1
4831 fi
4832
1e6feb95 4833 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4834
e6cc62c6 4835fi;
10f2d63a 4836
1e6feb95 4837 eval "$ac_cv_use_ffile"
10f2d63a 4838 if test "$no_cache" != 1; then
1e6feb95 4839 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4840 fi
4841
1e6feb95 4842 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4843 echo "$as_me:$LINENO: result: yes" >&5
4844echo "${ECHO_T}yes" >&6
10f2d63a 4845 else
e6cc62c6
VS
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
10f2d63a 4848 fi
e6cc62c6 4849
10f2d63a 4850
5005acfe 4851 enablestring=
e6cc62c6
VS
4852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4853echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4854 no_cache=0
4855 # Check whether --enable-textbuf or --disable-textbuf was given.
4856if test "${enable_textbuf+set}" = set; then
4857 enableval="$enable_textbuf"
e6cc62c6 4858
a3a584a7
VZ
4859 if test "$enableval" = yes; then
4860 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4861 else
4862 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4863 fi
e6cc62c6 4864
a3a584a7 4865else
e6cc62c6 4866
a3a584a7
VZ
4867 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
4874 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4875
e6cc62c6 4876fi;
a3a584a7
VZ
4877
4878 eval "$ac_cv_use_textbuf"
4879 if test "$no_cache" != 1; then
4880 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4881 fi
4882
4883 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4884 echo "$as_me:$LINENO: result: yes" >&5
4885echo "${ECHO_T}yes" >&6
a3a584a7 4886 else
e6cc62c6
VS
4887 echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6
a3a584a7 4889 fi
e6cc62c6 4890
a3a584a7 4891
5005acfe 4892 enablestring=
e6cc62c6
VS
4893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4894echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4895 no_cache=0
1e6feb95
VZ
4896 # Check whether --enable-textfile or --disable-textfile was given.
4897if test "${enable_textfile+set}" = set; then
4898 enableval="$enable_textfile"
e6cc62c6 4899
10f2d63a 4900 if test "$enableval" = yes; then
1e6feb95 4901 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4902 else
1e6feb95 4903 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4904 fi
e6cc62c6 4905
10f2d63a 4906else
e6cc62c6 4907
1e6feb95 4908 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4909 if test "x$LINE" != x ; then
4910 eval "DEFAULT_$LINE"
4911 else
4912 no_cache=1
4913 fi
4914
1e6feb95 4915 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4916
e6cc62c6 4917fi;
10f2d63a 4918
1e6feb95 4919 eval "$ac_cv_use_textfile"
10f2d63a 4920 if test "$no_cache" != 1; then
1e6feb95 4921 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4922 fi
4923
1e6feb95 4924 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4925 echo "$as_me:$LINENO: result: yes" >&5
4926echo "${ECHO_T}yes" >&6
10f2d63a 4927 else
e6cc62c6
VS
4928 echo "$as_me:$LINENO: result: no" >&5
4929echo "${ECHO_T}no" >&6
10f2d63a 4930 fi
e6cc62c6 4931
10f2d63a 4932
5005acfe 4933 enablestring=
e6cc62c6
VS
4934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4935echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4936 no_cache=0
1e6feb95
VZ
4937 # Check whether --enable-fontmap or --disable-fontmap was given.
4938if test "${enable_fontmap+set}" = set; then
4939 enableval="$enable_fontmap"
e6cc62c6 4940
10f2d63a 4941 if test "$enableval" = yes; then
1e6feb95 4942 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4943 else
1e6feb95 4944 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4945 fi
e6cc62c6 4946
10f2d63a 4947else
e6cc62c6 4948
1e6feb95 4949 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
1e6feb95 4956 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4957
e6cc62c6 4958fi;
10f2d63a 4959
1e6feb95 4960 eval "$ac_cv_use_fontmap"
10f2d63a 4961 if test "$no_cache" != 1; then
1e6feb95 4962 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4963 fi
4964
1e6feb95 4965 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4966 echo "$as_me:$LINENO: result: yes" >&5
4967echo "${ECHO_T}yes" >&6
10f2d63a 4968 else
e6cc62c6
VS
4969 echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6
10f2d63a 4971 fi
e6cc62c6 4972
10f2d63a 4973
5005acfe 4974 enablestring=
e6cc62c6
VS
4975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4976echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4977 no_cache=0
1e6feb95
VZ
4978 # Check whether --enable-unicode or --disable-unicode was given.
4979if test "${enable_unicode+set}" = set; then
4980 enableval="$enable_unicode"
e6cc62c6 4981
1e6feb95
VZ
4982 if test "$enableval" = yes; then
4983 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4984 else
4985 ac_cv_use_unicode='wxUSE_UNICODE=no'
4986 fi
e6cc62c6 4987
1e6feb95 4988else
e6cc62c6 4989
1e6feb95
VZ
4990 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4998
e6cc62c6 4999fi;
1e6feb95
VZ
5000
5001 eval "$ac_cv_use_unicode"
5002 if test "$no_cache" != 1; then
5003 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5004 fi
5005
5006 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5007 echo "$as_me:$LINENO: result: yes" >&5
5008echo "${ECHO_T}yes" >&6
1e6feb95 5009 else
e6cc62c6
VS
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
1e6feb95 5012 fi
e6cc62c6 5013
1e6feb95 5014
5005acfe 5015 enablestring=
e6cc62c6
VS
5016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5017echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5018 no_cache=0
5019 # Check whether --enable-mslu or --disable-mslu was given.
5020if test "${enable_mslu+set}" = set; then
5021 enableval="$enable_mslu"
e6cc62c6 5022
a72a4bfa
VS
5023 if test "$enableval" = yes; then
5024 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5025 else
5026 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5027 fi
e6cc62c6 5028
a72a4bfa 5029else
e6cc62c6 5030
a72a4bfa
VS
5031 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5032 if test "x$LINE" != x ; then
5033 eval "DEFAULT_$LINE"
5034 else
5035 no_cache=1
5036 fi
5037
5038 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5039
e6cc62c6 5040fi;
a72a4bfa
VS
5041
5042 eval "$ac_cv_use_mslu"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5048 echo "$as_me:$LINENO: result: yes" >&5
5049echo "${ECHO_T}yes" >&6
a72a4bfa 5050 else
e6cc62c6
VS
5051 echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
a72a4bfa 5053 fi
e6cc62c6 5054
a72a4bfa 5055
5005acfe 5056 enablestring=
e6cc62c6
VS
5057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5058echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5059 no_cache=0
5060 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5061if test "${enable_wxprintfv+set}" = set; then
5062 enableval="$enable_wxprintfv"
e6cc62c6 5063
1e6feb95 5064 if test "$enableval" = yes; then
10f2d63a
VZ
5065 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5066 else
5067 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5068 fi
e6cc62c6 5069
10f2d63a 5070else
e6cc62c6 5071
10f2d63a
VZ
5072 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5080
e6cc62c6 5081fi;
10f2d63a
VZ
5082
5083 eval "$ac_cv_use_wxprintfv"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5089 echo "$as_me:$LINENO: result: yes" >&5
5090echo "${ECHO_T}yes" >&6
10f2d63a 5091 else
e6cc62c6
VS
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
10f2d63a 5094 fi
e6cc62c6 5095
10f2d63a 5096
5005acfe 5097 enablestring=
e6cc62c6
VS
5098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5099echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5100 no_cache=0
5101 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5102if test "${enable_std_iostreams+set}" = set; then
5103 enableval="$enable_std_iostreams"
e6cc62c6 5104
10f2d63a
VZ
5105 if test "$enableval" = yes; then
5106 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5107 else
5108 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5109 fi
e6cc62c6 5110
10f2d63a 5111else
e6cc62c6 5112
10f2d63a
VZ
5113 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5121
e6cc62c6 5122fi;
10f2d63a
VZ
5123
5124 eval "$ac_cv_use_std_iostreams"
5125 if test "$no_cache" != 1; then
5126 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5127 fi
5128
5129 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5130 echo "$as_me:$LINENO: result: yes" >&5
5131echo "${ECHO_T}yes" >&6
10f2d63a 5132 else
e6cc62c6
VS
5133 echo "$as_me:$LINENO: result: no" >&5
5134echo "${ECHO_T}no" >&6
10f2d63a 5135 fi
e6cc62c6 5136
10f2d63a 5137
5005acfe 5138 enablestring=
e6cc62c6
VS
5139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5140echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5141 no_cache=0
5142 # Check whether --enable-filesystem or --disable-filesystem was given.
5143if test "${enable_filesystem+set}" = set; then
5144 enableval="$enable_filesystem"
e6cc62c6 5145
24528b0c
VS
5146 if test "$enableval" = yes; then
5147 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5148 else
5149 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5150 fi
e6cc62c6 5151
24528b0c 5152else
e6cc62c6 5153
24528b0c
VS
5154 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5162
e6cc62c6 5163fi;
24528b0c
VS
5164
5165 eval "$ac_cv_use_filesystem"
5166 if test "$no_cache" != 1; then
5167 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5168 fi
5169
5170 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5171 echo "$as_me:$LINENO: result: yes" >&5
5172echo "${ECHO_T}yes" >&6
24528b0c 5173 else
e6cc62c6
VS
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
24528b0c 5176 fi
e6cc62c6 5177
24528b0c 5178
5005acfe 5179 enablestring=
e6cc62c6
VS
5180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5181echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5182 no_cache=0
5183 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5184if test "${enable_fs_inet+set}" = set; then
5185 enableval="$enable_fs_inet"
e6cc62c6 5186
10f2d63a
VZ
5187 if test "$enableval" = yes; then
5188 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5189 else
5190 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5191 fi
e6cc62c6 5192
10f2d63a 5193else
e6cc62c6 5194
10f2d63a
VZ
5195 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5203
e6cc62c6 5204fi;
10f2d63a
VZ
5205
5206 eval "$ac_cv_use_fs_inet"
5207 if test "$no_cache" != 1; then
5208 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5209 fi
5210
5211 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5212 echo "$as_me:$LINENO: result: yes" >&5
5213echo "${ECHO_T}yes" >&6
10f2d63a 5214 else
e6cc62c6
VS
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
10f2d63a 5217 fi
e6cc62c6 5218
10f2d63a 5219
5005acfe 5220 enablestring=
e6cc62c6
VS
5221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5222echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5223 no_cache=0
5224 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5225if test "${enable_fs_zip+set}" = set; then
5226 enableval="$enable_fs_zip"
e6cc62c6 5227
10f2d63a
VZ
5228 if test "$enableval" = yes; then
5229 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5230 else
5231 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5232 fi
e6cc62c6 5233
10f2d63a 5234else
e6cc62c6 5235
10f2d63a
VZ
5236 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5237 if test "x$LINE" != x ; then
5238 eval "DEFAULT_$LINE"
5239 else
5240 no_cache=1
5241 fi
5242
5243 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5244
e6cc62c6 5245fi;
10f2d63a
VZ
5246
5247 eval "$ac_cv_use_fs_zip"
5248 if test "$no_cache" != 1; then
5249 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5250 fi
5251
5252 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5253 echo "$as_me:$LINENO: result: yes" >&5
5254echo "${ECHO_T}yes" >&6
10f2d63a 5255 else
e6cc62c6
VS
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
10f2d63a 5258 fi
e6cc62c6 5259
10f2d63a 5260
5005acfe 5261 enablestring=
e6cc62c6
VS
5262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5263echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5264 no_cache=0
5265 # Check whether --enable-zipstream or --disable-zipstream was given.
5266if test "${enable_zipstream+set}" = set; then
5267 enableval="$enable_zipstream"
e6cc62c6 5268
10f2d63a
VZ
5269 if test "$enableval" = yes; then
5270 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5271 else
5272 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5273 fi
e6cc62c6 5274
10f2d63a 5275else
e6cc62c6 5276
10f2d63a
VZ
5277 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5285
e6cc62c6 5286fi;
10f2d63a
VZ
5287
5288 eval "$ac_cv_use_zipstream"
5289 if test "$no_cache" != 1; then
5290 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5291 fi
5292
5293 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5294 echo "$as_me:$LINENO: result: yes" >&5
5295echo "${ECHO_T}yes" >&6
10f2d63a 5296 else
e6cc62c6
VS
5297 echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6
10f2d63a 5299 fi
e6cc62c6 5300
8284b0c5 5301
52127426 5302
5005acfe 5303 enablestring=
e6cc62c6
VS
5304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5305echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5306 no_cache=0
5307 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5308if test "${enable_catch_segvs+set}" = set; then
5309 enableval="$enable_catch_segvs"
e6cc62c6 5310
eb4efbdc
VZ
5311 if test "$enableval" = yes; then
5312 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5313 else
5314 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5315 fi
e6cc62c6 5316
eb4efbdc 5317else
e6cc62c6 5318
eb4efbdc
VZ
5319 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5320 if test "x$LINE" != x ; then
5321 eval "DEFAULT_$LINE"
5322 else
5323 no_cache=1
5324 fi
5325
5326 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5327
e6cc62c6 5328fi;
eb4efbdc
VZ
5329
5330 eval "$ac_cv_use_catch_segvs"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5336 echo "$as_me:$LINENO: result: yes" >&5
5337echo "${ECHO_T}yes" >&6
eb4efbdc 5338 else
e6cc62c6
VS
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
eb4efbdc 5341 fi
e6cc62c6 5342
eb4efbdc 5343
5005acfe 5344 enablestring=
e6cc62c6
VS
5345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5346echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5347 no_cache=0
5348 # Check whether --enable-snglinst or --disable-snglinst was given.
5349if test "${enable_snglinst+set}" = set; then
5350 enableval="$enable_snglinst"
e6cc62c6 5351
4f3c5f06
VZ
5352 if test "$enableval" = yes; then
5353 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5354 else
5355 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5356 fi
e6cc62c6 5357
4f3c5f06 5358else
e6cc62c6 5359
4f3c5f06
VZ
5360 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5361 if test "x$LINE" != x ; then
5362 eval "DEFAULT_$LINE"
5363 else
5364 no_cache=1
5365 fi
5366
5367 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5368
e6cc62c6 5369fi;
4f3c5f06
VZ
5370
5371 eval "$ac_cv_use_snglinst"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5377 echo "$as_me:$LINENO: result: yes" >&5
5378echo "${ECHO_T}yes" >&6
4f3c5f06 5379 else
e6cc62c6
VS
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
4f3c5f06 5382 fi
e6cc62c6 5383
52127426 5384
8284b0c5 5385
5005acfe 5386 enablestring=
e6cc62c6
VS
5387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5388echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5389 no_cache=0
5390 # Check whether --enable-mimetype or --disable-mimetype was given.
5391if test "${enable_mimetype+set}" = set; then
5392 enableval="$enable_mimetype"
e6cc62c6 5393
1e6feb95
VZ
5394 if test "$enableval" = yes; then
5395 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5396 else
5397 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5398 fi
e6cc62c6 5399
1e6feb95 5400else
e6cc62c6 5401
1e6feb95
VZ
5402 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5403 if test "x$LINE" != x ; then
5404 eval "DEFAULT_$LINE"
5405 else
5406 no_cache=1
5407 fi
5408
5409 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5410
e6cc62c6 5411fi;
1e6feb95
VZ
5412
5413 eval "$ac_cv_use_mimetype"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5419 echo "$as_me:$LINENO: result: yes" >&5
5420echo "${ECHO_T}yes" >&6
1e6feb95 5421 else
e6cc62c6
VS
5422 echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6
1e6feb95 5424 fi
e6cc62c6 5425
1e6feb95 5426
5005acfe 5427 enablestring=
e6cc62c6
VS
5428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5429echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5430 no_cache=0
5431 # Check whether --enable-system_options or --disable-system_options was given.
5432if test "${enable_system_options+set}" = set; then
5433 enableval="$enable_system_options"
e6cc62c6 5434
3e44f09d
VZ
5435 if test "$enableval" = yes; then
5436 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5437 else
5438 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5439 fi
e6cc62c6 5440
3e44f09d 5441else
e6cc62c6 5442
3e44f09d
VZ
5443 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5451
e6cc62c6 5452fi;
3e44f09d
VZ
5453
5454 eval "$ac_cv_use_system_options"
5455 if test "$no_cache" != 1; then
5456 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5457 fi
5458
5459 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5460 echo "$as_me:$LINENO: result: yes" >&5
5461echo "${ECHO_T}yes" >&6
3e44f09d 5462 else
e6cc62c6
VS
5463 echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
3e44f09d 5465 fi
e6cc62c6 5466
8284b0c5 5467
52127426 5468
5005acfe 5469 enablestring=
e6cc62c6
VS
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5471echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5472 no_cache=0
5473 # Check whether --enable-url or --disable-url was given.
5474if test "${enable_url+set}" = set; then
5475 enableval="$enable_url"
e6cc62c6 5476
4cdb0ab0
VS
5477 if test "$enableval" = yes; then
5478 ac_cv_use_url='wxUSE_URL=yes'
5479 else
5480 ac_cv_use_url='wxUSE_URL=no'
5481 fi
e6cc62c6 5482
4cdb0ab0 5483else
e6cc62c6 5484
4cdb0ab0
VS
5485 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5493
e6cc62c6 5494fi;
4cdb0ab0
VS
5495
5496 eval "$ac_cv_use_url"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5502 echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
4cdb0ab0 5504 else
e6cc62c6
VS
5505 echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6
4cdb0ab0 5507 fi
e6cc62c6 5508
4cdb0ab0 5509
5005acfe 5510 enablestring=
e6cc62c6
VS
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5512echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5513 no_cache=0
5514 # Check whether --enable-protocol or --disable-protocol was given.
5515if test "${enable_protocol+set}" = set; then
5516 enableval="$enable_protocol"
e6cc62c6 5517
4cdb0ab0
VS
5518 if test "$enableval" = yes; then
5519 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5520 else
5521 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5522 fi
e6cc62c6 5523
4cdb0ab0 5524else
e6cc62c6 5525
4cdb0ab0
VS
5526 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
5533 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5534
e6cc62c6 5535fi;
4cdb0ab0
VS
5536
5537 eval "$ac_cv_use_protocol"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5543 echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
4cdb0ab0 5545 else
e6cc62c6
VS
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
4cdb0ab0 5548 fi
e6cc62c6 5549
4cdb0ab0 5550
5005acfe 5551 enablestring=
e6cc62c6
VS
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5553echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5554 no_cache=0
5555 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5556if test "${enable_protocol_http+set}" = set; then
5557 enableval="$enable_protocol_http"
e6cc62c6 5558
4cdb0ab0
VS
5559 if test "$enableval" = yes; then
5560 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5561 else
5562 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5563 fi
e6cc62c6 5564
4cdb0ab0 5565else
e6cc62c6 5566
4cdb0ab0
VS
5567 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5575
e6cc62c6 5576fi;
4cdb0ab0
VS
5577
5578 eval "$ac_cv_use_protocol_http"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
4cdb0ab0 5586 else
e6cc62c6
VS
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
4cdb0ab0 5589 fi
e6cc62c6 5590
4cdb0ab0 5591
5005acfe 5592 enablestring=
e6cc62c6
VS
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5594echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5595 no_cache=0
5596 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5597if test "${enable_protocol_ftp+set}" = set; then
5598 enableval="$enable_protocol_ftp"
e6cc62c6 5599
4cdb0ab0
VS
5600 if test "$enableval" = yes; then
5601 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5602 else
5603 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5604 fi
e6cc62c6 5605
4cdb0ab0 5606else
e6cc62c6 5607
4cdb0ab0
VS
5608 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5616
e6cc62c6 5617fi;
4cdb0ab0
VS
5618
5619 eval "$ac_cv_use_protocol_ftp"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
4cdb0ab0 5627 else
e6cc62c6
VS
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
4cdb0ab0 5630 fi
e6cc62c6 5631
4cdb0ab0 5632
5005acfe 5633 enablestring=
e6cc62c6
VS
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5635echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5636 no_cache=0
5637 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5638if test "${enable_protocol_file+set}" = set; then
5639 enableval="$enable_protocol_file"
e6cc62c6 5640
4cdb0ab0
VS
5641 if test "$enableval" = yes; then
5642 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5643 else
5644 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5645 fi
e6cc62c6 5646
4cdb0ab0 5647else
e6cc62c6 5648
4cdb0ab0
VS
5649 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
5656 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5657
e6cc62c6 5658fi;
4cdb0ab0
VS
5659
5660 eval "$ac_cv_use_protocol_file"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5666 echo "$as_me:$LINENO: result: yes" >&5
5667echo "${ECHO_T}yes" >&6
4cdb0ab0 5668 else
e6cc62c6
VS
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
4cdb0ab0 5671 fi
e6cc62c6 5672
52127426 5673
8284b0c5
MB
5674
5675
5676
5005acfe 5677 enablestring=
e6cc62c6
VS
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5680 no_cache=0
5681 # Check whether --enable-threads or --disable-threads was given.
5682if test "${enable_threads+set}" = set; then
5683 enableval="$enable_threads"
e6cc62c6 5684
10f2d63a
VZ
5685 if test "$enableval" = yes; then
5686 ac_cv_use_threads='wxUSE_THREADS=yes'
5687 else
5688 ac_cv_use_threads='wxUSE_THREADS=no'
5689 fi
e6cc62c6 5690
10f2d63a 5691else
e6cc62c6 5692
10f2d63a
VZ
5693 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5701
e6cc62c6 5702fi;
10f2d63a
VZ
5703
5704 eval "$ac_cv_use_threads"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
10f2d63a 5712 else
e6cc62c6
VS
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
10f2d63a 5715 fi
e6cc62c6 5716
10f2d63a 5717
b12915c1
VZ
5718if test "$wxUSE_GUI" = "yes"; then
5719
8284b0c5
MB
5720
5721
5005acfe 5722 enablestring=
e6cc62c6
VS
5723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5724echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5725 no_cache=0
5726 # Check whether --enable-docview or --disable-docview was given.
5727if test "${enable_docview+set}" = set; then
5728 enableval="$enable_docview"
e6cc62c6 5729
10f2d63a
VZ
5730 if test "$enableval" = yes; then
5731 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5732 else
5733 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5734 fi
e6cc62c6 5735
10f2d63a 5736else
e6cc62c6 5737
10f2d63a
VZ
5738 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5739 if test "x$LINE" != x ; then
5740 eval "DEFAULT_$LINE"
5741 else
5742 no_cache=1
5743 fi
5744
5745 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5746
e6cc62c6 5747fi;
10f2d63a
VZ
5748
5749 eval "$ac_cv_use_docview"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5755 echo "$as_me:$LINENO: result: yes" >&5
5756echo "${ECHO_T}yes" >&6
10f2d63a 5757 else
e6cc62c6
VS
5758 echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
10f2d63a 5760 fi
e6cc62c6 5761
10f2d63a 5762
5005acfe 5763 enablestring=
e6cc62c6
VS
5764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5765echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5766 no_cache=0
5767 # Check whether --enable-help or --disable-help was given.
5768if test "${enable_help+set}" = set; then
5769 enableval="$enable_help"
e6cc62c6 5770
10f2d63a
VZ
5771 if test "$enableval" = yes; then
5772 ac_cv_use_help='wxUSE_HELP=yes'
5773 else
5774 ac_cv_use_help='wxUSE_HELP=no'
5775 fi
e6cc62c6 5776
10f2d63a 5777else
e6cc62c6 5778
10f2d63a
VZ
5779 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5780 if test "x$LINE" != x ; then
5781 eval "DEFAULT_$LINE"
5782 else
5783 no_cache=1
5784 fi
5785
5786 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5787
e6cc62c6 5788fi;
10f2d63a
VZ
5789
5790 eval "$ac_cv_use_help"
5791 if test "$no_cache" != 1; then
5792 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5793 fi
5794
5795 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5796 echo "$as_me:$LINENO: result: yes" >&5
5797echo "${ECHO_T}yes" >&6
10f2d63a 5798 else
e6cc62c6
VS
5799 echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
10f2d63a 5801 fi
e6cc62c6 5802
10f2d63a 5803
5005acfe 5804 enablestring=
e6cc62c6
VS
5805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5806echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5807 no_cache=0
5808 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5809if test "${enable_mshtmlhelp+set}" = set; then
5810 enableval="$enable_mshtmlhelp"
e6cc62c6 5811
29fd3c0c
VS
5812 if test "$enableval" = yes; then
5813 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5814 else
5815 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5816 fi
e6cc62c6 5817
29fd3c0c 5818else
e6cc62c6 5819
29fd3c0c
VS
5820 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5828
e6cc62c6 5829fi;
29fd3c0c
VS
5830
5831 eval "$ac_cv_use_mshtmlhelp"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5837 echo "$as_me:$LINENO: result: yes" >&5
5838echo "${ECHO_T}yes" >&6
29fd3c0c 5839 else
e6cc62c6
VS
5840 echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
29fd3c0c 5842 fi
e6cc62c6 5843
29fd3c0c 5844
5005acfe 5845 enablestring=
e6cc62c6
VS
5846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5847echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5848 no_cache=0
5849 # Check whether --enable-html or --disable-html was given.
5850if test "${enable_html+set}" = set; then
5851 enableval="$enable_html"
e6cc62c6 5852
3379ed37
VZ
5853 if test "$enableval" = yes; then
5854 ac_cv_use_html='wxUSE_HTML=yes'
5855 else
5856 ac_cv_use_html='wxUSE_HTML=no'
5857 fi
e6cc62c6 5858
3379ed37 5859else
e6cc62c6 5860
3379ed37
VZ
5861 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5862 if test "x$LINE" != x ; then
5863 eval "DEFAULT_$LINE"
5864 else
5865 no_cache=1
5866 fi
5867
5868 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5869
e6cc62c6 5870fi;
3379ed37
VZ
5871
5872 eval "$ac_cv_use_html"
5873 if test "$no_cache" != 1; then
5874 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5875 fi
5876
5877 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5878 echo "$as_me:$LINENO: result: yes" >&5
5879echo "${ECHO_T}yes" >&6
3379ed37 5880 else
e6cc62c6
VS
5881 echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6
3379ed37 5883 fi
e6cc62c6 5884
3379ed37 5885
5005acfe 5886 enablestring=
e6cc62c6
VS
5887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5888echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5889 no_cache=0
5890 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5891if test "${enable_htmlhelp+set}" = set; then
5892 enableval="$enable_htmlhelp"
e6cc62c6 5893
3379ed37
VZ
5894 if test "$enableval" = yes; then
5895 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5896 else
5897 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5898 fi
e6cc62c6 5899
3379ed37 5900else
e6cc62c6 5901
3379ed37
VZ
5902 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5903 if test "x$LINE" != x ; then
5904 eval "DEFAULT_$LINE"
5905 else
5906 no_cache=1
5907 fi
5908
5909 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5910
e6cc62c6 5911fi;
3379ed37
VZ
5912
5913 eval "$ac_cv_use_htmlhelp"
5914 if test "$no_cache" != 1; then
5915 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5916 fi
5917
5918 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5919 echo "$as_me:$LINENO: result: yes" >&5
5920echo "${ECHO_T}yes" >&6
3379ed37 5921 else
e6cc62c6
VS
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
3379ed37 5924 fi
e6cc62c6 5925
3379ed37 5926
5005acfe 5927 enablestring=
e6cc62c6
VS
5928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5929echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5930 no_cache=0
5931 # Check whether --enable-constraints or --disable-constraints was given.
5932if test "${enable_constraints+set}" = set; then
5933 enableval="$enable_constraints"
e6cc62c6 5934
10f2d63a
VZ
5935 if test "$enableval" = yes; then
5936 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5937 else
5938 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5939 fi
e6cc62c6 5940
10f2d63a 5941else
e6cc62c6 5942
10f2d63a
VZ
5943 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5951
e6cc62c6 5952fi;
10f2d63a
VZ
5953
5954 eval "$ac_cv_use_constraints"
5955 if test "$no_cache" != 1; then
5956 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5957 fi
5958
5959 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5960 echo "$as_me:$LINENO: result: yes" >&5
5961echo "${ECHO_T}yes" >&6
10f2d63a 5962 else
e6cc62c6
VS
5963 echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6
10f2d63a 5965 fi
e6cc62c6 5966
10f2d63a 5967
5005acfe 5968 enablestring=
e6cc62c6
VS
5969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5970echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5971 no_cache=0
5972 # Check whether --enable-printarch or --disable-printarch was given.
5973if test "${enable_printarch+set}" = set; then
5974 enableval="$enable_printarch"
e6cc62c6 5975
10f2d63a
VZ
5976 if test "$enableval" = yes; then
5977 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5978 else
5979 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5980 fi
e6cc62c6 5981
10f2d63a 5982else
e6cc62c6 5983
10f2d63a
VZ
5984 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5992
e6cc62c6 5993fi;
10f2d63a
VZ
5994
5995 eval "$ac_cv_use_printarch"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6001 echo "$as_me:$LINENO: result: yes" >&5
6002echo "${ECHO_T}yes" >&6
10f2d63a 6003 else
e6cc62c6
VS
6004 echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
10f2d63a 6006 fi
e6cc62c6 6007
10f2d63a 6008
5005acfe 6009 enablestring=
e6cc62c6
VS
6010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6011echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6012 no_cache=0
6013 # Check whether --enable-mdi or --disable-mdi was given.
6014if test "${enable_mdi+set}" = set; then
6015 enableval="$enable_mdi"
e6cc62c6 6016
10f2d63a
VZ
6017 if test "$enableval" = yes; then
6018 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6019 else
6020 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6021 fi
e6cc62c6 6022
10f2d63a 6023else
e6cc62c6 6024
10f2d63a
VZ
6025 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6026 if test "x$LINE" != x ; then
6027 eval "DEFAULT_$LINE"
6028 else
6029 no_cache=1
6030 fi
6031
6032 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6033
e6cc62c6 6034fi;
10f2d63a
VZ
6035
6036 eval "$ac_cv_use_mdi"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6042 echo "$as_me:$LINENO: result: yes" >&5
6043echo "${ECHO_T}yes" >&6
10f2d63a 6044 else
e6cc62c6
VS
6045 echo "$as_me:$LINENO: result: no" >&5
6046echo "${ECHO_T}no" >&6
10f2d63a 6047 fi
e6cc62c6 6048
698dcdb6 6049
5005acfe 6050 enablestring=
e6cc62c6
VS
6051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6052echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6053 no_cache=0
6054 # Check whether --enable-loggui or --disable-loggui was given.
6055if test "${enable_loggui+set}" = set; then
6056 enableval="$enable_loggui"
e6cc62c6 6057
1e6feb95
VZ
6058 if test "$enableval" = yes; then
6059 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6060 else
6061 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6062 fi
e6cc62c6 6063
1e6feb95 6064else
e6cc62c6 6065
1e6feb95
VZ
6066 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6074
e6cc62c6 6075fi;
1e6feb95
VZ
6076
6077 eval "$ac_cv_use_loggui"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6083 echo "$as_me:$LINENO: result: yes" >&5
6084echo "${ECHO_T}yes" >&6
1e6feb95 6085 else
e6cc62c6
VS
6086 echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6
1e6feb95 6088 fi
e6cc62c6 6089
1e6feb95 6090
5005acfe 6091 enablestring=
e6cc62c6
VS
6092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6093echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6094 no_cache=0
6095 # Check whether --enable-logwin or --disable-logwin was given.
6096if test "${enable_logwin+set}" = set; then
6097 enableval="$enable_logwin"
e6cc62c6 6098
1e6feb95
VZ
6099 if test "$enableval" = yes; then
6100 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6101 else
6102 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6103 fi
e6cc62c6 6104
1e6feb95 6105else
e6cc62c6 6106
1e6feb95
VZ
6107 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6108 if test "x$LINE" != x ; then
6109 eval "DEFAULT_$LINE"
6110 else
6111 no_cache=1
6112 fi
6113
6114 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6115
e6cc62c6 6116fi;
1e6feb95
VZ
6117
6118 eval "$ac_cv_use_logwin"
6119 if test "$no_cache" != 1; then
6120 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6121 fi
6122
6123 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6124 echo "$as_me:$LINENO: result: yes" >&5
6125echo "${ECHO_T}yes" >&6
1e6feb95 6126 else
e6cc62c6
VS
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
1e6feb95 6129 fi
e6cc62c6 6130
1e6feb95 6131
5005acfe 6132 enablestring=
e6cc62c6
VS
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6135 no_cache=0
6136 # Check whether --enable-logdialog or --disable-logdialog was given.
6137if test "${enable_logdialog+set}" = set; then
6138 enableval="$enable_logdialog"
e6cc62c6 6139
69d27ff7
MB
6140 if test "$enableval" = yes; then
6141 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6142 else
6143 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6144 fi
e6cc62c6 6145
69d27ff7 6146else
e6cc62c6 6147
69d27ff7
MB
6148 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6156
e6cc62c6 6157fi;
69d27ff7
MB
6158
6159 eval "$ac_cv_use_logdialog"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
69d27ff7 6167 else
e6cc62c6
VS
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
69d27ff7 6170 fi
e6cc62c6 6171
8284b0c5 6172
52127426 6173
5005acfe 6174 enablestring=
e6cc62c6
VS
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6176echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6177 no_cache=0
6178 # Check whether --enable-postscript or --disable-postscript was given.
6179if test "${enable_postscript+set}" = set; then
6180 enableval="$enable_postscript"
e6cc62c6 6181
10f2d63a
VZ
6182 if test "$enableval" = yes; then
6183 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6184 else
6185 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6186 fi
e6cc62c6 6187
10f2d63a 6188else
e6cc62c6 6189
10f2d63a
VZ
6190 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6198
e6cc62c6 6199fi;
10f2d63a
VZ
6200
6201 eval "$ac_cv_use_postscript"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6207 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
10f2d63a 6209 else
e6cc62c6
VS
6210 echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6
10f2d63a 6212 fi
e6cc62c6 6213
8284b0c5
MB
6214
6215
52127426 6216
8284b0c5 6217
5005acfe 6218 enablestring=
e6cc62c6
VS
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6221 no_cache=0
3c907f20
VZ
6222 # Check whether --enable-prologio or --disable-prologio was given.
6223if test "${enable_prologio+set}" = set; then
6224 enableval="$enable_prologio"
e6cc62c6 6225
10f2d63a 6226 if test "$enableval" = yes; then
3c907f20 6227 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6228 else
3c907f20 6229 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6230 fi
e6cc62c6 6231
10f2d63a 6232else
e6cc62c6 6233
3c907f20 6234 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
3c907f20 6241 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6242
e6cc62c6 6243fi;
10f2d63a 6244
3c907f20 6245 eval "$ac_cv_use_prologio"
10f2d63a 6246 if test "$no_cache" != 1; then
3c907f20 6247 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6248 fi
6249
3c907f20 6250 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
10f2d63a 6253 else
e6cc62c6
VS
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
10f2d63a 6256 fi
e6cc62c6 6257
8284b0c5 6258
5005acfe 6259 enablestring=
e6cc62c6
VS
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6262 no_cache=0
3c907f20
VZ
6263 # Check whether --enable-resources or --disable-resources was given.
6264if test "${enable_resources+set}" = set; then
6265 enableval="$enable_resources"
e6cc62c6 6266
10f2d63a 6267 if test "$enableval" = yes; then
3c907f20 6268 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6269 else
3c907f20 6270 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6271 fi
e6cc62c6 6272
10f2d63a 6273else
e6cc62c6 6274
3c907f20 6275 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
3c907f20 6282 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6283
e6cc62c6 6284fi;
10f2d63a 6285
3c907f20 6286 eval "$ac_cv_use_resources"
10f2d63a 6287 if test "$no_cache" != 1; then
3c907f20 6288 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6289 fi
6290
3c907f20 6291 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
10f2d63a 6294 else
e6cc62c6
VS
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
10f2d63a 6297 fi
e6cc62c6 6298
8284b0c5
MB
6299
6300
52127426 6301
5005acfe 6302 enablestring=
e6cc62c6
VS
6303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6304echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6305 no_cache=0
6306 # Check whether --enable-clipboard or --disable-clipboard was given.
6307if test "${enable_clipboard+set}" = set; then
6308 enableval="$enable_clipboard"
e6cc62c6 6309
10f2d63a
VZ
6310 if test "$enableval" = yes; then
6311 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6312 else
6313 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6314 fi
e6cc62c6 6315
10f2d63a 6316else
e6cc62c6 6317
10f2d63a
VZ
6318 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6326
e6cc62c6 6327fi;
10f2d63a
VZ
6328
6329 eval "$ac_cv_use_clipboard"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6335 echo "$as_me:$LINENO: result: yes" >&5
6336echo "${ECHO_T}yes" >&6
10f2d63a 6337 else
e6cc62c6
VS
6338 echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
10f2d63a 6340 fi
e6cc62c6 6341
10f2d63a 6342
5005acfe 6343 enablestring=
e6cc62c6
VS
6344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6345echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6346 no_cache=0
6347 # Check whether --enable-dnd or --disable-dnd was given.
6348if test "${enable_dnd+set}" = set; then
6349 enableval="$enable_dnd"
e6cc62c6 6350
10f2d63a
VZ
6351 if test "$enableval" = yes; then
6352 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6353 else
6354 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6355 fi
e6cc62c6 6356
10f2d63a 6357else
e6cc62c6 6358
10f2d63a
VZ
6359 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6367
e6cc62c6 6368fi;
10f2d63a
VZ
6369
6370 eval "$ac_cv_use_dnd"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6376 echo "$as_me:$LINENO: result: yes" >&5
6377echo "${ECHO_T}yes" >&6
10f2d63a 6378 else
e6cc62c6
VS
6379 echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
10f2d63a 6381 fi
e6cc62c6 6382
10f2d63a 6383
5005acfe 6384 enablestring=
e6cc62c6
VS
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6387 no_cache=0
6388 # Check whether --enable-metafile or --disable-metafile was given.
6389if test "${enable_metafile+set}" = set; then
6390 enableval="$enable_metafile"
e6cc62c6 6391
b64f0a5f
RL
6392 if test "$enableval" = yes; then
6393 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6394 else
6395 ac_cv_use_metafile='wxUSE_METAFILE=no'
6396 fi
e6cc62c6 6397
b64f0a5f 6398else
e6cc62c6 6399
b64f0a5f
RL
6400 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6408
e6cc62c6 6409fi;
b64f0a5f
RL
6410
6411 eval "$ac_cv_use_metafile"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
b64f0a5f 6419 else
e6cc62c6
VS
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
b64f0a5f 6422 fi
e6cc62c6 6423
52127426 6424
8284b0c5 6425
52127426 6426
8284b0c5 6427
5005acfe 6428 enablestring=
e6cc62c6
VS
6429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6430echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6431 no_cache=0
6432 # Check whether --enable-controls or --disable-controls was given.
6433if test "${enable_controls+set}" = set; then
6434 enableval="$enable_controls"
e6cc62c6 6435
10f2d63a
VZ
6436 if test "$enableval" = yes; then
6437 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6438 else
6439 ac_cv_use_controls='wxUSE_CONTROLS=no'
6440 fi
e6cc62c6 6441
10f2d63a 6442else
e6cc62c6 6443
10f2d63a
VZ
6444 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6452
e6cc62c6 6453fi;
10f2d63a
VZ
6454
6455 eval "$ac_cv_use_controls"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6461 echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
10f2d63a 6463 else
e6cc62c6
VS
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
10f2d63a 6466 fi
e6cc62c6 6467
10f2d63a
VZ
6468
6469if test "$wxUSE_CONTROLS" = "yes"; then
6470 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6471 DEFAULT_wxUSE_BMPBUTTON=yes
6472 DEFAULT_wxUSE_BUTTON=yes
6473 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6474 DEFAULT_wxUSE_CARET=yes
6475 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6476 DEFAULT_wxUSE_CHECKBOX=yes
6477 DEFAULT_wxUSE_CHECKLISTBOX=yes
6478 DEFAULT_wxUSE_CHOICE=yes
6479 DEFAULT_wxUSE_GAUGE=yes
6480 DEFAULT_wxUSE_GRID=yes
10f2d63a 6481 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6482 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6483 DEFAULT_wxUSE_LISTBOX=yes
6484 DEFAULT_wxUSE_LISTCTRL=yes
6485 DEFAULT_wxUSE_NOTEBOOK=yes
6486 DEFAULT_wxUSE_RADIOBOX=yes
6487 DEFAULT_wxUSE_RADIOBTN=yes
6488 DEFAULT_wxUSE_SASH=yes
6489 DEFAULT_wxUSE_SCROLLBAR=yes
6490 DEFAULT_wxUSE_SLIDER=yes
6491 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6492 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6493 DEFAULT_wxUSE_SPLITTER=yes
6494 DEFAULT_wxUSE_STATBMP=yes
6495 DEFAULT_wxUSE_STATBOX=yes
6496 DEFAULT_wxUSE_STATLINE=yes
6497 DEFAULT_wxUSE_STATUSBAR=yes
6498 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6499 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6500 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6501 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6502 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6503 DEFAULT_wxUSE_TOOLTIPS=yes
6504 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6505 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6506 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6507elif test "$wxUSE_CONTROLS" = "no"; then
6508 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6509 DEFAULT_wxUSE_BMPBUTTON=no
6510 DEFAULT_wxUSE_BUTTON=no
6511 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6512 DEFAULT_wxUSE_CARET=no
6513 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6514 DEFAULT_wxUSE_CHECKBOX=no
6515 DEFAULT_wxUSE_CHECKLISTBOX=no
6516 DEFAULT_wxUSE_CHOICE=no
6517 DEFAULT_wxUSE_GAUGE=no
6518 DEFAULT_wxUSE_GRID=no
10f2d63a 6519 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6520 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6521 DEFAULT_wxUSE_LISTBOX=no
6522 DEFAULT_wxUSE_LISTCTRL=no
6523 DEFAULT_wxUSE_NOTEBOOK=no
6524 DEFAULT_wxUSE_RADIOBOX=no
6525 DEFAULT_wxUSE_RADIOBTN=no
6526 DEFAULT_wxUSE_SASH=no
6527 DEFAULT_wxUSE_SCROLLBAR=no
6528 DEFAULT_wxUSE_SLIDER=no
6529 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6530 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6531 DEFAULT_wxUSE_SPLITTER=no
6532 DEFAULT_wxUSE_STATBMP=no
6533 DEFAULT_wxUSE_STATBOX=no
6534 DEFAULT_wxUSE_STATLINE=no
6535 DEFAULT_wxUSE_STATUSBAR=no
6536 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6537 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6538 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6539 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6540 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6541 DEFAULT_wxUSE_TOOLTIPS=no
6542 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6543 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6544 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6545fi
6546
ac0c4cc3
DE
6547## FIXME: This is a blatant hack
6548if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6549 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6550 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6551 # Generic notebook requires tab dialog
6552 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6553 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6554 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6555 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6556 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6557fi
6558
8284b0c5 6559
5005acfe 6560 enablestring=
e6cc62c6
VS
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6563 no_cache=0
6564 # Check whether --enable-accel or --disable-accel was given.
6565if test "${enable_accel+set}" = set; then
6566 enableval="$enable_accel"
e6cc62c6 6567
10f2d63a
VZ
6568 if test "$enableval" = yes; then
6569 ac_cv_use_accel='wxUSE_ACCEL=yes'
6570 else
6571 ac_cv_use_accel='wxUSE_ACCEL=no'
6572 fi
e6cc62c6 6573
10f2d63a 6574else
e6cc62c6 6575
10f2d63a
VZ
6576 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6584
e6cc62c6 6585fi;
10f2d63a
VZ
6586
6587 eval "$ac_cv_use_accel"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6590 fi
6591
6592 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
10f2d63a 6595 else
e6cc62c6
VS
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
10f2d63a 6598 fi
e6cc62c6 6599
10f2d63a 6600
5005acfe 6601 enablestring=
e6cc62c6
VS
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6604 no_cache=0
1e6feb95
VZ
6605 # Check whether --enable-button or --disable-button was given.
6606if test "${enable_button+set}" = set; then
6607 enableval="$enable_button"
e6cc62c6 6608
10f2d63a 6609 if test "$enableval" = yes; then
1e6feb95 6610 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6611 else
1e6feb95 6612 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6613 fi
e6cc62c6 6614
10f2d63a 6615else
e6cc62c6 6616
1e6feb95 6617 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
1e6feb95 6624 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6625
e6cc62c6 6626fi;
10f2d63a 6627
1e6feb95 6628 eval "$ac_cv_use_button"
10f2d63a 6629 if test "$no_cache" != 1; then
1e6feb95 6630 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6631 fi
6632
1e6feb95 6633 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
10f2d63a 6636 else
e6cc62c6
VS
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
10f2d63a 6639 fi
e6cc62c6 6640
10f2d63a 6641
5005acfe 6642 enablestring=
e6cc62c6
VS
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6645 no_cache=0
6646 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6647if test "${enable_bmpbutton+set}" = set; then
6648 enableval="$enable_bmpbutton"
e6cc62c6 6649
10f2d63a
VZ
6650 if test "$enableval" = yes; then
6651 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6652 else
6653 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6654 fi
e6cc62c6 6655
10f2d63a 6656else
e6cc62c6 6657
10f2d63a
VZ
6658 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6666
e6cc62c6 6667fi;
10f2d63a
VZ
6668
6669 eval "$ac_cv_use_bmpbutton"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
10f2d63a 6677 else
e6cc62c6
VS
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
10f2d63a 6680 fi
e6cc62c6 6681
10f2d63a 6682
5005acfe 6683 enablestring=
e6cc62c6
VS
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6686 no_cache=0
6687 # Check whether --enable-calendar or --disable-calendar was given.
6688if test "${enable_calendar+set}" = set; then
6689 enableval="$enable_calendar"
e6cc62c6 6690
1e6feb95
VZ
6691 if test "$enableval" = yes; then
6692 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6693 else
6694 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6695 fi
e6cc62c6 6696
1e6feb95 6697else
e6cc62c6 6698
1e6feb95
VZ
6699 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6707
e6cc62c6 6708fi;
1e6feb95
VZ
6709
6710 eval "$ac_cv_use_calendar"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
1e6feb95 6718 else
e6cc62c6
VS
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
1e6feb95 6721 fi
e6cc62c6 6722
1e6feb95 6723
5005acfe 6724 enablestring=
e6cc62c6
VS
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6727 no_cache=0
6728 # Check whether --enable-caret or --disable-caret was given.
6729if test "${enable_caret+set}" = set; then
6730 enableval="$enable_caret"
e6cc62c6 6731
1e6feb95
VZ
6732 if test "$enableval" = yes; then
6733 ac_cv_use_caret='wxUSE_CARET=yes'
6734 else
6735 ac_cv_use_caret='wxUSE_CARET=no'
6736 fi
e6cc62c6 6737
1e6feb95 6738else
e6cc62c6 6739
1e6feb95
VZ
6740 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6748
e6cc62c6 6749fi;
1e6feb95
VZ
6750
6751 eval "$ac_cv_use_caret"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
1e6feb95 6759 else
e6cc62c6
VS
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
1e6feb95 6762 fi
e6cc62c6 6763
1e6feb95 6764
5005acfe 6765 enablestring=
e6cc62c6
VS
6766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6767echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6768 no_cache=0
6769 # Check whether --enable-checkbox or --disable-checkbox was given.
6770if test "${enable_checkbox+set}" = set; then
6771 enableval="$enable_checkbox"
e6cc62c6 6772
10f2d63a
VZ
6773 if test "$enableval" = yes; then
6774 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6775 else
6776 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6777 fi
e6cc62c6 6778
10f2d63a 6779else
e6cc62c6 6780
10f2d63a
VZ
6781 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6789
e6cc62c6 6790fi;
10f2d63a
VZ
6791
6792 eval "$ac_cv_use_checkbox"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6798 echo "$as_me:$LINENO: result: yes" >&5
6799echo "${ECHO_T}yes" >&6
10f2d63a 6800 else
e6cc62c6
VS
6801 echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6
10f2d63a 6803 fi
e6cc62c6 6804
10f2d63a 6805
5005acfe 6806 enablestring=
e6cc62c6
VS
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6808echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6809 no_cache=0
6810 # Check whether --enable-checklst or --disable-checklst was given.
6811if test "${enable_checklst+set}" = set; then
6812 enableval="$enable_checklst"
e6cc62c6 6813
10f2d63a
VZ
6814 if test "$enableval" = yes; then
6815 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6816 else
6817 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6818 fi
e6cc62c6 6819
10f2d63a 6820else
e6cc62c6 6821
10f2d63a
VZ
6822 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6830
e6cc62c6 6831fi;
10f2d63a
VZ
6832
6833 eval "$ac_cv_use_checklst"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6839 echo "$as_me:$LINENO: result: yes" >&5
6840echo "${ECHO_T}yes" >&6
10f2d63a 6841 else
e6cc62c6
VS
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
10f2d63a 6844 fi
e6cc62c6 6845
10f2d63a 6846
5005acfe 6847 enablestring=
e6cc62c6
VS
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6849echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6850 no_cache=0
6851 # Check whether --enable-choice or --disable-choice was given.
6852if test "${enable_choice+set}" = set; then
6853 enableval="$enable_choice"
e6cc62c6 6854
10f2d63a
VZ
6855 if test "$enableval" = yes; then
6856 ac_cv_use_choice='wxUSE_CHOICE=yes'
6857 else
6858 ac_cv_use_choice='wxUSE_CHOICE=no'
6859 fi
e6cc62c6 6860
10f2d63a 6861else
e6cc62c6 6862
10f2d63a
VZ
6863 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6871
e6cc62c6 6872fi;
10f2d63a
VZ
6873
6874 eval "$ac_cv_use_choice"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6
10f2d63a 6882 else
e6cc62c6
VS
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
10f2d63a 6885 fi
e6cc62c6 6886
10f2d63a 6887
5005acfe 6888 enablestring=
e6cc62c6
VS
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-combobox or --disable-combobox was given.
6893if test "${enable_combobox+set}" = set; then
6894 enableval="$enable_combobox"
e6cc62c6 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6898 else
6899 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6900 fi
e6cc62c6 6901
10f2d63a 6902else
e6cc62c6 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6912
e6cc62c6 6913fi;
10f2d63a
VZ
6914
6915 eval "$ac_cv_use_combobox"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
10f2d63a 6923 else
e6cc62c6
VS
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
10f2d63a 6926 fi
e6cc62c6 6927
10f2d63a 6928
da494b40 6929 enablestring=
e6cc62c6
VS
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6932 no_cache=0
6933 # Check whether --enable-display or --disable-display was given.
6934if test "${enable_display+set}" = set; then
6935 enableval="$enable_display"
e6cc62c6 6936
da494b40
MB
6937 if test "$enableval" = yes; then
6938 ac_cv_use_display='wxUSE_DISPLAY=yes'
6939 else
6940 ac_cv_use_display='wxUSE_DISPLAY=no'
6941 fi
e6cc62c6 6942
da494b40 6943else
e6cc62c6 6944
da494b40
MB
6945 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6953
e6cc62c6 6954fi;
da494b40
MB
6955
6956 eval "$ac_cv_use_display"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
da494b40 6964 else
e6cc62c6
VS
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
da494b40 6967 fi
e6cc62c6 6968
da494b40 6969
5005acfe 6970 enablestring=
e6cc62c6
VS
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6973 no_cache=0
6974 # Check whether --enable-gauge or --disable-gauge was given.
6975if test "${enable_gauge+set}" = set; then
6976 enableval="$enable_gauge"
e6cc62c6 6977
10f2d63a
VZ
6978 if test "$enableval" = yes; then
6979 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6980 else
6981 ac_cv_use_gauge='wxUSE_GAUGE=no'
6982 fi
e6cc62c6 6983
10f2d63a 6984else
e6cc62c6 6985
10f2d63a
VZ
6986 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6994
e6cc62c6 6995fi;
10f2d63a
VZ
6996
6997 eval "$ac_cv_use_gauge"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
10f2d63a 7005 else
e6cc62c6
VS
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
10f2d63a 7008 fi
e6cc62c6 7009
10f2d63a 7010
5005acfe 7011 enablestring=
e6cc62c6
VS
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7014 no_cache=0
7015 # Check whether --enable-grid or --disable-grid was given.
7016if test "${enable_grid+set}" = set; then
7017 enableval="$enable_grid"
e6cc62c6 7018
10f2d63a
VZ
7019 if test "$enableval" = yes; then
7020 ac_cv_use_grid='wxUSE_GRID=yes'
7021 else
7022 ac_cv_use_grid='wxUSE_GRID=no'
7023 fi
e6cc62c6 7024
10f2d63a 7025else
e6cc62c6 7026
10f2d63a
VZ
7027 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7035
e6cc62c6 7036fi;
10f2d63a
VZ
7037
7038 eval "$ac_cv_use_grid"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
10f2d63a 7046 else
e6cc62c6
VS
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
10f2d63a 7049 fi
e6cc62c6 7050
10f2d63a 7051
5005acfe 7052 enablestring=
e6cc62c6
VS
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7055 no_cache=0
7056 # Check whether --enable-imaglist or --disable-imaglist was given.
7057if test "${enable_imaglist+set}" = set; then
7058 enableval="$enable_imaglist"
e6cc62c6 7059
10f2d63a
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7062 else
7063 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7064 fi
e6cc62c6 7065
10f2d63a 7066else
e6cc62c6 7067
10f2d63a
VZ
7068 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7076
e6cc62c6 7077fi;
10f2d63a
VZ
7078
7079 eval "$ac_cv_use_imaglist"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
10f2d63a 7087 else
e6cc62c6
VS
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
10f2d63a 7090 fi
e6cc62c6 7091
10f2d63a 7092
0e012a93
VZ
7093 enablestring=
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-listbook or --disable-listbook was given.
7098if test "${enable_listbook+set}" = set; then
7099 enableval="$enable_listbook"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7103 else
7104 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7117
7118fi;
7119
7120 eval "$ac_cv_use_listbook"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_LISTBOOK" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131 fi
7132
7133
5005acfe 7134 enablestring=
e6cc62c6
VS
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7137 no_cache=0
7138 # Check whether --enable-listbox or --disable-listbox was given.
7139if test "${enable_listbox+set}" = set; then
7140 enableval="$enable_listbox"
e6cc62c6 7141
10f2d63a
VZ
7142 if test "$enableval" = yes; then
7143 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7144 else
7145 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7146 fi
e6cc62c6 7147
10f2d63a 7148else
e6cc62c6 7149
10f2d63a
VZ
7150 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7158
e6cc62c6 7159fi;
10f2d63a
VZ
7160
7161 eval "$ac_cv_use_listbox"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
10f2d63a 7169 else
e6cc62c6
VS
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
10f2d63a 7172 fi
e6cc62c6 7173
10f2d63a 7174
5005acfe 7175 enablestring=
e6cc62c6
VS
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7178 no_cache=0
7179 # Check whether --enable-listctrl or --disable-listctrl was given.
7180if test "${enable_listctrl+set}" = set; then
7181 enableval="$enable_listctrl"
e6cc62c6 7182
10f2d63a
VZ
7183 if test "$enableval" = yes; then
7184 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7185 else
7186 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7187 fi
e6cc62c6 7188
10f2d63a 7189else
e6cc62c6 7190
10f2d63a
VZ
7191 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7199
e6cc62c6 7200fi;
10f2d63a
VZ
7201
7202 eval "$ac_cv_use_listctrl"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
10f2d63a 7210 else
e6cc62c6
VS
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
10f2d63a 7213 fi
e6cc62c6 7214
10f2d63a 7215
5005acfe 7216 enablestring=
e6cc62c6
VS
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7219 no_cache=0
7220 # Check whether --enable-notebook or --disable-notebook was given.
7221if test "${enable_notebook+set}" = set; then
7222 enableval="$enable_notebook"
e6cc62c6 7223
10f2d63a
VZ
7224 if test "$enableval" = yes; then
7225 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7226 else
7227 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7228 fi
e6cc62c6 7229
10f2d63a 7230else
e6cc62c6 7231
10f2d63a
VZ
7232 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7240
e6cc62c6 7241fi;
10f2d63a
VZ
7242
7243 eval "$ac_cv_use_notebook"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
10f2d63a 7251 else
e6cc62c6
VS
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
10f2d63a 7254 fi
e6cc62c6 7255
10f2d63a 7256
5005acfe 7257 enablestring=
e6cc62c6
VS
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7260 no_cache=0
7261 # Check whether --enable-radiobox or --disable-radiobox was given.
7262if test "${enable_radiobox+set}" = set; then
7263 enableval="$enable_radiobox"
e6cc62c6 7264
10f2d63a
VZ
7265 if test "$enableval" = yes; then
7266 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7267 else
7268 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7269 fi
e6cc62c6 7270
10f2d63a 7271else
e6cc62c6 7272
10f2d63a
VZ
7273 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7281
e6cc62c6 7282fi;
10f2d63a
VZ
7283
7284 eval "$ac_cv_use_radiobox"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
10f2d63a 7292 else
e6cc62c6
VS
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
10f2d63a 7295 fi
e6cc62c6 7296
10f2d63a 7297
5005acfe 7298 enablestring=
e6cc62c6
VS
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7301 no_cache=0
7302 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7303if test "${enable_radiobtn+set}" = set; then
7304 enableval="$enable_radiobtn"
e6cc62c6 7305
10f2d63a
VZ
7306 if test "$enableval" = yes; then
7307 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7308 else
7309 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7310 fi
e6cc62c6 7311
10f2d63a 7312else
e6cc62c6 7313
10f2d63a
VZ
7314 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7322
e6cc62c6 7323fi;
10f2d63a
VZ
7324
7325 eval "$ac_cv_use_radiobtn"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
10f2d63a 7333 else
e6cc62c6
VS
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
10f2d63a 7336 fi
e6cc62c6 7337
10f2d63a 7338
5005acfe 7339 enablestring=
e6cc62c6
VS
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7342 no_cache=0
7343 # Check whether --enable-sash or --disable-sash was given.
7344if test "${enable_sash+set}" = set; then
7345 enableval="$enable_sash"
e6cc62c6 7346
10f2d63a
VZ
7347 if test "$enableval" = yes; then
7348 ac_cv_use_sash='wxUSE_SASH=yes'
7349 else
7350 ac_cv_use_sash='wxUSE_SASH=no'
7351 fi
e6cc62c6 7352
10f2d63a 7353else
e6cc62c6 7354
10f2d63a
VZ
7355 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7363
e6cc62c6 7364fi;
10f2d63a
VZ
7365
7366 eval "$ac_cv_use_sash"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
10f2d63a 7374 else
e6cc62c6
VS
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
10f2d63a 7377 fi
e6cc62c6 7378
10f2d63a 7379
5005acfe 7380 enablestring=
e6cc62c6
VS
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7383 no_cache=0
7384 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7385if test "${enable_scrollbar+set}" = set; then
7386 enableval="$enable_scrollbar"
e6cc62c6 7387
10f2d63a
VZ
7388 if test "$enableval" = yes; then
7389 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7390 else
7391 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7392 fi
e6cc62c6 7393
10f2d63a 7394else
e6cc62c6 7395
10f2d63a
VZ
7396 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7404
e6cc62c6 7405fi;
10f2d63a
VZ
7406
7407 eval "$ac_cv_use_scrollbar"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
10f2d63a 7415 else
e6cc62c6
VS
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
10f2d63a 7418 fi
e6cc62c6 7419
10f2d63a 7420
5005acfe 7421 enablestring=
e6cc62c6
VS
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7424 no_cache=0
7425 # Check whether --enable-slider or --disable-slider was given.
7426if test "${enable_slider+set}" = set; then
7427 enableval="$enable_slider"
e6cc62c6 7428
10f2d63a
VZ
7429 if test "$enableval" = yes; then
7430 ac_cv_use_slider='wxUSE_SLIDER=yes'
7431 else
7432 ac_cv_use_slider='wxUSE_SLIDER=no'
7433 fi
e6cc62c6 7434
10f2d63a 7435else
e6cc62c6 7436
10f2d63a
VZ
7437 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7445
e6cc62c6 7446fi;
10f2d63a
VZ
7447
7448 eval "$ac_cv_use_slider"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
10f2d63a 7456 else
e6cc62c6
VS
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
10f2d63a 7459 fi
e6cc62c6 7460
10f2d63a 7461
5005acfe 7462 enablestring=
e6cc62c6
VS
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7465 no_cache=0
7466 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7467if test "${enable_spinbtn+set}" = set; then
7468 enableval="$enable_spinbtn"
e6cc62c6 7469
10f2d63a
VZ
7470 if test "$enableval" = yes; then
7471 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7472 else
7473 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7474 fi
e6cc62c6 7475
10f2d63a 7476else
e6cc62c6 7477
10f2d63a
VZ
7478 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7486
e6cc62c6 7487fi;
10f2d63a
VZ
7488
7489 eval "$ac_cv_use_spinbtn"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
10f2d63a 7497 else
e6cc62c6
VS
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
10f2d63a 7500 fi
e6cc62c6 7501
10f2d63a 7502
5005acfe 7503 enablestring=
e6cc62c6
VS
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7506 no_cache=0
7507 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7508if test "${enable_spinctrl+set}" = set; then
7509 enableval="$enable_spinctrl"
e6cc62c6 7510
56cfaa52
RR
7511 if test "$enableval" = yes; then
7512 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7513 else
7514 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7515 fi
e6cc62c6 7516
56cfaa52 7517else
e6cc62c6 7518
56cfaa52
RR
7519 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7527
e6cc62c6 7528fi;
56cfaa52
RR
7529
7530 eval "$ac_cv_use_spinctrl"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
56cfaa52 7538 else
e6cc62c6
VS
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
56cfaa52 7541 fi
e6cc62c6 7542
56cfaa52 7543
5005acfe 7544 enablestring=
e6cc62c6
VS
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7547 no_cache=0
7548 # Check whether --enable-splitter or --disable-splitter was given.
7549if test "${enable_splitter+set}" = set; then
7550 enableval="$enable_splitter"
e6cc62c6 7551
10f2d63a
VZ
7552 if test "$enableval" = yes; then
7553 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7554 else
7555 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7556 fi
e6cc62c6 7557
10f2d63a 7558else
e6cc62c6 7559
10f2d63a
VZ
7560 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7568
e6cc62c6 7569fi;
10f2d63a
VZ
7570
7571 eval "$ac_cv_use_splitter"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
10f2d63a 7579 else
e6cc62c6
VS
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
10f2d63a 7582 fi
e6cc62c6 7583
10f2d63a 7584
5005acfe 7585 enablestring=
e6cc62c6
VS
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7588 no_cache=0
7589 # Check whether --enable-statbmp or --disable-statbmp was given.
7590if test "${enable_statbmp+set}" = set; then
7591 enableval="$enable_statbmp"
e6cc62c6 7592
10f2d63a
VZ
7593 if test "$enableval" = yes; then
7594 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7595 else
7596 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7597 fi
e6cc62c6 7598
10f2d63a 7599else
e6cc62c6 7600
10f2d63a
VZ
7601 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7609
e6cc62c6 7610fi;
10f2d63a
VZ
7611
7612 eval "$ac_cv_use_statbmp"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
10f2d63a 7620 else
e6cc62c6
VS
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
10f2d63a 7623 fi
e6cc62c6 7624
10f2d63a 7625
5005acfe 7626 enablestring=
e6cc62c6
VS
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7628echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-statbox or --disable-statbox was given.
7631if test "${enable_statbox+set}" = set; then
7632 enableval="$enable_statbox"
e6cc62c6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7636 else
7637 ac_cv_use_statbox='wxUSE_STATBOX=no'
7638 fi
e6cc62c6 7639
10f2d63a 7640else
e6cc62c6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7650
e6cc62c6 7651fi;
10f2d63a
VZ
7652
7653 eval "$ac_cv_use_statbox"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7659 echo "$as_me:$LINENO: result: yes" >&5
7660echo "${ECHO_T}yes" >&6
10f2d63a 7661 else
e6cc62c6
VS
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
10f2d63a 7664 fi
e6cc62c6 7665
10f2d63a 7666
5005acfe 7667 enablestring=
e6cc62c6
VS
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7669echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7670 no_cache=0
7671 # Check whether --enable-statline or --disable-statline was given.
7672if test "${enable_statline+set}" = set; then
7673 enableval="$enable_statline"
e6cc62c6 7674
10f2d63a
VZ
7675 if test "$enableval" = yes; then
7676 ac_cv_use_statline='wxUSE_STATLINE=yes'
7677 else
7678 ac_cv_use_statline='wxUSE_STATLINE=no'
7679 fi
e6cc62c6 7680
10f2d63a 7681else
e6cc62c6 7682
10f2d63a
VZ
7683 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7691
e6cc62c6 7692fi;
10f2d63a
VZ
7693
7694 eval "$ac_cv_use_statline"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7700 echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6
10f2d63a 7702 else
e6cc62c6
VS
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
10f2d63a 7705 fi
e6cc62c6 7706
10f2d63a 7707
5005acfe 7708 enablestring=
e6cc62c6
VS
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7710echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7711 no_cache=0
7712 # Check whether --enable-stattext or --disable-stattext was given.
7713if test "${enable_stattext+set}" = set; then
7714 enableval="$enable_stattext"
e6cc62c6 7715
1e6feb95
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7718 else
7719 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7720 fi
e6cc62c6 7721
1e6feb95 7722else
e6cc62c6 7723
1e6feb95
VZ
7724 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7732
e6cc62c6 7733fi;
1e6feb95
VZ
7734
7735 eval "$ac_cv_use_stattext"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7741 echo "$as_me:$LINENO: result: yes" >&5
7742echo "${ECHO_T}yes" >&6
1e6feb95 7743 else
e6cc62c6
VS
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
1e6feb95 7746 fi
e6cc62c6 7747
1e6feb95 7748
5005acfe 7749 enablestring=
e6cc62c6
VS
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7751echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7752 no_cache=0
7753 # Check whether --enable-statusbar or --disable-statusbar was given.
7754if test "${enable_statusbar+set}" = set; then
7755 enableval="$enable_statusbar"
e6cc62c6 7756
10f2d63a
VZ
7757 if test "$enableval" = yes; then
7758 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7759 else
7760 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7761 fi
e6cc62c6 7762
10f2d63a 7763else
e6cc62c6 7764
10f2d63a
VZ
7765 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7773
e6cc62c6 7774fi;
10f2d63a
VZ
7775
7776 eval "$ac_cv_use_statusbar"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7782 echo "$as_me:$LINENO: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
10f2d63a 7784 else
e6cc62c6
VS
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
10f2d63a 7787 fi
e6cc62c6 7788
10f2d63a 7789
5005acfe 7790 enablestring=
e6cc62c6
VS
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7792echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7793 no_cache=0
7794 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7795if test "${enable_tabdialog+set}" = set; then
7796 enableval="$enable_tabdialog"
e6cc62c6 7797
10f2d63a
VZ
7798 if test "$enableval" = yes; then
7799 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7800 else
7801 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7802 fi
e6cc62c6 7803
10f2d63a 7804else
e6cc62c6 7805
10f2d63a
VZ
7806 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7814
e6cc62c6 7815fi;
10f2d63a
VZ
7816
7817 eval "$ac_cv_use_tabdialog"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7823 echo "$as_me:$LINENO: result: yes" >&5
7824echo "${ECHO_T}yes" >&6
10f2d63a 7825 else
e6cc62c6
VS
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
10f2d63a 7828 fi
e6cc62c6 7829
10f2d63a 7830
5005acfe 7831 enablestring=
e6cc62c6
VS
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7833echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7834 no_cache=0
7835 # Check whether --enable-textctrl or --disable-textctrl was given.
7836if test "${enable_textctrl+set}" = set; then
7837 enableval="$enable_textctrl"
e6cc62c6 7838
1e6feb95
VZ
7839 if test "$enableval" = yes; then
7840 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7841 else
7842 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7843 fi
e6cc62c6 7844
1e6feb95 7845else
e6cc62c6 7846
1e6feb95
VZ
7847 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7855
e6cc62c6 7856fi;
1e6feb95
VZ
7857
7858 eval "$ac_cv_use_textctrl"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7864 echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
1e6feb95 7866 else
e6cc62c6
VS
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
1e6feb95 7869 fi
e6cc62c6 7870
1e6feb95 7871
5005acfe 7872 enablestring=
e6cc62c6
VS
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7874echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7875 no_cache=0
7876 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7877if test "${enable_togglebtn+set}" = set; then
7878 enableval="$enable_togglebtn"
e6cc62c6 7879
1db8dc4a
VZ
7880 if test "$enableval" = yes; then
7881 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7882 else
7883 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7884 fi
e6cc62c6 7885
1db8dc4a 7886else
e6cc62c6 7887
1db8dc4a
VZ
7888 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7896
e6cc62c6 7897fi;
1db8dc4a
VZ
7898
7899 eval "$ac_cv_use_togglebtn"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7905 echo "$as_me:$LINENO: result: yes" >&5
7906echo "${ECHO_T}yes" >&6
1db8dc4a 7907 else
e6cc62c6
VS
7908 echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
1db8dc4a 7910 fi
e6cc62c6 7911
1db8dc4a 7912
5005acfe 7913 enablestring=
e6cc62c6
VS
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7916 no_cache=0
7917 # Check whether --enable-toolbar or --disable-toolbar was given.
7918if test "${enable_toolbar+set}" = set; then
7919 enableval="$enable_toolbar"
e6cc62c6 7920
10f2d63a
VZ
7921 if test "$enableval" = yes; then
7922 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7923 else
7924 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7925 fi
e6cc62c6 7926
10f2d63a 7927else
e6cc62c6 7928
10f2d63a
VZ
7929 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7937
e6cc62c6 7938fi;
10f2d63a
VZ
7939
7940 eval "$ac_cv_use_toolbar"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7946 echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
10f2d63a 7948 else
e6cc62c6
VS
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
10f2d63a 7951 fi
e6cc62c6 7952
10f2d63a 7953
5005acfe 7954 enablestring=
e6cc62c6
VS
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7956echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7957 no_cache=0
7958 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7959if test "${enable_tbarnative+set}" = set; then
7960 enableval="$enable_tbarnative"
e6cc62c6 7961
360d6699
VZ
7962 if test "$enableval" = yes; then
7963 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7964 else
7965 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7966 fi
e6cc62c6 7967
360d6699 7968else
e6cc62c6 7969
360d6699
VZ
7970 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7978
e6cc62c6 7979fi;
360d6699
VZ
7980
7981 eval "$ac_cv_use_tbarnative"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
360d6699 7989 else
e6cc62c6
VS
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
360d6699 7992 fi
e6cc62c6 7993
360d6699 7994
5005acfe 7995 enablestring=
e6cc62c6
VS
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7997echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7998 no_cache=0
7999 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8000if test "${enable_tbarsmpl+set}" = set; then
8001 enableval="$enable_tbarsmpl"
e6cc62c6 8002
360d6699
VZ
8003 if test "$enableval" = yes; then
8004 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8005 else
8006 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8007 fi
e6cc62c6 8008
360d6699 8009else
e6cc62c6 8010
360d6699
VZ
8011 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8019
e6cc62c6 8020fi;
360d6699
VZ
8021
8022 eval "$ac_cv_use_tbarsmpl"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
360d6699 8030 else
e6cc62c6
VS
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
360d6699 8033 fi
e6cc62c6 8034
360d6699 8035
5005acfe 8036 enablestring=
e6cc62c6
VS
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8038echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8039 no_cache=0
8040 # Check whether --enable-treectrl or --disable-treectrl was given.
8041if test "${enable_treectrl+set}" = set; then
8042 enableval="$enable_treectrl"
e6cc62c6 8043
10f2d63a
VZ
8044 if test "$enableval" = yes; then
8045 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8046 else
8047 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8048 fi
e6cc62c6 8049
10f2d63a 8050else
e6cc62c6 8051
10f2d63a
VZ
8052 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8060
e6cc62c6 8061fi;
10f2d63a 8062
1e6feb95
VZ
8063 eval "$ac_cv_use_treectrl"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8069 echo "$as_me:$LINENO: result: yes" >&5
8070echo "${ECHO_T}yes" >&6
1e6feb95 8071 else
e6cc62c6
VS
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
1e6feb95 8074 fi
e6cc62c6 8075
1e6feb95 8076
5005acfe 8077 enablestring=
e6cc62c6
VS
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8079echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8080 no_cache=0
8081 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8082if test "${enable_tipwindow+set}" = set; then
8083 enableval="$enable_tipwindow"
e6cc62c6 8084
9926e4a4
VZ
8085 if test "$enableval" = yes; then
8086 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8087 else
8088 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8089 fi
e6cc62c6 8090
9926e4a4 8091else
e6cc62c6 8092
9926e4a4
VZ
8093 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8101
e6cc62c6 8102fi;
9926e4a4
VZ
8103
8104 eval "$ac_cv_use_tipwindow"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8110 echo "$as_me:$LINENO: result: yes" >&5
8111echo "${ECHO_T}yes" >&6
9926e4a4 8112 else
e6cc62c6
VS
8113 echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
9926e4a4 8115 fi
e6cc62c6 8116
9926e4a4 8117
5005acfe 8118 enablestring=
e6cc62c6
VS
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8120echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8121 no_cache=0
8122 # Check whether --enable-popupwin or --disable-popupwin was given.
8123if test "${enable_popupwin+set}" = set; then
8124 enableval="$enable_popupwin"
e6cc62c6 8125
9f41d601
RR
8126 if test "$enableval" = yes; then
8127 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8128 else
8129 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8130 fi
e6cc62c6 8131
9f41d601 8132else
e6cc62c6 8133
9f41d601
RR
8134 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8142
e6cc62c6 8143fi;
9f41d601
RR
8144
8145 eval "$ac_cv_use_popupwin"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8151 echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
9f41d601 8153 else
e6cc62c6
VS
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
9f41d601 8156 fi
e6cc62c6 8157
52127426 8158
8284b0c5
MB
8159
8160
5005acfe 8161 enablestring=
e6cc62c6
VS
8162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8163echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8164 no_cache=0
8165 # Check whether --enable-commondlg or --disable-commondlg was given.
8166if test "${enable_commondlg+set}" = set; then
8167 enableval="$enable_commondlg"
e6cc62c6 8168
1e6feb95
VZ
8169 if test "$enableval" = yes; then
8170 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8171 else
8172 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8173 fi
e6cc62c6 8174
1e6feb95 8175else
e6cc62c6 8176
1e6feb95
VZ
8177 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8178 if test "x$LINE" != x ; then
8179 eval "DEFAULT_$LINE"
8180 else
8181 no_cache=1
8182 fi
8183
8184 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8185
e6cc62c6 8186fi;
1e6feb95
VZ
8187
8188 eval "$ac_cv_use_commondlg"
8189 if test "$no_cache" != 1; then
8190 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8191 fi
8192
8193 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8194 echo "$as_me:$LINENO: result: yes" >&5
8195echo "${ECHO_T}yes" >&6
1e6feb95 8196 else
e6cc62c6
VS
8197 echo "$as_me:$LINENO: result: no" >&5
8198echo "${ECHO_T}no" >&6
1e6feb95 8199 fi
e6cc62c6 8200
1e6feb95 8201
5005acfe 8202 enablestring=
e6cc62c6
VS
8203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8204echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8205 no_cache=0
8206 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8207if test "${enable_choicedlg+set}" = set; then
8208 enableval="$enable_choicedlg"
e6cc62c6 8209
1e6feb95
VZ
8210 if test "$enableval" = yes; then
8211 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8212 else
8213 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8214 fi
e6cc62c6 8215
1e6feb95 8216else
e6cc62c6 8217
1e6feb95
VZ
8218 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8219 if test "x$LINE" != x ; then
8220 eval "DEFAULT_$LINE"
8221 else
8222 no_cache=1
8223 fi
8224
8225 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8226
e6cc62c6 8227fi;
1e6feb95
VZ
8228
8229 eval "$ac_cv_use_choicedlg"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8235 echo "$as_me:$LINENO: result: yes" >&5
8236echo "${ECHO_T}yes" >&6
1e6feb95 8237 else
e6cc62c6
VS
8238 echo "$as_me:$LINENO: result: no" >&5
8239echo "${ECHO_T}no" >&6
1e6feb95 8240 fi
e6cc62c6 8241
1e6feb95 8242
5005acfe 8243 enablestring=
e6cc62c6
VS
8244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8245echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8246 no_cache=0
8247 # Check whether --enable-coldlg or --disable-coldlg was given.
8248if test "${enable_coldlg+set}" = set; then
8249 enableval="$enable_coldlg"
e6cc62c6 8250
1e6feb95
VZ
8251 if test "$enableval" = yes; then
8252 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8253 else
8254 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8255 fi
e6cc62c6 8256
1e6feb95 8257else
e6cc62c6 8258
1e6feb95
VZ
8259 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8260 if test "x$LINE" != x ; then
8261 eval "DEFAULT_$LINE"
8262 else
8263 no_cache=1
8264 fi
8265
8266 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8267
e6cc62c6 8268fi;
1e6feb95
VZ
8269
8270 eval "$ac_cv_use_coldlg"
8271 if test "$no_cache" != 1; then
8272 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8273 fi
8274
8275 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8276 echo "$as_me:$LINENO: result: yes" >&5
8277echo "${ECHO_T}yes" >&6
1e6feb95 8278 else
e6cc62c6
VS
8279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
1e6feb95 8281 fi
e6cc62c6 8282
1e6feb95 8283
5005acfe 8284 enablestring=
e6cc62c6
VS
8285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8286echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8287 no_cache=0
8288 # Check whether --enable-filedlg or --disable-filedlg was given.
8289if test "${enable_filedlg+set}" = set; then
8290 enableval="$enable_filedlg"
e6cc62c6 8291
1e6feb95
VZ
8292 if test "$enableval" = yes; then
8293 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8294 else
8295 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8296 fi
e6cc62c6 8297
1e6feb95 8298else
e6cc62c6 8299
1e6feb95
VZ
8300 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8301 if test "x$LINE" != x ; then
8302 eval "DEFAULT_$LINE"
8303 else
8304 no_cache=1
8305 fi
8306
8307 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8308
e6cc62c6 8309fi;
1e6feb95
VZ
8310
8311 eval "$ac_cv_use_filedlg"
8312 if test "$no_cache" != 1; then
8313 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8314 fi
8315
8316 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8317 echo "$as_me:$LINENO: result: yes" >&5
8318echo "${ECHO_T}yes" >&6
1e6feb95 8319 else
e6cc62c6
VS
8320 echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6
1e6feb95 8322 fi
e6cc62c6 8323
1e6feb95 8324
5005acfe 8325 enablestring=
e6cc62c6
VS
8326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8327echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8328 no_cache=0
69d27ff7
MB
8329 # Check whether --enable-finddlg or --disable-finddlg was given.
8330if test "${enable_finddlg+set}" = set; then
8331 enableval="$enable_finddlg"
e6cc62c6 8332
8db37e06 8333 if test "$enableval" = yes; then
69d27ff7 8334 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8335 else
69d27ff7 8336 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8337 fi
e6cc62c6 8338
8db37e06 8339else
e6cc62c6 8340
8db37e06
VZ
8341 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8342 if test "x$LINE" != x ; then
8343 eval "DEFAULT_$LINE"
8344 else
8345 no_cache=1
8346 fi
8347
69d27ff7 8348 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8349
e6cc62c6 8350fi;
8db37e06 8351
69d27ff7 8352 eval "$ac_cv_use_finddlg"
8db37e06 8353 if test "$no_cache" != 1; then
69d27ff7 8354 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8355 fi
8356
8357 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8358 echo "$as_me:$LINENO: result: yes" >&5
8359echo "${ECHO_T}yes" >&6
8db37e06 8360 else
e6cc62c6
VS
8361 echo "$as_me:$LINENO: result: no" >&5
8362echo "${ECHO_T}no" >&6
8db37e06 8363 fi
e6cc62c6 8364
8db37e06 8365
5005acfe 8366 enablestring=
e6cc62c6
VS
8367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8368echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8369 no_cache=0
8370 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8371if test "${enable_fontdlg+set}" = set; then
8372 enableval="$enable_fontdlg"
e6cc62c6 8373
1e6feb95
VZ
8374 if test "$enableval" = yes; then
8375 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8376 else
8377 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8378 fi
e6cc62c6 8379
1e6feb95 8380else
e6cc62c6 8381
1e6feb95
VZ
8382 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8383 if test "x$LINE" != x ; then
8384 eval "DEFAULT_$LINE"
8385 else
8386 no_cache=1
8387 fi
8388
8389 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8390
e6cc62c6 8391fi;
1e6feb95
VZ
8392
8393 eval "$ac_cv_use_fontdlg"
8394 if test "$no_cache" != 1; then
8395 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8396 fi
8397
8398 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8399 echo "$as_me:$LINENO: result: yes" >&5
8400echo "${ECHO_T}yes" >&6
1e6feb95 8401 else
e6cc62c6
VS
8402 echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
1e6feb95 8404 fi
e6cc62c6 8405
1e6feb95 8406
5005acfe 8407 enablestring=
e6cc62c6
VS
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8410 no_cache=0
8411 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8412if test "${enable_dirdlg+set}" = set; then
8413 enableval="$enable_dirdlg"
e6cc62c6 8414
1e6feb95
VZ
8415 if test "$enableval" = yes; then
8416 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8417 else
8418 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8419 fi
e6cc62c6 8420
1e6feb95 8421else
e6cc62c6 8422
1e6feb95
VZ
8423 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8431
e6cc62c6 8432fi;
1e6feb95
VZ
8433
8434 eval "$ac_cv_use_dirdlg"
10f2d63a 8435 if test "$no_cache" != 1; then
1e6feb95 8436 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8437 fi
8438
1e6feb95 8439 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
10f2d63a 8442 else
e6cc62c6
VS
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
10f2d63a 8445 fi
e6cc62c6 8446
698dcdb6 8447
5005acfe 8448 enablestring=
e6cc62c6
VS
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8451 no_cache=0
1e6feb95
VZ
8452 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8453if test "${enable_msgdlg+set}" = set; then
8454 enableval="$enable_msgdlg"
e6cc62c6 8455
10f2d63a 8456 if test "$enableval" = yes; then
1e6feb95 8457 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8458 else
1e6feb95 8459 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8460 fi
e6cc62c6 8461
10f2d63a 8462else
e6cc62c6 8463
1e6feb95 8464 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
1e6feb95 8471 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8472
e6cc62c6 8473fi;
10f2d63a 8474
1e6feb95 8475 eval "$ac_cv_use_msgdlg"
10f2d63a 8476 if test "$no_cache" != 1; then
1e6feb95 8477 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8478 fi
8479
1e6feb95 8480 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
10f2d63a 8483 else
e6cc62c6
VS
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
10f2d63a 8486 fi
e6cc62c6 8487
10f2d63a 8488
5005acfe 8489 enablestring=
e6cc62c6
VS
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8492 no_cache=0
1e6feb95
VZ
8493 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8494if test "${enable_numberdlg+set}" = set; then
8495 enableval="$enable_numberdlg"
e6cc62c6 8496
10f2d63a 8497 if test "$enableval" = yes; then
1e6feb95 8498 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8499 else
1e6feb95 8500 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8501 fi
e6cc62c6 8502
10f2d63a 8503else
e6cc62c6 8504
1e6feb95 8505 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
1e6feb95 8512 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8513
e6cc62c6 8514fi;
10f2d63a 8515
1e6feb95 8516 eval "$ac_cv_use_numberdlg"
10f2d63a 8517 if test "$no_cache" != 1; then
1e6feb95 8518 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8519 fi
8520
1e6feb95 8521 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
10f2d63a 8524 else
e6cc62c6
VS
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
10f2d63a 8527 fi
e6cc62c6 8528
10f2d63a 8529
5005acfe 8530 enablestring=
e6cc62c6
VS
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8533 no_cache=0
8534 # Check whether --enable-splash or --disable-splash was given.
8535if test "${enable_splash+set}" = set; then
8536 enableval="$enable_splash"
e6cc62c6 8537
cbca9943
VZ
8538 if test "$enableval" = yes; then
8539 ac_cv_use_splash='wxUSE_SPLASH=yes'
8540 else
8541 ac_cv_use_splash='wxUSE_SPLASH=no'
8542 fi
e6cc62c6 8543
cbca9943 8544else
e6cc62c6 8545
cbca9943
VZ
8546 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8554
e6cc62c6 8555fi;
cbca9943
VZ
8556
8557 eval "$ac_cv_use_splash"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
cbca9943 8565 else
e6cc62c6
VS
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
cbca9943 8568 fi
e6cc62c6 8569
cbca9943 8570
5005acfe 8571 enablestring=
e6cc62c6
VS
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8574 no_cache=0
8575 # Check whether --enable-textdlg or --disable-textdlg was given.
8576if test "${enable_textdlg+set}" = set; then
8577 enableval="$enable_textdlg"
e6cc62c6 8578
10f2d63a
VZ
8579 if test "$enableval" = yes; then
8580 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8581 else
8582 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8583 fi
e6cc62c6 8584
10f2d63a 8585else
e6cc62c6 8586
10f2d63a
VZ
8587 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
8594 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8595
e6cc62c6 8596fi;
10f2d63a
VZ
8597
8598 eval "$ac_cv_use_textdlg"
8599 if test "$no_cache" != 1; then
8600 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8601 fi
8602
8603 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
10f2d63a 8606 else
e6cc62c6
VS
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
10f2d63a 8609 fi
e6cc62c6 8610
10f2d63a 8611
5005acfe 8612 enablestring=
e6cc62c6
VS
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8615 no_cache=0
8616 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8617if test "${enable_tipdlg+set}" = set; then
8618 enableval="$enable_tipdlg"
e6cc62c6 8619
10f2d63a
VZ
8620 if test "$enableval" = yes; then
8621 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8622 else
8623 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8624 fi
e6cc62c6 8625
10f2d63a 8626else
e6cc62c6 8627
10f2d63a
VZ
8628 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8636
e6cc62c6 8637fi;
10f2d63a
VZ
8638
8639 eval "$ac_cv_use_tipdlg"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
10f2d63a 8647 else
e6cc62c6
VS
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
10f2d63a 8650 fi
e6cc62c6 8651
10f2d63a 8652
5005acfe 8653 enablestring=
e6cc62c6
VS
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8656 no_cache=0
8657 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8658if test "${enable_progressdlg+set}" = set; then
8659 enableval="$enable_progressdlg"
e6cc62c6 8660
10f2d63a
VZ
8661 if test "$enableval" = yes; then
8662 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8663 else
8664 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8665 fi
e6cc62c6 8666
10f2d63a 8667else
e6cc62c6 8668
10f2d63a
VZ
8669 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8677
e6cc62c6 8678fi;
10f2d63a
VZ
8679
8680 eval "$ac_cv_use_progressdlg"
8681 if test "$no_cache" != 1; then
8682 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8683 fi
8684
8685 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
10f2d63a 8688 else
e6cc62c6
VS
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
10f2d63a 8691 fi
e6cc62c6 8692
10f2d63a 8693
5005acfe 8694 enablestring=
e6cc62c6
VS
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8697 no_cache=0
8698 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8699if test "${enable_wizarddlg+set}" = set; then
8700 enableval="$enable_wizarddlg"
e6cc62c6 8701
b1f5d087
VZ
8702 if test "$enableval" = yes; then
8703 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8704 else
8705 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8706 fi
e6cc62c6 8707
b1f5d087 8708else
e6cc62c6 8709
b1f5d087
VZ
8710 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
8717 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8718
e6cc62c6 8719fi;
b1f5d087
VZ
8720
8721 eval "$ac_cv_use_wizarddlg"
8722 if test "$no_cache" != 1; then
8723 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8724 fi
8725
8726 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
b1f5d087 8729 else
e6cc62c6
VS
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
b1f5d087 8732 fi
e6cc62c6 8733
8284b0c5
MB
8734
8735
52127426 8736
5005acfe 8737 enablestring=
e6cc62c6
VS
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8740 no_cache=0
8741 # Check whether --enable-menus or --disable-menus was given.
8742if test "${enable_menus+set}" = set; then
8743 enableval="$enable_menus"
e6cc62c6 8744
1e6feb95
VZ
8745 if test "$enableval" = yes; then
8746 ac_cv_use_menus='wxUSE_MENUS=yes'
8747 else
8748 ac_cv_use_menus='wxUSE_MENUS=no'
8749 fi
e6cc62c6 8750
1e6feb95 8751else
e6cc62c6 8752
1e6feb95
VZ
8753 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8761
e6cc62c6 8762fi;
1e6feb95
VZ
8763
8764 eval "$ac_cv_use_menus"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
1e6feb95 8772 else
e6cc62c6
VS
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
1e6feb95 8775 fi
e6cc62c6 8776
1e6feb95 8777
5005acfe 8778 enablestring=
e6cc62c6
VS
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8781 no_cache=0
8782 # Check whether --enable-miniframe or --disable-miniframe was given.
8783if test "${enable_miniframe+set}" = set; then
8784 enableval="$enable_miniframe"
e6cc62c6 8785
10f2d63a
VZ
8786 if test "$enableval" = yes; then
8787 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8788 else
8789 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8790 fi
e6cc62c6 8791
10f2d63a 8792else
e6cc62c6 8793
10f2d63a
VZ
8794 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8802
e6cc62c6 8803fi;
10f2d63a
VZ
8804
8805 eval "$ac_cv_use_miniframe"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
10f2d63a 8813 else
e6cc62c6
VS
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
10f2d63a 8816 fi
e6cc62c6 8817
10f2d63a 8818
5005acfe 8819 enablestring=
e6cc62c6
VS
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8822 no_cache=0
8823 # Check whether --enable-tooltips or --disable-tooltips was given.
8824if test "${enable_tooltips+set}" = set; then
8825 enableval="$enable_tooltips"
e6cc62c6 8826
10f2d63a
VZ
8827 if test "$enableval" = yes; then
8828 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8829 else
8830 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8831 fi
e6cc62c6 8832
10f2d63a 8833else
e6cc62c6 8834
10f2d63a
VZ
8835 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8843
e6cc62c6 8844fi;
10f2d63a
VZ
8845
8846 eval "$ac_cv_use_tooltips"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
10f2d63a 8854 else
e6cc62c6
VS
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
10f2d63a 8857 fi
e6cc62c6 8858
10f2d63a 8859
5005acfe 8860 enablestring=
e6cc62c6
VS
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8863 no_cache=0
8864 # Check whether --enable-splines or --disable-splines was given.
8865if test "${enable_splines+set}" = set; then
8866 enableval="$enable_splines"
e6cc62c6 8867
10f2d63a
VZ
8868 if test "$enableval" = yes; then
8869 ac_cv_use_splines='wxUSE_SPLINES=yes'
8870 else
8871 ac_cv_use_splines='wxUSE_SPLINES=no'
8872 fi
e6cc62c6 8873
10f2d63a 8874else
e6cc62c6 8875
10f2d63a
VZ
8876 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8884
e6cc62c6 8885fi;
10f2d63a
VZ
8886
8887 eval "$ac_cv_use_splines"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
10f2d63a 8895 else
e6cc62c6
VS
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
10f2d63a 8898 fi
e6cc62c6 8899
10f2d63a 8900
5005acfe 8901 enablestring=
e6cc62c6
VS
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8904 no_cache=0
8905 # Check whether --enable-validators or --disable-validators was given.
8906if test "${enable_validators+set}" = set; then
8907 enableval="$enable_validators"
e6cc62c6 8908
10f2d63a
VZ
8909 if test "$enableval" = yes; then
8910 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8911 else
8912 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8913 fi
e6cc62c6 8914
10f2d63a 8915else
e6cc62c6 8916
10f2d63a
VZ
8917 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8925
e6cc62c6 8926fi;
10f2d63a
VZ
8927
8928 eval "$ac_cv_use_validators"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
10f2d63a 8936 else
e6cc62c6
VS
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
10f2d63a 8939 fi
e6cc62c6 8940
10f2d63a 8941
5005acfe 8942 enablestring=
e6cc62c6
VS
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8945 no_cache=0
8946 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8947if test "${enable_busyinfo+set}" = set; then
8948 enableval="$enable_busyinfo"
e6cc62c6 8949
10f2d63a
VZ
8950 if test "$enableval" = yes; then
8951 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8952 else
8953 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8954 fi
e6cc62c6 8955
10f2d63a 8956else
e6cc62c6 8957
10f2d63a
VZ
8958 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8966
e6cc62c6 8967fi;
10f2d63a
VZ
8968
8969 eval "$ac_cv_use_busyinfo"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
10f2d63a 8977 else
e6cc62c6
VS
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
10f2d63a 8980 fi
e6cc62c6 8981
10f2d63a 8982
5005acfe 8983 enablestring=
e6cc62c6
VS
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8986 no_cache=0
8987 # Check whether --enable-joystick or --disable-joystick was given.
8988if test "${enable_joystick+set}" = set; then
8989 enableval="$enable_joystick"
e6cc62c6 8990
f6bcfd97
BP
8991 if test "$enableval" = yes; then
8992 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8993 else
8994 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8995 fi
e6cc62c6 8996
f6bcfd97 8997else
e6cc62c6 8998
f6bcfd97
BP
8999 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9007
e6cc62c6 9008fi;
f6bcfd97
BP
9009
9010 eval "$ac_cv_use_joystick"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
f6bcfd97 9018 else
e6cc62c6
VS
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
f6bcfd97 9021 fi
e6cc62c6 9022
698dcdb6 9023
5005acfe 9024 enablestring=
e6cc62c6
VS
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9027 no_cache=0
9028 # Check whether --enable-metafile or --disable-metafile was given.
9029if test "${enable_metafile+set}" = set; then
9030 enableval="$enable_metafile"
e6cc62c6 9031
1e6feb95
VZ
9032 if test "$enableval" = yes; then
9033 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9034 else
9035 ac_cv_use_metafile='wxUSE_METAFILE=no'
9036 fi
e6cc62c6 9037
1e6feb95 9038else
e6cc62c6 9039
1e6feb95
VZ
9040 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9048
e6cc62c6 9049fi;
1e6feb95
VZ
9050
9051 eval "$ac_cv_use_metafile"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
1e6feb95 9059 else
e6cc62c6
VS
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
1e6feb95 9062 fi
e6cc62c6 9063
1e6feb95 9064
5005acfe 9065 enablestring=
e6cc62c6
VS
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9068 no_cache=0
9069 # Check whether --enable-dragimage or --disable-dragimage was given.
9070if test "${enable_dragimage+set}" = set; then
9071 enableval="$enable_dragimage"
e6cc62c6 9072
24fd6d87
VZ
9073 if test "$enableval" = yes; then
9074 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9075 else
9076 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9077 fi
e6cc62c6 9078
24fd6d87 9079else
e6cc62c6 9080
24fd6d87
VZ
9081 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9089
e6cc62c6 9090fi;
24fd6d87
VZ
9091
9092 eval "$ac_cv_use_dragimage"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
24fd6d87 9100 else
e6cc62c6
VS
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
24fd6d87 9103 fi
e6cc62c6 9104
52127426 9105
7bb2947d 9106 enablestring=
e6cc62c6
VS
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9109 no_cache=0
9110 # Check whether --enable-accessibility or --disable-accessibility was given.
9111if test "${enable_accessibility+set}" = set; then
9112 enableval="$enable_accessibility"
e6cc62c6 9113
7bb2947d
MB
9114 if test "$enableval" = yes; then
9115 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9116 else
9117 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9118 fi
e6cc62c6 9119
7bb2947d 9120else
e6cc62c6 9121
7bb2947d
MB
9122 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9130
e6cc62c6 9131fi;
7bb2947d
MB
9132
9133 eval "$ac_cv_use_accessibility"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
7bb2947d 9141 else
e6cc62c6
VS
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
7bb2947d 9144 fi
e6cc62c6 9145
7bb2947d 9146
8284b0c5
MB
9147
9148
5005acfe 9149 enablestring=
e6cc62c6
VS
9150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9151echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9152 no_cache=0
9153 # Check whether --enable-palette or --disable-palette was given.
9154if test "${enable_palette+set}" = set; then
9155 enableval="$enable_palette"
e6cc62c6 9156
edae8572
VZ
9157 if test "$enableval" = yes; then
9158 ac_cv_use_palette='wxUSE_PALETTE=yes'
9159 else
9160 ac_cv_use_palette='wxUSE_PALETTE=no'
9161 fi
e6cc62c6 9162
edae8572 9163else
e6cc62c6 9164
edae8572
VZ
9165 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9166 if test "x$LINE" != x ; then
9167 eval "DEFAULT_$LINE"
9168 else
9169 no_cache=1
9170 fi
9171
9172 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9173
e6cc62c6 9174fi;
edae8572
VZ
9175
9176 eval "$ac_cv_use_palette"
9177 if test "$no_cache" != 1; then
9178 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9179 fi
9180
9181 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9182 echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6
edae8572 9184 else
e6cc62c6
VS
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
edae8572 9187 fi
e6cc62c6 9188
edae8572 9189
5005acfe 9190 enablestring=
e6cc62c6
VS
9191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9192echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9193 no_cache=0
9194 # Check whether --enable-image or --disable-image was given.
9195if test "${enable_image+set}" = set; then
9196 enableval="$enable_image"
e6cc62c6 9197
0046ff7c
VS
9198 if test "$enableval" = yes; then
9199 ac_cv_use_image='wxUSE_IMAGE=yes'
9200 else
9201 ac_cv_use_image='wxUSE_IMAGE=no'
9202 fi
e6cc62c6 9203
0046ff7c 9204else
e6cc62c6 9205
0046ff7c
VS
9206 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9207 if test "x$LINE" != x ; then
9208 eval "DEFAULT_$LINE"
9209 else
9210 no_cache=1
9211 fi
9212
9213 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9214
e6cc62c6 9215fi;
0046ff7c
VS
9216
9217 eval "$ac_cv_use_image"
9218 if test "$no_cache" != 1; then
9219 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9220 fi
9221
9222 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9223 echo "$as_me:$LINENO: result: yes" >&5
9224echo "${ECHO_T}yes" >&6
0046ff7c 9225 else
e6cc62c6
VS
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
0046ff7c 9228 fi
e6cc62c6 9229
0046ff7c 9230
5005acfe 9231 enablestring=
e6cc62c6
VS
9232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9233echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9234 no_cache=0
9235 # Check whether --enable-gif or --disable-gif was given.
9236if test "${enable_gif+set}" = set; then
9237 enableval="$enable_gif"
e6cc62c6 9238
10f2d63a
VZ
9239 if test "$enableval" = yes; then
9240 ac_cv_use_gif='wxUSE_GIF=yes'
9241 else
9242 ac_cv_use_gif='wxUSE_GIF=no'
9243 fi
e6cc62c6 9244
10f2d63a 9245else
e6cc62c6 9246
10f2d63a
VZ
9247 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9248 if test "x$LINE" != x ; then
9249 eval "DEFAULT_$LINE"
9250 else
9251 no_cache=1
9252 fi
9253
9254 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9255
e6cc62c6 9256fi;
10f2d63a
VZ
9257
9258 eval "$ac_cv_use_gif"
9259 if test "$no_cache" != 1; then
9260 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9261 fi
9262
9263 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9264 echo "$as_me:$LINENO: result: yes" >&5
9265echo "${ECHO_T}yes" >&6
10f2d63a 9266 else
e6cc62c6
VS
9267 echo "$as_me:$LINENO: result: no" >&5
9268echo "${ECHO_T}no" >&6
10f2d63a 9269 fi
e6cc62c6 9270
10f2d63a 9271
5005acfe 9272 enablestring=
e6cc62c6
VS
9273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9274echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9275 no_cache=0
9276 # Check whether --enable-pcx or --disable-pcx was given.
9277if test "${enable_pcx+set}" = set; then
9278 enableval="$enable_pcx"
e6cc62c6 9279
10f2d63a
VZ
9280 if test "$enableval" = yes; then
9281 ac_cv_use_pcx='wxUSE_PCX=yes'
9282 else
9283 ac_cv_use_pcx='wxUSE_PCX=no'
9284 fi
e6cc62c6 9285
10f2d63a 9286else
e6cc62c6 9287
10f2d63a
VZ
9288 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9289 if test "x$LINE" != x ; then
9290 eval "DEFAULT_$LINE"
9291 else
9292 no_cache=1
9293 fi
9294
9295 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9296
e6cc62c6 9297fi;
10f2d63a
VZ
9298
9299 eval "$ac_cv_use_pcx"
9300 if test "$no_cache" != 1; then
9301 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9302 fi
9303
9304 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9305 echo "$as_me:$LINENO: result: yes" >&5
9306echo "${ECHO_T}yes" >&6
10f2d63a 9307 else
e6cc62c6
VS
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
10f2d63a 9310 fi
e6cc62c6 9311
10f2d63a 9312
5005acfe 9313 enablestring=
e6cc62c6
VS
9314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9315echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9316 no_cache=0
9317 # Check whether --enable-iff or --disable-iff was given.
9318if test "${enable_iff+set}" = set; then
9319 enableval="$enable_iff"
e6cc62c6 9320
4b6b4dfc
RR
9321 if test "$enableval" = yes; then
9322 ac_cv_use_iff='wxUSE_IFF=yes'
9323 else
9324 ac_cv_use_iff='wxUSE_IFF=no'
9325 fi
e6cc62c6 9326
4b6b4dfc 9327else
e6cc62c6 9328
4b6b4dfc
RR
9329 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9330 if test "x$LINE" != x ; then
9331 eval "DEFAULT_$LINE"
9332 else
9333 no_cache=1
9334 fi
9335
9336 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9337
e6cc62c6 9338fi;
4b6b4dfc
RR
9339
9340 eval "$ac_cv_use_iff"
9341 if test "$no_cache" != 1; then
9342 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9343 fi
9344
9345 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9346 echo "$as_me:$LINENO: result: yes" >&5
9347echo "${ECHO_T}yes" >&6
4b6b4dfc 9348 else
e6cc62c6
VS
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
4b6b4dfc 9351 fi
e6cc62c6 9352
4b6b4dfc 9353
5005acfe 9354 enablestring=
e6cc62c6
VS
9355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9356echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9357 no_cache=0
9358 # Check whether --enable-pnm or --disable-pnm was given.
9359if test "${enable_pnm+set}" = set; then
9360 enableval="$enable_pnm"
e6cc62c6 9361
10f2d63a
VZ
9362 if test "$enableval" = yes; then
9363 ac_cv_use_pnm='wxUSE_PNM=yes'
9364 else
9365 ac_cv_use_pnm='wxUSE_PNM=no'
9366 fi
e6cc62c6 9367
10f2d63a 9368else
e6cc62c6 9369
10f2d63a
VZ
9370 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9371 if test "x$LINE" != x ; then
9372 eval "DEFAULT_$LINE"
9373 else
9374 no_cache=1
9375 fi
9376
9377 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9378
e6cc62c6 9379fi;
10f2d63a
VZ
9380
9381 eval "$ac_cv_use_pnm"
9382 if test "$no_cache" != 1; then
9383 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9384 fi
9385
9386 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9387 echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
10f2d63a 9389 else
e6cc62c6
VS
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
10f2d63a 9392 fi
e6cc62c6 9393
10f2d63a 9394
5005acfe 9395 enablestring=
e6cc62c6
VS
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9398 no_cache=0
69d27ff7
MB
9399 # Check whether --enable-xpm or --disable-xpm was given.
9400if test "${enable_xpm+set}" = set; then
9401 enableval="$enable_xpm"
e6cc62c6 9402
0046ff7c 9403 if test "$enableval" = yes; then
69d27ff7 9404 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9405 else
69d27ff7 9406 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9407 fi
e6cc62c6 9408
0046ff7c 9409else
e6cc62c6 9410
0046ff7c
VS
9411 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
69d27ff7 9418 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9419
e6cc62c6 9420fi;
0046ff7c 9421
69d27ff7 9422 eval "$ac_cv_use_xpm"
0046ff7c 9423 if test "$no_cache" != 1; then
69d27ff7 9424 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9425 fi
9426
9427 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
0046ff7c 9430 else
e6cc62c6
VS
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
0046ff7c 9433 fi
e6cc62c6 9434
0046ff7c 9435
5005acfe 9436 enablestring=
e6cc62c6
VS
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9439 no_cache=0
c7206e64
VS
9440 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9441if test "${enable_ico_cur+set}" = set; then
9442 enableval="$enable_ico_cur"
e6cc62c6 9443
658974ae 9444 if test "$enableval" = yes; then
c7206e64 9445 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9446 else
c7206e64 9447 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9448 fi
e6cc62c6 9449
658974ae 9450else
e6cc62c6 9451
658974ae
VS
9452 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
c7206e64 9459 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9460
e6cc62c6 9461fi;
658974ae 9462
c7206e64 9463 eval "$ac_cv_use_ico_cur"
658974ae 9464 if test "$no_cache" != 1; then
c7206e64 9465 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9466 fi
9467
9468 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
658974ae 9471 else
e6cc62c6
VS
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
658974ae 9474 fi
e6cc62c6 9475
658974ae 9476
b12915c1
VZ
9477fi
9478
029b47ad
VS
9479
9480
9481 enablestring=
9482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9483echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9484 no_cache=0
9485 # Check whether --enable-official_build or --disable-official_build was given.
9486if test "${enable_official_build+set}" = set; then
9487 enableval="$enable_official_build"
9488
9489 if test "$enableval" = yes; then
9490 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9491 else
9492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9493 fi
9494
9495else
9496
9497 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9498 if test "x$LINE" != x ; then
9499 eval "DEFAULT_$LINE"
9500 else
9501 no_cache=1
9502 fi
9503
9504 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9505
9506fi;
9507
9508 eval "$ac_cv_use_official_build"
9509 if test "$no_cache" != 1; then
9510 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9511 fi
9512
9513 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9514 echo "$as_me:$LINENO: result: yes" >&5
9515echo "${ECHO_T}yes" >&6
9516 else
9517 echo "$as_me:$LINENO: result: no" >&5
9518echo "${ECHO_T}no" >&6
9519 fi
9520
9521# Check whether --enable-vendor or --disable-vendor was given.
9522if test "${enable_vendor+set}" = set; then
9523 enableval="$enable_vendor"
9524 VENDOR="$enableval"
9525fi;
9526if test "x$VENDOR" = "x"; then
9527 VENDOR="custom"
9528fi
9529
d558c907
VS
9530case "${host}" in
9531 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9532 PATH_IFS=';'
d558c907
VS
9533 ;;
9534 *)
9535 PATH_IFS=':'
d558c907
VS
9536 ;;
9537esac
9538
8284b0c5
MB
9539
9540
10f2d63a
VZ
9541 echo "saving argument cache $wx_arg_cache_file"
9542 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9543
8284b0c5 9544
e6cc62c6
VS
9545
9546echo "$as_me:$LINENO: checking for toolkit" >&5
9547echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9548
9549# In Wine, we need to default to MSW, not GTK or MOTIF
9550if test "$wxUSE_WINE" = "yes"; then
9551 DEFAULT_DEFAULT_wxUSE_GTK=0
9552 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9553 DEFAULT_DEFAULT_wxUSE_MSW=1
9554fi
10f2d63a
VZ
9555
9556if test "$wxUSE_GUI" = "yes"; then
9557
3a922bb4 9558 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9559 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9560echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9561 { (exit 1); exit 1; }; }
3a922bb4 9562 fi
b12915c1 9563
3a922bb4
RL
9564 if test "$TOOLKIT_GIVEN" = 1; then
9565 for toolkit in `echo $ALL_TOOLKITS`; do
9566 var=wxUSE_$toolkit
9567 eval "value=\$${var}"
9568 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9569 done
10f2d63a 9570 else
3a922bb4
RL
9571 for toolkit in `echo $ALL_TOOLKITS`; do
9572 if test "$has_toolkit_in_cache" != 1; then
9573 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9574 else
9575 var=DEFAULT_wxUSE_$toolkit
9576 fi
9577 eval "wxUSE_$toolkit=\$${var}"
9578 done
10f2d63a 9579 fi
10f2d63a 9580
ac0c4cc3
DE
9581 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9582 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9583 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9584
d558c907 9585 case "${host}" in
6fa882bd 9586 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9587 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9588 esac
10f2d63a 9589
3a922bb4
RL
9590 case "$NUM_TOOLKITS" in
9591 1)
9592 ;;
9593 0)
e6cc62c6
VS
9594 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9595echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9596 { (exit 1); exit 1; }; }
3a922bb4
RL
9597 ;;
9598 *)
e6cc62c6
VS
9599 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9600echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9601 { (exit 1); exit 1; }; }
3a922bb4 9602 esac
10f2d63a 9603
3a922bb4
RL
9604 for toolkit in `echo $ALL_TOOLKITS`; do
9605 var=wxUSE_$toolkit
9606 eval "value=\$${var}"
9607 if test "x$value" != x; then
9608 cache_var=CACHE_$toolkit
9609 eval "cache=\$${cache_var}"
9610 if test "$cache" = 1; then
9611 echo "$var=$value" >> ${wx_arg_cache_file}
9612 fi
9613 if test "$value" = 1; then
9614 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9615 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9616echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9617 fi
9618 fi
9619 done
10f2d63a 9620else
9de9b8f0
VZ
9621 if test "x$host_alias" != "x"; then
9622 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9623echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9624 else
9625 echo "$as_me:$LINENO: result: base only" >&5
9626echo "${ECHO_T}base only" >&6
9627 fi
10f2d63a
VZ
9628fi
9629
43d99b6d
VS
9630wants_win32=0
9631doesnt_want_win32=0
17234b26
MB
9632case "${host}" in
9633 *-*-cygwin*)
9634 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9635 wants_win32=1
9636 else
9637 doesnt_want_win32=1
17234b26
MB
9638 fi
9639 ;;
9640 *-*-mingw*)
43d99b6d 9641 wants_win32=1
17234b26
MB
9642 ;;
9643esac
9644
89e6bf6d
VZ
9645if test "$wxUSE_WINE" = "yes"; then
9646 wants_win32=1
9647 CC=winegcc
9648 CXX=wineg++
9649 RESCOMP=wrc
9650fi
9651
43d99b6d 9652if test "$wants_win32" = 1 ; then
17234b26
MB
9653 USE_UNIX=0
9654 USE_WIN32=1
e6cc62c6 9655 cat >>confdefs.h <<\_ACEOF
17234b26 9656#define __WIN32__ 1
e6cc62c6 9657_ACEOF
17234b26 9658
e6cc62c6 9659 cat >>confdefs.h <<\_ACEOF
17234b26 9660#define __WIN95__ 1
e6cc62c6 9661_ACEOF
17234b26 9662
e6cc62c6 9663 cat >>confdefs.h <<\_ACEOF
17234b26 9664#define __WINDOWS__ 1
e6cc62c6 9665_ACEOF
17234b26 9666
e6cc62c6 9667 cat >>confdefs.h <<\_ACEOF
17234b26 9668#define __GNUWIN32__ 1
e6cc62c6 9669_ACEOF
17234b26 9670
e6cc62c6 9671 cat >>confdefs.h <<\_ACEOF
17234b26 9672#define STRICT 1
e6cc62c6 9673_ACEOF
17234b26 9674
e6cc62c6 9675 cat >>confdefs.h <<\_ACEOF
17234b26 9676#define WINVER 0x0400
e6cc62c6 9677_ACEOF
17234b26 9678
43d99b6d
VS
9679fi
9680if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9681 USE_UNIX=1
9682 USE_WIN32=0
9683fi
9684
9685if test "$USE_UNIX" = 1 ; then
9686 wxUSE_UNIX=yes
e6cc62c6 9687 cat >>confdefs.h <<\_ACEOF
17234b26 9688#define __UNIX__ 1
e6cc62c6 9689_ACEOF
17234b26
MB
9690
9691fi
9692
8284b0c5 9693
e6cc62c6 9694cat >confcache <<\_ACEOF
10f2d63a
VZ
9695# This file is a shell script that caches the results of configure
9696# tests run on this system so they can be shared between configure
e6cc62c6
VS
9697# scripts and configure runs, see configure's option --config-cache.
9698# It is not useful on other systems. If it contains results you don't
9699# want to keep, you may remove or edit it.
10f2d63a 9700#
e6cc62c6
VS
9701# config.status only pays attention to the cache file if you give it
9702# the --recheck option to rerun configure.
10f2d63a 9703#
e6cc62c6
VS
9704# `ac_cv_env_foo' variables (set or unset) will be overridden when
9705# loading this file, other *unset* `ac_cv_foo' will be assigned the
9706# following values.
9707
9708_ACEOF
9709
10f2d63a
VZ
9710# The following way of writing the cache mishandles newlines in values,
9711# but we know of no workaround that is simple, portable, and efficient.
9712# So, don't put newlines in cache variables' values.
9713# Ultrix sh set writes to stderr and can't be redirected directly,
9714# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9715{
9716 (set) 2>&1 |
9717 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9718 *ac_space=\ *)
9719 # `set' does not quote correctly, so add quotes (double-quote
9720 # substitution turns \\\\ into \\, and sed turns \\ into \).
9721 sed -n \
9722 "s/'/'\\\\''/g;
9723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9724 ;;
9725 *)
9726 # `set' quotes correctly as required by POSIX, so do not add quotes.
9727 sed -n \
9728 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9729 ;;
9730 esac;
9731} |
9732 sed '
9733 t clear
9734 : clear
9735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9736 t end
9737 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9738 : end' >>confcache
9739if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9740 if test -w $cache_file; then
e6cc62c6
VS
9741 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9742 cat confcache >$cache_file
10f2d63a
VZ
9743 else
9744 echo "not updating unwritable cache $cache_file"
9745 fi
9746fi
9747rm -f confcache
9748
e59890c3 9749if test "$build" != "$host" ; then
9d353d4a 9750 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9751 CC=$host_alias-gcc
9752 CXX=$host_alias-c++
9753 AR=$host_alias-ar
9754 RANLIB=$host_alias-ranlib
9755 DLLTOOL=$host_alias-dlltool
9756 RESCOMP=$host_alias-windres
9757 LD=$host_alias-ld
9758 NM=$host_alias-nm
9759 STRIP=$host_alias-strip
9760 else
e6cc62c6
VS
9761 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9762echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9763 { (exit 1); exit 1; }; }
3a922bb4 9764 fi
10f2d63a
VZ
9765fi
9766
ec603395 9767CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9768ac_ext=c
9769ac_cpp='$CPP $CPPFLAGS'
9770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9772ac_compiler_gnu=$ac_cv_c_compiler_gnu
9773if test -n "$ac_tool_prefix"; then
9774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9775set dummy ${ac_tool_prefix}gcc; ac_word=$2
9776echo "$as_me:$LINENO: checking for $ac_word" >&5
9777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9778if test "${ac_cv_prog_CC+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781 if test -n "$CC"; then
9782 ac_cv_prog_CC="$CC" # Let the user override the test.
9783else
9784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785for as_dir in $PATH
9786do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795done
9796done
9797
9798fi
9799fi
9800CC=$ac_cv_prog_CC
9801if test -n "$CC"; then
9802 echo "$as_me:$LINENO: result: $CC" >&5
9803echo "${ECHO_T}$CC" >&6
9804else
9805 echo "$as_me:$LINENO: result: no" >&5
9806echo "${ECHO_T}no" >&6
9807fi
9808
9809fi
9810if test -z "$ac_cv_prog_CC"; then
9811 ac_ct_CC=$CC
9812 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9813set dummy gcc; ac_word=$2
e6cc62c6
VS
9814echo "$as_me:$LINENO: checking for $ac_word" >&5
9815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 if test -n "$ac_ct_CC"; then
9820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_prog_ac_ct_CC="gcc"
9830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834done
9835
9836fi
9837fi
9838ac_ct_CC=$ac_cv_prog_ac_ct_CC
9839if test -n "$ac_ct_CC"; then
9840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9841echo "${ECHO_T}$ac_ct_CC" >&6
9842else
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
9845fi
9846
9847 CC=$ac_ct_CC
9848else
9849 CC="$ac_cv_prog_CC"
9850fi
9851
9852if test -z "$CC"; then
9853 if test -n "$ac_tool_prefix"; then
9854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9855set dummy ${ac_tool_prefix}cc; ac_word=$2
9856echo "$as_me:$LINENO: checking for $ac_word" >&5
9857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9858if test "${ac_cv_prog_CC+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9860else
9861 if test -n "$CC"; then
9862 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9863else
e6cc62c6
VS
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871 ac_cv_prog_CC="${ac_tool_prefix}cc"
9872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876done
9877
10f2d63a 9878fi
6232543b 9879fi
e6cc62c6 9880CC=$ac_cv_prog_CC
6232543b 9881if test -n "$CC"; then
e6cc62c6
VS
9882 echo "$as_me:$LINENO: result: $CC" >&5
9883echo "${ECHO_T}$CC" >&6
9884else
9885 echo "$as_me:$LINENO: result: no" >&5
9886echo "${ECHO_T}no" >&6
9887fi
9888
9889fi
9890if test -z "$ac_cv_prog_CC"; then
9891 ac_ct_CC=$CC
9892 # Extract the first word of "cc", so it can be a program name with args.
9893set dummy cc; ac_word=$2
9894echo "$as_me:$LINENO: checking for $ac_word" >&5
9895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 if test -n "$ac_ct_CC"; then
9900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9901else
9902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903for as_dir in $PATH
9904do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_prog_ac_ct_CC="cc"
9910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913done
9914done
9915
9916fi
9917fi
9918ac_ct_CC=$ac_cv_prog_ac_ct_CC
9919if test -n "$ac_ct_CC"; then
9920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9921echo "${ECHO_T}$ac_ct_CC" >&6
9922else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925fi
9926
9927 CC=$ac_ct_CC
247f5006 9928else
e6cc62c6 9929 CC="$ac_cv_prog_CC"
247f5006
VZ
9930fi
9931
e6cc62c6 9932fi
5c6fa7d2
RR
9933if test -z "$CC"; then
9934 # Extract the first word of "cc", so it can be a program name with args.
9935set dummy cc; ac_word=$2
e6cc62c6
VS
9936echo "$as_me:$LINENO: checking for $ac_word" >&5
9937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9938if test "${ac_cv_prog_CC+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9940else
9941 if test -n "$CC"; then
9942 ac_cv_prog_CC="$CC" # Let the user override the test.
9943else
9944 ac_prog_rejected=no
e6cc62c6
VS
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9953 ac_prog_rejected=yes
9954 continue
9955 fi
9956 ac_cv_prog_CC="cc"
9957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9959 fi
9960done
9961done
9962
328a083c
RR
9963if test $ac_prog_rejected = yes; then
9964 # We found a bogon in the path, so make sure we never use it.
9965 set dummy $ac_cv_prog_CC
9966 shift
e6cc62c6 9967 if test $# != 0; then
328a083c 9968 # We chose a different compiler from the bogus one.
1e487827
VS
9969 # However, it has the same basename, so the bogon will be chosen
9970 # first if we set CC to just the basename; use the full file name.
9971 shift
e6cc62c6 9972 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9973 fi
1e487827
VS
9974fi
9975fi
9976fi
e6cc62c6 9977CC=$ac_cv_prog_CC
1e487827 9978if test -n "$CC"; then
e6cc62c6
VS
9979 echo "$as_me:$LINENO: result: $CC" >&5
9980echo "${ECHO_T}$CC" >&6
703e0a69 9981else
e6cc62c6
VS
9982 echo "$as_me:$LINENO: result: no" >&5
9983echo "${ECHO_T}no" >&6
703e0a69 9984fi
1e487827 9985
e6cc62c6
VS
9986fi
9987if test -z "$CC"; then
9988 if test -n "$ac_tool_prefix"; then
9989 for ac_prog in cl
9990 do
9991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9993echo "$as_me:$LINENO: checking for $ac_word" >&5
9994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995if test "${ac_cv_prog_CC+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9997else
9998 if test -n "$CC"; then
9999 ac_cv_prog_CC="$CC" # Let the user override the test.
10000else
e6cc62c6
VS
10001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012done
10013done
10014
f09359cf
VS
10015fi
10016fi
e6cc62c6 10017CC=$ac_cv_prog_CC
f09359cf 10018if test -n "$CC"; then
e6cc62c6
VS
10019 echo "$as_me:$LINENO: result: $CC" >&5
10020echo "${ECHO_T}$CC" >&6
f09359cf 10021else
e6cc62c6
VS
10022 echo "$as_me:$LINENO: result: no" >&5
10023echo "${ECHO_T}no" >&6
5c6fa7d2 10024fi
1e487827 10025
e6cc62c6
VS
10026 test -n "$CC" && break
10027 done
10028fi
10029if test -z "$CC"; then
10030 ac_ct_CC=$CC
10031 for ac_prog in cl
10032do
10033 # Extract the first word of "$ac_prog", so it can be a program name with args.
10034set dummy $ac_prog; ac_word=$2
10035echo "$as_me:$LINENO: checking for $ac_word" >&5
10036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 if test -n "$ac_ct_CC"; then
10041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10042else
10043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_ac_ct_CC="$ac_prog"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054done
10055done
f09359cf 10056
e6cc62c6
VS
10057fi
10058fi
10059ac_ct_CC=$ac_cv_prog_ac_ct_CC
10060if test -n "$ac_ct_CC"; then
10061 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10062echo "${ECHO_T}$ac_ct_CC" >&6
10063else
10064 echo "$as_me:$LINENO: result: no" >&5
10065echo "${ECHO_T}no" >&6
10066fi
f09359cf 10067
e6cc62c6
VS
10068 test -n "$ac_ct_CC" && break
10069done
247f5006 10070
e6cc62c6
VS
10071 CC=$ac_ct_CC
10072fi
10073
10074fi
10075
10076
10077test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10078See \`config.log' for more details." >&5
10079echo "$as_me: error: no acceptable C compiler found in \$PATH
10080See \`config.log' for more details." >&2;}
10081 { (exit 1); exit 1; }; }
10082
10083# Provide some information about the compiler.
10084echo "$as_me:$LINENO:" \
10085 "checking for C compiler version" >&5
10086ac_compiler=`set X $ac_compile; echo $2`
10087{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10088 (eval $ac_compiler --version </dev/null >&5) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }
10092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10093 (eval $ac_compiler -v </dev/null >&5) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }
10097{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10098 (eval $ac_compiler -V </dev/null >&5) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }
10102
10103cat >conftest.$ac_ext <<_ACEOF
10104#line $LINENO "configure"
10105/* confdefs.h. */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h. */
10110
10111int
10112main ()
10113{
247f5006 10114
e6cc62c6
VS
10115 ;
10116 return 0;
10117}
10118_ACEOF
10119ac_clean_files_save=$ac_clean_files
10120ac_clean_files="$ac_clean_files a.out a.exe b.out"
10121# Try to create an executable without -o first, disregard a.out.
10122# It will help us diagnose broken compilers, and finding out an intuition
10123# of exeext.
10124echo "$as_me:$LINENO: checking for C compiler default output" >&5
10125echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10127if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10128 (eval $ac_link_default) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; then
10132 # Find the output, starting from the most likely. This scheme is
10133# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10134# resort.
10135
10136# Be careful to initialize this variable, since it used to be cached.
10137# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10138ac_cv_exeext=
10139# b.out is created by i960 compilers.
10140for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10141do
10142 test -f "$ac_file" || continue
10143 case $ac_file in
10144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10145 ;;
10146 conftest.$ac_ext )
10147 # This is the source file.
10148 ;;
10149 [ab].out )
10150 # We found the default executable, but exeext='' is most
10151 # certainly right.
10152 break;;
10153 *.* )
10154 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10155 # FIXME: I believe we export ac_cv_exeext for Libtool,
10156 # but it would be cool to find out if it's true. Does anybody
10157 # maintain Libtool? --akim.
10158 export ac_cv_exeext
10159 break;;
10160 * )
10161 break;;
10162 esac
10163done
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10169See \`config.log' for more details." >&5
10170echo "$as_me: error: C compiler cannot create executables
10171See \`config.log' for more details." >&2;}
10172 { (exit 77); exit 77; }; }
10173fi
10174
10175ac_exeext=$ac_cv_exeext
10176echo "$as_me:$LINENO: result: $ac_file" >&5
10177echo "${ECHO_T}$ac_file" >&6
10178
10179# Check the compiler produces executables we can run. If not, either
10180# the compiler is broken, or we cross compile.
10181echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10182echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10183# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10184# If not cross compiling, check that we can run a simple program.
10185if test "$cross_compiling" != yes; then
10186 if { ac_try='./$ac_file'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 cross_compiling=no
698dcdb6 10193 else
e6cc62c6
VS
10194 if test "$cross_compiling" = maybe; then
10195 cross_compiling=yes
10196 else
10197 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10198If you meant to cross compile, use \`--host'.
10199See \`config.log' for more details." >&5
10200echo "$as_me: error: cannot run C compiled programs.
10201If you meant to cross compile, use \`--host'.
10202See \`config.log' for more details." >&2;}
10203 { (exit 1); exit 1; }; }
10204 fi
698dcdb6 10205 fi
52127426 10206fi
e6cc62c6
VS
10207echo "$as_me:$LINENO: result: yes" >&5
10208echo "${ECHO_T}yes" >&6
10209
10210rm -f a.out a.exe conftest$ac_cv_exeext b.out
10211ac_clean_files=$ac_clean_files_save
10212# Check the compiler produces executables we can run. If not, either
10213# the compiler is broken, or we cross compile.
10214echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10215echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10216echo "$as_me:$LINENO: result: $cross_compiling" >&5
10217echo "${ECHO_T}$cross_compiling" >&6
10218
10219echo "$as_me:$LINENO: checking for suffix of executables" >&5
10220echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; then
10226 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10227# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10228# work properly (i.e., refer to `conftest.exe'), while it won't with
10229# `rm'.
10230for ac_file in conftest.exe conftest conftest.*; do
10231 test -f "$ac_file" || continue
10232 case $ac_file in
10233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10235 export ac_cv_exeext
10236 break;;
10237 * ) break;;
10238 esac
10239done
5c6fa7d2 10240else
e6cc62c6
VS
10241 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10242See \`config.log' for more details." >&5
10243echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10244See \`config.log' for more details." >&2;}
10245 { (exit 1); exit 1; }; }
10246fi
10247
10248rm -f conftest$ac_cv_exeext
10249echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10250echo "${ECHO_T}$ac_cv_exeext" >&6
10251
10252rm -f conftest.$ac_ext
10253EXEEXT=$ac_cv_exeext
10254ac_exeext=$EXEEXT
10255echo "$as_me:$LINENO: checking for suffix of object files" >&5
10256echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10257if test "${ac_cv_objext+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259else
10260 cat >conftest.$ac_ext <<_ACEOF
10261#line $LINENO "configure"
10262/* confdefs.h. */
10263_ACEOF
10264cat confdefs.h >>conftest.$ac_ext
10265cat >>conftest.$ac_ext <<_ACEOF
10266/* end confdefs.h. */
10267
10268int
10269main ()
10270{
f09359cf 10271
e6cc62c6
VS
10272 ;
10273 return 0;
10274}
10275_ACEOF
10276rm -f conftest.o conftest.obj
10277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10283 case $ac_file in
10284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10286 break;;
10287 esac
10288done
a0b9e27f 10289else
e6cc62c6
VS
10290 echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
10293{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10294See \`config.log' for more details." >&5
10295echo "$as_me: error: cannot compute suffix of object files: cannot compile
10296See \`config.log' for more details." >&2;}
10297 { (exit 1); exit 1; }; }
a0b9e27f 10298fi
247f5006 10299
e6cc62c6
VS
10300rm -f conftest.$ac_cv_objext conftest.$ac_ext
10301fi
10302echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10303echo "${ECHO_T}$ac_cv_objext" >&6
10304OBJEXT=$ac_cv_objext
10305ac_objext=$OBJEXT
10306echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10307echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10308if test "${ac_cv_c_compiler_gnu+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10310else
e6cc62c6
VS
10311 cat >conftest.$ac_ext <<_ACEOF
10312#line $LINENO "configure"
10313/* confdefs.h. */
10314_ACEOF
10315cat confdefs.h >>conftest.$ac_ext
10316cat >>conftest.$ac_ext <<_ACEOF
10317/* end confdefs.h. */
10318
10319int
10320main ()
10321{
10322#ifndef __GNUC__
10323 choke me
10324#endif
10325
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext
10331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -s conftest.$ac_objext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_compiler_gnu=yes
10343else
10344 echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
10347ac_compiler_gnu=no
10348fi
10349rm -f conftest.$ac_objext conftest.$ac_ext
10350ac_cv_c_compiler_gnu=$ac_compiler_gnu
10351
10352fi
10353echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10354echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10355GCC=`test $ac_compiler_gnu = yes && echo yes`
10356ac_test_CFLAGS=${CFLAGS+set}
10357ac_save_CFLAGS=$CFLAGS
10358CFLAGS="-g"
10359echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10360echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10361if test "${ac_cv_prog_cc_g+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363else
10364 cat >conftest.$ac_ext <<_ACEOF
10365#line $LINENO "configure"
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371
10372int
10373main ()
10374{
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
10f2d63a
VZ
10392 ac_cv_prog_cc_g=yes
10393else
e6cc62c6
VS
10394 echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10396
e6cc62c6 10397ac_cv_prog_cc_g=no
10f2d63a 10398fi
e6cc62c6
VS
10399rm -f conftest.$ac_objext conftest.$ac_ext
10400fi
10401echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10402echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10403if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10404 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10405elif test $ac_cv_prog_cc_g = yes; then
10406 if test "$GCC" = yes; then
10f2d63a
VZ
10407 CFLAGS="-g -O2"
10408 else
f09359cf 10409 CFLAGS="-g"
10f2d63a 10410 fi
5c0a20c3 10411else
f09359cf
VS
10412 if test "$GCC" = yes; then
10413 CFLAGS="-O2"
10414 else
10415 CFLAGS=
10416 fi
10f2d63a 10417fi
e6cc62c6
VS
10418echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10419echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10420if test "${ac_cv_prog_cc_stdc+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423 ac_cv_prog_cc_stdc=no
10424ac_save_CC=$CC
10425cat >conftest.$ac_ext <<_ACEOF
10426#line $LINENO "configure"
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432#include <stdarg.h>
10433#include <stdio.h>
10434#include <sys/types.h>
10435#include <sys/stat.h>
10436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10437struct buf { int x; };
10438FILE * (*rcsopen) (struct buf *, struct stat *, int);
10439static char *e (p, i)
10440 char **p;
10441 int i;
10442{
10443 return p[i];
10444}
10445static char *f (char * (*g) (char **, int), char **p, ...)
10446{
10447 char *s;
10448 va_list v;
10449 va_start (v,p);
10450 s = g (p, va_arg (v,int));
10451 va_end (v);
10452 return s;
10453}
10454int test (int i, double x);
10455struct s1 {int (*f) (int a);};
10456struct s2 {int (*f) (double a);};
10457int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10458int argc;
10459char **argv;
10460int
10461main ()
10462{
10463return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468# Don't try gcc -ansi; that turns off useful extensions and
10469# breaks some systems' header files.
10470# AIX -qlanglvl=ansi
10471# Ultrix and OSF/1 -std1
10472# HP-UX 10.20 and later -Ae
10473# HP-UX older versions -Aa -D_HPUX_SOURCE
10474# SVR4 -Xc -D__EXTENSIONS__
10475for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10476do
10477 CC="$ac_save_CC $ac_arg"
10478 rm -f conftest.$ac_objext
10479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480 (eval $ac_compile) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -s conftest.$ac_objext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_prog_cc_stdc=$ac_arg
10491break
10492else
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496fi
10497rm -f conftest.$ac_objext
10498done
10499rm -f conftest.$ac_ext conftest.$ac_objext
10500CC=$ac_save_CC
10501
10502fi
10503
10504case "x$ac_cv_prog_cc_stdc" in
10505 x|xno)
10506 echo "$as_me:$LINENO: result: none needed" >&5
10507echo "${ECHO_T}none needed" >&6 ;;
10508 *)
10509 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10510echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10511 CC="$CC $ac_cv_prog_cc_stdc" ;;
10512esac
10513
10514# Some people use a C++ compiler to compile C. Since we use `exit',
10515# in C++ we need to declare it. In case someone uses the same compiler
10516# for both compiling C and C++ we need to have the C++ compiler decide
10517# the declaration of exit, since it's the most demanding environment.
10518cat >conftest.$ac_ext <<_ACEOF
10519#ifndef __cplusplus
10520 choke me
10521#endif
10522_ACEOF
10523rm -f conftest.$ac_objext
10524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 for ac_declaration in \
0bdb08e7
VS
10536 ''\
10537 '#include <stdlib.h>' \
e6cc62c6
VS
10538 'extern "C" void std::exit (int) throw (); using std::exit;' \
10539 'extern "C" void std::exit (int); using std::exit;' \
10540 'extern "C" void exit (int) throw ();' \
10541 'extern "C" void exit (int);' \
10542 'void exit (int);'
10543do
10544 cat >conftest.$ac_ext <<_ACEOF
10545#line $LINENO "configure"
10546/* confdefs.h. */
10547_ACEOF
10548cat confdefs.h >>conftest.$ac_ext
10549cat >>conftest.$ac_ext <<_ACEOF
10550/* end confdefs.h. */
0e012a93 10551#include <stdlib.h>
0bdb08e7 10552$ac_declaration
e6cc62c6
VS
10553int
10554main ()
10555{
10556exit (42);
10557 ;
10558 return 0;
10559}
10560_ACEOF
10561rm -f conftest.$ac_objext
10562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10563 (eval $ac_compile) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 :
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578continue
10579fi
10580rm -f conftest.$ac_objext conftest.$ac_ext
10581 cat >conftest.$ac_ext <<_ACEOF
10582#line $LINENO "configure"
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588$ac_declaration
10589int
10590main ()
10591{
10592exit (42);
10593 ;
10594 return 0;
10595}
10596_ACEOF
10597rm -f conftest.$ac_objext
10598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 break
10610else
10611 echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614fi
10615rm -f conftest.$ac_objext conftest.$ac_ext
10616done
10617rm -f conftest*
10618if test -n "$ac_declaration"; then
10619 echo '#ifdef __cplusplus' >>confdefs.h
10620 echo $ac_declaration >>confdefs.h
10621 echo '#endif' >>confdefs.h
10622fi
10623
10624else
10625 echo "$as_me: failed program was:" >&5
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
10628fi
10629rm -f conftest.$ac_objext conftest.$ac_ext
10630ac_ext=c
10631ac_cpp='$CPP $CPPFLAGS'
10632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10635
10636
e6cc62c6
VS
10637
10638ac_ext=c
10639ac_cpp='$CPP $CPPFLAGS'
10640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10642ac_compiler_gnu=$ac_cv_c_compiler_gnu
10643echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10644echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10645# On Suns, sometimes $CPP names a directory.
10646if test -n "$CPP" && test -d "$CPP"; then
10647 CPP=
10648fi
10649if test -z "$CPP"; then
e6cc62c6
VS
10650 if test "${ac_cv_prog_CPP+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652else
10653 # Double quotes because CPP needs to be expanded
10654 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10655 do
10656 ac_preproc_ok=false
10657for ac_c_preproc_warn_flag in '' yes
10658do
10659 # Use a header file that comes with gcc, so configuring glibc
10660 # with a fresh cross-compiler works.
10661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 # <limits.h> exists even on freestanding compilers.
10f2d63a 10663 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10664 # not just through cpp. "Syntax error" is here to catch this case.
10665 cat >conftest.$ac_ext <<_ACEOF
10666#line $LINENO "configure"
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672#ifdef __STDC__
10673# include <limits.h>
10674#else
10675# include <assert.h>
10676#endif
10677 Syntax error
10678_ACEOF
10679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } >/dev/null; then
10687 if test -s conftest.err; then
10688 ac_cpp_err=$ac_c_preproc_warn_flag
10689 else
10690 ac_cpp_err=
10691 fi
10f2d63a 10692else
e6cc62c6
VS
10693 ac_cpp_err=yes
10694fi
10695if test -z "$ac_cpp_err"; then
a0b9e27f 10696 :
247f5006 10697else
e6cc62c6
VS
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 # Broken: fails on valid input.
10702continue
10703fi
10704rm -f conftest.err conftest.$ac_ext
10705
10706 # OK, works on sane cases. Now check whether non-existent headers
10707 # can be detected and how.
10708 cat >conftest.$ac_ext <<_ACEOF
10709#line $LINENO "configure"
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715#include <ac_nonexistent.h>
10716_ACEOF
10717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } >/dev/null; then
10725 if test -s conftest.err; then
10726 ac_cpp_err=$ac_c_preproc_warn_flag
10727 else
10728 ac_cpp_err=
10729 fi
10f2d63a 10730else
e6cc62c6 10731 ac_cpp_err=yes
579d8138 10732fi
e6cc62c6
VS
10733if test -z "$ac_cpp_err"; then
10734 # Broken: success on invalid input.
10735continue
10736else
10737 echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
10740 # Passes both tests.
10741ac_preproc_ok=:
10742break
52127426 10743fi
e6cc62c6
VS
10744rm -f conftest.err conftest.$ac_ext
10745
10746done
10747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10748rm -f conftest.err conftest.$ac_ext
10749if $ac_preproc_ok; then
10750 break
8284b0c5 10751fi
e6cc62c6
VS
10752
10753 done
10754 ac_cv_prog_CPP=$CPP
10755
10756fi
10757 CPP=$ac_cv_prog_CPP
10758else
10759 ac_cv_prog_CPP=$CPP
10760fi
10761echo "$as_me:$LINENO: result: $CPP" >&5
10762echo "${ECHO_T}$CPP" >&6
10763ac_preproc_ok=false
10764for ac_c_preproc_warn_flag in '' yes
10765do
10766 # Use a header file that comes with gcc, so configuring glibc
10767 # with a fresh cross-compiler works.
10768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10769 # <limits.h> exists even on freestanding compilers.
10770 # On the NeXT, cc -E runs the code through the compiler's parser,
10771 # not just through cpp. "Syntax error" is here to catch this case.
10772 cat >conftest.$ac_ext <<_ACEOF
10773#line $LINENO "configure"
10774/* confdefs.h. */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h. */
10779#ifdef __STDC__
10780# include <limits.h>
10781#else
10782# include <assert.h>
10783#endif
10784 Syntax error
10785_ACEOF
10786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } >/dev/null; then
10794 if test -s conftest.err; then
10795 ac_cpp_err=$ac_c_preproc_warn_flag
10796 else
10797 ac_cpp_err=
10798 fi
10799else
10800 ac_cpp_err=yes
10801fi
10802if test -z "$ac_cpp_err"; then
10803 :
10804else
10805 echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 # Broken: fails on valid input.
10809continue
10810fi
10811rm -f conftest.err conftest.$ac_ext
10812
10813 # OK, works on sane cases. Now check whether non-existent headers
10814 # can be detected and how.
10815 cat >conftest.$ac_ext <<_ACEOF
10816#line $LINENO "configure"
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822#include <ac_nonexistent.h>
10823_ACEOF
10824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } >/dev/null; then
10832 if test -s conftest.err; then
10833 ac_cpp_err=$ac_c_preproc_warn_flag
10834 else
10835 ac_cpp_err=
10836 fi
10837else
10838 ac_cpp_err=yes
10839fi
10840if test -z "$ac_cpp_err"; then
10841 # Broken: success on invalid input.
10842continue
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 # Passes both tests.
10848ac_preproc_ok=:
10849break
a0b9e27f 10850fi
e6cc62c6
VS
10851rm -f conftest.err conftest.$ac_ext
10852
10853done
10854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10855rm -f conftest.err conftest.$ac_ext
10856if $ac_preproc_ok; then
10857 :
10858else
10859 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10860See \`config.log' for more details." >&5
10861echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10862See \`config.log' for more details." >&2;}
10863 { (exit 1); exit 1; }; }
10864fi
10865
10866ac_ext=c
10867ac_cpp='$CPP $CPPFLAGS'
10868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870ac_compiler_gnu=$ac_cv_c_compiler_gnu
10871
10872
10873echo "$as_me:$LINENO: checking for egrep" >&5
10874echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10875if test "${ac_cv_prog_egrep+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10877else
e6cc62c6
VS
10878 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10879 then ac_cv_prog_egrep='grep -E'
10880 else ac_cv_prog_egrep='egrep'
10881 fi
10f2d63a 10882fi
e6cc62c6
VS
10883echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10884echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10885 EGREP=$ac_cv_prog_egrep
10886
10f2d63a 10887
e6cc62c6
VS
10888if test $ac_cv_c_compiler_gnu = yes; then
10889 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10890echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10891if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10893else
10894 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10895 cat >conftest.$ac_ext <<_ACEOF
10896#line $LINENO "configure"
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10f2d63a
VZ
10902#include <sgtty.h>
10903Autoconf TIOCGETP
e6cc62c6 10904_ACEOF
10f2d63a 10905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10906 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10907 ac_cv_prog_gcc_traditional=yes
10908else
10f2d63a
VZ
10909 ac_cv_prog_gcc_traditional=no
10910fi
10911rm -f conftest*
10912
8284b0c5 10913
10f2d63a 10914 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10915 cat >conftest.$ac_ext <<_ACEOF
10916#line $LINENO "configure"
10917/* confdefs.h. */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h. */
10f2d63a
VZ
10922#include <termio.h>
10923Autoconf TCGETA
e6cc62c6 10924_ACEOF
10f2d63a 10925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10926 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10927 ac_cv_prog_gcc_traditional=yes
10928fi
10929rm -f conftest*
10930
10931 fi
10932fi
e6cc62c6
VS
10933echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10934echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10935 if test $ac_cv_prog_gcc_traditional = yes; then
10936 CC="$CC -traditional"
10937 fi
10938fi
10939
8284b0c5
MB
10940
10941
e6cc62c6
VS
10942
10943ac_ext=cc
1e487827 10944ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10948
698dcdb6 10949
ec603395 10950CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10951ac_ext=cc
10952ac_cpp='$CXXCPP $CPPFLAGS'
10953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10956if test -n "$ac_tool_prefix"; then
10957 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10958 do
10959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10961echo "$as_me:$LINENO: checking for $ac_word" >&5
10962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10963if test "${ac_cv_prog_CXX+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10965else
10966 if test -n "$CXX"; then
10967 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10968else
e6cc62c6
VS
10969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $PATH
10971do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10979 fi
10980done
10981done
10982
10f2d63a
VZ
10983fi
10984fi
e6cc62c6 10985CXX=$ac_cv_prog_CXX
10f2d63a 10986if test -n "$CXX"; then
e6cc62c6
VS
10987 echo "$as_me:$LINENO: result: $CXX" >&5
10988echo "${ECHO_T}$CXX" >&6
10f2d63a 10989else
e6cc62c6
VS
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10f2d63a
VZ
10992fi
10993
e6cc62c6
VS
10994 test -n "$CXX" && break
10995 done
10996fi
10997if test -z "$CXX"; then
10998 ac_ct_CXX=$CXX
10999 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11000do
11001 # Extract the first word of "$ac_prog", so it can be a program name with args.
11002set dummy $ac_prog; ac_word=$2
11003echo "$as_me:$LINENO: checking for $ac_word" >&5
11004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11005if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 if test -n "$ac_ct_CXX"; then
11009 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11010else
11011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012for as_dir in $PATH
11013do
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018 ac_cv_prog_ac_ct_CXX="$ac_prog"
11019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11021 fi
11022done
10f2d63a 11023done
a0b9e27f 11024
8284b0c5 11025fi
a0b9e27f 11026fi
e6cc62c6
VS
11027ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11028if test -n "$ac_ct_CXX"; then
11029 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11030echo "${ECHO_T}$ac_ct_CXX" >&6
11031else
11032 echo "$as_me:$LINENO: result: no" >&5
11033echo "${ECHO_T}no" >&6
a0b9e27f 11034fi
10f2d63a 11035
e6cc62c6
VS
11036 test -n "$ac_ct_CXX" && break
11037done
11038test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11039
11040 CXX=$ac_ct_CXX
11041fi
11042
11043
11044# Provide some information about the compiler.
11045echo "$as_me:$LINENO:" \
11046 "checking for C++ compiler version" >&5
11047ac_compiler=`set X $ac_compile; echo $2`
11048{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11049 (eval $ac_compiler --version </dev/null >&5) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }
11053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11054 (eval $ac_compiler -v </dev/null >&5) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }
11058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11059 (eval $ac_compiler -V </dev/null >&5) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11063
11064echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11065echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11066if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 cat >conftest.$ac_ext <<_ACEOF
11070#line $LINENO "configure"
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076
11077int
11078main ()
11079{
11080#ifndef __GNUC__
11081 choke me
11082#endif
10f2d63a 11083
e6cc62c6
VS
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088rm -f conftest.$ac_objext
11089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_compiler_gnu=yes
11101else
11102 echo "$as_me: failed program was:" >&5
11103sed 's/^/| /' conftest.$ac_ext >&5
11104
11105ac_compiler_gnu=no
11106fi
11107rm -f conftest.$ac_objext conftest.$ac_ext
11108ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11109
11110fi
11111echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11112echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11113GXX=`test $ac_compiler_gnu = yes && echo yes`
11114ac_test_CXXFLAGS=${CXXFLAGS+set}
11115ac_save_CXXFLAGS=$CXXFLAGS
11116CXXFLAGS="-g"
11117echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11118echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11119if test "${ac_cv_prog_cxx_g+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 cat >conftest.$ac_ext <<_ACEOF
11123#line $LINENO "configure"
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
11128/* end confdefs.h. */
11129
11130int
11131main ()
11132{
f09359cf 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
10f2d63a
VZ
11150 ac_cv_prog_cxx_g=yes
11151else
e6cc62c6
VS
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11154
e6cc62c6 11155ac_cv_prog_cxx_g=no
10f2d63a 11156fi
e6cc62c6
VS
11157rm -f conftest.$ac_objext conftest.$ac_ext
11158fi
11159echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11160echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11161if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11162 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11163elif test $ac_cv_prog_cxx_g = yes; then
11164 if test "$GXX" = yes; then
10f2d63a
VZ
11165 CXXFLAGS="-g -O2"
11166 else
f09359cf 11167 CXXFLAGS="-g"
10f2d63a 11168 fi
5c0a20c3 11169else
f09359cf
VS
11170 if test "$GXX" = yes; then
11171 CXXFLAGS="-O2"
11172 else
11173 CXXFLAGS=
11174 fi
10f2d63a 11175fi
e6cc62c6 11176for ac_declaration in \
0bdb08e7
VS
11177 ''\
11178 '#include <stdlib.h>' \
e6cc62c6
VS
11179 'extern "C" void std::exit (int) throw (); using std::exit;' \
11180 'extern "C" void std::exit (int); using std::exit;' \
11181 'extern "C" void exit (int) throw ();' \
11182 'extern "C" void exit (int);' \
11183 'void exit (int);'
11184do
11185 cat >conftest.$ac_ext <<_ACEOF
11186#line $LINENO "configure"
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
0e012a93 11192#include <stdlib.h>
0bdb08e7 11193$ac_declaration
e6cc62c6
VS
11194int
11195main ()
11196{
11197exit (42);
11198 ;
11199 return 0;
11200}
11201_ACEOF
11202rm -f conftest.$ac_objext
11203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 :
11215else
11216 echo "$as_me: failed program was:" >&5
11217sed 's/^/| /' conftest.$ac_ext >&5
11218
11219continue
11220fi
11221rm -f conftest.$ac_objext conftest.$ac_ext
11222 cat >conftest.$ac_ext <<_ACEOF
11223#line $LINENO "configure"
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229$ac_declaration
11230int
11231main ()
11232{
11233exit (42);
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238rm -f conftest.$ac_objext
11239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -s conftest.$ac_objext'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 break
11251else
11252 echo "$as_me: failed program was:" >&5
11253sed 's/^/| /' conftest.$ac_ext >&5
11254
11255fi
11256rm -f conftest.$ac_objext conftest.$ac_ext
11257done
11258rm -f conftest*
11259if test -n "$ac_declaration"; then
11260 echo '#ifdef __cplusplus' >>confdefs.h
11261 echo $ac_declaration >>confdefs.h
11262 echo '#endif' >>confdefs.h
11263fi
11264
11265ac_ext=cc
11266ac_cpp='$CXXCPP $CPPFLAGS'
11267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11270
11271
10f2d63a 11272ac_ext=c
10f2d63a 11273ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11277
11278
e6cc62c6
VS
11279if test -n "$ac_tool_prefix"; then
11280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11281set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11282echo "$as_me:$LINENO: checking for $ac_word" >&5
11283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11284if test "${ac_cv_prog_RANLIB+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11286else
11287 if test -n "$RANLIB"; then
11288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11289else
e6cc62c6
VS
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11300 fi
11301done
11302done
11303
10f2d63a
VZ
11304fi
11305fi
e6cc62c6 11306RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11307if test -n "$RANLIB"; then
e6cc62c6
VS
11308 echo "$as_me:$LINENO: result: $RANLIB" >&5
11309echo "${ECHO_T}$RANLIB" >&6
11310else
11311 echo "$as_me:$LINENO: result: no" >&5
11312echo "${ECHO_T}no" >&6
11313fi
11314
11315fi
11316if test -z "$ac_cv_prog_RANLIB"; then
11317 ac_ct_RANLIB=$RANLIB
11318 # Extract the first word of "ranlib", so it can be a program name with args.
11319set dummy ranlib; ac_word=$2
11320echo "$as_me:$LINENO: checking for $ac_word" >&5
11321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11322if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11324else
e6cc62c6
VS
11325 if test -n "$ac_ct_RANLIB"; then
11326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_ac_ct_RANLIB="ranlib"
11336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340done
11341
11342 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11343fi
11344fi
11345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11346if test -n "$ac_ct_RANLIB"; then
11347 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11348echo "${ECHO_T}$ac_ct_RANLIB" >&6
11349else
11350 echo "$as_me:$LINENO: result: no" >&5
11351echo "${ECHO_T}no" >&6
11352fi
11353
11354 RANLIB=$ac_ct_RANLIB
11355else
11356 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11357fi
11358
10f2d63a
VZ
11359
11360# Extract the first word of "ar", so it can be a program name with args.
11361set dummy ar; ac_word=$2
e6cc62c6
VS
11362echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11364if test "${ac_cv_prog_AR+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11366else
11367 if test -n "$AR"; then
11368 ac_cv_prog_AR="$AR" # Let the user override the test.
11369else
e6cc62c6
VS
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_AR="ar"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382done
11383
10f2d63a
VZ
11384fi
11385fi
e6cc62c6 11386AR=$ac_cv_prog_AR
10f2d63a 11387if test -n "$AR"; then
e6cc62c6
VS
11388 echo "$as_me:$LINENO: result: $AR" >&5
11389echo "${ECHO_T}$AR" >&6
10f2d63a 11390else
e6cc62c6
VS
11391 echo "$as_me:$LINENO: result: no" >&5
11392echo "${ECHO_T}no" >&6
10f2d63a
VZ
11393fi
11394
911740e7
VS
11395if test "x$AR" = "x" ; then
11396 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11397echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11398 { (exit 1); exit 1; }; }
11399fi
8284b0c5 11400
6054113a 11401# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11402# so one script is as good as another. But avoid the broken or
11403# incompatible versions:
11404# SysV /etc/install, /usr/sbin/install
11405# SunOS /usr/etc/install
11406# IRIX /sbin/install
11407# AIX /bin/install
e6cc62c6 11408# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11409# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11410# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11411# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11412# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11413echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11414echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11415if test -z "$INSTALL"; then
e6cc62c6
VS
11416if test "${ac_cv_path_install+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 # Account for people who put trailing slashes in PATH elements.
11425case $as_dir/ in
11426 ./ | .// | /cC/* | \
11427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11428 /usr/ucb/* ) ;;
11429 *)
11430 # OSF1 and SCO ODT 3.0 have their own names for install.
11431 # Don't use installbsd from OSF since it installs stuff as root
11432 # by default.
11433 for ac_prog in ginstall scoinst install; do
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11436 if test $ac_prog = install &&
11437 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11438 # AIX install. It has an incompatible calling convention.
11439 :
11440 elif test $ac_prog = install &&
11441 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11442 # program-specific install script used by HP pwplus--don't use.
11443 :
11444 else
11445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11446 break 3
11447 fi
11448 fi
10f2d63a 11449 done
e6cc62c6
VS
11450 done
11451 ;;
11452esac
11453done
11454
10f2d63a
VZ
11455
11456fi
11457 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11458 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11459 else
11460 # As a last resort, use the slow shell script. We don't cache a
11461 # path for INSTALL within a source directory, because that will
11462 # break other packages using the cache if that directory is
11463 # removed, or if the path is relative.
e6cc62c6 11464 INSTALL=$ac_install_sh
10f2d63a
VZ
11465 fi
11466fi
e6cc62c6
VS
11467echo "$as_me:$LINENO: result: $INSTALL" >&5
11468echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11469
11470# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11471# It thinks the first close brace ends the variable substitution.
11472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11473
e6cc62c6 11474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11475
10f2d63a
VZ
11476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11477
8284b0c5 11478
1d1b75ac
VZ
11479case ${INSTALL} in
11480 /* ) # Absolute
11481 ;;
4f5a7f74
VZ
11482 ?:* ) # Drive letter, considered as absolute.
11483 ;;
3bd8fb5f 11484 *)
1d1b75ac
VZ
11485 INSTALL=`pwd`/${INSTALL} ;;
11486esac
11487
4f5a7f74
VZ
11488case ${host} in
11489 *-hp-hpux* )
11490 INSTALL_DIR="mkdir"
11491 ;;
11492
11493 *) INSTALL_DIR="$INSTALL -d"
11494 ;;
11495esac
11496
8284b0c5 11497
6054113a
GD
11498case "${host}" in
11499
b5853384 11500 powerpc-*-darwin* )
eb99ae0b
GD
11501 INSTALL_PROGRAM="cp -fp"
11502 INSTALL_DATA="cp -fp"
6054113a
GD
11503 ;;
11504 *)
11505 ;;
d6853540 11506esac
698dcdb6 11507
10f2d63a
VZ
11508# Extract the first word of "strip", so it can be a program name with args.
11509set dummy strip; ac_word=$2
e6cc62c6
VS
11510echo "$as_me:$LINENO: checking for $ac_word" >&5
11511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11512if test "${ac_cv_prog_STRIP+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11514else
11515 if test -n "$STRIP"; then
11516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11517else
e6cc62c6
VS
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_prog_STRIP="strip"
11526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11528 fi
11529done
11530done
11531
10f2d63a
VZ
11532 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11533fi
11534fi
e6cc62c6 11535STRIP=$ac_cv_prog_STRIP
10f2d63a 11536if test -n "$STRIP"; then
e6cc62c6
VS
11537 echo "$as_me:$LINENO: result: $STRIP" >&5
11538echo "${ECHO_T}$STRIP" >&6
10f2d63a 11539else
e6cc62c6
VS
11540 echo "$as_me:$LINENO: result: no" >&5
11541echo "${ECHO_T}no" >&6
10f2d63a
VZ
11542fi
11543
5c6fa7d2 11544
e6cc62c6
VS
11545echo "$as_me:$LINENO: checking if make is GNU make" >&5
11546echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11547if test "${wx_cv_prog_makeisgnu+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11549else
e6cc62c6 11550
414eab6d 11551 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11552 egrep -s GNU > /dev/null); then
414eab6d
VZ
11553 wx_cv_prog_makeisgnu="yes"
11554 else
11555 wx_cv_prog_makeisgnu="no"
11556 fi
11557
11558fi
e6cc62c6
VS
11559echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11560echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11561
11562if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11563 IF_GNU_MAKE=""
11564else
11565 IF_GNU_MAKE="#"
11566fi
11567
8284b0c5
MB
11568
11569
414eab6d 11570if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11571echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11572echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11573if test "${wx_cv_prog_makevpath+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11575else
e6cc62c6 11576
10f2d63a
VZ
11577cat - << EOF > confMake
11578check : file
11579 cp \$? \$@
11580 cp \$? final_file
11581EOF
11582
11583if test ! -d sub ; then
11584 mkdir sub
11585fi
11586echo dummy > sub/file
f6bcfd97 11587${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11588RESULT=$?
11589rm -f sub/file check final_file confMake
11590rmdir sub
11591if test "$RESULT" = 0; then
04e7a216 11592 wx_cv_prog_makevpath="yes"
10f2d63a 11593else
04e7a216
VZ
11594 wx_cv_prog_makevpath="no"
11595fi
11596
11597fi
e6cc62c6
VS
11598echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11599echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11600
11601if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11602{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11603You need a make-utility that is able to use the variable
11604VPATH correctly.
11605If your version of make does not support VPATH correctly,
11606please install GNU-make (possibly as gmake), and start
11607configure with the following command:
11608export MAKE=gmake; ./configure for sh-type shells
11609setenv MAKE gmake; ./configure for csh-type shells
11610Also please do remember to use gmake in this case every time
11611you are trying to compile.
e6cc62c6
VS
11612" >&5
11613echo "$as_me: error:
11614You need a make-utility that is able to use the variable
11615VPATH correctly.
11616If your version of make does not support VPATH correctly,
11617please install GNU-make (possibly as gmake), and start
11618configure with the following command:
11619export MAKE=gmake; ./configure for sh-type shells
11620setenv MAKE gmake; ./configure for csh-type shells
11621Also please do remember to use gmake in this case every time
11622you are trying to compile.
11623" >&2;}
11624 { (exit 1); exit 1; }; }
11625fi fi
e6cc62c6
VS
11626echo "$as_me:$LINENO: checking whether ln -s works" >&5
11627echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11628LN_S=$as_ln_s
11629if test "$LN_S" = "ln -s"; then
11630 echo "$as_me:$LINENO: result: yes" >&5
11631echo "${ECHO_T}yes" >&6
10f2d63a 11632else
e6cc62c6
VS
11633 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11634echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11635fi
5c6fa7d2 11636
247f5006 11637
2b5f62a0
VZ
11638case "${host}" in
11639 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11640 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11641 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11642echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11643if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11645else
e6cc62c6 11646 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11647LIBS="-lcExt $LIBS"
e6cc62c6
VS
11648cat >conftest.$ac_ext <<_ACEOF
11649#line $LINENO "configure"
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655
2b5f62a0 11656/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11657#ifdef __cplusplus
11658extern "C"
11659#endif
2b5f62a0 11660/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11661 builtin and then its argument prototype would still apply. */
11662char drand48 ();
11663int
11664main ()
11665{
11666drand48 ();
11667 ;
11668 return 0;
11669}
11670_ACEOF
11671rm -f conftest.$ac_objext conftest$ac_exeext
11672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_lib_cExt_drand48=yes
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688ac_cv_lib_cExt_drand48=no
11689fi
11690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11691LIBS=$ac_check_lib_save_LIBS
11692fi
11693echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11694echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11695if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11696 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11697fi
11698
11699 else
11700 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11701 fi
11702 ;;
11703esac
11704
a0b9e27f 11705
01aa5863
VS
11706if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11707 echo "$as_me:$LINENO: checking for strings.h" >&5
11708echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11709if test "${ac_cv_header_strings_h+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 ac_cv_header_strings_h=no
11713fi
11714echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11715echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11716 if test "$ac_cv_header_strings_h" = "no"; then
11717 echo "$as_me:$LINENO: result: forced no into cache" >&5
11718echo "${ECHO_T}forced no into cache" >&6
11719 else
11720 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11721echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11722 fi
11723fi
11724echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11725echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11726if test "${ac_cv_header_stdc+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 cat >conftest.$ac_ext <<_ACEOF
11730#line $LINENO "configure"
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736#include <stdlib.h>
11737#include <stdarg.h>
11738#include <string.h>
11739#include <float.h>
247f5006 11740
e6cc62c6
VS
11741int
11742main ()
11743{
90dd450c 11744
e6cc62c6
VS
11745 ;
11746 return 0;
11747}
11748_ACEOF
11749rm -f conftest.$ac_objext
11750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 ac_cv_header_stdc=yes
8284b0c5 11762else
e6cc62c6
VS
11763 echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766ac_cv_header_stdc=no
21d1c967 11767fi
e6cc62c6 11768rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11769
e6cc62c6
VS
11770if test $ac_cv_header_stdc = yes; then
11771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11772 cat >conftest.$ac_ext <<_ACEOF
11773#line $LINENO "configure"
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779#include <string.h>
11780
11781_ACEOF
11782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783 $EGREP "memchr" >/dev/null 2>&1; then
11784 :
11785else
11786 ac_cv_header_stdc=no
3a922bb4 11787fi
a0b9e27f 11788rm -f conftest*
e6cc62c6 11789
90dd450c 11790fi
e6cc62c6
VS
11791
11792if test $ac_cv_header_stdc = yes; then
11793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11794 cat >conftest.$ac_ext <<_ACEOF
11795#line $LINENO "configure"
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801#include <stdlib.h>
11802
11803_ACEOF
11804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11805 $EGREP "free" >/dev/null 2>&1; then
11806 :
a0b9e27f 11807else
e6cc62c6 11808 ac_cv_header_stdc=no
21d1c967 11809fi
e6cc62c6 11810rm -f conftest*
247f5006
VZ
11811
11812fi
e6cc62c6
VS
11813
11814if test $ac_cv_header_stdc = yes; then
11815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11816 if test "$cross_compiling" = yes; then
11817 :
11818else
11819 cat >conftest.$ac_ext <<_ACEOF
11820#line $LINENO "configure"
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
11826#include <ctype.h>
11827#if ((' ' & 0x0FF) == 0x020)
11828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11830#else
11831# define ISLOWER(c) \
11832 (('a' <= (c) && (c) <= 'i') \
11833 || ('j' <= (c) && (c) <= 'r') \
11834 || ('s' <= (c) && (c) <= 'z'))
11835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11836#endif
11837
11838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11839int
11840main ()
11841{
11842 int i;
11843 for (i = 0; i < 256; i++)
11844 if (XOR (islower (i), ISLOWER (i))
11845 || toupper (i) != TOUPPER (i))
11846 exit(2);
11847 exit (0);
11848}
11849_ACEOF
11850rm -f conftest$ac_exeext
11851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 :
a0b9e27f 11862else
e6cc62c6
VS
11863 echo "$as_me: program exited with status $ac_status" >&5
11864echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867( exit $ac_status )
11868ac_cv_header_stdc=no
11869fi
11870rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11871fi
11872fi
11873fi
11874echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11875echo "${ECHO_T}$ac_cv_header_stdc" >&6
11876if test $ac_cv_header_stdc = yes; then
11877
11878cat >>confdefs.h <<\_ACEOF
11879#define STDC_HEADERS 1
11880_ACEOF
11881
a0b9e27f 11882fi
e6cc62c6
VS
11883
11884# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11895 inttypes.h stdint.h unistd.h
11896do
11897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11898echo "$as_me:$LINENO: checking for $ac_header" >&5
11899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11900if eval "test \"\${$as_ac_Header+set}\" = set"; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 cat >conftest.$ac_ext <<_ACEOF
11904#line $LINENO "configure"
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910$ac_includes_default
11911
11912#include <$ac_header>
11913_ACEOF
11914rm -f conftest.$ac_objext
11915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 eval "$as_ac_Header=yes"
11927else
11928 echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
11931eval "$as_ac_Header=no"
11932fi
11933rm -f conftest.$ac_objext conftest.$ac_ext
11934fi
11935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11937if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11940_ACEOF
11941
11942fi
11943
a0b9e27f 11944done
90dd450c 11945
e6cc62c6
VS
11946
11947
11948for ac_header in strings.h
21d1c967 11949do
e6cc62c6
VS
11950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11951if eval "test \"\${$as_ac_Header+set}\" = set"; then
11952 echo "$as_me:$LINENO: checking for $ac_header" >&5
11953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11954if eval "test \"\${$as_ac_Header+set}\" = set"; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956fi
11957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11959else
11960 # Is the header compilable?
11961echo "$as_me:$LINENO: checking $ac_header usability" >&5
11962echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11963cat >conftest.$ac_ext <<_ACEOF
11964#line $LINENO "configure"
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970$ac_includes_default
11971#include <$ac_header>
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_header_compiler=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_header_compiler=no
11991fi
11992rm -f conftest.$ac_objext conftest.$ac_ext
11993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11994echo "${ECHO_T}$ac_header_compiler" >&6
11995
11996# Is the header present?
11997echo "$as_me:$LINENO: checking $ac_header presence" >&5
11998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11999cat >conftest.$ac_ext <<_ACEOF
12000#line $LINENO "configure"
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006#include <$ac_header>
12007_ACEOF
12008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev/null; then
12016 if test -s conftest.err; then
12017 ac_cpp_err=$ac_c_preproc_warn_flag
12018 else
12019 ac_cpp_err=
12020 fi
12021else
12022 ac_cpp_err=yes
12023fi
12024if test -z "$ac_cpp_err"; then
12025 ac_header_preproc=yes
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 ac_header_preproc=no
12031fi
12032rm -f conftest.err conftest.$ac_ext
12033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12034echo "${ECHO_T}$ac_header_preproc" >&6
12035
12036# So? What about this header?
12037case $ac_header_compiler:$ac_header_preproc in
12038 yes:no )
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12043 (
12044 cat <<\_ASBOX
12045## ------------------------------------ ##
12046## Report this to bug-autoconf@gnu.org. ##
12047## ------------------------------------ ##
12048_ASBOX
12049 ) |
12050 sed "s/^/$as_me: WARNING: /" >&2
12051 ;;
12052 no:yes )
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12059 (
12060 cat <<\_ASBOX
12061## ------------------------------------ ##
12062## Report this to bug-autoconf@gnu.org. ##
12063## ------------------------------------ ##
12064_ASBOX
12065 ) |
12066 sed "s/^/$as_me: WARNING: /" >&2
12067 ;;
12068esac
12069echo "$as_me:$LINENO: checking for $ac_header" >&5
12070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12071if eval "test \"\${$as_ac_Header+set}\" = set"; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12075fi
e6cc62c6
VS
12076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12078
a0b9e27f 12079fi
e6cc62c6
VS
12080if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083_ACEOF
12084
12085fi
12086
12087done
12088
e6cc62c6
VS
12089
12090
12091for ac_header in stdlib.h
12092do
12093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12094if eval "test \"\${$as_ac_Header+set}\" = set"; then
12095 echo "$as_me:$LINENO: checking for $ac_header" >&5
12096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12097if eval "test \"\${$as_ac_Header+set}\" = set"; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099fi
12100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12102else
12103 # Is the header compilable?
12104echo "$as_me:$LINENO: checking $ac_header usability" >&5
12105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12106cat >conftest.$ac_ext <<_ACEOF
12107#line $LINENO "configure"
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113$ac_includes_default
12114#include <$ac_header>
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -s conftest.$ac_objext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_header_compiler=yes
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133ac_header_compiler=no
12134fi
12135rm -f conftest.$ac_objext conftest.$ac_ext
12136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12137echo "${ECHO_T}$ac_header_compiler" >&6
12138
12139# Is the header present?
12140echo "$as_me:$LINENO: checking $ac_header presence" >&5
12141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12142cat >conftest.$ac_ext <<_ACEOF
12143#line $LINENO "configure"
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#include <$ac_header>
12150_ACEOF
12151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } >/dev/null; then
12159 if test -s conftest.err; then
12160 ac_cpp_err=$ac_c_preproc_warn_flag
12161 else
12162 ac_cpp_err=
12163 fi
12164else
12165 ac_cpp_err=yes
12166fi
12167if test -z "$ac_cpp_err"; then
12168 ac_header_preproc=yes
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 ac_header_preproc=no
12174fi
12175rm -f conftest.err conftest.$ac_ext
12176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12177echo "${ECHO_T}$ac_header_preproc" >&6
12178
12179# So? What about this header?
12180case $ac_header_compiler:$ac_header_preproc in
12181 yes:no )
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12186 (
12187 cat <<\_ASBOX
12188## ------------------------------------ ##
12189## Report this to bug-autoconf@gnu.org. ##
12190## ------------------------------------ ##
12191_ASBOX
12192 ) |
12193 sed "s/^/$as_me: WARNING: /" >&2
12194 ;;
12195 no:yes )
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12202 (
12203 cat <<\_ASBOX
12204## ------------------------------------ ##
12205## Report this to bug-autoconf@gnu.org. ##
12206## ------------------------------------ ##
12207_ASBOX
12208 ) |
12209 sed "s/^/$as_me: WARNING: /" >&2
12210 ;;
12211esac
12212echo "$as_me:$LINENO: checking for $ac_header" >&5
12213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12214if eval "test \"\${$as_ac_Header+set}\" = set"; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12216else
e6cc62c6
VS
12217 eval "$as_ac_Header=$ac_header_preproc"
12218fi
12219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12221
21d1c967 12222fi
e6cc62c6
VS
12223if test `eval echo '${'$as_ac_Header'}'` = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226_ACEOF
12227
12228fi
12229
21d1c967 12230done
4f14bcd8 12231
5c6fa7d2 12232
e6cc62c6 12233for ac_header in malloc.h
21d1c967 12234do
e6cc62c6
VS
12235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236if eval "test \"\${$as_ac_Header+set}\" = set"; then
12237 echo "$as_me:$LINENO: checking for $ac_header" >&5
12238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12239if eval "test \"\${$as_ac_Header+set}\" = set"; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241fi
12242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12244else
12245 # Is the header compilable?
12246echo "$as_me:$LINENO: checking $ac_header usability" >&5
12247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12248cat >conftest.$ac_ext <<_ACEOF
12249#line $LINENO "configure"
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255$ac_includes_default
12256#include <$ac_header>
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275ac_header_compiler=no
12276fi
12277rm -f conftest.$ac_objext conftest.$ac_ext
12278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279echo "${ECHO_T}$ac_header_compiler" >&6
12280
12281# Is the header present?
12282echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12284cat >conftest.$ac_ext <<_ACEOF
12285#line $LINENO "configure"
12286/* confdefs.h. */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h. */
12291#include <$ac_header>
12292_ACEOF
12293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 else
12304 ac_cpp_err=
12305 fi
12306else
12307 ac_cpp_err=yes
12308fi
12309if test -z "$ac_cpp_err"; then
12310 ac_header_preproc=yes
12311else
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_header_preproc=no
12316fi
12317rm -f conftest.err conftest.$ac_ext
12318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319echo "${ECHO_T}$ac_header_preproc" >&6
12320
12321# So? What about this header?
12322case $ac_header_compiler:$ac_header_preproc in
12323 yes:no )
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12328 (
12329 cat <<\_ASBOX
12330## ------------------------------------ ##
12331## Report this to bug-autoconf@gnu.org. ##
12332## ------------------------------------ ##
12333_ASBOX
12334 ) |
12335 sed "s/^/$as_me: WARNING: /" >&2
12336 ;;
12337 no:yes )
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344 (
12345 cat <<\_ASBOX
12346## ------------------------------------ ##
12347## Report this to bug-autoconf@gnu.org. ##
12348## ------------------------------------ ##
12349_ASBOX
12350 ) |
12351 sed "s/^/$as_me: WARNING: /" >&2
12352 ;;
12353esac
12354echo "$as_me:$LINENO: checking for $ac_header" >&5
12355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12356if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12360fi
e6cc62c6
VS
12361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12363
21d1c967 12364fi
e6cc62c6
VS
12365if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366 cat >>confdefs.h <<_ACEOF
12367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368_ACEOF
12369
12370fi
12371
12372done
12373
12374
12375for ac_header in unistd.h
12376do
12377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383fi
12384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386else
12387 # Is the header compilable?
12388echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390cat >conftest.$ac_ext <<_ACEOF
12391#line $LINENO "configure"
12392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397$ac_includes_default
12398#include <$ac_header>
12399_ACEOF
12400rm -f conftest.$ac_objext
12401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417ac_header_compiler=no
12418fi
12419rm -f conftest.$ac_objext conftest.$ac_ext
12420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421echo "${ECHO_T}$ac_header_compiler" >&6
12422
12423# Is the header present?
12424echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426cat >conftest.$ac_ext <<_ACEOF
12427#line $LINENO "configure"
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433#include <$ac_header>
12434_ACEOF
12435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null; then
12443 if test -s conftest.err; then
12444 ac_cpp_err=$ac_c_preproc_warn_flag
12445 else
12446 ac_cpp_err=
12447 fi
a0b9e27f 12448else
e6cc62c6
VS
12449 ac_cpp_err=yes
12450fi
12451if test -z "$ac_cpp_err"; then
12452 ac_header_preproc=yes
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_header_preproc=no
12458fi
12459rm -f conftest.err conftest.$ac_ext
12460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461echo "${ECHO_T}$ac_header_preproc" >&6
12462
12463# So? What about this header?
12464case $ac_header_compiler:$ac_header_preproc in
12465 yes:no )
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 (
12471 cat <<\_ASBOX
12472## ------------------------------------ ##
12473## Report this to bug-autoconf@gnu.org. ##
12474## ------------------------------------ ##
12475_ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479 no:yes )
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12486 (
12487 cat <<\_ASBOX
12488## ------------------------------------ ##
12489## Report this to bug-autoconf@gnu.org. ##
12490## ------------------------------------ ##
12491_ASBOX
12492 ) |
12493 sed "s/^/$as_me: WARNING: /" >&2
12494 ;;
12495esac
12496echo "$as_me:$LINENO: checking for $ac_header" >&5
12497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 eval "$as_ac_Header=$ac_header_preproc"
12502fi
12503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12505
12506fi
12507if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510_ACEOF
12511
d4158b5d 12512fi
e6cc62c6 12513
21d1c967 12514done
f6bcfd97 12515
e6cc62c6
VS
12516
12517for ac_header in wchar.h
12518do
12519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528else
12529 # Is the header compilable?
12530echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532cat >conftest.$ac_ext <<_ACEOF
12533#line $LINENO "configure"
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539$ac_includes_default
12540#include <$ac_header>
12541_ACEOF
12542rm -f conftest.$ac_objext
12543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_header_compiler=yes
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559ac_header_compiler=no
12560fi
12561rm -f conftest.$ac_objext conftest.$ac_ext
12562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563echo "${ECHO_T}$ac_header_compiler" >&6
12564
12565# Is the header present?
12566echo "$as_me:$LINENO: checking $ac_header presence" >&5
12567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12568cat >conftest.$ac_ext <<_ACEOF
12569#line $LINENO "configure"
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575#include <$ac_header>
12576_ACEOF
12577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null; then
12585 if test -s conftest.err; then
12586 ac_cpp_err=$ac_c_preproc_warn_flag
12587 else
12588 ac_cpp_err=
12589 fi
12590else
12591 ac_cpp_err=yes
12592fi
12593if test -z "$ac_cpp_err"; then
12594 ac_header_preproc=yes
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_header_preproc=no
12600fi
12601rm -f conftest.err conftest.$ac_ext
12602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603echo "${ECHO_T}$ac_header_preproc" >&6
12604
12605# So? What about this header?
12606case $ac_header_compiler:$ac_header_preproc in
12607 yes:no )
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 (
12613 cat <<\_ASBOX
12614## ------------------------------------ ##
12615## Report this to bug-autoconf@gnu.org. ##
12616## ------------------------------------ ##
12617_ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621 no:yes )
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 (
12629 cat <<\_ASBOX
12630## ------------------------------------ ##
12631## Report this to bug-autoconf@gnu.org. ##
12632## ------------------------------------ ##
12633_ASBOX
12634 ) |
12635 sed "s/^/$as_me: WARNING: /" >&2
12636 ;;
12637esac
12638echo "$as_me:$LINENO: checking for $ac_header" >&5
12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 eval "$as_ac_Header=$ac_header_preproc"
12644fi
12645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647
90dd450c 12648fi
e6cc62c6
VS
12649if test `eval echo '${'$as_ac_Header'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652_ACEOF
12653
12654fi
12655
12656done
90dd450c 12657
e6cc62c6
VS
12658
12659if test "$ac_cv_header_wchar_h" != "yes"; then
12660
12661for ac_header in wcstr.h
21d1c967 12662do
e6cc62c6
VS
12663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo "$as_me:$LINENO: checking for $ac_header" >&5
12666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12667if eval "test \"\${$as_ac_Header+set}\" = set"; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669fi
12670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12672else
12673 # Is the header compilable?
12674echo "$as_me:$LINENO: checking $ac_header usability" >&5
12675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12676cat >conftest.$ac_ext <<_ACEOF
12677#line $LINENO "configure"
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683$ac_includes_default
12684#include <$ac_header>
12685_ACEOF
12686rm -f conftest.$ac_objext
12687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -s conftest.$ac_objext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_header_compiler=yes
12699else
12700 echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703ac_header_compiler=no
12704fi
12705rm -f conftest.$ac_objext conftest.$ac_ext
12706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12707echo "${ECHO_T}$ac_header_compiler" >&6
12708
12709# Is the header present?
12710echo "$as_me:$LINENO: checking $ac_header presence" >&5
12711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12712cat >conftest.$ac_ext <<_ACEOF
12713#line $LINENO "configure"
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719#include <$ac_header>
12720_ACEOF
12721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } >/dev/null; then
12729 if test -s conftest.err; then
12730 ac_cpp_err=$ac_c_preproc_warn_flag
12731 else
12732 ac_cpp_err=
12733 fi
12734else
12735 ac_cpp_err=yes
12736fi
12737if test -z "$ac_cpp_err"; then
12738 ac_header_preproc=yes
12739else
12740 echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
12743 ac_header_preproc=no
12744fi
12745rm -f conftest.err conftest.$ac_ext
12746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12747echo "${ECHO_T}$ac_header_preproc" >&6
12748
12749# So? What about this header?
12750case $ac_header_compiler:$ac_header_preproc in
12751 yes:no )
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12756 (
12757 cat <<\_ASBOX
12758## ------------------------------------ ##
12759## Report this to bug-autoconf@gnu.org. ##
12760## ------------------------------------ ##
12761_ASBOX
12762 ) |
12763 sed "s/^/$as_me: WARNING: /" >&2
12764 ;;
12765 no:yes )
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12772 (
12773 cat <<\_ASBOX
12774## ------------------------------------ ##
12775## Report this to bug-autoconf@gnu.org. ##
12776## ------------------------------------ ##
12777_ASBOX
12778 ) |
12779 sed "s/^/$as_me: WARNING: /" >&2
12780 ;;
12781esac
12782echo "$as_me:$LINENO: checking for $ac_header" >&5
12783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12784if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12788fi
e6cc62c6
VS
12789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791
4f14bcd8 12792fi
e6cc62c6
VS
12793if test `eval echo '${'$as_ac_Header'}'` = yes; then
12794 cat >>confdefs.h <<_ACEOF
12795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12796_ACEOF
12797
12798fi
12799
12800done
12801
12802fi
12803
12804
12805for ac_header in fnmatch.h
12806do
12807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808if eval "test \"\${$as_ac_Header+set}\" = set"; then
12809 echo "$as_me:$LINENO: checking for $ac_header" >&5
12810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12811if eval "test \"\${$as_ac_Header+set}\" = set"; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813fi
12814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12816else
12817 # Is the header compilable?
12818echo "$as_me:$LINENO: checking $ac_header usability" >&5
12819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12820cat >conftest.$ac_ext <<_ACEOF
12821#line $LINENO "configure"
12822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
12826/* end confdefs.h. */
12827$ac_includes_default
12828#include <$ac_header>
12829_ACEOF
12830rm -f conftest.$ac_objext
12831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -s conftest.$ac_objext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_header_compiler=yes
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847ac_header_compiler=no
12848fi
12849rm -f conftest.$ac_objext conftest.$ac_ext
12850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12851echo "${ECHO_T}$ac_header_compiler" >&6
12852
12853# Is the header present?
12854echo "$as_me:$LINENO: checking $ac_header presence" >&5
12855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12856cat >conftest.$ac_ext <<_ACEOF
12857#line $LINENO "configure"
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863#include <$ac_header>
12864_ACEOF
12865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } >/dev/null; then
12873 if test -s conftest.err; then
12874 ac_cpp_err=$ac_c_preproc_warn_flag
12875 else
12876 ac_cpp_err=
12877 fi
12878else
12879 ac_cpp_err=yes
12880fi
12881if test -z "$ac_cpp_err"; then
12882 ac_header_preproc=yes
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 ac_header_preproc=no
12888fi
12889rm -f conftest.err conftest.$ac_ext
12890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12891echo "${ECHO_T}$ac_header_preproc" >&6
12892
12893# So? What about this header?
12894case $ac_header_compiler:$ac_header_preproc in
12895 yes:no )
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12900 (
12901 cat <<\_ASBOX
12902## ------------------------------------ ##
12903## Report this to bug-autoconf@gnu.org. ##
12904## ------------------------------------ ##
12905_ASBOX
12906 ) |
12907 sed "s/^/$as_me: WARNING: /" >&2
12908 ;;
12909 no:yes )
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12916 (
12917 cat <<\_ASBOX
12918## ------------------------------------ ##
12919## Report this to bug-autoconf@gnu.org. ##
12920## ------------------------------------ ##
12921_ASBOX
12922 ) |
12923 sed "s/^/$as_me: WARNING: /" >&2
12924 ;;
12925esac
12926echo "$as_me:$LINENO: checking for $ac_header" >&5
12927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12928if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12930else
e6cc62c6
VS
12931 eval "$as_ac_Header=$ac_header_preproc"
12932fi
12933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12935
21d1c967 12936fi
e6cc62c6
VS
12937if test `eval echo '${'$as_ac_Header'}'` = yes; then
12938 cat >>confdefs.h <<_ACEOF
12939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12940_ACEOF
12941
12942fi
12943
21d1c967 12944done
90dd450c 12945
5c6fa7d2 12946
a0b9e27f 12947if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
12948
12949for ac_func in fnmatch
21d1c967 12950do
e6cc62c6
VS
12951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12952echo "$as_me:$LINENO: checking for $ac_func" >&5
12953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12954if eval "test \"\${$as_ac_var+set}\" = set"; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956else
12957 cat >conftest.$ac_ext <<_ACEOF
12958#line $LINENO "configure"
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
a0b9e27f 12964/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12968#ifdef __STDC__
12969# include <limits.h>
12970#else
12971# include <assert.h>
12972#endif
a0b9e27f 12973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12974#ifdef __cplusplus
12975extern "C"
12976{
12977#endif
a0b9e27f 12978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12979 builtin and then its argument prototype would still apply. */
12980char $ac_func ();
a0b9e27f
MB
12981/* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12985choke me
12986#else
e6cc62c6
VS
12987char (*f) () = $ac_func;
12988#endif
12989#ifdef __cplusplus
12990}
a0b9e27f
MB
12991#endif
12992
e6cc62c6
VS
12993int
12994main ()
12995{
12996return f != $ac_func;
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext conftest$ac_exeext
13002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 eval "$as_ac_var=yes"
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018eval "$as_ac_var=no"
13019fi
13020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13021fi
13022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13024if test `eval echo '${'$as_ac_var'}'` = yes; then
13025 cat >>confdefs.h <<_ACEOF
13026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13027_ACEOF
32832908 13028
21d1c967
GD
13029fi
13030done
90dd450c 13031
a0b9e27f 13032fi
90dd450c 13033
e6cc62c6
VS
13034
13035for ac_header in langinfo.h
21d1c967 13036do
e6cc62c6
VS
13037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13038if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043fi
13044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13046else
13047 # Is the header compilable?
13048echo "$as_me:$LINENO: checking $ac_header usability" >&5
13049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13050cat >conftest.$ac_ext <<_ACEOF
13051#line $LINENO "configure"
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
13057$ac_includes_default
13058#include <$ac_header>
13059_ACEOF
13060rm -f conftest.$ac_objext
13061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13062 (eval $ac_compile) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_header_compiler=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_header_compiler=no
13078fi
13079rm -f conftest.$ac_objext conftest.$ac_ext
13080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081echo "${ECHO_T}$ac_header_compiler" >&6
13082
13083# Is the header present?
13084echo "$as_me:$LINENO: checking $ac_header presence" >&5
13085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13086cat >conftest.$ac_ext <<_ACEOF
13087#line $LINENO "configure"
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093#include <$ac_header>
13094_ACEOF
13095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } >/dev/null; then
13103 if test -s conftest.err; then
13104 ac_cpp_err=$ac_c_preproc_warn_flag
13105 else
13106 ac_cpp_err=
13107 fi
13108else
13109 ac_cpp_err=yes
13110fi
13111if test -z "$ac_cpp_err"; then
13112 ac_header_preproc=yes
13113else
13114 echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_header_preproc=no
13118fi
13119rm -f conftest.err conftest.$ac_ext
13120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121echo "${ECHO_T}$ac_header_preproc" >&6
13122
13123# So? What about this header?
13124case $ac_header_compiler:$ac_header_preproc in
13125 yes:no )
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13130 (
13131 cat <<\_ASBOX
13132## ------------------------------------ ##
13133## Report this to bug-autoconf@gnu.org. ##
13134## ------------------------------------ ##
13135_ASBOX
13136 ) |
13137 sed "s/^/$as_me: WARNING: /" >&2
13138 ;;
13139 no:yes )
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13146 (
13147 cat <<\_ASBOX
13148## ------------------------------------ ##
13149## Report this to bug-autoconf@gnu.org. ##
13150## ------------------------------------ ##
13151_ASBOX
13152 ) |
13153 sed "s/^/$as_me: WARNING: /" >&2
13154 ;;
13155esac
13156echo "$as_me:$LINENO: checking for $ac_header" >&5
13157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13158if eval "test \"\${$as_ac_Header+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13162fi
e6cc62c6
VS
13163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165
4f14bcd8 13166fi
e6cc62c6
VS
13167if test `eval echo '${'$as_ac_Header'}'` = yes; then
13168 cat >>confdefs.h <<_ACEOF
13169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13170_ACEOF
13171
21d1c967 13172fi
e6cc62c6 13173
21d1c967 13174done
3a922bb4 13175
8284b0c5 13176
4f5a7f74
VZ
13177case "${host}" in
13178 *-pc-os2_emx | *-pc-os2-emx )
13179 if test $ac_cv_header_langinfo_h = "yes"; then
13180 LIBS="$LIBS -lintl"
13181 fi
13182 ;;
13183esac
1542ea39 13184
a0b9e27f
MB
13185if test "$wxUSE_GUI" = "yes"; then
13186 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 13187
eb69fda5 13188for ac_header in X11/Xlib.h
21d1c967 13189do
e6cc62c6
VS
13190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo "$as_me:$LINENO: checking for $ac_header" >&5
13193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13194if eval "test \"\${$as_ac_Header+set}\" = set"; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196fi
13197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13199else
13200 # Is the header compilable?
13201echo "$as_me:$LINENO: checking $ac_header usability" >&5
13202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13203cat >conftest.$ac_ext <<_ACEOF
13204#line $LINENO "configure"
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210$ac_includes_default
13211#include <$ac_header>
13212_ACEOF
13213rm -f conftest.$ac_objext
13214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13215 (eval $ac_compile) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -s conftest.$ac_objext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_header_compiler=yes
13226else
13227 echo "$as_me: failed program was:" >&5
13228sed 's/^/| /' conftest.$ac_ext >&5
13229
13230ac_header_compiler=no
13231fi
13232rm -f conftest.$ac_objext conftest.$ac_ext
13233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13234echo "${ECHO_T}$ac_header_compiler" >&6
13235
13236# Is the header present?
13237echo "$as_me:$LINENO: checking $ac_header presence" >&5
13238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13239cat >conftest.$ac_ext <<_ACEOF
13240#line $LINENO "configure"
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246#include <$ac_header>
13247_ACEOF
13248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } >/dev/null; then
13256 if test -s conftest.err; then
13257 ac_cpp_err=$ac_c_preproc_warn_flag
13258 else
13259 ac_cpp_err=
13260 fi
13261else
13262 ac_cpp_err=yes
13263fi
13264if test -z "$ac_cpp_err"; then
13265 ac_header_preproc=yes
13266else
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_header_preproc=no
13271fi
13272rm -f conftest.err conftest.$ac_ext
13273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13274echo "${ECHO_T}$ac_header_preproc" >&6
13275
13276# So? What about this header?
13277case $ac_header_compiler:$ac_header_preproc in
13278 yes:no )
13279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13283 (
13284 cat <<\_ASBOX
13285## ------------------------------------ ##
13286## Report this to bug-autoconf@gnu.org. ##
13287## ------------------------------------ ##
13288_ASBOX
13289 ) |
13290 sed "s/^/$as_me: WARNING: /" >&2
13291 ;;
13292 no:yes )
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13299 (
13300 cat <<\_ASBOX
13301## ------------------------------------ ##
13302## Report this to bug-autoconf@gnu.org. ##
13303## ------------------------------------ ##
13304_ASBOX
13305 ) |
13306 sed "s/^/$as_me: WARNING: /" >&2
13307 ;;
13308esac
13309echo "$as_me:$LINENO: checking for $ac_header" >&5
13310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13311if eval "test \"\${$as_ac_Header+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313else
13314 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13315fi
e6cc62c6
VS
13316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13318
90dd450c 13319fi
e6cc62c6
VS
13320if test `eval echo '${'$as_ac_Header'}'` = yes; then
13321 cat >>confdefs.h <<_ACEOF
13322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323_ACEOF
13324
247f5006 13325fi
e6cc62c6 13326
eb69fda5
VS
13327done
13328
13329
13330for ac_header in X11/XKBlib.h
13331do
13332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333echo "$as_me:$LINENO: checking for $ac_header" >&5
13334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13335if eval "test \"\${$as_ac_Header+set}\" = set"; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
13338 cat >conftest.$ac_ext <<_ACEOF
13339#line $LINENO "configure"
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345
13346 #if HAVE_X11_XLIB_H
13347 #include <X11/Xlib.h>
13348 #endif
13349
13350
13351#include <$ac_header>
13352_ACEOF
13353rm -f conftest.$ac_objext
13354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 eval "$as_ac_Header=yes"
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370eval "$as_ac_Header=no"
13371fi
13372rm -f conftest.$ac_objext conftest.$ac_ext
13373fi
13374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379_ACEOF
13380
13381fi
13382
247f5006
VZ
13383done
13384
a0b9e27f
MB
13385 fi
13386fi
247f5006 13387
247f5006 13388
e6cc62c6
VS
13389echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13390echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13391if test "${ac_cv_c_const+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 cat >conftest.$ac_ext <<_ACEOF
13395#line $LINENO "configure"
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401
13402int
13403main ()
13404{
13405/* FIXME: Include the comments suggested by Paul. */
13406#ifndef __cplusplus
13407 /* Ultrix mips cc rejects this. */
13408 typedef int charset[2];
13409 const charset x;
13410 /* SunOS 4.1.1 cc rejects this. */
13411 char const *const *ccp;
13412 char **p;
13413 /* NEC SVR4.0.2 mips cc rejects this. */
13414 struct point {int x, y;};
13415 static struct point const zero = {0,0};
13416 /* AIX XL C 1.02.0.0 rejects this.
13417 It does not let you subtract one const X* pointer from another in
13418 an arm of an if-expression whose if-part is not a constant
13419 expression */
13420 const char *g = "string";
13421 ccp = &g + (g ? g-g : 0);
13422 /* HPUX 7.0 cc rejects these. */
13423 ++ccp;
13424 p = (char**) ccp;
13425 ccp = (char const *const *) p;
13426 { /* SCO 3.2v4 cc rejects this. */
13427 char *t;
13428 char const *s = 0 ? (char *) 0 : (char const *) 0;
13429
13430 *t++ = 0;
13431 }
13432 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13433 int x[] = {25, 17};
13434 const int *foo = &x[0];
13435 ++foo;
13436 }
13437 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13438 typedef const int *iptr;
13439 iptr p = 0;
13440 ++p;
13441 }
13442 { /* AIX XL C 1.02.0.0 rejects this saying
13443 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13444 struct s { int j; const int *ap[3]; };
13445 struct s *b; b->j = 5;
13446 }
13447 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13448 const int foo = 10;
13449 }
13450#endif
13451
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
a0b9e27f 13468 ac_cv_c_const=yes
247f5006 13469else
e6cc62c6
VS
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473ac_cv_c_const=no
247f5006 13474fi
e6cc62c6 13475rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13476fi
e6cc62c6
VS
13477echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13478echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13479if test $ac_cv_c_const = no; then
e6cc62c6
VS
13480
13481cat >>confdefs.h <<\_ACEOF
13482#define const
13483_ACEOF
10f2d63a 13484
90dd450c 13485fi
81809c07 13486
e6cc62c6
VS
13487echo "$as_me:$LINENO: checking for inline" >&5
13488echo $ECHO_N "checking for inline... $ECHO_C" >&6
13489if test "${ac_cv_c_inline+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13491else
a0b9e27f
MB
13492 ac_cv_c_inline=no
13493for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13494 cat >conftest.$ac_ext <<_ACEOF
13495#line $LINENO "configure"
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
13501#ifndef __cplusplus
13502typedef int foo_t;
13503static $ac_kw foo_t static_foo () {return 0; }
13504$ac_kw foo_t foo () {return 0; }
13505#endif
a0b9e27f 13506
e6cc62c6
VS
13507_ACEOF
13508rm -f conftest.$ac_objext
13509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
a0b9e27f 13520 ac_cv_c_inline=$ac_kw; break
247f5006 13521else
e6cc62c6
VS
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
247f5006 13525fi
e6cc62c6 13526rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13527done
247f5006
VZ
13528
13529fi
e6cc62c6
VS
13530echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13531echo "${ECHO_T}$ac_cv_c_inline" >&6
13532case $ac_cv_c_inline in
a0b9e27f 13533 inline | yes) ;;
e6cc62c6
VS
13534 no)
13535cat >>confdefs.h <<\_ACEOF
13536#define inline
13537_ACEOF
a0b9e27f 13538 ;;
e6cc62c6 13539 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13540#define inline $ac_cv_c_inline
e6cc62c6 13541_ACEOF
a0b9e27f
MB
13542 ;;
13543esac
247f5006 13544
247f5006 13545
e6cc62c6
VS
13546echo "$as_me:$LINENO: checking for char" >&5
13547echo $ECHO_N "checking for char... $ECHO_C" >&6
13548if test "${ac_cv_type_char+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
13551 cat >conftest.$ac_ext <<_ACEOF
13552#line $LINENO "configure"
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558$ac_includes_default
13559int
13560main ()
13561{
13562if ((char *) 0)
13563 return 0;
13564if (sizeof (char))
13565 return 0;
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_type_char=yes
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587ac_cv_type_char=no
13588fi
13589rm -f conftest.$ac_objext conftest.$ac_ext
13590fi
13591echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13592echo "${ECHO_T}$ac_cv_type_char" >&6
13593
13594echo "$as_me:$LINENO: checking size of char" >&5
13595echo $ECHO_N "checking size of char... $ECHO_C" >&6
13596if test "${ac_cv_sizeof_char+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598else
13599 if test "$ac_cv_type_char" = yes; then
13600 # The cast to unsigned long works around a bug in the HP C Compiler
13601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13603 # This bug is HP SR number 8606223364.
a0b9e27f 13604 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13605 # Depending upon the size, compute the lo and hi bounds.
13606cat >conftest.$ac_ext <<_ACEOF
13607#line $LINENO "configure"
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613$ac_includes_default
13614int
13615main ()
13616{
13617static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13618test_array [0] = 0
13619
13620 ;
13621 return 0;
13622}
13623_ACEOF
13624rm -f conftest.$ac_objext
13625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
13630 { ac_try='test -s conftest.$ac_objext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_lo=0 ac_mid=0
13637 while :; do
13638 cat >conftest.$ac_ext <<_ACEOF
13639#line $LINENO "configure"
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
13645$ac_includes_default
13646int
13647main ()
13648{
13649static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13650test_array [0] = 0
13651
13652 ;
13653 return 0;
13654}
13655_ACEOF
13656rm -f conftest.$ac_objext
13657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658 (eval $ac_compile) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_hi=$ac_mid; break
13669else
13670 echo "$as_me: failed program was:" >&5
13671sed 's/^/| /' conftest.$ac_ext >&5
13672
13673ac_lo=`expr $ac_mid + 1`
13674 if test $ac_lo -le $ac_mid; then
13675 ac_lo= ac_hi=
13676 break
13677 fi
13678 ac_mid=`expr 2 '*' $ac_mid + 1`
13679fi
13680rm -f conftest.$ac_objext conftest.$ac_ext
13681 done
a0b9e27f 13682else
e6cc62c6
VS
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686cat >conftest.$ac_ext <<_ACEOF
13687#line $LINENO "configure"
13688/* confdefs.h. */
13689_ACEOF
13690cat confdefs.h >>conftest.$ac_ext
13691cat >>conftest.$ac_ext <<_ACEOF
13692/* end confdefs.h. */
13693$ac_includes_default
13694int
13695main ()
13696{
13697static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13698test_array [0] = 0
13699
13700 ;
13701 return 0;
13702}
13703_ACEOF
13704rm -f conftest.$ac_objext
13705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_hi=-1 ac_mid=-1
13717 while :; do
13718 cat >conftest.$ac_ext <<_ACEOF
13719#line $LINENO "configure"
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725$ac_includes_default
13726int
13727main ()
13728{
13729static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13730test_array [0] = 0
13731
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext
13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_lo=$ac_mid; break
13749else
13750 echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
13752
13753ac_hi=`expr '(' $ac_mid ')' - 1`
13754 if test $ac_mid -le $ac_hi; then
13755 ac_lo= ac_hi=
13756 break
13757 fi
13758 ac_mid=`expr 2 '*' $ac_mid`
13759fi
13760rm -f conftest.$ac_objext conftest.$ac_ext
13761 done
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_lo= ac_hi=
13767fi
13768rm -f conftest.$ac_objext conftest.$ac_ext
13769fi
13770rm -f conftest.$ac_objext conftest.$ac_ext
13771# Binary search between lo and hi bounds.
13772while test "x$ac_lo" != "x$ac_hi"; do
13773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13774 cat >conftest.$ac_ext <<_ACEOF
13775#line $LINENO "configure"
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781$ac_includes_default
13782int
13783main ()
13784{
13785static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13786test_array [0] = 0
13787
13788 ;
13789 return 0;
13790}
13791_ACEOF
13792rm -f conftest.$ac_objext
13793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_hi=$ac_mid
13805else
13806 echo "$as_me: failed program was:" >&5
13807sed 's/^/| /' conftest.$ac_ext >&5
13808
13809ac_lo=`expr '(' $ac_mid ')' + 1`
13810fi
13811rm -f conftest.$ac_objext conftest.$ac_ext
13812done
13813case $ac_lo in
13814?*) ac_cv_sizeof_char=$ac_lo;;
13815'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13816See \`config.log' for more details." >&5
13817echo "$as_me: error: cannot compute sizeof (char), 77
13818See \`config.log' for more details." >&2;}
13819 { (exit 1); exit 1; }; } ;;
13820esac
13821else
13822 if test "$cross_compiling" = yes; then
13823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13824See \`config.log' for more details." >&5
13825echo "$as_me: error: cannot run test program while cross compiling
13826See \`config.log' for more details." >&2;}
13827 { (exit 1); exit 1; }; }
13828else
13829 cat >conftest.$ac_ext <<_ACEOF
13830#line $LINENO "configure"
13831/* confdefs.h. */
13832_ACEOF
13833cat confdefs.h >>conftest.$ac_ext
13834cat >>conftest.$ac_ext <<_ACEOF
13835/* end confdefs.h. */
13836$ac_includes_default
13837long longval () { return (long) (sizeof (char)); }
13838unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13839#include <stdio.h>
e6cc62c6
VS
13840#include <stdlib.h>
13841int
13842main ()
247f5006 13843{
e6cc62c6
VS
13844
13845 FILE *f = fopen ("conftest.val", "w");
13846 if (! f)
13847 exit (1);
13848 if (((long) (sizeof (char))) < 0)
13849 {
13850 long i = longval ();
13851 if (i != ((long) (sizeof (char))))
13852 exit (1);
13853 fprintf (f, "%ld\n", i);
13854 }
13855 else
13856 {
13857 unsigned long i = ulongval ();
13858 if (i != ((long) (sizeof (char))))
13859 exit (1);
13860 fprintf (f, "%lu\n", i);
13861 }
13862 exit (ferror (f) || fclose (f) != 0);
13863
13864 ;
13865 return 0;
52127426 13866}
e6cc62c6
VS
13867_ACEOF
13868rm -f conftest$ac_exeext
13869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 ac_cv_sizeof_char=`cat conftest.val`
13880else
13881 echo "$as_me: program exited with status $ac_status" >&5
13882echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885( exit $ac_status )
13886{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13887See \`config.log' for more details." >&5
13888echo "$as_me: error: cannot compute sizeof (char), 77
13889See \`config.log' for more details." >&2;}
13890 { (exit 1); exit 1; }; }
13891fi
13892rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13893fi
13894fi
13895rm -f conftest.val
247f5006 13896else
a0b9e27f 13897 ac_cv_sizeof_char=0
247f5006 13898fi
247f5006 13899fi
e6cc62c6
VS
13900echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13901echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13902cat >>confdefs.h <<_ACEOF
13903#define SIZEOF_CHAR $ac_cv_sizeof_char
13904_ACEOF
13905
13906
13907echo "$as_me:$LINENO: checking for short" >&5
13908echo $ECHO_N "checking for short... $ECHO_C" >&6
13909if test "${ac_cv_type_short+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911else
13912 cat >conftest.$ac_ext <<_ACEOF
13913#line $LINENO "configure"
13914/* confdefs.h. */
13915_ACEOF
13916cat confdefs.h >>conftest.$ac_ext
13917cat >>conftest.$ac_ext <<_ACEOF
13918/* end confdefs.h. */
13919$ac_includes_default
13920int
13921main ()
13922{
13923if ((short *) 0)
13924 return 0;
13925if (sizeof (short))
13926 return 0;
13927 ;
13928 return 0;
13929}
13930_ACEOF
13931rm -f conftest.$ac_objext
13932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_type_short=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_type_short=no
13949fi
13950rm -f conftest.$ac_objext conftest.$ac_ext
13951fi
13952echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13953echo "${ECHO_T}$ac_cv_type_short" >&6
13954
13955echo "$as_me:$LINENO: checking size of short" >&5
13956echo $ECHO_N "checking size of short... $ECHO_C" >&6
13957if test "${ac_cv_sizeof_short+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959else
13960 if test "$ac_cv_type_short" = yes; then
13961 # The cast to unsigned long works around a bug in the HP C Compiler
13962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13964 # This bug is HP SR number 8606223364.
13965 if test "$cross_compiling" = yes; then
13966 # Depending upon the size, compute the lo and hi bounds.
13967cat >conftest.$ac_ext <<_ACEOF
13968#line $LINENO "configure"
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974$ac_includes_default
13975int
13976main ()
13977{
13978static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13979test_array [0] = 0
247f5006 13980
e6cc62c6
VS
13981 ;
13982 return 0;
13983}
13984_ACEOF
13985rm -f conftest.$ac_objext
13986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13997 ac_lo=0 ac_mid=0
13998 while :; do
13999 cat >conftest.$ac_ext <<_ACEOF
14000#line $LINENO "configure"
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
14006$ac_includes_default
14007int
14008main ()
14009{
14010static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14011test_array [0] = 0
14012
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_hi=$ac_mid; break
14030else
14031 echo "$as_me: failed program was:" >&5
14032sed 's/^/| /' conftest.$ac_ext >&5
14033
14034ac_lo=`expr $ac_mid + 1`
14035 if test $ac_lo -le $ac_mid; then
14036 ac_lo= ac_hi=
14037 break
14038 fi
14039 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14040fi
e6cc62c6
VS
14041rm -f conftest.$ac_objext conftest.$ac_ext
14042 done
14043else
14044 echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047cat >conftest.$ac_ext <<_ACEOF
14048#line $LINENO "configure"
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
14054$ac_includes_default
14055int
14056main ()
14057{
14058static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14059test_array [0] = 0
247f5006 14060
e6cc62c6
VS
14061 ;
14062 return 0;
14063}
14064_ACEOF
14065rm -f conftest.$ac_objext
14066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest.$ac_objext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_hi=-1 ac_mid=-1
14078 while :; do
14079 cat >conftest.$ac_ext <<_ACEOF
14080#line $LINENO "configure"
14081/* confdefs.h. */
14082_ACEOF
14083cat confdefs.h >>conftest.$ac_ext
14084cat >>conftest.$ac_ext <<_ACEOF
14085/* end confdefs.h. */
14086$ac_includes_default
14087int
14088main ()
14089{
14090static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14091test_array [0] = 0
247f5006 14092
e6cc62c6
VS
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_lo=$ac_mid; break
14110else
14111 echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
14114ac_hi=`expr '(' $ac_mid ')' - 1`
14115 if test $ac_mid -le $ac_hi; then
14116 ac_lo= ac_hi=
14117 break
14118 fi
14119 ac_mid=`expr 2 '*' $ac_mid`
14120fi
14121rm -f conftest.$ac_objext conftest.$ac_ext
14122 done
247f5006 14123else
e6cc62c6
VS
14124 echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127ac_lo= ac_hi=
14128fi
14129rm -f conftest.$ac_objext conftest.$ac_ext
14130fi
14131rm -f conftest.$ac_objext conftest.$ac_ext
14132# Binary search between lo and hi bounds.
14133while test "x$ac_lo" != "x$ac_hi"; do
14134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14135 cat >conftest.$ac_ext <<_ACEOF
14136#line $LINENO "configure"
14137/* confdefs.h. */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
14141/* end confdefs.h. */
14142$ac_includes_default
14143int
14144main ()
14145{
14146static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14147test_array [0] = 0
14148
14149 ;
14150 return 0;
14151}
14152_ACEOF
14153rm -f conftest.$ac_objext
14154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14155 (eval $ac_compile) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -s conftest.$ac_objext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_hi=$ac_mid
14166else
14167 echo "$as_me: failed program was:" >&5
14168sed 's/^/| /' conftest.$ac_ext >&5
14169
14170ac_lo=`expr '(' $ac_mid ')' + 1`
14171fi
14172rm -f conftest.$ac_objext conftest.$ac_ext
14173done
14174case $ac_lo in
14175?*) ac_cv_sizeof_short=$ac_lo;;
14176'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14177See \`config.log' for more details." >&5
14178echo "$as_me: error: cannot compute sizeof (short), 77
14179See \`config.log' for more details." >&2;}
14180 { (exit 1); exit 1; }; } ;;
14181esac
247f5006 14182else
e6cc62c6
VS
14183 if test "$cross_compiling" = yes; then
14184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14185See \`config.log' for more details." >&5
14186echo "$as_me: error: cannot run test program while cross compiling
14187See \`config.log' for more details." >&2;}
14188 { (exit 1); exit 1; }; }
14189else
14190 cat >conftest.$ac_ext <<_ACEOF
14191#line $LINENO "configure"
14192/* confdefs.h. */
14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h. */
14197$ac_includes_default
14198long longval () { return (long) (sizeof (short)); }
14199unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14200#include <stdio.h>
e6cc62c6
VS
14201#include <stdlib.h>
14202int
14203main ()
a0b9e27f 14204{
e6cc62c6
VS
14205
14206 FILE *f = fopen ("conftest.val", "w");
14207 if (! f)
14208 exit (1);
14209 if (((long) (sizeof (short))) < 0)
14210 {
14211 long i = longval ();
14212 if (i != ((long) (sizeof (short))))
14213 exit (1);
14214 fprintf (f, "%ld\n", i);
14215 }
14216 else
14217 {
14218 unsigned long i = ulongval ();
14219 if (i != ((long) (sizeof (short))))
14220 exit (1);
14221 fprintf (f, "%lu\n", i);
14222 }
14223 exit (ferror (f) || fclose (f) != 0);
14224
14225 ;
14226 return 0;
a0b9e27f 14227}
e6cc62c6
VS
14228_ACEOF
14229rm -f conftest$ac_exeext
14230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_sizeof_short=`cat conftest.val`
14241else
14242 echo "$as_me: program exited with status $ac_status" >&5
14243echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246( exit $ac_status )
14247{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14248See \`config.log' for more details." >&5
14249echo "$as_me: error: cannot compute sizeof (short), 77
14250See \`config.log' for more details." >&2;}
14251 { (exit 1); exit 1; }; }
14252fi
14253rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14254fi
14255fi
14256rm -f conftest.val
247f5006 14257else
a0b9e27f 14258 ac_cv_sizeof_short=0
247f5006 14259fi
247f5006 14260fi
e6cc62c6
VS
14261echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14262echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14263cat >>confdefs.h <<_ACEOF
14264#define SIZEOF_SHORT $ac_cv_sizeof_short
14265_ACEOF
14266
14267
14268echo "$as_me:$LINENO: checking for void *" >&5
14269echo $ECHO_N "checking for void *... $ECHO_C" >&6
14270if test "${ac_cv_type_void_p+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272else
14273 cat >conftest.$ac_ext <<_ACEOF
14274#line $LINENO "configure"
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h. */
14280$ac_includes_default
14281int
14282main ()
14283{
14284if ((void * *) 0)
14285 return 0;
14286if (sizeof (void *))
14287 return 0;
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext
14293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_cv_type_void_p=yes
14305else
14306 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5
14308
14309ac_cv_type_void_p=no
14310fi
14311rm -f conftest.$ac_objext conftest.$ac_ext
14312fi
14313echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14314echo "${ECHO_T}$ac_cv_type_void_p" >&6
14315
14316echo "$as_me:$LINENO: checking size of void *" >&5
14317echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14318if test "${ac_cv_sizeof_void_p+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 if test "$ac_cv_type_void_p" = yes; then
14322 # The cast to unsigned long works around a bug in the HP C Compiler
14323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14325 # This bug is HP SR number 8606223364.
14326 if test "$cross_compiling" = yes; then
14327 # Depending upon the size, compute the lo and hi bounds.
14328cat >conftest.$ac_ext <<_ACEOF
14329#line $LINENO "configure"
14330/* confdefs.h. */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
14334/* end confdefs.h. */
14335$ac_includes_default
14336int
14337main ()
14338{
14339static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14340test_array [0] = 0
14341
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346rm -f conftest.$ac_objext
14347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_lo=0 ac_mid=0
14359 while :; do
14360 cat >conftest.$ac_ext <<_ACEOF
14361#line $LINENO "configure"
14362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
14367$ac_includes_default
14368int
14369main ()
14370{
14371static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14372test_array [0] = 0
247f5006 14373
e6cc62c6
VS
14374 ;
14375 return 0;
14376}
14377_ACEOF
14378rm -f conftest.$ac_objext
14379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_hi=$ac_mid; break
14391else
14392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
14395ac_lo=`expr $ac_mid + 1`
14396 if test $ac_lo -le $ac_mid; then
14397 ac_lo= ac_hi=
14398 break
14399 fi
14400 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14401fi
e6cc62c6
VS
14402rm -f conftest.$ac_objext conftest.$ac_ext
14403 done
14404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408cat >conftest.$ac_ext <<_ACEOF
14409#line $LINENO "configure"
14410/* confdefs.h. */
14411_ACEOF
14412cat confdefs.h >>conftest.$ac_ext
14413cat >>conftest.$ac_ext <<_ACEOF
14414/* end confdefs.h. */
14415$ac_includes_default
14416int
14417main ()
14418{
14419static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14420test_array [0] = 0
247f5006 14421
e6cc62c6
VS
14422 ;
14423 return 0;
14424}
14425_ACEOF
14426rm -f conftest.$ac_objext
14427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_hi=-1 ac_mid=-1
14439 while :; do
14440 cat >conftest.$ac_ext <<_ACEOF
14441#line $LINENO "configure"
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
14447$ac_includes_default
14448int
14449main ()
14450{
14451static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14452test_array [0] = 0
247f5006 14453
e6cc62c6
VS
14454 ;
14455 return 0;
14456}
14457_ACEOF
14458rm -f conftest.$ac_objext
14459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_lo=$ac_mid; break
14471else
14472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475ac_hi=`expr '(' $ac_mid ')' - 1`
14476 if test $ac_mid -le $ac_hi; then
14477 ac_lo= ac_hi=
14478 break
14479 fi
14480 ac_mid=`expr 2 '*' $ac_mid`
14481fi
14482rm -f conftest.$ac_objext conftest.$ac_ext
14483 done
a0b9e27f 14484else
e6cc62c6
VS
14485 echo "$as_me: failed program was:" >&5
14486sed 's/^/| /' conftest.$ac_ext >&5
14487
14488ac_lo= ac_hi=
14489fi
14490rm -f conftest.$ac_objext conftest.$ac_ext
14491fi
14492rm -f conftest.$ac_objext conftest.$ac_ext
14493# Binary search between lo and hi bounds.
14494while test "x$ac_lo" != "x$ac_hi"; do
14495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14496 cat >conftest.$ac_ext <<_ACEOF
14497#line $LINENO "configure"
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504int
14505main ()
14506{
14507static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14508test_array [0] = 0
14509
14510 ;
14511 return 0;
14512}
14513_ACEOF
14514rm -f conftest.$ac_objext
14515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 ac_hi=$ac_mid
14527else
14528 echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531ac_lo=`expr '(' $ac_mid ')' + 1`
14532fi
14533rm -f conftest.$ac_objext conftest.$ac_ext
14534done
14535case $ac_lo in
14536?*) ac_cv_sizeof_void_p=$ac_lo;;
14537'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14538See \`config.log' for more details." >&5
14539echo "$as_me: error: cannot compute sizeof (void *), 77
14540See \`config.log' for more details." >&2;}
14541 { (exit 1); exit 1; }; } ;;
14542esac
247f5006 14543else
e6cc62c6
VS
14544 if test "$cross_compiling" = yes; then
14545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14546See \`config.log' for more details." >&5
14547echo "$as_me: error: cannot run test program while cross compiling
14548See \`config.log' for more details." >&2;}
14549 { (exit 1); exit 1; }; }
14550else
14551 cat >conftest.$ac_ext <<_ACEOF
14552#line $LINENO "configure"
14553/* confdefs.h. */
14554_ACEOF
14555cat confdefs.h >>conftest.$ac_ext
14556cat >>conftest.$ac_ext <<_ACEOF
14557/* end confdefs.h. */
14558$ac_includes_default
14559long longval () { return (long) (sizeof (void *)); }
14560unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14561#include <stdio.h>
e6cc62c6
VS
14562#include <stdlib.h>
14563int
14564main ()
247f5006 14565{
e6cc62c6
VS
14566
14567 FILE *f = fopen ("conftest.val", "w");
14568 if (! f)
14569 exit (1);
14570 if (((long) (sizeof (void *))) < 0)
14571 {
14572 long i = longval ();
14573 if (i != ((long) (sizeof (void *))))
14574 exit (1);
14575 fprintf (f, "%ld\n", i);
14576 }
14577 else
14578 {
14579 unsigned long i = ulongval ();
14580 if (i != ((long) (sizeof (void *))))
14581 exit (1);
14582 fprintf (f, "%lu\n", i);
14583 }
14584 exit (ferror (f) || fclose (f) != 0);
14585
14586 ;
14587 return 0;
5c6fa7d2 14588}
e6cc62c6
VS
14589_ACEOF
14590rm -f conftest$ac_exeext
14591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14592 (eval $ac_link) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 ac_cv_sizeof_void_p=`cat conftest.val`
14602else
14603 echo "$as_me: program exited with status $ac_status" >&5
14604echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607( exit $ac_status )
14608{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14609See \`config.log' for more details." >&5
14610echo "$as_me: error: cannot compute sizeof (void *), 77
14611See \`config.log' for more details." >&2;}
14612 { (exit 1); exit 1; }; }
14613fi
14614rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14615fi
14616fi
14617rm -f conftest.val
a0b9e27f 14618else
a0b9e27f
MB
14619 ac_cv_sizeof_void_p=0
14620fi
a0b9e27f 14621fi
e6cc62c6
VS
14622echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14623echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14624cat >>confdefs.h <<_ACEOF
14625#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14626_ACEOF
14627
14628
14629echo "$as_me:$LINENO: checking for int" >&5
14630echo $ECHO_N "checking for int... $ECHO_C" >&6
14631if test "${ac_cv_type_int+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 cat >conftest.$ac_ext <<_ACEOF
14635#line $LINENO "configure"
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641$ac_includes_default
14642int
14643main ()
14644{
14645if ((int *) 0)
14646 return 0;
14647if (sizeof (int))
14648 return 0;
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653rm -f conftest.$ac_objext
14654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655 (eval $ac_compile) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_type_int=yes
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670ac_cv_type_int=no
14671fi
14672rm -f conftest.$ac_objext conftest.$ac_ext
14673fi
14674echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14675echo "${ECHO_T}$ac_cv_type_int" >&6
14676
14677echo "$as_me:$LINENO: checking size of int" >&5
14678echo $ECHO_N "checking size of int... $ECHO_C" >&6
14679if test "${ac_cv_sizeof_int+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681else
14682 if test "$ac_cv_type_int" = yes; then
14683 # The cast to unsigned long works around a bug in the HP C Compiler
14684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14686 # This bug is HP SR number 8606223364.
14687 if test "$cross_compiling" = yes; then
14688 # Depending upon the size, compute the lo and hi bounds.
14689cat >conftest.$ac_ext <<_ACEOF
14690#line $LINENO "configure"
14691/* confdefs.h. */
14692_ACEOF
14693cat confdefs.h >>conftest.$ac_ext
14694cat >>conftest.$ac_ext <<_ACEOF
14695/* end confdefs.h. */
14696$ac_includes_default
14697int
14698main ()
14699{
14700static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14701test_array [0] = 0
8284b0c5 14702
e6cc62c6
VS
14703 ;
14704 return 0;
14705}
14706_ACEOF
14707rm -f conftest.$ac_objext
14708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_lo=0 ac_mid=0
14720 while :; do
14721 cat >conftest.$ac_ext <<_ACEOF
14722#line $LINENO "configure"
14723/* confdefs.h. */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h. */
14728$ac_includes_default
14729int
14730main ()
14731{
14732static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14733test_array [0] = 0
14734
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739rm -f conftest.$ac_objext
14740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_hi=$ac_mid; break
14752else
14753 echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
14756ac_lo=`expr $ac_mid + 1`
14757 if test $ac_lo -le $ac_mid; then
14758 ac_lo= ac_hi=
14759 break
14760 fi
14761 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14762fi
e6cc62c6
VS
14763rm -f conftest.$ac_objext conftest.$ac_ext
14764 done
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769cat >conftest.$ac_ext <<_ACEOF
14770#line $LINENO "configure"
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
14776$ac_includes_default
14777int
14778main ()
14779{
14780static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14781test_array [0] = 0
247f5006 14782
e6cc62c6
VS
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787rm -f conftest.$ac_objext
14788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>&5
14790 ac_status=$?
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -s conftest.$ac_objext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_hi=-1 ac_mid=-1
14800 while :; do
14801 cat >conftest.$ac_ext <<_ACEOF
14802#line $LINENO "configure"
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808$ac_includes_default
14809int
14810main ()
14811{
14812static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14813test_array [0] = 0
247f5006 14814
e6cc62c6
VS
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_lo=$ac_mid; break
14832else
14833 echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836ac_hi=`expr '(' $ac_mid ')' - 1`
14837 if test $ac_mid -le $ac_hi; then
14838 ac_lo= ac_hi=
14839 break
14840 fi
14841 ac_mid=`expr 2 '*' $ac_mid`
14842fi
14843rm -f conftest.$ac_objext conftest.$ac_ext
14844 done
247f5006 14845else
e6cc62c6
VS
14846 echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849ac_lo= ac_hi=
14850fi
14851rm -f conftest.$ac_objext conftest.$ac_ext
14852fi
14853rm -f conftest.$ac_objext conftest.$ac_ext
14854# Binary search between lo and hi bounds.
14855while test "x$ac_lo" != "x$ac_hi"; do
14856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14857 cat >conftest.$ac_ext <<_ACEOF
14858#line $LINENO "configure"
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864$ac_includes_default
14865int
14866main ()
14867{
14868static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14869test_array [0] = 0
14870
14871 ;
14872 return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_hi=$ac_mid
14888else
14889 echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_lo=`expr '(' $ac_mid ')' + 1`
14893fi
14894rm -f conftest.$ac_objext conftest.$ac_ext
14895done
14896case $ac_lo in
14897?*) ac_cv_sizeof_int=$ac_lo;;
14898'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14899See \`config.log' for more details." >&5
14900echo "$as_me: error: cannot compute sizeof (int), 77
14901See \`config.log' for more details." >&2;}
14902 { (exit 1); exit 1; }; } ;;
14903esac
a0b9e27f 14904else
e6cc62c6
VS
14905 if test "$cross_compiling" = yes; then
14906 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14907See \`config.log' for more details." >&5
14908echo "$as_me: error: cannot run test program while cross compiling
14909See \`config.log' for more details." >&2;}
14910 { (exit 1); exit 1; }; }
14911else
14912 cat >conftest.$ac_ext <<_ACEOF
14913#line $LINENO "configure"
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919$ac_includes_default
14920long longval () { return (long) (sizeof (int)); }
14921unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 14922#include <stdio.h>
e6cc62c6
VS
14923#include <stdlib.h>
14924int
14925main ()
247f5006 14926{
e6cc62c6
VS
14927
14928 FILE *f = fopen ("conftest.val", "w");
14929 if (! f)
14930 exit (1);
14931 if (((long) (sizeof (int))) < 0)
14932 {
14933 long i = longval ();
14934 if (i != ((long) (sizeof (int))))
14935 exit (1);
14936 fprintf (f, "%ld\n", i);
14937 }
14938 else
14939 {
14940 unsigned long i = ulongval ();
14941 if (i != ((long) (sizeof (int))))
14942 exit (1);
14943 fprintf (f, "%lu\n", i);
14944 }
14945 exit (ferror (f) || fclose (f) != 0);
14946
14947 ;
14948 return 0;
247f5006 14949}
e6cc62c6
VS
14950_ACEOF
14951rm -f conftest$ac_exeext
14952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_sizeof_int=`cat conftest.val`
14963else
14964 echo "$as_me: program exited with status $ac_status" >&5
14965echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968( exit $ac_status )
14969{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14970See \`config.log' for more details." >&5
14971echo "$as_me: error: cannot compute sizeof (int), 77
14972See \`config.log' for more details." >&2;}
14973 { (exit 1); exit 1; }; }
14974fi
14975rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14976fi
14977fi
14978rm -f conftest.val
6f72b082 14979else
a0b9e27f 14980 ac_cv_sizeof_int=0
21d1c967 14981fi
698dcdb6 14982fi
e6cc62c6
VS
14983echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14984echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14985cat >>confdefs.h <<_ACEOF
14986#define SIZEOF_INT $ac_cv_sizeof_int
14987_ACEOF
14988
14989
14990echo "$as_me:$LINENO: checking for long" >&5
14991echo $ECHO_N "checking for long... $ECHO_C" >&6
14992if test "${ac_cv_type_long+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994else
14995 cat >conftest.$ac_ext <<_ACEOF
14996#line $LINENO "configure"
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
15002$ac_includes_default
15003int
15004main ()
15005{
15006if ((long *) 0)
15007 return 0;
15008if (sizeof (long))
15009 return 0;
15010 ;
15011 return 0;
15012}
15013_ACEOF
15014rm -f conftest.$ac_objext
15015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_type_long=yes
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031ac_cv_type_long=no
15032fi
15033rm -f conftest.$ac_objext conftest.$ac_ext
15034fi
15035echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15036echo "${ECHO_T}$ac_cv_type_long" >&6
15037
15038echo "$as_me:$LINENO: checking size of long" >&5
15039echo $ECHO_N "checking size of long... $ECHO_C" >&6
15040if test "${ac_cv_sizeof_long+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042else
15043 if test "$ac_cv_type_long" = yes; then
15044 # The cast to unsigned long works around a bug in the HP C Compiler
15045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15047 # This bug is HP SR number 8606223364.
15048 if test "$cross_compiling" = yes; then
15049 # Depending upon the size, compute the lo and hi bounds.
15050cat >conftest.$ac_ext <<_ACEOF
15051#line $LINENO "configure"
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057$ac_includes_default
15058int
15059main ()
15060{
15061static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15062test_array [0] = 0
15063
15064 ;
15065 return 0;
15066}
15067_ACEOF
15068rm -f conftest.$ac_objext
15069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070 (eval $ac_compile) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_lo=0 ac_mid=0
15081 while :; do
15082 cat >conftest.$ac_ext <<_ACEOF
15083#line $LINENO "configure"
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089$ac_includes_default
15090int
15091main ()
15092{
15093static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15094test_array [0] = 0
4f14bcd8 15095
e6cc62c6
VS
15096 ;
15097 return 0;
15098}
15099_ACEOF
15100rm -f conftest.$ac_objext
15101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_hi=$ac_mid; break
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117ac_lo=`expr $ac_mid + 1`
15118 if test $ac_lo -le $ac_mid; then
15119 ac_lo= ac_hi=
15120 break
15121 fi
15122 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15123fi
e6cc62c6
VS
15124rm -f conftest.$ac_objext conftest.$ac_ext
15125 done
15126else
15127 echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130cat >conftest.$ac_ext <<_ACEOF
15131#line $LINENO "configure"
15132/* confdefs.h. */
15133_ACEOF
15134cat confdefs.h >>conftest.$ac_ext
15135cat >>conftest.$ac_ext <<_ACEOF
15136/* end confdefs.h. */
15137$ac_includes_default
15138int
15139main ()
15140{
15141static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15142test_array [0] = 0
4f14bcd8 15143
e6cc62c6
VS
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148rm -f conftest.$ac_objext
15149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150 (eval $ac_compile) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_hi=-1 ac_mid=-1
15161 while :; do
15162 cat >conftest.$ac_ext <<_ACEOF
15163#line $LINENO "configure"
15164/* confdefs.h. */
15165_ACEOF
15166cat confdefs.h >>conftest.$ac_ext
15167cat >>conftest.$ac_ext <<_ACEOF
15168/* end confdefs.h. */
15169$ac_includes_default
15170int
15171main ()
15172{
15173static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15174test_array [0] = 0
5c6fa7d2 15175
e6cc62c6
VS
15176 ;
15177 return 0;
15178}
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -s conftest.$ac_objext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_lo=$ac_mid; break
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197ac_hi=`expr '(' $ac_mid ')' - 1`
15198 if test $ac_mid -le $ac_hi; then
15199 ac_lo= ac_hi=
15200 break
15201 fi
15202 ac_mid=`expr 2 '*' $ac_mid`
15203fi
15204rm -f conftest.$ac_objext conftest.$ac_ext
15205 done
247f5006 15206else
e6cc62c6
VS
15207 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5
15209
15210ac_lo= ac_hi=
15211fi
15212rm -f conftest.$ac_objext conftest.$ac_ext
15213fi
15214rm -f conftest.$ac_objext conftest.$ac_ext
15215# Binary search between lo and hi bounds.
15216while test "x$ac_lo" != "x$ac_hi"; do
15217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15218 cat >conftest.$ac_ext <<_ACEOF
15219#line $LINENO "configure"
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225$ac_includes_default
15226int
15227main ()
15228{
15229static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15230test_array [0] = 0
15231
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236rm -f conftest.$ac_objext
15237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 ac_hi=$ac_mid
15249else
15250 echo "$as_me: failed program was:" >&5
15251sed 's/^/| /' conftest.$ac_ext >&5
15252
15253ac_lo=`expr '(' $ac_mid ')' + 1`
15254fi
15255rm -f conftest.$ac_objext conftest.$ac_ext
15256done
15257case $ac_lo in
15258?*) ac_cv_sizeof_long=$ac_lo;;
15259'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15260See \`config.log' for more details." >&5
15261echo "$as_me: error: cannot compute sizeof (long), 77
15262See \`config.log' for more details." >&2;}
15263 { (exit 1); exit 1; }; } ;;
15264esac
247f5006 15265else
e6cc62c6
VS
15266 if test "$cross_compiling" = yes; then
15267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15268See \`config.log' for more details." >&5
15269echo "$as_me: error: cannot run test program while cross compiling
15270See \`config.log' for more details." >&2;}
15271 { (exit 1); exit 1; }; }
15272else
15273 cat >conftest.$ac_ext <<_ACEOF
15274#line $LINENO "configure"
15275/* confdefs.h. */
15276_ACEOF
15277cat confdefs.h >>conftest.$ac_ext
15278cat >>conftest.$ac_ext <<_ACEOF
15279/* end confdefs.h. */
15280$ac_includes_default
15281long longval () { return (long) (sizeof (long)); }
15282unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15283#include <stdio.h>
e6cc62c6
VS
15284#include <stdlib.h>
15285int
15286main ()
247f5006 15287{
e6cc62c6
VS
15288
15289 FILE *f = fopen ("conftest.val", "w");
15290 if (! f)
15291 exit (1);
15292 if (((long) (sizeof (long))) < 0)
15293 {
15294 long i = longval ();
15295 if (i != ((long) (sizeof (long))))
15296 exit (1);
15297 fprintf (f, "%ld\n", i);
15298 }
15299 else
15300 {
15301 unsigned long i = ulongval ();
15302 if (i != ((long) (sizeof (long))))
15303 exit (1);
15304 fprintf (f, "%lu\n", i);
15305 }
15306 exit (ferror (f) || fclose (f) != 0);
15307
15308 ;
15309 return 0;
247f5006 15310}
e6cc62c6
VS
15311_ACEOF
15312rm -f conftest$ac_exeext
15313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 ac_cv_sizeof_long=`cat conftest.val`
15324else
15325 echo "$as_me: program exited with status $ac_status" >&5
15326echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329( exit $ac_status )
15330{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15331See \`config.log' for more details." >&5
15332echo "$as_me: error: cannot compute sizeof (long), 77
15333See \`config.log' for more details." >&2;}
15334 { (exit 1); exit 1; }; }
15335fi
15336rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15337fi
15338fi
15339rm -f conftest.val
247f5006 15340else
a0b9e27f 15341 ac_cv_sizeof_long=0
247f5006 15342fi
247f5006 15343fi
e6cc62c6
VS
15344echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15345echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15346cat >>confdefs.h <<_ACEOF
a0b9e27f 15347#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15348_ACEOF
247f5006 15349
a0b9e27f
MB
15350
15351
15352case "${host}" in
15353 arm-*-linux* )
e6cc62c6
VS
15354 echo "$as_me:$LINENO: checking for long long" >&5
15355echo $ECHO_N "checking for long long... $ECHO_C" >&6
15356if test "${ac_cv_type_long_long+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359 cat >conftest.$ac_ext <<_ACEOF
15360#line $LINENO "configure"
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
15366$ac_includes_default
15367int
15368main ()
15369{
15370if ((long long *) 0)
15371 return 0;
15372if (sizeof (long long))
15373 return 0;
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -s conftest.$ac_objext'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_cv_type_long_long=yes
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395ac_cv_type_long_long=no
15396fi
15397rm -f conftest.$ac_objext conftest.$ac_ext
15398fi
15399echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15400echo "${ECHO_T}$ac_cv_type_long_long" >&6
15401
15402echo "$as_me:$LINENO: checking size of long long" >&5
15403echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15404if test "${ac_cv_sizeof_long_long+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 if test "$ac_cv_type_long_long" = yes; then
15408 # The cast to unsigned long works around a bug in the HP C Compiler
15409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15411 # This bug is HP SR number 8606223364.
a0b9e27f 15412 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15413 # Depending upon the size, compute the lo and hi bounds.
15414cat >conftest.$ac_ext <<_ACEOF
15415#line $LINENO "configure"
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422int
15423main ()
15424{
15425static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15426test_array [0] = 0
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_lo=0 ac_mid=0
15445 while :; do
15446 cat >conftest.$ac_ext <<_ACEOF
15447#line $LINENO "configure"
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453$ac_includes_default
15454int
15455main ()
15456{
15457static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15458test_array [0] = 0
15459
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_hi=$ac_mid; break
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_lo=`expr $ac_mid + 1`
15482 if test $ac_lo -le $ac_mid; then
15483 ac_lo= ac_hi=
15484 break
15485 fi
15486 ac_mid=`expr 2 '*' $ac_mid + 1`
15487fi
15488rm -f conftest.$ac_objext conftest.$ac_ext
15489 done
15490else
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494cat >conftest.$ac_ext <<_ACEOF
15495#line $LINENO "configure"
15496/* confdefs.h. */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h. */
15501$ac_includes_default
15502int
15503main ()
15504{
15505static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15506test_array [0] = 0
15507
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514 (eval $ac_compile) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_hi=-1 ac_mid=-1
15525 while :; do
15526 cat >conftest.$ac_ext <<_ACEOF
15527#line $LINENO "configure"
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533$ac_includes_default
15534int
15535main ()
15536{
15537static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15538test_array [0] = 0
15539
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext
15545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_lo=$ac_mid; break
15557else
15558 echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561ac_hi=`expr '(' $ac_mid ')' - 1`
15562 if test $ac_mid -le $ac_hi; then
15563 ac_lo= ac_hi=
15564 break
15565 fi
15566 ac_mid=`expr 2 '*' $ac_mid`
15567fi
15568rm -f conftest.$ac_objext conftest.$ac_ext
15569 done
15570else
15571 echo "$as_me: failed program was:" >&5
15572sed 's/^/| /' conftest.$ac_ext >&5
15573
15574ac_lo= ac_hi=
15575fi
15576rm -f conftest.$ac_objext conftest.$ac_ext
15577fi
15578rm -f conftest.$ac_objext conftest.$ac_ext
15579# Binary search between lo and hi bounds.
15580while test "x$ac_lo" != "x$ac_hi"; do
15581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15582 cat >conftest.$ac_ext <<_ACEOF
15583#line $LINENO "configure"
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589$ac_includes_default
15590int
15591main ()
15592{
15593static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15594test_array [0] = 0
15595
15596 ;
15597 return 0;
15598}
15599_ACEOF
15600rm -f conftest.$ac_objext
15601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602 (eval $ac_compile) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest.$ac_objext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_hi=$ac_mid
15613else
15614 echo "$as_me: failed program was:" >&5
15615sed 's/^/| /' conftest.$ac_ext >&5
15616
15617ac_lo=`expr '(' $ac_mid ')' + 1`
15618fi
15619rm -f conftest.$ac_objext conftest.$ac_ext
15620done
15621case $ac_lo in
15622?*) ac_cv_sizeof_long_long=$ac_lo;;
15623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15624See \`config.log' for more details." >&5
15625echo "$as_me: error: cannot compute sizeof (long long), 77
15626See \`config.log' for more details." >&2;}
15627 { (exit 1); exit 1; }; } ;;
15628esac
a0b9e27f 15629else
e6cc62c6
VS
15630 if test "$cross_compiling" = yes; then
15631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15632See \`config.log' for more details." >&5
15633echo "$as_me: error: cannot run test program while cross compiling
15634See \`config.log' for more details." >&2;}
15635 { (exit 1); exit 1; }; }
15636else
15637 cat >conftest.$ac_ext <<_ACEOF
15638#line $LINENO "configure"
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
15644$ac_includes_default
15645long longval () { return (long) (sizeof (long long)); }
15646unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15647#include <stdio.h>
e6cc62c6
VS
15648#include <stdlib.h>
15649int
15650main ()
247f5006 15651{
e6cc62c6
VS
15652
15653 FILE *f = fopen ("conftest.val", "w");
15654 if (! f)
15655 exit (1);
15656 if (((long) (sizeof (long long))) < 0)
15657 {
15658 long i = longval ();
15659 if (i != ((long) (sizeof (long long))))
15660 exit (1);
15661 fprintf (f, "%ld\n", i);
15662 }
15663 else
15664 {
15665 unsigned long i = ulongval ();
15666 if (i != ((long) (sizeof (long long))))
15667 exit (1);
15668 fprintf (f, "%lu\n", i);
15669 }
15670 exit (ferror (f) || fclose (f) != 0);
15671
15672 ;
15673 return 0;
247f5006 15674}
e6cc62c6
VS
15675_ACEOF
15676rm -f conftest$ac_exeext
15677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 ac_cv_sizeof_long_long=`cat conftest.val`
15688else
15689 echo "$as_me: program exited with status $ac_status" >&5
15690echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693( exit $ac_status )
15694{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15695See \`config.log' for more details." >&5
15696echo "$as_me: error: cannot compute sizeof (long long), 77
15697See \`config.log' for more details." >&2;}
15698 { (exit 1); exit 1; }; }
15699fi
15700rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15701fi
15702fi
15703rm -f conftest.val
7b4a847f 15704else
a0b9e27f 15705 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15706fi
15707fi
e6cc62c6
VS
15708echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15709echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15710cat >>confdefs.h <<_ACEOF
15711#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15712_ACEOF
15713
15714
15715 ;;
15716 *-hp-hpux* )
15717 echo "$as_me:$LINENO: checking for long long" >&5
15718echo $ECHO_N "checking for long long... $ECHO_C" >&6
15719if test "${ac_cv_type_long_long+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721else
15722 cat >conftest.$ac_ext <<_ACEOF
15723#line $LINENO "configure"
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730int
15731main ()
15732{
15733if ((long long *) 0)
15734 return 0;
15735if (sizeof (long long))
15736 return 0;
15737 ;
15738 return 0;
15739}
15740_ACEOF
15741rm -f conftest.$ac_objext
15742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_type_long_long=yes
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758ac_cv_type_long_long=no
15759fi
15760rm -f conftest.$ac_objext conftest.$ac_ext
15761fi
15762echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15763echo "${ECHO_T}$ac_cv_type_long_long" >&6
15764
15765echo "$as_me:$LINENO: checking size of long long" >&5
15766echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15767if test "${ac_cv_sizeof_long_long+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769else
15770 if test "$ac_cv_type_long_long" = yes; then
15771 # The cast to unsigned long works around a bug in the HP C Compiler
15772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15774 # This bug is HP SR number 8606223364.
15775 if test "$cross_compiling" = yes; then
15776 # Depending upon the size, compute the lo and hi bounds.
15777cat >conftest.$ac_ext <<_ACEOF
15778#line $LINENO "configure"
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784$ac_includes_default
15785int
15786main ()
15787{
15788static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15789test_array [0] = 0
15790
15791 ;
15792 return 0;
15793}
15794_ACEOF
15795rm -f conftest.$ac_objext
15796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -s conftest.$ac_objext'
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15807 ac_lo=0 ac_mid=0
15808 while :; do
15809 cat >conftest.$ac_ext <<_ACEOF
15810#line $LINENO "configure"
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816$ac_includes_default
15817int
15818main ()
15819{
15820static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15821test_array [0] = 0
8284b0c5 15822
e6cc62c6
VS
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -s conftest.$ac_objext'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 ac_hi=$ac_mid; break
15840else
15841 echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844ac_lo=`expr $ac_mid + 1`
15845 if test $ac_lo -le $ac_mid; then
15846 ac_lo= ac_hi=
15847 break
15848 fi
15849 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15850fi
e6cc62c6
VS
15851rm -f conftest.$ac_objext conftest.$ac_ext
15852 done
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857cat >conftest.$ac_ext <<_ACEOF
15858#line $LINENO "configure"
15859/* confdefs.h. */
15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
15864$ac_includes_default
15865int
15866main ()
15867{
15868static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15869test_array [0] = 0
a0b9e27f 15870
e6cc62c6
VS
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext
15876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_hi=-1 ac_mid=-1
15888 while :; do
15889 cat >conftest.$ac_ext <<_ACEOF
15890#line $LINENO "configure"
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896$ac_includes_default
15897int
15898main ()
15899{
15900static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15901test_array [0] = 0
a0b9e27f 15902
e6cc62c6
VS
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext
15908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_lo=$ac_mid; break
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924ac_hi=`expr '(' $ac_mid ')' - 1`
15925 if test $ac_mid -le $ac_hi; then
15926 ac_lo= ac_hi=
15927 break
15928 fi
15929 ac_mid=`expr 2 '*' $ac_mid`
15930fi
15931rm -f conftest.$ac_objext conftest.$ac_ext
15932 done
8284b0c5 15933else
e6cc62c6
VS
15934 echo "$as_me: failed program was:" >&5
15935sed 's/^/| /' conftest.$ac_ext >&5
15936
15937ac_lo= ac_hi=
15938fi
15939rm -f conftest.$ac_objext conftest.$ac_ext
15940fi
15941rm -f conftest.$ac_objext conftest.$ac_ext
15942# Binary search between lo and hi bounds.
15943while test "x$ac_lo" != "x$ac_hi"; do
15944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15945 cat >conftest.$ac_ext <<_ACEOF
15946#line $LINENO "configure"
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952$ac_includes_default
15953int
15954main ()
15955{
15956static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15957test_array [0] = 0
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } &&
15969 { ac_try='test -s conftest.$ac_objext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_hi=$ac_mid
15976else
15977 echo "$as_me: failed program was:" >&5
15978sed 's/^/| /' conftest.$ac_ext >&5
15979
15980ac_lo=`expr '(' $ac_mid ')' + 1`
15981fi
15982rm -f conftest.$ac_objext conftest.$ac_ext
15983done
15984case $ac_lo in
15985?*) ac_cv_sizeof_long_long=$ac_lo;;
15986'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15987See \`config.log' for more details." >&5
15988echo "$as_me: error: cannot compute sizeof (long long), 77
15989See \`config.log' for more details." >&2;}
15990 { (exit 1); exit 1; }; } ;;
15991esac
8284b0c5 15992else
e6cc62c6
VS
15993 if test "$cross_compiling" = yes; then
15994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15995See \`config.log' for more details." >&5
15996echo "$as_me: error: cannot run test program while cross compiling
15997See \`config.log' for more details." >&2;}
15998 { (exit 1); exit 1; }; }
15999else
16000 cat >conftest.$ac_ext <<_ACEOF
16001#line $LINENO "configure"
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008long longval () { return (long) (sizeof (long long)); }
16009unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16010#include <stdio.h>
e6cc62c6
VS
16011#include <stdlib.h>
16012int
16013main ()
8284b0c5 16014{
e6cc62c6
VS
16015
16016 FILE *f = fopen ("conftest.val", "w");
16017 if (! f)
16018 exit (1);
16019 if (((long) (sizeof (long long))) < 0)
16020 {
16021 long i = longval ();
16022 if (i != ((long) (sizeof (long long))))
16023 exit (1);
16024 fprintf (f, "%ld\n", i);
16025 }
16026 else
16027 {
16028 unsigned long i = ulongval ();
16029 if (i != ((long) (sizeof (long long))))
16030 exit (1);
16031 fprintf (f, "%lu\n", i);
16032 }
16033 exit (ferror (f) || fclose (f) != 0);
16034
16035 ;
16036 return 0;
8284b0c5 16037}
e6cc62c6
VS
16038_ACEOF
16039rm -f conftest$ac_exeext
16040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_cv_sizeof_long_long=`cat conftest.val`
16051else
16052 echo "$as_me: program exited with status $ac_status" >&5
16053echo "$as_me: failed program was:" >&5
16054sed 's/^/| /' conftest.$ac_ext >&5
16055
16056( exit $ac_status )
16057{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16058See \`config.log' for more details." >&5
16059echo "$as_me: error: cannot compute sizeof (long long), 77
16060See \`config.log' for more details." >&2;}
16061 { (exit 1); exit 1; }; }
16062fi
16063rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16064fi
16065fi
16066rm -f conftest.val
5c6fa7d2
RR
16067else
16068 ac_cv_sizeof_long_long=0
52127426 16069fi
4f57cf11 16070fi
e6cc62c6
VS
16071echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16072echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16073cat >>confdefs.h <<_ACEOF
4f57cf11 16074#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16075_ACEOF
4f57cf11
GD
16076
16077
16078 if test "$ac_cv_sizeof_long_long" != "0"; then
16079 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16080 fi
16081 ;;
16082 * )
e6cc62c6
VS
16083 echo "$as_me:$LINENO: checking for long long" >&5
16084echo $ECHO_N "checking for long long... $ECHO_C" >&6
16085if test "${ac_cv_type_long_long+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087else
16088 cat >conftest.$ac_ext <<_ACEOF
16089#line $LINENO "configure"
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095$ac_includes_default
16096int
16097main ()
16098{
16099if ((long long *) 0)
16100 return 0;
16101if (sizeof (long long))
16102 return 0;
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -s conftest.$ac_objext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 ac_cv_type_long_long=yes
16120else
16121 echo "$as_me: failed program was:" >&5
16122sed 's/^/| /' conftest.$ac_ext >&5
16123
16124ac_cv_type_long_long=no
16125fi
16126rm -f conftest.$ac_objext conftest.$ac_ext
16127fi
16128echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16129echo "${ECHO_T}$ac_cv_type_long_long" >&6
16130
16131echo "$as_me:$LINENO: checking size of long long" >&5
16132echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16133if test "${ac_cv_sizeof_long_long+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135else
16136 if test "$ac_cv_type_long_long" = yes; then
16137 # The cast to unsigned long works around a bug in the HP C Compiler
16138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16140 # This bug is HP SR number 8606223364.
4f57cf11 16141 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16142 # Depending upon the size, compute the lo and hi bounds.
16143cat >conftest.$ac_ext <<_ACEOF
16144#line $LINENO "configure"
16145/* confdefs.h. */
16146_ACEOF
16147cat confdefs.h >>conftest.$ac_ext
16148cat >>conftest.$ac_ext <<_ACEOF
16149/* end confdefs.h. */
16150$ac_includes_default
16151int
16152main ()
16153{
16154static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16155test_array [0] = 0
16156
16157 ;
16158 return 0;
16159}
16160_ACEOF
16161rm -f conftest.$ac_objext
16162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163 (eval $ac_compile) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_lo=0 ac_mid=0
16174 while :; do
16175 cat >conftest.$ac_ext <<_ACEOF
16176#line $LINENO "configure"
16177/* confdefs.h. */
16178_ACEOF
16179cat confdefs.h >>conftest.$ac_ext
16180cat >>conftest.$ac_ext <<_ACEOF
16181/* end confdefs.h. */
16182$ac_includes_default
16183int
16184main ()
16185{
16186static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16187test_array [0] = 0
16188
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_hi=$ac_mid; break
16206else
16207 echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210ac_lo=`expr $ac_mid + 1`
16211 if test $ac_lo -le $ac_mid; then
16212 ac_lo= ac_hi=
16213 break
16214 fi
16215 ac_mid=`expr 2 '*' $ac_mid + 1`
16216fi
16217rm -f conftest.$ac_objext conftest.$ac_ext
16218 done
16219else
16220 echo "$as_me: failed program was:" >&5
16221sed 's/^/| /' conftest.$ac_ext >&5
16222
16223cat >conftest.$ac_ext <<_ACEOF
16224#line $LINENO "configure"
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231int
16232main ()
16233{
16234static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16235test_array [0] = 0
16236
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243 (eval $ac_compile) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_hi=-1 ac_mid=-1
16254 while :; do
16255 cat >conftest.$ac_ext <<_ACEOF
16256#line $LINENO "configure"
16257/* confdefs.h. */
16258_ACEOF
16259cat confdefs.h >>conftest.$ac_ext
16260cat >>conftest.$ac_ext <<_ACEOF
16261/* end confdefs.h. */
16262$ac_includes_default
16263int
16264main ()
16265{
16266static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16267test_array [0] = 0
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext
16274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16275 (eval $ac_compile) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_lo=$ac_mid; break
16286else
16287 echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290ac_hi=`expr '(' $ac_mid ')' - 1`
16291 if test $ac_mid -le $ac_hi; then
16292 ac_lo= ac_hi=
16293 break
16294 fi
16295 ac_mid=`expr 2 '*' $ac_mid`
16296fi
16297rm -f conftest.$ac_objext conftest.$ac_ext
16298 done
4f57cf11 16299else
e6cc62c6
VS
16300 echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303ac_lo= ac_hi=
16304fi
16305rm -f conftest.$ac_objext conftest.$ac_ext
16306fi
16307rm -f conftest.$ac_objext conftest.$ac_ext
16308# Binary search between lo and hi bounds.
16309while test "x$ac_lo" != "x$ac_hi"; do
16310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16311 cat >conftest.$ac_ext <<_ACEOF
16312#line $LINENO "configure"
16313/* confdefs.h. */
16314_ACEOF
16315cat confdefs.h >>conftest.$ac_ext
16316cat >>conftest.$ac_ext <<_ACEOF
16317/* end confdefs.h. */
16318$ac_includes_default
16319int
16320main ()
16321{
16322static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16323test_array [0] = 0
16324
16325 ;
16326 return 0;
16327}
16328_ACEOF
16329rm -f conftest.$ac_objext
16330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16331 (eval $ac_compile) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; }; then
16341 ac_hi=$ac_mid
16342else
16343 echo "$as_me: failed program was:" >&5
16344sed 's/^/| /' conftest.$ac_ext >&5
16345
16346ac_lo=`expr '(' $ac_mid ')' + 1`
16347fi
16348rm -f conftest.$ac_objext conftest.$ac_ext
16349done
16350case $ac_lo in
16351?*) ac_cv_sizeof_long_long=$ac_lo;;
16352'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16353See \`config.log' for more details." >&5
16354echo "$as_me: error: cannot compute sizeof (long long), 77
16355See \`config.log' for more details." >&2;}
16356 { (exit 1); exit 1; }; } ;;
16357esac
16358else
16359 if test "$cross_compiling" = yes; then
16360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16361See \`config.log' for more details." >&5
16362echo "$as_me: error: cannot run test program while cross compiling
16363See \`config.log' for more details." >&2;}
16364 { (exit 1); exit 1; }; }
16365else
16366 cat >conftest.$ac_ext <<_ACEOF
16367#line $LINENO "configure"
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
16373$ac_includes_default
16374long longval () { return (long) (sizeof (long long)); }
16375unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16376#include <stdio.h>
e6cc62c6
VS
16377#include <stdlib.h>
16378int
16379main ()
4f57cf11 16380{
e6cc62c6
VS
16381
16382 FILE *f = fopen ("conftest.val", "w");
16383 if (! f)
16384 exit (1);
16385 if (((long) (sizeof (long long))) < 0)
16386 {
16387 long i = longval ();
16388 if (i != ((long) (sizeof (long long))))
16389 exit (1);
16390 fprintf (f, "%ld\n", i);
16391 }
16392 else
16393 {
16394 unsigned long i = ulongval ();
16395 if (i != ((long) (sizeof (long long))))
16396 exit (1);
16397 fprintf (f, "%lu\n", i);
16398 }
16399 exit (ferror (f) || fclose (f) != 0);
16400
16401 ;
16402 return 0;
4f57cf11 16403}
e6cc62c6
VS
16404_ACEOF
16405rm -f conftest$ac_exeext
16406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_cv_sizeof_long_long=`cat conftest.val`
16417else
16418 echo "$as_me: program exited with status $ac_status" >&5
16419echo "$as_me: failed program was:" >&5
16420sed 's/^/| /' conftest.$ac_ext >&5
16421
16422( exit $ac_status )
16423{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16424See \`config.log' for more details." >&5
16425echo "$as_me: error: cannot compute sizeof (long long), 77
16426See \`config.log' for more details." >&2;}
16427 { (exit 1); exit 1; }; }
16428fi
16429rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16430fi
16431fi
16432rm -f conftest.val
4f57cf11 16433else
4f57cf11
GD
16434 ac_cv_sizeof_long_long=0
16435fi
7b4a847f 16436fi
e6cc62c6
VS
16437echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16438echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16439cat >>confdefs.h <<_ACEOF
21d1c967 16440#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16441_ACEOF
9e691f46 16442
8284b0c5 16443
21d1c967
GD
16444esac
16445
e6cc62c6
VS
16446echo "$as_me:$LINENO: checking size of wchar_t" >&5
16447echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16448if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16450else
e6cc62c6 16451
21d1c967 16452 if test "$cross_compiling" = yes; then
e6cc62c6 16453
2b5f62a0
VZ
16454 case "${host}" in
16455 *-pc-msdosdjgpp )
16456 wx_cv_sizeof_wchar_t=0
16457 ;;
16458 * )
16459 wx_cv_sizeof_wchar_t=4
16460 ;;
16461 esac
e6cc62c6
VS
16462
16463
6f72b082 16464else
e6cc62c6
VS
16465 cat >conftest.$ac_ext <<_ACEOF
16466#line $LINENO "configure"
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
21d1c967 16472
2b5f62a0
VZ
16473 /* DJGPP only has fake wchar_t: */
16474 #ifdef __DJGPP__
16475 # error "fake wchar_t"
16476 #endif
21d1c967
GD
16477 #ifdef HAVE_WCHAR_H
16478 # ifdef __CYGWIN__
16479 # include <stddef.h>
16480 # endif
16481 # include <wchar.h>
16482 #endif
16483 #ifdef HAVE_STDLIB_H
16484 # include <stdlib.h>
16485 #endif
16486 #include <stdio.h>
16487 int main()
16488 {
16489 FILE *f=fopen("conftestval", "w");
16490 if (!f) exit(1);
16491 fprintf(f, "%i", sizeof(wchar_t));
16492 exit(0);
16493 }
e6cc62c6
VS
16494
16495_ACEOF
16496rm -f conftest$ac_exeext
16497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498 (eval $ac_link) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
21d1c967 16507 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16508else
e6cc62c6
VS
16509 echo "$as_me: program exited with status $ac_status" >&5
16510echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513( exit $ac_status )
16514wx_cv_sizeof_wchar_t=0
6f72b082 16515fi
e6cc62c6 16516rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16517fi
6f72b082 16518
3f345b47 16519fi
e6cc62c6
VS
16520echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16521echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16522
e6cc62c6 16523cat >>confdefs.h <<_ACEOF
21d1c967 16524#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16525_ACEOF
90dd450c 16526
8284b0c5 16527
21d1c967
GD
16528# Check whether --enable-largefile or --disable-largefile was given.
16529if test "${enable_largefile+set}" = set; then
16530 enableval="$enable_largefile"
3f345b47 16531
e6cc62c6 16532fi;
21d1c967
GD
16533if test "$enable_largefile" != no; then
16534 wx_largefile=no
e6cc62c6
VS
16535
16536 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16537echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16538if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540else
16541
16542 cat >conftest.$ac_ext <<_ACEOF
16543#line $LINENO "configure"
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
21d1c967
GD
16549#define _FILE_OFFSET_BITS 64
16550 #include <sys/types.h>
e6cc62c6
VS
16551int
16552main ()
16553{
21d1c967
GD
16554typedef struct {
16555 unsigned int field: sizeof(off_t) == 8;
16556} wxlf;
16557
e6cc62c6
VS
16558 ;
16559 return 0;
16560}
16561_ACEOF
16562rm -f conftest.$ac_objext
16563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
21d1c967 16574 ac_cv_sys_file_offset_bits=64
f6bcfd97 16575else
e6cc62c6
VS
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579ac_cv_sys_file_offset_bits=no
247f5006 16580fi
e6cc62c6
VS
16581rm -f conftest.$ac_objext conftest.$ac_ext
16582
a0b9e27f 16583
e6cc62c6
VS
16584fi
16585echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16586echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16587
16588 if test "$ac_cv_sys_file_offset_bits" != no; then
16589 wx_largefile=yes
e6cc62c6 16590 cat >>confdefs.h <<_ACEOF
21d1c967 16591#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16592_ACEOF
21d1c967
GD
16593
16594 fi
16595
16596 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16597
16598 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16599echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16600if test "${ac_cv_sys_large_files+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602else
16603
16604 cat >conftest.$ac_ext <<_ACEOF
16605#line $LINENO "configure"
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
21d1c967
GD
16611#define _LARGE_FILES 1
16612 #include <sys/types.h>
e6cc62c6
VS
16613int
16614main ()
16615{
21d1c967
GD
16616typedef struct {
16617 unsigned int field: sizeof(off_t) == 8;
16618} wxlf;
16619
e6cc62c6
VS
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext
16625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
21d1c967 16636 ac_cv_sys_large_files=1
f6bcfd97 16637else
e6cc62c6
VS
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641ac_cv_sys_large_files=no
247f5006 16642fi
e6cc62c6 16643rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16644
e6cc62c6
VS
16645
16646fi
16647echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16648echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16649
21d1c967
GD
16650 if test "$ac_cv_sys_large_files" != no; then
16651 wx_largefile=yes
e6cc62c6 16652 cat >>confdefs.h <<_ACEOF
21d1c967 16653#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16654_ACEOF
90dd450c 16655
90dd450c
VZ
16656 fi
16657
90dd450c 16658 fi
90dd450c 16659
e6cc62c6
VS
16660 echo "$as_me:$LINENO: checking if large file support is available" >&5
16661echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16662 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16663 cat >>confdefs.h <<\_ACEOF
21d1c967 16664#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16665_ACEOF
90dd450c 16666
90dd450c 16667 fi
e6cc62c6
VS
16668 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16669echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16670fi
90dd450c 16671
8284b0c5 16672
f02444d0 16673if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16674 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16675 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16676 else
e26c13cf 16677 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16678 fi
e26c13cf 16679 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16680fi
16681
e6cc62c6
VS
16682echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16683echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16684if test "${ac_cv_c_bigendian+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16686else
21d1c967
GD
16687 ac_cv_c_bigendian=unknown
16688# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16689cat >conftest.$ac_ext <<_ACEOF
16690#line $LINENO "configure"
16691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
21d1c967
GD
16696#include <sys/types.h>
16697#include <sys/param.h>
e6cc62c6
VS
16698int
16699main ()
16700{
21d1c967
GD
16701
16702#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16703 bogus endian macros
16704#endif
e6cc62c6
VS
16705 ;
16706 return 0;
16707}
16708_ACEOF
16709rm -f conftest.$ac_objext
16710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
21d1c967 16721 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16722cat >conftest.$ac_ext <<_ACEOF
16723#line $LINENO "configure"
16724/* confdefs.h. */
16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
21d1c967
GD
16729#include <sys/types.h>
16730#include <sys/param.h>
e6cc62c6
VS
16731int
16732main ()
16733{
21d1c967
GD
16734
16735#if BYTE_ORDER != BIG_ENDIAN
16736 not big endian
16737#endif
e6cc62c6
VS
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext
16743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
21d1c967 16754 ac_cv_c_bigendian=yes
3f345b47 16755else
e6cc62c6
VS
16756 echo "$as_me: failed program was:" >&5
16757sed 's/^/| /' conftest.$ac_ext >&5
16758
16759ac_cv_c_bigendian=no
3f345b47 16760fi
e6cc62c6 16761rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16762else
e6cc62c6
VS
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
3f345b47 16766fi
e6cc62c6 16767rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16768if test $ac_cv_c_bigendian = unknown; then
16769if test "$cross_compiling" = yes; then
16770 ac_cv_c_bigendian=unknown
10f2d63a 16771else
e6cc62c6
VS
16772 cat >conftest.$ac_ext <<_ACEOF
16773#line $LINENO "configure"
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
21d1c967
GD
16779main () {
16780 /* Are we little or big endian? From Harbison&Steele. */
16781 union
16782 {
16783 long l;
16784 char c[sizeof (long)];
16785 } u;
16786 u.l = 1;
16787 exit (u.c[sizeof (long) - 1] == 1);
16788}
e6cc62c6
VS
16789_ACEOF
16790rm -f conftest$ac_exeext
16791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
21d1c967 16801 ac_cv_c_bigendian=no
3f345b47 16802else
e6cc62c6
VS
16803 echo "$as_me: program exited with status $ac_status" >&5
16804echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
16807( exit $ac_status )
16808ac_cv_c_bigendian=yes
247f5006 16809fi
e6cc62c6 16810rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16811fi
3f345b47 16812fi
8168de4c 16813fi
e6cc62c6
VS
16814echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16815echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16816if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16817 { 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
16818echo "$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
16819fi
16820if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16821 cat >>confdefs.h <<\_ACEOF
247f5006 16822#define WORDS_BIGENDIAN 1
e6cc62c6 16823_ACEOF
247f5006
VZ
16824
16825fi
16826
16827
e6cc62c6
VS
16828
16829ac_ext=cc
16830ac_cpp='$CXXCPP $CPPFLAGS'
16831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16834echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16835echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16836if test -z "$CXXCPP"; then
e6cc62c6
VS
16837 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 # Double quotes because CXXCPP needs to be expanded
16841 for CXXCPP in "$CXX -E" "/lib/cpp"
16842 do
16843 ac_preproc_ok=false
16844for ac_cxx_preproc_warn_flag in '' yes
16845do
16846 # Use a header file that comes with gcc, so configuring glibc
16847 # with a fresh cross-compiler works.
16848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16849 # <limits.h> exists even on freestanding compilers.
16850 # On the NeXT, cc -E runs the code through the compiler's parser,
16851 # not just through cpp. "Syntax error" is here to catch this case.
16852 cat >conftest.$ac_ext <<_ACEOF
16853#line $LINENO "configure"
16854/* confdefs.h. */
16855_ACEOF
16856cat confdefs.h >>conftest.$ac_ext
16857cat >>conftest.$ac_ext <<_ACEOF
16858/* end confdefs.h. */
16859#ifdef __STDC__
16860# include <limits.h>
16861#else
16862# include <assert.h>
16863#endif
16864 Syntax error
16865_ACEOF
16866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } >/dev/null; then
16874 if test -s conftest.err; then
16875 ac_cpp_err=$ac_cxx_preproc_warn_flag
16876 else
16877 ac_cpp_err=
16878 fi
247f5006 16879else
e6cc62c6
VS
16880 ac_cpp_err=yes
16881fi
16882if test -z "$ac_cpp_err"; then
16883 :
16884else
16885 echo "$as_me: failed program was:" >&5
16886sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 # Broken: fails on valid input.
16889continue
16890fi
16891rm -f conftest.err conftest.$ac_ext
16892
16893 # OK, works on sane cases. Now check whether non-existent headers
16894 # can be detected and how.
16895 cat >conftest.$ac_ext <<_ACEOF
16896#line $LINENO "configure"
16897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
16902#include <ac_nonexistent.h>
16903_ACEOF
16904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } >/dev/null; then
16912 if test -s conftest.err; then
16913 ac_cpp_err=$ac_cxx_preproc_warn_flag
16914 else
16915 ac_cpp_err=
16916 fi
16917else
16918 ac_cpp_err=yes
16919fi
16920if test -z "$ac_cpp_err"; then
16921 # Broken: success on invalid input.
16922continue
16923else
16924 echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 # Passes both tests.
16928ac_preproc_ok=:
16929break
16930fi
16931rm -f conftest.err conftest.$ac_ext
16932
16933done
16934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16935rm -f conftest.err conftest.$ac_ext
16936if $ac_preproc_ok; then
16937 break
16938fi
16939
16940 done
16941 ac_cv_prog_CXXCPP=$CXXCPP
16942
16943fi
16944 CXXCPP=$ac_cv_prog_CXXCPP
16945else
16946 ac_cv_prog_CXXCPP=$CXXCPP
16947fi
16948echo "$as_me:$LINENO: result: $CXXCPP" >&5
16949echo "${ECHO_T}$CXXCPP" >&6
16950ac_preproc_ok=false
16951for ac_cxx_preproc_warn_flag in '' yes
16952do
16953 # Use a header file that comes with gcc, so configuring glibc
16954 # with a fresh cross-compiler works.
16955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956 # <limits.h> exists even on freestanding compilers.
16957 # On the NeXT, cc -E runs the code through the compiler's parser,
16958 # not just through cpp. "Syntax error" is here to catch this case.
16959 cat >conftest.$ac_ext <<_ACEOF
16960#line $LINENO "configure"
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966#ifdef __STDC__
16967# include <limits.h>
16968#else
16969# include <assert.h>
16970#endif
16971 Syntax error
16972_ACEOF
16973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } >/dev/null; then
16981 if test -s conftest.err; then
16982 ac_cpp_err=$ac_cxx_preproc_warn_flag
16983 else
16984 ac_cpp_err=
16985 fi
16986else
16987 ac_cpp_err=yes
16988fi
16989if test -z "$ac_cpp_err"; then
21d1c967 16990 :
698dcdb6 16991else
e6cc62c6
VS
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 # Broken: fails on valid input.
16996continue
16997fi
16998rm -f conftest.err conftest.$ac_ext
16999
17000 # OK, works on sane cases. Now check whether non-existent headers
17001 # can be detected and how.
17002 cat >conftest.$ac_ext <<_ACEOF
17003#line $LINENO "configure"
17004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
17009#include <ac_nonexistent.h>
17010_ACEOF
17011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } >/dev/null; then
17019 if test -s conftest.err; then
17020 ac_cpp_err=$ac_cxx_preproc_warn_flag
17021 else
17022 ac_cpp_err=
17023 fi
17024else
17025 ac_cpp_err=yes
247f5006 17026fi
e6cc62c6
VS
17027if test -z "$ac_cpp_err"; then
17028 # Broken: success on invalid input.
17029continue
17030else
17031 echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 # Passes both tests.
17035ac_preproc_ok=:
17036break
328a083c 17037fi
e6cc62c6
VS
17038rm -f conftest.err conftest.$ac_ext
17039
17040done
17041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17042rm -f conftest.err conftest.$ac_ext
17043if $ac_preproc_ok; then
17044 :
17045else
17046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17047See \`config.log' for more details." >&5
17048echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17049See \`config.log' for more details." >&2;}
17050 { (exit 1); exit 1; }; }
90dd450c 17051fi
e6cc62c6
VS
17052
17053ac_ext=cc
17054ac_cpp='$CXXCPP $CPPFLAGS'
17055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17058
1e6feb95 17059
1725144d 17060
21d1c967 17061 if test "$cross_compiling" = "yes"; then
e6cc62c6 17062 cat >>confdefs.h <<\_ACEOF
21d1c967 17063#define wxUSE_IOSTREAMH 1
e6cc62c6 17064_ACEOF
ab9b9eab 17065
21d1c967 17066 else
e6cc62c6
VS
17067
17068
17069 ac_ext=cc
5c6fa7d2 17070ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17074
52127426 17075
247f5006 17076
e6cc62c6 17077for ac_header in iostream
21d1c967 17078do
e6cc62c6
VS
17079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17080if eval "test \"\${$as_ac_Header+set}\" = set"; then
17081 echo "$as_me:$LINENO: checking for $ac_header" >&5
17082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17083if eval "test \"\${$as_ac_Header+set}\" = set"; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085fi
17086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088else
17089 # Is the header compilable?
17090echo "$as_me:$LINENO: checking $ac_header usability" >&5
17091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17092cat >conftest.$ac_ext <<_ACEOF
17093#line $LINENO "configure"
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099$ac_includes_default
17100#include <$ac_header>
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -s conftest.$ac_objext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_header_compiler=yes
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_header_compiler=no
17120fi
17121rm -f conftest.$ac_objext conftest.$ac_ext
17122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17123echo "${ECHO_T}$ac_header_compiler" >&6
17124
17125# Is the header present?
17126echo "$as_me:$LINENO: checking $ac_header presence" >&5
17127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17128cat >conftest.$ac_ext <<_ACEOF
17129#line $LINENO "configure"
17130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
17135#include <$ac_header>
17136_ACEOF
17137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } >/dev/null; then
17145 if test -s conftest.err; then
17146 ac_cpp_err=$ac_cxx_preproc_warn_flag
17147 else
17148 ac_cpp_err=
17149 fi
17150else
17151 ac_cpp_err=yes
17152fi
17153if test -z "$ac_cpp_err"; then
17154 ac_header_preproc=yes
17155else
17156 echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 ac_header_preproc=no
17160fi
17161rm -f conftest.err conftest.$ac_ext
17162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17163echo "${ECHO_T}$ac_header_preproc" >&6
17164
17165# So? What about this header?
17166case $ac_header_compiler:$ac_header_preproc in
17167 yes:no )
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17172 (
17173 cat <<\_ASBOX
17174## ------------------------------------ ##
17175## Report this to bug-autoconf@gnu.org. ##
17176## ------------------------------------ ##
17177_ASBOX
17178 ) |
17179 sed "s/^/$as_me: WARNING: /" >&2
17180 ;;
17181 no:yes )
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17188 (
17189 cat <<\_ASBOX
17190## ------------------------------------ ##
17191## Report this to bug-autoconf@gnu.org. ##
17192## ------------------------------------ ##
17193_ASBOX
17194 ) |
17195 sed "s/^/$as_me: WARNING: /" >&2
17196 ;;
17197esac
17198echo "$as_me:$LINENO: checking for $ac_header" >&5
17199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17200if eval "test \"\${$as_ac_Header+set}\" = set"; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17204fi
e6cc62c6
VS
17205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17207
90dd450c 17208fi
e6cc62c6
VS
17209if test `eval echo '${'$as_ac_Header'}'` = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17212_ACEOF
17213
90dd450c 17214fi
e6cc62c6 17215
21d1c967 17216done
10f2d63a 17217
8284b0c5 17218
21d1c967
GD
17219 if test "$ac_cv_header_iostream" = "yes" ; then
17220 :
17221 else
e6cc62c6 17222 cat >>confdefs.h <<\_ACEOF
21d1c967 17223#define wxUSE_IOSTREAMH 1
e6cc62c6 17224_ACEOF
788deba1 17225
90dd450c 17226 fi
ab9b9eab 17227
21d1c967 17228 ac_ext=c
21d1c967 17229ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17232ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17233
21d1c967 17234 fi
ab9b9eab 17235
52127426 17236
8284b0c5 17237
e6cc62c6
VS
17238 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17239echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17240if test "${wx_cv_cpp_bool+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17242else
e6cc62c6
VS
17243
17244
17245
17246 ac_ext=cc
5c6fa7d2 17247ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17251
8284b0c5 17252
e6cc62c6
VS
17253 cat >conftest.$ac_ext <<_ACEOF
17254#line $LINENO "configure"
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
21d1c967 17260
e6cc62c6
VS
17261
17262int
17263main ()
17264{
21d1c967
GD
17265
17266 bool b = true;
17267
17268 return 0;
e6cc62c6
VS
17269
17270 ;
17271 return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext
17275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17276 (eval $ac_compile) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -s conftest.$ac_objext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286
21d1c967 17287 wx_cv_cpp_bool=yes
e6cc62c6 17288
698dcdb6 17289else
e6cc62c6
VS
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293
21d1c967 17294 wx_cv_cpp_bool=no
e6cc62c6
VS
17295
17296
698dcdb6 17297fi
e6cc62c6 17298rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17299
17300 ac_ext=c
21d1c967 17301ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17304ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17305
a0b9e27f 17306
e6cc62c6
VS
17307fi
17308echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17309echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17310
17311 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17312 cat >>confdefs.h <<\_ACEOF
21d1c967 17313#define HAVE_BOOL 1
e6cc62c6 17314_ACEOF
ab9b9eab 17315
21d1c967
GD
17316 fi
17317
52127426 17318
8284b0c5 17319
e6cc62c6
VS
17320 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17321echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17322if test "${wx_cv_explicit+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17324else
e6cc62c6
VS
17325
17326
17327
17328 ac_ext=cc
5c6fa7d2 17329ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17333
8284b0c5 17334
e6cc62c6
VS
17335 cat >conftest.$ac_ext <<_ACEOF
17336#line $LINENO "configure"
17337/* confdefs.h. */
17338_ACEOF
17339cat confdefs.h >>conftest.$ac_ext
17340cat >>conftest.$ac_ext <<_ACEOF
17341/* end confdefs.h. */
986ecc86
VZ
17342
17343 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17344
17345int
17346main ()
17347{
986ecc86
VZ
17348
17349 return 0;
e6cc62c6
VS
17350
17351 ;
17352 return 0;
17353}
17354_ACEOF
17355rm -f conftest.$ac_objext
17356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367
17368 cat >conftest.$ac_ext <<_ACEOF
17369#line $LINENO "configure"
17370/* confdefs.h. */
17371_ACEOF
17372cat confdefs.h >>conftest.$ac_ext
17373cat >>conftest.$ac_ext <<_ACEOF
17374/* end confdefs.h. */
986ecc86
VZ
17375
17376 class Foo { public: explicit Foo(int) {} };
17377 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17378
17379int
17380main ()
17381{
986ecc86
VZ
17382
17383 TakeFoo(17);
17384 return 0;
e6cc62c6
VS
17385
17386 ;
17387 return 0;
17388}
17389_ACEOF
17390rm -f conftest.$ac_objext
17391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392 (eval $ac_compile) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -s conftest.$ac_objext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
986ecc86
VZ
17402 wx_cv_explicit=no
17403else
e6cc62c6
VS
17404 echo "$as_me: failed program was:" >&5
17405sed 's/^/| /' conftest.$ac_ext >&5
17406
17407wx_cv_explicit=yes
17408
986ecc86 17409fi
e6cc62c6
VS
17410rm -f conftest.$ac_objext conftest.$ac_ext
17411
986ecc86 17412else
e6cc62c6
VS
17413 echo "$as_me: failed program was:" >&5
17414sed 's/^/| /' conftest.$ac_ext >&5
17415
17416wx_cv_explicit=no
17417
986ecc86 17418fi
e6cc62c6 17419rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17420
17421 ac_ext=c
986ecc86 17422ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17425ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17426
a0b9e27f 17427
e6cc62c6
VS
17428fi
17429echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17430echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17431
17432 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17433 cat >>confdefs.h <<\_ACEOF
986ecc86 17434#define HAVE_EXPLICIT 1
e6cc62c6 17435_ACEOF
986ecc86
VZ
17436
17437 fi
17438
8284b0c5 17439
e6cc62c6
VS
17440echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17441echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17442if test "${ac_cv_cxx_const_cast+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17444else
521196a2 17445
521196a2 17446
e6cc62c6
VS
17447 ac_ext=cc
17448ac_cpp='$CXXCPP $CPPFLAGS'
17449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17452
17453 cat >conftest.$ac_ext <<_ACEOF
17454#line $LINENO "configure"
17455/* confdefs.h. */
17456_ACEOF
17457cat confdefs.h >>conftest.$ac_ext
17458cat >>conftest.$ac_ext <<_ACEOF
17459/* end confdefs.h. */
17460
17461int
17462main ()
17463{
521196a2 17464int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext
17470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17471 (eval $ac_compile) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
521196a2
MB
17481 ac_cv_cxx_const_cast=yes
17482else
e6cc62c6
VS
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_cv_cxx_const_cast=no
521196a2 17487fi
e6cc62c6 17488rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17489 ac_ext=c
521196a2 17490ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17494
17495
17496fi
e6cc62c6
VS
17497echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17498echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17499if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17500
17501cat >>confdefs.h <<\_ACEOF
17502#define HAVE_CONST_CAST
17503_ACEOF
521196a2
MB
17504
17505fi
17506
17507
e87b7833
MB
17508if test "$wxUSE_STL" = "yes"; then
17509 ac_ext=cc
17510ac_cpp='$CXXCPP $CPPFLAGS'
17511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17514
17515
17516 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17517echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17518 cat >conftest.$ac_ext <<_ACEOF
17519#line $LINENO "configure"
17520/* confdefs.h. */
17521_ACEOF
17522cat confdefs.h >>conftest.$ac_ext
17523cat >>conftest.$ac_ext <<_ACEOF
17524/* end confdefs.h. */
17525#include <string>
17526 #include <functional>
17527 #include <algorithm>
17528 #include <vector>
17529 #include <list>
17530int
17531main ()
17532{
17533std::vector<int> moo;
17534 std::list<int> foo;
17535 std::vector<int>::iterator it =
17536 std::find_if(moo.begin(), moo.end(),
17537 std::bind2nd(std::less<int>(), 3));
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -s conftest.$ac_objext'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 echo "$as_me:$LINENO: result: yes" >&5
17555echo "${ECHO_T}yes" >&6
17556else
17557 echo "$as_me: failed program was:" >&5
17558sed 's/^/| /' conftest.$ac_ext >&5
17559
17560echo "$as_me:$LINENO: result: no" >&5
17561echo "${ECHO_T}no" >&6
17562 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17563echo "$as_me: error: Basic STL functionality missing" >&2;}
17564 { (exit 1); exit 1; }; }
17565fi
17566rm -f conftest.$ac_objext conftest.$ac_ext
17567
17568 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17569echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17570 cat >conftest.$ac_ext <<_ACEOF
17571#line $LINENO "configure"
17572/* confdefs.h. */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h. */
17577#include <string>
17578int
17579main ()
17580{
17581std::wstring foo;
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 echo "$as_me:$LINENO: result: yes" >&5
17599echo "${ECHO_T}yes" >&6
17600 cat >>confdefs.h <<\_ACEOF
17601#define HAVE_STD_WSTRING 1
17602_ACEOF
17603
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608echo "$as_me:$LINENO: result: no" >&5
17609echo "${ECHO_T}no" >&6
17610fi
17611rm -f conftest.$ac_objext conftest.$ac_ext
17612
17613 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17614echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17615 cat >conftest.$ac_ext <<_ACEOF
17616#line $LINENO "configure"
17617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
17622#include <string>
17623int
17624main ()
17625{
17626std::string foo, bar;
17627 foo.compare(bar);
17628 foo.compare(1, 1, bar);
17629 foo.compare(1, 1, bar, 1, 1);
17630 foo.compare("");
17631 foo.compare(1, 1, "");
17632 foo.compare(1, 1, "", 2);
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext
17638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17639 (eval $ac_compile) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 echo "$as_me:$LINENO: result: yes" >&5
17650echo "${ECHO_T}yes" >&6
17651 cat >>confdefs.h <<\_ACEOF
17652#define HAVE_STD_STRING_COMPARE 1
17653_ACEOF
17654
17655else
17656 echo "$as_me: failed program was:" >&5
17657sed 's/^/| /' conftest.$ac_ext >&5
17658
17659echo "$as_me:$LINENO: result: no" >&5
17660echo "${ECHO_T}no" >&6
17661fi
17662rm -f conftest.$ac_objext conftest.$ac_ext
17663
17664 ac_ext=c
17665ac_cpp='$CPP $CPPFLAGS'
17666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669
17670fi
17671
8284b0c5 17672
21d1c967
GD
17673SEARCH_INCLUDE="\
17674 /usr/local/include \
17675 \
17676 /usr/Motif-1.2/include \
17677 /usr/Motif-2.1/include \
17678 \
17679 /usr/include/Motif1.2 \
17680 /opt/xpm/include/X11 \
17681 /opt/GBxpm/include/ \
17682 /opt/GBxpm/X11/include/ \
17683 \
17684 /usr/Motif1.2/include \
17685 /usr/dt/include \
17686 /usr/openwin/include \
17687 \
17688 /usr/include/Xm \
17689 \
17690 /usr/X11R6/include \
17691 /usr/X11R6.4/include \
17692 /usr/X11R5/include \
17693 /usr/X11R4/include \
17694 \
17695 /usr/include/X11R6 \
17696 /usr/include/X11R5 \
17697 /usr/include/X11R4 \
17698 \
17699 /usr/local/X11R6/include \
17700 /usr/local/X11R5/include \
17701 /usr/local/X11R4/include \
17702 \
17703 /usr/local/include/X11R6 \
17704 /usr/local/include/X11R5 \
17705 /usr/local/include/X11R4 \
17706 \
17707 /usr/X11/include \
17708 /usr/include/X11 \
17709 /usr/local/X11/include \
17710 /usr/local/include/X11 \
17711 \
17712 /usr/X386/include \
17713 /usr/x386/include \
17714 /usr/XFree86/include/X11 \
17715 \
17716 X:/XFree86/include \
17717 X:/XFree86/include/X11 \
17718 \
17719 /usr/include/gtk \
17720 /usr/local/include/gtk \
17721 /usr/include/glib \
17722 /usr/local/include/glib \
17723 \
17724 /usr/include/qt \
17725 /usr/local/include/qt \
17726 \
17727 /usr/include/windows \
17728 /usr/include/wine \
17729 /usr/local/include/wine \
17730 \
17731 /usr/unsupported/include \
17732 /usr/athena/include \
17733 /usr/local/x11r5/include \
17734 /usr/lpp/Xamples/include \
17735 \
2b5f62a0 17736 /usr/openwin/share/include"
21d1c967
GD
17737
17738SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17739
8284b0c5 17740
e6cc62c6 17741cat >confcache <<\_ACEOF
21d1c967
GD
17742# This file is a shell script that caches the results of configure
17743# tests run on this system so they can be shared between configure
e6cc62c6
VS
17744# scripts and configure runs, see configure's option --config-cache.
17745# It is not useful on other systems. If it contains results you don't
17746# want to keep, you may remove or edit it.
21d1c967 17747#
e6cc62c6
VS
17748# config.status only pays attention to the cache file if you give it
17749# the --recheck option to rerun configure.
21d1c967 17750#
e6cc62c6
VS
17751# `ac_cv_env_foo' variables (set or unset) will be overridden when
17752# loading this file, other *unset* `ac_cv_foo' will be assigned the
17753# following values.
17754
17755_ACEOF
17756
21d1c967
GD
17757# The following way of writing the cache mishandles newlines in values,
17758# but we know of no workaround that is simple, portable, and efficient.
17759# So, don't put newlines in cache variables' values.
17760# Ultrix sh set writes to stderr and can't be redirected directly,
17761# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17762{
17763 (set) 2>&1 |
17764 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17765 *ac_space=\ *)
17766 # `set' does not quote correctly, so add quotes (double-quote
17767 # substitution turns \\\\ into \\, and sed turns \\ into \).
17768 sed -n \
17769 "s/'/'\\\\''/g;
17770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17771 ;;
17772 *)
17773 # `set' quotes correctly as required by POSIX, so do not add quotes.
17774 sed -n \
17775 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17776 ;;
17777 esac;
17778} |
17779 sed '
17780 t clear
17781 : clear
17782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17783 t end
17784 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17785 : end' >>confcache
17786if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17787 if test -w $cache_file; then
e6cc62c6
VS
17788 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17789 cat confcache >$cache_file
21d1c967
GD
17790 else
17791 echo "not updating unwritable cache $cache_file"
17792 fi
ab9b9eab 17793fi
21d1c967 17794rm -f confcache
ab9b9eab 17795
fe0895cf 17796if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17797 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17798echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17799if test "${wx_cv_lib_glibc21+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802
17803 cat >conftest.$ac_ext <<_ACEOF
17804#line $LINENO "configure"
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
21d1c967 17810#include <features.h>
e6cc62c6
VS
17811int
17812main ()
17813{
ab9b9eab 17814
21d1c967
GD
17815 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17816 #error not glibc2.1
17817 #endif
e6cc62c6
VS
17818
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext
17824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835
21d1c967 17836 wx_cv_lib_glibc21=yes
e6cc62c6 17837
698dcdb6 17838else
e6cc62c6
VS
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842
21d1c967 17843 wx_cv_lib_glibc21=no
e6cc62c6
VS
17844
17845
247f5006 17846fi
e6cc62c6 17847rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17848
e6cc62c6
VS
17849fi
17850echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17851echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17852 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17853 cat >>confdefs.h <<\_ACEOF
21d1c967 17854#define wxHAVE_GLIBC2 1
e6cc62c6 17855_ACEOF
1e487827 17856
90dd450c 17857 fi
ab9b9eab
VZ
17858fi
17859
5c0a20c3
VZ
17860if test "x$wx_cv_lib_glibc21" = "xyes"; then
17861 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17862 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17863#define _GNU_SOURCE 1
e6cc62c6 17864_ACEOF
5c0a20c3
VZ
17865
17866 fi
17867fi
17868
8284b0c5
MB
17869
17870
21d1c967
GD
17871REGEX_INCLUDE=
17872if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17873 cat >>confdefs.h <<\_ACEOF
21d1c967 17874#define wxUSE_REGEX 1
e6cc62c6 17875_ACEOF
698dcdb6 17876
8284b0c5 17877
21d1c967 17878 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17879 if test "${ac_cv_header_regex_h+set}" = set; then
17880 echo "$as_me:$LINENO: checking for regex.h" >&5
17881echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17882if test "${ac_cv_header_regex_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884fi
17885echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17886echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17887else
17888 # Is the header compilable?
17889echo "$as_me:$LINENO: checking regex.h usability" >&5
17890echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17891cat >conftest.$ac_ext <<_ACEOF
17892#line $LINENO "configure"
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898$ac_includes_default
247f5006 17899#include <regex.h>
e6cc62c6
VS
17900_ACEOF
17901rm -f conftest.$ac_objext
17902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_header_compiler=yes
17914else
17915 echo "$as_me: failed program was:" >&5
17916sed 's/^/| /' conftest.$ac_ext >&5
17917
17918ac_header_compiler=no
17919fi
17920rm -f conftest.$ac_objext conftest.$ac_ext
17921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17922echo "${ECHO_T}$ac_header_compiler" >&6
17923
17924# Is the header present?
17925echo "$as_me:$LINENO: checking regex.h presence" >&5
17926echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17927cat >conftest.$ac_ext <<_ACEOF
17928#line $LINENO "configure"
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934#include <regex.h>
17935_ACEOF
17936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } >/dev/null; then
17944 if test -s conftest.err; then
17945 ac_cpp_err=$ac_c_preproc_warn_flag
17946 else
17947 ac_cpp_err=
17948 fi
17949else
17950 ac_cpp_err=yes
17951fi
17952if test -z "$ac_cpp_err"; then
17953 ac_header_preproc=yes
17954else
17955 echo "$as_me: failed program was:" >&5
17956sed 's/^/| /' conftest.$ac_ext >&5
17957
17958 ac_header_preproc=no
17959fi
17960rm -f conftest.err conftest.$ac_ext
17961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17962echo "${ECHO_T}$ac_header_preproc" >&6
17963
17964# So? What about this header?
17965case $ac_header_compiler:$ac_header_preproc in
17966 yes:no )
17967 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17968echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17970echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17971 (
17972 cat <<\_ASBOX
17973## ------------------------------------ ##
17974## Report this to bug-autoconf@gnu.org. ##
17975## ------------------------------------ ##
17976_ASBOX
17977 ) |
17978 sed "s/^/$as_me: WARNING: /" >&2
17979 ;;
17980 no:yes )
17981 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17982echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17984echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17986echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17987 (
17988 cat <<\_ASBOX
17989## ------------------------------------ ##
17990## Report this to bug-autoconf@gnu.org. ##
17991## ------------------------------------ ##
17992_ASBOX
17993 ) |
17994 sed "s/^/$as_me: WARNING: /" >&2
17995 ;;
17996esac
17997echo "$as_me:$LINENO: checking for regex.h" >&5
17998echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17999if test "${ac_cv_header_regex_h+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001else
18002 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18003fi
e6cc62c6
VS
18004echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18005echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18006
698dcdb6 18007fi
e6cc62c6
VS
18008if test $ac_cv_header_regex_h = yes; then
18009
18010for ac_func in regcomp
21d1c967 18011do
e6cc62c6
VS
18012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18013echo "$as_me:$LINENO: checking for $ac_func" >&5
18014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18015if eval "test \"\${$as_ac_var+set}\" = set"; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017else
18018 cat >conftest.$ac_ext <<_ACEOF
18019#line $LINENO "configure"
18020/* confdefs.h. */
18021_ACEOF
18022cat confdefs.h >>conftest.$ac_ext
18023cat >>conftest.$ac_ext <<_ACEOF
18024/* end confdefs.h. */
a0b9e27f 18025/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18026 which can conflict with char $ac_func (); below.
18027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18028 <limits.h> exists even on freestanding compilers. */
18029#ifdef __STDC__
18030# include <limits.h>
18031#else
18032# include <assert.h>
18033#endif
21d1c967 18034/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18035#ifdef __cplusplus
18036extern "C"
18037{
18038#endif
21d1c967 18039/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18040 builtin and then its argument prototype would still apply. */
18041char $ac_func ();
21d1c967
GD
18042/* The GNU C library defines this for functions which it implements
18043 to always fail with ENOSYS. Some functions are actually named
18044 something starting with __ and the normal name is an alias. */
18045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18046choke me
18047#else
e6cc62c6
VS
18048char (*f) () = $ac_func;
18049#endif
18050#ifdef __cplusplus
18051}
21d1c967 18052#endif
90dd450c 18053
e6cc62c6
VS
18054int
18055main ()
18056{
18057return f != $ac_func;
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext conftest$ac_exeext
18063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18064 (eval $ac_link) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -s conftest$ac_exeext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 eval "$as_ac_var=yes"
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079eval "$as_ac_var=no"
18080fi
18081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18082fi
18083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18085if test `eval echo '${'$as_ac_var'}'` = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18088_ACEOF
5c6fa7d2 18089
698dcdb6 18090fi
21d1c967
GD
18091done
18092
ab9b9eab
VZ
18093fi
18094
8284b0c5 18095
e6cc62c6 18096
21d1c967
GD
18097 if test "x$ac_cv_func_regcomp" != "xyes"; then
18098 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18099 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18100echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18101 { (exit 1); exit 1; }; }
21d1c967 18102 else
e6cc62c6
VS
18103 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18104echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18105 wxUSE_REGEX=builtin
18106 fi
18107 else
18108 wxUSE_REGEX=sys
18109 fi
ab9b9eab 18110 fi
90dd450c 18111
21d1c967
GD
18112 if test "$wxUSE_REGEX" = "builtin" ; then
18113 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18114 fi
21d1c967 18115fi
90dd450c 18116
8284b0c5 18117
21d1c967
GD
18118ZLIB_INCLUDE=
18119ZLIB_LINK=
18120if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18121 cat >>confdefs.h <<\_ACEOF
21d1c967 18122#define wxUSE_ZLIB 1
e6cc62c6 18123_ACEOF
21d1c967 18124
8284b0c5 18125
21d1c967 18126 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18127 if test "$USE_DARWIN" = 1; then
18128 system_zlib_h_ok="yes"
18129 else
e6cc62c6
VS
18130 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18131echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18132if test "${ac_cv_header_zlib_h+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18134else
18135 if test "$cross_compiling" = yes; then
89e6bf6d 18136 unset ac_cv_header_zlib_h
e6cc62c6 18137
d643b80e 18138else
e6cc62c6
VS
18139 cat >conftest.$ac_ext <<_ACEOF
18140#line $LINENO "configure"
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146
ef33c576 18147 #include <zlib.h>
d775acfa 18148 #include <stdio.h>
d643b80e 18149
d775acfa
VZ
18150 int main()
18151 {
18152 FILE *f=fopen("conftestval", "w");
18153 if (!f) exit(1);
18154 fprintf(f, "%s",
18155 ZLIB_VERSION[0] == '1' &&
18156 (ZLIB_VERSION[2] > '1' ||
18157 (ZLIB_VERSION[2] == '1' &&
18158 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18159 exit(0);
18160 }
e6cc62c6
VS
18161
18162_ACEOF
18163rm -f conftest$ac_exeext
18164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165 (eval $ac_link) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
d643b80e
VZ
18174 ac_cv_header_zlib_h=`cat conftestval`
18175else
e6cc62c6
VS
18176 echo "$as_me: program exited with status $ac_status" >&5
18177echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180( exit $ac_status )
18181ac_cv_header_zlib_h=no
d643b80e 18182fi
e6cc62c6 18183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18184fi
18185
d643b80e 18186fi
e6cc62c6
VS
18187echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18188echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18189 if test "${ac_cv_header_zlib_h+set}" = set; then
18190 echo "$as_me:$LINENO: checking for zlib.h" >&5
18191echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18192if test "${ac_cv_header_zlib_h+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194fi
18195echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18196echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18197else
e6cc62c6
VS
18198 # Is the header compilable?
18199echo "$as_me:$LINENO: checking zlib.h usability" >&5
18200echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18201cat >conftest.$ac_ext <<_ACEOF
18202#line $LINENO "configure"
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208$ac_includes_default
89e6bf6d 18209#include <zlib.h>
e6cc62c6
VS
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_header_compiler=yes
18224else
18225 echo "$as_me: failed program was:" >&5
18226sed 's/^/| /' conftest.$ac_ext >&5
18227
18228ac_header_compiler=no
18229fi
18230rm -f conftest.$ac_objext conftest.$ac_ext
18231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18232echo "${ECHO_T}$ac_header_compiler" >&6
18233
18234# Is the header present?
18235echo "$as_me:$LINENO: checking zlib.h presence" >&5
18236echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18237cat >conftest.$ac_ext <<_ACEOF
18238#line $LINENO "configure"
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244#include <zlib.h>
18245_ACEOF
18246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } >/dev/null; then
18254 if test -s conftest.err; then
18255 ac_cpp_err=$ac_c_preproc_warn_flag
18256 else
18257 ac_cpp_err=
18258 fi
18259else
18260 ac_cpp_err=yes
18261fi
18262if test -z "$ac_cpp_err"; then
18263 ac_header_preproc=yes
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 ac_header_preproc=no
18269fi
18270rm -f conftest.err conftest.$ac_ext
18271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18272echo "${ECHO_T}$ac_header_preproc" >&6
18273
18274# So? What about this header?
18275case $ac_header_compiler:$ac_header_preproc in
18276 yes:no )
18277 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18278echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18280echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18281 (
18282 cat <<\_ASBOX
18283## ------------------------------------ ##
18284## Report this to bug-autoconf@gnu.org. ##
18285## ------------------------------------ ##
18286_ASBOX
18287 ) |
18288 sed "s/^/$as_me: WARNING: /" >&2
18289 ;;
18290 no:yes )
18291 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18292echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18293 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18294echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18295 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18296echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18297 (
18298 cat <<\_ASBOX
18299## ------------------------------------ ##
18300## Report this to bug-autoconf@gnu.org. ##
18301## ------------------------------------ ##
18302_ASBOX
18303 ) |
18304 sed "s/^/$as_me: WARNING: /" >&2
18305 ;;
18306esac
18307echo "$as_me:$LINENO: checking for zlib.h" >&5
18308echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18309if test "${ac_cv_header_zlib_h+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18311else
e6cc62c6
VS
18312 ac_cv_header_zlib_h=$ac_header_preproc
18313fi
18314echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18315echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18316
89e6bf6d
VZ
18317fi
18318
d643b80e 18319
e6cc62c6 18320
d775acfa
VZ
18321 system_zlib_h_ok=$ac_cv_header_zlib_h
18322 fi
18323
18324 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18325 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18326echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18327if test "${ac_cv_lib_z_deflate+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18329else
e6cc62c6 18330 ac_check_lib_save_LIBS=$LIBS
21d1c967 18331LIBS="-lz $LIBS"
e6cc62c6
VS
18332cat >conftest.$ac_ext <<_ACEOF
18333#line $LINENO "configure"
18334/* confdefs.h. */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h. */
18339
21d1c967 18340/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18341#ifdef __cplusplus
18342extern "C"
18343#endif
21d1c967 18344/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18345 builtin and then its argument prototype would still apply. */
18346char deflate ();
18347int
18348main ()
18349{
18350deflate ();
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext conftest$ac_exeext
18356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -s conftest$ac_exeext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 ac_cv_lib_z_deflate=yes
18368else
18369 echo "$as_me: failed program was:" >&5
18370sed 's/^/| /' conftest.$ac_ext >&5
18371
18372ac_cv_lib_z_deflate=no
18373fi
18374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18375LIBS=$ac_check_lib_save_LIBS
18376fi
18377echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18378echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18379if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18380 ZLIB_LINK=" -lz"
a0b9e27f 18381fi
698dcdb6 18382
d643b80e 18383 fi
247f5006 18384
21d1c967
GD
18385 if test "x$ZLIB_LINK" = "x" ; then
18386 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18387 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18388echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18389 { (exit 1); exit 1; }; }
21d1c967 18390 else
e6cc62c6
VS
18391 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18392echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18393 wxUSE_ZLIB=builtin
18394 fi
18395 else
18396 wxUSE_ZLIB=sys
18397 fi
18398 fi
18399
18400 if test "$wxUSE_ZLIB" = "builtin" ; then
18401 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18402 fi
ab9b9eab
VZ
18403fi
18404
8284b0c5 18405
21d1c967
GD
18406PNG_INCLUDE=
18407PNG_LINK=
18408if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18409 cat >>confdefs.h <<\_ACEOF
21d1c967 18410#define wxUSE_LIBPNG 1
e6cc62c6 18411_ACEOF
90dd450c 18412
8284b0c5 18413
21d1c967 18414 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18415 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18416echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18417 wxUSE_LIBPNG=sys
18418 fi
90dd450c 18419
21d1c967 18420 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18421 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18422echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18423 wxUSE_LIBPNG=builtin
18424 fi
18425
18426 if test "$wxUSE_MGL" != 1 ; then
18427 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18428 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18429echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18430if test "${ac_cv_header_png_h+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18432else
18433 if test "$cross_compiling" = yes; then
89e6bf6d 18434 unset ac_cv_header_png_h
e6cc62c6 18435
5d3f766d 18436else
e6cc62c6
VS
18437 cat >conftest.$ac_ext <<_ACEOF
18438#line $LINENO "configure"
18439/* confdefs.h. */
18440_ACEOF
18441cat confdefs.h >>conftest.$ac_ext
18442cat >>conftest.$ac_ext <<_ACEOF
18443/* end confdefs.h. */
18444
ef33c576 18445 #include <png.h>
5d3f766d
VZ
18446 #include <stdio.h>
18447
18448 int main()
18449 {
18450 FILE *f=fopen("conftestval", "w");
18451 if (!f) exit(1);
18452 fprintf(f, "%s",
18453 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18454 exit(0);
18455 }
e6cc62c6
VS
18456
18457_ACEOF
18458rm -f conftest$ac_exeext
18459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
5d3f766d
VZ
18469 ac_cv_header_png_h=`cat conftestval`
18470else
e6cc62c6
VS
18471 echo "$as_me: program exited with status $ac_status" >&5
18472echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475( exit $ac_status )
18476ac_cv_header_png_h=no
5d3f766d 18477fi
e6cc62c6 18478rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18479fi
18480
5d3f766d 18481fi
e6cc62c6
VS
18482echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18483echo "${ECHO_T}$ac_cv_header_png_h" >&6
18484 if test "${ac_cv_header_png_h+set}" = set; then
18485 echo "$as_me:$LINENO: checking for png.h" >&5
18486echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18487if test "${ac_cv_header_png_h+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489fi
18490echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18491echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18492else
e6cc62c6
VS
18493 # Is the header compilable?
18494echo "$as_me:$LINENO: checking png.h usability" >&5
18495echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18496cat >conftest.$ac_ext <<_ACEOF
18497#line $LINENO "configure"
18498/* confdefs.h. */
18499_ACEOF
18500cat confdefs.h >>conftest.$ac_ext
18501cat >>conftest.$ac_ext <<_ACEOF
18502/* end confdefs.h. */
18503$ac_includes_default
89e6bf6d 18504#include <png.h>
e6cc62c6
VS
18505_ACEOF
18506rm -f conftest.$ac_objext
18507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -s conftest.$ac_objext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_header_compiler=yes
18519else
18520 echo "$as_me: failed program was:" >&5
18521sed 's/^/| /' conftest.$ac_ext >&5
18522
18523ac_header_compiler=no
18524fi
18525rm -f conftest.$ac_objext conftest.$ac_ext
18526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18527echo "${ECHO_T}$ac_header_compiler" >&6
18528
18529# Is the header present?
18530echo "$as_me:$LINENO: checking png.h presence" >&5
18531echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18532cat >conftest.$ac_ext <<_ACEOF
18533#line $LINENO "configure"
18534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
18539#include <png.h>
18540_ACEOF
18541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } >/dev/null; then
18549 if test -s conftest.err; then
18550 ac_cpp_err=$ac_c_preproc_warn_flag
18551 else
18552 ac_cpp_err=
18553 fi
18554else
18555 ac_cpp_err=yes
18556fi
18557if test -z "$ac_cpp_err"; then
18558 ac_header_preproc=yes
18559else
18560 echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 ac_header_preproc=no
18564fi
18565rm -f conftest.err conftest.$ac_ext
18566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18567echo "${ECHO_T}$ac_header_preproc" >&6
18568
18569# So? What about this header?
18570case $ac_header_compiler:$ac_header_preproc in
18571 yes:no )
18572 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18573echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18574 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18575echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18576 (
18577 cat <<\_ASBOX
18578## ------------------------------------ ##
18579## Report this to bug-autoconf@gnu.org. ##
18580## ------------------------------------ ##
18581_ASBOX
18582 ) |
18583 sed "s/^/$as_me: WARNING: /" >&2
18584 ;;
18585 no:yes )
18586 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18587echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18589echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18590 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18591echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18592 (
18593 cat <<\_ASBOX
18594## ------------------------------------ ##
18595## Report this to bug-autoconf@gnu.org. ##
18596## ------------------------------------ ##
18597_ASBOX
18598 ) |
18599 sed "s/^/$as_me: WARNING: /" >&2
18600 ;;
18601esac
18602echo "$as_me:$LINENO: checking for png.h" >&5
18603echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18604if test "${ac_cv_header_png_h+set}" = set; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18606else
e6cc62c6
VS
18607 ac_cv_header_png_h=$ac_header_preproc
18608fi
18609echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18610echo "${ECHO_T}$ac_cv_header_png_h" >&6
18611
89e6bf6d
VZ
18612fi
18613
5d3f766d 18614
e6cc62c6 18615
5d3f766d 18616 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18617 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18618echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18619if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18621else
e6cc62c6 18622 ac_check_lib_save_LIBS=$LIBS
21d1c967 18623LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18624cat >conftest.$ac_ext <<_ACEOF
18625#line $LINENO "configure"
18626/* confdefs.h. */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h. */
18631
21d1c967 18632/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18633#ifdef __cplusplus
18634extern "C"
18635#endif
21d1c967 18636/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18637 builtin and then its argument prototype would still apply. */
18638char png_check_sig ();
18639int
18640main ()
18641{
18642png_check_sig ();
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext conftest$ac_exeext
18648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18649 (eval $ac_link) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_cv_lib_png_png_check_sig=yes
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664ac_cv_lib_png_png_check_sig=no
18665fi
18666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18667LIBS=$ac_check_lib_save_LIBS
18668fi
18669echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18670echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18671if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18672 PNG_LINK=" -lpng"
a0b9e27f 18673fi
90dd450c 18674
5d3f766d 18675 fi
247f5006 18676
21d1c967
GD
18677 if test "x$PNG_LINK" = "x" ; then
18678 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18679 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18680echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18681 { (exit 1); exit 1; }; }
21d1c967 18682 else
e6cc62c6
VS
18683 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18684echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18685 wxUSE_LIBPNG=builtin
18686 fi
18687 else
2b5f62a0 18688 wxUSE_LIBPNG=sys
21d1c967
GD
18689 fi
18690 fi
18691 fi
90dd450c 18692
21d1c967
GD
18693 if test "$wxUSE_LIBPNG" = "builtin" ; then
18694 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18695 fi
90dd450c 18696
21d1c967 18697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18698fi
18699
8284b0c5 18700
21d1c967
GD
18701JPEG_INCLUDE=
18702JPEG_LINK=
18703if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18704 cat >>confdefs.h <<\_ACEOF
21d1c967 18705#define wxUSE_LIBJPEG 1
e6cc62c6 18706_ACEOF
90dd450c 18707
8284b0c5 18708
21d1c967 18709 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18710 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18711echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18712 wxUSE_LIBJPEG=sys
18713 fi
90dd450c 18714
21d1c967
GD
18715 if test "$wxUSE_MGL" != 1 ; then
18716 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18717 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18718echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18719 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721else
18722 cat >conftest.$ac_ext <<_ACEOF
18723#line $LINENO "configure"
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
90dd450c 18729
21d1c967
GD
18730 #undef HAVE_STDLIB_H
18731 #include <stdio.h>
18732 #include <jpeglib.h>
90dd450c 18733
e6cc62c6
VS
18734int
18735main ()
18736{
18737
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
21d1c967 18755 ac_cv_header_jpeglib_h=yes
90dd450c 18756else
e6cc62c6
VS
18757 echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760ac_cv_header_jpeglib_h=no
18761
90dd450c 18762fi
e6cc62c6
VS
18763rm -f conftest.$ac_objext conftest.$ac_ext
18764
90dd450c
VZ
18765fi
18766
e6cc62c6
VS
18767 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18768echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18769
21d1c967 18770 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18771 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18772echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18773if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18775else
e6cc62c6 18776 ac_check_lib_save_LIBS=$LIBS
21d1c967 18777LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18778cat >conftest.$ac_ext <<_ACEOF
18779#line $LINENO "configure"
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785
21d1c967 18786/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18787#ifdef __cplusplus
18788extern "C"
18789#endif
21d1c967 18790/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18791 builtin and then its argument prototype would still apply. */
18792char jpeg_read_header ();
18793int
18794main ()
18795{
18796jpeg_read_header ();
18797 ;
18798 return 0;
18799}
18800_ACEOF
18801rm -f conftest.$ac_objext conftest$ac_exeext
18802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18803 (eval $ac_link) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_lib_jpeg_jpeg_read_header=yes
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818ac_cv_lib_jpeg_jpeg_read_header=no
18819fi
18820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18821LIBS=$ac_check_lib_save_LIBS
18822fi
18823echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18824echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18825if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18826 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18827fi
18828
21d1c967 18829 fi
90dd450c 18830
21d1c967
GD
18831 if test "x$JPEG_LINK" = "x" ; then
18832 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18833 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18834echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18835 { (exit 1); exit 1; }; }
21d1c967 18836 else
e6cc62c6
VS
18837 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18838echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18839 wxUSE_LIBJPEG=builtin
18840 fi
18841 else
18842 wxUSE_LIBJPEG=sys
18843 fi
18844 fi
18845 fi
90dd450c 18846
21d1c967
GD
18847 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18848 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18849 fi
18850fi
90dd450c 18851
8284b0c5 18852
21d1c967
GD
18853TIFF_INCLUDE=
18854TIFF_LINK=
2b5f62a0 18855TIFF_PREREQ_LINKS=-lm
21d1c967 18856if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18857 cat >>confdefs.h <<\_ACEOF
21d1c967 18858#define wxUSE_LIBTIFF 1
e6cc62c6 18859_ACEOF
21d1c967 18860
8284b0c5 18861
21d1c967 18862 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18863 if test "$wxUSE_LIBJPEG" = "sys"; then
18864 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18865 fi
18866 if test "$wxUSE_ZLIB" = "sys"; then
18867 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18868 fi
e6cc62c6
VS
18869 if test "${ac_cv_header_tiffio_h+set}" = set; then
18870 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18871echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18872if test "${ac_cv_header_tiffio_h+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874fi
18875echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18876echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18877else
18878 # Is the header compilable?
18879echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18880echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18881cat >conftest.$ac_ext <<_ACEOF
18882#line $LINENO "configure"
18883/* confdefs.h. */
18884_ACEOF
18885cat confdefs.h >>conftest.$ac_ext
18886cat >>conftest.$ac_ext <<_ACEOF
18887/* end confdefs.h. */
18888$ac_includes_default
247f5006 18889#include <tiffio.h>
e6cc62c6
VS
18890_ACEOF
18891rm -f conftest.$ac_objext
18892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18893 (eval $ac_compile) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -s conftest.$ac_objext'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; }; then
18903 ac_header_compiler=yes
18904else
18905 echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908ac_header_compiler=no
18909fi
18910rm -f conftest.$ac_objext conftest.$ac_ext
18911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18912echo "${ECHO_T}$ac_header_compiler" >&6
18913
18914# Is the header present?
18915echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18916echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18917cat >conftest.$ac_ext <<_ACEOF
18918#line $LINENO "configure"
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924#include <tiffio.h>
18925_ACEOF
18926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } >/dev/null; then
18934 if test -s conftest.err; then
18935 ac_cpp_err=$ac_c_preproc_warn_flag
18936 else
18937 ac_cpp_err=
18938 fi
18939else
18940 ac_cpp_err=yes
18941fi
18942if test -z "$ac_cpp_err"; then
18943 ac_header_preproc=yes
18944else
18945 echo "$as_me: failed program was:" >&5
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
18948 ac_header_preproc=no
18949fi
18950rm -f conftest.err conftest.$ac_ext
18951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18952echo "${ECHO_T}$ac_header_preproc" >&6
18953
18954# So? What about this header?
18955case $ac_header_compiler:$ac_header_preproc in
18956 yes:no )
18957 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18958echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18960echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18961 (
18962 cat <<\_ASBOX
18963## ------------------------------------ ##
18964## Report this to bug-autoconf@gnu.org. ##
18965## ------------------------------------ ##
18966_ASBOX
18967 ) |
18968 sed "s/^/$as_me: WARNING: /" >&2
18969 ;;
18970 no:yes )
18971 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18972echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18974echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18976echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18977 (
18978 cat <<\_ASBOX
18979## ------------------------------------ ##
18980## Report this to bug-autoconf@gnu.org. ##
18981## ------------------------------------ ##
18982_ASBOX
18983 ) |
18984 sed "s/^/$as_me: WARNING: /" >&2
18985 ;;
18986esac
18987echo "$as_me:$LINENO: checking for tiffio.h" >&5
18988echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18989if test "${ac_cv_header_tiffio_h+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18993fi
e6cc62c6
VS
18994echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18995echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18996
21d1c967 18997fi
e6cc62c6 18998if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
18999
19000 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19001echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19002if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19004else
e6cc62c6 19005 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19006LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19007cat >conftest.$ac_ext <<_ACEOF
19008#line $LINENO "configure"
19009/* confdefs.h. */
19010_ACEOF
19011cat confdefs.h >>conftest.$ac_ext
19012cat >>conftest.$ac_ext <<_ACEOF
19013/* end confdefs.h. */
19014
ab9b9eab 19015/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19016#ifdef __cplusplus
19017extern "C"
19018#endif
ab9b9eab 19019/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19020 builtin and then its argument prototype would still apply. */
19021char TIFFError ();
19022int
19023main ()
19024{
19025TIFFError ();
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext conftest$ac_exeext
19031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032 (eval $ac_link) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_tiff_TIFFError=yes
19043else
19044 echo "$as_me: failed program was:" >&5
19045sed 's/^/| /' conftest.$ac_ext >&5
19046
19047ac_cv_lib_tiff_TIFFError=no
19048fi
19049rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19050LIBS=$ac_check_lib_save_LIBS
19051fi
19052echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19053echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19054if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19055 TIFF_LINK=" -ltiff"
a0b9e27f 19056fi
cd6d6d5b 19057
e6cc62c6 19058
0e012a93 19059
a0b9e27f 19060fi
8284b0c5 19061
247f5006 19062
e6cc62c6 19063
21d1c967
GD
19064 if test "x$TIFF_LINK" = "x" ; then
19065 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19066 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19067echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19068 { (exit 1); exit 1; }; }
90dd450c 19069 else
e6cc62c6
VS
19070 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19071echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19072 wxUSE_LIBTIFF=builtin
d8356fa3 19073 fi
d8356fa3 19074 else
21d1c967 19075 wxUSE_LIBTIFF=sys
d8356fa3 19076 fi
21d1c967 19077 fi
d8356fa3 19078
21d1c967
GD
19079 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19080 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19081 fi
21d1c967 19082fi
10f2d63a 19083
8284b0c5 19084
672abd7a 19085if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19086 wxUSE_XML=yes
672abd7a
VS
19087 cat >>confdefs.h <<\_ACEOF
19088#define wxUSE_EXPAT 1
19089_ACEOF
19090
19091 cat >>confdefs.h <<\_ACEOF
19092#define wxUSE_XML 1
19093_ACEOF
19094
19095
19096 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19097 if test "${ac_cv_header_expat_h+set}" = set; then
19098 echo "$as_me:$LINENO: checking for expat.h" >&5
19099echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19100if test "${ac_cv_header_expat_h+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102fi
19103echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19104echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19105else
19106 # Is the header compilable?
19107echo "$as_me:$LINENO: checking expat.h usability" >&5
19108echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19109cat >conftest.$ac_ext <<_ACEOF
19110#line $LINENO "configure"
19111/* confdefs.h. */
19112_ACEOF
19113cat confdefs.h >>conftest.$ac_ext
19114cat >>conftest.$ac_ext <<_ACEOF
19115/* end confdefs.h. */
19116$ac_includes_default
19117#include <expat.h>
19118_ACEOF
19119rm -f conftest.$ac_objext
19120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try='test -s conftest.$ac_objext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_header_compiler=yes
19132else
19133 echo "$as_me: failed program was:" >&5
19134sed 's/^/| /' conftest.$ac_ext >&5
19135
19136ac_header_compiler=no
19137fi
19138rm -f conftest.$ac_objext conftest.$ac_ext
19139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19140echo "${ECHO_T}$ac_header_compiler" >&6
19141
19142# Is the header present?
19143echo "$as_me:$LINENO: checking expat.h presence" >&5
19144echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19145cat >conftest.$ac_ext <<_ACEOF
19146#line $LINENO "configure"
19147/* confdefs.h. */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h. */
19152#include <expat.h>
19153_ACEOF
19154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } >/dev/null; then
19162 if test -s conftest.err; then
19163 ac_cpp_err=$ac_c_preproc_warn_flag
19164 else
19165 ac_cpp_err=
19166 fi
19167else
19168 ac_cpp_err=yes
19169fi
19170if test -z "$ac_cpp_err"; then
19171 ac_header_preproc=yes
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 ac_header_preproc=no
19177fi
19178rm -f conftest.err conftest.$ac_ext
19179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19180echo "${ECHO_T}$ac_header_preproc" >&6
19181
19182# So? What about this header?
19183case $ac_header_compiler:$ac_header_preproc in
19184 yes:no )
19185 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19186echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19188echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19189 (
19190 cat <<\_ASBOX
19191## ------------------------------------ ##
19192## Report this to bug-autoconf@gnu.org. ##
19193## ------------------------------------ ##
19194_ASBOX
19195 ) |
19196 sed "s/^/$as_me: WARNING: /" >&2
19197 ;;
19198 no:yes )
19199 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19200echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19202echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19203 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19204echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19205 (
19206 cat <<\_ASBOX
19207## ------------------------------------ ##
19208## Report this to bug-autoconf@gnu.org. ##
19209## ------------------------------------ ##
19210_ASBOX
19211 ) |
19212 sed "s/^/$as_me: WARNING: /" >&2
19213 ;;
19214esac
19215echo "$as_me:$LINENO: checking for expat.h" >&5
19216echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19217if test "${ac_cv_header_expat_h+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219else
19220 ac_cv_header_expat_h=$ac_header_preproc
19221fi
19222echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19223echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19224
19225fi
5f0b6dff
VS
19226if test $ac_cv_header_expat_h = yes; then
19227 found_expat_h=1
19228fi
19229
19230
19231 if test "x$found_expat_h" = "x1"; then
19232 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19233echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19234if test "${wx_cv_expat_is_not_broken+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237
19238
672abd7a 19239
5f0b6dff
VS
19240 ac_ext=cc
19241ac_cpp='$CXXCPP $CPPFLAGS'
19242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19245
19246 cat >conftest.$ac_ext <<_ACEOF
19247#line $LINENO "configure"
19248/* confdefs.h. */
19249_ACEOF
19250cat confdefs.h >>conftest.$ac_ext
19251cat >>conftest.$ac_ext <<_ACEOF
19252/* end confdefs.h. */
19253#include <expat.h>
19254int
19255main ()
19256{
672abd7a 19257
5f0b6dff
VS
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262rm -f conftest.$ac_objext
19263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19264 (eval $ac_compile) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -s conftest.$ac_objext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 wx_cv_expat_is_not_broken=yes
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279wx_cv_expat_is_not_broken=no
19280
19281fi
19282rm -f conftest.$ac_objext conftest.$ac_ext
19283 ac_ext=c
19284ac_cpp='$CPP $CPPFLAGS'
19285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287ac_compiler_gnu=$ac_cv_c_compiler_gnu
19288
19289
19290
19291fi
19292echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19293echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19294 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19295 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19296echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19297if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300 ac_check_lib_save_LIBS=$LIBS
19301LIBS="-lexpat $LIBS"
19302cat >conftest.$ac_ext <<_ACEOF
19303#line $LINENO "configure"
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
19309
19310/* Override any gcc2 internal prototype to avoid an error. */
19311#ifdef __cplusplus
19312extern "C"
19313#endif
19314/* We use char because int might match the return type of a gcc2
19315 builtin and then its argument prototype would still apply. */
19316char XML_ParserCreate ();
19317int
19318main ()
19319{
19320XML_ParserCreate ();
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext conftest$ac_exeext
19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -s conftest$ac_exeext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_cv_lib_expat_XML_ParserCreate=yes
19338else
19339 echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
19342ac_cv_lib_expat_XML_ParserCreate=no
19343fi
19344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19345LIBS=$ac_check_lib_save_LIBS
19346fi
19347echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19348echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19349if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19350 EXPAT_LINK=" -lexpat"
19351fi
19352
5f0b6dff 19353 fi
672abd7a
VS
19354 fi
19355 if test "x$EXPAT_LINK" = "x" ; then
19356 if test "$wxUSE_EXPAT" = "sys" ; then
19357 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19358echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19359 { (exit 1); exit 1; }; }
19360 else
19361 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19362echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19363 wxUSE_EXPAT=builtin
19364 fi
19365 else
19366 wxUSE_EXPAT=sys
19367 fi
19368 fi
19369 if test "$wxUSE_EXPAT" = "builtin" ; then
19370
19371
19372subdirs="$subdirs src/expat"
19373
19374 fi
19375fi
19376
19377
19378
21d1c967 19379AFMINSTALL=
2b5f62a0 19380WIN32INSTALL=
90dd450c 19381
21d1c967
GD
19382TOOLKIT=
19383TOOLKIT_INCLUDE=
19384WIDGET_SET=
19385
19386if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19387
19388for ac_header in w32api.h
21d1c967 19389do
e6cc62c6
VS
19390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19391if eval "test \"\${$as_ac_Header+set}\" = set"; then
19392 echo "$as_me:$LINENO: checking for $ac_header" >&5
19393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19394if eval "test \"\${$as_ac_Header+set}\" = set"; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396fi
19397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19399else
19400 # Is the header compilable?
19401echo "$as_me:$LINENO: checking $ac_header usability" >&5
19402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19403cat >conftest.$ac_ext <<_ACEOF
19404#line $LINENO "configure"
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410$ac_includes_default
19411#include <$ac_header>
19412_ACEOF
19413rm -f conftest.$ac_objext
19414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_header_compiler=yes
19426else
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
19430ac_header_compiler=no
19431fi
19432rm -f conftest.$ac_objext conftest.$ac_ext
19433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19434echo "${ECHO_T}$ac_header_compiler" >&6
19435
19436# Is the header present?
19437echo "$as_me:$LINENO: checking $ac_header presence" >&5
19438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19439cat >conftest.$ac_ext <<_ACEOF
19440#line $LINENO "configure"
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446#include <$ac_header>
19447_ACEOF
19448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } >/dev/null; then
19456 if test -s conftest.err; then
19457 ac_cpp_err=$ac_c_preproc_warn_flag
19458 else
19459 ac_cpp_err=
19460 fi
19461else
19462 ac_cpp_err=yes
19463fi
19464if test -z "$ac_cpp_err"; then
19465 ac_header_preproc=yes
19466else
19467 echo "$as_me: failed program was:" >&5
19468sed 's/^/| /' conftest.$ac_ext >&5
19469
19470 ac_header_preproc=no
19471fi
19472rm -f conftest.err conftest.$ac_ext
19473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19474echo "${ECHO_T}$ac_header_preproc" >&6
19475
19476# So? What about this header?
19477case $ac_header_compiler:$ac_header_preproc in
19478 yes:no )
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 (
19484 cat <<\_ASBOX
19485## ------------------------------------ ##
19486## Report this to bug-autoconf@gnu.org. ##
19487## ------------------------------------ ##
19488_ASBOX
19489 ) |
19490 sed "s/^/$as_me: WARNING: /" >&2
19491 ;;
19492 no:yes )
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19499 (
19500 cat <<\_ASBOX
19501## ------------------------------------ ##
19502## Report this to bug-autoconf@gnu.org. ##
19503## ------------------------------------ ##
19504_ASBOX
19505 ) |
19506 sed "s/^/$as_me: WARNING: /" >&2
19507 ;;
19508esac
19509echo "$as_me:$LINENO: checking for $ac_header" >&5
19510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19511if eval "test \"\${$as_ac_Header+set}\" = set"; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513else
19514 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19515fi
e6cc62c6
VS
19516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19518
21d1c967 19519fi
e6cc62c6
VS
19520if test `eval echo '${'$as_ac_Header'}'` = yes; then
19521 cat >>confdefs.h <<_ACEOF
19522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19523_ACEOF
19524
21d1c967 19525fi
e6cc62c6 19526
21d1c967 19527done
f79bd02d 19528
e6cc62c6
VS
19529 if test "${ac_cv_header_windows_h+set}" = set; then
19530 echo "$as_me:$LINENO: checking for windows.h" >&5
19531echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19532if test "${ac_cv_header_windows_h+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534fi
19535echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19536echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19537else
19538 # Is the header compilable?
19539echo "$as_me:$LINENO: checking windows.h usability" >&5
19540echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19541cat >conftest.$ac_ext <<_ACEOF
19542#line $LINENO "configure"
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
19548$ac_includes_default
247f5006 19549#include <windows.h>
e6cc62c6
VS
19550_ACEOF
19551rm -f conftest.$ac_objext
19552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19553 (eval $ac_compile) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_header_compiler=yes
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568ac_header_compiler=no
19569fi
19570rm -f conftest.$ac_objext conftest.$ac_ext
19571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19572echo "${ECHO_T}$ac_header_compiler" >&6
19573
19574# Is the header present?
19575echo "$as_me:$LINENO: checking windows.h presence" >&5
19576echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19577cat >conftest.$ac_ext <<_ACEOF
19578#line $LINENO "configure"
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584#include <windows.h>
19585_ACEOF
19586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19588 ac_status=$?
19589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } >/dev/null; then
19594 if test -s conftest.err; then
19595 ac_cpp_err=$ac_c_preproc_warn_flag
19596 else
19597 ac_cpp_err=
19598 fi
19599else
19600 ac_cpp_err=yes
19601fi
19602if test -z "$ac_cpp_err"; then
19603 ac_header_preproc=yes
19604else
19605 echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
19608 ac_header_preproc=no
19609fi
19610rm -f conftest.err conftest.$ac_ext
19611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19612echo "${ECHO_T}$ac_header_preproc" >&6
19613
19614# So? What about this header?
19615case $ac_header_compiler:$ac_header_preproc in
19616 yes:no )
19617 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19618echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19620echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19621 (
19622 cat <<\_ASBOX
19623## ------------------------------------ ##
19624## Report this to bug-autoconf@gnu.org. ##
19625## ------------------------------------ ##
19626_ASBOX
19627 ) |
19628 sed "s/^/$as_me: WARNING: /" >&2
19629 ;;
19630 no:yes )
19631 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19632echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19634echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19636echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19637 (
19638 cat <<\_ASBOX
19639## ------------------------------------ ##
19640## Report this to bug-autoconf@gnu.org. ##
19641## ------------------------------------ ##
19642_ASBOX
19643 ) |
19644 sed "s/^/$as_me: WARNING: /" >&2
19645 ;;
19646esac
19647echo "$as_me:$LINENO: checking for windows.h" >&5
19648echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19649if test "${ac_cv_header_windows_h+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19651else
19652 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19653fi
e6cc62c6
VS
19654echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19655echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19656
90dd450c 19657fi
e6cc62c6 19658if test $ac_cv_header_windows_h = yes; then
21d1c967 19659 :
90dd450c 19660else
21d1c967 19661
e6cc62c6
VS
19662 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19663echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19664 { (exit 1); exit 1; }; }
19665
5c6fa7d2 19666fi
7b4a847f 19667
5c6fa7d2 19668
e6cc62c6 19669
b3dfbbc9 19670 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19671
7bb2947d
MB
19672 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19673 LIBS="$LIBS -loleacc"
19674 fi
19675
21d1c967
GD
19676 case "${host}" in
19677 *-*-cygwin* )
b3dfbbc9 19678 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19679 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19680 esac
f79bd02d 19681
8647bec6
RG
19682 if test "$wxUSE_ODBC" = "sys" ; then
19683 wxUSE_ODBC = "yes"
21d1c967 19684 fi
8647bec6
RG
19685 if test "$wxUSE_ODBC" = "yes" ; then
19686 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19687 cat >>confdefs.h <<\_ACEOF
8647bec6 19688#define wxUSE_ODBC 1
e6cc62c6 19689_ACEOF
f79bd02d 19690
8647bec6 19691 fi
e6cc62c6 19692
21d1c967
GD
19693 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19694 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19695
19696 WIN32INSTALL=win32install
f79bd02d 19697fi
f79bd02d 19698
21d1c967
GD
19699if test "$wxUSE_GUI" = "yes"; then
19700 USE_GUI=1
f79bd02d 19701
21d1c967 19702 GUI_TK_LIBRARY=
f79bd02d 19703
21d1c967
GD
19704 WXGTK12=
19705 WXGTK127=
19706 WXGTK20=
f79bd02d 19707
21d1c967
GD
19708 if test "$wxUSE_MSW" = 1 ; then
19709 TOOLKIT=MSW
19710 GUIDIST=MSW_DIST
ffef10f6
VS
19711
19712 case "${host}" in
19713 *-*-mingw32* )
19714 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19715 esac
f79bd02d
JS
19716 fi
19717
21d1c967 19718 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19719 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19720echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19721
19722 gtk_version_cached=1
e6cc62c6
VS
19723 if test "${wx_cv_lib_gtk+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19725else
e6cc62c6 19726
21d1c967 19727 gtk_version_cached=0
e6cc62c6
VS
19728 echo "$as_me:$LINENO: result: " >&5
19729echo "${ECHO_T}" >&6
f79bd02d 19730
21d1c967
GD
19731 GTK_MODULES=
19732 if test "$wxUSE_THREADS" = "yes"; then
19733 GTK_MODULES=gthread
19734 fi
f79bd02d 19735
2b5f62a0 19736 wx_cv_lib_gtk=
21d1c967
GD
19737 if test "x$wxUSE_GTK2" = "xyes"; then
19738 # Check whether --enable-gtktest or --disable-gtktest was given.
19739if test "${enable_gtktest+set}" = set; then
19740 enableval="$enable_gtktest"
e6cc62c6 19741
f79bd02d 19742else
21d1c967 19743 enable_gtktest=yes
e6cc62c6 19744fi;
f79bd02d 19745
21d1c967
GD
19746 pkg_config_args=gtk+-2.0
19747 for module in . $GTK_MODULES
19748 do
19749 case "$module" in
e6cc62c6 19750 gthread)
21d1c967
GD
19751 pkg_config_args="$pkg_config_args gthread-2.0"
19752 ;;
19753 esac
19754 done
19755
19756 no_gtk=""
f79bd02d 19757
21d1c967
GD
19758 # Extract the first word of "pkg-config", so it can be a program name with args.
19759set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19760echo "$as_me:$LINENO: checking for $ac_word" >&5
19761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19762if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19764else
e6cc62c6
VS
19765 case $PKG_CONFIG in
19766 [\\/]* | ?:[\\/]*)
21d1c967
GD
19767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19768 ;;
21d1c967 19769 *)
e6cc62c6
VS
19770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19771for as_dir in $PATH
19772do
19773 IFS=$as_save_IFS
19774 test -z "$as_dir" && as_dir=.
19775 for ac_exec_ext in '' $ac_executable_extensions; do
19776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19779 break 2
19780 fi
19781done
19782done
19783
21d1c967
GD
19784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19785 ;;
19786esac
f79bd02d 19787fi
e6cc62c6
VS
19788PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19789
21d1c967 19790if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19791 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19792echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19793else
e6cc62c6
VS
19794 echo "$as_me:$LINENO: result: no" >&5
19795echo "${ECHO_T}no" >&6
f79bd02d
JS
19796fi
19797
8284b0c5 19798
21d1c967
GD
19799 if test x$PKG_CONFIG != xno ; then
19800 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19801 :
19802 else
19803 echo *** pkg-config too old; version 0.7 or better required.
19804 no_gtk=yes
19805 PKG_CONFIG=no
19806 fi
19807 else
19808 no_gtk=yes
19809 fi
f79bd02d 19810
21d1c967 19811 min_gtk_version=2.0.0
e6cc62c6
VS
19812 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19813echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19814
21d1c967
GD
19815 if test x$PKG_CONFIG != xno ; then
19816 ## don't try to run the test against uninstalled libtool libs
19817 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19818 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19819 enable_gtktest=no
19820 fi
f79bd02d 19821
21d1c967
GD
19822 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19823 :
19824 else
19825 no_gtk=yes
19826 fi
19827 fi
f79bd02d 19828
21d1c967
GD
19829 if test x"$no_gtk" = x ; then
19830 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19831 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19832 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19834 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19836 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19838 if test "x$enable_gtktest" = "xyes" ; then
19839 ac_save_CFLAGS="$CFLAGS"
19840 ac_save_LIBS="$LIBS"
19841 CFLAGS="$CFLAGS $GTK_CFLAGS"
19842 LIBS="$GTK_LIBS $LIBS"
19843 rm -f conf.gtktest
19844 if test "$cross_compiling" = yes; then
19845 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19846else
e6cc62c6
VS
19847 cat >conftest.$ac_ext <<_ACEOF
19848#line $LINENO "configure"
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
f79bd02d 19854
21d1c967
GD
19855#include <gtk/gtk.h>
19856#include <stdio.h>
19857#include <stdlib.h>
f79bd02d 19858
e6cc62c6 19859int
21d1c967
GD
19860main ()
19861{
19862 int major, minor, micro;
19863 char *tmp_version;
f79bd02d 19864
21d1c967 19865 system ("touch conf.gtktest");
f79bd02d 19866
21d1c967
GD
19867 /* HP/UX 9 (%@#!) writes to sscanf strings */
19868 tmp_version = g_strdup("$min_gtk_version");
19869 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19870 printf("%s, bad version string\n", "$min_gtk_version");
19871 exit(1);
19872 }
f79bd02d 19873
21d1c967
GD
19874 if ((gtk_major_version != $gtk_config_major_version) ||
19875 (gtk_minor_version != $gtk_config_minor_version) ||
19876 (gtk_micro_version != $gtk_config_micro_version))
19877 {
e6cc62c6 19878 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19879 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19880 gtk_major_version, gtk_minor_version, gtk_micro_version);
19881 printf ("*** was found! If pkg-config was correct, then it is best\n");
19882 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19883 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19884 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19885 printf("*** required on your system.\n");
19886 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19887 printf("*** to point to the correct configuration files\n");
e6cc62c6 19888 }
21d1c967
GD
19889 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19890 (gtk_minor_version != GTK_MINOR_VERSION) ||
19891 (gtk_micro_version != GTK_MICRO_VERSION))
19892 {
19893 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19894 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19895 printf("*** library (version %d.%d.%d)\n",
19896 gtk_major_version, gtk_minor_version, gtk_micro_version);
19897 }
19898 else
19899 {
19900 if ((gtk_major_version > major) ||
19901 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19902 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19903 {
19904 return 0;
19905 }
19906 else
19907 {
19908 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19909 gtk_major_version, gtk_minor_version, gtk_micro_version);
19910 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19911 major, minor, micro);
19912 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19913 printf("***\n");
19914 printf("*** If you have already installed a sufficiently new version, this error\n");
19915 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19916 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19917 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19918 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19919 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19920 printf("*** so that the correct libraries are found at run-time))\n");
19921 }
19922 }
19923 return 1;
19924}
f79bd02d 19925
e6cc62c6
VS
19926_ACEOF
19927rm -f conftest$ac_exeext
19928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
21d1c967 19938 :
f79bd02d 19939else
e6cc62c6
VS
19940 echo "$as_me: program exited with status $ac_status" >&5
19941echo "$as_me: failed program was:" >&5
19942sed 's/^/| /' conftest.$ac_ext >&5
19943
19944( exit $ac_status )
19945no_gtk=yes
f79bd02d 19946fi
e6cc62c6 19947rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19948fi
21d1c967
GD
19949 CFLAGS="$ac_save_CFLAGS"
19950 LIBS="$ac_save_LIBS"
19951 fi
19952 fi
19953 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19954 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19955echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19956 wx_cv_lib_gtk=2.0
21d1c967 19957 else
e6cc62c6
VS
19958 echo "$as_me:$LINENO: result: no" >&5
19959echo "${ECHO_T}no" >&6
21d1c967
GD
19960 if test "$PKG_CONFIG" = "no" ; then
19961 echo "*** A new enough version of pkg-config was not found."
19962 echo "*** See http://pkgconfig.sourceforge.net"
19963 else
19964 if test -f conf.gtktest ; then
19965 :
19966 else
19967 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19968 ac_save_CFLAGS="$CFLAGS"
19969 ac_save_LIBS="$LIBS"
21d1c967
GD
19970 CFLAGS="$CFLAGS $GTK_CFLAGS"
19971 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19972 cat >conftest.$ac_ext <<_ACEOF
19973#line $LINENO "configure"
19974/* confdefs.h. */
19975_ACEOF
19976cat confdefs.h >>conftest.$ac_ext
19977cat >>conftest.$ac_ext <<_ACEOF
19978/* end confdefs.h. */
21d1c967
GD
19979
19980#include <gtk/gtk.h>
19981#include <stdio.h>
f79bd02d 19982
e6cc62c6
VS
19983int
19984main ()
19985{
19986 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext conftest$ac_exeext
19992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993 (eval $ac_link) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -s conftest$ac_exeext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
21d1c967
GD
20003 echo "*** The test program compiled, but did not run. This usually means"
20004 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20005 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20006 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20007 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20008 echo "*** is required on your system"
20009 echo "***"
20010 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20011 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20012else
e6cc62c6
VS
20013 echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20017 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20018fi
e6cc62c6 20019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20020 CFLAGS="$ac_save_CFLAGS"
20021 LIBS="$ac_save_LIBS"
20022 fi
20023 fi
20024 GTK_CFLAGS=""
20025 GTK_LIBS=""
20026 :
20027 fi
e6cc62c6
VS
20028
20029
21d1c967 20030 rm -f conf.gtktest
f79bd02d 20031
2b5f62a0 20032 else
e6cc62c6
VS
20033
20034# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20035if test "${with_gtk_prefix+set}" = set; then
20036 withval="$with_gtk_prefix"
20037 gtk_config_prefix="$withval"
20038else
20039 gtk_config_prefix=""
e6cc62c6 20040fi;
f79bd02d 20041
21d1c967
GD
20042# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20043if test "${with_gtk_exec_prefix+set}" = set; then
20044 withval="$with_gtk_exec_prefix"
20045 gtk_config_exec_prefix="$withval"
20046else
20047 gtk_config_exec_prefix=""
e6cc62c6 20048fi;
21d1c967
GD
20049# Check whether --enable-gtktest or --disable-gtktest was given.
20050if test "${enable_gtktest+set}" = set; then
20051 enableval="$enable_gtktest"
e6cc62c6 20052
21d1c967
GD
20053else
20054 enable_gtktest=yes
e6cc62c6 20055fi;
21d1c967
GD
20056
20057 for module in . $GTK_MODULES
20058 do
20059 case "$module" in
e6cc62c6 20060 gthread)
21d1c967
GD
20061 gtk_config_args="$gtk_config_args gthread"
20062 ;;
20063 esac
20064 done
20065
20066 if test x$gtk_config_exec_prefix != x ; then
20067 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20068 if test x${GTK_CONFIG+set} != xset ; then
20069 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20070 fi
20071 fi
20072 if test x$gtk_config_prefix != x ; then
20073 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20074 if test x${GTK_CONFIG+set} != xset ; then
20075 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20076 fi
20077 fi
20078
20079 # Extract the first word of "gtk-config", so it can be a program name with args.
20080set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20081echo "$as_me:$LINENO: checking for $ac_word" >&5
20082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20083if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20085else
e6cc62c6
VS
20086 case $GTK_CONFIG in
20087 [\\/]* | ?:[\\/]*)
21d1c967
GD
20088 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20089 ;;
21d1c967 20090 *)
e6cc62c6
VS
20091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20092for as_dir in $PATH
20093do
20094 IFS=$as_save_IFS
20095 test -z "$as_dir" && as_dir=.
20096 for ac_exec_ext in '' $ac_executable_extensions; do
20097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20098 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20100 break 2
20101 fi
20102done
20103done
20104
21d1c967
GD
20105 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20106 ;;
20107esac
20108fi
e6cc62c6
VS
20109GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20110
21d1c967 20111if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20112 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20113echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20114else
e6cc62c6
VS
20115 echo "$as_me:$LINENO: result: no" >&5
20116echo "${ECHO_T}no" >&6
21d1c967
GD
20117fi
20118
20119 min_gtk_version=1.2.7
e6cc62c6
VS
20120 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20121echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20122 no_gtk=""
20123 if test "$GTK_CONFIG" = "no" ; then
20124 no_gtk=yes
20125 else
20126 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20127 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20128 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20130 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20132 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20134 if test "x$enable_gtktest" = "xyes" ; then
20135 ac_save_CFLAGS="$CFLAGS"
20136 ac_save_LIBS="$LIBS"
20137 CFLAGS="$CFLAGS $GTK_CFLAGS"
20138 LIBS="$GTK_LIBS $LIBS"
20139 rm -f conf.gtktest
20140 if test "$cross_compiling" = yes; then
20141 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20142else
e6cc62c6
VS
20143 cat >conftest.$ac_ext <<_ACEOF
20144#line $LINENO "configure"
20145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
f79bd02d 20150
21d1c967
GD
20151#include <gtk/gtk.h>
20152#include <stdio.h>
20153#include <stdlib.h>
f79bd02d 20154
e6cc62c6 20155int
21d1c967
GD
20156main ()
20157{
20158 int major, minor, micro;
20159 char *tmp_version;
20160
20161 system ("touch conf.gtktest");
20162
20163 /* HP/UX 9 (%@#!) writes to sscanf strings */
20164 tmp_version = g_strdup("$min_gtk_version");
20165 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20166 printf("%s, bad version string\n", "$min_gtk_version");
20167 exit(1);
20168 }
90dd450c 20169
21d1c967
GD
20170 if ((gtk_major_version != $gtk_config_major_version) ||
20171 (gtk_minor_version != $gtk_config_minor_version) ||
20172 (gtk_micro_version != $gtk_config_micro_version))
20173 {
e6cc62c6 20174 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20175 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20176 gtk_major_version, gtk_minor_version, gtk_micro_version);
20177 printf ("*** was found! If gtk-config was correct, then it is best\n");
20178 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20179 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20180 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20181 printf("*** required on your system.\n");
20182 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20183 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20184 printf("*** before re-running configure\n");
e6cc62c6 20185 }
21d1c967
GD
20186#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20187 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20188 (gtk_minor_version != GTK_MINOR_VERSION) ||
20189 (gtk_micro_version != GTK_MICRO_VERSION))
20190 {
20191 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20192 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20193 printf("*** library (version %d.%d.%d)\n",
20194 gtk_major_version, gtk_minor_version, gtk_micro_version);
20195 }
20196#endif /* defined (GTK_MAJOR_VERSION) ... */
20197 else
20198 {
20199 if ((gtk_major_version > major) ||
20200 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20201 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20202 {
20203 return 0;
20204 }
20205 else
20206 {
20207 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20208 gtk_major_version, gtk_minor_version, gtk_micro_version);
20209 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20210 major, minor, micro);
20211 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20212 printf("***\n");
20213 printf("*** If you have already installed a sufficiently new version, this error\n");
20214 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20215 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20216 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20217 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20218 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20219 printf("*** so that the correct libraries are found at run-time))\n");
20220 }
20221 }
20222 return 1;
20223}
20224
e6cc62c6
VS
20225_ACEOF
20226rm -f conftest$ac_exeext
20227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20228 (eval $ac_link) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
21d1c967
GD
20237 :
20238else
e6cc62c6
VS
20239 echo "$as_me: program exited with status $ac_status" >&5
20240echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243( exit $ac_status )
20244no_gtk=yes
21d1c967 20245fi
e6cc62c6 20246rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20247fi
21d1c967
GD
20248 CFLAGS="$ac_save_CFLAGS"
20249 LIBS="$ac_save_LIBS"
20250 fi
20251 fi
20252 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20253 echo "$as_me:$LINENO: result: yes" >&5
20254echo "${ECHO_T}yes" >&6
20255 wx_cv_lib_gtk=1.2.7
21d1c967 20256 else
e6cc62c6
VS
20257 echo "$as_me:$LINENO: result: no" >&5
20258echo "${ECHO_T}no" >&6
21d1c967
GD
20259 if test "$GTK_CONFIG" = "no" ; then
20260 echo "*** The gtk-config script installed by GTK could not be found"
20261 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20262 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20263 echo "*** full path to gtk-config."
20264 else
20265 if test -f conf.gtktest ; then
20266 :
20267 else
20268 echo "*** Could not run GTK test program, checking why..."
20269 CFLAGS="$CFLAGS $GTK_CFLAGS"
20270 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20271 cat >conftest.$ac_ext <<_ACEOF
20272#line $LINENO "configure"
20273/* confdefs.h. */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h. */
21d1c967
GD
20278
20279#include <gtk/gtk.h>
20280#include <stdio.h>
20281
e6cc62c6
VS
20282int
20283main ()
20284{
20285 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext conftest$ac_exeext
20291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20292 (eval $ac_link) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -s conftest$ac_exeext'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
21d1c967
GD
20302 echo "*** The test program compiled, but did not run. This usually means"
20303 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20304 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20305 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20306 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20307 echo "*** is required on your system"
20308 echo "***"
20309 echo "*** If you have an old version installed, it is best to remove it, although"
20310 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20311 echo "***"
20312 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20313 echo "*** came with the system with the command"
20314 echo "***"
e6cc62c6 20315 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20316else
e6cc62c6
VS
20317 echo "$as_me: failed program was:" >&5
20318sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20321 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20322 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20323 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20324fi
e6cc62c6 20325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20326 CFLAGS="$ac_save_CFLAGS"
20327 LIBS="$ac_save_LIBS"
20328 fi
20329 fi
20330 GTK_CFLAGS=""
20331 GTK_LIBS=""
20332 :
20333 fi
e6cc62c6
VS
20334
20335
21d1c967
GD
20336 rm -f conf.gtktest
20337
21d1c967 20338
2b5f62a0 20339 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20340
20341# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20342if test "${with_gtk_prefix+set}" = set; then
20343 withval="$with_gtk_prefix"
20344 gtk_config_prefix="$withval"
20345else
20346 gtk_config_prefix=""
e6cc62c6 20347fi;
f79bd02d 20348
21d1c967
GD
20349# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20350if test "${with_gtk_exec_prefix+set}" = set; then
20351 withval="$with_gtk_exec_prefix"
20352 gtk_config_exec_prefix="$withval"
20353else
20354 gtk_config_exec_prefix=""
e6cc62c6 20355fi;
21d1c967
GD
20356# Check whether --enable-gtktest or --disable-gtktest was given.
20357if test "${enable_gtktest+set}" = set; then
20358 enableval="$enable_gtktest"
e6cc62c6 20359
90dd450c 20360else
21d1c967 20361 enable_gtktest=yes
e6cc62c6 20362fi;
21d1c967
GD
20363
20364 for module in . $GTK_MODULES
20365 do
20366 case "$module" in
e6cc62c6 20367 gthread)
21d1c967
GD
20368 gtk_config_args="$gtk_config_args gthread"
20369 ;;
20370 esac
20371 done
20372
20373 if test x$gtk_config_exec_prefix != x ; then
20374 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20375 if test x${GTK_CONFIG+set} != xset ; then
20376 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20377 fi
20378 fi
20379 if test x$gtk_config_prefix != x ; then
20380 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20381 if test x${GTK_CONFIG+set} != xset ; then
20382 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20383 fi
20384 fi
20385
20386 # Extract the first word of "gtk-config", so it can be a program name with args.
20387set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20388echo "$as_me:$LINENO: checking for $ac_word" >&5
20389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20390if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20392else
e6cc62c6
VS
20393 case $GTK_CONFIG in
20394 [\\/]* | ?:[\\/]*)
21d1c967
GD
20395 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20396 ;;
21d1c967 20397 *)
e6cc62c6
VS
20398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20399for as_dir in $PATH
20400do
20401 IFS=$as_save_IFS
20402 test -z "$as_dir" && as_dir=.
20403 for ac_exec_ext in '' $ac_executable_extensions; do
20404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20405 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20407 break 2
20408 fi
20409done
20410done
20411
21d1c967
GD
20412 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20413 ;;
20414esac
20415fi
e6cc62c6
VS
20416GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20417
21d1c967 20418if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20419 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20420echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20421else
e6cc62c6
VS
20422 echo "$as_me:$LINENO: result: no" >&5
20423echo "${ECHO_T}no" >&6
21d1c967
GD
20424fi
20425
20426 min_gtk_version=1.2.3
e6cc62c6
VS
20427 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20428echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20429 no_gtk=""
20430 if test "$GTK_CONFIG" = "no" ; then
20431 no_gtk=yes
20432 else
20433 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20434 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20435 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20437 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20439 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20441 if test "x$enable_gtktest" = "xyes" ; then
20442 ac_save_CFLAGS="$CFLAGS"
20443 ac_save_LIBS="$LIBS"
20444 CFLAGS="$CFLAGS $GTK_CFLAGS"
20445 LIBS="$GTK_LIBS $LIBS"
20446 rm -f conf.gtktest
20447 if test "$cross_compiling" = yes; then
20448 echo $ac_n "cross compiling; assumed OK... $ac_c"
20449else
e6cc62c6
VS
20450 cat >conftest.$ac_ext <<_ACEOF
20451#line $LINENO "configure"
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
20456/* end confdefs.h. */
21d1c967
GD
20457
20458#include <gtk/gtk.h>
20459#include <stdio.h>
20460#include <stdlib.h>
20461
e6cc62c6 20462int
21d1c967
GD
20463main ()
20464{
20465 int major, minor, micro;
20466 char *tmp_version;
20467
20468 system ("touch conf.gtktest");
20469
20470 /* HP/UX 9 (%@#!) writes to sscanf strings */
20471 tmp_version = g_strdup("$min_gtk_version");
20472 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20473 printf("%s, bad version string\n", "$min_gtk_version");
20474 exit(1);
20475 }
20476
20477 if ((gtk_major_version != $gtk_config_major_version) ||
20478 (gtk_minor_version != $gtk_config_minor_version) ||
20479 (gtk_micro_version != $gtk_config_micro_version))
20480 {
e6cc62c6 20481 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20482 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20483 gtk_major_version, gtk_minor_version, gtk_micro_version);
20484 printf ("*** was found! If gtk-config was correct, then it is best\n");
20485 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20486 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20487 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20488 printf("*** required on your system.\n");
20489 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20490 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20491 printf("*** before re-running configure\n");
e6cc62c6 20492 }
21d1c967
GD
20493#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20494 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20495 (gtk_minor_version != GTK_MINOR_VERSION) ||
20496 (gtk_micro_version != GTK_MICRO_VERSION))
20497 {
20498 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20499 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20500 printf("*** library (version %d.%d.%d)\n",
20501 gtk_major_version, gtk_minor_version, gtk_micro_version);
20502 }
20503#endif /* defined (GTK_MAJOR_VERSION) ... */
20504 else
20505 {
20506 if ((gtk_major_version > major) ||
20507 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20508 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20509 {
20510 return 0;
20511 }
20512 else
20513 {
20514 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20515 gtk_major_version, gtk_minor_version, gtk_micro_version);
20516 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20517 major, minor, micro);
20518 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20519 printf("***\n");
20520 printf("*** If you have already installed a sufficiently new version, this error\n");
20521 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20522 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20523 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20524 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20525 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20526 printf("*** so that the correct libraries are found at run-time))\n");
20527 }
20528 }
20529 return 1;
20530}
20531
e6cc62c6
VS
20532_ACEOF
20533rm -f conftest$ac_exeext
20534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535 (eval $ac_link) 2>&5
20536 ac_status=$?
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
21d1c967
GD
20544 :
20545else
e6cc62c6
VS
20546 echo "$as_me: program exited with status $ac_status" >&5
20547echo "$as_me: failed program was:" >&5
20548sed 's/^/| /' conftest.$ac_ext >&5
20549
20550( exit $ac_status )
20551no_gtk=yes
21d1c967 20552fi
e6cc62c6 20553rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20554fi
21d1c967
GD
20555 CFLAGS="$ac_save_CFLAGS"
20556 LIBS="$ac_save_LIBS"
20557 fi
20558 fi
20559 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20560 echo "$as_me:$LINENO: result: yes" >&5
20561echo "${ECHO_T}yes" >&6
20562 wx_cv_lib_gtk=1.2.3
21d1c967 20563 else
e6cc62c6
VS
20564 echo "$as_me:$LINENO: result: no" >&5
20565echo "${ECHO_T}no" >&6
21d1c967
GD
20566 if test "$GTK_CONFIG" = "no" ; then
20567 echo "*** The gtk-config script installed by GTK could not be found"
20568 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20569 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20570 echo "*** full path to gtk-config."
20571 else
20572 if test -f conf.gtktest ; then
20573 :
20574 else
20575 echo "*** Could not run GTK test program, checking why..."
20576 CFLAGS="$CFLAGS $GTK_CFLAGS"
20577 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20578 cat >conftest.$ac_ext <<_ACEOF
20579#line $LINENO "configure"
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
21d1c967
GD
20585
20586#include <gtk/gtk.h>
20587#include <stdio.h>
f79bd02d 20588
e6cc62c6
VS
20589int
20590main ()
20591{
20592 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20593 ;
20594 return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext conftest$ac_exeext
20598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20599 (eval $ac_link) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -s conftest$ac_exeext'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
21d1c967
GD
20609 echo "*** The test program compiled, but did not run. This usually means"
20610 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20611 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20612 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20613 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20614 echo "*** is required on your system"
20615 echo "***"
20616 echo "*** If you have an old version installed, it is best to remove it, although"
20617 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20618 echo "***"
20619 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20620 echo "*** came with the system with the command"
20621 echo "***"
e6cc62c6 20622 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20623else
e6cc62c6
VS
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20628 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20629 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20630 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20631fi
e6cc62c6 20632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20633 CFLAGS="$ac_save_CFLAGS"
20634 LIBS="$ac_save_LIBS"
20635 fi
20636 fi
20637 GTK_CFLAGS=""
20638 GTK_LIBS=""
20639 :
20640 fi
e6cc62c6
VS
20641
20642
21d1c967 20643 rm -f conf.gtktest
f79bd02d 20644
2b5f62a0 20645 fi
21d1c967
GD
20646 fi
20647
20648 if test -z "$wx_cv_lib_gtk"; then
20649 wx_cv_lib_gtk=none
20650 else
20651 wx_cv_cflags_gtk=$GTK_CFLAGS
20652 wx_cv_libs_gtk=$GTK_LIBS
20653 fi
e6cc62c6
VS
20654
20655
5c6fa7d2 20656fi
52127426 20657
8284b0c5 20658
21d1c967 20659 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20660 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20661echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20662 fi
20663
20664 case "$wx_cv_lib_gtk" in
20665 2.0) WXGTK20=1
2b5f62a0 20666 TOOLKIT_VERSION=2
21d1c967
GD
20667 ;;
20668 1.2.7) WXGTK127=1
20669 WXGTK12=1
20670 ;;
20671 1.2.3) WXGTK12=1
20672 ;;
e6cc62c6
VS
20673 *) { { echo "$as_me:$LINENO: error:
20674Please check that gtk-config is in path, the directory
20675where GTK+ libraries are installed (returned by
20676'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20677equivalent variable and GTK+ is version 1.2.3 or above.
20678 " >&5
20679echo "$as_me: error:
247f5006
VZ
20680Please check that gtk-config is in path, the directory
20681where GTK+ libraries are installed (returned by
20682'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20683equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20684 " >&2;}
20685 { (exit 1); exit 1; }; }
21d1c967
GD
20686 ;;
20687 esac
20688
b13cd66e
VZ
20689 if test "$WXGTK20" = 1; then
20690 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20691
f09359cf
VS
20692 succeeded=no
20693
20694 if test -z "$PKG_CONFIG"; then
20695 # Extract the first word of "pkg-config", so it can be a program name with args.
20696set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20697echo "$as_me:$LINENO: checking for $ac_word" >&5
20698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20699if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20701else
e6cc62c6
VS
20702 case $PKG_CONFIG in
20703 [\\/]* | ?:[\\/]*)
f09359cf
VS
20704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20705 ;;
f09359cf 20706 *)
e6cc62c6
VS
20707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708for as_dir in $PATH
20709do
20710 IFS=$as_save_IFS
20711 test -z "$as_dir" && as_dir=.
20712 for ac_exec_ext in '' $ac_executable_extensions; do
20713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20716 break 2
20717 fi
20718done
20719done
20720
f09359cf
VS
20721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20722 ;;
20723esac
20724fi
e6cc62c6
VS
20725PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20726
f09359cf 20727if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20728 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20729echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20730else
e6cc62c6
VS
20731 echo "$as_me:$LINENO: result: no" >&5
20732echo "${ECHO_T}no" >&6
f09359cf
VS
20733fi
20734
20735 fi
20736
20737 if test "$PKG_CONFIG" = "no" ; then
20738 echo "*** The pkg-config script could not be found. Make sure it is"
20739 echo "*** in your path, or set the PKG_CONFIG environment variable"
20740 echo "*** to the full path to pkg-config."
20741 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20742 else
20743 PKG_CONFIG_MIN_VERSION=0.9.0
20744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20745 echo "$as_me:$LINENO: checking for pangoft2" >&5
20746echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20747
20748 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20749 echo "$as_me:$LINENO: result: yes" >&5
20750echo "${ECHO_T}yes" >&6
f09359cf
VS
20751 succeeded=yes
20752
e6cc62c6
VS
20753 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20754echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20755 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20756 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20757echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20758
e6cc62c6
VS
20759 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20760echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20761 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20762 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20763echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20764 else
20765 PANGOFT2_CFLAGS=""
20766 PANGOFT2_LIBS=""
e6cc62c6 20767 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20768 ## do set a variable so people can do so.
20769 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20770
f09359cf
VS
20771 fi
20772
e6cc62c6
VS
20773
20774
f09359cf
VS
20775 else
20776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20778 fi
20779 fi
20780
20781 if test $succeeded = yes; then
e6cc62c6 20782
b13cd66e 20783 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20784 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20785
f09359cf 20786 else
e6cc62c6
VS
20787
20788 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20789echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20790 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20791
20792
f09359cf
VS
20793 fi
20794
b13cd66e 20795 fi
2b5f62a0
VZ
20796 else
20797 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20798 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20799echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20800 wxUSE_UNICODE=no
20801 fi
20802 fi
20803
20804 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20805
20806for ac_func in poll
2b5f62a0 20807do
e6cc62c6
VS
20808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20809echo "$as_me:$LINENO: checking for $ac_func" >&5
20810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20811if eval "test \"\${$as_ac_var+set}\" = set"; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814 cat >conftest.$ac_ext <<_ACEOF
20815#line $LINENO "configure"
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
2b5f62a0 20821/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20822 which can conflict with char $ac_func (); below.
20823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20824 <limits.h> exists even on freestanding compilers. */
20825#ifdef __STDC__
20826# include <limits.h>
20827#else
20828# include <assert.h>
20829#endif
2b5f62a0 20830/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20831#ifdef __cplusplus
20832extern "C"
20833{
20834#endif
2b5f62a0 20835/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20836 builtin and then its argument prototype would still apply. */
20837char $ac_func ();
2b5f62a0
VZ
20838/* The GNU C library defines this for functions which it implements
20839 to always fail with ENOSYS. Some functions are actually named
20840 something starting with __ and the normal name is an alias. */
20841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20842choke me
20843#else
e6cc62c6
VS
20844char (*f) () = $ac_func;
20845#endif
20846#ifdef __cplusplus
20847}
2b5f62a0
VZ
20848#endif
20849
e6cc62c6
VS
20850int
20851main ()
20852{
20853return f != $ac_func;
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858rm -f conftest.$ac_objext conftest$ac_exeext
20859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20860 (eval $ac_link) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 eval "$as_ac_var=yes"
20871else
20872 echo "$as_me: failed program was:" >&5
20873sed 's/^/| /' conftest.$ac_ext >&5
20874
20875eval "$as_ac_var=no"
20876fi
20877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20878fi
20879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20880echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20881if test `eval echo '${'$as_ac_var'}'` = yes; then
20882 cat >>confdefs.h <<_ACEOF
20883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20884_ACEOF
2b5f62a0 20885
2b5f62a0
VZ
20886fi
20887done
20888
f09359cf
VS
20889 fi
20890
21d1c967 20891 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20892 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20893
20894 AFMINSTALL=afminstall
20895 TOOLKIT=GTK
20896 GUIDIST=GTK_DIST
20897
e6cc62c6
VS
20898 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20899echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20900if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20902else
e6cc62c6 20903 ac_check_lib_save_LIBS=$LIBS
21d1c967 20904LIBS="-lgdk $LIBS"
e6cc62c6
VS
20905cat >conftest.$ac_ext <<_ACEOF
20906#line $LINENO "configure"
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
20912
5c6fa7d2 20913/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20914#ifdef __cplusplus
20915extern "C"
20916#endif
5c6fa7d2 20917/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20918 builtin and then its argument prototype would still apply. */
20919char gdk_im_open ();
20920int
20921main ()
20922{
20923gdk_im_open ();
20924 ;
20925 return 0;
20926}
20927_ACEOF
20928rm -f conftest.$ac_objext conftest$ac_exeext
20929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20930 (eval $ac_link) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -s conftest$ac_exeext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_lib_gdk_gdk_im_open=yes
20941else
20942 echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945ac_cv_lib_gdk_gdk_im_open=no
20946fi
20947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20948LIBS=$ac_check_lib_save_LIBS
20949fi
20950echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20951echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20952if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20953 cat >>confdefs.h <<\_ACEOF
21d1c967 20954#define HAVE_XIM 1
e6cc62c6 20955_ACEOF
21d1c967 20956
90dd450c 20957fi
1e6feb95 20958
21d1c967 20959 fi
1e6feb95 20960
21d1c967 20961 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20962 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20963echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20964 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20965 echo "$as_me:$LINENO: result: not found" >&5
20966echo "${ECHO_T}not found" >&6
20967 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20968echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20969 { (exit 1); exit 1; }; }
21d1c967 20970 else
e6cc62c6
VS
20971 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20972echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20973 fi
20974
e6cc62c6
VS
20975 echo "$as_me:$LINENO: checking for libmgl location" >&5
20976echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20977 case "${host}" in
20978 *-*-linux* )
63a76696
VS
20979 if test "x$wxUSE_SHARED" = xyes ; then
20980 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20981 else
20982 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20983 fi
21d1c967
GD
20984 ;;
20985 *-pc-msdosdjgpp )
63a76696 20986 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20987 ;;
20988 *)
e6cc62c6
VS
20989 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20990echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20991 { (exit 1); exit 1; }; }
21d1c967 20992 esac
1e6feb95 20993
21d1c967 20994 mgl_lib_type=""
63a76696
VS
20995 mgl_os=""
20996
20997 for mgl_os_i in $mgl_os_candidates ; do
20998 if test "x$mgl_os" = x ; then
20999 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21000 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21001 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21002 mgl_lib_type=debug
21003 mgl_os=$mgl_os_i
21004 fi
21005 fi
21006 if test "x$mgl_lib_type" = x ; then
21007 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21008 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21009 mgl_lib_type=release
21010 mgl_os=$mgl_os_i
21011 fi
21012 fi
21d1c967 21013 fi
63a76696 21014 done
2224580a 21015
63a76696 21016 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21017 echo "$as_me:$LINENO: result: not found" >&5
21018echo "${ECHO_T}not found" >&6
21019 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21020echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21021 { (exit 1); exit 1; }; }
63a76696 21022 fi
e6cc62c6
VS
21023 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21024echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21025
1d1b75ac
VZ
21026 wxUSE_UNIVERSAL="yes"
21027
21d1c967
GD
21028 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21029 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21030
90dd450c 21031 AFMINSTALL=afminstall
21d1c967
GD
21032 TOOLKIT=MGL
21033 GUIDIST=MGL_DIST
21034 fi
dad6c0ea 21035
21d1c967 21036 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21037 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21038echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21039 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21040 echo "$as_me:$LINENO: result: not found" >&5
21041echo "${ECHO_T}not found" >&6
21042 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21043echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21044 { (exit 1); exit 1; }; }
21d1c967 21045 else
e6cc62c6
VS
21046 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21047echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21048 fi
f6bcfd97 21049
21d1c967 21050 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21051 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21052echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21053 else
e6cc62c6
VS
21054 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21055echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21056 { (exit 1); exit 1; }; }
90dd450c 21057 fi
0b2effe9 21058
21d1c967
GD
21059 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21060 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21061
1d1b75ac
VZ
21062 wxUSE_UNIVERSAL="yes"
21063
21d1c967
GD
21064 AFMINSTALL=afminstall
21065 TOOLKIT=MICROWIN
21066 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21067
21068 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21069 fi
f6bcfd97 21070
21d1c967 21071 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21072 echo "$as_me:$LINENO: checking for X" >&5
21073echo $ECHO_N "checking for X... $ECHO_C" >&6
21074
d8356fa3 21075
21d1c967
GD
21076# Check whether --with-x or --without-x was given.
21077if test "${with_x+set}" = set; then
21078 withval="$with_x"
2224580a 21079
e6cc62c6 21080fi;
21d1c967
GD
21081# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21082if test "x$with_x" = xno; then
21083 # The user explicitly disabled X.
21084 have_x=disabled
21085else
21086 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21087 # Both variables are already set.
21088 have_x=yes
21089 else
e6cc62c6
VS
21090 if test "${ac_cv_have_x+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21092else
21093 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21094ac_x_includes=no ac_x_libraries=no
21095rm -fr conftest.dir
21096if mkdir conftest.dir; then
21097 cd conftest.dir
21d1c967 21098 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21099 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21100acfindx:
21101 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21102_ACEOF
21d1c967
GD
21103 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21105 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21107 for ac_extension in a so sl; do
21108 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21109 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21110 ac_im_usrlibdir=$ac_im_libdir; break
21111 fi
21112 done
21113 # Screen out bogus values from the imake configuration. They are
21114 # bogus both because they are the default anyway, and because
21115 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21116 case $ac_im_incroot in
21d1c967 21117 /usr/include) ;;
e6cc62c6 21118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21119 esac
e6cc62c6 21120 case $ac_im_usrlibdir in
21d1c967 21121 /usr/lib | /lib) ;;
e6cc62c6 21122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21123 esac
21124 fi
21125 cd ..
e6cc62c6 21126 rm -fr conftest.dir
21d1c967 21127fi
10f2d63a 21128
e6cc62c6
VS
21129# Standard set of common directories for X headers.
21130# Check X11 before X11Rn because it is often a symlink to the current release.
21131ac_x_header_dirs='
21132/usr/X11/include
21133/usr/X11R6/include
21134/usr/X11R5/include
21135/usr/X11R4/include
21136
21137/usr/include/X11
21138/usr/include/X11R6
21139/usr/include/X11R5
21140/usr/include/X11R4
21141
21142/usr/local/X11/include
21143/usr/local/X11R6/include
21144/usr/local/X11R5/include
21145/usr/local/X11R4/include
21146
21147/usr/local/include/X11
21148/usr/local/include/X11R6
21149/usr/local/include/X11R5
21150/usr/local/include/X11R4
21151
21152/usr/X386/include
21153/usr/x386/include
21154/usr/XFree86/include/X11
21155
21156/usr/include
21157/usr/local/include
21158/usr/unsupported/include
21159/usr/athena/include
21160/usr/local/x11r5/include
21161/usr/lpp/Xamples/include
21162
21163/usr/openwin/include
21164/usr/openwin/share/include'
21165
21166if test "$ac_x_includes" = no; then
21167 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21168 # First, try using that file with no special directory specified.
e6cc62c6
VS
21169 cat >conftest.$ac_ext <<_ACEOF
21170#line $LINENO "configure"
21171/* confdefs.h. */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h. */
21176#include <X11/Intrinsic.h>
21177_ACEOF
21178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } >/dev/null; then
21186 if test -s conftest.err; then
21187 ac_cpp_err=$ac_c_preproc_warn_flag
21188 else
21189 ac_cpp_err=
21190 fi
21191else
21192 ac_cpp_err=yes
21193fi
21194if test -z "$ac_cpp_err"; then
21d1c967
GD
21195 # We can compile using X headers with no special include directory.
21196ac_x_includes=
90dd450c 21197else
e6cc62c6
VS
21198 echo "$as_me: failed program was:" >&5
21199sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 for ac_dir in $ac_x_header_dirs; do
21202 if test -r "$ac_dir/X11/Intrinsic.h"; then
21203 ac_x_includes=$ac_dir
21204 break
21205 fi
21206done
3a922bb4 21207fi
e6cc62c6
VS
21208rm -f conftest.err conftest.$ac_ext
21209fi # $ac_x_includes = no
10f2d63a 21210
e6cc62c6 21211if test "$ac_x_libraries" = no; then
21d1c967 21212 # Check for the libraries.
21d1c967
GD
21213 # See if we find them without any special options.
21214 # Don't add to $LIBS permanently.
e6cc62c6
VS
21215 ac_save_LIBS=$LIBS
21216 LIBS="-lXt $LIBS"
21217 cat >conftest.$ac_ext <<_ACEOF
21218#line $LINENO "configure"
21219/* confdefs.h. */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h. */
21224#include <X11/Intrinsic.h>
21225int
21226main ()
21227{
21228XtMalloc (0)
21229 ;
21230 return 0;
21231}
21232_ACEOF
21233rm -f conftest.$ac_objext conftest$ac_exeext
21234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21235 (eval $ac_link) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
21239 { ac_try='test -s conftest$ac_exeext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 LIBS=$ac_save_LIBS
21d1c967
GD
21246# We can link X programs with no special library path.
21247ac_x_libraries=
3a922bb4 21248else
e6cc62c6
VS
21249 echo "$as_me: failed program was:" >&5
21250sed 's/^/| /' conftest.$ac_ext >&5
21251
21252LIBS=$ac_save_LIBS
21253for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21254do
e6cc62c6 21255 # Don't even attempt the hair of trying to link an X program!
21d1c967 21256 for ac_extension in a so sl; do
e6cc62c6 21257 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21258 ac_x_libraries=$ac_dir
21259 break 2
21260 fi
21261 done
21262done
3a922bb4 21263fi
e6cc62c6
VS
21264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21265fi # $ac_x_libraries = no
90dd450c 21266
e6cc62c6 21267if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21268 # Didn't find X anywhere. Cache the known absence of X.
21269 ac_cv_have_x="have_x=no"
21270else
21271 # Record where we found X for the cache.
21272 ac_cv_have_x="have_x=yes \
21273 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21274fi
21d1c967 21275fi
e6cc62c6 21276
21d1c967
GD
21277 fi
21278 eval "$ac_cv_have_x"
21279fi # $with_x != no
90dd450c 21280
21d1c967 21281if test "$have_x" != yes; then
e6cc62c6
VS
21282 echo "$as_me:$LINENO: result: $have_x" >&5
21283echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21284 no_x=yes
21285else
21286 # If each of the values was on the command line, it overrides each guess.
21287 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21288 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21289 # Update the cache value to reflect the command line values.
21290 ac_cv_have_x="have_x=yes \
21291 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21292 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21293echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21294fi
90dd450c 21295
21d1c967 21296if test "$no_x" = yes; then
90dd450c 21297 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21298
21299cat >>confdefs.h <<\_ACEOF
90dd450c 21300#define X_DISPLAY_MISSING 1
e6cc62c6 21301_ACEOF
90dd450c
VZ
21302
21303 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21304else
21305 if test -n "$x_includes"; then
21306 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21307 fi
3a922bb4 21308
90dd450c
VZ
21309 # It would also be nice to do this for all -L options, not just this one.
21310 if test -n "$x_libraries"; then
21311 X_LIBS="$X_LIBS -L$x_libraries"
21312 # For Solaris; some versions of Sun CC require a space after -R and
21313 # others require no space. Words are not sufficient . . . .
e6cc62c6 21314 case `(uname -sr) 2>/dev/null` in
90dd450c 21315 "SunOS 5"*)
e6cc62c6
VS
21316 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21317echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21318 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21319 cat >conftest.$ac_ext <<_ACEOF
21320#line $LINENO "configure"
21321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
21326
21327int
21328main ()
21329{
90dd450c 21330
e6cc62c6
VS
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext conftest$ac_exeext
21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -s conftest$ac_exeext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
90dd450c 21347 ac_R_nospace=yes
3a922bb4 21348else
e6cc62c6
VS
21349 echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352ac_R_nospace=no
3a922bb4 21353fi
e6cc62c6 21354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21355 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21356 echo "$as_me:$LINENO: result: no" >&5
21357echo "${ECHO_T}no" >&6
90dd450c
VZ
21358 X_LIBS="$X_LIBS -R$x_libraries"
21359 else
21360 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21361 cat >conftest.$ac_ext <<_ACEOF
21362#line $LINENO "configure"
21363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
21368
21369int
21370main ()
21371{
6f754473 21372
e6cc62c6
VS
21373 ;
21374 return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext conftest$ac_exeext
21378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -s conftest$ac_exeext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
90dd450c
VZ
21389 ac_R_space=yes
21390else
e6cc62c6
VS
21391 echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
21394ac_R_space=no
90dd450c 21395fi
e6cc62c6 21396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21397 if test $ac_R_space = yes; then
e6cc62c6
VS
21398 echo "$as_me:$LINENO: result: yes" >&5
21399echo "${ECHO_T}yes" >&6
90dd450c
VZ
21400 X_LIBS="$X_LIBS -R $x_libraries"
21401 else
e6cc62c6
VS
21402 echo "$as_me:$LINENO: result: neither works" >&5
21403echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21404 fi
21405 fi
e6cc62c6 21406 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21407 esac
21408 fi
21409
21410 # Check for system-dependent libraries X programs must link with.
21411 # Do this before checking for the system-independent R6 libraries
21412 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21413
90dd450c
VZ
21414 if test "$ISC" = yes; then
21415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21416 else
e6cc62c6
VS
21417 # Martyn Johnson says this is needed for Ultrix, if the X
21418 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21419 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21420 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21421 cat >conftest.$ac_ext <<_ACEOF
21422#line $LINENO "configure"
21423/* confdefs.h. */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h. */
21428
247f5006 21429/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21430#ifdef __cplusplus
21431extern "C"
21432#endif
247f5006 21433/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21434 builtin and then its argument prototype would still apply. */
21435char XOpenDisplay ();
21436int
21437main ()
21438{
21439XOpenDisplay ();
21440 ;
21441 return 0;
21442}
21443_ACEOF
21444rm -f conftest.$ac_objext conftest$ac_exeext
21445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try='test -s conftest$ac_exeext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 :
21457else
21458 echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21460
e6cc62c6
VS
21461echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21462echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21463if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21465else
e6cc62c6
VS
21466 ac_check_lib_save_LIBS=$LIBS
21467LIBS="-ldnet $LIBS"
21468cat >conftest.$ac_ext <<_ACEOF
21469#line $LINENO "configure"
21470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
a0b9e27f 21475
e6cc62c6
VS
21476/* Override any gcc2 internal prototype to avoid an error. */
21477#ifdef __cplusplus
21478extern "C"
21479#endif
21480/* We use char because int might match the return type of a gcc2
21481 builtin and then its argument prototype would still apply. */
21482char dnet_ntoa ();
21483int
21484main ()
21485{
21486dnet_ntoa ();
21487 ;
21488 return 0;
21489}
21490_ACEOF
21491rm -f conftest.$ac_objext conftest$ac_exeext
21492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -s conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_lib_dnet_dnet_ntoa=yes
21504else
21505 echo "$as_me: failed program was:" >&5
21506sed 's/^/| /' conftest.$ac_ext >&5
21507
21508ac_cv_lib_dnet_dnet_ntoa=no
21509fi
21510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511LIBS=$ac_check_lib_save_LIBS
21512fi
21513echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21514echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21515if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21516 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21517fi
21518
90dd450c 21519 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21520 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21521echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21522if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21524else
e6cc62c6 21525 ac_check_lib_save_LIBS=$LIBS
90dd450c 21526LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21527cat >conftest.$ac_ext <<_ACEOF
21528#line $LINENO "configure"
21529/* confdefs.h. */
21530_ACEOF
21531cat confdefs.h >>conftest.$ac_ext
21532cat >>conftest.$ac_ext <<_ACEOF
21533/* end confdefs.h. */
21534
90dd450c 21535/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21536#ifdef __cplusplus
21537extern "C"
21538#endif
90dd450c 21539/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21540 builtin and then its argument prototype would still apply. */
21541char dnet_ntoa ();
21542int
21543main ()
21544{
21545dnet_ntoa ();
21546 ;
21547 return 0;
21548}
21549_ACEOF
21550rm -f conftest.$ac_objext conftest$ac_exeext
21551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21552 (eval $ac_link) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -s conftest$ac_exeext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21563else
21564 echo "$as_me: failed program was:" >&5
21565sed 's/^/| /' conftest.$ac_ext >&5
21566
21567ac_cv_lib_dnet_stub_dnet_ntoa=no
21568fi
21569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21570LIBS=$ac_check_lib_save_LIBS
21571fi
21572echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21573echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21574if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21575 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21576fi
21577
90dd450c 21578 fi
e6cc62c6
VS
21579fi
21580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21581 LIBS="$ac_xsave_LIBS"
978f1259 21582
90dd450c
VZ
21583 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21584 # to get the SysV transport functions.
e6cc62c6 21585 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21586 # needs -lnsl.
21587 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21588 # on Irix 5.2, according to T.E. Dickey.
21589 # The functions gethostbyname, getservbyname, and inet_addr are
21590 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21591 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21592echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21593if test "${ac_cv_func_gethostbyname+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595else
21596 cat >conftest.$ac_ext <<_ACEOF
21597#line $LINENO "configure"
21598/* confdefs.h. */
21599_ACEOF
21600cat confdefs.h >>conftest.$ac_ext
21601cat >>conftest.$ac_ext <<_ACEOF
21602/* end confdefs.h. */
90dd450c 21603/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21604 which can conflict with char gethostbyname (); below.
21605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21606 <limits.h> exists even on freestanding compilers. */
21607#ifdef __STDC__
21608# include <limits.h>
21609#else
21610# include <assert.h>
21611#endif
90dd450c 21612/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21613#ifdef __cplusplus
21614extern "C"
21615{
21616#endif
90dd450c 21617/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21618 builtin and then its argument prototype would still apply. */
21619char gethostbyname ();
90dd450c
VZ
21620/* The GNU C library defines this for functions which it implements
21621 to always fail with ENOSYS. Some functions are actually named
21622 something starting with __ and the normal name is an alias. */
21623#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21624choke me
21625#else
e6cc62c6
VS
21626char (*f) () = gethostbyname;
21627#endif
21628#ifdef __cplusplus
21629}
90dd450c 21630#endif
978f1259 21631
e6cc62c6
VS
21632int
21633main ()
21634{
21635return f != gethostbyname;
21636 ;
21637 return 0;
21638}
21639_ACEOF
21640rm -f conftest.$ac_objext conftest$ac_exeext
21641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21642 (eval $ac_link) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -s conftest$ac_exeext'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
21652 ac_cv_func_gethostbyname=yes
21653else
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
21657ac_cv_func_gethostbyname=no
21658fi
21659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21660fi
21661echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21662echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21663
90dd450c 21664 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21665 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21666echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21667if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21669else
e6cc62c6 21670 ac_check_lib_save_LIBS=$LIBS
90dd450c 21671LIBS="-lnsl $LIBS"
e6cc62c6
VS
21672cat >conftest.$ac_ext <<_ACEOF
21673#line $LINENO "configure"
21674/* confdefs.h. */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h. */
21679
90dd450c 21680/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21681#ifdef __cplusplus
21682extern "C"
21683#endif
90dd450c 21684/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21685 builtin and then its argument prototype would still apply. */
21686char gethostbyname ();
21687int
21688main ()
21689{
21690gethostbyname ();
21691 ;
21692 return 0;
21693}
21694_ACEOF
21695rm -f conftest.$ac_objext conftest$ac_exeext
21696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21697 (eval $ac_link) 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try='test -s conftest$ac_exeext'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ac_cv_lib_nsl_gethostbyname=yes
21708else
21709 echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
21712ac_cv_lib_nsl_gethostbyname=no
21713fi
21714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21715LIBS=$ac_check_lib_save_LIBS
21716fi
21717echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21718echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21719if test $ac_cv_lib_nsl_gethostbyname = yes; then
21720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21721fi
247f5006 21722
e6cc62c6
VS
21723 if test $ac_cv_lib_nsl_gethostbyname = no; then
21724 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21725echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21726if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21728else
e6cc62c6
VS
21729 ac_check_lib_save_LIBS=$LIBS
21730LIBS="-lbsd $LIBS"
21731cat >conftest.$ac_ext <<_ACEOF
21732#line $LINENO "configure"
21733/* confdefs.h. */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h. */
21738
21739/* Override any gcc2 internal prototype to avoid an error. */
21740#ifdef __cplusplus
21741extern "C"
21742#endif
21743/* We use char because int might match the return type of a gcc2
21744 builtin and then its argument prototype would still apply. */
21745char gethostbyname ();
21746int
21747main ()
21748{
21749gethostbyname ();
21750 ;
21751 return 0;
21752}
21753_ACEOF
21754rm -f conftest.$ac_objext conftest$ac_exeext
21755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -s conftest$ac_exeext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_lib_bsd_gethostbyname=yes
21767else
21768 echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
21771ac_cv_lib_bsd_gethostbyname=no
21772fi
21773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21774LIBS=$ac_check_lib_save_LIBS
21775fi
21776echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21777echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21778if test $ac_cv_lib_bsd_gethostbyname = yes; then
21779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21780fi
b12915c1 21781
e6cc62c6 21782 fi
90dd450c
VZ
21783 fi
21784
21785 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21786 # socket/setsockopt and other routines are undefined under SCO ODT
21787 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21788 # on later versions), says Simon Leinen: it contains gethostby*
21789 # variants that don't use the name server (or something). -lsocket
21790 # must be given before -lnsl if both are needed. We assume that
21791 # if connect needs -lnsl, so does gethostbyname.
21792 echo "$as_me:$LINENO: checking for connect" >&5
21793echo $ECHO_N "checking for connect... $ECHO_C" >&6
21794if test "${ac_cv_func_connect+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797 cat >conftest.$ac_ext <<_ACEOF
21798#line $LINENO "configure"
21799/* confdefs.h. */
21800_ACEOF
21801cat confdefs.h >>conftest.$ac_ext
21802cat >>conftest.$ac_ext <<_ACEOF
21803/* end confdefs.h. */
90dd450c 21804/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21805 which can conflict with char connect (); below.
21806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21807 <limits.h> exists even on freestanding compilers. */
21808#ifdef __STDC__
21809# include <limits.h>
21810#else
21811# include <assert.h>
21812#endif
90dd450c 21813/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21814#ifdef __cplusplus
21815extern "C"
21816{
21817#endif
90dd450c 21818/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21819 builtin and then its argument prototype would still apply. */
21820char connect ();
90dd450c
VZ
21821/* The GNU C library defines this for functions which it implements
21822 to always fail with ENOSYS. Some functions are actually named
21823 something starting with __ and the normal name is an alias. */
21824#if defined (__stub_connect) || defined (__stub___connect)
21825choke me
21826#else
e6cc62c6
VS
21827char (*f) () = connect;
21828#endif
21829#ifdef __cplusplus
21830}
90dd450c
VZ
21831#endif
21832
e6cc62c6
VS
21833int
21834main ()
21835{
21836return f != connect;
21837 ;
21838 return 0;
21839}
21840_ACEOF
21841rm -f conftest.$ac_objext conftest$ac_exeext
21842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21843 (eval $ac_link) 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -s conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_connect=yes
21854else
21855 echo "$as_me: failed program was:" >&5
21856sed 's/^/| /' conftest.$ac_ext >&5
21857
21858ac_cv_func_connect=no
21859fi
21860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21861fi
21862echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21863echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21864
90dd450c 21865 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21866 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21867echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21868if test "${ac_cv_lib_socket_connect+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21870else
e6cc62c6 21871 ac_check_lib_save_LIBS=$LIBS
90dd450c 21872LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21873cat >conftest.$ac_ext <<_ACEOF
21874#line $LINENO "configure"
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
21880
90dd450c 21881/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21882#ifdef __cplusplus
21883extern "C"
21884#endif
90dd450c 21885/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21886 builtin and then its argument prototype would still apply. */
21887char connect ();
21888int
21889main ()
21890{
21891connect ();
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext conftest$ac_exeext
21897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -s conftest$ac_exeext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_cv_lib_socket_connect=yes
21909else
21910 echo "$as_me: failed program was:" >&5
21911sed 's/^/| /' conftest.$ac_ext >&5
21912
21913ac_cv_lib_socket_connect=no
21914fi
21915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21916LIBS=$ac_check_lib_save_LIBS
21917fi
21918echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21919echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21920if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21921 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21922fi
77e13408 21923
90dd450c 21924 fi
25d0687a 21925
e6cc62c6
VS
21926 # Guillermo Gomez says -lposix is necessary on A/UX.
21927 echo "$as_me:$LINENO: checking for remove" >&5
21928echo $ECHO_N "checking for remove... $ECHO_C" >&6
21929if test "${ac_cv_func_remove+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 cat >conftest.$ac_ext <<_ACEOF
21933#line $LINENO "configure"
21934/* confdefs.h. */
21935_ACEOF
21936cat confdefs.h >>conftest.$ac_ext
21937cat >>conftest.$ac_ext <<_ACEOF
21938/* end confdefs.h. */
90dd450c 21939/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21940 which can conflict with char remove (); below.
21941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21942 <limits.h> exists even on freestanding compilers. */
21943#ifdef __STDC__
21944# include <limits.h>
21945#else
21946# include <assert.h>
21947#endif
90dd450c 21948/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21949#ifdef __cplusplus
21950extern "C"
21951{
21952#endif
90dd450c 21953/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21954 builtin and then its argument prototype would still apply. */
21955char remove ();
90dd450c
VZ
21956/* The GNU C library defines this for functions which it implements
21957 to always fail with ENOSYS. Some functions are actually named
21958 something starting with __ and the normal name is an alias. */
21959#if defined (__stub_remove) || defined (__stub___remove)
21960choke me
21961#else
e6cc62c6
VS
21962char (*f) () = remove;
21963#endif
21964#ifdef __cplusplus
21965}
90dd450c 21966#endif
55e80573 21967
e6cc62c6
VS
21968int
21969main ()
21970{
21971return f != remove;
21972 ;
21973 return 0;
21974}
21975_ACEOF
21976rm -f conftest.$ac_objext conftest$ac_exeext
21977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21978 (eval $ac_link) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ac_cv_func_remove=yes
21989else
21990 echo "$as_me: failed program was:" >&5
21991sed 's/^/| /' conftest.$ac_ext >&5
21992
21993ac_cv_func_remove=no
21994fi
21995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21996fi
21997echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21998echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21999
90dd450c 22000 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22001 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22002echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22003if test "${ac_cv_lib_posix_remove+set}" = set; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22005else
e6cc62c6 22006 ac_check_lib_save_LIBS=$LIBS
90dd450c 22007LIBS="-lposix $LIBS"
e6cc62c6
VS
22008cat >conftest.$ac_ext <<_ACEOF
22009#line $LINENO "configure"
22010/* confdefs.h. */
22011_ACEOF
22012cat confdefs.h >>conftest.$ac_ext
22013cat >>conftest.$ac_ext <<_ACEOF
22014/* end confdefs.h. */
22015
90dd450c 22016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22017#ifdef __cplusplus
22018extern "C"
22019#endif
90dd450c 22020/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22021 builtin and then its argument prototype would still apply. */
22022char remove ();
22023int
22024main ()
22025{
22026remove ();
22027 ;
22028 return 0;
22029}
22030_ACEOF
22031rm -f conftest.$ac_objext conftest$ac_exeext
22032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22033 (eval $ac_link) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } &&
22037 { ac_try='test -s conftest$ac_exeext'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 ac_cv_lib_posix_remove=yes
22044else
22045 echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048ac_cv_lib_posix_remove=no
22049fi
22050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22051LIBS=$ac_check_lib_save_LIBS
22052fi
22053echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22054echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22055if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22057fi
f6bcfd97 22058
6fa882bd
RR
22059 fi
22060
90dd450c 22061 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22062 echo "$as_me:$LINENO: checking for shmat" >&5
22063echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22064if test "${ac_cv_func_shmat+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22066else
22067 cat >conftest.$ac_ext <<_ACEOF
22068#line $LINENO "configure"
22069/* confdefs.h. */
22070_ACEOF
22071cat confdefs.h >>conftest.$ac_ext
22072cat >>conftest.$ac_ext <<_ACEOF
22073/* end confdefs.h. */
90dd450c 22074/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22075 which can conflict with char shmat (); below.
22076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22077 <limits.h> exists even on freestanding compilers. */
22078#ifdef __STDC__
22079# include <limits.h>
22080#else
22081# include <assert.h>
22082#endif
90dd450c 22083/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22084#ifdef __cplusplus
22085extern "C"
22086{
22087#endif
90dd450c 22088/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22089 builtin and then its argument prototype would still apply. */
22090char shmat ();
90dd450c
VZ
22091/* The GNU C library defines this for functions which it implements
22092 to always fail with ENOSYS. Some functions are actually named
22093 something starting with __ and the normal name is an alias. */
22094#if defined (__stub_shmat) || defined (__stub___shmat)
22095choke me
22096#else
e6cc62c6
VS
22097char (*f) () = shmat;
22098#endif
22099#ifdef __cplusplus
22100}
90dd450c 22101#endif
10f2d63a 22102
e6cc62c6
VS
22103int
22104main ()
22105{
22106return f != shmat;
22107 ;
22108 return 0;
22109}
22110_ACEOF
22111rm -f conftest.$ac_objext conftest$ac_exeext
22112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22113 (eval $ac_link) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
22117 { ac_try='test -s conftest$ac_exeext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_func_shmat=yes
22124else
22125 echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128ac_cv_func_shmat=no
22129fi
22130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22131fi
22132echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22133echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22134
90dd450c 22135 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22136 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22137echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22138if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22140else
e6cc62c6 22141 ac_check_lib_save_LIBS=$LIBS
90dd450c 22142LIBS="-lipc $LIBS"
e6cc62c6
VS
22143cat >conftest.$ac_ext <<_ACEOF
22144#line $LINENO "configure"
22145/* confdefs.h. */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h. */
22150
8284b0c5 22151/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22152#ifdef __cplusplus
22153extern "C"
22154#endif
90dd450c 22155/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22156 builtin and then its argument prototype would still apply. */
22157char shmat ();
22158int
22159main ()
22160{
22161shmat ();
22162 ;
22163 return 0;
22164}
22165_ACEOF
22166rm -f conftest.$ac_objext conftest$ac_exeext
22167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168 (eval $ac_link) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } &&
22172 { ac_try='test -s conftest$ac_exeext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_lib_ipc_shmat=yes
22179else
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183ac_cv_lib_ipc_shmat=no
22184fi
22185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22186LIBS=$ac_check_lib_save_LIBS
22187fi
22188echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22189echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22190if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22192fi
22193
d558c907 22194 fi
90dd450c 22195 fi
3a922bb4 22196
90dd450c 22197 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22198 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22199 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22200 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22201 # check for ICE first), but we must link in the order -lSM -lICE or
22202 # we get undefined symbols. So assume we have SM if we have ICE.
22203 # These have to be linked with before -lX11, unlike the other
22204 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22205 # John Interrante, Karl Berry
22206 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22207echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22208if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210else
22211 ac_check_lib_save_LIBS=$LIBS
f09359cf 22212LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22213cat >conftest.$ac_ext <<_ACEOF
22214#line $LINENO "configure"
22215/* confdefs.h. */
22216_ACEOF
22217cat confdefs.h >>conftest.$ac_ext
22218cat >>conftest.$ac_ext <<_ACEOF
22219/* end confdefs.h. */
22220
90dd450c 22221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22222#ifdef __cplusplus
22223extern "C"
22224#endif
90dd450c 22225/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22226 builtin and then its argument prototype would still apply. */
22227char IceConnectionNumber ();
22228int
22229main ()
22230{
22231IceConnectionNumber ();
22232 ;
22233 return 0;
22234}
22235_ACEOF
22236rm -f conftest.$ac_objext conftest$ac_exeext
22237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22238 (eval $ac_link) 2>&5
22239 ac_status=$?
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -s conftest$ac_exeext'
22243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244 (eval $ac_try) 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 ac_cv_lib_ICE_IceConnectionNumber=yes
22249else
22250 echo "$as_me: failed program was:" >&5
22251sed 's/^/| /' conftest.$ac_ext >&5
22252
22253ac_cv_lib_ICE_IceConnectionNumber=no
22254fi
22255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22256LIBS=$ac_check_lib_save_LIBS
22257fi
22258echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22259echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22260if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22261 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22262fi
10f2d63a 22263
e6cc62c6 22264 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22265
22266fi
22267
8284b0c5 22268
90dd450c 22269 if test "$no_x" = "yes"; then
e6cc62c6
VS
22270 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22271echo "$as_me: error: X11 not found" >&2;}
22272 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22273 fi
22274
22275 GUI_TK_LIBRARY="$X_LIBS"
22276 TOOLKIT_INCLUDE="$X_CFLAGS"
22277 AFMINSTALL=afminstall
22278 COMPILED_X_PROGRAM=0
22279
21d1c967 22280 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22281 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22282echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22283 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22284 echo "$as_me:$LINENO: result: not found" >&5
22285echo "${ECHO_T}not found" >&6
22286 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22287echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22288 { (exit 1); exit 1; }; }
90dd450c 22289 else
e6cc62c6
VS
22290 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22291echo "${ECHO_T}$MICROWIN" >&6
22292 cat >>confdefs.h <<\_ACEOF
21d1c967 22293#define wxUSE_NANOX 1
e6cc62c6 22294_ACEOF
21d1c967 22295
90dd450c
VZ
22296 fi
22297 fi
22298
22299 xpm_link=
e6cc62c6
VS
22300 echo "$as_me:$LINENO: checking for Xpm library" >&5
22301echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22302
90dd450c 22303ac_find_libraries=
2b5f62a0 22304for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22305 do
22306 for ac_extension in a so sl dylib; do
22307 if test -f "$ac_dir/libXpm.$ac_extension"; then
22308 ac_find_libraries=$ac_dir
22309 break 2
22310 fi
22311 done
22312 done
22313
22314 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22315
90dd450c
VZ
22316 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22317 result=$?
22318 if test $result = 0; then
22319 ac_path_to_link=""
22320 else
22321 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22322 fi
90dd450c 22323
21d1c967
GD
22324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22325 xpm_link=" -lXpm"
e6cc62c6 22326 cat >>confdefs.h <<\_ACEOF
21d1c967 22327#define wxHAVE_LIB_XPM 1
e6cc62c6 22328_ACEOF
90dd450c 22329
e6cc62c6
VS
22330 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22331echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22332 else
e6cc62c6
VS
22333 cat >conftest.$ac_ext <<_ACEOF
22334#line $LINENO "configure"
22335/* confdefs.h. */
22336_ACEOF
22337cat confdefs.h >>conftest.$ac_ext
22338cat >>conftest.$ac_ext <<_ACEOF
22339/* end confdefs.h. */
90dd450c 22340
21d1c967 22341 #include <X11/xpm.h>
e6cc62c6
VS
22342
22343int
22344main ()
22345{
6f72b082 22346
21d1c967
GD
22347 int version;
22348 version = XpmLibraryVersion();
e6cc62c6
VS
22349
22350 ;
22351 return 0;
22352}
22353_ACEOF
22354rm -f conftest.$ac_objext
22355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22356 (eval $ac_compile) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -s conftest.$ac_objext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366
21d1c967 22367 xpm_link=" -lXpm"
e6cc62c6 22368 cat >>confdefs.h <<\_ACEOF
21d1c967 22369#define wxHAVE_LIB_XPM 1
e6cc62c6 22370_ACEOF
90dd450c 22371
e6cc62c6
VS
22372 echo "$as_me:$LINENO: result: found in default search path" >&5
22373echo "${ECHO_T}found in default search path" >&6
21d1c967 22374 COMPILED_X_PROGRAM=0
e6cc62c6 22375
21d1c967 22376else
e6cc62c6
VS
22377 echo "$as_me: failed program was:" >&5
22378sed 's/^/| /' conftest.$ac_ext >&5
22379
22380
22381 echo "$as_me:$LINENO: result: no" >&5
22382echo "${ECHO_T}no" >&6
22383 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22384echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22385
22386
6f72b082 22387fi
e6cc62c6 22388rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22389 fi
90dd450c 22390
e6cc62c6
VS
22391 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22392echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22393if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22395else
e6cc62c6 22396 ac_check_lib_save_LIBS=$LIBS
f7f78039 22397LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22398cat >conftest.$ac_ext <<_ACEOF
22399#line $LINENO "configure"
22400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
22405
f7f78039 22406/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22407#ifdef __cplusplus
22408extern "C"
22409#endif
f7f78039 22410/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22411 builtin and then its argument prototype would still apply. */
22412char XShapeQueryExtension ();
22413int
22414main ()
22415{
22416XShapeQueryExtension ();
22417 ;
22418 return 0;
22419}
22420_ACEOF
22421rm -f conftest.$ac_objext conftest$ac_exeext
22422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22423 (eval $ac_link) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
22427 { ac_try='test -s conftest$ac_exeext'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 ac_cv_lib_Xext_XShapeQueryExtension=yes
22434else
22435 echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
22438ac_cv_lib_Xext_XShapeQueryExtension=no
22439fi
22440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22441LIBS=$ac_check_lib_save_LIBS
22442fi
22443echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22444echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22445if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22446
f7f78039
MB
22447 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22448 wxHAVE_XEXT_LIB=1
e6cc62c6 22449
f7f78039
MB
22450fi
22451
22452
2b5f62a0 22453 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22454
2b5f62a0 22455 succeeded=no
90dd450c 22456
2b5f62a0
VZ
22457 if test -z "$PKG_CONFIG"; then
22458 # Extract the first word of "pkg-config", so it can be a program name with args.
22459set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22460echo "$as_me:$LINENO: checking for $ac_word" >&5
22461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22462if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22464else
e6cc62c6
VS
22465 case $PKG_CONFIG in
22466 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22468 ;;
2b5f62a0 22469 *)
e6cc62c6
VS
22470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22471for as_dir in $PATH
22472do
22473 IFS=$as_save_IFS
22474 test -z "$as_dir" && as_dir=.
22475 for ac_exec_ext in '' $ac_executable_extensions; do
22476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22477 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22479 break 2
22480 fi
22481done
22482done
22483
2b5f62a0
VZ
22484 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22485 ;;
22486esac
22487fi
e6cc62c6
VS
22488PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22489
2b5f62a0 22490if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22491 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22492echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22493else
e6cc62c6
VS
22494 echo "$as_me:$LINENO: result: no" >&5
22495echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22496fi
22497
22498 fi
22499
22500 if test "$PKG_CONFIG" = "no" ; then
22501 echo "*** The pkg-config script could not be found. Make sure it is"
22502 echo "*** in your path, or set the PKG_CONFIG environment variable"
22503 echo "*** to the full path to pkg-config."
22504 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22505 else
22506 PKG_CONFIG_MIN_VERSION=0.9.0
22507 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22508 echo "$as_me:$LINENO: checking for pangox" >&5
22509echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22510
22511 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22512 echo "$as_me:$LINENO: result: yes" >&5
22513echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22514 succeeded=yes
22515
e6cc62c6
VS
22516 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22517echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22518 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22519 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22520echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22521
e6cc62c6
VS
22522 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22523echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22524 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22525 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22526echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22527 else
22528 PANGOX_CFLAGS=""
22529 PANGOX_LIBS=""
e6cc62c6 22530 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22531 ## do set a variable so people can do so.
22532 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22533
2b5f62a0
VZ
22534 fi
22535
e6cc62c6
VS
22536
22537
2b5f62a0
VZ
22538 else
22539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22541 fi
22542 fi
22543
22544 if test $succeeded = yes; then
e6cc62c6 22545
2b5f62a0 22546 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22547 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22548
2b5f62a0 22549 else
e6cc62c6
VS
22550
22551 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22552echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22553 { (exit 1); exit 1; }; }
22554
22555
2b5f62a0
VZ
22556 fi
22557
e6cc62c6 22558
2b5f62a0
VZ
22559 succeeded=no
22560
22561 if test -z "$PKG_CONFIG"; then
22562 # Extract the first word of "pkg-config", so it can be a program name with args.
22563set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22564echo "$as_me:$LINENO: checking for $ac_word" >&5
22565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22566if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22568else
e6cc62c6
VS
22569 case $PKG_CONFIG in
22570 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22572 ;;
2b5f62a0 22573 *)
e6cc62c6
VS
22574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575for as_dir in $PATH
22576do
22577 IFS=$as_save_IFS
22578 test -z "$as_dir" && as_dir=.
22579 for ac_exec_ext in '' $ac_executable_extensions; do
22580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22583 break 2
22584 fi
22585done
22586done
22587
2b5f62a0
VZ
22588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22589 ;;
22590esac
22591fi
e6cc62c6
VS
22592PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22593
2b5f62a0 22594if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22595 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22596echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22597else
e6cc62c6
VS
22598 echo "$as_me:$LINENO: result: no" >&5
22599echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22600fi
22601
22602 fi
22603
22604 if test "$PKG_CONFIG" = "no" ; then
22605 echo "*** The pkg-config script could not be found. Make sure it is"
22606 echo "*** in your path, or set the PKG_CONFIG environment variable"
22607 echo "*** to the full path to pkg-config."
22608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22609 else
22610 PKG_CONFIG_MIN_VERSION=0.9.0
22611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22612 echo "$as_me:$LINENO: checking for pangoft2" >&5
22613echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22614
22615 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22616 echo "$as_me:$LINENO: result: yes" >&5
22617echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22618 succeeded=yes
22619
e6cc62c6
VS
22620 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22621echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22622 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22623 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22624echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22625
e6cc62c6
VS
22626 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22627echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22628 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22629 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22630echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22631 else
22632 PANGOFT2_CFLAGS=""
22633 PANGOFT2_LIBS=""
e6cc62c6 22634 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22635 ## do set a variable so people can do so.
22636 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22637
2b5f62a0
VZ
22638 fi
22639
e6cc62c6
VS
22640
22641
2b5f62a0
VZ
22642 else
22643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22645 fi
22646 fi
22647
22648 if test $succeeded = yes; then
e6cc62c6 22649
2b5f62a0 22650 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22651 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22652
2b5f62a0 22653 else
e6cc62c6
VS
22654
22655 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22656echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22657 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22658
22659
2b5f62a0
VZ
22660 fi
22661
e6cc62c6 22662
2b5f62a0
VZ
22663 succeeded=no
22664
22665 if test -z "$PKG_CONFIG"; then
22666 # Extract the first word of "pkg-config", so it can be a program name with args.
22667set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22668echo "$as_me:$LINENO: checking for $ac_word" >&5
22669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22670if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22672else
e6cc62c6
VS
22673 case $PKG_CONFIG in
22674 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22676 ;;
2b5f62a0 22677 *)
e6cc62c6
VS
22678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22679for as_dir in $PATH
22680do
22681 IFS=$as_save_IFS
22682 test -z "$as_dir" && as_dir=.
22683 for ac_exec_ext in '' $ac_executable_extensions; do
22684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22687 break 2
22688 fi
22689done
22690done
22691
2b5f62a0
VZ
22692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22693 ;;
22694esac
22695fi
e6cc62c6
VS
22696PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22697
2b5f62a0 22698if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22699 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22700echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22701else
e6cc62c6
VS
22702 echo "$as_me:$LINENO: result: no" >&5
22703echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22704fi
22705
22706 fi
22707
22708 if test "$PKG_CONFIG" = "no" ; then
22709 echo "*** The pkg-config script could not be found. Make sure it is"
22710 echo "*** in your path, or set the PKG_CONFIG environment variable"
22711 echo "*** to the full path to pkg-config."
22712 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22713 else
22714 PKG_CONFIG_MIN_VERSION=0.9.0
22715 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22716 echo "$as_me:$LINENO: checking for pangoxft" >&5
22717echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22718
22719 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22720 echo "$as_me:$LINENO: result: yes" >&5
22721echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22722 succeeded=yes
22723
e6cc62c6
VS
22724 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22725echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22726 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22727 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22728echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22729
e6cc62c6
VS
22730 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22731echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22732 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22734echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22735 else
22736 PANGOXFT_CFLAGS=""
22737 PANGOXFT_LIBS=""
e6cc62c6 22738 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22739 ## do set a variable so people can do so.
22740 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22741
2b5f62a0
VZ
22742 fi
22743
e6cc62c6
VS
22744
22745
2b5f62a0
VZ
22746 else
22747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22749 fi
22750 fi
22751
22752 if test $succeeded = yes; then
e6cc62c6 22753
2b5f62a0 22754 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22755 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22756
2b5f62a0 22757 else
e6cc62c6
VS
22758
22759 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22760echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22761
22762
2b5f62a0
VZ
22763 fi
22764
22765 fi
22766
22767 wxUSE_UNIVERSAL="yes"
22768
22769 if test "$wxUSE_NANOX" = "yes"; then
22770 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22771 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
22772 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22773 else
22774 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22775 fi
22776
22777 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22778 TOOLKIT=X11
22779 GUIDIST=X11_DIST
22780 fi
22781
21d1c967
GD
22782 if test "$wxUSE_MOTIF" = 1; then
22783 if test "$no_x" = yes; then
22784 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22785
22786cat >>confdefs.h <<\_ACEOF
21d1c967 22787#define X_DISPLAY_MISSING 1
e6cc62c6 22788_ACEOF
21d1c967
GD
22789
22790 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22791else
22792 if test -n "$x_includes"; then
22793 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22794 fi
22795
21d1c967
GD
22796 # It would also be nice to do this for all -L options, not just this one.
22797 if test -n "$x_libraries"; then
22798 X_LIBS="$X_LIBS -L$x_libraries"
22799 # For Solaris; some versions of Sun CC require a space after -R and
22800 # others require no space. Words are not sufficient . . . .
e6cc62c6 22801 case `(uname -sr) 2>/dev/null` in
21d1c967 22802 "SunOS 5"*)
e6cc62c6
VS
22803 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22804echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22805 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22806 cat >conftest.$ac_ext <<_ACEOF
22807#line $LINENO "configure"
22808/* confdefs.h. */
22809_ACEOF
22810cat confdefs.h >>conftest.$ac_ext
22811cat >>conftest.$ac_ext <<_ACEOF
22812/* end confdefs.h. */
22813
22814int
22815main ()
22816{
21d1c967 22817
e6cc62c6
VS
22818 ;
22819 return 0;
22820}
22821_ACEOF
22822rm -f conftest.$ac_objext conftest$ac_exeext
22823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22824 (eval $ac_link) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
22828 { ac_try='test -s conftest$ac_exeext'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }; then
21d1c967 22834 ac_R_nospace=yes
698dcdb6 22835else
e6cc62c6
VS
22836 echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839ac_R_nospace=no
10f2d63a 22840fi
e6cc62c6 22841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22842 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22843 echo "$as_me:$LINENO: result: no" >&5
22844echo "${ECHO_T}no" >&6
21d1c967
GD
22845 X_LIBS="$X_LIBS -R$x_libraries"
22846 else
22847 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22848 cat >conftest.$ac_ext <<_ACEOF
22849#line $LINENO "configure"
22850/* confdefs.h. */
22851_ACEOF
22852cat confdefs.h >>conftest.$ac_ext
22853cat >>conftest.$ac_ext <<_ACEOF
22854/* end confdefs.h. */
22855
22856int
22857main ()
22858{
f0c87536 22859
e6cc62c6
VS
22860 ;
22861 return 0;
22862}
22863_ACEOF
22864rm -f conftest.$ac_objext conftest$ac_exeext
22865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22866 (eval $ac_link) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
22870 { ac_try='test -s conftest$ac_exeext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
21d1c967
GD
22876 ac_R_space=yes
22877else
e6cc62c6
VS
22878 echo "$as_me: failed program was:" >&5
22879sed 's/^/| /' conftest.$ac_ext >&5
22880
22881ac_R_space=no
21d1c967 22882fi
e6cc62c6 22883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22884 if test $ac_R_space = yes; then
e6cc62c6
VS
22885 echo "$as_me:$LINENO: result: yes" >&5
22886echo "${ECHO_T}yes" >&6
21d1c967
GD
22887 X_LIBS="$X_LIBS -R $x_libraries"
22888 else
e6cc62c6
VS
22889 echo "$as_me:$LINENO: result: neither works" >&5
22890echo "${ECHO_T}neither works" >&6
21d1c967
GD
22891 fi
22892 fi
e6cc62c6 22893 LIBS=$ac_xsave_LIBS
21d1c967
GD
22894 esac
22895 fi
90dd450c 22896
21d1c967
GD
22897 # Check for system-dependent libraries X programs must link with.
22898 # Do this before checking for the system-independent R6 libraries
22899 # (-lICE), since we may need -lsocket or whatever for X linking.
22900
22901 if test "$ISC" = yes; then
22902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22903 else
e6cc62c6
VS
22904 # Martyn Johnson says this is needed for Ultrix, if the X
22905 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22906 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22907 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22908 cat >conftest.$ac_ext <<_ACEOF
22909#line $LINENO "configure"
22910/* confdefs.h. */
22911_ACEOF
22912cat confdefs.h >>conftest.$ac_ext
22913cat >>conftest.$ac_ext <<_ACEOF
22914/* end confdefs.h. */
22915
247f5006 22916/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22917#ifdef __cplusplus
22918extern "C"
22919#endif
247f5006 22920/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22921 builtin and then its argument prototype would still apply. */
22922char XOpenDisplay ();
22923int
22924main ()
22925{
22926XOpenDisplay ();
22927 ;
22928 return 0;
22929}
22930_ACEOF
22931rm -f conftest.$ac_objext conftest$ac_exeext
22932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22933 (eval $ac_link) 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } &&
22937 { ac_try='test -s conftest$ac_exeext'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 :
22944else
22945 echo "$as_me: failed program was:" >&5
22946sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22947
e6cc62c6
VS
22948echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22949echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22950if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22952else
e6cc62c6
VS
22953 ac_check_lib_save_LIBS=$LIBS
22954LIBS="-ldnet $LIBS"
22955cat >conftest.$ac_ext <<_ACEOF
22956#line $LINENO "configure"
22957/* confdefs.h. */
22958_ACEOF
22959cat confdefs.h >>conftest.$ac_ext
22960cat >>conftest.$ac_ext <<_ACEOF
22961/* end confdefs.h. */
a0b9e27f 22962
e6cc62c6
VS
22963/* Override any gcc2 internal prototype to avoid an error. */
22964#ifdef __cplusplus
22965extern "C"
22966#endif
22967/* We use char because int might match the return type of a gcc2
22968 builtin and then its argument prototype would still apply. */
22969char dnet_ntoa ();
22970int
22971main ()
22972{
22973dnet_ntoa ();
22974 ;
22975 return 0;
22976}
22977_ACEOF
22978rm -f conftest.$ac_objext conftest$ac_exeext
22979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22980 (eval $ac_link) 2>&5
22981 ac_status=$?
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
22984 { ac_try='test -s conftest$ac_exeext'
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22990 ac_cv_lib_dnet_dnet_ntoa=yes
22991else
22992 echo "$as_me: failed program was:" >&5
22993sed 's/^/| /' conftest.$ac_ext >&5
22994
22995ac_cv_lib_dnet_dnet_ntoa=no
22996fi
22997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22998LIBS=$ac_check_lib_save_LIBS
22999fi
23000echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23001echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23002if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23003 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23004fi
0fb0dd83 23005
21d1c967 23006 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23007 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23008echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23009if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23010 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23011else
e6cc62c6 23012 ac_check_lib_save_LIBS=$LIBS
21d1c967 23013LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23014cat >conftest.$ac_ext <<_ACEOF
23015#line $LINENO "configure"
23016/* confdefs.h. */
23017_ACEOF
23018cat confdefs.h >>conftest.$ac_ext
23019cat >>conftest.$ac_ext <<_ACEOF
23020/* end confdefs.h. */
23021
21d1c967 23022/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23023#ifdef __cplusplus
23024extern "C"
23025#endif
21d1c967 23026/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23027 builtin and then its argument prototype would still apply. */
23028char dnet_ntoa ();
23029int
23030main ()
23031{
23032dnet_ntoa ();
23033 ;
23034 return 0;
23035}
23036_ACEOF
23037rm -f conftest.$ac_objext conftest$ac_exeext
23038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23039 (eval $ac_link) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } &&
23043 { ac_try='test -s conftest$ac_exeext'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; }; then
23049 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23050else
23051 echo "$as_me: failed program was:" >&5
23052sed 's/^/| /' conftest.$ac_ext >&5
23053
23054ac_cv_lib_dnet_stub_dnet_ntoa=no
23055fi
23056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23057LIBS=$ac_check_lib_save_LIBS
23058fi
23059echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23060echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23061if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23062 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23063fi
23064
21d1c967 23065 fi
e6cc62c6
VS
23066fi
23067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23068 LIBS="$ac_xsave_LIBS"
90dd450c 23069
21d1c967
GD
23070 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23071 # to get the SysV transport functions.
e6cc62c6 23072 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23073 # needs -lnsl.
23074 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23075 # on Irix 5.2, according to T.E. Dickey.
23076 # The functions gethostbyname, getservbyname, and inet_addr are
23077 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23078 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23079echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23080if test "${ac_cv_func_gethostbyname+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083 cat >conftest.$ac_ext <<_ACEOF
23084#line $LINENO "configure"
23085/* confdefs.h. */
23086_ACEOF
23087cat confdefs.h >>conftest.$ac_ext
23088cat >>conftest.$ac_ext <<_ACEOF
23089/* end confdefs.h. */
21d1c967 23090/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23091 which can conflict with char gethostbyname (); below.
23092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23093 <limits.h> exists even on freestanding compilers. */
23094#ifdef __STDC__
23095# include <limits.h>
23096#else
23097# include <assert.h>
23098#endif
21d1c967 23099/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23100#ifdef __cplusplus
23101extern "C"
23102{
23103#endif
21d1c967 23104/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23105 builtin and then its argument prototype would still apply. */
23106char gethostbyname ();
21d1c967
GD
23107/* The GNU C library defines this for functions which it implements
23108 to always fail with ENOSYS. Some functions are actually named
23109 something starting with __ and the normal name is an alias. */
23110#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23111choke me
23112#else
e6cc62c6
VS
23113char (*f) () = gethostbyname;
23114#endif
23115#ifdef __cplusplus
23116}
21d1c967 23117#endif
90dd450c 23118
e6cc62c6
VS
23119int
23120main ()
23121{
23122return f != gethostbyname;
23123 ;
23124 return 0;
23125}
23126_ACEOF
23127rm -f conftest.$ac_objext conftest$ac_exeext
23128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23129 (eval $ac_link) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } &&
23133 { ac_try='test -s conftest$ac_exeext'
23134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23135 (eval $ac_try) 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); }; }; then
23139 ac_cv_func_gethostbyname=yes
23140else
23141 echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
23144ac_cv_func_gethostbyname=no
23145fi
23146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23147fi
23148echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23149echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23150
21d1c967 23151 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23152 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23153echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23154if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23156else
e6cc62c6 23157 ac_check_lib_save_LIBS=$LIBS
21d1c967 23158LIBS="-lnsl $LIBS"
e6cc62c6
VS
23159cat >conftest.$ac_ext <<_ACEOF
23160#line $LINENO "configure"
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
23166
21d1c967 23167/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23168#ifdef __cplusplus
23169extern "C"
23170#endif
21d1c967 23171/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23172 builtin and then its argument prototype would still apply. */
23173char gethostbyname ();
23174int
23175main ()
23176{
23177gethostbyname ();
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182rm -f conftest.$ac_objext conftest$ac_exeext
23183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23184 (eval $ac_link) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } &&
23188 { ac_try='test -s conftest$ac_exeext'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 ac_cv_lib_nsl_gethostbyname=yes
23195else
23196 echo "$as_me: failed program was:" >&5
23197sed 's/^/| /' conftest.$ac_ext >&5
23198
23199ac_cv_lib_nsl_gethostbyname=no
23200fi
23201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23202LIBS=$ac_check_lib_save_LIBS
23203fi
23204echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23205echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23206if test $ac_cv_lib_nsl_gethostbyname = yes; then
23207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23208fi
247f5006 23209
e6cc62c6
VS
23210 if test $ac_cv_lib_nsl_gethostbyname = no; then
23211 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23212echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23213if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23215else
e6cc62c6
VS
23216 ac_check_lib_save_LIBS=$LIBS
23217LIBS="-lbsd $LIBS"
23218cat >conftest.$ac_ext <<_ACEOF
23219#line $LINENO "configure"
23220/* confdefs.h. */
23221_ACEOF
23222cat confdefs.h >>conftest.$ac_ext
23223cat >>conftest.$ac_ext <<_ACEOF
23224/* end confdefs.h. */
23225
23226/* Override any gcc2 internal prototype to avoid an error. */
23227#ifdef __cplusplus
23228extern "C"
23229#endif
23230/* We use char because int might match the return type of a gcc2
23231 builtin and then its argument prototype would still apply. */
23232char gethostbyname ();
23233int
23234main ()
23235{
23236gethostbyname ();
23237 ;
23238 return 0;
23239}
23240_ACEOF
23241rm -f conftest.$ac_objext conftest$ac_exeext
23242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23243 (eval $ac_link) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -s conftest$ac_exeext'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 ac_cv_lib_bsd_gethostbyname=yes
23254else
23255 echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258ac_cv_lib_bsd_gethostbyname=no
23259fi
23260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23261LIBS=$ac_check_lib_save_LIBS
23262fi
23263echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23264echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23265if test $ac_cv_lib_bsd_gethostbyname = yes; then
23266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23267fi
90dd450c 23268
e6cc62c6 23269 fi
90dd450c
VZ
23270 fi
23271
21d1c967
GD
23272 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23273 # socket/setsockopt and other routines are undefined under SCO ODT
23274 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23275 # on later versions), says Simon Leinen: it contains gethostby*
23276 # variants that don't use the name server (or something). -lsocket
23277 # must be given before -lnsl if both are needed. We assume that
23278 # if connect needs -lnsl, so does gethostbyname.
23279 echo "$as_me:$LINENO: checking for connect" >&5
23280echo $ECHO_N "checking for connect... $ECHO_C" >&6
23281if test "${ac_cv_func_connect+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 cat >conftest.$ac_ext <<_ACEOF
23285#line $LINENO "configure"
23286/* confdefs.h. */
23287_ACEOF
23288cat confdefs.h >>conftest.$ac_ext
23289cat >>conftest.$ac_ext <<_ACEOF
23290/* end confdefs.h. */
21d1c967 23291/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23292 which can conflict with char connect (); below.
23293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23294 <limits.h> exists even on freestanding compilers. */
23295#ifdef __STDC__
23296# include <limits.h>
23297#else
23298# include <assert.h>
23299#endif
21d1c967 23300/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23301#ifdef __cplusplus
23302extern "C"
23303{
23304#endif
21d1c967 23305/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23306 builtin and then its argument prototype would still apply. */
23307char connect ();
21d1c967
GD
23308/* The GNU C library defines this for functions which it implements
23309 to always fail with ENOSYS. Some functions are actually named
23310 something starting with __ and the normal name is an alias. */
23311#if defined (__stub_connect) || defined (__stub___connect)
23312choke me
23313#else
e6cc62c6
VS
23314char (*f) () = connect;
23315#endif
23316#ifdef __cplusplus
23317}
21d1c967 23318#endif
90dd450c 23319
e6cc62c6
VS
23320int
23321main ()
23322{
23323return f != connect;
23324 ;
23325 return 0;
23326}
23327_ACEOF
23328rm -f conftest.$ac_objext conftest$ac_exeext
23329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330 (eval $ac_link) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -s conftest$ac_exeext'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_func_connect=yes
23341else
23342 echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345ac_cv_func_connect=no
23346fi
23347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23348fi
23349echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23350echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23351
21d1c967 23352 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23353 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23354echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23355if test "${ac_cv_lib_socket_connect+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23357else
e6cc62c6 23358 ac_check_lib_save_LIBS=$LIBS
21d1c967 23359LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23360cat >conftest.$ac_ext <<_ACEOF
23361#line $LINENO "configure"
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
23367
21d1c967 23368/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23369#ifdef __cplusplus
23370extern "C"
23371#endif
21d1c967 23372/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23373 builtin and then its argument prototype would still apply. */
23374char connect ();
23375int
23376main ()
23377{
23378connect ();
23379 ;
23380 return 0;
23381}
23382_ACEOF
23383rm -f conftest.$ac_objext conftest$ac_exeext
23384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23385 (eval $ac_link) 2>&5
23386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } &&
23389 { ac_try='test -s conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 ac_cv_lib_socket_connect=yes
23396else
23397 echo "$as_me: failed program was:" >&5
23398sed 's/^/| /' conftest.$ac_ext >&5
23399
23400ac_cv_lib_socket_connect=no
23401fi
23402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23403LIBS=$ac_check_lib_save_LIBS
23404fi
23405echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23406echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23407if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23408 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23409fi
90dd450c 23410
21d1c967 23411 fi
90dd450c 23412
e6cc62c6
VS
23413 # Guillermo Gomez says -lposix is necessary on A/UX.
23414 echo "$as_me:$LINENO: checking for remove" >&5
23415echo $ECHO_N "checking for remove... $ECHO_C" >&6
23416if test "${ac_cv_func_remove+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23418else
23419 cat >conftest.$ac_ext <<_ACEOF
23420#line $LINENO "configure"
23421/* confdefs.h. */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h. */
21d1c967 23426/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23427 which can conflict with char remove (); below.
23428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23429 <limits.h> exists even on freestanding compilers. */
23430#ifdef __STDC__
23431# include <limits.h>
23432#else
23433# include <assert.h>
23434#endif
21d1c967 23435/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23436#ifdef __cplusplus
23437extern "C"
23438{
23439#endif
21d1c967 23440/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23441 builtin and then its argument prototype would still apply. */
23442char remove ();
21d1c967
GD
23443/* The GNU C library defines this for functions which it implements
23444 to always fail with ENOSYS. Some functions are actually named
23445 something starting with __ and the normal name is an alias. */
23446#if defined (__stub_remove) || defined (__stub___remove)
23447choke me
23448#else
e6cc62c6
VS
23449char (*f) () = remove;
23450#endif
23451#ifdef __cplusplus
23452}
21d1c967 23453#endif
90dd450c 23454
e6cc62c6
VS
23455int
23456main ()
23457{
23458return f != remove;
23459 ;
23460 return 0;
23461}
23462_ACEOF
23463rm -f conftest.$ac_objext conftest$ac_exeext
23464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23465 (eval $ac_link) 2>&5
23466 ac_status=$?
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try='test -s conftest$ac_exeext'
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 ac_cv_func_remove=yes
23476else
23477 echo "$as_me: failed program was:" >&5
23478sed 's/^/| /' conftest.$ac_ext >&5
23479
23480ac_cv_func_remove=no
23481fi
23482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23483fi
23484echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23485echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23486
21d1c967 23487 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23488 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23489echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23490if test "${ac_cv_lib_posix_remove+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23492else
e6cc62c6 23493 ac_check_lib_save_LIBS=$LIBS
21d1c967 23494LIBS="-lposix $LIBS"
e6cc62c6
VS
23495cat >conftest.$ac_ext <<_ACEOF
23496#line $LINENO "configure"
23497/* confdefs.h. */
23498_ACEOF
23499cat confdefs.h >>conftest.$ac_ext
23500cat >>conftest.$ac_ext <<_ACEOF
23501/* end confdefs.h. */
23502
21d1c967 23503/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23504#ifdef __cplusplus
23505extern "C"
23506#endif
21d1c967 23507/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23508 builtin and then its argument prototype would still apply. */
23509char remove ();
23510int
23511main ()
23512{
23513remove ();
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext conftest$ac_exeext
23519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23520 (eval $ac_link) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } &&
23524 { ac_try='test -s conftest$ac_exeext'
23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 ac_cv_lib_posix_remove=yes
23531else
23532 echo "$as_me: failed program was:" >&5
23533sed 's/^/| /' conftest.$ac_ext >&5
23534
23535ac_cv_lib_posix_remove=no
23536fi
23537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23538LIBS=$ac_check_lib_save_LIBS
23539fi
23540echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23541echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23542if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23543 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23544fi
19bc6aad 23545
90dd450c 23546 fi
19bc6aad 23547
21d1c967 23548 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23549 echo "$as_me:$LINENO: checking for shmat" >&5
23550echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23551if test "${ac_cv_func_shmat+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553else
23554 cat >conftest.$ac_ext <<_ACEOF
23555#line $LINENO "configure"
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
21d1c967 23561/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23562 which can conflict with char shmat (); below.
23563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23564 <limits.h> exists even on freestanding compilers. */
23565#ifdef __STDC__
23566# include <limits.h>
23567#else
23568# include <assert.h>
23569#endif
21d1c967 23570/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23571#ifdef __cplusplus
23572extern "C"
23573{
23574#endif
21d1c967 23575/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23576 builtin and then its argument prototype would still apply. */
23577char shmat ();
21d1c967
GD
23578/* The GNU C library defines this for functions which it implements
23579 to always fail with ENOSYS. Some functions are actually named
23580 something starting with __ and the normal name is an alias. */
23581#if defined (__stub_shmat) || defined (__stub___shmat)
23582choke me
23583#else
e6cc62c6
VS
23584char (*f) () = shmat;
23585#endif
23586#ifdef __cplusplus
23587}
21d1c967 23588#endif
90dd450c 23589
e6cc62c6
VS
23590int
23591main ()
23592{
23593return f != shmat;
23594 ;
23595 return 0;
23596}
23597_ACEOF
23598rm -f conftest.$ac_objext conftest$ac_exeext
23599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23600 (eval $ac_link) 2>&5
23601 ac_status=$?
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
23604 { ac_try='test -s conftest$ac_exeext'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; }; then
23610 ac_cv_func_shmat=yes
23611else
23612 echo "$as_me: failed program was:" >&5
23613sed 's/^/| /' conftest.$ac_ext >&5
23614
23615ac_cv_func_shmat=no
23616fi
23617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23618fi
23619echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23620echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23621
21d1c967 23622 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23623 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23624echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23625if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23627else
e6cc62c6 23628 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23629LIBS="-lipc $LIBS"
e6cc62c6
VS
23630cat >conftest.$ac_ext <<_ACEOF
23631#line $LINENO "configure"
23632/* confdefs.h. */
23633_ACEOF
23634cat confdefs.h >>conftest.$ac_ext
23635cat >>conftest.$ac_ext <<_ACEOF
23636/* end confdefs.h. */
23637
5c6fa7d2 23638/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23639#ifdef __cplusplus
23640extern "C"
23641#endif
5c6fa7d2 23642/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23643 builtin and then its argument prototype would still apply. */
23644char shmat ();
23645int
23646main ()
23647{
23648shmat ();
23649 ;
23650 return 0;
23651}
23652_ACEOF
23653rm -f conftest.$ac_objext conftest$ac_exeext
23654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655 (eval $ac_link) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -s conftest$ac_exeext'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; }; then
23665 ac_cv_lib_ipc_shmat=yes
23666else
23667 echo "$as_me: failed program was:" >&5
23668sed 's/^/| /' conftest.$ac_ext >&5
23669
23670ac_cv_lib_ipc_shmat=no
23671fi
23672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23673LIBS=$ac_check_lib_save_LIBS
23674fi
23675echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23676echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23677if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23679fi
90dd450c 23680
90dd450c 23681 fi
21d1c967 23682 fi
10f2d63a 23683
21d1c967 23684 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23685 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23686 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23687 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23688 # check for ICE first), but we must link in the order -lSM -lICE or
23689 # we get undefined symbols. So assume we have SM if we have ICE.
23690 # These have to be linked with before -lX11, unlike the other
23691 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23692 # John Interrante, Karl Berry
23693 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23694echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23695if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23697else
23698 ac_check_lib_save_LIBS=$LIBS
f09359cf 23699LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23700cat >conftest.$ac_ext <<_ACEOF
23701#line $LINENO "configure"
23702/* confdefs.h. */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h. */
23707
21d1c967 23708/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23709#ifdef __cplusplus
23710extern "C"
23711#endif
21d1c967 23712/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23713 builtin and then its argument prototype would still apply. */
23714char IceConnectionNumber ();
23715int
23716main ()
23717{
23718IceConnectionNumber ();
23719 ;
23720 return 0;
23721}
23722_ACEOF
23723rm -f conftest.$ac_objext conftest$ac_exeext
23724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725 (eval $ac_link) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } &&
23729 { ac_try='test -s conftest$ac_exeext'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 ac_cv_lib_ICE_IceConnectionNumber=yes
23736else
23737 echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740ac_cv_lib_ICE_IceConnectionNumber=no
23741fi
23742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23743LIBS=$ac_check_lib_save_LIBS
23744fi
23745echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23746echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23747if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23748 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23749fi
21d1c967 23750
e6cc62c6 23751 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23752
10f2d63a
VZ
23753fi
23754
8284b0c5 23755
21d1c967 23756 if test "$no_x" = "yes"; then
e6cc62c6
VS
23757 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23758echo "$as_me: error: X11 not found" >&2;}
23759 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23760 fi
23761
2b5f62a0
VZ
23762 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23763 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23764 AFMINSTALL=afminstall
23765 COMPILED_X_PROGRAM=0
23766
e6cc62c6
VS
23767 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23768echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23769
21d1c967 23770ac_find_includes=
2b5f62a0 23771for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23772 do
23773 if test -f "$ac_dir/Xm/Xm.h"; then
23774 ac_find_includes=$ac_dir
23775 break
23776 fi
23777 done
23778
23779 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23780 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23781echo "${ECHO_T}found in $ac_find_includes" >&6
23782
2b5f62a0 23783 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23784 ac_path_to_include=""
23785 else
2b5f62a0
VZ
23786 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23787 result=$?
23788 if test $result = 0; then
23789 ac_path_to_include=""
23790 else
23791 ac_path_to_include=" -I$ac_find_includes"
23792 fi
dd0e4a90
VZ
23793 fi
23794
23795 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23796 else
e6cc62c6
VS
23797 cat >conftest.$ac_ext <<_ACEOF
23798#line $LINENO "configure"
23799/* confdefs.h. */
23800_ACEOF
23801cat confdefs.h >>conftest.$ac_ext
23802cat >>conftest.$ac_ext <<_ACEOF
23803/* end confdefs.h. */
21d1c967
GD
23804
23805 #include <Xm/Xm.h>
e6cc62c6
VS
23806
23807int
23808main ()
23809{
21d1c967
GD
23810
23811 int version;
23812 version = xmUseVersion;
e6cc62c6
VS
23813
23814 ;
23815 return 0;
23816}
23817_ACEOF
23818rm -f conftest.$ac_objext
23819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23820 (eval $ac_compile) 2>&5
23821 ac_status=$?
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } &&
23824 { ac_try='test -s conftest.$ac_objext'
23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; }; then
23830
23831 echo "$as_me:$LINENO: result: found in default search path" >&5
23832echo "${ECHO_T}found in default search path" >&6
21d1c967 23833 COMPILED_X_PROGRAM=1
e6cc62c6 23834
10f2d63a 23835else
e6cc62c6
VS
23836 echo "$as_me: failed program was:" >&5
23837sed 's/^/| /' conftest.$ac_ext >&5
23838
23839
23840 echo "$as_me:$LINENO: result: no" >&5
23841echo "${ECHO_T}no" >&6
23842 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23843echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23844 { (exit 1); exit 1; }; }
23845
23846
10f2d63a 23847fi
e6cc62c6 23848rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23849 fi
10f2d63a 23850
21d1c967 23851 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23852 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23853echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23854
21d1c967 23855ac_find_libraries=
2b5f62a0 23856for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23857 do
23858 for ac_extension in a so sl dylib; do
23859 if test -f "$ac_dir/libXm.$ac_extension"; then
23860 ac_find_libraries=$ac_dir
23861 break 2
23862 fi
23863 done
23864 done
23865
23866 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23867 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23868echo "${ECHO_T}found at $ac_find_libraries" >&6
23869
21d1c967 23870
21d1c967
GD
23871 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23872 result=$?
23873 if test $result = 0; then
23874 ac_path_to_link=""
23875 else
23876 ac_path_to_link=" -L$ac_find_libraries"
23877 fi
23878
21d1c967 23879 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23880 else
dd0e4a90
VZ
23881 save_CFLAGS=$CFLAGS
23882 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23883
e6cc62c6
VS
23884 cat >conftest.$ac_ext <<_ACEOF
23885#line $LINENO "configure"
23886/* confdefs.h. */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h. */
21d1c967
GD
23891
23892 #include <Xm/Xm.h>
e6cc62c6
VS
23893
23894int
23895main ()
23896{
21d1c967
GD
23897
23898 int version;
23899 version = xmUseVersion;
e6cc62c6
VS
23900
23901 ;
23902 return 0;
23903}
23904_ACEOF
23905rm -f conftest.$ac_objext
23906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907 (eval $ac_compile) 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } &&
23911 { ac_try='test -s conftest.$ac_objext'
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; }; then
23917
23918 echo "$as_me:$LINENO: result: found in default search path" >&5
23919echo "${ECHO_T}found in default search path" >&6
21d1c967 23920 COMPILED_X_PROGRAM=1
e6cc62c6 23921
d836ee96 23922else
e6cc62c6
VS
23923 echo "$as_me: failed program was:" >&5
23924sed 's/^/| /' conftest.$ac_ext >&5
23925
23926
23927 echo "$as_me:$LINENO: result: no" >&5
23928echo "${ECHO_T}no" >&6
23929 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23930echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23931 { (exit 1); exit 1; }; }
23932
23933
d836ee96 23934fi
e6cc62c6 23935rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23936
23937 CFLAGS=$save_CFLAGS
21d1c967
GD
23938 fi
23939 fi
23940
23941 xpm_link=
e6cc62c6
VS
23942 echo "$as_me:$LINENO: checking for Xpm library" >&5
23943echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23944
21d1c967 23945ac_find_libraries=
2b5f62a0 23946for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23947 do
23948 for ac_extension in a so sl dylib; do
23949 if test -f "$ac_dir/libXpm.$ac_extension"; then
23950 ac_find_libraries=$ac_dir
23951 break 2
23952 fi
23953 done
23954 done
23955
23956 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23957
21d1c967
GD
23958 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23959 result=$?
23960 if test $result = 0; then
23961 ac_path_to_link=""
23962 else
23963 ac_path_to_link=" -L$ac_find_libraries"
23964 fi
23965
23966 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23967
21d1c967 23968 xpm_link=" -lXpm"
e6cc62c6 23969 cat >>confdefs.h <<\_ACEOF
21d1c967 23970#define wxHAVE_LIB_XPM 1
e6cc62c6 23971_ACEOF
90dd450c 23972
e6cc62c6
VS
23973 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23974echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23975 else
dd0e4a90
VZ
23976 save_CFLAGS=$CFLAGS
23977 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23978
e6cc62c6
VS
23979 cat >conftest.$ac_ext <<_ACEOF
23980#line $LINENO "configure"
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
21d1c967
GD
23986
23987 #include <X11/xpm.h>
e6cc62c6
VS
23988
23989int
23990main ()
23991{
21d1c967
GD
23992
23993 int version;
23994 version = XpmLibraryVersion();
e6cc62c6
VS
23995
23996 ;
23997 return 0;
23998}
23999_ACEOF
24000rm -f conftest.$ac_objext
24001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24002 (eval $ac_compile) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
24006 { ac_try='test -s conftest.$ac_objext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012
21d1c967 24013 xpm_link=" -lXpm"
e6cc62c6 24014 cat >>confdefs.h <<\_ACEOF
21d1c967 24015#define wxHAVE_LIB_XPM 1
e6cc62c6 24016_ACEOF
21d1c967 24017
e6cc62c6
VS
24018 echo "$as_me:$LINENO: result: found in default search path" >&5
24019echo "${ECHO_T}found in default search path" >&6
21d1c967 24020 COMPILED_X_PROGRAM=0
e6cc62c6 24021
d836ee96 24022else
e6cc62c6
VS
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026
24027 echo "$as_me:$LINENO: result: no" >&5
24028echo "${ECHO_T}no" >&6
24029 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24030echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24031
24032
d836ee96 24033fi
e6cc62c6 24034rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24035
24036 CFLAGS=$save_CFLAGS
21d1c967
GD
24037 fi
24038
e6cc62c6
VS
24039 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24040echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24041 libp_link=""
24042 libsm_ice_link=""
24043 libs_found=0
24044 for libp in "" " -lXp"; do
24045 if test "$libs_found" = "0"; then
24046 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24047 if test "$libs_found" = "0"; then
6a30f1c8
MB
24048 save_LIBS="$LIBS"
24049 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24050 save_CFLAGS=$CFLAGS
24051 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24052
e6cc62c6
VS
24053 cat >conftest.$ac_ext <<_ACEOF
24054#line $LINENO "configure"
24055/* confdefs.h. */
24056_ACEOF
24057cat confdefs.h >>conftest.$ac_ext
24058cat >>conftest.$ac_ext <<_ACEOF
24059/* end confdefs.h. */
17234b26 24060
6a30f1c8
MB
24061 #include <Xm/Xm.h>
24062 #include <Xm/List.h>
e6cc62c6
VS
24063
24064int
24065main ()
24066{
6a30f1c8
MB
24067
24068 XmString string = NULL;
24069 Widget w = NULL;
24070 int position = 0;
24071 XmListAddItem(w, string, position);
e6cc62c6
VS
24072
24073 ;
24074 return 0;
24075}
24076_ACEOF
24077rm -f conftest.$ac_objext conftest$ac_exeext
24078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24079 (eval $ac_link) 2>&5
24080 ac_status=$?
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } &&
24083 { ac_try='test -s conftest$ac_exeext'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; }; then
24089
6a30f1c8
MB
24090 libp_link="$libp"
24091 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24092 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24093echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24094 libs_found=1
e6cc62c6 24095
6a30f1c8 24096else
e6cc62c6
VS
24097 echo "$as_me: failed program was:" >&5
24098sed 's/^/| /' conftest.$ac_ext >&5
24099
24100
24101
6a30f1c8 24102fi
e6cc62c6 24103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24104
6a30f1c8 24105 LIBS="$save_LIBS"
dd0e4a90 24106 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24107 fi
24108 done
24109 fi
24110 done
24111
24112 if test "$libs_found" = "0"; then
e6cc62c6
VS
24113 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24114echo "${ECHO_T}can't find the right libraries" >&6
24115 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24116echo "$as_me: error: can't link a simple motif program" >&2;}
24117 { (exit 1); exit 1; }; }
6a30f1c8
MB
24118 fi
24119
da494b40
MB
24120 save_CFLAGS=$CFLAGS
24121 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24122 echo "$as_me:$LINENO: checking for Motif 2" >&5
24123echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24124 cat >conftest.$ac_ext <<_ACEOF
24125#line $LINENO "configure"
24126/* confdefs.h. */
24127_ACEOF
24128cat confdefs.h >>conftest.$ac_ext
24129cat >>conftest.$ac_ext <<_ACEOF
24130/* end confdefs.h. */
da494b40
MB
24131
24132 #include <Xm/Xm.h>
e6cc62c6
VS
24133
24134int
24135main ()
24136{
da494b40
MB
24137
24138 #if XmVersion < 2000
24139 #error "Not Motif 2"
24140 #endif
e6cc62c6
VS
24141
24142 ;
24143 return 0;
24144}
24145_ACEOF
24146rm -f conftest.$ac_objext
24147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24148 (eval $ac_compile) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } &&
24152 { ac_try='test -s conftest.$ac_objext'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158
24159 cat >>confdefs.h <<\_ACEOF
da494b40 24160#define __WXMOTIF20__ 1
e6cc62c6
VS
24161_ACEOF
24162
24163 echo "$as_me:$LINENO: result: found" >&5
24164echo "${ECHO_T}found" >&6
da494b40 24165
da494b40 24166else
e6cc62c6
VS
24167 echo "$as_me: failed program was:" >&5
24168sed 's/^/| /' conftest.$ac_ext >&5
24169
24170
24171 cat >>confdefs.h <<\_ACEOF
da494b40 24172#define __WXMOTIF20__ 0
e6cc62c6
VS
24173_ACEOF
24174
24175 echo "$as_me:$LINENO: result: not found" >&5
24176echo "${ECHO_T}not found" >&6
da494b40 24177
da494b40 24178fi
e6cc62c6 24179rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24180 CFLAGS=$save_CFLAGS
24181
6a30f1c8 24182 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24183 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24184 TOOLKIT=MOTIF
24185 GUIDIST=MOTIF_DIST
f7f78039
MB
24186 wxHAVE_XEXT_LIB=1
24187 fi
24188
24189 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24190 test "$wxHAVE_XEXT_LIB" = 1; then
24191 save_CFLAGS="$CFLAGS"
24192 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24193
e6cc62c6
VS
24194 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24195echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24196 cat >conftest.$ac_ext <<_ACEOF
24197#line $LINENO "configure"
24198/* confdefs.h. */
24199_ACEOF
24200cat confdefs.h >>conftest.$ac_ext
24201cat >>conftest.$ac_ext <<_ACEOF
24202/* end confdefs.h. */
24203
24204 #include <X11/Xlib.h>
f7f78039 24205 #include <X11/extensions/shape.h>
e6cc62c6
VS
24206
24207int
24208main ()
24209{
f7f78039
MB
24210
24211 int dummy1, dummy2;
24212 XShapeQueryExtension((Display*)NULL,
24213 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24214
24215 ;
24216 return 0;
24217}
24218_ACEOF
24219rm -f conftest.$ac_objext
24220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24221 (eval $ac_compile) 2>&5
24222 ac_status=$?
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); } &&
24225 { ac_try='test -s conftest.$ac_objext'
24226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24227 (eval $ac_try) 2>&5
24228 ac_status=$?
24229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); }; }; then
24231
24232 cat >>confdefs.h <<\_ACEOF
f7f78039 24233#define HAVE_XSHAPE 1
e6cc62c6
VS
24234_ACEOF
24235
24236 echo "$as_me:$LINENO: result: found" >&5
24237echo "${ECHO_T}found" >&6
f7f78039 24238
f7f78039 24239else
e6cc62c6
VS
24240 echo "$as_me: failed program was:" >&5
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
24243
24244 echo "$as_me:$LINENO: result: not found" >&5
24245echo "${ECHO_T}not found" >&6
24246
f7f78039 24247fi
e6cc62c6 24248rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24249 CFLAGS="$save_CFLAGS"
21d1c967
GD
24250 fi
24251
24252 if test "$wxUSE_MAC" = 1; then
0c98a14e 24253 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24254
0c98a14e 24255 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24256 TOOLKIT=MAC
24257 GUIDIST=MACX_DIST
cf615ebb 24258 WXBASEPORT="_carbon"
21d1c967
GD
24259 fi
24260
ac0c4cc3
DE
24261 if test "$wxUSE_COCOA" = 1; then
24262 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24263 TOOLKIT=COCOA
24264 GUIDIST=COCOA_DIST
24265 fi
24266
21d1c967
GD
24267 if test "$wxUSE_PM" = 1; then
24268 TOOLKIT=PM
24269 GUIDIST=GTK_DIST
e6cc62c6
VS
24270 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24271echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24272 wxUSE_THREADS="no"
21d1c967
GD
24273 fi
24274
24275 if test "$TOOLKIT" = "PM" ; then
24276 TOOLKIT_DIR="os2"
24277 else
24278 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24279 fi
24280
24281 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24282
24283 if test "$wxUSE_UNIVERSAL" = "yes"; then
24284 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24285
24286 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24287 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24288
24289 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24290 if test "$wxUSE_X11" = 1; then
24291 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24292 else
24293 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24294 fi
24295 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24296 WIDGET_SET=univ
24297 else
24298 ALL_OBJECTS="\$(GUIOBJS)"
24299 ALL_SOURCES="\$(ALL_SOURCES)"
24300 ALL_HEADERS="\$(ALL_HEADERS)"
24301 fi
24302
24303 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24304
24305 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24306 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24307 fi
24308
24309 if test "$wxUSE_HTML" = "yes"; then
24310 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24311 fi
24312
24313 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24314 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24315 fi
24316 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24317 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24318 fi
24319 if test "$wxUSE_LIBPNG" = "builtin" ; then
24320 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24321 fi
24322
24323 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24324 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24325else
21d1c967
GD
24326 USE_GUI=0
24327
24328 TOOLKIT_DIR="base"
24329
24330 if test "$USE_WIN32" = 1 ; then
24331 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24332 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24333
24334 TOOLKIT="MSW"
24335 else
24336 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24337 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24338 fi
24339
24340 ALL_SOURCES="\$(ALL_SOURCES)"
24341 ALL_HEADERS="\$(ALL_HEADERS)"
24342
24343 PORT_FILES="\${top_srcdir}/src/files.lst"
24344
24345 GUIDIST="BASE_DIST"
24346 DISTDIR="wxBase"
d836ee96
VZ
24347fi
24348
8284b0c5 24349
8647bec6
RG
24350
24351
24352IODBC_C_SRC=""
24353
24354
24355if test "$TOOLKIT" != "MSW" ; then
24356
bb41dcbe 24357 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24358
bb41dcbe 24359 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24360 echo "$as_me:$LINENO: checking for sql.h" >&5
24361echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24362if test "${ac_cv_header_sql_h+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24364fi
24365echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24366echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24367else
24368 # Is the header compilable?
24369echo "$as_me:$LINENO: checking sql.h usability" >&5
24370echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24371cat >conftest.$ac_ext <<_ACEOF
24372#line $LINENO "configure"
24373/* confdefs.h. */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h. */
24378$ac_includes_default
8647bec6 24379#include <sql.h>
e6cc62c6
VS
24380_ACEOF
24381rm -f conftest.$ac_objext
24382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24383 (eval $ac_compile) 2>&5
24384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } &&
24387 { ac_try='test -s conftest.$ac_objext'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24390 ac_status=$?
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; }; then
24393 ac_header_compiler=yes
24394else
24395 echo "$as_me: failed program was:" >&5
24396sed 's/^/| /' conftest.$ac_ext >&5
24397
24398ac_header_compiler=no
24399fi
24400rm -f conftest.$ac_objext conftest.$ac_ext
24401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24402echo "${ECHO_T}$ac_header_compiler" >&6
24403
24404# Is the header present?
24405echo "$as_me:$LINENO: checking sql.h presence" >&5
24406echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24407cat >conftest.$ac_ext <<_ACEOF
24408#line $LINENO "configure"
24409/* confdefs.h. */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h. */
24414#include <sql.h>
24415_ACEOF
24416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24418 ac_status=$?
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } >/dev/null; then
24424 if test -s conftest.err; then
24425 ac_cpp_err=$ac_c_preproc_warn_flag
24426 else
24427 ac_cpp_err=
24428 fi
24429else
24430 ac_cpp_err=yes
24431fi
24432if test -z "$ac_cpp_err"; then
24433 ac_header_preproc=yes
24434else
24435 echo "$as_me: failed program was:" >&5
24436sed 's/^/| /' conftest.$ac_ext >&5
24437
24438 ac_header_preproc=no
24439fi
24440rm -f conftest.err conftest.$ac_ext
24441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24442echo "${ECHO_T}$ac_header_preproc" >&6
24443
24444# So? What about this header?
24445case $ac_header_compiler:$ac_header_preproc in
24446 yes:no )
24447 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24448echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24449 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24450echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24451 (
24452 cat <<\_ASBOX
24453## ------------------------------------ ##
24454## Report this to bug-autoconf@gnu.org. ##
24455## ------------------------------------ ##
24456_ASBOX
24457 ) |
24458 sed "s/^/$as_me: WARNING: /" >&2
24459 ;;
24460 no:yes )
24461 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24462echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24464echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24466echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24467 (
24468 cat <<\_ASBOX
24469## ------------------------------------ ##
24470## Report this to bug-autoconf@gnu.org. ##
24471## ------------------------------------ ##
24472_ASBOX
24473 ) |
24474 sed "s/^/$as_me: WARNING: /" >&2
24475 ;;
24476esac
24477echo "$as_me:$LINENO: checking for sql.h" >&5
24478echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24479if test "${ac_cv_header_sql_h+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24481else
e6cc62c6
VS
24482 ac_cv_header_sql_h=$ac_header_preproc
24483fi
24484echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24485echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24486
bb41dcbe
VS
24487fi
24488if test $ac_cv_header_sql_h = yes; then
24489 found_sql_h=1
8647bec6
RG
24490fi
24491
e6cc62c6 24492
bb41dcbe
VS
24493 if test "x$found_sql_h" = "x1" ; then
24494 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24495echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24496if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24497 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24498else
bb41dcbe
VS
24499 ac_check_lib_save_LIBS=$LIBS
24500LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24501cat >conftest.$ac_ext <<_ACEOF
24502#line $LINENO "configure"
24503/* confdefs.h. */
24504_ACEOF
24505cat confdefs.h >>conftest.$ac_ext
24506cat >>conftest.$ac_ext <<_ACEOF
24507/* end confdefs.h. */
24508
8647bec6 24509/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24510#ifdef __cplusplus
24511extern "C"
24512#endif
8647bec6 24513/* We use char because int might match the return type of a gcc2
e6cc62c6 24514 builtin and then its argument prototype would still apply. */
bb41dcbe 24515char iodbc ();
e6cc62c6
VS
24516int
24517main ()
24518{
bb41dcbe 24519iodbc ();
e6cc62c6
VS
24520 ;
24521 return 0;
24522}
24523_ACEOF
24524rm -f conftest.$ac_objext conftest$ac_exeext
24525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24526 (eval $ac_link) 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } &&
24530 { ac_try='test -s conftest$ac_exeext'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; }; then
bb41dcbe 24536 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24537else
e6cc62c6
VS
24538 echo "$as_me: failed program was:" >&5
24539sed 's/^/| /' conftest.$ac_ext >&5
24540
bb41dcbe 24541ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24542fi
e6cc62c6 24543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24544LIBS=$ac_check_lib_save_LIBS
24545fi
24546echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24547echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24548if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24549 ODBC_LINK=" -liodbc"
24550else
24551
24552 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24553echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24554if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24556else
24557 ac_check_lib_save_LIBS=$LIBS
24558LIBS="-lSQLAllocEnv $LIBS"
24559cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24560#line $LINENO "configure"
24561/* confdefs.h. */
24562_ACEOF
24563cat confdefs.h >>conftest.$ac_ext
24564cat >>conftest.$ac_ext <<_ACEOF
24565/* end confdefs.h. */
24566
8647bec6 24567/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24568#ifdef __cplusplus
24569extern "C"
24570#endif
8647bec6 24571/* We use char because int might match the return type of a gcc2
e6cc62c6 24572 builtin and then its argument prototype would still apply. */
bb41dcbe 24573char unixodbc ();
e6cc62c6
VS
24574int
24575main ()
24576{
bb41dcbe 24577unixodbc ();
e6cc62c6
VS
24578 ;
24579 return 0;
24580}
24581_ACEOF
24582rm -f conftest.$ac_objext conftest$ac_exeext
24583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24584 (eval $ac_link) 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } &&
24588 { ac_try='test -s conftest$ac_exeext'
24589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); }; }; then
bb41dcbe 24594 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24595else
e6cc62c6
VS
24596 echo "$as_me: failed program was:" >&5
24597sed 's/^/| /' conftest.$ac_ext >&5
24598
bb41dcbe 24599ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24600fi
e6cc62c6 24601rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24602LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24603fi
bb41dcbe
VS
24604echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24605echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24606if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24607 ODBC_LINK=" -lunixodbc"
24608else
24609
24610 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24611echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24612if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614else
24615 ac_check_lib_save_LIBS=$LIBS
24616LIBS="-lSQLAllocEnv $LIBS"
24617cat >conftest.$ac_ext <<_ACEOF
24618#line $LINENO "configure"
24619/* confdefs.h. */
24620_ACEOF
24621cat confdefs.h >>conftest.$ac_ext
24622cat >>conftest.$ac_ext <<_ACEOF
24623/* end confdefs.h. */
e6cc62c6 24624
bb41dcbe
VS
24625/* Override any gcc2 internal prototype to avoid an error. */
24626#ifdef __cplusplus
24627extern "C"
24628#endif
24629/* We use char because int might match the return type of a gcc2
24630 builtin and then its argument prototype would still apply. */
24631char odbc ();
24632int
24633main ()
24634{
24635odbc ();
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext conftest$ac_exeext
24641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24642 (eval $ac_link) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } &&
24646 { ac_try='test -s conftest$ac_exeext'
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
24652 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24653else
bb41dcbe
VS
24654 echo "$as_me: failed program was:" >&5
24655sed 's/^/| /' conftest.$ac_ext >&5
24656
24657ac_cv_lib_SQLAllocEnv_odbc=no
24658fi
24659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24660LIBS=$ac_check_lib_save_LIBS
24661fi
24662echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24663echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24664if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24665 ODBC_LINK=" -lodbc"
24666fi
24667
24668
24669fi
e6cc62c6 24670
e6cc62c6 24671
8647bec6 24672fi
e6cc62c6 24673
fd3d7534 24674 fi
bb41dcbe
VS
24675 if test "x$ODBC_LINK" = "x" ; then
24676 if test "$wxUSE_ODBC" = "sys" ; then
24677 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24678echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24679 { (exit 1); exit 1; }; }
24680 else
24681 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24682echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24683 wxUSE_ODBC=builtin
24684 fi
24685 else
24686 wxUSE_ODBC=sys
8647bec6 24687 fi
8647bec6 24688 fi
bb41dcbe
VS
24689 if test "$wxUSE_ODBC" != "no" ; then
24690 cat >>confdefs.h <<\_ACEOF
24691#define wxUSE_ODBC 1
24692_ACEOF
e6cc62c6 24693
0bdb08e7
VS
24694 if test "$wxUSE_ODBC" = "builtin" ; then
24695 cat >>confdefs.h <<\_ACEOF
24696#define wxUSE_BUILTIN_IODBC 1
24697_ACEOF
24698
24699 fi
bb41dcbe
VS
24700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24701
24702 WXODBCFLAG="-D_IODBC_"
24703 fi
6232543b 24704fi
21d1c967
GD
24705
24706if test "$wxUSE_REGEX" = "builtin" ; then
24707 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24708fi
21d1c967
GD
24709if test "$wxUSE_ZLIB" = "builtin" ; then
24710 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24711fi
24712
8284b0c5 24713
4d264332 24714USE_OPENGL=0
21d1c967 24715if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24716 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24717 OPENGL_LIBS="-framework OpenGL -framework AGL"
24718 elif test "$wxUSE_MSW" = 1; then
24719 OPENGL_LIBS="-lopengl32 -lglu32"
24720 else
01aa5863
VS
24721
24722
24723ac_find_includes=
24724for ac_dir in $SEARCH_INCLUDE /usr/include;
24725 do
24726 if test -f "$ac_dir/GL/gl.h"; then
24727 ac_find_includes=$ac_dir
24728 break
24729 fi
24730 done
24731
24732 if test "$ac_find_includes" != "" ; then
24733 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24734echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24735
24736 if test "x$ac_find_includes" = "x/usr/include"; then
24737 ac_path_to_include=""
24738 else
24739 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24740 result=$?
24741 if test $result = 0; then
24742 ac_path_to_include=""
24743 else
24744 ac_path_to_include=" -I$ac_find_includes"
24745 fi
24746 fi
24747
24748 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24749 fi
24750
e6cc62c6
VS
24751 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24752 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24753echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24754if test "${ac_cv_header_GL_gl_h+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756fi
24757echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24758echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24759else
24760 # Is the header compilable?
24761echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24762echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24763cat >conftest.$ac_ext <<_ACEOF
24764#line $LINENO "configure"
24765/* confdefs.h. */
24766_ACEOF
24767cat confdefs.h >>conftest.$ac_ext
24768cat >>conftest.$ac_ext <<_ACEOF
24769/* end confdefs.h. */
24770$ac_includes_default
21d1c967 24771#include <GL/gl.h>
e6cc62c6
VS
24772_ACEOF
24773rm -f conftest.$ac_objext
24774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24775 (eval $ac_compile) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } &&
24779 { ac_try='test -s conftest.$ac_objext'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ac_header_compiler=yes
24786else
24787 echo "$as_me: failed program was:" >&5
24788sed 's/^/| /' conftest.$ac_ext >&5
24789
24790ac_header_compiler=no
24791fi
24792rm -f conftest.$ac_objext conftest.$ac_ext
24793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24794echo "${ECHO_T}$ac_header_compiler" >&6
24795
24796# Is the header present?
24797echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24798echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24799cat >conftest.$ac_ext <<_ACEOF
24800#line $LINENO "configure"
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806#include <GL/gl.h>
24807_ACEOF
24808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } >/dev/null; then
24816 if test -s conftest.err; then
24817 ac_cpp_err=$ac_c_preproc_warn_flag
24818 else
24819 ac_cpp_err=
24820 fi
24821else
24822 ac_cpp_err=yes
24823fi
24824if test -z "$ac_cpp_err"; then
24825 ac_header_preproc=yes
24826else
24827 echo "$as_me: failed program was:" >&5
24828sed 's/^/| /' conftest.$ac_ext >&5
24829
24830 ac_header_preproc=no
24831fi
24832rm -f conftest.err conftest.$ac_ext
24833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24834echo "${ECHO_T}$ac_header_preproc" >&6
24835
24836# So? What about this header?
24837case $ac_header_compiler:$ac_header_preproc in
24838 yes:no )
24839 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24840echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24841 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24842echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24843 (
24844 cat <<\_ASBOX
24845## ------------------------------------ ##
24846## Report this to bug-autoconf@gnu.org. ##
24847## ------------------------------------ ##
24848_ASBOX
24849 ) |
24850 sed "s/^/$as_me: WARNING: /" >&2
24851 ;;
24852 no:yes )
24853 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24854echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24855 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24856echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24857 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24858echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24859 (
24860 cat <<\_ASBOX
24861## ------------------------------------ ##
24862## Report this to bug-autoconf@gnu.org. ##
24863## ------------------------------------ ##
24864_ASBOX
24865 ) |
24866 sed "s/^/$as_me: WARNING: /" >&2
24867 ;;
24868esac
24869echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24870echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24871if test "${ac_cv_header_GL_gl_h+set}" = set; then
24872 echo $ECHO_N "(cached) $ECHO_C" >&6
24873else
24874 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24875fi
e6cc62c6
VS
24876echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24877echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24878
698dcdb6 24879fi
e6cc62c6
VS
24880if test $ac_cv_header_GL_gl_h = yes; then
24881
89e3b3e4
VZ
24882 found_gl=0
24883
e6cc62c6
VS
24884 echo "$as_me:$LINENO: checking for -lGL" >&5
24885echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24886
21d1c967 24887ac_find_libraries=
2b5f62a0 24888for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24889 do
24890 for ac_extension in a so sl dylib; do
24891 if test -f "$ac_dir/libGL.$ac_extension"; then
24892 ac_find_libraries=$ac_dir
24893 break 2
24894 fi
24895 done
24896 done
24897
24898 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24899
21d1c967
GD
24900 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24901 result=$?
24902 if test $result = 0; then
24903 ac_path_to_link=""
24904 else
24905 ac_path_to_link=" -L$ac_find_libraries"
24906 fi
24907
89e3b3e4
VZ
24908 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24909 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24910 fi
89e3b3e4 24911
e6cc62c6 24912
89e3b3e4
VZ
24913ac_find_libraries=
24914for ac_dir in $SEARCH_LIB /usr/lib;
24915 do
24916 for ac_extension in a so sl dylib; do
24917 if test -f "$ac_dir/libGLU.$ac_extension"; then
24918 ac_find_libraries=$ac_dir
24919 break 2
24920 fi
24921 done
24922 done
24923
24924 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24925
89e3b3e4
VZ
24926 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24927 result=$?
24928 if test $result = 0; then
24929 ac_path_to_link=""
24930 else
24931 ac_path_to_link=" -L$ac_find_libraries"
24932 fi
24933
24934 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24935 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24936 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24937 fi
24938
24939 found_gl=1
24940 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24941 echo "$as_me:$LINENO: result: yes" >&5
24942echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24943 fi
24944 fi
24945
bb41dcbe 24946 if test "$found_gl" != 1; then
e6cc62c6
VS
24947 echo "$as_me:$LINENO: result: no" >&5
24948echo "${ECHO_T}no" >&6
24949 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24950echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24951
21d1c967 24952ac_find_libraries=
2b5f62a0 24953for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24954 do
24955 for ac_extension in a so sl dylib; do
24956 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24957 ac_find_libraries=$ac_dir
24958 break 2
24959 fi
24960 done
24961 done
24962
24963 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24964
21d1c967
GD
24965 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24966 result=$?
24967 if test $result = 0; then
24968 ac_path_to_link=""
24969 else
24970 ac_path_to_link=" -L$ac_find_libraries"
24971 fi
24972
24973 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24974 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24975 echo "$as_me:$LINENO: result: yes" >&5
24976echo "${ECHO_T}yes" >&6
21d1c967 24977 else
e6cc62c6
VS
24978 echo "$as_me:$LINENO: result: no" >&5
24979echo "${ECHO_T}no" >&6
21d1c967
GD
24980 fi
24981 fi
e6cc62c6 24982
5c6fa7d2 24983fi
52127426 24984
8284b0c5 24985
e6cc62c6 24986
21d1c967 24987 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24988 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24989echo "$as_me: error: OpenGL libraries not available" >&2;}
24990 { (exit 1); exit 1; }; }
21d1c967
GD
24991 fi
24992 fi
90dd450c 24993
21d1c967 24994 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 24995 USE_OPENGL=1
e6cc62c6 24996 cat >>confdefs.h <<\_ACEOF
21d1c967 24997#define wxUSE_OPENGL 1
e6cc62c6 24998_ACEOF
21d1c967 24999
e6cc62c6 25000 cat >>confdefs.h <<\_ACEOF
21d1c967 25001#define wxUSE_GLCANVAS 1
e6cc62c6 25002_ACEOF
21d1c967 25003
520755bb 25004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25005 fi
10f2d63a 25006fi
21d1c967
GD
25007
25008if test -z "$TOOLKIT_VPATH" ; then
25009 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25010fi
21d1c967
GD
25011
25012if test -n "$TOOLKIT" ; then
25013 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25014fi
25015
fe0895cf 25016UNICODE=0
21d1c967
GD
25017lib_unicode_suffix=
25018if test "$wxUSE_UNICODE" = "yes"; then
25019 lib_unicode_suffix=u
fe0895cf 25020 UNICODE=1
90dd450c 25021fi
698dcdb6 25022
21d1c967 25023lib_debug_suffix=
6c67131a 25024DEBUG_FLAG=0
21d1c967
GD
25025if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25026 lib_debug_suffix=d
6c67131a
VS
25027 DEBUG_FLAG=1
25028fi
25029
25030DEBUG_INFO=0
25031if test "$wxUSE_DEBUG_INFO" = "yes"; then
25032 DEBUG_INFO=1
21d1c967 25033fi
698dcdb6 25034
1cbb95a2 25035WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25036
25037TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25038TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25039
25040if test "$cross_compiling" = "yes"; then
25041 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25042 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25043 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25044fi
25045
25046WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25047WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25048WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25049WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25050
25051WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25052WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25053
25054WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25055WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25056WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25057WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25058
25059case "${host}" in
25060 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25061 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25062 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25063 ;;
25064
25065 *-*-darwin* )
e6cc62c6 25066
05159a27
GD
25067 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25068 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25069
25070 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25071 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25072 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25073 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25074
21d1c967 25075 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25076 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25077 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25078 fi
25079 ;;
25080esac
25081
25082WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25083WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25084
25085WXCONFIG_LIBS="-l${WX_LIBRARY}"
25086WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25087
25088if test "$wxUSE_OPENGL" = "yes"; then
25089 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25090 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25091fi
25092
8284b0c5
MB
25093
25094
21d1c967
GD
25095if test "$wxUSE_SHARED" = "yes"; then
25096 case "${host}" in
25097 *-pc-os2_emx | *-pc-os2-emx | \
25098 *-pc-msdosdjgpp )
25099 wxUSE_SHARED=no
e6cc62c6
VS
25100 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25101echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25102 ;;
25103 esac
25104fi
25105
fe0895cf 25106SHARED=0
2b5f62a0 25107if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25108 SHARED=1
2b5f62a0 25109
e6cc62c6 25110
2b5f62a0
VZ
25111 found_versioning=no
25112
e6cc62c6 25113
2b5f62a0 25114 if test $found_versioning = no ; then
e6cc62c6
VS
25115 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25116echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25117if test "${wx_cv_version_script+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25119else
e6cc62c6 25120
2b5f62a0
VZ
25121 echo "VER_1 { *; };" >conftest.sym
25122 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25123
2b5f62a0
VZ
25124 if { ac_try='
25125 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25126 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25132 if test -s conftest.stderr ; then
25133 wx_cv_version_script=no
25134 else
25135 wx_cv_version_script=yes
25136 fi
25137 else
25138 wx_cv_version_script=no
25139 fi
25140 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25141
e6cc62c6
VS
25142fi
25143echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25144echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25145 if test $wx_cv_version_script = yes ; then
e6cc62c6 25146 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25147 fi
25148 fi
21d1c967 25149
21d1c967 25150
21d1c967 25151 case "${host}" in
fe0895cf 25152 *-*-linux* | *-*-gnu* )
e6cc62c6 25153 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25154 ;;
21d1c967
GD
25155
25156 *-*-solaris2* )
25157 if test "$GCC" = yes ; then
25158 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25159
25160 saveLdflags="$LDFLAGS"
25161 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25162 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25163echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25164 cat >conftest.$ac_ext <<_ACEOF
25165#line $LINENO "configure"
25166/* confdefs.h. */
25167_ACEOF
25168cat confdefs.h >>conftest.$ac_ext
25169cat >>conftest.$ac_ext <<_ACEOF
25170/* end confdefs.h. */
25171
25172int
25173main ()
25174{
fe0895cf 25175
e6cc62c6
VS
25176 ;
25177 return 0;
25178}
25179_ACEOF
25180rm -f conftest.$ac_objext conftest$ac_exeext
25181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25182 (eval $ac_link) 2>&5
25183 ac_status=$?
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -s conftest$ac_exeext'
25187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; }; then
25192
25193 echo "$as_me:$LINENO: result: yes" >&5
25194echo "${ECHO_T}yes" >&6
25195 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25196
25197else
25198 echo "$as_me: failed program was:" >&5
25199sed 's/^/| /' conftest.$ac_ext >&5
25200
25201
25202 echo "$as_me:$LINENO: result: no" >&5
25203echo "${ECHO_T}no" >&6
25204 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25205echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25206 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25207 cat >conftest.$ac_ext <<_ACEOF
25208#line $LINENO "configure"
25209/* confdefs.h. */
25210_ACEOF
25211cat confdefs.h >>conftest.$ac_ext
25212cat >>conftest.$ac_ext <<_ACEOF
25213/* end confdefs.h. */
25214
25215int
25216main ()
25217{
25218
25219 ;
25220 return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext conftest$ac_exeext
25224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225 (eval $ac_link) 2>&5
25226 ac_status=$?
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } &&
25229 { ac_try='test -s conftest$ac_exeext'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235
25236 echo "$as_me:$LINENO: result: yes" >&5
25237echo "${ECHO_T}yes" >&6
25238 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25239else
25240 echo "$as_me: failed program was:" >&5
25241sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25242
fe0895cf 25243
e6cc62c6
VS
25244 echo "$as_me:$LINENO: result: no" >&5
25245echo "${ECHO_T}no" >&6
25246
fe0895cf 25247fi
e6cc62c6
VS
25248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25249
25250fi
25251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25252 LDFLAGS="$saveLdflags"
21d1c967
GD
25253 else
25254 SHARED_LD="${CXX} -G -o"
25255 PIC_FLAG="-KPIC"
e6cc62c6 25256 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25257 fi
25258 ;;
0f1bc9c2
VS
25259
25260 powerpc-*-darwin* )
ef0add05
VS
25261 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25262 cat <<EOF >change-install-names
25263#!/bin/sh
25264libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25265inst_cmd="install_name_tool "
25266for i in \${libnames} ; do
25267 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25268done
25269\${inst_cmd} \${3}
25270EOF
25271 chmod +x change-install-names
0f1bc9c2
VS
25272 ;;
25273
21d1c967
GD
25274 esac
25275
25276 if test "x$WX_TARGET_LIBRARY" = "x"; then
25277 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25278 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25279 fi
25280
25281 WX_TARGET_LIBRARY_TYPE="so"
25282 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25283fi
10f2d63a 25284
21d1c967
GD
25285if test "$wxUSE_SHARED" = "no"; then
25286
25287 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25288 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25289 fi
25290
ac0c4cc3 25291 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25292 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25293 fi
25294
25295 if test "$wxUSE_OPENGL" = "yes"; then
25296 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25297 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25298 else
25299 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25300 fi
25301
25302 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25303 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25304
25305 WX_TARGET_LIBRARY_TYPE="a"
25306 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25307
25308 STATIC_FLAG="yes"
25309else
25310 STATIC_FLAG="no"
90dd450c 25311fi
1e487827 25312
93fac604
VZ
25313MACRESCOMP="@#"
25314MACSETFILE="@#"
36825681 25315MACRESWXCONFIG="#"
21d1c967 25316if test "$wxUSE_MAC" = 1; then
e6cc62c6 25317 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25318 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25320 # Extract the first word of "Rez", so it can be a program name with args.
25321set dummy Rez; ac_word=$2
e6cc62c6
VS
25322echo "$as_me:$LINENO: checking for $ac_word" >&5
25323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25324if test "${ac_cv_prog_RESCOMP+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25326else
21d1c967
GD
25327 if test -n "$RESCOMP"; then
25328 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25329else
e6cc62c6
VS
25330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25331for as_dir in $PATH
25332do
25333 IFS=$as_save_IFS
25334 test -z "$as_dir" && as_dir=.
25335 for ac_exec_ext in '' $ac_executable_extensions; do
25336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25337 ac_cv_prog_RESCOMP="Rez"
25338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25339 break 2
25340 fi
25341done
25342done
25343
21d1c967 25344 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25345fi
b93d0d08 25346fi
e6cc62c6 25347RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25348if test -n "$RESCOMP"; then
e6cc62c6
VS
25349 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25350echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25351else
e6cc62c6
VS
25352 echo "$as_me:$LINENO: result: no" >&5
25353echo "${ECHO_T}no" >&6
90dd450c 25354fi
b93d0d08 25355
21d1c967
GD
25356 # Extract the first word of "DeRez", so it can be a program name with args.
25357set dummy DeRez; ac_word=$2
e6cc62c6
VS
25358echo "$as_me:$LINENO: checking for $ac_word" >&5
25359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25360if test "${ac_cv_prog_DEREZ+set}" = set; then
25361 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25362else
21d1c967
GD
25363 if test -n "$DEREZ"; then
25364 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25365else
e6cc62c6
VS
25366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25367for as_dir in $PATH
25368do
25369 IFS=$as_save_IFS
25370 test -z "$as_dir" && as_dir=.
25371 for ac_exec_ext in '' $ac_executable_extensions; do
25372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25373 ac_cv_prog_DEREZ="DeRez"
25374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25375 break 2
25376 fi
25377done
25378done
25379
21d1c967 25380 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25381fi
90dd450c 25382fi
e6cc62c6 25383DEREZ=$ac_cv_prog_DEREZ
21d1c967 25384if test -n "$DEREZ"; then
e6cc62c6
VS
25385 echo "$as_me:$LINENO: result: $DEREZ" >&5
25386echo "${ECHO_T}$DEREZ" >&6
90dd450c 25387else
e6cc62c6
VS
25388 echo "$as_me:$LINENO: result: no" >&5
25389echo "${ECHO_T}no" >&6
3a922bb4 25390fi
698dcdb6 25391
36825681
GD
25392 # Extract the first word of "SetFile", so it can be a program name with args.
25393set dummy SetFile; ac_word=$2
e6cc62c6
VS
25394echo "$as_me:$LINENO: checking for $ac_word" >&5
25395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25396if test "${ac_cv_prog_SETFILE+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25398else
25399 if test -n "$SETFILE"; then
25400 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25401else
e6cc62c6
VS
25402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25403for as_dir in $PATH
25404do
25405 IFS=$as_save_IFS
25406 test -z "$as_dir" && as_dir=.
25407 for ac_exec_ext in '' $ac_executable_extensions; do
25408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25409 ac_cv_prog_SETFILE="SetFile"
25410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25411 break 2
25412 fi
25413done
25414done
25415
36825681
GD
25416 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25417fi
25418fi
e6cc62c6 25419SETFILE=$ac_cv_prog_SETFILE
36825681 25420if test -n "$SETFILE"; then
e6cc62c6
VS
25421 echo "$as_me:$LINENO: result: $SETFILE" >&5
25422echo "${ECHO_T}$SETFILE" >&6
36825681 25423else
e6cc62c6
VS
25424 echo "$as_me:$LINENO: result: no" >&5
25425echo "${ECHO_T}no" >&6
36825681
GD
25426fi
25427
21d1c967 25428 MACOSX_BUNDLE="bundle"
36825681
GD
25429 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25430 MACSETFILE="\$(SETFILE)"
9711d31e 25431 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25432elif test "$wxUSE_COCOA" = 1; then
25433 # Extract the first word of "Rez", so it can be a program name with args.
25434set dummy Rez; ac_word=$2
e6cc62c6
VS
25435echo "$as_me:$LINENO: checking for $ac_word" >&5
25436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25437if test "${ac_cv_prog_RESCOMP+set}" = set; then
25438 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25439else
25440 if test -n "$RESCOMP"; then
25441 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25442else
e6cc62c6
VS
25443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25444for as_dir in $PATH
25445do
25446 IFS=$as_save_IFS
25447 test -z "$as_dir" && as_dir=.
25448 for ac_exec_ext in '' $ac_executable_extensions; do
25449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25450 ac_cv_prog_RESCOMP="Rez"
25451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25452 break 2
25453 fi
25454done
25455done
25456
64440d77
DE
25457 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25458fi
25459fi
e6cc62c6 25460RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25461if test -n "$RESCOMP"; then
e6cc62c6
VS
25462 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25463echo "${ECHO_T}$RESCOMP" >&6
64440d77 25464else
e6cc62c6
VS
25465 echo "$as_me:$LINENO: result: no" >&5
25466echo "${ECHO_T}no" >&6
64440d77
DE
25467fi
25468
25469 # Extract the first word of "DeRez", so it can be a program name with args.
25470set dummy DeRez; ac_word=$2
e6cc62c6
VS
25471echo "$as_me:$LINENO: checking for $ac_word" >&5
25472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25473if test "${ac_cv_prog_DEREZ+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25475else
25476 if test -n "$DEREZ"; then
25477 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25478else
e6cc62c6
VS
25479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25480for as_dir in $PATH
25481do
25482 IFS=$as_save_IFS
25483 test -z "$as_dir" && as_dir=.
25484 for ac_exec_ext in '' $ac_executable_extensions; do
25485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25486 ac_cv_prog_DEREZ="DeRez"
25487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25488 break 2
25489 fi
25490done
25491done
25492
64440d77
DE
25493 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25494fi
25495fi
e6cc62c6 25496DEREZ=$ac_cv_prog_DEREZ
64440d77 25497if test -n "$DEREZ"; then
e6cc62c6
VS
25498 echo "$as_me:$LINENO: result: $DEREZ" >&5
25499echo "${ECHO_T}$DEREZ" >&6
64440d77 25500else
e6cc62c6
VS
25501 echo "$as_me:$LINENO: result: no" >&5
25502echo "${ECHO_T}no" >&6
64440d77
DE
25503fi
25504
25505 # Extract the first word of "SetFile", so it can be a program name with args.
25506set dummy SetFile; ac_word=$2
e6cc62c6
VS
25507echo "$as_me:$LINENO: checking for $ac_word" >&5
25508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25509if test "${ac_cv_prog_SETFILE+set}" = set; then
25510 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25511else
25512 if test -n "$SETFILE"; then
25513 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25514else
e6cc62c6
VS
25515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25516for as_dir in $PATH
25517do
25518 IFS=$as_save_IFS
25519 test -z "$as_dir" && as_dir=.
25520 for ac_exec_ext in '' $ac_executable_extensions; do
25521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25522 ac_cv_prog_SETFILE="SetFile"
25523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25524 break 2
25525 fi
25526done
25527done
25528
64440d77
DE
25529 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25530fi
25531fi
e6cc62c6 25532SETFILE=$ac_cv_prog_SETFILE
64440d77 25533if test -n "$SETFILE"; then
e6cc62c6
VS
25534 echo "$as_me:$LINENO: result: $SETFILE" >&5
25535echo "${ECHO_T}$SETFILE" >&6
64440d77 25536else
e6cc62c6
VS
25537 echo "$as_me:$LINENO: result: no" >&5
25538echo "${ECHO_T}no" >&6
64440d77
DE
25539fi
25540
25541 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25542 MACSETFILE="\$(SETFILE)"
9711d31e 25543 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25544else
25545 if test "$wxUSE_PM" = 1; then
36825681 25546 MACRESCOMP="emxbind -ep"
90dd450c 25547 fi
4f14bcd8 25548fi
10f2d63a 25549
8284b0c5 25550
e6cc62c6
VS
25551echo "$as_me:$LINENO: checking for mode_t" >&5
25552echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25553if test "${ac_cv_type_mode_t+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25555else
e6cc62c6
VS
25556 cat >conftest.$ac_ext <<_ACEOF
25557#line $LINENO "configure"
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
25563$ac_includes_default
25564int
25565main ()
25566{
25567if ((mode_t *) 0)
25568 return 0;
25569if (sizeof (mode_t))
25570 return 0;
25571 ;
25572 return 0;
25573}
25574_ACEOF
25575rm -f conftest.$ac_objext
25576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25577 (eval $ac_compile) 2>&5
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } &&
25581 { ac_try='test -s conftest.$ac_objext'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; }; then
25587 ac_cv_type_mode_t=yes
a0b9e27f 25588else
e6cc62c6
VS
25589 echo "$as_me: failed program was:" >&5
25590sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25591
e6cc62c6 25592ac_cv_type_mode_t=no
a0b9e27f 25593fi
e6cc62c6 25594rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25595fi
e6cc62c6
VS
25596echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25597echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25598if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25599 :
25600else
a0b9e27f 25601
e6cc62c6
VS
25602cat >>confdefs.h <<_ACEOF
25603#define mode_t int
25604_ACEOF
8284b0c5
MB
25605
25606fi
25607
e6cc62c6
VS
25608echo "$as_me:$LINENO: checking for off_t" >&5
25609echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25610if test "${ac_cv_type_off_t+set}" = set; then
25611 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25612else
e6cc62c6
VS
25613 cat >conftest.$ac_ext <<_ACEOF
25614#line $LINENO "configure"
25615/* confdefs.h. */
25616_ACEOF
25617cat confdefs.h >>conftest.$ac_ext
25618cat >>conftest.$ac_ext <<_ACEOF
25619/* end confdefs.h. */
25620$ac_includes_default
25621int
25622main ()
25623{
25624if ((off_t *) 0)
25625 return 0;
25626if (sizeof (off_t))
25627 return 0;
25628 ;
25629 return 0;
25630}
25631_ACEOF
25632rm -f conftest.$ac_objext
25633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25634 (eval $ac_compile) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } &&
25638 { ac_try='test -s conftest.$ac_objext'
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
25644 ac_cv_type_off_t=yes
5c6fa7d2 25645else
e6cc62c6
VS
25646 echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25648
e6cc62c6 25649ac_cv_type_off_t=no
8284b0c5 25650fi
e6cc62c6 25651rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25652fi
e6cc62c6
VS
25653echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25654echo "${ECHO_T}$ac_cv_type_off_t" >&6
25655if test $ac_cv_type_off_t = yes; then
25656 :
247f5006
VZ
25657else
25658
e6cc62c6 25659cat >>confdefs.h <<_ACEOF
90dd450c 25660#define off_t long
e6cc62c6 25661_ACEOF
10f2d63a 25662
90dd450c 25663fi
10f2d63a 25664
e6cc62c6
VS
25665echo "$as_me:$LINENO: checking for pid_t" >&5
25666echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25667if test "${ac_cv_type_pid_t+set}" = set; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25669else
e6cc62c6
VS
25670 cat >conftest.$ac_ext <<_ACEOF
25671#line $LINENO "configure"
25672/* confdefs.h. */
25673_ACEOF
25674cat confdefs.h >>conftest.$ac_ext
25675cat >>conftest.$ac_ext <<_ACEOF
25676/* end confdefs.h. */
25677$ac_includes_default
25678int
25679main ()
25680{
25681if ((pid_t *) 0)
25682 return 0;
25683if (sizeof (pid_t))
25684 return 0;
25685 ;
25686 return 0;
25687}
25688_ACEOF
25689rm -f conftest.$ac_objext
25690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25691 (eval $ac_compile) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -s conftest.$ac_objext'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
90dd450c 25701 ac_cv_type_pid_t=yes
698dcdb6 25702else
e6cc62c6
VS
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25705
e6cc62c6
VS
25706ac_cv_type_pid_t=no
25707fi
25708rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25709fi
e6cc62c6
VS
25710echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25711echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25712if test $ac_cv_type_pid_t = yes; then
25713 :
25714else
25715
25716cat >>confdefs.h <<_ACEOF
90dd450c 25717#define pid_t int
e6cc62c6 25718_ACEOF
10f2d63a 25719
7b4a847f
RR
25720fi
25721
e6cc62c6
VS
25722echo "$as_me:$LINENO: checking for size_t" >&5
25723echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25724if test "${ac_cv_type_size_t+set}" = set; then
25725 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25726else
e6cc62c6
VS
25727 cat >conftest.$ac_ext <<_ACEOF
25728#line $LINENO "configure"
25729/* confdefs.h. */
25730_ACEOF
25731cat confdefs.h >>conftest.$ac_ext
25732cat >>conftest.$ac_ext <<_ACEOF
25733/* end confdefs.h. */
25734$ac_includes_default
25735int
25736main ()
25737{
25738if ((size_t *) 0)
25739 return 0;
25740if (sizeof (size_t))
25741 return 0;
25742 ;
25743 return 0;
25744}
25745_ACEOF
25746rm -f conftest.$ac_objext
25747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748 (eval $ac_compile) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
25752 { ac_try='test -s conftest.$ac_objext'
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
90dd450c 25758 ac_cv_type_size_t=yes
18dbb1f6 25759else
e6cc62c6
VS
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25762
e6cc62c6 25763ac_cv_type_size_t=no
a0b9e27f 25764fi
e6cc62c6
VS
25765rm -f conftest.$ac_objext conftest.$ac_ext
25766fi
25767echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25768echo "${ECHO_T}$ac_cv_type_size_t" >&6
25769if test $ac_cv_type_size_t = yes; then
25770 :
25771else
25772
25773cat >>confdefs.h <<_ACEOF
90dd450c 25774#define size_t unsigned
e6cc62c6 25775_ACEOF
90dd450c
VZ
25776
25777fi
25778
e6cc62c6
VS
25779echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25780echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25781if test "${ac_cv_type_uid_t+set}" = set; then
25782 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25783else
e6cc62c6
VS
25784 cat >conftest.$ac_ext <<_ACEOF
25785#line $LINENO "configure"
25786/* confdefs.h. */
25787_ACEOF
25788cat confdefs.h >>conftest.$ac_ext
25789cat >>conftest.$ac_ext <<_ACEOF
25790/* end confdefs.h. */
90dd450c 25791#include <sys/types.h>
e6cc62c6
VS
25792
25793_ACEOF
90dd450c 25794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25795 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25796 ac_cv_type_uid_t=yes
b3e8d00a 25797else
90dd450c 25798 ac_cv_type_uid_t=no
b3e8d00a 25799fi
90dd450c 25800rm -f conftest*
b3e8d00a 25801
4f14bcd8 25802fi
e6cc62c6
VS
25803echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25804echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25805if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25806
25807cat >>confdefs.h <<\_ACEOF
90dd450c 25808#define uid_t int
e6cc62c6 25809_ACEOF
247f5006 25810
e6cc62c6
VS
25811
25812cat >>confdefs.h <<\_ACEOF
90dd450c 25813#define gid_t int
e6cc62c6 25814_ACEOF
4f14bcd8 25815
b3e8d00a 25816fi
b3e8d00a 25817
8284b0c5
MB
25818
25819
e6cc62c6
VS
25820
25821ac_ext=cc
4f14bcd8 25822ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25826
25827echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25828echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25829if test "${wx_cv_size_t_is_uint+set}" = set; then
25830 echo $ECHO_N "(cached) $ECHO_C" >&6
25831else
25832
25833 cat >conftest.$ac_ext <<_ACEOF
25834#line $LINENO "configure"
25835/* confdefs.h. */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h. */
90dd450c 25840#include <stddef.h>
e6cc62c6
VS
25841int
25842main ()
25843{
90dd450c
VZ
25844
25845 return 0; }
25846
25847 struct Foo { void foo(size_t); void foo(unsigned int); };
25848
25849 int bar() {
e6cc62c6
VS
25850
25851 ;
25852 return 0;
25853}
25854_ACEOF
25855rm -f conftest.$ac_objext
25856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25857 (eval $ac_compile) 2>&5
25858 ac_status=$?
25859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860 (exit $ac_status); } &&
25861 { ac_try='test -s conftest.$ac_objext'
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; }; then
90dd450c 25867 wx_cv_size_t_is_uint=no
698dcdb6 25868else
e6cc62c6
VS
25869 echo "$as_me: failed program was:" >&5
25870sed 's/^/| /' conftest.$ac_ext >&5
25871
25872wx_cv_size_t_is_uint=yes
8284b0c5 25873
247f5006 25874fi
e6cc62c6
VS
25875rm -f conftest.$ac_objext conftest.$ac_ext
25876
a0b9e27f 25877
e6cc62c6
VS
25878fi
25879echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25880echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25881
90dd450c 25882if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25883 cat >>confdefs.h <<\_ACEOF
90dd450c 25884#define wxSIZE_T_IS_UINT 1
e6cc62c6 25885_ACEOF
698dcdb6 25886
90dd450c 25887else
e6cc62c6
VS
25888 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25889echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25890if test "${wx_cv_size_t_is_ulong+set}" = set; then
25891 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25892else
e6cc62c6
VS
25893 cat >conftest.$ac_ext <<_ACEOF
25894#line $LINENO "configure"
25895/* confdefs.h. */
25896_ACEOF
25897cat confdefs.h >>conftest.$ac_ext
25898cat >>conftest.$ac_ext <<_ACEOF
25899/* end confdefs.h. */
90dd450c 25900#include <stddef.h>
e6cc62c6
VS
25901int
25902main ()
25903{
90dd450c
VZ
25904
25905 return 0; }
25906
25907 struct Foo { void foo(size_t); void foo(unsigned long); };
25908
25909 int bar() {
e6cc62c6
VS
25910
25911 ;
25912 return 0;
25913}
25914_ACEOF
25915rm -f conftest.$ac_objext
25916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25917 (eval $ac_compile) 2>&5
25918 ac_status=$?
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } &&
25921 { ac_try='test -s conftest.$ac_objext'
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; }; then
90dd450c 25927 wx_cv_size_t_is_ulong=no
698dcdb6 25928else
e6cc62c6
VS
25929 echo "$as_me: failed program was:" >&5
25930sed 's/^/| /' conftest.$ac_ext >&5
25931
25932wx_cv_size_t_is_ulong=yes
25933
247f5006 25934fi
e6cc62c6 25935rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25936
e6cc62c6
VS
25937fi
25938echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25939echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25940
90dd450c 25941 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25942 cat >>confdefs.h <<\_ACEOF
90dd450c 25943#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25944_ACEOF
4f14bcd8
GD
25945
25946 fi
90dd450c 25947fi
1e487827 25948
90dd450c 25949ac_ext=c
4f14bcd8 25950ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25954
5c6fa7d2 25955
8284b0c5 25956
e6cc62c6
VS
25957echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25958echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25959if test "${wx_cv_struct_pw_gecos+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25961else
e6cc62c6
VS
25962
25963 cat >conftest.$ac_ext <<_ACEOF
25964#line $LINENO "configure"
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
90dd450c 25970#include <pwd.h>
e6cc62c6
VS
25971int
25972main ()
25973{
f6bcfd97 25974
90dd450c
VZ
25975 char *p;
25976 struct passwd *pw;
25977 p = pw->pw_gecos;
e6cc62c6
VS
25978
25979 ;
25980 return 0;
25981}
25982_ACEOF
25983rm -f conftest.$ac_objext
25984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25985 (eval $ac_compile) 2>&5
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } &&
25989 { ac_try='test -s conftest.$ac_objext'
25990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; }; then
25995
90dd450c 25996 wx_cv_struct_pw_gecos=yes
e6cc62c6 25997
10f2d63a 25998else
e6cc62c6
VS
25999 echo "$as_me: failed program was:" >&5
26000sed 's/^/| /' conftest.$ac_ext >&5
26001
26002
90dd450c 26003 wx_cv_struct_pw_gecos=no
e6cc62c6 26004
247f5006
VZ
26005
26006fi
e6cc62c6 26007rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26008
e6cc62c6
VS
26009
26010fi
26011echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26012echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26013
90dd450c 26014if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26015 cat >>confdefs.h <<\_ACEOF
90dd450c 26016#define HAVE_PW_GECOS 1
e6cc62c6 26017_ACEOF
c521c494 26018
90dd450c 26019fi
4f14bcd8 26020
8284b0c5 26021
d29b553b 26022if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26023 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26024#define wxUSE_WCHAR_T 1
e6cc62c6 26025_ACEOF
d74f4b5a 26026
8284b0c5 26027
d74f4b5a
VZ
26028 WCSLEN_FOUND=0
26029 WCHAR_LINK=
e6cc62c6
VS
26030
26031for ac_func in wcslen
7a30264c 26032do
e6cc62c6
VS
26033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26034echo "$as_me:$LINENO: checking for $ac_func" >&5
26035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26036if eval "test \"\${$as_ac_var+set}\" = set"; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26038else
26039 cat >conftest.$ac_ext <<_ACEOF
26040#line $LINENO "configure"
26041/* confdefs.h. */
26042_ACEOF
26043cat confdefs.h >>conftest.$ac_ext
26044cat >>conftest.$ac_ext <<_ACEOF
26045/* end confdefs.h. */
7a30264c 26046/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26047 which can conflict with char $ac_func (); below.
26048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26049 <limits.h> exists even on freestanding compilers. */
26050#ifdef __STDC__
26051# include <limits.h>
26052#else
26053# include <assert.h>
26054#endif
4f14bcd8 26055/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26056#ifdef __cplusplus
26057extern "C"
26058{
26059#endif
4f14bcd8 26060/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26061 builtin and then its argument prototype would still apply. */
26062char $ac_func ();
7a30264c
VZ
26063/* The GNU C library defines this for functions which it implements
26064 to always fail with ENOSYS. Some functions are actually named
26065 something starting with __ and the normal name is an alias. */
26066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26067choke me
26068#else
e6cc62c6
VS
26069char (*f) () = $ac_func;
26070#endif
26071#ifdef __cplusplus
26072}
7a30264c
VZ
26073#endif
26074
e6cc62c6
VS
26075int
26076main ()
26077{
26078return f != $ac_func;
26079 ;
26080 return 0;
26081}
26082_ACEOF
26083rm -f conftest.$ac_objext conftest$ac_exeext
26084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26085 (eval $ac_link) 2>&5
26086 ac_status=$?
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } &&
26089 { ac_try='test -s conftest$ac_exeext'
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; }; then
26095 eval "$as_ac_var=yes"
26096else
26097 echo "$as_me: failed program was:" >&5
26098sed 's/^/| /' conftest.$ac_ext >&5
26099
26100eval "$as_ac_var=no"
26101fi
26102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26103fi
26104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26105echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26106if test `eval echo '${'$as_ac_var'}'` = yes; then
26107 cat >>confdefs.h <<_ACEOF
26108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26109_ACEOF
d74f4b5a 26110 WCSLEN_FOUND=1
7a30264c
VZ
26111fi
26112done
9d8deca0 26113
8284b0c5 26114
d74f4b5a 26115 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26116 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26117 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26118echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26119if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26120 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26121else
e6cc62c6 26122 ac_check_lib_save_LIBS=$LIBS
7a30264c 26123LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26124cat >conftest.$ac_ext <<_ACEOF
26125#line $LINENO "configure"
26126/* confdefs.h. */
26127_ACEOF
26128cat confdefs.h >>conftest.$ac_ext
26129cat >>conftest.$ac_ext <<_ACEOF
26130/* end confdefs.h. */
26131
4f14bcd8 26132/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26133#ifdef __cplusplus
26134extern "C"
26135#endif
4f14bcd8 26136/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26137 builtin and then its argument prototype would still apply. */
26138char wcslen ();
26139int
26140main ()
26141{
26142wcslen ();
26143 ;
26144 return 0;
26145}
26146_ACEOF
26147rm -f conftest.$ac_objext conftest$ac_exeext
26148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26149 (eval $ac_link) 2>&5
26150 ac_status=$?
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } &&
26153 { ac_try='test -s conftest$ac_exeext'
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ac_cv_lib_msvcrt_wcslen=yes
26160else
26161 echo "$as_me: failed program was:" >&5
26162sed 's/^/| /' conftest.$ac_ext >&5
26163
26164ac_cv_lib_msvcrt_wcslen=no
26165fi
26166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26167LIBS=$ac_check_lib_save_LIBS
26168fi
26169echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26170echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26171if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26172 WCHAR_OK=1
d29b553b 26173fi
698dcdb6 26174
7a30264c 26175 else
e6cc62c6
VS
26176 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26177echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26178if test "${ac_cv_lib_w_wcslen+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26180else
e6cc62c6 26181 ac_check_lib_save_LIBS=$LIBS
7a30264c 26182LIBS="-lw $LIBS"
e6cc62c6
VS
26183cat >conftest.$ac_ext <<_ACEOF
26184#line $LINENO "configure"
26185/* confdefs.h. */
26186_ACEOF
26187cat confdefs.h >>conftest.$ac_ext
26188cat >>conftest.$ac_ext <<_ACEOF
26189/* end confdefs.h. */
26190
4f14bcd8 26191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26192#ifdef __cplusplus
26193extern "C"
26194#endif
4f14bcd8 26195/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26196 builtin and then its argument prototype would still apply. */
26197char wcslen ();
26198int
26199main ()
26200{
26201wcslen ();
26202 ;
26203 return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext conftest$ac_exeext
26207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26208 (eval $ac_link) 2>&5
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } &&
26212 { ac_try='test -s conftest$ac_exeext'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
26218 ac_cv_lib_w_wcslen=yes
26219else
26220 echo "$as_me: failed program was:" >&5
26221sed 's/^/| /' conftest.$ac_ext >&5
26222
26223ac_cv_lib_w_wcslen=no
26224fi
26225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26226LIBS=$ac_check_lib_save_LIBS
26227fi
26228echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26229echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26230if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26231
7a30264c 26232 WCHAR_LINK=" -lw"
d74f4b5a 26233 WCSLEN_FOUND=1
e6cc62c6 26234
4f14bcd8 26235fi
10f2d63a 26236
7a30264c 26237 fi
d29b553b 26238 fi
95c8801c 26239
d74f4b5a 26240 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26241 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26242#define HAVE_WCSLEN 1
e6cc62c6 26243_ACEOF
10f2d63a 26244
d74f4b5a 26245 fi
52127426 26246
e6cc62c6
VS
26247
26248for ac_func in wcsrtombs
eb4efbdc 26249do
e6cc62c6
VS
26250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26251echo "$as_me:$LINENO: checking for $ac_func" >&5
26252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26253if eval "test \"\${$as_ac_var+set}\" = set"; then
26254 echo $ECHO_N "(cached) $ECHO_C" >&6
26255else
26256 cat >conftest.$ac_ext <<_ACEOF
26257#line $LINENO "configure"
26258/* confdefs.h. */
26259_ACEOF
26260cat confdefs.h >>conftest.$ac_ext
26261cat >>conftest.$ac_ext <<_ACEOF
26262/* end confdefs.h. */
eb4efbdc 26263/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26264 which can conflict with char $ac_func (); below.
26265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26266 <limits.h> exists even on freestanding compilers. */
26267#ifdef __STDC__
26268# include <limits.h>
26269#else
26270# include <assert.h>
26271#endif
eb4efbdc 26272/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26273#ifdef __cplusplus
26274extern "C"
26275{
26276#endif
4f14bcd8 26277/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26278 builtin and then its argument prototype would still apply. */
26279char $ac_func ();
10f2d63a
VZ
26280/* The GNU C library defines this for functions which it implements
26281 to always fail with ENOSYS. Some functions are actually named
26282 something starting with __ and the normal name is an alias. */
247f5006 26283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26284choke me
26285#else
e6cc62c6
VS
26286char (*f) () = $ac_func;
26287#endif
26288#ifdef __cplusplus
26289}
10f2d63a
VZ
26290#endif
26291
e6cc62c6
VS
26292int
26293main ()
26294{
26295return f != $ac_func;
26296 ;
26297 return 0;
26298}
26299_ACEOF
26300rm -f conftest.$ac_objext conftest$ac_exeext
26301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26302 (eval $ac_link) 2>&5
26303 ac_status=$?
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -s conftest$ac_exeext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 eval "$as_ac_var=yes"
26313else
26314 echo "$as_me: failed program was:" >&5
26315sed 's/^/| /' conftest.$ac_ext >&5
26316
26317eval "$as_ac_var=no"
26318fi
26319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26320fi
26321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26323if test `eval echo '${'$as_ac_var'}'` = yes; then
26324 cat >>confdefs.h <<_ACEOF
26325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26326_ACEOF
270a909e 26327
4f14bcd8 26328fi
247f5006 26329done
1e487827 26330
af15babd 26331else
e6cc62c6
VS
26332 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26333echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26334fi
52127426 26335
8284b0c5 26336
e6cc62c6
VS
26337
26338ac_ext=cc
247f5006 26339ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26343
af15babd 26344
247f5006
VZ
26345
26346for ac_func in vsnprintf
26347do
e6cc62c6
VS
26348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26349echo "$as_me:$LINENO: checking for $ac_func" >&5
26350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26351if eval "test \"\${$as_ac_var+set}\" = set"; then
26352 echo $ECHO_N "(cached) $ECHO_C" >&6
26353else
26354 cat >conftest.$ac_ext <<_ACEOF
26355#line $LINENO "configure"
26356/* confdefs.h. */
26357_ACEOF
26358cat confdefs.h >>conftest.$ac_ext
26359cat >>conftest.$ac_ext <<_ACEOF
26360/* end confdefs.h. */
247f5006 26361/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26362 which can conflict with char $ac_func (); below.
26363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26364 <limits.h> exists even on freestanding compilers. */
26365#ifdef __STDC__
26366# include <limits.h>
26367#else
26368# include <assert.h>
26369#endif
247f5006
VZ
26370/* Override any gcc2 internal prototype to avoid an error. */
26371#ifdef __cplusplus
26372extern "C"
e6cc62c6 26373{
247f5006
VZ
26374#endif
26375/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26376 builtin and then its argument prototype would still apply. */
26377char $ac_func ();
247f5006
VZ
26378/* The GNU C library defines this for functions which it implements
26379 to always fail with ENOSYS. Some functions are actually named
26380 something starting with __ and the normal name is an alias. */
26381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26382choke me
26383#else
e6cc62c6
VS
26384char (*f) () = $ac_func;
26385#endif
26386#ifdef __cplusplus
26387}
247f5006 26388#endif
af15babd 26389
e6cc62c6
VS
26390int
26391main ()
26392{
26393return f != $ac_func;
26394 ;
26395 return 0;
26396}
26397_ACEOF
26398rm -f conftest.$ac_objext conftest$ac_exeext
26399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26400 (eval $ac_link) 2>&5
26401 ac_status=$?
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } &&
26404 { ac_try='test -s conftest$ac_exeext'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 eval "$as_ac_var=yes"
26411else
26412 echo "$as_me: failed program was:" >&5
26413sed 's/^/| /' conftest.$ac_ext >&5
26414
26415eval "$as_ac_var=no"
26416fi
26417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26418fi
26419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26421if test `eval echo '${'$as_ac_var'}'` = yes; then
26422 cat >>confdefs.h <<_ACEOF
26423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26424_ACEOF
52127426 26425
5c6fa7d2 26426fi
247f5006 26427done
8284b0c5 26428
4f14bcd8 26429
8d90d2f2 26430if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26431 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26432echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26433if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26435else
e6cc62c6
VS
26436
26437 cat >conftest.$ac_ext <<_ACEOF
26438#line $LINENO "configure"
26439/* confdefs.h. */
26440_ACEOF
26441cat confdefs.h >>conftest.$ac_ext
26442cat >>conftest.$ac_ext <<_ACEOF
26443/* end confdefs.h. */
8d90d2f2
VZ
26444
26445 #include <stdio.h>
26446 #include <stdarg.h>
e6cc62c6
VS
26447
26448int
26449main ()
26450{
8d90d2f2
VZ
26451
26452 char *buf;
26453 va_list ap;
26454 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26455
26456 ;
26457 return 0;
26458}
26459_ACEOF
26460rm -f conftest.$ac_objext
26461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26462 (eval $ac_compile) 2>&5
26463 ac_status=$?
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -s conftest.$ac_objext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26469 ac_status=$?
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
8d90d2f2
VZ
26472 wx_cv_func_vsnprintf_decl=yes
26473else
e6cc62c6
VS
26474 echo "$as_me: failed program was:" >&5
26475sed 's/^/| /' conftest.$ac_ext >&5
26476
26477wx_cv_func_vsnprintf_decl=no
26478
8d90d2f2 26479fi
e6cc62c6
VS
26480rm -f conftest.$ac_objext conftest.$ac_ext
26481
8d90d2f2 26482
e6cc62c6
VS
26483fi
26484echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26485echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26486
26487 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26488 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26489#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26490_ACEOF
8d90d2f2
VZ
26491
26492 fi
26493fi
26494
247f5006 26495if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26496
26497
26498
26499for ac_func in fputwc wprintf vswprintf
d74f4b5a 26500do
e6cc62c6
VS
26501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26502echo "$as_me:$LINENO: checking for $ac_func" >&5
26503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26504if eval "test \"\${$as_ac_var+set}\" = set"; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506else
26507 cat >conftest.$ac_ext <<_ACEOF
26508#line $LINENO "configure"
26509/* confdefs.h. */
26510_ACEOF
26511cat confdefs.h >>conftest.$ac_ext
26512cat >>conftest.$ac_ext <<_ACEOF
26513/* end confdefs.h. */
d74f4b5a 26514/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26515 which can conflict with char $ac_func (); below.
26516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26517 <limits.h> exists even on freestanding compilers. */
26518#ifdef __STDC__
26519# include <limits.h>
26520#else
26521# include <assert.h>
26522#endif
d74f4b5a 26523/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26524#ifdef __cplusplus
26525extern "C"
e6cc62c6 26526{
247f5006 26527#endif
d74f4b5a 26528/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26529 builtin and then its argument prototype would still apply. */
26530char $ac_func ();
d74f4b5a
VZ
26531/* The GNU C library defines this for functions which it implements
26532 to always fail with ENOSYS. Some functions are actually named
26533 something starting with __ and the normal name is an alias. */
26534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26535choke me
26536#else
e6cc62c6
VS
26537char (*f) () = $ac_func;
26538#endif
26539#ifdef __cplusplus
26540}
d74f4b5a
VZ
26541#endif
26542
e6cc62c6
VS
26543int
26544main ()
26545{
26546return f != $ac_func;
26547 ;
26548 return 0;
26549}
26550_ACEOF
26551rm -f conftest.$ac_objext conftest$ac_exeext
26552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26553 (eval $ac_link) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
26557 { ac_try='test -s conftest$ac_exeext'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 eval "$as_ac_var=yes"
26564else
26565 echo "$as_me: failed program was:" >&5
26566sed 's/^/| /' conftest.$ac_ext >&5
26567
26568eval "$as_ac_var=no"
26569fi
26570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26571fi
26572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26574if test `eval echo '${'$as_ac_var'}'` = yes; then
26575 cat >>confdefs.h <<_ACEOF
26576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26577_ACEOF
d74f4b5a 26578
d74f4b5a
VZ
26579fi
26580done
26581
8d90d2f2 26582
e6cc62c6
VS
26583 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26584echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26585 cat >conftest.$ac_ext <<_ACEOF
26586#line $LINENO "configure"
26587/* confdefs.h. */
26588_ACEOF
26589cat confdefs.h >>conftest.$ac_ext
26590cat >>conftest.$ac_ext <<_ACEOF
26591/* end confdefs.h. */
79668cae 26592#include <wchar.h>
e6cc62c6
VS
26593int
26594main ()
26595{
79668cae 26596&_vsnwprintf;
e6cc62c6
VS
26597 ;
26598 return 0;
26599}
26600_ACEOF
26601rm -f conftest.$ac_objext
26602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26603 (eval $ac_compile) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
26607 { ac_try='test -s conftest.$ac_objext'
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; }; then
26613 echo "$as_me:$LINENO: result: yes" >&5
26614echo "${ECHO_T}yes" >&6
26615 cat >>confdefs.h <<\_ACEOF
79668cae 26616#define HAVE__VSNWPRINTF 1
e6cc62c6 26617_ACEOF
79668cae
MB
26618
26619else
e6cc62c6
VS
26620 echo "$as_me: failed program was:" >&5
26621sed 's/^/| /' conftest.$ac_ext >&5
26622
26623echo "$as_me:$LINENO: result: no" >&5
26624echo "${ECHO_T}no" >&6
79668cae 26625fi
e6cc62c6 26626rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26627fi
26628
247f5006
VZ
26629ac_ext=c
26630ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26633ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26634
26635
26636
26637
4f14bcd8 26638if test "$TOOLKIT" != "MSW"; then
af15babd 26639
8284b0c5
MB
26640
26641
e6cc62c6
VS
26642
26643ac_ext=cc
4f14bcd8 26644ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26648
52127426 26649
e6cc62c6
VS
26650
26651
26652# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26653if test "${with_libiconv_prefix+set}" = set; then
26654 withval="$with_libiconv_prefix"
e6cc62c6 26655
b040e242
VS
26656 for dir in `echo "$withval" | tr : ' '`; do
26657 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26658 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26659 done
b040e242 26660
e6cc62c6 26661fi;
b040e242 26662
e6cc62c6
VS
26663 echo "$as_me:$LINENO: checking for iconv" >&5
26664echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26665if test "${am_cv_func_iconv+set}" = set; then
26666 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26667else
e6cc62c6 26668
b040e242
VS
26669 am_cv_func_iconv="no, consider installing GNU libiconv"
26670 am_cv_lib_iconv=no
e6cc62c6
VS
26671 cat >conftest.$ac_ext <<_ACEOF
26672#line $LINENO "configure"
26673/* confdefs.h. */
26674_ACEOF
26675cat confdefs.h >>conftest.$ac_ext
26676cat >>conftest.$ac_ext <<_ACEOF
26677/* end confdefs.h. */
b040e242 26678#include <stdlib.h>
4f14bcd8 26679#include <iconv.h>
e6cc62c6
VS
26680int
26681main ()
26682{
b040e242
VS
26683iconv_t cd = iconv_open("","");
26684 iconv(cd,NULL,NULL,NULL,NULL);
26685 iconv_close(cd);
e6cc62c6
VS
26686 ;
26687 return 0;
26688}
26689_ACEOF
26690rm -f conftest.$ac_objext conftest$ac_exeext
26691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26692 (eval $ac_link) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
26696 { ac_try='test -s conftest$ac_exeext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
b040e242 26702 am_cv_func_iconv=yes
af15babd 26703else
e6cc62c6
VS
26704 echo "$as_me: failed program was:" >&5
26705sed 's/^/| /' conftest.$ac_ext >&5
26706
b040e242 26707fi
e6cc62c6 26708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26709 if test "$am_cv_func_iconv" != yes; then
26710 am_save_LIBS="$LIBS"
26711 LIBS="$LIBS -liconv"
e6cc62c6
VS
26712 cat >conftest.$ac_ext <<_ACEOF
26713#line $LINENO "configure"
26714/* confdefs.h. */
26715_ACEOF
26716cat confdefs.h >>conftest.$ac_ext
26717cat >>conftest.$ac_ext <<_ACEOF
26718/* end confdefs.h. */
b040e242
VS
26719#include <stdlib.h>
26720#include <iconv.h>
e6cc62c6
VS
26721int
26722main ()
26723{
b040e242
VS
26724iconv_t cd = iconv_open("","");
26725 iconv(cd,NULL,NULL,NULL,NULL);
26726 iconv_close(cd);
e6cc62c6
VS
26727 ;
26728 return 0;
26729}
26730_ACEOF
26731rm -f conftest.$ac_objext conftest$ac_exeext
26732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26733 (eval $ac_link) 2>&5
26734 ac_status=$?
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
26737 { ac_try='test -s conftest$ac_exeext'
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }; then
b040e242
VS
26743 am_cv_lib_iconv=yes
26744 am_cv_func_iconv=yes
26745else
e6cc62c6
VS
26746 echo "$as_me: failed program was:" >&5
26747sed 's/^/| /' conftest.$ac_ext >&5
26748
af15babd 26749fi
e6cc62c6 26750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26751 LIBS="$am_save_LIBS"
26752 fi
247f5006 26753
e6cc62c6
VS
26754fi
26755echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26756echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26757 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26758
26759cat >>confdefs.h <<\_ACEOF
b040e242 26760#define HAVE_ICONV 1
e6cc62c6 26761_ACEOF
b040e242 26762
e6cc62c6
VS
26763 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26764echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26765if test "${wx_cv_func_iconv_const+set}" = set; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26767else
e6cc62c6
VS
26768 cat >conftest.$ac_ext <<_ACEOF
26769#line $LINENO "configure"
26770/* confdefs.h. */
26771_ACEOF
26772cat confdefs.h >>conftest.$ac_ext
26773cat >>conftest.$ac_ext <<_ACEOF
26774/* end confdefs.h. */
b040e242
VS
26775
26776#include <stdlib.h>
26777#include <iconv.h>
26778extern
26779#ifdef __cplusplus
26780"C"
26781#endif
26782#if defined(__STDC__) || defined(__cplusplus)
26783size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26784#else
26785size_t iconv();
26786#endif
af15babd 26787
e6cc62c6
VS
26788int
26789main ()
26790{
26791
26792 ;
26793 return 0;
26794}
26795_ACEOF
26796rm -f conftest.$ac_objext
26797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26798 (eval $ac_compile) 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
26802 { ac_try='test -s conftest.$ac_objext'
26803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
b7043674 26808 wx_cv_func_iconv_const="no"
b040e242 26809else
e6cc62c6
VS
26810 echo "$as_me: failed program was:" >&5
26811sed 's/^/| /' conftest.$ac_ext >&5
26812
26813wx_cv_func_iconv_const="yes"
26814
247f5006 26815fi
e6cc62c6 26816rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26817
e6cc62c6
VS
26818fi
26819echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26820echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26821
26822 iconv_const=
1c405bb5 26823 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26824 iconv_const="const"
26825 fi
26826
e6cc62c6
VS
26827
26828cat >>confdefs.h <<_ACEOF
f09359cf 26829#define ICONV_CONST $iconv_const
e6cc62c6 26830_ACEOF
b040e242
VS
26831
26832 fi
26833 LIBICONV=
26834 if test "$am_cv_lib_iconv" = yes; then
26835 LIBICONV="-liconv"
26836 fi
e6cc62c6 26837
b040e242
VS
26838
26839LIBS="$LIBICONV $LIBS"
4f14bcd8 26840ac_ext=c
4f14bcd8 26841ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26844ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26845
5c6fa7d2 26846
8284b0c5 26847if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26848
26849for ac_func in sigaction
af15babd 26850do
e6cc62c6
VS
26851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26852echo "$as_me:$LINENO: checking for $ac_func" >&5
26853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26854if eval "test \"\${$as_ac_var+set}\" = set"; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856else
26857 cat >conftest.$ac_ext <<_ACEOF
26858#line $LINENO "configure"
26859/* confdefs.h. */
26860_ACEOF
26861cat confdefs.h >>conftest.$ac_ext
26862cat >>conftest.$ac_ext <<_ACEOF
26863/* end confdefs.h. */
af15babd 26864/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26865 which can conflict with char $ac_func (); below.
26866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26867 <limits.h> exists even on freestanding compilers. */
26868#ifdef __STDC__
26869# include <limits.h>
26870#else
26871# include <assert.h>
26872#endif
af15babd 26873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26874#ifdef __cplusplus
26875extern "C"
26876{
26877#endif
af15babd 26878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26879 builtin and then its argument prototype would still apply. */
26880char $ac_func ();
af15babd
VZ
26881/* The GNU C library defines this for functions which it implements
26882 to always fail with ENOSYS. Some functions are actually named
26883 something starting with __ and the normal name is an alias. */
26884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26885choke me
26886#else
e6cc62c6
VS
26887char (*f) () = $ac_func;
26888#endif
26889#ifdef __cplusplus
26890}
af15babd
VZ
26891#endif
26892
e6cc62c6
VS
26893int
26894main ()
26895{
26896return f != $ac_func;
26897 ;
26898 return 0;
26899}
26900_ACEOF
26901rm -f conftest.$ac_objext conftest$ac_exeext
26902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26903 (eval $ac_link) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
26907 { ac_try='test -s conftest$ac_exeext'
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; }; then
26913 eval "$as_ac_var=yes"
26914else
26915 echo "$as_me: failed program was:" >&5
26916sed 's/^/| /' conftest.$ac_ext >&5
26917
26918eval "$as_ac_var=no"
26919fi
26920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26921fi
26922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26924if test `eval echo '${'$as_ac_var'}'` = yes; then
26925 cat >>confdefs.h <<_ACEOF
26926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26927_ACEOF
7b4a847f 26928
4f14bcd8
GD
26929fi
26930done
26931
8284b0c5 26932
4f14bcd8 26933 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26934 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26935echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26936 wxUSE_ON_FATAL_EXCEPTION=no
26937 fi
26938
26939 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26940
26941
26942 ac_ext=cc
5c6fa7d2 26943ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26947
5c6fa7d2 26948
e6cc62c6
VS
26949 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26950echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26951if test "${wx_cv_type_sa_handler+set}" = set; then
26952 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26953else
e6cc62c6
VS
26954
26955 cat >conftest.$ac_ext <<_ACEOF
26956#line $LINENO "configure"
26957/* confdefs.h. */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h. */
4f14bcd8 26962#include <signal.h>
e6cc62c6
VS
26963int
26964main ()
26965{
4f14bcd8
GD
26966
26967 extern void testSigHandler(int);
26968
26969 struct sigaction sa;
26970 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26971
26972 ;
26973 return 0;
26974}
26975_ACEOF
26976rm -f conftest.$ac_objext
26977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978 (eval $ac_compile) 2>&5
26979 ac_status=$?
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); } &&
26982 { ac_try='test -s conftest.$ac_objext'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; }; then
26988
4f14bcd8 26989 wx_cv_type_sa_handler=int
e6cc62c6 26990
af15babd 26991else
e6cc62c6
VS
26992 echo "$as_me: failed program was:" >&5
26993sed 's/^/| /' conftest.$ac_ext >&5
26994
26995
4f14bcd8 26996 wx_cv_type_sa_handler=void
e6cc62c6 26997
247f5006 26998fi
e6cc62c6 26999rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27000
e6cc62c6
VS
27001fi
27002echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27003echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27004
27005 ac_ext=c
4f14bcd8 27006ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27009ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27010
8284b0c5 27011
e6cc62c6 27012 cat >>confdefs.h <<_ACEOF
4f14bcd8 27013#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27014_ACEOF
af15babd 27015
4f14bcd8
GD
27016 fi
27017fi
af15babd 27018
e6cc62c6
VS
27019
27020
a1d22ad7 27021for ac_func in mkstemp mktemp
af15babd 27022do
e6cc62c6
VS
27023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27024echo "$as_me:$LINENO: checking for $ac_func" >&5
27025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27026if eval "test \"\${$as_ac_var+set}\" = set"; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029 cat >conftest.$ac_ext <<_ACEOF
27030#line $LINENO "configure"
27031/* confdefs.h. */
27032_ACEOF
27033cat confdefs.h >>conftest.$ac_ext
27034cat >>conftest.$ac_ext <<_ACEOF
27035/* end confdefs.h. */
af15babd 27036/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27037 which can conflict with char $ac_func (); below.
27038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27039 <limits.h> exists even on freestanding compilers. */
27040#ifdef __STDC__
27041# include <limits.h>
27042#else
27043# include <assert.h>
27044#endif
af15babd 27045/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27046#ifdef __cplusplus
27047extern "C"
27048{
27049#endif
af15babd 27050/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27051 builtin and then its argument prototype would still apply. */
27052char $ac_func ();
af15babd
VZ
27053/* The GNU C library defines this for functions which it implements
27054 to always fail with ENOSYS. Some functions are actually named
27055 something starting with __ and the normal name is an alias. */
27056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27057choke me
27058#else
e6cc62c6
VS
27059char (*f) () = $ac_func;
27060#endif
27061#ifdef __cplusplus
27062}
af15babd
VZ
27063#endif
27064
e6cc62c6
VS
27065int
27066main ()
27067{
27068return f != $ac_func;
27069 ;
27070 return 0;
27071}
27072_ACEOF
27073rm -f conftest.$ac_objext conftest$ac_exeext
27074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27075 (eval $ac_link) 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } &&
27079 { ac_try='test -s conftest$ac_exeext'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; }; then
27085 eval "$as_ac_var=yes"
27086else
27087 echo "$as_me: failed program was:" >&5
27088sed 's/^/| /' conftest.$ac_ext >&5
27089
27090eval "$as_ac_var=no"
27091fi
27092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27093fi
27094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27096if test `eval echo '${'$as_ac_var'}'` = yes; then
27097 cat >>confdefs.h <<_ACEOF
27098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27099_ACEOF
ade35f11 27100 break
ade35f11
VZ
27101fi
27102done
27103
8284b0c5 27104
e6cc62c6
VS
27105echo "$as_me:$LINENO: checking for statfs" >&5
27106echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27107if test "${wx_cv_func_statfs+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27109else
e6cc62c6
VS
27110 cat >conftest.$ac_ext <<_ACEOF
27111#line $LINENO "configure"
27112/* confdefs.h. */
27113_ACEOF
27114cat confdefs.h >>conftest.$ac_ext
27115cat >>conftest.$ac_ext <<_ACEOF
27116/* end confdefs.h. */
4f14bcd8
GD
27117
27118 #if defined(__BSD__)
27119 #include <sys/param.h>
27120 #include <sys/mount.h>
27121 #else
27122 #include <sys/vfs.h>
27123 #endif
e6cc62c6
VS
27124
27125int
27126main ()
27127{
4f14bcd8
GD
27128
27129 long l;
27130 struct statfs fs;
27131 statfs("/", &fs);
27132 l = fs.f_bsize;
27133 l += fs.f_blocks;
27134 l += fs.f_bavail;
e6cc62c6
VS
27135
27136 ;
27137 return 0;
27138}
27139_ACEOF
27140rm -f conftest.$ac_objext
27141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27142 (eval $ac_compile) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } &&
27146 { ac_try='test -s conftest.$ac_objext'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
27152
4f14bcd8 27153 wx_cv_func_statfs=yes
e6cc62c6 27154
4f14bcd8 27155else
e6cc62c6
VS
27156 echo "$as_me: failed program was:" >&5
27157sed 's/^/| /' conftest.$ac_ext >&5
27158
27159
4f14bcd8 27160 wx_cv_func_statfs=no
e6cc62c6 27161
8284b0c5 27162
247f5006 27163fi
e6cc62c6 27164rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27165
e6cc62c6
VS
27166fi
27167echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27168echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27169
27170if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27171 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27172 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27173#define HAVE_STATFS 1
e6cc62c6 27174_ACEOF
4f14bcd8
GD
27175
27176else
e6cc62c6
VS
27177 echo "$as_me:$LINENO: checking for statvfs" >&5
27178echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27179if test "${wx_cv_func_statvfs+set}" = set; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27181else
e6cc62c6
VS
27182 cat >conftest.$ac_ext <<_ACEOF
27183#line $LINENO "configure"
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
af15babd 27189
54ab82b3
VZ
27190 #include <stddef.h>
27191 #include <sys/statvfs.h>
e6cc62c6
VS
27192
27193int
27194main ()
27195{
af15babd 27196
54ab82b3 27197 statvfs("/", NULL);
e6cc62c6
VS
27198
27199 ;
27200 return 0;
27201}
27202_ACEOF
27203rm -f conftest.$ac_objext
27204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27205 (eval $ac_compile) 2>&5
27206 ac_status=$?
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); } &&
27209 { ac_try='test -s conftest.$ac_objext'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
54ab82b3 27215 wx_cv_func_statvfs=yes
af15babd 27216else
e6cc62c6
VS
27217 echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
27220wx_cv_func_statvfs=no
27221
247f5006 27222fi
e6cc62c6 27223rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27224
e6cc62c6
VS
27225fi
27226echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27227echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27228
4f14bcd8 27229 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27230
27231
27232 ac_ext=cc
54ab82b3 27233ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27237
27238
e6cc62c6
VS
27239 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27240echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27241if test "${wx_cv_type_statvfs_t+set}" = set; then
27242 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27243else
e6cc62c6
VS
27244 cat >conftest.$ac_ext <<_ACEOF
27245#line $LINENO "configure"
27246/* confdefs.h. */
27247_ACEOF
27248cat confdefs.h >>conftest.$ac_ext
27249cat >>conftest.$ac_ext <<_ACEOF
27250/* end confdefs.h. */
54ab82b3
VZ
27251
27252 #include <sys/statvfs.h>
e6cc62c6
VS
27253
27254int
27255main ()
27256{
54ab82b3
VZ
27257
27258 long l;
27259 statvfs_t fs;
27260 statvfs("/", &fs);
27261 l = fs.f_bsize;
27262 l += fs.f_blocks;
27263 l += fs.f_bavail;
e6cc62c6
VS
27264
27265 ;
27266 return 0;
27267}
27268_ACEOF
27269rm -f conftest.$ac_objext
27270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27271 (eval $ac_compile) 2>&5
27272 ac_status=$?
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); } &&
27275 { ac_try='test -s conftest.$ac_objext'
27276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277 (eval $ac_try) 2>&5
27278 ac_status=$?
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; }; then
54ab82b3
VZ
27281 wx_cv_type_statvfs_t=statvfs_t
27282else
e6cc62c6
VS
27283 echo "$as_me: failed program was:" >&5
27284sed 's/^/| /' conftest.$ac_ext >&5
27285
27286
27287 cat >conftest.$ac_ext <<_ACEOF
27288#line $LINENO "configure"
27289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
54ab82b3
VZ
27294
27295 #include <sys/statvfs.h>
e6cc62c6
VS
27296
27297int
27298main ()
27299{
54ab82b3
VZ
27300
27301 long l;
65d8ef1e 27302 struct statvfs fs;
54ab82b3
VZ
27303 statvfs("/", &fs);
27304 l = fs.f_bsize;
27305 l += fs.f_blocks;
27306 l += fs.f_bavail;
e6cc62c6
VS
27307
27308 ;
27309 return 0;
27310}
27311_ACEOF
27312rm -f conftest.$ac_objext
27313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27314 (eval $ac_compile) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); } &&
27318 { ac_try='test -s conftest.$ac_objext'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
54ab82b3
VZ
27324 wx_cv_type_statvfs_t="struct statvfs"
27325else
e6cc62c6
VS
27326 echo "$as_me: failed program was:" >&5
27327sed 's/^/| /' conftest.$ac_ext >&5
27328
27329wx_cv_type_statvfs_t="unknown"
27330
54ab82b3 27331fi
e6cc62c6
VS
27332rm -f conftest.$ac_objext conftest.$ac_ext
27333
27334
54ab82b3 27335fi
e6cc62c6 27336rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27337
e6cc62c6
VS
27338fi
27339echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27340echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27341
27342 ac_ext=c
54ab82b3 27343ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27346ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27347
27348
27349 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27350 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27351#define HAVE_STATVFS 1
e6cc62c6 27352_ACEOF
af15babd 27353
54ab82b3 27354 fi
4f14bcd8 27355 else
54ab82b3 27356 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27357 fi
27358fi
af15babd 27359
54ab82b3 27360if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27361 cat >>confdefs.h <<_ACEOF
54ab82b3 27362#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27363_ACEOF
54ab82b3
VZ
27364
27365else
e6cc62c6
VS
27366 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27367echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27368fi
27369
4f14bcd8 27370if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27371
27372
27373for ac_func in fcntl flock
af15babd 27374do
e6cc62c6
VS
27375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27376echo "$as_me:$LINENO: checking for $ac_func" >&5
27377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27378if eval "test \"\${$as_ac_var+set}\" = set"; then
27379 echo $ECHO_N "(cached) $ECHO_C" >&6
27380else
27381 cat >conftest.$ac_ext <<_ACEOF
27382#line $LINENO "configure"
27383/* confdefs.h. */
27384_ACEOF
27385cat confdefs.h >>conftest.$ac_ext
27386cat >>conftest.$ac_ext <<_ACEOF
27387/* end confdefs.h. */
af15babd 27388/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27389 which can conflict with char $ac_func (); below.
27390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27391 <limits.h> exists even on freestanding compilers. */
27392#ifdef __STDC__
27393# include <limits.h>
27394#else
27395# include <assert.h>
27396#endif
af15babd 27397/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27398#ifdef __cplusplus
27399extern "C"
27400{
27401#endif
af15babd 27402/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27403 builtin and then its argument prototype would still apply. */
27404char $ac_func ();
af15babd
VZ
27405/* The GNU C library defines this for functions which it implements
27406 to always fail with ENOSYS. Some functions are actually named
27407 something starting with __ and the normal name is an alias. */
27408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27409choke me
27410#else
e6cc62c6
VS
27411char (*f) () = $ac_func;
27412#endif
27413#ifdef __cplusplus
27414}
af15babd
VZ
27415#endif
27416
e6cc62c6
VS
27417int
27418main ()
27419{
27420return f != $ac_func;
27421 ;
27422 return 0;
27423}
27424_ACEOF
27425rm -f conftest.$ac_objext conftest$ac_exeext
27426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27427 (eval $ac_link) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
27431 { ac_try='test -s conftest$ac_exeext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 eval "$as_ac_var=yes"
27438else
27439 echo "$as_me: failed program was:" >&5
27440sed 's/^/| /' conftest.$ac_ext >&5
27441
27442eval "$as_ac_var=no"
27443fi
27444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27445fi
27446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27448if test `eval echo '${'$as_ac_var'}'` = yes; then
27449 cat >>confdefs.h <<_ACEOF
27450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27451_ACEOF
4f14bcd8 27452 break
af15babd
VZ
27453fi
27454done
27455
8284b0c5 27456
4f14bcd8 27457 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27458 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27459echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27460 wxUSE_SNGLINST_CHECKER=no
27461 fi
27462fi
af15babd 27463
e6cc62c6 27464
4f14bcd8 27465for ac_func in timegm
af15babd 27466do
e6cc62c6
VS
27467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27468echo "$as_me:$LINENO: checking for $ac_func" >&5
27469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27470if eval "test \"\${$as_ac_var+set}\" = set"; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27472else
27473 cat >conftest.$ac_ext <<_ACEOF
27474#line $LINENO "configure"
27475/* confdefs.h. */
27476_ACEOF
27477cat confdefs.h >>conftest.$ac_ext
27478cat >>conftest.$ac_ext <<_ACEOF
27479/* end confdefs.h. */
af15babd 27480/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27481 which can conflict with char $ac_func (); below.
27482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27483 <limits.h> exists even on freestanding compilers. */
27484#ifdef __STDC__
27485# include <limits.h>
27486#else
27487# include <assert.h>
27488#endif
af15babd 27489/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27490#ifdef __cplusplus
27491extern "C"
27492{
27493#endif
af15babd 27494/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27495 builtin and then its argument prototype would still apply. */
27496char $ac_func ();
af15babd
VZ
27497/* The GNU C library defines this for functions which it implements
27498 to always fail with ENOSYS. Some functions are actually named
27499 something starting with __ and the normal name is an alias. */
247f5006
VZ
27500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27501choke me
27502#else
e6cc62c6
VS
27503char (*f) () = $ac_func;
27504#endif
27505#ifdef __cplusplus
27506}
247f5006
VZ
27507#endif
27508
e6cc62c6
VS
27509int
27510main ()
27511{
27512return f != $ac_func;
27513 ;
27514 return 0;
27515}
27516_ACEOF
27517rm -f conftest.$ac_objext conftest$ac_exeext
27518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27519 (eval $ac_link) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
27523 { ac_try='test -s conftest$ac_exeext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 eval "$as_ac_var=yes"
27530else
27531 echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
27534eval "$as_ac_var=no"
27535fi
27536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27537fi
27538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540if test `eval echo '${'$as_ac_var'}'` = yes; then
27541 cat >>confdefs.h <<_ACEOF
27542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543_ACEOF
703e0a69 27544
af15babd
VZ
27545fi
27546done
27547
8284b0c5 27548
e6cc62c6
VS
27549
27550
4f14bcd8 27551for ac_func in putenv setenv
10f2d63a 27552do
e6cc62c6
VS
27553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27554echo "$as_me:$LINENO: checking for $ac_func" >&5
27555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27556if eval "test \"\${$as_ac_var+set}\" = set"; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27558else
27559 cat >conftest.$ac_ext <<_ACEOF
27560#line $LINENO "configure"
27561/* confdefs.h. */
27562_ACEOF
27563cat confdefs.h >>conftest.$ac_ext
27564cat >>conftest.$ac_ext <<_ACEOF
27565/* end confdefs.h. */
af15babd 27566/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27567 which can conflict with char $ac_func (); below.
27568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27569 <limits.h> exists even on freestanding compilers. */
27570#ifdef __STDC__
27571# include <limits.h>
27572#else
27573# include <assert.h>
27574#endif
af15babd 27575/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27576#ifdef __cplusplus
27577extern "C"
27578{
27579#endif
af15babd 27580/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27581 builtin and then its argument prototype would still apply. */
27582char $ac_func ();
af15babd
VZ
27583/* The GNU C library defines this for functions which it implements
27584 to always fail with ENOSYS. Some functions are actually named
27585 something starting with __ and the normal name is an alias. */
27586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27587choke me
27588#else
e6cc62c6
VS
27589char (*f) () = $ac_func;
27590#endif
27591#ifdef __cplusplus
27592}
af15babd
VZ
27593#endif
27594
e6cc62c6
VS
27595int
27596main ()
27597{
27598return f != $ac_func;
27599 ;
27600 return 0;
27601}
27602_ACEOF
27603rm -f conftest.$ac_objext conftest$ac_exeext
27604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27605 (eval $ac_link) 2>&5
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } &&
27609 { ac_try='test -s conftest$ac_exeext'
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 eval "$as_ac_var=yes"
27616else
27617 echo "$as_me: failed program was:" >&5
27618sed 's/^/| /' conftest.$ac_ext >&5
27619
27620eval "$as_ac_var=no"
27621fi
27622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27623fi
27624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27626if test `eval echo '${'$as_ac_var'}'` = yes; then
27627 cat >>confdefs.h <<_ACEOF
27628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27629_ACEOF
4f14bcd8 27630 break
af15babd 27631fi
af15babd
VZ
27632done
27633
8284b0c5 27634
4f14bcd8
GD
27635HAVE_SOME_SLEEP_FUNC=0
27636if test "$USE_BEOS" = 1; then
e6cc62c6 27637 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27638#define HAVE_SLEEP 1
e6cc62c6 27639_ACEOF
af15babd 27640
4f14bcd8 27641 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27642fi
27643
4f14bcd8 27644if test "$USE_DARWIN" = 1; then
e6cc62c6 27645 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27646#define HAVE_USLEEP 1
e6cc62c6 27647_ACEOF
10f2d63a 27648
4f14bcd8 27649 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27650fi
27651
4f14bcd8
GD
27652if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27653 POSIX4_LINK=
e6cc62c6
VS
27654
27655for ac_func in nanosleep
4f14bcd8 27656do
e6cc62c6
VS
27657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27658echo "$as_me:$LINENO: checking for $ac_func" >&5
27659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27660if eval "test \"\${$as_ac_var+set}\" = set"; then
27661 echo $ECHO_N "(cached) $ECHO_C" >&6
27662else
27663 cat >conftest.$ac_ext <<_ACEOF
27664#line $LINENO "configure"
27665/* confdefs.h. */
27666_ACEOF
27667cat confdefs.h >>conftest.$ac_ext
27668cat >>conftest.$ac_ext <<_ACEOF
27669/* end confdefs.h. */
4f14bcd8 27670/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27671 which can conflict with char $ac_func (); below.
27672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27673 <limits.h> exists even on freestanding compilers. */
27674#ifdef __STDC__
27675# include <limits.h>
27676#else
27677# include <assert.h>
27678#endif
10f2d63a 27679/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27680#ifdef __cplusplus
27681extern "C"
27682{
27683#endif
10f2d63a 27684/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27685 builtin and then its argument prototype would still apply. */
27686char $ac_func ();
4f14bcd8
GD
27687/* The GNU C library defines this for functions which it implements
27688 to always fail with ENOSYS. Some functions are actually named
27689 something starting with __ and the normal name is an alias. */
27690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27691choke me
27692#else
e6cc62c6
VS
27693char (*f) () = $ac_func;
27694#endif
27695#ifdef __cplusplus
27696}
4f14bcd8
GD
27697#endif
27698
e6cc62c6
VS
27699int
27700main ()
27701{
27702return f != $ac_func;
27703 ;
27704 return 0;
27705}
27706_ACEOF
27707rm -f conftest.$ac_objext conftest$ac_exeext
27708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try='test -s conftest$ac_exeext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 eval "$as_ac_var=yes"
27720else
27721 echo "$as_me: failed program was:" >&5
27722sed 's/^/| /' conftest.$ac_ext >&5
27723
27724eval "$as_ac_var=no"
27725fi
27726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27727fi
27728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27730if test `eval echo '${'$as_ac_var'}'` = yes; then
27731 cat >>confdefs.h <<_ACEOF
27732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27733_ACEOF
27734 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27735#define HAVE_NANOSLEEP 1
e6cc62c6 27736_ACEOF
4f14bcd8 27737
10f2d63a 27738else
e6cc62c6
VS
27739
27740 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27741echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27742if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27744else
e6cc62c6 27745 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27746LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27747cat >conftest.$ac_ext <<_ACEOF
27748#line $LINENO "configure"
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754
10f2d63a 27755/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27756#ifdef __cplusplus
27757extern "C"
27758#endif
10f2d63a 27759/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27760 builtin and then its argument prototype would still apply. */
27761char nanosleep ();
27762int
27763main ()
27764{
27765nanosleep ();
27766 ;
27767 return 0;
27768}
27769_ACEOF
27770rm -f conftest.$ac_objext conftest$ac_exeext
27771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27772 (eval $ac_link) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782 ac_cv_lib_posix4_nanosleep=yes
27783else
27784 echo "$as_me: failed program was:" >&5
27785sed 's/^/| /' conftest.$ac_ext >&5
27786
27787ac_cv_lib_posix4_nanosleep=no
27788fi
27789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27790LIBS=$ac_check_lib_save_LIBS
27791fi
27792echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27793echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27794if test $ac_cv_lib_posix4_nanosleep = yes; then
27795
27796 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27797#define HAVE_NANOSLEEP 1
e6cc62c6 27798_ACEOF
4f14bcd8 27799
3d63bc3a 27800 POSIX4_LINK=" -lposix4"
e6cc62c6 27801
10f2d63a 27802else
10f2d63a 27803
e6cc62c6
VS
27804
27805for ac_func in usleep
4f14bcd8 27806do
e6cc62c6
VS
27807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27808echo "$as_me:$LINENO: checking for $ac_func" >&5
27809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27810if eval "test \"\${$as_ac_var+set}\" = set"; then
27811 echo $ECHO_N "(cached) $ECHO_C" >&6
27812else
27813 cat >conftest.$ac_ext <<_ACEOF
27814#line $LINENO "configure"
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
27819/* end confdefs.h. */
4f14bcd8 27820/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27821 which can conflict with char $ac_func (); below.
27822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27823 <limits.h> exists even on freestanding compilers. */
27824#ifdef __STDC__
27825# include <limits.h>
27826#else
27827# include <assert.h>
27828#endif
4f14bcd8 27829/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27830#ifdef __cplusplus
27831extern "C"
27832{
27833#endif
4f14bcd8 27834/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27835 builtin and then its argument prototype would still apply. */
27836char $ac_func ();
4f14bcd8
GD
27837/* The GNU C library defines this for functions which it implements
27838 to always fail with ENOSYS. Some functions are actually named
27839 something starting with __ and the normal name is an alias. */
27840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27841choke me
27842#else
e6cc62c6
VS
27843char (*f) () = $ac_func;
27844#endif
27845#ifdef __cplusplus
27846}
4f14bcd8
GD
27847#endif
27848
e6cc62c6
VS
27849int
27850main ()
27851{
27852return f != $ac_func;
27853 ;
27854 return 0;
27855}
27856_ACEOF
27857rm -f conftest.$ac_objext conftest$ac_exeext
27858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27859 (eval $ac_link) 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } &&
27863 { ac_try='test -s conftest$ac_exeext'
27864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865 (eval $ac_try) 2>&5
27866 ac_status=$?
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; }; then
27869 eval "$as_ac_var=yes"
27870else
27871 echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
27874eval "$as_ac_var=no"
27875fi
27876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27877fi
27878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27880if test `eval echo '${'$as_ac_var'}'` = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27883_ACEOF
27884 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27885#define HAVE_USLEEP 1
e6cc62c6 27886_ACEOF
4f14bcd8 27887
698dcdb6 27888else
e6cc62c6
VS
27889 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27890echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27891
10f2d63a 27892fi
4f14bcd8 27893done
10f2d63a 27894
e6cc62c6
VS
27895
27896
6232543b 27897fi
10f2d63a 27898
e6cc62c6
VS
27899
27900
1e487827 27901fi
4f14bcd8 27902done
703e0a69 27903
10f2d63a
VZ
27904fi
27905
e6cc62c6
VS
27906
27907
4f14bcd8 27908for ac_func in uname gethostname
70846f0a 27909do
e6cc62c6
VS
27910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27911echo "$as_me:$LINENO: checking for $ac_func" >&5
27912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27913if eval "test \"\${$as_ac_var+set}\" = set"; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915else
27916 cat >conftest.$ac_ext <<_ACEOF
27917#line $LINENO "configure"
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
70846f0a 27923/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27924 which can conflict with char $ac_func (); below.
27925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27926 <limits.h> exists even on freestanding compilers. */
27927#ifdef __STDC__
27928# include <limits.h>
27929#else
27930# include <assert.h>
27931#endif
70846f0a 27932/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27933#ifdef __cplusplus
27934extern "C"
27935{
27936#endif
70846f0a 27937/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27938 builtin and then its argument prototype would still apply. */
27939char $ac_func ();
70846f0a
VZ
27940/* The GNU C library defines this for functions which it implements
27941 to always fail with ENOSYS. Some functions are actually named
27942 something starting with __ and the normal name is an alias. */
27943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27944choke me
27945#else
e6cc62c6
VS
27946char (*f) () = $ac_func;
27947#endif
27948#ifdef __cplusplus
27949}
70846f0a
VZ
27950#endif
27951
e6cc62c6
VS
27952int
27953main ()
27954{
27955return f != $ac_func;
27956 ;
27957 return 0;
27958}
27959_ACEOF
27960rm -f conftest.$ac_objext conftest$ac_exeext
27961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27962 (eval $ac_link) 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
27966 { ac_try='test -s conftest$ac_exeext'
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; }; then
27972 eval "$as_ac_var=yes"
27973else
27974 echo "$as_me: failed program was:" >&5
27975sed 's/^/| /' conftest.$ac_ext >&5
27976
27977eval "$as_ac_var=no"
27978fi
27979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27980fi
27981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27983if test `eval echo '${'$as_ac_var'}'` = yes; then
27984 cat >>confdefs.h <<_ACEOF
27985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27986_ACEOF
4f14bcd8 27987 break
70846f0a
VZ
27988fi
27989done
27990
8284b0c5
MB
27991
27992
e6cc62c6
VS
27993
27994ac_ext=cc
4f14bcd8 27995ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27999
8284b0c5 28000
4f14bcd8
GD
28001
28002for ac_func in strtok_r
10f2d63a 28003do
e6cc62c6
VS
28004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005echo "$as_me:$LINENO: checking for $ac_func" >&5
28006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007if eval "test \"\${$as_ac_var+set}\" = set"; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28009else
28010 cat >conftest.$ac_ext <<_ACEOF
28011#line $LINENO "configure"
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
4f14bcd8 28017/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28018 which can conflict with char $ac_func (); below.
28019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020 <limits.h> exists even on freestanding compilers. */
28021#ifdef __STDC__
28022# include <limits.h>
28023#else
28024# include <assert.h>
28025#endif
4f14bcd8
GD
28026/* Override any gcc2 internal prototype to avoid an error. */
28027#ifdef __cplusplus
28028extern "C"
e6cc62c6 28029{
4f14bcd8
GD
28030#endif
28031/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28032 builtin and then its argument prototype would still apply. */
28033char $ac_func ();
4f14bcd8
GD
28034/* The GNU C library defines this for functions which it implements
28035 to always fail with ENOSYS. Some functions are actually named
28036 something starting with __ and the normal name is an alias. */
28037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28038choke me
28039#else
e6cc62c6
VS
28040char (*f) () = $ac_func;
28041#endif
28042#ifdef __cplusplus
28043}
4f14bcd8
GD
28044#endif
28045
e6cc62c6
VS
28046int
28047main ()
28048{
28049return f != $ac_func;
28050 ;
28051 return 0;
28052}
28053_ACEOF
28054rm -f conftest.$ac_objext conftest$ac_exeext
28055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28056 (eval $ac_link) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try='test -s conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 eval "$as_ac_var=yes"
28067else
28068 echo "$as_me: failed program was:" >&5
28069sed 's/^/| /' conftest.$ac_ext >&5
28070
28071eval "$as_ac_var=no"
28072fi
28073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28074fi
28075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077if test `eval echo '${'$as_ac_var'}'` = yes; then
28078 cat >>confdefs.h <<_ACEOF
28079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28080_ACEOF
4f14bcd8 28081
10f2d63a
VZ
28082fi
28083done
28084
8284b0c5 28085
4f14bcd8 28086ac_ext=c
4f14bcd8 28087ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28090ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28091
5c6fa7d2 28092
8284b0c5 28093INET_LINK=
e6cc62c6 28094
4f14bcd8
GD
28095for ac_func in inet_addr
28096do
e6cc62c6
VS
28097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28098echo "$as_me:$LINENO: checking for $ac_func" >&5
28099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28100if eval "test \"\${$as_ac_var+set}\" = set"; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
28102else
28103 cat >conftest.$ac_ext <<_ACEOF
28104#line $LINENO "configure"
28105/* confdefs.h. */
28106_ACEOF
28107cat confdefs.h >>conftest.$ac_ext
28108cat >>conftest.$ac_ext <<_ACEOF
28109/* end confdefs.h. */
4f14bcd8 28110/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28111 which can conflict with char $ac_func (); below.
28112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28113 <limits.h> exists even on freestanding compilers. */
28114#ifdef __STDC__
28115# include <limits.h>
28116#else
28117# include <assert.h>
28118#endif
10f2d63a 28119/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28120#ifdef __cplusplus
28121extern "C"
28122{
28123#endif
10f2d63a 28124/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28125 builtin and then its argument prototype would still apply. */
28126char $ac_func ();
4f14bcd8
GD
28127/* The GNU C library defines this for functions which it implements
28128 to always fail with ENOSYS. Some functions are actually named
28129 something starting with __ and the normal name is an alias. */
28130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28131choke me
28132#else
e6cc62c6
VS
28133char (*f) () = $ac_func;
28134#endif
28135#ifdef __cplusplus
28136}
4f14bcd8
GD
28137#endif
28138
e6cc62c6
VS
28139int
28140main ()
28141{
28142return f != $ac_func;
28143 ;
28144 return 0;
28145}
28146_ACEOF
28147rm -f conftest.$ac_objext conftest$ac_exeext
28148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28149 (eval $ac_link) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } &&
28153 { ac_try='test -s conftest$ac_exeext'
28154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155 (eval $ac_try) 2>&5
28156 ac_status=$?
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); }; }; then
28159 eval "$as_ac_var=yes"
28160else
28161 echo "$as_me: failed program was:" >&5
28162sed 's/^/| /' conftest.$ac_ext >&5
28163
28164eval "$as_ac_var=no"
28165fi
28166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28167fi
28168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28170if test `eval echo '${'$as_ac_var'}'` = yes; then
28171 cat >>confdefs.h <<_ACEOF
28172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28173_ACEOF
28174 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28175#define HAVE_INET_ADDR 1
e6cc62c6 28176_ACEOF
10f2d63a
VZ
28177
28178else
e6cc62c6
VS
28179
28180 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28181echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28182if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28183 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28184else
e6cc62c6 28185 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28186LIBS="-lnsl $LIBS"
e6cc62c6
VS
28187cat >conftest.$ac_ext <<_ACEOF
28188#line $LINENO "configure"
28189/* confdefs.h. */
28190_ACEOF
28191cat confdefs.h >>conftest.$ac_ext
28192cat >>conftest.$ac_ext <<_ACEOF
28193/* end confdefs.h. */
28194
10f2d63a 28195/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28196#ifdef __cplusplus
28197extern "C"
28198#endif
10f2d63a 28199/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28200 builtin and then its argument prototype would still apply. */
28201char inet_addr ();
28202int
28203main ()
28204{
28205inet_addr ();
28206 ;
28207 return 0;
28208}
28209_ACEOF
28210rm -f conftest.$ac_objext conftest$ac_exeext
28211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28212 (eval $ac_link) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); } &&
28216 { ac_try='test -s conftest$ac_exeext'
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; }; then
28222 ac_cv_lib_nsl_inet_addr=yes
28223else
28224 echo "$as_me: failed program was:" >&5
28225sed 's/^/| /' conftest.$ac_ext >&5
28226
28227ac_cv_lib_nsl_inet_addr=no
28228fi
28229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28230LIBS=$ac_check_lib_save_LIBS
28231fi
28232echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28233echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28234if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28235 INET_LINK="nsl"
10f2d63a 28236else
0e012a93
VZ
28237
28238 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28239echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28240if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28242else
e6cc62c6 28243 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28244LIBS="-lresolv $LIBS"
e6cc62c6
VS
28245cat >conftest.$ac_ext <<_ACEOF
28246#line $LINENO "configure"
28247/* confdefs.h. */
28248_ACEOF
28249cat confdefs.h >>conftest.$ac_ext
28250cat >>conftest.$ac_ext <<_ACEOF
28251/* end confdefs.h. */
28252
5c6fa7d2 28253/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28254#ifdef __cplusplus
28255extern "C"
28256#endif
5c6fa7d2 28257/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28258 builtin and then its argument prototype would still apply. */
28259char inet_addr ();
28260int
28261main ()
28262{
28263inet_addr ();
28264 ;
28265 return 0;
28266}
28267_ACEOF
28268rm -f conftest.$ac_objext conftest$ac_exeext
28269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270 (eval $ac_link) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); } &&
28274 { ac_try='test -s conftest$ac_exeext'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_lib_resolv_inet_addr=yes
28281else
28282 echo "$as_me: failed program was:" >&5
28283sed 's/^/| /' conftest.$ac_ext >&5
28284
28285ac_cv_lib_resolv_inet_addr=no
28286fi
28287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28288LIBS=$ac_check_lib_save_LIBS
28289fi
28290echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28291echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28292if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28293 INET_LINK="resolv"
698dcdb6 28294else
0e012a93
VZ
28295
28296 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28297echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28298if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28299 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28300else
e6cc62c6 28301 ac_check_lib_save_LIBS=$LIBS
3c011993 28302LIBS="-lsocket $LIBS"
e6cc62c6
VS
28303cat >conftest.$ac_ext <<_ACEOF
28304#line $LINENO "configure"
28305/* confdefs.h. */
28306_ACEOF
28307cat confdefs.h >>conftest.$ac_ext
28308cat >>conftest.$ac_ext <<_ACEOF
28309/* end confdefs.h. */
28310
3c011993 28311/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28312#ifdef __cplusplus
28313extern "C"
28314#endif
3c011993 28315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28316 builtin and then its argument prototype would still apply. */
28317char inet_addr ();
28318int
28319main ()
28320{
28321inet_addr ();
28322 ;
28323 return 0;
28324}
28325_ACEOF
28326rm -f conftest.$ac_objext conftest$ac_exeext
28327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } &&
28332 { ac_try='test -s conftest$ac_exeext'
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; }; then
28338 ac_cv_lib_socket_inet_addr=yes
28339else
28340 echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343ac_cv_lib_socket_inet_addr=no
28344fi
28345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28346LIBS=$ac_check_lib_save_LIBS
28347fi
28348echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28349echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28350if test $ac_cv_lib_socket_inet_addr = yes; then
28351 INET_LINK="socket"
4f14bcd8 28352
8284b0c5 28353fi
e6cc62c6 28354
698dcdb6 28355
0e012a93 28356
7b4a847f 28357fi
e6cc62c6
VS
28358
28359
0e012a93 28360
a0b9e27f 28361fi
579d8138 28362
e6cc62c6
VS
28363
28364
5c6fa7d2 28365fi
e6cc62c6
VS
28366done
28367
28368
28369
28370for ac_func in inet_aton
28371do
28372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373echo "$as_me:$LINENO: checking for $ac_func" >&5
28374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28375if eval "test \"\${$as_ac_var+set}\" = set"; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377else
28378 cat >conftest.$ac_ext <<_ACEOF
28379#line $LINENO "configure"
28380/* confdefs.h. */
28381_ACEOF
28382cat confdefs.h >>conftest.$ac_ext
28383cat >>conftest.$ac_ext <<_ACEOF
28384/* end confdefs.h. */
28385/* System header to define __stub macros and hopefully few prototypes,
28386 which can conflict with char $ac_func (); below.
28387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28388 <limits.h> exists even on freestanding compilers. */
28389#ifdef __STDC__
28390# include <limits.h>
28391#else
28392# include <assert.h>
28393#endif
28394/* Override any gcc2 internal prototype to avoid an error. */
28395#ifdef __cplusplus
28396extern "C"
28397{
28398#endif
28399/* We use char because int might match the return type of a gcc2
28400 builtin and then its argument prototype would still apply. */
28401char $ac_func ();
28402/* The GNU C library defines this for functions which it implements
28403 to always fail with ENOSYS. Some functions are actually named
28404 something starting with __ and the normal name is an alias. */
28405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28406choke me
28407#else
28408char (*f) () = $ac_func;
28409#endif
28410#ifdef __cplusplus
28411}
28412#endif
28413
28414int
28415main ()
28416{
28417return f != $ac_func;
28418 ;
28419 return 0;
28420}
28421_ACEOF
28422rm -f conftest.$ac_objext conftest$ac_exeext
28423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28424 (eval $ac_link) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); } &&
28428 { ac_try='test -s conftest$ac_exeext'
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 eval "$as_ac_var=yes"
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439eval "$as_ac_var=no"
28440fi
28441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28442fi
28443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28445if test `eval echo '${'$as_ac_var'}'` = yes; then
28446 cat >>confdefs.h <<_ACEOF
28447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28448_ACEOF
28449 cat >>confdefs.h <<\_ACEOF
28450#define HAVE_INET_ATON 1
28451_ACEOF
28452
28453else
28454
28455 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28456echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28457echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28458if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
28460else
28461 ac_check_lib_save_LIBS=$LIBS
28462LIBS="-l$INET_LINK $LIBS"
28463cat >conftest.$ac_ext <<_ACEOF
28464#line $LINENO "configure"
28465/* confdefs.h. */
28466_ACEOF
28467cat confdefs.h >>conftest.$ac_ext
28468cat >>conftest.$ac_ext <<_ACEOF
28469/* end confdefs.h. */
28470
28471/* Override any gcc2 internal prototype to avoid an error. */
28472#ifdef __cplusplus
28473extern "C"
28474#endif
28475/* We use char because int might match the return type of a gcc2
28476 builtin and then its argument prototype would still apply. */
28477char inet_aton ();
28478int
28479main ()
28480{
28481inet_aton ();
28482 ;
28483 return 0;
28484}
28485_ACEOF
28486rm -f conftest.$ac_objext conftest$ac_exeext
28487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28488 (eval $ac_link) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
28492 { ac_try='test -s conftest$ac_exeext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498 eval "$as_ac_Lib=yes"
28499else
28500 echo "$as_me: failed program was:" >&5
28501sed 's/^/| /' conftest.$ac_ext >&5
28502
28503eval "$as_ac_Lib=no"
28504fi
28505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28506LIBS=$ac_check_lib_save_LIBS
28507fi
28508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28509echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28510if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28511 cat >>confdefs.h <<\_ACEOF
28512#define HAVE_INET_ATON 1
28513_ACEOF
52127426 28514
a0b9e27f 28515fi
247f5006 28516
8284b0c5 28517
698dcdb6 28518fi
4f14bcd8
GD
28519done
28520
8284b0c5 28521
e6cc62c6
VS
28522if test "x$INET_LINK" != "x"; then
28523 cat >>confdefs.h <<\_ACEOF
28524#define HAVE_INET_ADDR 1
28525_ACEOF
28526
28527 INET_LINK=" -l$INET_LINK"
28528fi
28529
28530fi
a0b9e27f 28531
a0b9e27f 28532
4f14bcd8 28533
edd891e2
VS
28534EXTRALIBS_ESD=
28535echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28536echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28537if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540 ac_check_lib_save_LIBS=$LIBS
28541LIBS="-lesd $LIBS"
28542cat >conftest.$ac_ext <<_ACEOF
28543#line $LINENO "configure"
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
28549
28550/* Override any gcc2 internal prototype to avoid an error. */
28551#ifdef __cplusplus
28552extern "C"
28553#endif
28554/* We use char because int might match the return type of a gcc2
28555 builtin and then its argument prototype would still apply. */
28556char esd_close ();
28557int
28558main ()
28559{
28560esd_close ();
28561 ;
28562 return 0;
28563}
28564_ACEOF
28565rm -f conftest.$ac_objext conftest$ac_exeext
28566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567 (eval $ac_link) 2>&5
28568 ac_status=$?
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); } &&
28571 { ac_try='test -s conftest$ac_exeext'
28572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573 (eval $ac_try) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); }; }; then
28577 ac_cv_lib_esd_esd_close=yes
28578else
28579 echo "$as_me: failed program was:" >&5
28580sed 's/^/| /' conftest.$ac_ext >&5
28581
28582ac_cv_lib_esd_esd_close=no
28583fi
28584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28585LIBS=$ac_check_lib_save_LIBS
28586fi
28587echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28588echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28589if test $ac_cv_lib_esd_esd_close = yes; then
28590
28591
28592for ac_header in esd.h
28593do
28594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28595if eval "test \"\${$as_ac_Header+set}\" = set"; then
28596 echo "$as_me:$LINENO: checking for $ac_header" >&5
28597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28598if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28600fi
edd891e2
VS
28601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28603else
28604 # Is the header compilable?
edd891e2
VS
28605echo "$as_me:$LINENO: checking $ac_header usability" >&5
28606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28607cat >conftest.$ac_ext <<_ACEOF
28608#line $LINENO "configure"
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614$ac_includes_default
edd891e2 28615#include <$ac_header>
e6cc62c6
VS
28616_ACEOF
28617rm -f conftest.$ac_objext
28618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28619 (eval $ac_compile) 2>&5
28620 ac_status=$?
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); } &&
28623 { ac_try='test -s conftest.$ac_objext'
28624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625 (eval $ac_try) 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
28629 ac_header_compiler=yes
28630else
28631 echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634ac_header_compiler=no
28635fi
28636rm -f conftest.$ac_objext conftest.$ac_ext
28637echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28638echo "${ECHO_T}$ac_header_compiler" >&6
28639
28640# Is the header present?
edd891e2
VS
28641echo "$as_me:$LINENO: checking $ac_header presence" >&5
28642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28643cat >conftest.$ac_ext <<_ACEOF
28644#line $LINENO "configure"
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
edd891e2 28650#include <$ac_header>
e6cc62c6
VS
28651_ACEOF
28652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28654 ac_status=$?
28655 grep -v '^ *+' conftest.er1 >conftest.err
28656 rm -f conftest.er1
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } >/dev/null; then
28660 if test -s conftest.err; then
28661 ac_cpp_err=$ac_c_preproc_warn_flag
28662 else
28663 ac_cpp_err=
28664 fi
a0b9e27f 28665else
e6cc62c6
VS
28666 ac_cpp_err=yes
28667fi
28668if test -z "$ac_cpp_err"; then
28669 ac_header_preproc=yes
28670else
28671 echo "$as_me: failed program was:" >&5
28672sed 's/^/| /' conftest.$ac_ext >&5
28673
28674 ac_header_preproc=no
28675fi
28676rm -f conftest.err conftest.$ac_ext
28677echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28678echo "${ECHO_T}$ac_header_preproc" >&6
28679
28680# So? What about this header?
28681case $ac_header_compiler:$ac_header_preproc in
28682 yes:no )
edd891e2
VS
28683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28687 (
28688 cat <<\_ASBOX
28689## ------------------------------------ ##
28690## Report this to bug-autoconf@gnu.org. ##
28691## ------------------------------------ ##
28692_ASBOX
28693 ) |
28694 sed "s/^/$as_me: WARNING: /" >&2
28695 ;;
28696 no:yes )
edd891e2
VS
28697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28703 (
28704 cat <<\_ASBOX
28705## ------------------------------------ ##
28706## Report this to bug-autoconf@gnu.org. ##
28707## ------------------------------------ ##
28708_ASBOX
28709 ) |
28710 sed "s/^/$as_me: WARNING: /" >&2
28711 ;;
28712esac
edd891e2
VS
28713echo "$as_me:$LINENO: checking for $ac_header" >&5
28714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28715if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717else
edd891e2 28718 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28719fi
edd891e2
VS
28720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28722
e6cc62c6 28723fi
edd891e2
VS
28724if test `eval echo '${'$as_ac_Header'}'` = yes; then
28725 cat >>confdefs.h <<_ACEOF
28726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28727_ACEOF
e6cc62c6 28728
edd891e2 28729 EXTRALIBS_ESD="-lesd"
4f14bcd8 28730
a0b9e27f 28731fi
247f5006 28732
edd891e2 28733done
8284b0c5 28734
4f14bcd8 28735
6232543b 28736fi
10f2d63a 28737
703e0a69 28738
8284b0c5 28739
e6cc62c6
VS
28740
28741
28742cat >confcache <<\_ACEOF
4f14bcd8
GD
28743# This file is a shell script that caches the results of configure
28744# tests run on this system so they can be shared between configure
e6cc62c6
VS
28745# scripts and configure runs, see configure's option --config-cache.
28746# It is not useful on other systems. If it contains results you don't
28747# want to keep, you may remove or edit it.
4f14bcd8 28748#
e6cc62c6
VS
28749# config.status only pays attention to the cache file if you give it
28750# the --recheck option to rerun configure.
4f14bcd8 28751#
e6cc62c6
VS
28752# `ac_cv_env_foo' variables (set or unset) will be overridden when
28753# loading this file, other *unset* `ac_cv_foo' will be assigned the
28754# following values.
28755
28756_ACEOF
28757
4f14bcd8
GD
28758# The following way of writing the cache mishandles newlines in values,
28759# but we know of no workaround that is simple, portable, and efficient.
28760# So, don't put newlines in cache variables' values.
28761# Ultrix sh set writes to stderr and can't be redirected directly,
28762# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28763{
28764 (set) 2>&1 |
28765 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28766 *ac_space=\ *)
28767 # `set' does not quote correctly, so add quotes (double-quote
28768 # substitution turns \\\\ into \\, and sed turns \\ into \).
28769 sed -n \
28770 "s/'/'\\\\''/g;
28771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28772 ;;
28773 *)
28774 # `set' quotes correctly as required by POSIX, so do not add quotes.
28775 sed -n \
28776 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28777 ;;
28778 esac;
28779} |
28780 sed '
28781 t clear
28782 : clear
28783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28784 t end
28785 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28786 : end' >>confcache
28787if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28788 if test -w $cache_file; then
e6cc62c6
VS
28789 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28790 cat confcache >$cache_file
f6bcfd97 28791 else
4f14bcd8 28792 echo "not updating unwritable cache $cache_file"
f6bcfd97 28793 fi
4f14bcd8
GD
28794fi
28795rm -f confcache
f6bcfd97 28796
8284b0c5 28797
009fead0 28798CPP_MT_FLAG=
4f14bcd8
GD
28799if test "$TOOLKIT" != "MSW"; then
28800
e6cc62c6 28801
7274f1c7 28802 THREADS_LINK=
009fead0 28803 THREADS_CFLAGS=
7274f1c7
RL
28804
28805 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28806 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28807 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28808echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28809 wxUSE_THREADS="no"
28810 fi
4f14bcd8 28811 fi
4f14bcd8 28812
7274f1c7 28813 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28814
28815
009fead0
VZ
28816 THREAD_OPTS="-pthread"
28817 case "${host}" in
28818 *-*-solaris2* | *-*-sunos4* )
28819 if test "x$GCC" = "xyes"; then
126be6b4 28820 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28821 else
28822 THREAD_OPTS="-mt $THREAD_OPTS"
28823 fi
28824 ;;
28825 *-*-freebsd*)
28826 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28827 ;;
17234b26
MB
28828 *-*-darwin* | *-*-cygwin* )
28829 THREAD_OPTS=""
4101db81 28830 ;;
8f4a9a10 28831 *-*-aix*)
009fead0
VZ
28832 THREAD_OPTS="pthreads"
28833 ;;
4f5a7f74
VZ
28834 *-hp-hpux* )
28835 if test "x$GCC" != "xyes"; then
28836 THREAD_OPTS=""
28837 fi
89e3b3e4
VZ
28838 ;;
28839
28840 *-*-irix* )
28841 if test "x$GCC" = "xyes"; then
28842 THREAD_OPTS=""
28843 fi
28844 ;;
28845
28846 *-*-*UnixWare*)
28847 if test "x$GCC" != "xyes"; then
28848 THREAD_OPTS="-Ethread"
28849 fi
28850 ;;
009fead0 28851 esac
4f14bcd8 28852
02a1dfba 28853 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28854
009fead0
VZ
28855 THREADS_OK=no
28856 for flag in $THREAD_OPTS; do
28857 case $flag in
28858 none)
e6cc62c6
VS
28859 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28860echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28861 ;;
698dcdb6 28862
009fead0 28863 -*)
e6cc62c6
VS
28864 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28865echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28866 THREADS_CFLAGS="$flag"
28867 ;;
698dcdb6 28868
009fead0 28869 *)
e6cc62c6
VS
28870 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28871echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28872 THREADS_LINK="-l$flag"
28873 ;;
28874 esac
10f2d63a 28875
009fead0
VZ
28876 save_LIBS="$LIBS"
28877 save_CFLAGS="$CFLAGS"
28878 LIBS="$THREADS_LINK $LIBS"
04727afd 28879 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28880
e6cc62c6
VS
28881 cat >conftest.$ac_ext <<_ACEOF
28882#line $LINENO "configure"
28883/* confdefs.h. */
28884_ACEOF
28885cat confdefs.h >>conftest.$ac_ext
28886cat >>conftest.$ac_ext <<_ACEOF
28887/* end confdefs.h. */
009fead0 28888#include <pthread.h>
e6cc62c6
VS
28889int
28890main ()
28891{
009fead0 28892pthread_create(0,0,0,0);
e6cc62c6
VS
28893 ;
28894 return 0;
28895}
28896_ACEOF
28897rm -f conftest.$ac_objext conftest$ac_exeext
28898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899 (eval $ac_link) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
28903 { ac_try='test -s conftest$ac_exeext'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
009fead0 28909 THREADS_OK=yes
10f2d63a 28910else
e6cc62c6
VS
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
6232543b 28914fi
e6cc62c6 28915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28916
009fead0
VZ
28917 LIBS="$save_LIBS"
28918 CFLAGS="$save_CFLAGS"
d9b9876f 28919
e6cc62c6
VS
28920 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28921echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28922 if test "x$THREADS_OK" = "xyes"; then
28923 break;
28924 fi
d9b9876f 28925
009fead0
VZ
28926 THREADS_LINK=""
28927 THREADS_CFLAGS=""
28928 done
4f14bcd8 28929
009fead0
VZ
28930 if test "x$THREADS_OK" != "xyes"; then
28931 wxUSE_THREADS=no
e6cc62c6
VS
28932 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28933echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28934 else
db82f09e
VZ
28935 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28936 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28937
e6cc62c6
VS
28938 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28939echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28940 flag=no
28941 case "${host}" in
2b5f62a0
VZ
28942 *-aix*)
28943 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28944 flag="-D_THREAD_SAFE"
28945 ;;
28946 *-freebsd*)
009fead0
VZ
28947 flag="-D_THREAD_SAFE"
28948 ;;
06313569
GD
28949 *-hp-hpux* )
28950 flag="-D_REENTRANT"
4f5a7f74
VZ
28951 if test "x$GCC" != "xyes"; then
28952 flag="$flag -D_RWSTD_MULTI_THREAD"
28953 fi
06313569 28954 ;;
009fead0
VZ
28955 *solaris* | alpha*-osf*)
28956 flag="-D_REENTRANT"
28957 ;;
28958 esac
e6cc62c6
VS
28959 echo "$as_me:$LINENO: result: ${flag}" >&5
28960echo "${ECHO_T}${flag}" >&6
009fead0 28961 if test "x$flag" != xno; then
04727afd 28962 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28963 fi
28964
009fead0 28965 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28966 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28967 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28968 fi
28969 fi
4f14bcd8 28970 fi
4f14bcd8 28971
7274f1c7 28972 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28973
28974for ac_func in thr_setconcurrency
4f14bcd8 28975do
e6cc62c6
VS
28976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28977echo "$as_me:$LINENO: checking for $ac_func" >&5
28978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28979if eval "test \"\${$as_ac_var+set}\" = set"; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28981else
28982 cat >conftest.$ac_ext <<_ACEOF
28983#line $LINENO "configure"
28984/* confdefs.h. */
28985_ACEOF
28986cat confdefs.h >>conftest.$ac_ext
28987cat >>conftest.$ac_ext <<_ACEOF
28988/* end confdefs.h. */
4f14bcd8 28989/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28990 which can conflict with char $ac_func (); below.
28991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28992 <limits.h> exists even on freestanding compilers. */
28993#ifdef __STDC__
28994# include <limits.h>
28995#else
28996# include <assert.h>
28997#endif
4f14bcd8 28998/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28999#ifdef __cplusplus
29000extern "C"
29001{
29002#endif
4f14bcd8 29003/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29004 builtin and then its argument prototype would still apply. */
29005char $ac_func ();
4f14bcd8
GD
29006/* The GNU C library defines this for functions which it implements
29007 to always fail with ENOSYS. Some functions are actually named
29008 something starting with __ and the normal name is an alias. */
29009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29010choke me
29011#else
e6cc62c6
VS
29012char (*f) () = $ac_func;
29013#endif
29014#ifdef __cplusplus
29015}
4f14bcd8
GD
29016#endif
29017
e6cc62c6
VS
29018int
29019main ()
29020{
29021return f != $ac_func;
29022 ;
29023 return 0;
29024}
29025_ACEOF
29026rm -f conftest.$ac_objext conftest$ac_exeext
29027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29028 (eval $ac_link) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); } &&
29032 { ac_try='test -s conftest$ac_exeext'
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 eval "$as_ac_var=yes"
29039else
29040 echo "$as_me: failed program was:" >&5
29041sed 's/^/| /' conftest.$ac_ext >&5
29042
29043eval "$as_ac_var=no"
29044fi
29045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29046fi
29047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29049if test `eval echo '${'$as_ac_var'}'` = yes; then
29050 cat >>confdefs.h <<_ACEOF
29051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29052_ACEOF
698dcdb6 29053
10f2d63a 29054fi
4f14bcd8 29055done
10f2d63a 29056
8284b0c5 29057
e6cc62c6
VS
29058
29059for ac_header in sched.h
4f14bcd8 29060do
e6cc62c6
VS
29061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29062if eval "test \"\${$as_ac_Header+set}\" = set"; then
29063 echo "$as_me:$LINENO: checking for $ac_header" >&5
29064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29065if eval "test \"\${$as_ac_Header+set}\" = set"; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29067fi
29068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29070else
29071 # Is the header compilable?
29072echo "$as_me:$LINENO: checking $ac_header usability" >&5
29073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29074cat >conftest.$ac_ext <<_ACEOF
29075#line $LINENO "configure"
29076/* confdefs.h. */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h. */
29081$ac_includes_default
29082#include <$ac_header>
29083_ACEOF
29084rm -f conftest.$ac_objext
29085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29086 (eval $ac_compile) 2>&5
29087 ac_status=$?
29088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089 (exit $ac_status); } &&
29090 { ac_try='test -s conftest.$ac_objext'
29091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092 (eval $ac_try) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_header_compiler=yes
29097else
29098 echo "$as_me: failed program was:" >&5
29099sed 's/^/| /' conftest.$ac_ext >&5
29100
29101ac_header_compiler=no
29102fi
29103rm -f conftest.$ac_objext conftest.$ac_ext
29104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29105echo "${ECHO_T}$ac_header_compiler" >&6
29106
29107# Is the header present?
29108echo "$as_me:$LINENO: checking $ac_header presence" >&5
29109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29110cat >conftest.$ac_ext <<_ACEOF
29111#line $LINENO "configure"
29112/* confdefs.h. */
29113_ACEOF
29114cat confdefs.h >>conftest.$ac_ext
29115cat >>conftest.$ac_ext <<_ACEOF
29116/* end confdefs.h. */
29117#include <$ac_header>
29118_ACEOF
29119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29121 ac_status=$?
29122 grep -v '^ *+' conftest.er1 >conftest.err
29123 rm -f conftest.er1
29124 cat conftest.err >&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); } >/dev/null; then
29127 if test -s conftest.err; then
29128 ac_cpp_err=$ac_c_preproc_warn_flag
29129 else
29130 ac_cpp_err=
29131 fi
29132else
29133 ac_cpp_err=yes
29134fi
29135if test -z "$ac_cpp_err"; then
29136 ac_header_preproc=yes
29137else
29138 echo "$as_me: failed program was:" >&5
29139sed 's/^/| /' conftest.$ac_ext >&5
29140
29141 ac_header_preproc=no
29142fi
29143rm -f conftest.err conftest.$ac_ext
29144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29145echo "${ECHO_T}$ac_header_preproc" >&6
29146
29147# So? What about this header?
29148case $ac_header_compiler:$ac_header_preproc in
29149 yes:no )
29150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29154 (
29155 cat <<\_ASBOX
29156## ------------------------------------ ##
29157## Report this to bug-autoconf@gnu.org. ##
29158## ------------------------------------ ##
29159_ASBOX
29160 ) |
29161 sed "s/^/$as_me: WARNING: /" >&2
29162 ;;
29163 no:yes )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29170 (
29171 cat <<\_ASBOX
29172## ------------------------------------ ##
29173## Report this to bug-autoconf@gnu.org. ##
29174## ------------------------------------ ##
29175_ASBOX
29176 ) |
29177 sed "s/^/$as_me: WARNING: /" >&2
29178 ;;
29179esac
29180echo "$as_me:$LINENO: checking for $ac_header" >&5
29181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29182if eval "test \"\${$as_ac_Header+set}\" = set"; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
29185 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29186fi
e6cc62c6
VS
29187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29189
10f2d63a 29190fi
e6cc62c6
VS
29191if test `eval echo '${'$as_ac_Header'}'` = yes; then
29192 cat >>confdefs.h <<_ACEOF
29193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29194_ACEOF
29195
f6bcfd97 29196fi
e6cc62c6 29197
4f14bcd8 29198done
f6bcfd97 29199
009fead0 29200 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29201 echo "$as_me:$LINENO: checking for sched_yield" >&5
29202echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29203if test "${ac_cv_func_sched_yield+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205else
29206 cat >conftest.$ac_ext <<_ACEOF
29207#line $LINENO "configure"
29208/* confdefs.h. */
29209_ACEOF
29210cat confdefs.h >>conftest.$ac_ext
29211cat >>conftest.$ac_ext <<_ACEOF
29212/* end confdefs.h. */
009fead0 29213/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29214 which can conflict with char sched_yield (); below.
29215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29216 <limits.h> exists even on freestanding compilers. */
29217#ifdef __STDC__
29218# include <limits.h>
29219#else
29220# include <assert.h>
29221#endif
4f14bcd8 29222/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29223#ifdef __cplusplus
29224extern "C"
29225{
29226#endif
4f14bcd8 29227/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29228 builtin and then its argument prototype would still apply. */
29229char sched_yield ();
009fead0
VZ
29230/* The GNU C library defines this for functions which it implements
29231 to always fail with ENOSYS. Some functions are actually named
29232 something starting with __ and the normal name is an alias. */
29233#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29234choke me
29235#else
e6cc62c6
VS
29236char (*f) () = sched_yield;
29237#endif
29238#ifdef __cplusplus
29239}
009fead0
VZ
29240#endif
29241
e6cc62c6
VS
29242int
29243main ()
29244{
29245return f != sched_yield;
29246 ;
29247 return 0;
29248}
29249_ACEOF
29250rm -f conftest.$ac_objext conftest$ac_exeext
29251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29252 (eval $ac_link) 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
29256 { ac_try='test -s conftest$ac_exeext'
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
29262 ac_cv_func_sched_yield=yes
29263else
29264 echo "$as_me: failed program was:" >&5
29265sed 's/^/| /' conftest.$ac_ext >&5
29266
29267ac_cv_func_sched_yield=no
29268fi
29269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29270fi
29271echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29272echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29273if test $ac_cv_func_sched_yield = yes; then
29274 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29275#define HAVE_SCHED_YIELD 1
e6cc62c6 29276_ACEOF
10f2d63a 29277
4f14bcd8 29278else
009fead0 29279
e6cc62c6
VS
29280 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29281echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29282if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29283 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29284else
e6cc62c6 29285 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29286LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29287cat >conftest.$ac_ext <<_ACEOF
29288#line $LINENO "configure"
29289/* confdefs.h. */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h. */
29294
4f14bcd8 29295/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29296#ifdef __cplusplus
29297extern "C"
29298#endif
4f14bcd8 29299/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29300 builtin and then its argument prototype would still apply. */
29301char sched_yield ();
29302int
29303main ()
29304{
29305sched_yield ();
29306 ;
29307 return 0;
29308}
29309_ACEOF
29310rm -f conftest.$ac_objext conftest$ac_exeext
29311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29312 (eval $ac_link) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } &&
29316 { ac_try='test -s conftest$ac_exeext'
29317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318 (eval $ac_try) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; }; then
29322 ac_cv_lib_posix4_sched_yield=yes
29323else
29324 echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327ac_cv_lib_posix4_sched_yield=no
29328fi
29329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29330LIBS=$ac_check_lib_save_LIBS
29331fi
29332echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29333echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29334if test $ac_cv_lib_posix4_sched_yield = yes; then
29335 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29336#define HAVE_SCHED_YIELD 1
e6cc62c6 29337_ACEOF
3d63bc3a 29338 POSIX4_LINK=" -lposix4"
4f14bcd8 29339else
e6cc62c6
VS
29340 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29341echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29342
54276ccf
VZ
29343fi
29344
e6cc62c6
VS
29345
29346
4f14bcd8 29347fi
698dcdb6 29348
009fead0 29349 fi
10f2d63a 29350
7274f1c7 29351 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29352 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29353echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29354if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357 cat >conftest.$ac_ext <<_ACEOF
29358#line $LINENO "configure"
29359/* confdefs.h. */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h. */
009fead0 29364/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29365 which can conflict with char pthread_attr_getschedpolicy (); below.
29366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29367 <limits.h> exists even on freestanding compilers. */
29368#ifdef __STDC__
29369# include <limits.h>
29370#else
29371# include <assert.h>
29372#endif
4f14bcd8 29373/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29374#ifdef __cplusplus
29375extern "C"
29376{
29377#endif
4f14bcd8 29378/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29379 builtin and then its argument prototype would still apply. */
29380char pthread_attr_getschedpolicy ();
009fead0
VZ
29381/* The GNU C library defines this for functions which it implements
29382 to always fail with ENOSYS. Some functions are actually named
29383 something starting with __ and the normal name is an alias. */
29384#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29385choke me
29386#else
e6cc62c6
VS
29387char (*f) () = pthread_attr_getschedpolicy;
29388#endif
29389#ifdef __cplusplus
29390}
009fead0
VZ
29391#endif
29392
e6cc62c6
VS
29393int
29394main ()
29395{
29396return f != pthread_attr_getschedpolicy;
29397 ;
29398 return 0;
29399}
29400_ACEOF
29401rm -f conftest.$ac_objext conftest$ac_exeext
29402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29403 (eval $ac_link) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -s conftest$ac_exeext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_func_pthread_attr_getschedpolicy=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418ac_cv_func_pthread_attr_getschedpolicy=no
29419fi
29420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29421fi
29422echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29423echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29424if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29425 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29426echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29427if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29429else
29430 cat >conftest.$ac_ext <<_ACEOF
29431#line $LINENO "configure"
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
a0b9e27f 29437/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29438 which can conflict with char pthread_attr_setschedparam (); below.
29439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29440 <limits.h> exists even on freestanding compilers. */
29441#ifdef __STDC__
29442# include <limits.h>
29443#else
29444# include <assert.h>
29445#endif
422107f9 29446/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29447#ifdef __cplusplus
29448extern "C"
29449{
29450#endif
422107f9 29451/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29452 builtin and then its argument prototype would still apply. */
29453char pthread_attr_setschedparam ();
009fead0
VZ
29454/* The GNU C library defines this for functions which it implements
29455 to always fail with ENOSYS. Some functions are actually named
29456 something starting with __ and the normal name is an alias. */
29457#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29458choke me
29459#else
e6cc62c6
VS
29460char (*f) () = pthread_attr_setschedparam;
29461#endif
29462#ifdef __cplusplus
29463}
009fead0
VZ
29464#endif
29465
e6cc62c6
VS
29466int
29467main ()
29468{
29469return f != pthread_attr_setschedparam;
29470 ;
29471 return 0;
29472}
29473_ACEOF
29474rm -f conftest.$ac_objext conftest$ac_exeext
29475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29476 (eval $ac_link) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -s conftest$ac_exeext'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_func_pthread_attr_setschedparam=yes
29487else
29488 echo "$as_me: failed program was:" >&5
29489sed 's/^/| /' conftest.$ac_ext >&5
29490
29491ac_cv_func_pthread_attr_setschedparam=no
29492fi
29493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29494fi
29495echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29496echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29497if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29498 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29499echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29500if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502else
29503 cat >conftest.$ac_ext <<_ACEOF
29504#line $LINENO "configure"
29505/* confdefs.h. */
29506_ACEOF
29507cat confdefs.h >>conftest.$ac_ext
29508cat >>conftest.$ac_ext <<_ACEOF
29509/* end confdefs.h. */
ef33c576 29510/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29511 which can conflict with char sched_get_priority_max (); below.
29512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29513 <limits.h> exists even on freestanding compilers. */
29514#ifdef __STDC__
29515# include <limits.h>
29516#else
29517# include <assert.h>
29518#endif
4f14bcd8 29519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29520#ifdef __cplusplus
29521extern "C"
29522{
29523#endif
4f14bcd8 29524/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29525 builtin and then its argument prototype would still apply. */
29526char sched_get_priority_max ();
009fead0
VZ
29527/* The GNU C library defines this for functions which it implements
29528 to always fail with ENOSYS. Some functions are actually named
29529 something starting with __ and the normal name is an alias. */
29530#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29531choke me
29532#else
e6cc62c6
VS
29533char (*f) () = sched_get_priority_max;
29534#endif
29535#ifdef __cplusplus
29536}
009fead0
VZ
29537#endif
29538
e6cc62c6
VS
29539int
29540main ()
29541{
29542return f != sched_get_priority_max;
29543 ;
29544 return 0;
29545}
29546_ACEOF
29547rm -f conftest.$ac_objext conftest$ac_exeext
29548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29549 (eval $ac_link) 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); } &&
29553 { ac_try='test -s conftest$ac_exeext'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_sched_get_priority_max=yes
29560else
29561 echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
29564ac_cv_func_sched_get_priority_max=no
29565fi
29566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29567fi
29568echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29569echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29570if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29571 HAVE_PRIOR_FUNCS=1
29572else
e6cc62c6
VS
29573 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29574echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29575if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29576 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29577else
e6cc62c6 29578 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29579LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29580cat >conftest.$ac_ext <<_ACEOF
29581#line $LINENO "configure"
29582/* confdefs.h. */
29583_ACEOF
29584cat confdefs.h >>conftest.$ac_ext
29585cat >>conftest.$ac_ext <<_ACEOF
29586/* end confdefs.h. */
29587
422107f9 29588/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29589#ifdef __cplusplus
29590extern "C"
29591#endif
422107f9 29592/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29593 builtin and then its argument prototype would still apply. */
29594char sched_get_priority_max ();
29595int
29596main ()
29597{
29598sched_get_priority_max ();
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext conftest$ac_exeext
29604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29605 (eval $ac_link) 2>&5
29606 ac_status=$?
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); } &&
29609 { ac_try='test -s conftest$ac_exeext'
29610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29611 (eval $ac_try) 2>&5
29612 ac_status=$?
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614 (exit $ac_status); }; }; then
29615 ac_cv_lib_posix4_sched_get_priority_max=yes
29616else
29617 echo "$as_me: failed program was:" >&5
29618sed 's/^/| /' conftest.$ac_ext >&5
29619
29620ac_cv_lib_posix4_sched_get_priority_max=no
29621fi
29622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29623LIBS=$ac_check_lib_save_LIBS
29624fi
29625echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29626echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29627if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29628
7274f1c7
RL
29629 HAVE_PRIOR_FUNCS=1
29630 POSIX4_LINK=" -lposix4"
e6cc62c6 29631
4f14bcd8 29632fi
463abc64 29633
e6cc62c6 29634
328a083c 29635fi
463abc64 29636
e6cc62c6 29637
7b4a847f 29638fi
579d8138 29639
e6cc62c6 29640
5c6fa7d2 29641fi
52127426 29642
8284b0c5 29643
7274f1c7 29644 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29645 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29646#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29647_ACEOF
463abc64 29648
7274f1c7 29649 else
e6cc62c6
VS
29650 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29651echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29652 fi
463abc64 29653
e6cc62c6
VS
29654 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29655echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29656if test "${ac_cv_func_pthread_cancel+set}" = set; then
29657 echo $ECHO_N "(cached) $ECHO_C" >&6
29658else
29659 cat >conftest.$ac_ext <<_ACEOF
29660#line $LINENO "configure"
29661/* confdefs.h. */
29662_ACEOF
29663cat confdefs.h >>conftest.$ac_ext
29664cat >>conftest.$ac_ext <<_ACEOF
29665/* end confdefs.h. */
009fead0 29666/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29667 which can conflict with char pthread_cancel (); below.
29668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29669 <limits.h> exists even on freestanding compilers. */
29670#ifdef __STDC__
29671# include <limits.h>
29672#else
29673# include <assert.h>
29674#endif
422107f9 29675/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29676#ifdef __cplusplus
29677extern "C"
29678{
29679#endif
422107f9 29680/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29681 builtin and then its argument prototype would still apply. */
29682char pthread_cancel ();
009fead0
VZ
29683/* The GNU C library defines this for functions which it implements
29684 to always fail with ENOSYS. Some functions are actually named
29685 something starting with __ and the normal name is an alias. */
29686#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29687choke me
29688#else
e6cc62c6
VS
29689char (*f) () = pthread_cancel;
29690#endif
29691#ifdef __cplusplus
29692}
009fead0
VZ
29693#endif
29694
e6cc62c6
VS
29695int
29696main ()
29697{
29698return f != pthread_cancel;
29699 ;
29700 return 0;
29701}
29702_ACEOF
29703rm -f conftest.$ac_objext conftest$ac_exeext
29704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29705 (eval $ac_link) 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } &&
29709 { ac_try='test -s conftest$ac_exeext'
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; }; then
29715 ac_cv_func_pthread_cancel=yes
29716else
29717 echo "$as_me: failed program was:" >&5
29718sed 's/^/| /' conftest.$ac_ext >&5
29719
29720ac_cv_func_pthread_cancel=no
29721fi
29722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29723fi
29724echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29725echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29726if test $ac_cv_func_pthread_cancel = yes; then
29727 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29728#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29729_ACEOF
4f14bcd8 29730
698dcdb6 29731else
e6cc62c6
VS
29732 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29733echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29734fi
29735
5c6fa7d2 29736
e6cc62c6
VS
29737 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29738echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29739if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29741else
e6cc62c6
VS
29742
29743 cat >conftest.$ac_ext <<_ACEOF
29744#line $LINENO "configure"
29745/* confdefs.h. */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h. */
4f14bcd8 29750#include <pthread.h>
e6cc62c6
VS
29751int
29752main ()
29753{
4f14bcd8 29754
7274f1c7
RL
29755 pthread_cleanup_push(NULL, NULL);
29756 pthread_cleanup_pop(0);
e6cc62c6
VS
29757
29758 ;
29759 return 0;
29760}
29761_ACEOF
29762rm -f conftest.$ac_objext
29763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29764 (eval $ac_compile) 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
29768 { ac_try='test -s conftest.$ac_objext'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774
7274f1c7 29775 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29776
4f14bcd8 29777else
e6cc62c6
VS
29778 echo "$as_me: failed program was:" >&5
29779sed 's/^/| /' conftest.$ac_ext >&5
29780
29781
7274f1c7 29782 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29783
247f5006 29784fi
e6cc62c6 29785rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29786
e6cc62c6
VS
29787fi
29788echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29789echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29790
7274f1c7 29791 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29792 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29793#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29794_ACEOF
c7a2bf27 29795
7274f1c7 29796 fi
4f14bcd8 29797
e6cc62c6
VS
29798
29799 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29800echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29801if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29802 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29803else
e6cc62c6
VS
29804
29805 cat >conftest.$ac_ext <<_ACEOF
29806#line $LINENO "configure"
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
4f14bcd8 29812#include <pthread.h>
e6cc62c6
VS
29813int
29814main ()
29815{
4f14bcd8 29816
7274f1c7
RL
29817 pthread_mutexattr_t attr;
29818 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29819
29820 ;
29821 return 0;
29822}
29823_ACEOF
29824rm -f conftest.$ac_objext
29825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29826 (eval $ac_compile) 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
29830 { ac_try='test -s conftest.$ac_objext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836
7274f1c7 29837 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29838
3fed1840 29839else
e6cc62c6
VS
29840 echo "$as_me: failed program was:" >&5
29841sed 's/^/| /' conftest.$ac_ext >&5
29842
29843
7274f1c7 29844 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29845
29846
247f5006 29847fi
e6cc62c6 29848rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29849
e6cc62c6
VS
29850fi
29851echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29852echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29853
7274f1c7 29854 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29855 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29856#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29857_ACEOF
4f14bcd8 29858
7274f1c7 29859 else
e6cc62c6
VS
29860 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29861echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29862if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29863 echo $ECHO_N "(cached) $ECHO_C" >&6
29864else
29865
29866 cat >conftest.$ac_ext <<_ACEOF
29867#line $LINENO "configure"
29868/* confdefs.h. */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h. */
4f14bcd8 29873#include <pthread.h>
e6cc62c6
VS
29874int
29875main ()
29876{
4f14bcd8 29877
7274f1c7 29878 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29879
29880 ;
29881 return 0;
29882}
29883_ACEOF
29884rm -f conftest.$ac_objext
29885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29886 (eval $ac_compile) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); } &&
29890 { ac_try='test -s conftest.$ac_objext'
29891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29892 (eval $ac_try) 2>&5
29893 ac_status=$?
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; }; then
29896
7274f1c7 29897 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29898
698dcdb6 29899else
e6cc62c6
VS
29900 echo "$as_me: failed program was:" >&5
29901sed 's/^/| /' conftest.$ac_ext >&5
29902
29903
7274f1c7 29904 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29905
29906
247f5006 29907fi
e6cc62c6 29908rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29909
e6cc62c6
VS
29910fi
29911echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29912echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29913 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29914 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29915#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29916_ACEOF
3fed1840 29917
7274f1c7 29918 else
e6cc62c6
VS
29919 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29920echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29921 fi
29922 fi
7274f1c7 29923 fi
3fed1840 29924
a0b9e27f
MB
29925else
29926 if test "$wxUSE_THREADS" = "yes" ; then
29927 case "${host}" in
29928 *-*-mingw32* )
e6cc62c6
VS
29929 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29930echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29931if test "${wx_cv_cflags_mthread+set}" = set; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29933else
e6cc62c6 29934
ca8e52b3
VZ
29935 CFLAGS_OLD="$CFLAGS"
29936 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29937 cat >conftest.$ac_ext <<_ACEOF
29938#line $LINENO "configure"
29939/* confdefs.h. */
29940_ACEOF
29941cat confdefs.h >>conftest.$ac_ext
29942cat >>conftest.$ac_ext <<_ACEOF
29943/* end confdefs.h. */
29944
29945int
29946main ()
29947{
ca8e52b3 29948
e6cc62c6
VS
29949 ;
29950 return 0;
29951}
29952_ACEOF
29953rm -f conftest.$ac_objext
29954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29955 (eval $ac_compile) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); } &&
29959 { ac_try='test -s conftest.$ac_objext'
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
ca8e52b3
VZ
29965 wx_cv_cflags_mthread=yes
29966else
e6cc62c6
VS
29967 echo "$as_me: failed program was:" >&5
29968sed 's/^/| /' conftest.$ac_ext >&5
29969
29970wx_cv_cflags_mthread=no
29971
ca8e52b3 29972fi
e6cc62c6
VS
29973rm -f conftest.$ac_objext conftest.$ac_ext
29974
ca8e52b3 29975
e6cc62c6
VS
29976fi
29977echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29978echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29979
29980 if test "$wx_cv_cflags_mthread" = "yes"; then
29981 CXXFLAGS="$CXXFLAGS -mthreads"
29982 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29983 LDFLAGS="$LDFLAGS -mthreads"
29984 else
29985 CFLAGS="$CFLAGS_OLD"
29986 fi
a0b9e27f
MB
29987 ;;
29988 esac
29989 fi
4f14bcd8
GD
29990fi
29991
29992if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29993 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29994#define wxUSE_THREADS 1
e6cc62c6 29995_ACEOF
7b6058cd 29996
8284b0c5 29997
4f14bcd8 29998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29999else
4f14bcd8 30000 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30001 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30002echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30003 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30004 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30005 echo "$as_me:$LINENO: result: yes" >&5
30006echo "${ECHO_T}yes" >&6
4f14bcd8 30007 else
e6cc62c6
VS
30008 echo "$as_me:$LINENO: result: no" >&5
30009echo "${ECHO_T}no" >&6
4f14bcd8
GD
30010 fi
30011 fi
30012fi
30013
30014if test "$WXGTK20" = 1 ; then
e6cc62c6 30015 cat >>confdefs.h <<_ACEOF
4f14bcd8 30016#define __WXGTK20__ $WXGTK20
e6cc62c6 30017_ACEOF
4f14bcd8
GD
30018
30019 WXGTK12=1
10f2d63a 30020fi
4f14bcd8
GD
30021
30022if test "$WXGTK12" = 1 ; then
e6cc62c6 30023 cat >>confdefs.h <<_ACEOF
4f14bcd8 30024#define __WXGTK12__ $WXGTK12
e6cc62c6 30025_ACEOF
4f14bcd8 30026
10f2d63a 30027fi
698dcdb6 30028
4f14bcd8 30029if test "$WXGTK127" = 1 ; then
e6cc62c6 30030 cat >>confdefs.h <<_ACEOF
4f14bcd8 30031#define __WXGTK127__ $WXGTK127
e6cc62c6 30032_ACEOF
4f14bcd8 30033
698dcdb6 30034fi
10f2d63a 30035
4f14bcd8
GD
30036WXDEBUG=
30037
30038if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30039 WXDEBUG="-g"
30040 wxUSE_OPTIMISE=no
698dcdb6 30041fi
4f14bcd8
GD
30042
30043if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30044 wxUSE_DEBUG_INFO=yes
30045 WXDEBUG="-ggdb"
10f2d63a
VZ
30046fi
30047
4f14bcd8 30048if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30049 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30050#define WXDEBUG 1
e6cc62c6 30051_ACEOF
4f14bcd8
GD
30052
30053 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30054else
4f14bcd8
GD
30055 if test "$wxUSE_GTK" = 1 ; then
30056 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30057 fi
30058fi
30059
30060if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30061 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30062#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30063_ACEOF
4f14bcd8 30064
e6cc62c6 30065 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30066#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30067_ACEOF
4f14bcd8 30068
e6cc62c6 30069 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30070#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30071_ACEOF
4f14bcd8
GD
30072
30073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30074fi
30075
30076if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30077 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30078fi
30079
30080PROFILE=
30081if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30082 PROFILE=" -pg"
10f2d63a
VZ
30083fi
30084
009fead0
VZ
30085CODE_GEN_FLAGS=
30086CODE_GEN_FLAGS_CXX=
88e30f2b 30087if test "$GCC" = "yes" ; then
4f14bcd8
GD
30088 if test "$wxUSE_NO_RTTI" = "yes" ; then
30089 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30090 fi
4f14bcd8
GD
30091 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30092 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30093 fi
30094 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30095 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30096 fi
1d1b75ac 30097
2b5f62a0 30098 case "${host}" in
1d1b75ac
VZ
30099 powerpc*-*-aix* )
30100 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30101 ;;
2b5f62a0
VZ
30102 *-hppa* )
30103 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30104 ;;
1d1b75ac 30105 esac
4f14bcd8
GD
30106fi
30107
af7b5345 30108OPTIMISE=
4f14bcd8 30109if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30110 if test "$GCC" = yes ; then
30111 OPTIMISE="-O0"
30112 fi
4f14bcd8
GD
30113else
30114 if test "$GCC" = yes ; then
30115 OPTIMISE="-O2"
af7b5345
VZ
30116
30117 case "${host}" in
4f14bcd8
GD
30118 i586-*-*|i686-*-* )
30119 OPTIMISE="${OPTIMISE} "
30120 ;;
30121 esac
30122 else
30123 OPTIMISE="-O"
30124 fi
30125fi
30126
8d90d2f2 30127
65d8ef1e 30128if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30129 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30130#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30131_ACEOF
4f14bcd8 30132
8d90d2f2
VZ
30133
30134 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30135fi
30136
65d8ef1e 30137if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30138 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30139#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30140_ACEOF
65d8ef1e
VS
30141
30142fi
30143
8284b0c5 30144
10f2d63a 30145if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30146 cat >>confdefs.h <<\_ACEOF
10f2d63a 30147#define wxUSE_GUI 1
e6cc62c6 30148_ACEOF
10f2d63a 30149
8284b0c5 30150
10f2d63a 30151 else
e6cc62c6 30152 cat >>confdefs.h <<\_ACEOF
10f2d63a 30153#define wxUSE_NOGUI 1
e6cc62c6 30154_ACEOF
10f2d63a
VZ
30155
30156fi
30157
8284b0c5 30158
10f2d63a 30159if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30160 cat >>confdefs.h <<\_ACEOF
10f2d63a 30161#define wxUSE_UNIX 1
e6cc62c6 30162_ACEOF
10f2d63a
VZ
30163
30164fi
30165
8284b0c5 30166
df5168c4
MB
30167if test "$wxUSE_STL" = "yes"; then
30168 cat >>confdefs.h <<\_ACEOF
30169#define wxUSE_STL 1
30170_ACEOF
30171
30172fi
30173
10f2d63a 30174if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30175 cat >>confdefs.h <<\_ACEOF
10f2d63a 30176#define wxUSE_APPLE_IEEE 1
e6cc62c6 30177_ACEOF
10f2d63a
VZ
30178
30179fi
30180
1e6feb95 30181if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30182 cat >>confdefs.h <<\_ACEOF
1e6feb95 30183#define wxUSE_TIMER 1
e6cc62c6 30184_ACEOF
1e6feb95
VZ
30185
30186fi
30187
10f2d63a 30188if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30189 cat >>confdefs.h <<\_ACEOF
10f2d63a 30190#define wxUSE_WAVE 1
e6cc62c6 30191_ACEOF
10f2d63a
VZ
30192
30193fi
30194
1e6feb95 30195if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30196 cat >>confdefs.h <<\_ACEOF
1e6feb95 30197#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30198_ACEOF
1e6feb95
VZ
30199
30200fi
30201
30202if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30203 cat >>confdefs.h <<\_ACEOF
1e6feb95 30204#define wxUSE_STOPWATCH 1
e6cc62c6 30205_ACEOF
1e6feb95
VZ
30206
30207fi
30208
30209if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30210 cat >>confdefs.h <<\_ACEOF
1e6feb95 30211#define wxUSE_DATETIME 1
e6cc62c6 30212_ACEOF
1e6feb95
VZ
30213
30214fi
30215
10f2d63a 30216if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30217 cat >>confdefs.h <<\_ACEOF
10f2d63a 30218#define wxUSE_FILE 1
e6cc62c6 30219_ACEOF
10f2d63a
VZ
30220
30221fi
30222
1e6feb95 30223if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30224 cat >>confdefs.h <<\_ACEOF
1e6feb95 30225#define wxUSE_FFILE 1
e6cc62c6 30226_ACEOF
1e6feb95
VZ
30227
30228fi
30229
24528b0c 30230if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30231 cat >>confdefs.h <<\_ACEOF
24528b0c 30232#define wxUSE_FILESYSTEM 1
e6cc62c6 30233_ACEOF
24528b0c
VS
30234
30235fi
30236
10f2d63a 30237if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30238 cat >>confdefs.h <<\_ACEOF
10f2d63a 30239#define wxUSE_FS_ZIP 1
e6cc62c6 30240_ACEOF
10f2d63a
VZ
30241
30242fi
30243
30244if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30245 cat >>confdefs.h <<\_ACEOF
10f2d63a 30246#define wxUSE_ZIPSTREAM 1
e6cc62c6 30247_ACEOF
10f2d63a
VZ
30248
30249fi
30250
eb4efbdc 30251if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30252 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30253#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30254_ACEOF
eb4efbdc
VZ
30255
30256fi
30257
4f3c5f06 30258if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30259 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30260#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30261_ACEOF
4f3c5f06
VZ
30262
30263fi
30264
10f2d63a 30265if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30266 cat >>confdefs.h <<\_ACEOF
10f2d63a 30267#define wxUSE_BUSYINFO 1
e6cc62c6 30268_ACEOF
10f2d63a
VZ
30269
30270fi
30271
30272if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30273 cat >>confdefs.h <<\_ACEOF
10f2d63a 30274#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30275_ACEOF
10f2d63a
VZ
30276
30277fi
30278
a3a584a7 30279if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30280 cat >>confdefs.h <<\_ACEOF
a3a584a7 30281#define wxUSE_TEXTBUFFER 1
e6cc62c6 30282_ACEOF
a3a584a7
VZ
30283
30284fi
30285
10f2d63a 30286if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30287 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30288 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30289echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30290 else
e6cc62c6 30291 cat >>confdefs.h <<\_ACEOF
10f2d63a 30292#define wxUSE_TEXTFILE 1
e6cc62c6 30293_ACEOF
10f2d63a
VZ
30294
30295 fi
30296fi
30297
30298if test "$wxUSE_CONFIG" = "yes" ; then
30299 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30300 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30301echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30302 else
e6cc62c6 30303 cat >>confdefs.h <<\_ACEOF
10f2d63a 30304#define wxUSE_CONFIG 1
e6cc62c6 30305_ACEOF
10f2d63a
VZ
30306
30307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30308 fi
30309fi
30310
30311if test "$wxUSE_INTL" = "yes" ; then
30312 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30313 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30314echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30315 else
e6cc62c6 30316 cat >>confdefs.h <<\_ACEOF
10f2d63a 30317#define wxUSE_INTL 1
e6cc62c6 30318_ACEOF
10f2d63a
VZ
30319
30320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30321 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30322 fi
30323fi
30324
30325if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30326 cat >>confdefs.h <<\_ACEOF
10f2d63a 30327#define wxUSE_LOG 1
e6cc62c6 30328_ACEOF
10f2d63a 30329
8284b0c5 30330
d73be714 30331 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30332 cat >>confdefs.h <<\_ACEOF
d73be714 30333#define wxUSE_LOGGUI 1
e6cc62c6 30334_ACEOF
d73be714
VZ
30335
30336 fi
30337
30338 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30339 cat >>confdefs.h <<\_ACEOF
d73be714 30340#define wxUSE_LOGWINDOW 1
e6cc62c6 30341_ACEOF
69d27ff7
MB
30342
30343 fi
30344
30345 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30346 cat >>confdefs.h <<\_ACEOF
69d27ff7 30347#define wxUSE_LOG_DIALOG 1
e6cc62c6 30348_ACEOF
d73be714
VZ
30349
30350 fi
10f2d63a
VZ
30351fi
30352
30353if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30354 cat >>confdefs.h <<\_ACEOF
10f2d63a 30355#define wxUSE_LONGLONG 1
e6cc62c6 30356_ACEOF
10f2d63a
VZ
30357
30358fi
30359
e8f65ba6 30360if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30361 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30362#define wxUSE_GEOMETRY 1
e6cc62c6 30363_ACEOF
e8f65ba6
RR
30364
30365fi
30366
10f2d63a 30367if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30368 cat >>confdefs.h <<\_ACEOF
10f2d63a 30369#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30370_ACEOF
10f2d63a 30371
70f7a477 30372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30373fi
30374
30375if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30376 cat >>confdefs.h <<\_ACEOF
10f2d63a 30377#define wxUSE_STREAMS 1
e6cc62c6 30378_ACEOF
10f2d63a
VZ
30379
30380fi
30381
5c6fa7d2 30382
8284b0c5 30383if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30384
30385for ac_func in strptime
83307f33 30386do
e6cc62c6
VS
30387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30388echo "$as_me:$LINENO: checking for $ac_func" >&5
30389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30390if eval "test \"\${$as_ac_var+set}\" = set"; then
30391 echo $ECHO_N "(cached) $ECHO_C" >&6
30392else
30393 cat >conftest.$ac_ext <<_ACEOF
30394#line $LINENO "configure"
30395/* confdefs.h. */
30396_ACEOF
30397cat confdefs.h >>conftest.$ac_ext
30398cat >>conftest.$ac_ext <<_ACEOF
30399/* end confdefs.h. */
83307f33 30400/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30401 which can conflict with char $ac_func (); below.
30402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30403 <limits.h> exists even on freestanding compilers. */
30404#ifdef __STDC__
30405# include <limits.h>
30406#else
30407# include <assert.h>
30408#endif
83307f33 30409/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30410#ifdef __cplusplus
30411extern "C"
30412{
30413#endif
83307f33 30414/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30415 builtin and then its argument prototype would still apply. */
30416char $ac_func ();
83307f33
VZ
30417/* The GNU C library defines this for functions which it implements
30418 to always fail with ENOSYS. Some functions are actually named
30419 something starting with __ and the normal name is an alias. */
30420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30421choke me
30422#else
e6cc62c6
VS
30423char (*f) () = $ac_func;
30424#endif
30425#ifdef __cplusplus
30426}
83307f33
VZ
30427#endif
30428
e6cc62c6
VS
30429int
30430main ()
30431{
30432return f != $ac_func;
30433 ;
30434 return 0;
30435}
30436_ACEOF
30437rm -f conftest.$ac_objext conftest$ac_exeext
30438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30439 (eval $ac_link) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); } &&
30443 { ac_try='test -s conftest$ac_exeext'
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30449 eval "$as_ac_var=yes"
30450else
30451 echo "$as_me: failed program was:" >&5
30452sed 's/^/| /' conftest.$ac_ext >&5
30453
30454eval "$as_ac_var=no"
30455fi
30456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30457fi
30458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30460if test `eval echo '${'$as_ac_var'}'` = yes; then
30461 cat >>confdefs.h <<_ACEOF
30462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30463_ACEOF
83307f33 30464
83307f33
VZ
30465fi
30466done
30467
5c6fa7d2 30468
e6cc62c6
VS
30469 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30470echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30471if test "${wx_cv_var_timezone+set}" = set; then
30472 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30473else
e6cc62c6
VS
30474
30475 cat >conftest.$ac_ext <<_ACEOF
30476#line $LINENO "configure"
30477/* confdefs.h. */
30478_ACEOF
30479cat confdefs.h >>conftest.$ac_ext
30480cat >>conftest.$ac_ext <<_ACEOF
30481/* end confdefs.h. */
360d6699 30482
b4085ce6 30483 #include <time.h>
e6cc62c6
VS
30484
30485int
30486main ()
30487{
360d6699
VZ
30488
30489 int tz;
4f11a343 30490 tz = timezone;
e6cc62c6
VS
30491
30492 ;
30493 return 0;
30494}
30495_ACEOF
30496rm -f conftest.$ac_objext
30497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30498 (eval $ac_compile) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); } &&
30502 { ac_try='test -s conftest.$ac_objext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508
4f11a343 30509 wx_cv_var_timezone=timezone
e6cc62c6 30510
360d6699 30511else
e6cc62c6
VS
30512 echo "$as_me: failed program was:" >&5
30513sed 's/^/| /' conftest.$ac_ext >&5
30514
30515
30516 cat >conftest.$ac_ext <<_ACEOF
30517#line $LINENO "configure"
30518/* confdefs.h. */
30519_ACEOF
30520cat confdefs.h >>conftest.$ac_ext
30521cat >>conftest.$ac_ext <<_ACEOF
30522/* end confdefs.h. */
360d6699 30523
b4085ce6 30524 #include <time.h>
e6cc62c6
VS
30525
30526int
30527main ()
30528{
360d6699
VZ
30529
30530 int tz;
30531 tz = _timezone;
e6cc62c6
VS
30532
30533 ;
30534 return 0;
30535}
30536_ACEOF
30537rm -f conftest.$ac_objext
30538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30539 (eval $ac_compile) 2>&5
30540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); } &&
30543 { ac_try='test -s conftest.$ac_objext'
30544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545 (eval $ac_try) 2>&5
30546 ac_status=$?
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); }; }; then
30549
360d6699 30550 wx_cv_var_timezone=_timezone
e6cc62c6 30551
5357c8e8 30552else
e6cc62c6
VS
30553 echo "$as_me: failed program was:" >&5
30554sed 's/^/| /' conftest.$ac_ext >&5
30555
30556
30557 cat >conftest.$ac_ext <<_ACEOF
30558#line $LINENO "configure"
30559/* confdefs.h. */
30560_ACEOF
30561cat confdefs.h >>conftest.$ac_ext
30562cat >>conftest.$ac_ext <<_ACEOF
30563/* end confdefs.h. */
5357c8e8 30564
b4085ce6 30565 #include <time.h>
e6cc62c6
VS
30566
30567int
30568main ()
30569{
5357c8e8
VZ
30570
30571 int tz;
4f11a343 30572 tz = __timezone;
e6cc62c6
VS
30573
30574 ;
30575 return 0;
30576}
30577_ACEOF
30578rm -f conftest.$ac_objext
30579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30580 (eval $ac_compile) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } &&
30584 { ac_try='test -s conftest.$ac_objext'
30585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586 (eval $ac_try) 2>&5
30587 ac_status=$?
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); }; }; then
30590
4f11a343 30591 wx_cv_var_timezone=__timezone
e6cc62c6 30592
360d6699 30593else
e6cc62c6
VS
30594 echo "$as_me: failed program was:" >&5
30595sed 's/^/| /' conftest.$ac_ext >&5
30596
30597
f9bc1684 30598 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30599 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30600echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30601 fi
e6cc62c6
VS
30602
30603
7b4a847f 30604fi
e6cc62c6
VS
30605rm -f conftest.$ac_objext conftest.$ac_ext
30606
30607
5c6fa7d2 30608fi
e6cc62c6
VS
30609rm -f conftest.$ac_objext conftest.$ac_ext
30610
30611
247f5006 30612fi
e6cc62c6 30613rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30614
e6cc62c6
VS
30615
30616fi
30617echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30618echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30619
f9bc1684 30620 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30621 cat >>confdefs.h <<_ACEOF
360d6699 30622#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30623_ACEOF
360d6699 30624
f9bc1684 30625 fi
698dcdb6 30626
e6cc62c6
VS
30627
30628for ac_func in localtime
afc31813 30629do
e6cc62c6
VS
30630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30631echo "$as_me:$LINENO: checking for $ac_func" >&5
30632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30633if eval "test \"\${$as_ac_var+set}\" = set"; then
30634 echo $ECHO_N "(cached) $ECHO_C" >&6
30635else
30636 cat >conftest.$ac_ext <<_ACEOF
30637#line $LINENO "configure"
30638/* confdefs.h. */
30639_ACEOF
30640cat confdefs.h >>conftest.$ac_ext
30641cat >>conftest.$ac_ext <<_ACEOF
30642/* end confdefs.h. */
afc31813 30643/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30644 which can conflict with char $ac_func (); below.
30645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30646 <limits.h> exists even on freestanding compilers. */
30647#ifdef __STDC__
30648# include <limits.h>
30649#else
30650# include <assert.h>
30651#endif
afc31813 30652/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30653#ifdef __cplusplus
30654extern "C"
30655{
30656#endif
afc31813 30657/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30658 builtin and then its argument prototype would still apply. */
30659char $ac_func ();
afc31813
VZ
30660/* The GNU C library defines this for functions which it implements
30661 to always fail with ENOSYS. Some functions are actually named
30662 something starting with __ and the normal name is an alias. */
30663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30664choke me
30665#else
e6cc62c6
VS
30666char (*f) () = $ac_func;
30667#endif
30668#ifdef __cplusplus
30669}
afc31813
VZ
30670#endif
30671
e6cc62c6
VS
30672int
30673main ()
30674{
30675return f != $ac_func;
30676 ;
30677 return 0;
30678}
30679_ACEOF
30680rm -f conftest.$ac_objext conftest$ac_exeext
30681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30682 (eval $ac_link) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
30686 { ac_try='test -s conftest$ac_exeext'
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692 eval "$as_ac_var=yes"
30693else
30694 echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
30697eval "$as_ac_var=no"
30698fi
30699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30700fi
30701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30702echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30703if test `eval echo '${'$as_ac_var'}'` = yes; then
30704 cat >>confdefs.h <<_ACEOF
30705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30706_ACEOF
afc31813 30707
afc31813
VZ
30708fi
30709done
30710
5c6fa7d2 30711
8284b0c5 30712 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30713 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30714echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30715if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30716 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30717else
e6cc62c6
VS
30718
30719 cat >conftest.$ac_ext <<_ACEOF
30720#line $LINENO "configure"
30721/* confdefs.h. */
30722_ACEOF
30723cat confdefs.h >>conftest.$ac_ext
30724cat >>conftest.$ac_ext <<_ACEOF
30725/* end confdefs.h. */
0470b1e6 30726
b4085ce6 30727 #include <time.h>
e6cc62c6
VS
30728
30729int
30730main ()
30731{
0470b1e6
VZ
30732
30733 struct tm tm;
30734 tm.tm_gmtoff++;
e6cc62c6
VS
30735
30736 ;
30737 return 0;
30738}
30739_ACEOF
30740rm -f conftest.$ac_objext
30741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30742 (eval $ac_compile) 2>&5
30743 ac_status=$?
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } &&
30746 { ac_try='test -s conftest.$ac_objext'
30747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30748 (eval $ac_try) 2>&5
30749 ac_status=$?
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); }; }; then
30752
f03a98d8 30753 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30754
0470b1e6 30755else
e6cc62c6
VS
30756 echo "$as_me: failed program was:" >&5
30757sed 's/^/| /' conftest.$ac_ext >&5
30758
30759wx_cv_struct_tm_has_gmtoff=no
30760
247f5006 30761fi
e6cc62c6 30762rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30763
e6cc62c6
VS
30764fi
30765echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30766echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30767 fi
30768
30769 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30770 cat >>confdefs.h <<\_ACEOF
6232543b 30771#define WX_GMTOFF_IN_TM 1
e6cc62c6 30772_ACEOF
0470b1e6 30773
3fcdd07b
VZ
30774 fi
30775
e6cc62c6
VS
30776
30777
30778for ac_func in gettimeofday ftime
3fcdd07b 30779do
e6cc62c6
VS
30780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30781echo "$as_me:$LINENO: checking for $ac_func" >&5
30782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30783if eval "test \"\${$as_ac_var+set}\" = set"; then
30784 echo $ECHO_N "(cached) $ECHO_C" >&6
30785else
30786 cat >conftest.$ac_ext <<_ACEOF
30787#line $LINENO "configure"
30788/* confdefs.h. */
30789_ACEOF
30790cat confdefs.h >>conftest.$ac_ext
30791cat >>conftest.$ac_ext <<_ACEOF
30792/* end confdefs.h. */
3fcdd07b 30793/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30794 which can conflict with char $ac_func (); below.
30795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30796 <limits.h> exists even on freestanding compilers. */
30797#ifdef __STDC__
30798# include <limits.h>
30799#else
30800# include <assert.h>
30801#endif
3fcdd07b 30802/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30803#ifdef __cplusplus
30804extern "C"
30805{
30806#endif
3fcdd07b 30807/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30808 builtin and then its argument prototype would still apply. */
30809char $ac_func ();
3fcdd07b
VZ
30810/* The GNU C library defines this for functions which it implements
30811 to always fail with ENOSYS. Some functions are actually named
30812 something starting with __ and the normal name is an alias. */
30813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30814choke me
30815#else
e6cc62c6
VS
30816char (*f) () = $ac_func;
30817#endif
30818#ifdef __cplusplus
30819}
3fcdd07b
VZ
30820#endif
30821
e6cc62c6
VS
30822int
30823main ()
30824{
30825return f != $ac_func;
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30832 (eval $ac_link) 2>&5
30833 ac_status=$?
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } &&
30836 { ac_try='test -s conftest$ac_exeext'
30837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838 (eval $ac_try) 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
30842 eval "$as_ac_var=yes"
30843else
30844 echo "$as_me: failed program was:" >&5
30845sed 's/^/| /' conftest.$ac_ext >&5
30846
30847eval "$as_ac_var=no"
30848fi
30849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30850fi
30851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30853if test `eval echo '${'$as_ac_var'}'` = yes; then
30854 cat >>confdefs.h <<_ACEOF
30855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30856_ACEOF
3fcdd07b 30857 break
3fcdd07b
VZ
30858fi
30859done
30860
698dcdb6 30861
8284b0c5 30862 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30863 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30864echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30865if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30867else
30868
30869
30870
30871 ac_ext=cc
5c6fa7d2 30872ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30876
8284b0c5 30877
e6cc62c6
VS
30878 cat >conftest.$ac_ext <<_ACEOF
30879#line $LINENO "configure"
30880/* confdefs.h. */
30881_ACEOF
30882cat confdefs.h >>conftest.$ac_ext
30883cat >>conftest.$ac_ext <<_ACEOF
30884/* end confdefs.h. */
afc31813
VZ
30885
30886 #include <sys/time.h>
30887 #include <unistd.h>
e6cc62c6
VS
30888
30889int
30890main ()
30891{
afc31813
VZ
30892
30893 struct timeval tv;
776862b4 30894 gettimeofday(&tv, NULL);
e6cc62c6
VS
30895
30896 ;
30897 return 0;
30898}
30899_ACEOF
30900rm -f conftest.$ac_objext
30901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30902 (eval $ac_compile) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } &&
30906 { ac_try='test -s conftest.$ac_objext'
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
afc31813 30912 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30913else
e6cc62c6
VS
30914 echo "$as_me: failed program was:" >&5
30915sed 's/^/| /' conftest.$ac_ext >&5
30916
30917cat >conftest.$ac_ext <<_ACEOF
30918#line $LINENO "configure"
30919/* confdefs.h. */
30920_ACEOF
30921cat confdefs.h >>conftest.$ac_ext
30922cat >>conftest.$ac_ext <<_ACEOF
30923/* end confdefs.h. */
afc31813
VZ
30924
30925 #include <sys/time.h>
30926 #include <unistd.h>
e6cc62c6
VS
30927
30928int
30929main ()
30930{
afc31813
VZ
30931
30932 struct timeval tv;
30933 gettimeofday(&tv);
e6cc62c6
VS
30934
30935 ;
30936 return 0;
30937}
30938_ACEOF
30939rm -f conftest.$ac_objext
30940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30941 (eval $ac_compile) 2>&5
30942 ac_status=$?
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } &&
30945 { ac_try='test -s conftest.$ac_objext'
30946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30947 (eval $ac_try) 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; }; then
afc31813 30951 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30952else
e6cc62c6
VS
30953 echo "$as_me: failed program was:" >&5
30954sed 's/^/| /' conftest.$ac_ext >&5
30955
30956
30957 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30958echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30959 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30960
30961
10f2d63a 30962fi
e6cc62c6
VS
30963rm -f conftest.$ac_objext conftest.$ac_ext
30964
10f2d63a 30965fi
e6cc62c6 30966rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30967 ac_ext=c
10f2d63a 30968ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30971ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30972
a0b9e27f 30973
e6cc62c6
VS
30974fi
30975echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30976echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30977
afc31813 30978 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30979 cat >>confdefs.h <<\_ACEOF
afc31813 30980#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30981_ACEOF
afc31813
VZ
30982
30983 fi
30984 fi
30985
afc31813
VZ
30986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30987fi
30988
8284b0c5 30989
52127426 30990if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30991 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30992 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30993echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30994 wxUSE_SOCKETS="no"
30995 fi
3879ecda
VZ
30996 if test "$wxUSE_COCOA" = "1"; then
30997 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30998echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30999 wxUSE_SOCKETS="no"
31000 fi
0feee163 31001fi
b089607b 31002
0feee163
VZ
31003if test "$wxUSE_SOCKETS" = "yes"; then
31004 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31005 echo "$as_me:$LINENO: checking for socket" >&5
31006echo $ECHO_N "checking for socket... $ECHO_C" >&6
31007if test "${ac_cv_func_socket+set}" = set; then
31008 echo $ECHO_N "(cached) $ECHO_C" >&6
31009else
31010 cat >conftest.$ac_ext <<_ACEOF
31011#line $LINENO "configure"
31012/* confdefs.h. */
31013_ACEOF
31014cat confdefs.h >>conftest.$ac_ext
31015cat >>conftest.$ac_ext <<_ACEOF
31016/* end confdefs.h. */
c63c7106 31017/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31018 which can conflict with char socket (); below.
31019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31020 <limits.h> exists even on freestanding compilers. */
31021#ifdef __STDC__
31022# include <limits.h>
31023#else
31024# include <assert.h>
31025#endif
c63c7106 31026/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31027#ifdef __cplusplus
31028extern "C"
31029{
31030#endif
c63c7106 31031/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31032 builtin and then its argument prototype would still apply. */
31033char socket ();
c63c7106
VZ
31034/* The GNU C library defines this for functions which it implements
31035 to always fail with ENOSYS. Some functions are actually named
31036 something starting with __ and the normal name is an alias. */
31037#if defined (__stub_socket) || defined (__stub___socket)
31038choke me
31039#else
e6cc62c6
VS
31040char (*f) () = socket;
31041#endif
31042#ifdef __cplusplus
31043}
c63c7106
VZ
31044#endif
31045
e6cc62c6
VS
31046int
31047main ()
31048{
31049return f != socket;
31050 ;
31051 return 0;
31052}
31053_ACEOF
31054rm -f conftest.$ac_objext conftest$ac_exeext
31055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31056 (eval $ac_link) 2>&5
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); } &&
31060 { ac_try='test -s conftest$ac_exeext'
31061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
31066 ac_cv_func_socket=yes
31067else
31068 echo "$as_me: failed program was:" >&5
31069sed 's/^/| /' conftest.$ac_ext >&5
31070
31071ac_cv_func_socket=no
31072fi
31073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31074fi
31075echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31076echo "${ECHO_T}$ac_cv_func_socket" >&6
31077if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31078 :
31079else
0e012a93
VZ
31080
31081 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31082echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31083if test "${ac_cv_lib_socket_socket+set}" = set; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31085else
e6cc62c6 31086 ac_check_lib_save_LIBS=$LIBS
c63c7106 31087LIBS="-lsocket $LIBS"
e6cc62c6
VS
31088cat >conftest.$ac_ext <<_ACEOF
31089#line $LINENO "configure"
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
31095
c63c7106 31096/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31097#ifdef __cplusplus
31098extern "C"
31099#endif
c63c7106 31100/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31101 builtin and then its argument prototype would still apply. */
31102char socket ();
31103int
31104main ()
31105{
31106socket ();
31107 ;
31108 return 0;
31109}
31110_ACEOF
31111rm -f conftest.$ac_objext conftest$ac_exeext
31112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31113 (eval $ac_link) 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } &&
31117 { ac_try='test -s conftest$ac_exeext'
31118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31119 (eval $ac_try) 2>&5
31120 ac_status=$?
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); }; }; then
31123 ac_cv_lib_socket_socket=yes
31124else
31125 echo "$as_me: failed program was:" >&5
31126sed 's/^/| /' conftest.$ac_ext >&5
31127
31128ac_cv_lib_socket_socket=no
31129fi
31130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31131LIBS=$ac_check_lib_save_LIBS
31132fi
31133echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31134echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31135if test $ac_cv_lib_socket_socket = yes; then
d558c907 31136 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31137 INET_LINK="$INET_LINK -lsocket"
31138 fi
c63c7106 31139else
afc31813 31140
0e012a93 31141 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31142echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31143 wxUSE_SOCKETS=no
e6cc62c6
VS
31144
31145
6232543b 31146fi
b089607b 31147
e6cc62c6 31148
0e012a93 31149
1e487827 31150fi
afc31813 31151
3a922bb4 31152 fi
0feee163 31153fi
51a9faba 31154
0feee163
VZ
31155if test "$wxUSE_SOCKETS" = "yes" ; then
31156 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31157 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31158echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31159if test "${wx_cv_type_getsockname3+set}" = set; then
31160 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31161else
e6cc62c6
VS
31162
31163 cat >conftest.$ac_ext <<_ACEOF
31164#line $LINENO "configure"
31165/* confdefs.h. */
31166_ACEOF
31167cat confdefs.h >>conftest.$ac_ext
31168cat >>conftest.$ac_ext <<_ACEOF
31169/* end confdefs.h. */
51a9faba 31170
3a922bb4
RL
31171 #include <sys/types.h>
31172 #include <sys/socket.h>
e6cc62c6
VS
31173
31174int
31175main ()
31176{
51a9faba 31177
3a922bb4
RL
31178 socklen_t len;
31179 getsockname(0, 0, &len);
e6cc62c6
VS
31180
31181 ;
31182 return 0;
31183}
31184_ACEOF
31185rm -f conftest.$ac_objext
31186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31187 (eval $ac_compile) 2>&5
31188 ac_status=$?
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } &&
31191 { ac_try='test -s conftest.$ac_objext'
31192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193 (eval $ac_try) 2>&5
31194 ac_status=$?
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; }; then
51a9faba 31197 wx_cv_type_getsockname3=socklen_t
afc31813 31198else
e6cc62c6
VS
31199 echo "$as_me: failed program was:" >&5
31200sed 's/^/| /' conftest.$ac_ext >&5
31201
31202
9711d31e
GD
31203 CFLAGS_OLD="$CFLAGS"
31204 if test "$GCC" = yes ; then
31205 CFLAGS="$CFLAGS -Werror"
31206 fi
31207
e6cc62c6
VS
31208 cat >conftest.$ac_ext <<_ACEOF
31209#line $LINENO "configure"
31210/* confdefs.h. */
31211_ACEOF
31212cat confdefs.h >>conftest.$ac_ext
31213cat >>conftest.$ac_ext <<_ACEOF
31214/* end confdefs.h. */
51a9faba 31215
9711d31e
GD
31216 #include <sys/types.h>
31217 #include <sys/socket.h>
e6cc62c6
VS
31218
31219int
31220main ()
31221{
51a9faba 31222
9711d31e
GD
31223 size_t len;
31224 getsockname(0, 0, &len);
e6cc62c6
VS
31225
31226 ;
31227 return 0;
31228}
31229_ACEOF
31230rm -f conftest.$ac_objext
31231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31232 (eval $ac_compile) 2>&5
31233 ac_status=$?
31234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } &&
31236 { ac_try='test -s conftest.$ac_objext'
31237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238 (eval $ac_try) 2>&5
31239 ac_status=$?
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); }; }; then
51a9faba 31242 wx_cv_type_getsockname3=size_t
afc31813 31243else
e6cc62c6
VS
31244 echo "$as_me: failed program was:" >&5
31245sed 's/^/| /' conftest.$ac_ext >&5
31246
31247cat >conftest.$ac_ext <<_ACEOF
31248#line $LINENO "configure"
31249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
51a9faba 31254
9711d31e
GD
31255 #include <sys/types.h>
31256 #include <sys/socket.h>
e6cc62c6
VS
31257
31258int
31259main ()
31260{
51a9faba 31261
9711d31e
GD
31262 int len;
31263 getsockname(0, 0, &len);
e6cc62c6
VS
31264
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269rm -f conftest.$ac_objext
31270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31271 (eval $ac_compile) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); } &&
31275 { ac_try='test -s conftest.$ac_objext'
31276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31277 (eval $ac_try) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }; then
51a9faba 31281 wx_cv_type_getsockname3=int
afc31813 31282else
e6cc62c6
VS
31283 echo "$as_me: failed program was:" >&5
31284sed 's/^/| /' conftest.$ac_ext >&5
31285
31286wx_cv_type_getsockname3=unknown
31287
afc31813 31288fi
e6cc62c6
VS
31289rm -f conftest.$ac_objext conftest.$ac_ext
31290
afc31813 31291fi
e6cc62c6 31292rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31293
31294 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31295
31296
247f5006 31297fi
e6cc62c6 31298rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31299
e6cc62c6
VS
31300fi
31301echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31302echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31303
3a922bb4
RL
31304 if test "$wx_cv_type_getsockname3" = "unknown"; then
31305 wxUSE_SOCKETS=no
e6cc62c6
VS
31306 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31307echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31308 else
e6cc62c6 31309 cat >>confdefs.h <<_ACEOF
51a9faba 31310#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31311_ACEOF
51a9faba 31312
3a922bb4 31313 fi
51a9faba
VZ
31314 fi
31315fi
afc31813 31316
51a9faba 31317if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31318 cat >>confdefs.h <<\_ACEOF
afc31813 31319#define wxUSE_SOCKETS 1
e6cc62c6 31320_ACEOF
afc31813 31321
70f7a477 31322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31323fi
31324
3879ecda
VZ
31325if test "$wxUSE_PROTOCOL" = "yes"; then
31326 if test "$wxUSE_SOCKETS" != "yes"; then
31327 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31328echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31329 wxUSE_PROTOCOL=no
31330 fi
31331fi
31332
31333if test "$wxUSE_PROTOCOL" = "yes"; then
31334 cat >>confdefs.h <<\_ACEOF
31335#define wxUSE_PROTOCOL 1
31336_ACEOF
31337
31338
31339 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31340 cat >>confdefs.h <<\_ACEOF
31341#define wxUSE_PROTOCOL_HTTP 1
31342_ACEOF
31343
31344 fi
31345 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31346 cat >>confdefs.h <<\_ACEOF
31347#define wxUSE_PROTOCOL_FTP 1
31348_ACEOF
31349
31350 fi
31351 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31352 cat >>confdefs.h <<\_ACEOF
31353#define wxUSE_PROTOCOL_FILE 1
31354_ACEOF
31355
31356 fi
31357else
31358 if test "$wxUSE_FS_INET" = "yes"; then
31359 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31360echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31361 wxUSE_FS_INET="no"
31362 fi
31363fi
31364
31365if test "$wxUSE_URL" = "yes"; then
31366 if test "$wxUSE_PROTOCOL" != "yes"; then
31367 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31368echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31369 wxUSE_URL=no
31370 fi
31371 if test "$wxUSE_URL" = "yes"; then
31372 cat >>confdefs.h <<\_ACEOF
31373#define wxUSE_URL 1
31374_ACEOF
31375
31376 fi
31377fi
31378
31379if test "$wxUSE_FS_INET" = "yes"; then
31380 cat >>confdefs.h <<\_ACEOF
31381#define wxUSE_FS_INET 1
31382_ACEOF
31383
31384fi
31385
8284b0c5 31386
dc3d889d
VZ
31387if test "$wxUSE_GUI" = "yes"; then
31388
ac0c4cc3 31389 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31390 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31391echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31392 wxUSE_JOYSTICK=no
156b2523
GD
31393 fi
31394
131f235d 31395 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31396 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31397
31398for ac_header in linux/joystick.h
10f2d63a 31399do
e6cc62c6
VS
31400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31401if eval "test \"\${$as_ac_Header+set}\" = set"; then
31402 echo "$as_me:$LINENO: checking for $ac_header" >&5
31403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31404if eval "test \"\${$as_ac_Header+set}\" = set"; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31406fi
31407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31409else
31410 # Is the header compilable?
31411echo "$as_me:$LINENO: checking $ac_header usability" >&5
31412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31413cat >conftest.$ac_ext <<_ACEOF
31414#line $LINENO "configure"
31415/* confdefs.h. */
31416_ACEOF
31417cat confdefs.h >>conftest.$ac_ext
31418cat >>conftest.$ac_ext <<_ACEOF
31419/* end confdefs.h. */
31420$ac_includes_default
31421#include <$ac_header>
31422_ACEOF
31423rm -f conftest.$ac_objext
31424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31425 (eval $ac_compile) 2>&5
31426 ac_status=$?
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } &&
31429 { ac_try='test -s conftest.$ac_objext'
31430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; }; then
31435 ac_header_compiler=yes
31436else
31437 echo "$as_me: failed program was:" >&5
31438sed 's/^/| /' conftest.$ac_ext >&5
31439
31440ac_header_compiler=no
31441fi
31442rm -f conftest.$ac_objext conftest.$ac_ext
31443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31444echo "${ECHO_T}$ac_header_compiler" >&6
31445
31446# Is the header present?
31447echo "$as_me:$LINENO: checking $ac_header presence" >&5
31448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31449cat >conftest.$ac_ext <<_ACEOF
31450#line $LINENO "configure"
31451/* confdefs.h. */
31452_ACEOF
31453cat confdefs.h >>conftest.$ac_ext
31454cat >>conftest.$ac_ext <<_ACEOF
31455/* end confdefs.h. */
31456#include <$ac_header>
31457_ACEOF
31458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31460 ac_status=$?
31461 grep -v '^ *+' conftest.er1 >conftest.err
31462 rm -f conftest.er1
31463 cat conftest.err >&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); } >/dev/null; then
31466 if test -s conftest.err; then
31467 ac_cpp_err=$ac_c_preproc_warn_flag
31468 else
31469 ac_cpp_err=
31470 fi
31471else
31472 ac_cpp_err=yes
31473fi
31474if test -z "$ac_cpp_err"; then
31475 ac_header_preproc=yes
31476else
31477 echo "$as_me: failed program was:" >&5
31478sed 's/^/| /' conftest.$ac_ext >&5
31479
31480 ac_header_preproc=no
31481fi
31482rm -f conftest.err conftest.$ac_ext
31483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31484echo "${ECHO_T}$ac_header_preproc" >&6
31485
31486# So? What about this header?
31487case $ac_header_compiler:$ac_header_preproc in
31488 yes:no )
31489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31493 (
31494 cat <<\_ASBOX
31495## ------------------------------------ ##
31496## Report this to bug-autoconf@gnu.org. ##
31497## ------------------------------------ ##
31498_ASBOX
31499 ) |
31500 sed "s/^/$as_me: WARNING: /" >&2
31501 ;;
31502 no:yes )
31503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31509 (
31510 cat <<\_ASBOX
31511## ------------------------------------ ##
31512## Report this to bug-autoconf@gnu.org. ##
31513## ------------------------------------ ##
31514_ASBOX
31515 ) |
31516 sed "s/^/$as_me: WARNING: /" >&2
31517 ;;
31518esac
31519echo "$as_me:$LINENO: checking for $ac_header" >&5
31520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31521if eval "test \"\${$as_ac_Header+set}\" = set"; then
31522 echo $ECHO_N "(cached) $ECHO_C" >&6
31523else
31524 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31525fi
e6cc62c6
VS
31526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31528
10f2d63a 31529fi
e6cc62c6
VS
31530if test `eval echo '${'$as_ac_Header'}'` = yes; then
31531 cat >>confdefs.h <<_ACEOF
31532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31533_ACEOF
31534
247f5006 31535fi
e6cc62c6 31536
10f2d63a
VZ
31537done
31538
3a922bb4
RL
31539 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31540 wxUSE_JOYSTICK=no
e6cc62c6
VS
31541 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31542echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31543 fi
31544 fi
31545 fi
b089607b 31546
3a922bb4 31547 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31548 cat >>confdefs.h <<\_ACEOF
10f2d63a 31549#define wxUSE_JOYSTICK 1
e6cc62c6 31550_ACEOF
10f2d63a 31551
3a922bb4
RL
31552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31553 fi
dc3d889d
VZ
31554fi
31555
8284b0c5 31556
b089607b
VZ
31557if test "$TOOLKIT" != "MSW"; then
31558
3a922bb4
RL
31559 HAVE_DL_FUNCS=0
31560 HAVE_SHL_FUNCS=0
0b9ab0bd 31561 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31562 if test "$USE_DARWIN" = 1; then
31563 HAVE_DL_FUNCS=1
31564 else
e6cc62c6
VS
31565
31566for ac_func in dlopen
10f2d63a 31567do
e6cc62c6
VS
31568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31569echo "$as_me:$LINENO: checking for $ac_func" >&5
31570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31571if eval "test \"\${$as_ac_var+set}\" = set"; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574 cat >conftest.$ac_ext <<_ACEOF
31575#line $LINENO "configure"
31576/* confdefs.h. */
31577_ACEOF
31578cat confdefs.h >>conftest.$ac_ext
31579cat >>conftest.$ac_ext <<_ACEOF
31580/* end confdefs.h. */
10f2d63a 31581/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31582 which can conflict with char $ac_func (); below.
31583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31584 <limits.h> exists even on freestanding compilers. */
31585#ifdef __STDC__
31586# include <limits.h>
31587#else
31588# include <assert.h>
31589#endif
10f2d63a 31590/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31591#ifdef __cplusplus
31592extern "C"
31593{
31594#endif
10f2d63a 31595/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31596 builtin and then its argument prototype would still apply. */
31597char $ac_func ();
10f2d63a
VZ
31598/* The GNU C library defines this for functions which it implements
31599 to always fail with ENOSYS. Some functions are actually named
31600 something starting with __ and the normal name is an alias. */
31601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31602choke me
31603#else
e6cc62c6
VS
31604char (*f) () = $ac_func;
31605#endif
31606#ifdef __cplusplus
31607}
10f2d63a
VZ
31608#endif
31609
e6cc62c6
VS
31610int
31611main ()
31612{
31613return f != $ac_func;
31614 ;
31615 return 0;
31616}
31617_ACEOF
31618rm -f conftest.$ac_objext conftest$ac_exeext
31619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31620 (eval $ac_link) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); } &&
31624 { ac_try='test -s conftest$ac_exeext'
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
31630 eval "$as_ac_var=yes"
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635eval "$as_ac_var=no"
31636fi
31637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31638fi
31639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31641if test `eval echo '${'$as_ac_var'}'` = yes; then
31642 cat >>confdefs.h <<_ACEOF
31643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31644_ACEOF
31645
31646 cat >>confdefs.h <<\_ACEOF
10f2d63a 31647#define HAVE_DLOPEN 1
e6cc62c6 31648_ACEOF
10f2d63a 31649
3a922bb4 31650 HAVE_DL_FUNCS=1
e6cc62c6 31651
10f2d63a 31652else
e6cc62c6
VS
31653
31654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31656if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31658else
e6cc62c6 31659 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31660LIBS="-ldl $LIBS"
e6cc62c6
VS
31661cat >conftest.$ac_ext <<_ACEOF
31662#line $LINENO "configure"
31663/* confdefs.h. */
31664_ACEOF
31665cat confdefs.h >>conftest.$ac_ext
31666cat >>conftest.$ac_ext <<_ACEOF
31667/* end confdefs.h. */
31668
10f2d63a 31669/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31670#ifdef __cplusplus
31671extern "C"
31672#endif
10f2d63a 31673/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31674 builtin and then its argument prototype would still apply. */
31675char dlopen ();
31676int
31677main ()
31678{
31679dlopen ();
31680 ;
31681 return 0;
31682}
31683_ACEOF
31684rm -f conftest.$ac_objext conftest$ac_exeext
31685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31686 (eval $ac_link) 2>&5
31687 ac_status=$?
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); } &&
31690 { ac_try='test -s conftest$ac_exeext'
31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31692 (eval $ac_try) 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; }; then
31696 ac_cv_lib_dl_dlopen=yes
31697else
31698 echo "$as_me: failed program was:" >&5
31699sed 's/^/| /' conftest.$ac_ext >&5
31700
31701ac_cv_lib_dl_dlopen=no
31702fi
31703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31704LIBS=$ac_check_lib_save_LIBS
31705fi
31706echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31707echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31708if test $ac_cv_lib_dl_dlopen = yes; then
31709
31710 cat >>confdefs.h <<\_ACEOF
10f2d63a 31711#define HAVE_DLOPEN 1
e6cc62c6 31712_ACEOF
10f2d63a 31713
3a922bb4 31714 HAVE_DL_FUNCS=1
3d63bc3a 31715 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31716
10f2d63a 31717else
10f2d63a 31718
e6cc62c6
VS
31719
31720for ac_func in shl_load
10f2d63a 31721do
e6cc62c6
VS
31722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31723echo "$as_me:$LINENO: checking for $ac_func" >&5
31724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31725if eval "test \"\${$as_ac_var+set}\" = set"; then
31726 echo $ECHO_N "(cached) $ECHO_C" >&6
31727else
31728 cat >conftest.$ac_ext <<_ACEOF
31729#line $LINENO "configure"
31730/* confdefs.h. */
31731_ACEOF
31732cat confdefs.h >>conftest.$ac_ext
31733cat >>conftest.$ac_ext <<_ACEOF
31734/* end confdefs.h. */
10f2d63a 31735/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31736 which can conflict with char $ac_func (); below.
31737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31738 <limits.h> exists even on freestanding compilers. */
31739#ifdef __STDC__
31740# include <limits.h>
31741#else
31742# include <assert.h>
31743#endif
10f2d63a 31744/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31745#ifdef __cplusplus
31746extern "C"
31747{
31748#endif
10f2d63a 31749/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31750 builtin and then its argument prototype would still apply. */
31751char $ac_func ();
10f2d63a
VZ
31752/* The GNU C library defines this for functions which it implements
31753 to always fail with ENOSYS. Some functions are actually named
31754 something starting with __ and the normal name is an alias. */
31755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31756choke me
31757#else
e6cc62c6
VS
31758char (*f) () = $ac_func;
31759#endif
31760#ifdef __cplusplus
31761}
10f2d63a
VZ
31762#endif
31763
e6cc62c6
VS
31764int
31765main ()
31766{
31767return f != $ac_func;
31768 ;
31769 return 0;
31770}
31771_ACEOF
31772rm -f conftest.$ac_objext conftest$ac_exeext
31773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31774 (eval $ac_link) 2>&5
31775 ac_status=$?
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
31778 { ac_try='test -s conftest$ac_exeext'
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
31784 eval "$as_ac_var=yes"
31785else
31786 echo "$as_me: failed program was:" >&5
31787sed 's/^/| /' conftest.$ac_ext >&5
31788
31789eval "$as_ac_var=no"
31790fi
31791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31792fi
31793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31795if test `eval echo '${'$as_ac_var'}'` = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31798_ACEOF
31799
31800 cat >>confdefs.h <<\_ACEOF
10f2d63a 31801#define HAVE_SHL_LOAD 1
e6cc62c6 31802_ACEOF
10f2d63a 31803
3a922bb4 31804 HAVE_SHL_FUNCS=1
e6cc62c6 31805
10f2d63a 31806else
e6cc62c6
VS
31807
31808 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31809echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31810if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31812else
e6cc62c6 31813 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31814LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31815cat >conftest.$ac_ext <<_ACEOF
31816#line $LINENO "configure"
31817/* confdefs.h. */
31818_ACEOF
31819cat confdefs.h >>conftest.$ac_ext
31820cat >>conftest.$ac_ext <<_ACEOF
31821/* end confdefs.h. */
31822
8284b0c5 31823/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31824#ifdef __cplusplus
31825extern "C"
31826#endif
f6bcfd97 31827/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31828 builtin and then its argument prototype would still apply. */
31829char dld ();
31830int
31831main ()
31832{
31833dld ();
31834 ;
31835 return 0;
31836}
31837_ACEOF
31838rm -f conftest.$ac_objext conftest$ac_exeext
31839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31840 (eval $ac_link) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
31844 { ac_try='test -s conftest$ac_exeext'
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 ac_cv_lib_shl_load_dld=yes
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855ac_cv_lib_shl_load_dld=no
31856fi
31857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31858LIBS=$ac_check_lib_save_LIBS
31859fi
31860echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31861echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31862if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31863
3a922bb4 31864 HAVE_SHL_FUNCS=1
3d63bc3a 31865 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31866
f6bcfd97
BP
31867fi
31868
e6cc62c6 31869
10f2d63a
VZ
31870fi
31871done
31872
e6cc62c6 31873
10f2d63a
VZ
31874fi
31875
e6cc62c6 31876
10f2d63a
VZ
31877fi
31878done
31879
5c6fa7d2 31880
8284b0c5 31881 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31882
31883for ac_func in dlerror
f6bcfd97 31884do
e6cc62c6
VS
31885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31886echo "$as_me:$LINENO: checking for $ac_func" >&5
31887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31888if eval "test \"\${$as_ac_var+set}\" = set"; then
31889 echo $ECHO_N "(cached) $ECHO_C" >&6
31890else
31891 cat >conftest.$ac_ext <<_ACEOF
31892#line $LINENO "configure"
31893/* confdefs.h. */
31894_ACEOF
31895cat confdefs.h >>conftest.$ac_ext
31896cat >>conftest.$ac_ext <<_ACEOF
31897/* end confdefs.h. */
f6bcfd97 31898/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31899 which can conflict with char $ac_func (); below.
31900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31901 <limits.h> exists even on freestanding compilers. */
31902#ifdef __STDC__
31903# include <limits.h>
31904#else
31905# include <assert.h>
31906#endif
f6bcfd97 31907/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31908#ifdef __cplusplus
31909extern "C"
31910{
31911#endif
f6bcfd97 31912/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31913 builtin and then its argument prototype would still apply. */
31914char $ac_func ();
f6bcfd97
BP
31915/* The GNU C library defines this for functions which it implements
31916 to always fail with ENOSYS. Some functions are actually named
31917 something starting with __ and the normal name is an alias. */
31918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31919choke me
31920#else
e6cc62c6
VS
31921char (*f) () = $ac_func;
31922#endif
31923#ifdef __cplusplus
31924}
f6bcfd97
BP
31925#endif
31926
e6cc62c6
VS
31927int
31928main ()
31929{
31930return f != $ac_func;
31931 ;
31932 return 0;
31933}
31934_ACEOF
31935rm -f conftest.$ac_objext conftest$ac_exeext
31936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31937 (eval $ac_link) 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); } &&
31941 { ac_try='test -s conftest$ac_exeext'
31942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31943 (eval $ac_try) 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
31947 eval "$as_ac_var=yes"
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952eval "$as_ac_var=no"
31953fi
31954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31955fi
31956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31958if test `eval echo '${'$as_ac_var'}'` = yes; then
31959 cat >>confdefs.h <<_ACEOF
31960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31961_ACEOF
31962 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31963#define HAVE_DLERROR 1
e6cc62c6 31964_ACEOF
f6bcfd97
BP
31965
31966else
0e012a93
VZ
31967
31968 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
31969echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31970if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31971 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31972else
e6cc62c6 31973 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31974LIBS="-ldl $LIBS"
e6cc62c6
VS
31975cat >conftest.$ac_ext <<_ACEOF
31976#line $LINENO "configure"
31977/* confdefs.h. */
31978_ACEOF
31979cat confdefs.h >>conftest.$ac_ext
31980cat >>conftest.$ac_ext <<_ACEOF
31981/* end confdefs.h. */
31982
f6bcfd97 31983/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31984#ifdef __cplusplus
31985extern "C"
31986#endif
f6bcfd97 31987/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31988 builtin and then its argument prototype would still apply. */
31989char dlerror ();
31990int
31991main ()
31992{
31993dlerror ();
31994 ;
31995 return 0;
31996}
31997_ACEOF
31998rm -f conftest.$ac_objext conftest$ac_exeext
31999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32000 (eval $ac_link) 2>&5
32001 ac_status=$?
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
32004 { ac_try='test -s conftest$ac_exeext'
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010 ac_cv_lib_dl_dlerror=yes
32011else
32012 echo "$as_me: failed program was:" >&5
32013sed 's/^/| /' conftest.$ac_ext >&5
32014
32015ac_cv_lib_dl_dlerror=no
32016fi
32017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32018LIBS=$ac_check_lib_save_LIBS
32019fi
32020echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32021echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32022if test $ac_cv_lib_dl_dlerror = yes; then
32023 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32024#define HAVE_DLERROR 1
e6cc62c6 32025_ACEOF
f6bcfd97 32026
f6bcfd97
BP
32027fi
32028
0e012a93
VZ
32029
32030
f6bcfd97
BP
32031fi
32032done
32033
3a922bb4
RL
32034 fi
32035 fi
f6bcfd97 32036
3a922bb4
RL
32037 if test "$HAVE_DL_FUNCS" = 0; then
32038 if test "$HAVE_SHL_FUNCS" = 0; then
32039 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32040 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32041echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32042 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32043 wxUSE_DYNLIB_CLASS=no
32044 else
e6cc62c6
VS
32045 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32046echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32047 fi
32048 fi
10f2d63a
VZ
32049 fi
32050 fi
32051fi
32052
0b9ab0bd 32053if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32054 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32055#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32056_ACEOF
0b9ab0bd 32057
1948bb32
VS
32058fi
32059if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32060 cat >>confdefs.h <<\_ACEOF
10f2d63a 32061#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32062_ACEOF
10f2d63a
VZ
32063
32064fi
32065
8284b0c5 32066
1e6feb95 32067if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32068 cat >>confdefs.h <<\_ACEOF
1e6feb95 32069#define wxUSE_FONTMAP 1
e6cc62c6 32070_ACEOF
1e6feb95
VZ
32071
32072fi
32073
10f2d63a 32074if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32075 cat >>confdefs.h <<\_ACEOF
10f2d63a 32076#define wxUSE_UNICODE 1
e6cc62c6 32077_ACEOF
10f2d63a 32078
8284b0c5 32079
eb854003 32080 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32081 wxUSE_UNICODE_MSLU=no
32082 fi
a72a4bfa 32083
eb854003 32084 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32085 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32086echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32087if test "${ac_cv_lib_unicows_main+set}" = set; then
32088 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32089else
e6cc62c6 32090 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32091LIBS="-lunicows $LIBS"
e6cc62c6
VS
32092cat >conftest.$ac_ext <<_ACEOF
32093#line $LINENO "configure"
32094/* confdefs.h. */
32095_ACEOF
32096cat confdefs.h >>conftest.$ac_ext
32097cat >>conftest.$ac_ext <<_ACEOF
32098/* end confdefs.h. */
a72a4bfa 32099
8284b0c5 32100
e6cc62c6
VS
32101int
32102main ()
32103{
32104main ();
32105 ;
32106 return 0;
32107}
32108_ACEOF
32109rm -f conftest.$ac_objext conftest$ac_exeext
32110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32111 (eval $ac_link) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
32115 { ac_try='test -s conftest$ac_exeext'
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; }; then
32121 ac_cv_lib_unicows_main=yes
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126ac_cv_lib_unicows_main=no
32127fi
32128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32129LIBS=$ac_check_lib_save_LIBS
32130fi
32131echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32132echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32133if test $ac_cv_lib_unicows_main = yes; then
32134
32135 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32136#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32137_ACEOF
32138
a72a4bfa 32139
a72a4bfa 32140else
a72a4bfa 32141
e6cc62c6
VS
32142 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32143 Applications will only run on Windows NT/2000/XP!" >&5
32144echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32145 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32146 wxUSE_UNICODE_MSLU=no
e6cc62c6 32147
a72a4bfa
VS
32148fi
32149
32150 fi
10f2d63a
VZ
32151fi
32152
10f2d63a 32153if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32154 cat >>confdefs.h <<\_ACEOF
10f2d63a 32155#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32156_ACEOF
10f2d63a
VZ
32157
32158fi
32159
8284b0c5 32160
10f2d63a 32161if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32162 cat >>confdefs.h <<\_ACEOF
10f2d63a 32163#define wxUSE_POSTSCRIPT 1
e6cc62c6 32164_ACEOF
10f2d63a
VZ
32165
32166fi
32167
e6cc62c6 32168cat >>confdefs.h <<\_ACEOF
10f2d63a 32169#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32170_ACEOF
10f2d63a 32171
8284b0c5 32172
e6cc62c6 32173cat >>confdefs.h <<\_ACEOF
10f2d63a 32174#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32175_ACEOF
10f2d63a 32176
8284b0c5
MB
32177
32178
10f2d63a 32179if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32180 cat >>confdefs.h <<\_ACEOF
10f2d63a 32181#define wxUSE_CONSTRAINTS 1
e6cc62c6 32182_ACEOF
10f2d63a
VZ
32183
32184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32185fi
32186
3879ecda 32187if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32188 cat >>confdefs.h <<\_ACEOF
10f2d63a 32189#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32190_ACEOF
10f2d63a 32191
1772d20c 32192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32193fi
32194
32195if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32196 cat >>confdefs.h <<\_ACEOF
10f2d63a 32197#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32198_ACEOF
10f2d63a
VZ
32199
32200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32201 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32203 fi
32204fi
32205
32206if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32207 cat >>confdefs.h <<\_ACEOF
10f2d63a 32208#define wxUSE_HELP 1
e6cc62c6 32209_ACEOF
10f2d63a
VZ
32210
32211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32212
77e13408 32213 if test "$wxUSE_MSW" = 1; then
031d8228 32214 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32215 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32216#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32217_ACEOF
29fd3c0c 32218
3e44f09d 32219 fi
3379ed37 32220 fi
031d8228
VS
32221
32222 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32223 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32224 cat >>confdefs.h <<\_ACEOF
031d8228 32225#define wxUSE_WXHTML_HELP 1
e6cc62c6 32226_ACEOF
031d8228
VS
32227
32228 else
e6cc62c6
VS
32229 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32230echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32231 wxUSE_WXHTML_HELP=no
32232 fi
32233 fi
10f2d63a
VZ
32234fi
32235
32236if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32237 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32238 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32239echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32240 else
e6cc62c6 32241 cat >>confdefs.h <<\_ACEOF
10f2d63a 32242#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32243_ACEOF
10f2d63a
VZ
32244
32245 fi
32246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32247fi
32248
e6cc62c6
VS
32249if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32250 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32251echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32252 { (exit 1); exit 1; }; }
32253fi
32254
32255
32256if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32257 -o "$wxUSE_CLIPBOARD" = "yes" \
32258 -o "$wxUSE_OLE" = "yes" \
32259 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32260
32261for ac_header in ole2.h
32262do
32263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32264if eval "test \"\${$as_ac_Header+set}\" = set"; then
32265 echo "$as_me:$LINENO: checking for $ac_header" >&5
32266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32267if eval "test \"\${$as_ac_Header+set}\" = set"; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32269fi
32270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32272else
32273 # Is the header compilable?
32274echo "$as_me:$LINENO: checking $ac_header usability" >&5
32275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32276cat >conftest.$ac_ext <<_ACEOF
32277#line $LINENO "configure"
32278/* confdefs.h. */
32279_ACEOF
32280cat confdefs.h >>conftest.$ac_ext
32281cat >>conftest.$ac_ext <<_ACEOF
32282/* end confdefs.h. */
32283$ac_includes_default
32284#include <$ac_header>
32285_ACEOF
32286rm -f conftest.$ac_objext
32287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32288 (eval $ac_compile) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); } &&
32292 { ac_try='test -s conftest.$ac_objext'
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 ac_header_compiler=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303ac_header_compiler=no
32304fi
32305rm -f conftest.$ac_objext conftest.$ac_ext
32306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32307echo "${ECHO_T}$ac_header_compiler" >&6
32308
32309# Is the header present?
32310echo "$as_me:$LINENO: checking $ac_header presence" >&5
32311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32312cat >conftest.$ac_ext <<_ACEOF
32313#line $LINENO "configure"
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
32319#include <$ac_header>
32320_ACEOF
32321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32323 ac_status=$?
32324 grep -v '^ *+' conftest.er1 >conftest.err
32325 rm -f conftest.er1
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } >/dev/null; then
32329 if test -s conftest.err; then
32330 ac_cpp_err=$ac_c_preproc_warn_flag
32331 else
32332 ac_cpp_err=
32333 fi
32334else
32335 ac_cpp_err=yes
32336fi
32337if test -z "$ac_cpp_err"; then
32338 ac_header_preproc=yes
32339else
32340 echo "$as_me: failed program was:" >&5
32341sed 's/^/| /' conftest.$ac_ext >&5
32342
32343 ac_header_preproc=no
32344fi
32345rm -f conftest.err conftest.$ac_ext
32346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32347echo "${ECHO_T}$ac_header_preproc" >&6
32348
32349# So? What about this header?
32350case $ac_header_compiler:$ac_header_preproc in
32351 yes:no )
32352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32356 (
32357 cat <<\_ASBOX
32358## ------------------------------------ ##
32359## Report this to bug-autoconf@gnu.org. ##
32360## ------------------------------------ ##
32361_ASBOX
32362 ) |
32363 sed "s/^/$as_me: WARNING: /" >&2
32364 ;;
32365 no:yes )
32366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32372 (
32373 cat <<\_ASBOX
32374## ------------------------------------ ##
32375## Report this to bug-autoconf@gnu.org. ##
32376## ------------------------------------ ##
32377_ASBOX
32378 ) |
32379 sed "s/^/$as_me: WARNING: /" >&2
32380 ;;
32381esac
32382echo "$as_me:$LINENO: checking for $ac_header" >&5
32383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32384if eval "test \"\${$as_ac_Header+set}\" = set"; then
32385 echo $ECHO_N "(cached) $ECHO_C" >&6
32386else
32387 eval "$as_ac_Header=$ac_header_preproc"
32388fi
32389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32391
10f2d63a 32392fi
e6cc62c6
VS
32393if test `eval echo '${'$as_ac_Header'}'` = yes; then
32394 cat >>confdefs.h <<_ACEOF
32395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32396_ACEOF
10f2d63a 32397
10f2d63a 32398fi
e6cc62c6 32399
10f2d63a
VZ
32400done
32401
8284b0c5 32402
2b9bdf71
VZ
32403 if test "$ac_cv_header_ole2_h" = "yes" ; then
32404 if test "$GCC" = yes ; then
8284b0c5
MB
32405
32406
e6cc62c6
VS
32407 ac_ext=cc
32408ac_cpp='$CXXCPP $CPPFLAGS'
32409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32412
32413
32414 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32415echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32416 cat >conftest.$ac_ext <<_ACEOF
32417#line $LINENO "configure"
32418/* confdefs.h. */
32419_ACEOF
32420cat confdefs.h >>conftest.$ac_ext
32421cat >>conftest.$ac_ext <<_ACEOF
32422/* end confdefs.h. */
8284b0c5
MB
32423#include <windows.h>
32424 #include <ole2.h>
e6cc62c6
VS
32425int
32426main ()
32427{
8284b0c5 32428
e6cc62c6
VS
32429 ;
32430 return 0;
32431}
32432_ACEOF
32433rm -f conftest.$ac_objext
32434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32435 (eval $ac_compile) 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } &&
32439 { ac_try='test -s conftest.$ac_objext'
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32442 ac_status=$?
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; }; then
32445 echo "$as_me:$LINENO: result: no" >&5
32446echo "${ECHO_T}no" >&6
32447else
32448 echo "$as_me: failed program was:" >&5
32449sed 's/^/| /' conftest.$ac_ext >&5
32450
32451echo "$as_me:$LINENO: result: yes" >&5
32452echo "${ECHO_T}yes" >&6
8284b0c5
MB
32453 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32454fi
e6cc62c6 32455rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32456 ac_ext=c
8284b0c5 32457ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32460ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32461
2b9bdf71 32462 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32463 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32464 cat >>confdefs.h <<\_ACEOF
4f11a343 32465#define wxUSE_OLE 1
e6cc62c6 32466_ACEOF
4f11a343 32467
8284b0c5 32468
2b9bdf71
VZ
32469 fi
32470
e6cc62c6 32471 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32472#define wxUSE_DATAOBJ 1
e6cc62c6 32473_ACEOF
2b9bdf71
VZ
32474
32475 else
e6cc62c6
VS
32476 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32477echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32478
32479 wxUSE_CLIPBOARD=no
32480 wxUSE_DRAG_AND_DROP=no
32481 wxUSE_DATAOBJ=no
3bce6687
JS
32482 wxUSE_OLE=no
32483 fi
32484
32485 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32486 cat >>confdefs.h <<\_ACEOF
3bce6687 32487#define wxUSE_METAFILE 1
e6cc62c6 32488_ACEOF
3bce6687
JS
32489
32490
e6cc62c6 32491 cat >>confdefs.h <<\_ACEOF
3bce6687 32492#define wxUSE_ENH_METAFILE 1
e6cc62c6 32493_ACEOF
3bce6687
JS
32494
32495 fi
32496fi
32497
2b9bdf71
VZ
32498if test "$wxUSE_IPC" = "yes"; then
32499 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32500 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32501echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32502 fi
32503
e6cc62c6 32504 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32505#define wxUSE_IPC 1
e6cc62c6 32506_ACEOF
2b9bdf71
VZ
32507
32508fi
32509
32510if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32511 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32512 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32513echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32514 wxUSE_CLIPBOARD=no
32515 fi
32516
32517 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32518 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32519#define wxUSE_CLIPBOARD 1
e6cc62c6 32520_ACEOF
2b9bdf71 32521
8284b0c5 32522
e6cc62c6 32523 cat >>confdefs.h <<\_ACEOF
673f4220 32524#define wxUSE_DATAOBJ 1
e6cc62c6 32525_ACEOF
673f4220 32526
6c657b52 32527 fi
2b9bdf71
VZ
32528fi
32529
32530if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32531 if test "$wxUSE_GTK" = 1; then
32532 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32533 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32534echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32535 wxUSE_DRAG_AND_DROP=no
32536 fi
32537 fi
32538
2b9bdf71 32539 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32540 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32541echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32542 wxUSE_DRAG_AND_DROP=no
32543 fi
32544
f79bd02d 32545 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32546 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32547echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32548 wxUSE_DRAG_AND_DROP=no
32549 fi
32550
6c657b52 32551 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32552 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32553echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32554 wxUSE_DRAG_AND_DROP=no
32555 fi
32556
10f2d63a 32557 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32558 cat >>confdefs.h <<\_ACEOF
10f2d63a 32559#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32560_ACEOF
10f2d63a
VZ
32561
32562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32563 fi
32564
32565fi
32566
32567if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32568 cat >>confdefs.h <<\_ACEOF
10f2d63a 32569#define wxUSE_SPLINES 1
e6cc62c6 32570_ACEOF
10f2d63a
VZ
32571
32572fi
32573
8284b0c5 32574
1e6feb95
VZ
32575USES_CONTROLS=0
32576if test "$wxUSE_CONTROLS" = "yes"; then
32577 USES_CONTROLS=1
32578fi
32579
10f2d63a 32580if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32581 cat >>confdefs.h <<\_ACEOF
10f2d63a 32582#define wxUSE_ACCEL 1
e6cc62c6 32583_ACEOF
10f2d63a 32584
1e6feb95
VZ
32585 USES_CONTROLS=1
32586fi
32587
32588if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32589 cat >>confdefs.h <<\_ACEOF
1e6feb95 32590#define wxUSE_BUTTON 1
e6cc62c6 32591_ACEOF
1e6feb95
VZ
32592
32593 USES_CONTROLS=1
32594fi
32595
32596if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32597 cat >>confdefs.h <<\_ACEOF
1e6feb95 32598#define wxUSE_BMPBUTTON 1
e6cc62c6 32599_ACEOF
1e6feb95
VZ
32600
32601 USES_CONTROLS=1
32602fi
32603
32604if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32605 cat >>confdefs.h <<\_ACEOF
1e6feb95 32606#define wxUSE_CALENDARCTRL 1
e6cc62c6 32607_ACEOF
1e6feb95
VZ
32608
32609 USES_CONTROLS=1
32610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32611fi
32612
32613if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32614 cat >>confdefs.h <<\_ACEOF
10f2d63a 32615#define wxUSE_CARET 1
e6cc62c6 32616_ACEOF
10f2d63a 32617
1e6feb95 32618 USES_CONTROLS=1
10f2d63a
VZ
32619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32620fi
32621
32622if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32623 cat >>confdefs.h <<\_ACEOF
10f2d63a 32624#define wxUSE_COMBOBOX 1
e6cc62c6 32625_ACEOF
10f2d63a 32626
1e6feb95 32627 USES_CONTROLS=1
10f2d63a
VZ
32628fi
32629
32630if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32631 cat >>confdefs.h <<\_ACEOF
10f2d63a 32632#define wxUSE_CHOICE 1
e6cc62c6 32633_ACEOF
10f2d63a 32634
1e6feb95 32635 USES_CONTROLS=1
10f2d63a
VZ
32636fi
32637
32638if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32639 cat >>confdefs.h <<\_ACEOF
10f2d63a 32640#define wxUSE_CHECKBOX 1
e6cc62c6 32641_ACEOF
10f2d63a 32642
1e6feb95 32643 USES_CONTROLS=1
10f2d63a
VZ
32644fi
32645
32646if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32647 cat >>confdefs.h <<\_ACEOF
10f2d63a 32648#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32649_ACEOF
10f2d63a 32650
1e6feb95 32651 USES_CONTROLS=1
10f2d63a
VZ
32652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32653fi
32654
da494b40 32655if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32656 cat >>confdefs.h <<\_ACEOF
da494b40 32657#define wxUSE_DISPLAY 1
e6cc62c6 32658_ACEOF
da494b40
MB
32659
32660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32661fi
32662
10f2d63a 32663if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32664 cat >>confdefs.h <<\_ACEOF
10f2d63a 32665#define wxUSE_GAUGE 1
e6cc62c6 32666_ACEOF
10f2d63a 32667
1e6feb95 32668 USES_CONTROLS=1
10f2d63a
VZ
32669fi
32670
d6a55c4b 32671if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32672 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32673#define wxUSE_GRID 1
e6cc62c6 32674_ACEOF
10f2d63a 32675
1e6feb95 32676 USES_CONTROLS=1
d6a55c4b 32677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32678fi
32679
32680if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32681 cat >>confdefs.h <<\_ACEOF
10f2d63a 32682#define wxUSE_IMAGLIST 1
e6cc62c6 32683_ACEOF
10f2d63a
VZ
32684
32685fi
32686
0e012a93
VZ
32687if test "$wxUSE_LISTBOOK" = "yes"; then
32688 cat >>confdefs.h <<\_ACEOF
32689#define wxUSE_LISTBOOK 1
32690_ACEOF
32691
32692 USES_CONTROLS=1
32693fi
32694
10f2d63a 32695if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32696 cat >>confdefs.h <<\_ACEOF
10f2d63a 32697#define wxUSE_LISTBOX 1
e6cc62c6 32698_ACEOF
10f2d63a 32699
1e6feb95 32700 USES_CONTROLS=1
10f2d63a
VZ
32701fi
32702
32703if test "$wxUSE_LISTCTRL" = "yes"; then
32704 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32705 cat >>confdefs.h <<\_ACEOF
10f2d63a 32706#define wxUSE_LISTCTRL 1
e6cc62c6 32707_ACEOF
10f2d63a 32708
1e6feb95 32709 USES_CONTROLS=1
10f2d63a
VZ
32710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32711 else
e6cc62c6
VS
32712 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32713echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32714 fi
32715fi
32716
32717if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32718 cat >>confdefs.h <<\_ACEOF
10f2d63a 32719#define wxUSE_NOTEBOOK 1
e6cc62c6 32720_ACEOF
10f2d63a 32721
1e6feb95 32722 USES_CONTROLS=1
10f2d63a
VZ
32723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32724fi
32725
24176f2c 32726
10f2d63a 32727if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32728 cat >>confdefs.h <<\_ACEOF
10f2d63a 32729#define wxUSE_RADIOBOX 1
e6cc62c6 32730_ACEOF
10f2d63a 32731
1e6feb95 32732 USES_CONTROLS=1
10f2d63a
VZ
32733fi
32734
32735if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32736 cat >>confdefs.h <<\_ACEOF
10f2d63a 32737#define wxUSE_RADIOBTN 1
e6cc62c6 32738_ACEOF
10f2d63a 32739
1e6feb95 32740 USES_CONTROLS=1
10f2d63a
VZ
32741fi
32742
32743if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32744 cat >>confdefs.h <<\_ACEOF
10f2d63a 32745#define wxUSE_SASH 1
e6cc62c6 32746_ACEOF
10f2d63a
VZ
32747
32748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32749fi
32750
32751if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32752 cat >>confdefs.h <<\_ACEOF
10f2d63a 32753#define wxUSE_SCROLLBAR 1
e6cc62c6 32754_ACEOF
10f2d63a 32755
1e6feb95 32756 USES_CONTROLS=1
741a9306 32757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32758fi
32759
32760if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32761 cat >>confdefs.h <<\_ACEOF
10f2d63a 32762#define wxUSE_SLIDER 1
e6cc62c6 32763_ACEOF
10f2d63a 32764
1e6feb95 32765 USES_CONTROLS=1
10f2d63a
VZ
32766fi
32767
32768if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32769 cat >>confdefs.h <<\_ACEOF
10f2d63a 32770#define wxUSE_SPINBTN 1
e6cc62c6 32771_ACEOF
10f2d63a 32772
1e6feb95 32773 USES_CONTROLS=1
10f2d63a
VZ
32774fi
32775
56cfaa52 32776if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32777 cat >>confdefs.h <<\_ACEOF
56cfaa52 32778#define wxUSE_SPINCTRL 1
e6cc62c6 32779_ACEOF
56cfaa52 32780
1e6feb95 32781 USES_CONTROLS=1
56cfaa52
RR
32782fi
32783
10f2d63a 32784if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32785 cat >>confdefs.h <<\_ACEOF
10f2d63a 32786#define wxUSE_SPLITTER 1
e6cc62c6 32787_ACEOF
10f2d63a
VZ
32788
32789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32790fi
32791
32792if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
10f2d63a 32794#define wxUSE_STATBMP 1
e6cc62c6 32795_ACEOF
10f2d63a 32796
1e6feb95 32797 USES_CONTROLS=1
10f2d63a
VZ
32798fi
32799
32800if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32801 cat >>confdefs.h <<\_ACEOF
10f2d63a 32802#define wxUSE_STATBOX 1
e6cc62c6 32803_ACEOF
10f2d63a 32804
1e6feb95
VZ
32805 USES_CONTROLS=1
32806fi
32807
32808if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32809 cat >>confdefs.h <<\_ACEOF
1e6feb95 32810#define wxUSE_STATTEXT 1
e6cc62c6 32811_ACEOF
1e6feb95
VZ
32812
32813 USES_CONTROLS=1
10f2d63a
VZ
32814fi
32815
32816if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32817 cat >>confdefs.h <<\_ACEOF
10f2d63a 32818#define wxUSE_STATLINE 1
e6cc62c6 32819_ACEOF
10f2d63a 32820
89e6bf6d 32821 USES_CONTROLS=1
10f2d63a
VZ
32822fi
32823
32824if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32825 cat >>confdefs.h <<\_ACEOF
10f2d63a 32826#define wxUSE_STATUSBAR 1
e6cc62c6 32827_ACEOF
10f2d63a 32828
1e6feb95 32829 USES_CONTROLS=1
698dcdb6 32830
2286341c 32831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32832fi
32833
32834if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_TAB_DIALOG 1
e6cc62c6 32837_ACEOF
10f2d63a
VZ
32838
32839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32840fi
32841
1e6feb95 32842if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32843 cat >>confdefs.h <<\_ACEOF
1e6feb95 32844#define wxUSE_TEXTCTRL 1
e6cc62c6 32845_ACEOF
1e6feb95
VZ
32846
32847 USES_CONTROLS=1
32848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32849fi
32850
1db8dc4a 32851if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32852 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32853 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32854echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32855 wxUSE_TOGGLEBTN=no
32856 fi
32857 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32858 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32859echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32860 wxUSE_TOGGLEBTN=no
32861 fi
32862
32863 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32864 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32865#define wxUSE_TOGGLEBTN 1
e6cc62c6 32866_ACEOF
1db8dc4a 32867
1e6feb95 32868 USES_CONTROLS=1
a45d7ab7 32869 fi
1db8dc4a
VZ
32870fi
32871
360d6699 32872if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32873 cat >>confdefs.h <<\_ACEOF
360d6699 32874#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32875_ACEOF
360d6699
VZ
32876
32877 wxUSE_TOOLBAR="yes"
1e6feb95 32878 USES_CONTROLS=1
360d6699
VZ
32879fi
32880
10f2d63a 32881if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32882 cat >>confdefs.h <<\_ACEOF
10f2d63a 32883#define wxUSE_TOOLBAR 1
e6cc62c6 32884_ACEOF
10f2d63a 32885
1e6feb95 32886 USES_CONTROLS=1
698dcdb6 32887
360d6699
VZ
32888 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32889 wxUSE_TOOLBAR_NATIVE="yes"
32890 fi
32891
1e6feb95 32892 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32893 cat >>confdefs.h <<\_ACEOF
360d6699 32894#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32895_ACEOF
360d6699 32896
1e6feb95
VZ
32897 USES_CONTROLS=1
32898 fi
32899
32900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32901fi
32902
10f2d63a
VZ
32903if test "$wxUSE_TOOLTIPS" = "yes"; then
32904 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32905 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32906echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32907 else
89e6bf6d 32908 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32909 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32910echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32911 else
e6cc62c6 32912 cat >>confdefs.h <<\_ACEOF
10f2d63a 32913#define wxUSE_TOOLTIPS 1
e6cc62c6 32914_ACEOF
10f2d63a
VZ
32915
32916 fi
32917 fi
32918fi
32919
32920if test "$wxUSE_TREECTRL" = "yes"; then
32921 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32922 cat >>confdefs.h <<\_ACEOF
10f2d63a 32923#define wxUSE_TREECTRL 1
e6cc62c6 32924_ACEOF
10f2d63a 32925
1e6feb95 32926 USES_CONTROLS=1
10f2d63a
VZ
32927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32928 else
e6cc62c6
VS
32929 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32930echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32931 fi
32932fi
32933
9f41d601 32934if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32935 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32936 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32937echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32938 else
485cf710 32939 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32940 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32941echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32942 else
3c011993 32943 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32944 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32945echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32946 else
e6cc62c6 32947 cat >>confdefs.h <<\_ACEOF
9f41d601 32948#define wxUSE_POPUPWIN 1
e6cc62c6 32949_ACEOF
9f41d601 32950
8284b0c5 32951
3c011993
VZ
32952 USES_CONTROLS=1
32953 fi
485cf710 32954 fi
6abe4b65 32955 fi
9f41d601
RR
32956fi
32957
dd964dcc 32958if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32959 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32960 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32961echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32962 else
e6cc62c6 32963 cat >>confdefs.h <<\_ACEOF
dd964dcc 32964#define wxUSE_TIPWINDOW 1
e6cc62c6 32965_ACEOF
dd964dcc 32966
3c011993 32967 fi
dd964dcc
VZ
32968fi
32969
1e6feb95 32970if test "$USES_CONTROLS" = 1; then
e6cc62c6 32971 cat >>confdefs.h <<\_ACEOF
1e6feb95 32972#define wxUSE_CONTROLS 1
e6cc62c6 32973_ACEOF
10f2d63a 32974
10f2d63a
VZ
32975fi
32976
8284b0c5 32977
1e6feb95 32978
24fd6d87 32979if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32980 cat >>confdefs.h <<\_ACEOF
24fd6d87 32981#define wxUSE_DRAGIMAGE 1
e6cc62c6 32982_ACEOF
24fd6d87
VZ
32983
32984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32985fi
32986
7bb2947d 32987if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32988 cat >>confdefs.h <<\_ACEOF
7bb2947d 32989#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32990_ACEOF
7bb2947d
MB
32991
32992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32993fi
32994
1e6feb95 32995if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32996 cat >>confdefs.h <<\_ACEOF
1e6feb95 32997#define wxUSE_MENUS 1
e6cc62c6 32998_ACEOF
10f2d63a 32999
1e6feb95 33000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33001fi
33002
1e6feb95 33003if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33004 cat >>confdefs.h <<\_ACEOF
1e6feb95 33005#define wxUSE_METAFILE 1
e6cc62c6 33006_ACEOF
10f2d63a 33007
10f2d63a
VZ
33008fi
33009
1e6feb95 33010if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33011 cat >>confdefs.h <<\_ACEOF
1e6feb95 33012#define wxUSE_MIMETYPE 1
e6cc62c6 33013_ACEOF
10f2d63a 33014
10f2d63a
VZ
33015fi
33016
3e44f09d 33017if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33018 cat >>confdefs.h <<\_ACEOF
3e44f09d 33019#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33020_ACEOF
3e44f09d 33021
131f235d
VS
33022if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33023 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
33024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33025fi
33026
3e44f09d
VZ
33027fi
33028
10f2d63a 33029if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33030 cat >>confdefs.h <<\_ACEOF
10f2d63a 33031#define wxUSE_MINIFRAME 1
e6cc62c6 33032_ACEOF
10f2d63a
VZ
33033
33034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33035fi
33036
4d264332 33037USE_HTML=0
10f2d63a 33038if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33039 cat >>confdefs.h <<\_ACEOF
10f2d63a 33040#define wxUSE_HTML 1
e6cc62c6 33041_ACEOF
10f2d63a 33042
4d264332 33043 USE_HTML=1
c74dc163 33044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33045fi
33046
33047if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33048 cat >>confdefs.h <<\_ACEOF
1e487827 33049#define wxUSE_VALIDATORS 1
e6cc62c6 33050_ACEOF
703e0a69 33051
698dcdb6
VZ
33052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33053fi
33054
edae8572 33055if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33056 cat >>confdefs.h <<\_ACEOF
edae8572 33057#define wxUSE_PALETTE 1
e6cc62c6 33058_ACEOF
edae8572
VZ
33059
33060fi
33061
698dcdb6 33062if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33063 cat >>confdefs.h <<\_ACEOF
698dcdb6 33064#define wxUSE_IMAGE 1
e6cc62c6 33065_ACEOF
698dcdb6
VZ
33066
33067fi
33068
33069if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33070 cat >>confdefs.h <<\_ACEOF
698dcdb6 33071#define wxUSE_GIF 1
e6cc62c6 33072_ACEOF
698dcdb6
VZ
33073
33074fi
33075
33076if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33077 cat >>confdefs.h <<\_ACEOF
698dcdb6 33078#define wxUSE_PCX 1
e6cc62c6 33079_ACEOF
698dcdb6
VZ
33080
33081fi
33082
4b6b4dfc 33083if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33084 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33085#define wxUSE_IFF 1
e6cc62c6 33086_ACEOF
4b6b4dfc
RR
33087
33088fi
33089
698dcdb6 33090if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33091 cat >>confdefs.h <<\_ACEOF
698dcdb6 33092#define wxUSE_PNM 1
e6cc62c6 33093_ACEOF
698dcdb6
VZ
33094
33095fi
33096
33097if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33098 cat >>confdefs.h <<\_ACEOF
698dcdb6 33099#define wxUSE_XPM 1
e6cc62c6 33100_ACEOF
698dcdb6
VZ
33101
33102fi
33103
658974ae 33104if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33105 cat >>confdefs.h <<\_ACEOF
658974ae 33106#define wxUSE_ICO_CUR 1
e6cc62c6 33107_ACEOF
658974ae
VS
33108
33109fi
33110
a72a4bfa
VS
33111if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33112 LIBS=" -lunicows $LIBS"
33113fi
33114
8284b0c5 33115
1e6feb95 33116if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33117 cat >>confdefs.h <<\_ACEOF
1e6feb95 33118#define wxUSE_CHOICEDLG 1
e6cc62c6 33119_ACEOF
1e6feb95
VZ
33120
33121fi
33122
33123if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33124 cat >>confdefs.h <<\_ACEOF
1e6feb95 33125#define wxUSE_COLOURDLG 1
e6cc62c6 33126_ACEOF
1e6feb95
VZ
33127
33128fi
33129
33130if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33131 cat >>confdefs.h <<\_ACEOF
1e6feb95 33132#define wxUSE_FILEDLG 1
e6cc62c6 33133_ACEOF
1e6feb95
VZ
33134
33135fi
33136
8db37e06 33137if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33138 cat >>confdefs.h <<\_ACEOF
8db37e06 33139#define wxUSE_FINDREPLDLG 1
e6cc62c6 33140_ACEOF
8db37e06
VZ
33141
33142fi
33143
1e6feb95 33144if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33145 cat >>confdefs.h <<\_ACEOF
1e6feb95 33146#define wxUSE_FONTDLG 1
e6cc62c6 33147_ACEOF
1e6feb95
VZ
33148
33149fi
33150
33151if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33152 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33153 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33154echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33155 else
e6cc62c6 33156 cat >>confdefs.h <<\_ACEOF
1e6feb95 33157#define wxUSE_DIRDLG 1
e6cc62c6 33158_ACEOF
1e6feb95 33159
1e6feb95
VZ
33160 fi
33161fi
33162
33163if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33164 cat >>confdefs.h <<\_ACEOF
1e6feb95 33165#define wxUSE_MSGDLG 1
e6cc62c6 33166_ACEOF
1e6feb95
VZ
33167
33168fi
33169
33170if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33171 cat >>confdefs.h <<\_ACEOF
1e6feb95 33172#define wxUSE_NUMBERDLG 1
e6cc62c6 33173_ACEOF
1e6feb95
VZ
33174
33175fi
33176
33177if test "$wxUSE_PROGRESSDLG" = "yes"; then
33178 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33179 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33180echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33181 else
e6cc62c6 33182 cat >>confdefs.h <<\_ACEOF
1e6feb95 33183#define wxUSE_PROGRESSDLG 1
e6cc62c6 33184_ACEOF
1e6feb95
VZ
33185
33186 fi
33187fi
33188
cbca9943 33189if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33190 cat >>confdefs.h <<\_ACEOF
cbca9943 33191#define wxUSE_SPLASH 1
e6cc62c6 33192_ACEOF
cbca9943
VZ
33193
33194fi
33195
1e6feb95
VZ
33196if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33197 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33198 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33199echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33200 else
e6cc62c6 33201 cat >>confdefs.h <<\_ACEOF
1e6feb95 33202#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33203_ACEOF
1e6feb95 33204
7b4a847f
RR
33205 fi
33206fi
579d8138 33207
8284b0c5 33208if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33209 cat >>confdefs.h <<\_ACEOF
8284b0c5 33210#define wxUSE_TEXTDLG 1
e6cc62c6 33211_ACEOF
8284b0c5
MB
33212
33213fi
33214
33215if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33216 cat >>confdefs.h <<\_ACEOF
8284b0c5 33217#define wxUSE_WIZARDDLG 1
e6cc62c6 33218_ACEOF
8284b0c5
MB
33219
33220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33221fi
33222
33223
33224if test "$cross_compiling" = "yes"; then
33225 OSINFO="\"$host\""
33226else
33227 OSINFO=`uname -s -r -m`
33228 OSINFO="\"$OSINFO\""
33229fi
33230
e6cc62c6 33231cat >>confdefs.h <<_ACEOF
8284b0c5 33232#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33233_ACEOF
8284b0c5
MB
33234
33235
33236
33237if test "x$prefix" != "xNONE"; then
33238 wxPREFIX=$prefix
33239else
33240 wxPREFIX=$ac_default_prefix
33241fi
33242
e6cc62c6 33243cat >>confdefs.h <<_ACEOF
8284b0c5 33244#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33245_ACEOF
8284b0c5
MB
33246
33247
e6cc62c6 33248top_builddir_wxconfig=`pwd`
52c71b80 33249
8284b0c5
MB
33250
33251
edd891e2
VS
33252CORE_BASE_LIBS="net base"
33253CORE_GUI_LIBS="adv core"
33254
33255if test "$wxUSE_XML" = "yes" ; then
33256 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33257fi
45293562
VS
33258if test "$wxUSE_ODBC" != "no" ; then
33259 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33260 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33261fi
33262if test "$wxUSE_HTML" = "yes" ; then
33263 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33264fi
33265
33266
33267
33268
33269
33270
33271
8284b0c5
MB
33272
33273if test "$wxUSE_MAC" = 1 ; then
33274 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33275fi
ac0c4cc3
DE
33276if test "$wxUSE_COCOA" = 1 ; then
33277 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33278fi
8284b0c5
MB
33279
33280
2b5f62a0
VZ
33281LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33282
33283have_cos=0
33284have_floor=0
e6cc62c6 33285
2b5f62a0
VZ
33286for ac_func in cos
33287do
e6cc62c6
VS
33288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33289echo "$as_me:$LINENO: checking for $ac_func" >&5
33290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33291if eval "test \"\${$as_ac_var+set}\" = set"; then
33292 echo $ECHO_N "(cached) $ECHO_C" >&6
33293else
33294 cat >conftest.$ac_ext <<_ACEOF
33295#line $LINENO "configure"
33296/* confdefs.h. */
33297_ACEOF
33298cat confdefs.h >>conftest.$ac_ext
33299cat >>conftest.$ac_ext <<_ACEOF
33300/* end confdefs.h. */
2b5f62a0 33301/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33302 which can conflict with char $ac_func (); below.
33303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33304 <limits.h> exists even on freestanding compilers. */
33305#ifdef __STDC__
33306# include <limits.h>
33307#else
33308# include <assert.h>
33309#endif
2b5f62a0 33310/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33311#ifdef __cplusplus
33312extern "C"
33313{
33314#endif
2b5f62a0 33315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33316 builtin and then its argument prototype would still apply. */
33317char $ac_func ();
2b5f62a0
VZ
33318/* The GNU C library defines this for functions which it implements
33319 to always fail with ENOSYS. Some functions are actually named
33320 something starting with __ and the normal name is an alias. */
33321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33322choke me
33323#else
e6cc62c6
VS
33324char (*f) () = $ac_func;
33325#endif
33326#ifdef __cplusplus
33327}
2b5f62a0
VZ
33328#endif
33329
e6cc62c6
VS
33330int
33331main ()
33332{
33333return f != $ac_func;
33334 ;
33335 return 0;
33336}
33337_ACEOF
33338rm -f conftest.$ac_objext conftest$ac_exeext
33339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33340 (eval $ac_link) 2>&5
33341 ac_status=$?
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } &&
33344 { ac_try='test -s conftest$ac_exeext'
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33347 ac_status=$?
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; }; then
33350 eval "$as_ac_var=yes"
33351else
33352 echo "$as_me: failed program was:" >&5
33353sed 's/^/| /' conftest.$ac_ext >&5
33354
33355eval "$as_ac_var=no"
33356fi
33357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33358fi
33359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33361if test `eval echo '${'$as_ac_var'}'` = yes; then
33362 cat >>confdefs.h <<_ACEOF
33363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33364_ACEOF
2b5f62a0 33365 have_cos=1
2b5f62a0
VZ
33366fi
33367done
33368
e6cc62c6 33369
2b5f62a0
VZ
33370for ac_func in floor
33371do
e6cc62c6
VS
33372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33373echo "$as_me:$LINENO: checking for $ac_func" >&5
33374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33375if eval "test \"\${$as_ac_var+set}\" = set"; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
33377else
33378 cat >conftest.$ac_ext <<_ACEOF
33379#line $LINENO "configure"
33380/* confdefs.h. */
33381_ACEOF
33382cat confdefs.h >>conftest.$ac_ext
33383cat >>conftest.$ac_ext <<_ACEOF
33384/* end confdefs.h. */
2b5f62a0 33385/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33386 which can conflict with char $ac_func (); below.
33387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33388 <limits.h> exists even on freestanding compilers. */
33389#ifdef __STDC__
33390# include <limits.h>
33391#else
33392# include <assert.h>
33393#endif
2b5f62a0 33394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33395#ifdef __cplusplus
33396extern "C"
33397{
33398#endif
2b5f62a0 33399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33400 builtin and then its argument prototype would still apply. */
33401char $ac_func ();
2b5f62a0
VZ
33402/* The GNU C library defines this for functions which it implements
33403 to always fail with ENOSYS. Some functions are actually named
33404 something starting with __ and the normal name is an alias. */
33405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33406choke me
33407#else
e6cc62c6
VS
33408char (*f) () = $ac_func;
33409#endif
33410#ifdef __cplusplus
33411}
2b5f62a0
VZ
33412#endif
33413
e6cc62c6
VS
33414int
33415main ()
33416{
33417return f != $ac_func;
33418 ;
33419 return 0;
33420}
33421_ACEOF
33422rm -f conftest.$ac_objext conftest$ac_exeext
33423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33424 (eval $ac_link) 2>&5
33425 ac_status=$?
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); } &&
33428 { ac_try='test -s conftest$ac_exeext'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434 eval "$as_ac_var=yes"
33435else
33436 echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
33439eval "$as_ac_var=no"
33440fi
33441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33442fi
33443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33445if test `eval echo '${'$as_ac_var'}'` = yes; then
33446 cat >>confdefs.h <<_ACEOF
33447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33448_ACEOF
2b5f62a0 33449 have_floor=1
2b5f62a0
VZ
33450fi
33451done
33452
e6cc62c6
VS
33453echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33454echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33455if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33456 echo "$as_me:$LINENO: result: yes" >&5
33457echo "${ECHO_T}yes" >&6
2b5f62a0 33458else
e6cc62c6
VS
33459 echo "$as_me:$LINENO: result: no" >&5
33460echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33461 LIBS="$LIBS -lm"
33462 # use different functions to avoid configure caching
33463 have_sin=0
33464 have_ceil=0
e6cc62c6
VS
33465
33466for ac_func in sin
2b5f62a0 33467do
e6cc62c6
VS
33468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33469echo "$as_me:$LINENO: checking for $ac_func" >&5
33470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33471if eval "test \"\${$as_ac_var+set}\" = set"; then
33472 echo $ECHO_N "(cached) $ECHO_C" >&6
33473else
33474 cat >conftest.$ac_ext <<_ACEOF
33475#line $LINENO "configure"
33476/* confdefs.h. */
33477_ACEOF
33478cat confdefs.h >>conftest.$ac_ext
33479cat >>conftest.$ac_ext <<_ACEOF
33480/* end confdefs.h. */
2b5f62a0 33481/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33482 which can conflict with char $ac_func (); below.
33483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33484 <limits.h> exists even on freestanding compilers. */
33485#ifdef __STDC__
33486# include <limits.h>
33487#else
33488# include <assert.h>
33489#endif
2b5f62a0 33490/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33491#ifdef __cplusplus
33492extern "C"
33493{
33494#endif
2b5f62a0 33495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33496 builtin and then its argument prototype would still apply. */
33497char $ac_func ();
2b5f62a0
VZ
33498/* The GNU C library defines this for functions which it implements
33499 to always fail with ENOSYS. Some functions are actually named
33500 something starting with __ and the normal name is an alias. */
33501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33502choke me
33503#else
e6cc62c6
VS
33504char (*f) () = $ac_func;
33505#endif
33506#ifdef __cplusplus
33507}
2b5f62a0
VZ
33508#endif
33509
e6cc62c6
VS
33510int
33511main ()
33512{
33513return f != $ac_func;
33514 ;
33515 return 0;
33516}
33517_ACEOF
33518rm -f conftest.$ac_objext conftest$ac_exeext
33519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33520 (eval $ac_link) 2>&5
33521 ac_status=$?
33522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523 (exit $ac_status); } &&
33524 { ac_try='test -s conftest$ac_exeext'
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33527 ac_status=$?
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; }; then
33530 eval "$as_ac_var=yes"
33531else
33532 echo "$as_me: failed program was:" >&5
33533sed 's/^/| /' conftest.$ac_ext >&5
33534
33535eval "$as_ac_var=no"
33536fi
33537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33538fi
33539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33541if test `eval echo '${'$as_ac_var'}'` = yes; then
33542 cat >>confdefs.h <<_ACEOF
33543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33544_ACEOF
2b5f62a0 33545 have_sin=1
2b5f62a0
VZ
33546fi
33547done
33548
e6cc62c6
VS
33549
33550for ac_func in ceil
2b5f62a0 33551do
e6cc62c6
VS
33552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33553echo "$as_me:$LINENO: checking for $ac_func" >&5
33554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33555if eval "test \"\${$as_ac_var+set}\" = set"; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33557else
33558 cat >conftest.$ac_ext <<_ACEOF
33559#line $LINENO "configure"
33560/* confdefs.h. */
33561_ACEOF
33562cat confdefs.h >>conftest.$ac_ext
33563cat >>conftest.$ac_ext <<_ACEOF
33564/* end confdefs.h. */
2b5f62a0 33565/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33566 which can conflict with char $ac_func (); below.
33567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33568 <limits.h> exists even on freestanding compilers. */
33569#ifdef __STDC__
33570# include <limits.h>
33571#else
33572# include <assert.h>
33573#endif
2b5f62a0 33574/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33575#ifdef __cplusplus
33576extern "C"
33577{
33578#endif
2b5f62a0 33579/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33580 builtin and then its argument prototype would still apply. */
33581char $ac_func ();
2b5f62a0
VZ
33582/* The GNU C library defines this for functions which it implements
33583 to always fail with ENOSYS. Some functions are actually named
33584 something starting with __ and the normal name is an alias. */
33585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33586choke me
33587#else
e6cc62c6
VS
33588char (*f) () = $ac_func;
33589#endif
33590#ifdef __cplusplus
33591}
2b5f62a0
VZ
33592#endif
33593
e6cc62c6
VS
33594int
33595main ()
33596{
33597return f != $ac_func;
33598 ;
33599 return 0;
33600}
33601_ACEOF
33602rm -f conftest.$ac_objext conftest$ac_exeext
33603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33604 (eval $ac_link) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -s conftest$ac_exeext'
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 eval "$as_ac_var=yes"
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
33619eval "$as_ac_var=no"
33620fi
33621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33622fi
33623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33625if test `eval echo '${'$as_ac_var'}'` = yes; then
33626 cat >>confdefs.h <<_ACEOF
33627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33628_ACEOF
2b5f62a0 33629 have_ceil=1
2b5f62a0
VZ
33630fi
33631done
33632
e6cc62c6
VS
33633 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33634echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33635 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33636 echo "$as_me:$LINENO: result: yes" >&5
33637echo "${ECHO_T}yes" >&6
2b5f62a0 33638 else
e6cc62c6
VS
33639 echo "$as_me:$LINENO: result: no" >&5
33640echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33641 # not sure we should warn the user, crash, etc.
33642 fi
33643fi
8284b0c5
MB
33644
33645if test "$wxUSE_GUI" = "yes"; then
33646
e6cc62c6 33647
8284b0c5
MB
33648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33649 drawing dynamic erase event exec font image \
1dd02ac0 33650 minimal propsize rotate shaped widgets render"
b625909c
VS
33651
33652 if test "$wxUSE_MONOLITHIC" != "yes"; then
33653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33654 fi
8284b0c5
MB
33655else
33656 SAMPLES_SUBDIRS="console"
33657fi
33658
33659
e6cc62c6 33660INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33661-I\${top_srcdir}/include \
33662$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33663$TOOLKIT_INCLUDE"
33664
fddeb06b
VS
33665if test "$GXX" = yes ; then
33666 CXXWARNINGS="-Wall"
33667 fi
33668
33669EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33670
95318f7d 33671CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33672CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33673CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33674
33675
fddeb06b 33676LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33677EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33678EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33679EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33680if test "$wxUSE_GUI" = "yes"; then
33681 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33682fi
34b08d2c
VS
33683if test "$wxUSE_OPENGL" = "yes"; then
33684 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33685fi
fddeb06b
VS
33686
33687LDFLAGS="$LDFLAGS $PROFILE"
33688
8284b0c5
MB
33689if test "$wxUSE_GTK" = 1; then
33690 WXCONFIG_INCLUDE=
33691else
33692 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33693fi
33694
67c13b6c
VS
33695WXCONFIG_EXTRALIBS="$LIBS"
33696
33697if test "$wxUSE_REGEX" = "builtin" ; then
33698 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33699fi
33700if test "$wxUSE_EXPAT" = "builtin" ; then
33701 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33702fi
33703if test "$wxUSE_ODBC" = "builtin" ; then
33704 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33705fi
33706if test "$wxUSE_LIBTIFF" = "builtin" ; then
33707 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33708fi
33709if test "$wxUSE_LIBJPEG" = "builtin" ; then
33710 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33711fi
33712if test "$wxUSE_LIBPNG" = "builtin" ; then
33713 wxconfig_3rdparty="$wxconfig_3rdparty png"
33714fi
33715if test "$wxUSE_ZLIB" = "builtin" ; then
33716 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33717fi
bb41dcbe
VS
33718if test "$wxUSE_ODBC" = "builtin" ; then
33719 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33720fi
67c13b6c
VS
33721
33722for i in $wxconfig_3rdparty ; do
33723 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33724done
33725
33726
fe0895cf
VS
33727if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33728 WXUNIV=1
33729else
33730 WXUNIV=0
8284b0c5
MB
33731fi
33732
8284b0c5
MB
33733
33734
33735
33736
33737
33738
33739
672abd7a 33740
9747f85d
VS
33741if test $wxUSE_MONOLITHIC = "yes" ; then
33742 MONOLITHIC=1
33743else
33744 MONOLITHIC=0
33745fi
8284b0c5 33746
bb41dcbe
VS
33747if test $wxUSE_ODBC != "no" ; then
33748 USE_ODBC=1
33749else
33750 USE_ODBC=0
33751fi
33752
029b47ad
VS
33753if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33754 OFFICIAL_BUILD=1
33755else
33756 OFFICIAL_BUILD=0
33757fi
33758
8ee2dd05
VS
33759
33760
33761
8284b0c5
MB
33762
33763
33764
33765
33766
33767
c74dc163 33768
34b08d2c 33769
672abd7a 33770
cf615ebb 33771
6c67131a
VS
33772
33773
bb41dcbe 33774
fe0895cf 33775TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33776
33777
33778
33779
33780
ea66c762 33781
0f1bc9c2 33782
fe0895cf 33783 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33784
33785 if test -n "$ac_tool_prefix"; then
33786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33788echo "$as_me:$LINENO: checking for $ac_word" >&5
33789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33790if test "${ac_cv_prog_RANLIB+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33792else
fe0895cf
VS
33793 if test -n "$RANLIB"; then
33794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33795else
e6cc62c6
VS
33796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33797for as_dir in $PATH
33798do
33799 IFS=$as_save_IFS
33800 test -z "$as_dir" && as_dir=.
33801 for ac_exec_ext in '' $ac_executable_extensions; do
33802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33805 break 2
33806 fi
33807done
33808done
33809
10f2d63a 33810fi
10f2d63a 33811fi
e6cc62c6 33812RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33813if test -n "$RANLIB"; then
e6cc62c6
VS
33814 echo "$as_me:$LINENO: result: $RANLIB" >&5
33815echo "${ECHO_T}$RANLIB" >&6
33816else
33817 echo "$as_me:$LINENO: result: no" >&5
33818echo "${ECHO_T}no" >&6
33819fi
33820
33821fi
33822if test -z "$ac_cv_prog_RANLIB"; then
33823 ac_ct_RANLIB=$RANLIB
33824 # Extract the first word of "ranlib", so it can be a program name with args.
33825set dummy ranlib; ac_word=$2
33826echo "$as_me:$LINENO: checking for $ac_word" >&5
33827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33829 echo $ECHO_N "(cached) $ECHO_C" >&6
33830else
33831 if test -n "$ac_ct_RANLIB"; then
33832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33833else
33834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33835for as_dir in $PATH
33836do
33837 IFS=$as_save_IFS
33838 test -z "$as_dir" && as_dir=.
33839 for ac_exec_ext in '' $ac_executable_extensions; do
33840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33841 ac_cv_prog_ac_ct_RANLIB="ranlib"
33842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33843 break 2
33844 fi
33845done
33846done
33847
33848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33849fi
33850fi
33851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33852if test -n "$ac_ct_RANLIB"; then
33853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33854echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33855else
e6cc62c6
VS
33856 echo "$as_me:$LINENO: result: no" >&5
33857echo "${ECHO_T}no" >&6
33858fi
33859
33860 RANLIB=$ac_ct_RANLIB
33861else
33862 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33863fi
665bbe97 33864
fe0895cf
VS
33865 # Find a good install program. We prefer a C program (faster),
33866# so one script is as good as another. But avoid the broken or
33867# incompatible versions:
33868# SysV /etc/install, /usr/sbin/install
33869# SunOS /usr/etc/install
33870# IRIX /sbin/install
33871# AIX /bin/install
e6cc62c6 33872# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33876# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33877echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33878echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33879if test -z "$INSTALL"; then
e6cc62c6
VS
33880if test "${ac_cv_path_install+set}" = set; then
33881 echo $ECHO_N "(cached) $ECHO_C" >&6
33882else
33883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33884for as_dir in $PATH
33885do
33886 IFS=$as_save_IFS
33887 test -z "$as_dir" && as_dir=.
33888 # Account for people who put trailing slashes in PATH elements.
33889case $as_dir/ in
33890 ./ | .// | /cC/* | \
33891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33892 /usr/ucb/* ) ;;
33893 *)
33894 # OSF1 and SCO ODT 3.0 have their own names for install.
33895 # Don't use installbsd from OSF since it installs stuff as root
33896 # by default.
33897 for ac_prog in ginstall scoinst install; do
33898 for ac_exec_ext in '' $ac_executable_extensions; do
33899 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33900 if test $ac_prog = install &&
33901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33902 # AIX install. It has an incompatible calling convention.
33903 :
33904 elif test $ac_prog = install &&
33905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33906 # program-specific install script used by HP pwplus--don't use.
33907 :
33908 else
33909 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33910 break 3
33911 fi
33912 fi
fe0895cf 33913 done
e6cc62c6
VS
33914 done
33915 ;;
33916esac
33917done
33918
fe0895cf
VS
33919
33920fi
33921 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33922 INSTALL=$ac_cv_path_install
fe0895cf
VS
33923 else
33924 # As a last resort, use the slow shell script. We don't cache a
33925 # path for INSTALL within a source directory, because that will
33926 # break other packages using the cache if that directory is
33927 # removed, or if the path is relative.
e6cc62c6 33928 INSTALL=$ac_install_sh
fe0895cf
VS
33929 fi
33930fi
e6cc62c6
VS
33931echo "$as_me:$LINENO: result: $INSTALL" >&5
33932echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33933
33934# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33935# It thinks the first close brace ends the variable substitution.
33936test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33937
e6cc62c6 33938test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33939
33940test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33941
e6cc62c6
VS
33942 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33943echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33944LN_S=$as_ln_s
33945if test "$LN_S" = "ln -s"; then
33946 echo "$as_me:$LINENO: result: yes" >&5
33947echo "${ECHO_T}yes" >&6
fe0895cf 33948else
e6cc62c6
VS
33949 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33950echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33951fi
33952
33953
e6cc62c6
VS
33954 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33955echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33956set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33957if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33958 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33959else
e6cc62c6 33960 cat >conftest.make <<\_ACEOF
fe0895cf 33961all:
e6cc62c6
VS
33962 @echo 'ac_maketemp="$(MAKE)"'
33963_ACEOF
fe0895cf 33964# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33965eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33966if test -n "$ac_maketemp"; then
33967 eval ac_cv_prog_make_${ac_make}_set=yes
33968else
33969 eval ac_cv_prog_make_${ac_make}_set=no
33970fi
e6cc62c6 33971rm -f conftest.make
fe0895cf
VS
33972fi
33973if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33974 echo "$as_me:$LINENO: result: yes" >&5
33975echo "${ECHO_T}yes" >&6
fe0895cf
VS
33976 SET_MAKE=
33977else
e6cc62c6
VS
33978 echo "$as_me:$LINENO: result: no" >&5
33979echo "${ECHO_T}no" >&6
fe0895cf
VS
33980 SET_MAKE="MAKE=${MAKE-make}"
33981fi
33982
e6cc62c6
VS
33983
33984
fe0895cf
VS
33985 if test "$build" != "$host" ; then
33986 AR=$host_alias-ar
33987 STRIP=$host_alias-strip
33988 else
33989 # Extract the first word of "ar", so it can be a program name with args.
33990set dummy ar; ac_word=$2
e6cc62c6
VS
33991echo "$as_me:$LINENO: checking for $ac_word" >&5
33992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33993if test "${ac_cv_prog_AR+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33995else
33996 if test -n "$AR"; then
33997 ac_cv_prog_AR="$AR" # Let the user override the test.
33998else
e6cc62c6
VS
33999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34000for as_dir in $PATH
34001do
34002 IFS=$as_save_IFS
34003 test -z "$as_dir" && as_dir=.
34004 for ac_exec_ext in '' $ac_executable_extensions; do
34005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34006 ac_cv_prog_AR="ar"
34007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34008 break 2
34009 fi
34010done
34011done
34012
fe0895cf
VS
34013 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34014fi
34015fi
e6cc62c6 34016AR=$ac_cv_prog_AR
fe0895cf 34017if test -n "$AR"; then
e6cc62c6
VS
34018 echo "$as_me:$LINENO: result: $AR" >&5
34019echo "${ECHO_T}$AR" >&6
fe0895cf 34020else
e6cc62c6
VS
34021 echo "$as_me:$LINENO: result: no" >&5
34022echo "${ECHO_T}no" >&6
fe0895cf
VS
34023fi
34024
34025 # Extract the first word of "strip", so it can be a program name with args.
34026set dummy strip; ac_word=$2
e6cc62c6
VS
34027echo "$as_me:$LINENO: checking for $ac_word" >&5
34028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34029if test "${ac_cv_prog_STRIP+set}" = set; then
34030 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34031else
34032 if test -n "$STRIP"; then
34033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34034else
e6cc62c6
VS
34035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34036for as_dir in $PATH
34037do
34038 IFS=$as_save_IFS
34039 test -z "$as_dir" && as_dir=.
34040 for ac_exec_ext in '' $ac_executable_extensions; do
34041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34042 ac_cv_prog_STRIP="strip"
34043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34044 break 2
34045 fi
34046done
34047done
34048
fe0895cf
VS
34049 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34050fi
34051fi
e6cc62c6 34052STRIP=$ac_cv_prog_STRIP
fe0895cf 34053if test -n "$STRIP"; then
e6cc62c6
VS
34054 echo "$as_me:$LINENO: result: $STRIP" >&5
34055echo "${ECHO_T}$STRIP" >&6
fe0895cf 34056else
e6cc62c6
VS
34057 echo "$as_me:$LINENO: result: no" >&5
34058echo "${ECHO_T}no" >&6
fe0895cf
VS
34059fi
34060
34061 fi
34062
34063 case ${host} in
34064 *-hp-hpux* )
34065 INSTALL_DIR="mkdir"
34066 ;;
34067 *) INSTALL_DIR="$INSTALL -d"
34068 ;;
34069 esac
e6cc62c6 34070
fe0895cf 34071
6b9d41a5
VS
34072 LDFLAGS_GUI=
34073 case ${host} in
34074 *-*-cygwin* | *-*-mingw32* )
34075 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34076 esac
34077
34078
fe0895cf 34079 fi
e6cc62c6
VS
34080
34081 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34082echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34083if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34084 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34085else
e6cc62c6 34086
fe0895cf
VS
34087 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34088 egrep -s GNU > /dev/null); then
34089 bakefile_cv_prog_makeisgnu="yes"
34090 else
34091 bakefile_cv_prog_makeisgnu="no"
34092 fi
fe0895cf 34093
e6cc62c6 34094fi
49b0a3aa
VS
34095echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34096echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34097
34098 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34099 IF_GNU_MAKE=""
34100 else
34101 IF_GNU_MAKE="#"
34102 fi
fe0895cf 34103
e6cc62c6
VS
34104
34105
fe0895cf
VS
34106 PLATFORM_UNIX=0
34107 PLATFORM_WIN32=0
34108 PLATFORM_MSDOS=0
34109 PLATFORM_MAC=0
34110 PLATFORM_MACOSX=0
96c1699d 34111 PLATFORM_OS2=0
e6cc62c6 34112
fe0895cf
VS
34113 case "${host}" in
34114 *-*-cygwin* | *-*-mingw32* )
34115 PLATFORM_WIN32=1
34116 ;;
96c1699d 34117 *-pc-msdosdjgpp )
fe0895cf
VS
34118 PLATFORM_MSDOS=1
34119 ;;
96c1699d
VS
34120 *-pc-os2_emx | *-pc-os2-emx )
34121 PLATFORM_OS2=1
34122 ;;
fe0895cf
VS
34123 powerpc-*-darwin* )
34124 PLATFORM_MAC=1
34125 PLATFORM_MACOSX=1
34126 ;;
34127 * )
34128 PLATFORM_UNIX=1
34129 ;;
34130 esac
34131
fe0895cf 34132
e6cc62c6
VS
34133
34134
34135
34136
34137
34138
96c1699d 34139
fe0895cf 34140 SO_SUFFIX="so"
131f235d 34141 SO_SUFFIX_MODULE="so"
fe0895cf 34142 EXEEXT=""
4b1f6360 34143 LIBPREFIX=lib
fe0895cf 34144 DLLPREFIX=lib
131f235d 34145 DLLPREFIX_MODULE=
e6cc62c6 34146
fe0895cf
VS
34147 case "${host}" in
34148 *-hp-hpux* )
34149 SO_SUFFIX="sl"
131f235d 34150 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34151 ;;
34152 *-*-aix* )
34153 SO_SUFFIX="a"
131f235d 34154 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34155 ;;
34156 *-*-cygwin* | *-*-mingw32* )
34157 SO_SUFFIX="dll"
131f235d 34158 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34159 EXEEXT=".exe"
34160 DLLPREFIX=""
34161 ;;
4b1f6360
VS
34162 *-pc-msdosdjgpp )
34163 EXEEXT=".exe"
34164 DLLPREFIX=""
34165 ;;
34166 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34167 EXEEXT=".exe"
34168 DLLPREFIX=""
4b1f6360 34169 LIBPREFIX=""
fe0895cf
VS
34170 ;;
34171 powerpc-*-darwin* )
34172 SO_SUFFIX="dylib"
131f235d 34173 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34174 ;;
34175 esac
34176
fe0895cf 34177
e6cc62c6
VS
34178
34179
34180
34181
131f235d
VS
34182
34183
4b1f6360 34184
fe0895cf
VS
34185 SHARED_LD_CC="\$(CC) -shared -o"
34186 SHARED_LD_CXX="\$(CXX) -shared -o"
34187
34188 if test "x$GCC" = "xyes"; then
34189 PIC_FLAG="-fPIC"
34190 fi
34191
34192 case "${host}" in
34193 *-hp-hpux* )
34194 if test "x$GCC" = "xyes"; then
34195 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34196 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34197 else
34198 LDFLAGS="$LDFLAGS -L/usr/lib"
34199
34200 SHARED_LD_CC="${CC} -b -o"
34201 SHARED_LD_CXX="${CXX} -b -o"
34202 PIC_FLAG="+Z"
34203 fi
34204 ;;
34205
34206 *-*-linux* )
34207 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34208 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34209echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34210if test "${bakefile_cv_prog_icc+set}" = set; then
34211 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34212else
fe0895cf 34213
e6cc62c6
VS
34214 cat >conftest.$ac_ext <<_ACEOF
34215#line $LINENO "configure"
34216/* confdefs.h. */
34217_ACEOF
34218cat confdefs.h >>conftest.$ac_ext
34219cat >>conftest.$ac_ext <<_ACEOF
34220/* end confdefs.h. */
34221
34222int
34223main ()
34224{
fe0895cf
VS
34225
34226 #ifndef __INTEL_COMPILER
34227 #error Not icc
34228 #endif
e6cc62c6
VS
34229
34230 ;
34231 return 0;
34232}
34233_ACEOF
34234rm -f conftest.$ac_objext
34235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34236 (eval $ac_compile) 2>&5
34237 ac_status=$?
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); } &&
34240 { ac_try='test -s conftest.$ac_objext'
34241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34242 (eval $ac_try) 2>&5
34243 ac_status=$?
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); }; }; then
fe0895cf
VS
34246 bakefile_cv_prog_icc=yes
34247else
e6cc62c6
VS
34248 echo "$as_me: failed program was:" >&5
34249sed 's/^/| /' conftest.$ac_ext >&5
34250
34251bakefile_cv_prog_icc=no
34252
fe0895cf 34253fi
e6cc62c6 34254rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34255
e6cc62c6
VS
34256fi
34257echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34258echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34259 if test "$bakefile_cv_prog_icc" = "yes"; then
34260 PIC_FLAG="-KPIC"
34261 fi
34262 fi
34263 ;;
34264
34265 *-*-solaris2* )
34266 if test "x$GCC" != xyes ; then
34267 SHARED_LD_CC="${CC} -G -o"
34268 SHARED_LD_CXX="${CXX} -G -o"
34269 PIC_FLAG="-KPIC"
34270 fi
34271 ;;
34272
34273 *-*-darwin* )
34274 CFLAGS="$CFLAGS -fno-common"
34275 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34276
34277
fe0895cf
VS
34278 cat <<EOF >shared-ld-sh
34279#!/bin/sh
34280#-----------------------------------------------------------------------------
34281#-- Name: distrib/mac/shared-ld-sh
34282#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34283#-- Author: Gilles Depeyrot
34284#-- Copyright: (c) 2002 Gilles Depeyrot
34285#-- Licence: any use permitted
34286#-----------------------------------------------------------------------------
34287
34288verbose=0
34289args=""
34290objects=""
131f235d 34291linking_flag="-dynamiclib"
fe0895cf
VS
34292
34293while test \${#} -gt 0; do
34294 case \${1} in
34295
34296 -v)
34297 verbose=1
34298 ;;
34299
34300 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34301 # collect these options and values
34302 args="\${args} \${1} \${2}"
34303 shift
34304 ;;
34305
34306 -l*|-L*|-flat_namespace)
34307 # collect these options
34308 args="\${args} \${1}"
34309 ;;
34310
131f235d
VS
34311 -dynamiclib|-bundle)
34312 linking_flag="\${1}"
fe0895cf
VS
34313 ;;
34314
34315 -*)
34316 echo "shared-ld: unhandled option '\${1}'"
34317 exit 1
34318 ;;
34319
4d264332 34320 *.o | *.a | *.dylib)
fe0895cf
VS
34321 # collect object files
34322 objects="\${objects} \${1}"
34323 ;;
34324
34325 *)
34326 echo "shared-ld: unhandled argument '\${1}'"
34327 exit 1
34328 ;;
34329
34330 esac
34331 shift
34332done
34333
34334#
34335# Link one module containing all the others
34336#
34337if test \${verbose} = 1; then
34338 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34339fi
34340c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34341status=\$?
34342if test \${status} != 0; then
34343 exit \${status}
34344fi
34345
34346#
34347# Link the shared library from the single module created
34348#
34349if test \${verbose} = 1; then
131f235d 34350 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34351fi
131f235d 34352c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34353status=\$?
34354if test \${status} != 0; then
34355 exit \${status}
34356fi
34357
34358#
34359# Remove intermediate module
34360#
34361rm -f master.\$\$.o
34362
34363exit 0
34364EOF
34365 chmod +x shared-ld-sh
34366
131f235d
VS
34367 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34368 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34369 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34370 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34371 PIC_FLAG="-dynamic -fPIC"
34372 ;;
34373
34374 *-*-aix* )
34375 if test "x$GCC" != "xyes"; then
34376 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34377set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34378echo "$as_me:$LINENO: checking for $ac_word" >&5
34379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34380if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34381 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34382else
34383 if test -n "$AIX_CXX_LD"; then
34384 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34385else
e6cc62c6
VS
34386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34387for as_dir in $PATH
34388do
34389 IFS=$as_save_IFS
34390 test -z "$as_dir" && as_dir=.
34391 for ac_exec_ext in '' $ac_executable_extensions; do
34392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34393 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34395 break 2
34396 fi
34397done
34398done
34399
fe0895cf
VS
34400 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34401fi
34402fi
e6cc62c6 34403AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34404if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34405 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34406echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34407else
e6cc62c6
VS
34408 echo "$as_me:$LINENO: result: no" >&5
34409echo "${ECHO_T}no" >&6
fe0895cf
VS
34410fi
34411
34412 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34413 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34414 fi
34415 ;;
34416
34417 *-*-beos* )
34418 SHARED_LD_CC="${LD} -shared -o"
34419 SHARED_LD_CXX="${LD} -shared -o"
34420 ;;
34421
34422 *-*-irix* )
34423 if test "x$GCC" != "xyes"; then
34424 PIC_FLAG="-KPIC"
34425 fi
34426 ;;
e6cc62c6 34427
fe0895cf
VS
34428 *-*-cygwin* | *-*-mingw32* )
34429 PIC_FLAG=""
34430 ;;
e6cc62c6 34431
fe0895cf
VS
34432 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34433 *-*-sunos4* | \
34434 *-*-osf* | \
34435 *-*-dgux5* | \
4b1f6360 34436 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
34437 *-*-sysv5* )
34438 ;;
34439
34440 *)
e6cc62c6
VS
34441 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34442echo "$as_me: error: unknown system type $host." >&2;}
34443 { (exit 1); exit 1; }; }
fe0895cf
VS
34444 esac
34445
131f235d
VS
34446 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34447 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34448 fi
34449 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34450 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34451 fi
34452
34453
34454
fe0895cf 34455
e6cc62c6
VS
34456
34457
34458
34459
fe0895cf
VS
34460 USE_SOVERSION=0
34461 USE_SOVERLINUX=0
34462 USE_SOVERSOLARIS=0
34463 USE_SOSYMLINKS=0
34464 USE_MACVERSION=0
34465 SONAME_FLAG=
34466
34467 case "${host}" in
34468 *-*-linux* )
34469 SONAME_FLAG="-Wl,-soname,"
34470 USE_SOVERSION=1
34471 USE_SOVERLINUX=1
34472 USE_SOSYMLINKS=1
34473 ;;
34474
34475 *-*-solaris2* )
34476 SONAME_FLAG="-h "
34477 USE_SOVERSION=1
34478 USE_SOVERSOLARIS=1
34479 USE_SOSYMLINKS=1
34480 ;;
34481
34482 *-*-darwin* )
34483 USE_MACVERSION=1
34484 USE_SOVERSION=1
34485 USE_SOSYMLINKS=1
e6cc62c6 34486 ;;
fe0895cf
VS
34487 esac
34488
fe0895cf 34489
e6cc62c6
VS
34490
34491
34492
34493
34494
34495
34496
49b0a3aa
VS
34497 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34498echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34499 DEPS_TRACKING=0
34500
fe0895cf 34501 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34502 DEPSMODE=gcc
34503 DEPS_TRACKING=1
3e5c3c83
VS
34504 case "${host}" in
34505 powerpc-*-darwin* )
34506 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34507 ;;
34508 * )
34509 DEPSFLAG_GCC="-MMD"
34510 ;;
34511 esac
49b0a3aa
VS
34512 echo "$as_me:$LINENO: result: gcc" >&5
34513echo "${ECHO_T}gcc" >&6
34514 else
34515 echo "$as_me:$LINENO: result: none" >&5
34516echo "${ECHO_T}none" >&6
34517 fi
34518
34519 if test $DEPS_TRACKING = 1 ; then
34520 cat <<EOF >bk-deps
34521#!/bin/sh
34522
45842500
VS
34523# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34524# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34525#
34526# Permission is given to use this file in any way.
34527
34528DEPSMODE=$DEPSMODE
34529DEPSDIR=.deps
3e5c3c83 34530DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34531
34532mkdir -p \$DEPSDIR
34533
34534if test \$DEPSMODE = gcc ; then
3e5c3c83 34535 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34536 status=\${?}
34537 if test \${status} != 0 ; then
34538 exit \${status}
34539 fi
34540 # move created file to the location we want it in:
34541 while test \${#} -gt 0; do
34542 case "\${1}" in
34543 -o )
34544 shift
34545 objfile=\${1}
34546 ;;
34547 -* )
34548 ;;
34549 * )
34550 srcfile=\${1}
34551 ;;
34552 esac
34553 shift
34554 done
34555 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34556 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34557 if test -f \$depfile ; then
34558 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34559 rm -f \$depfile
34560 else
34561 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34562 if test -f \$depfile ; then
4c8b7f4b 34563 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34564 rm -f \$depfile
34565 fi
34566 fi
49b0a3aa
VS
34567 exit 0
34568else
34569 \${*}
34570 exit \${?}
34571fi
34572EOF
34573 chmod +x bk-deps
fe0895cf 34574 fi
fe0895cf 34575
e6cc62c6
VS
34576
34577
34578
fe0895cf
VS
34579 RESCOMP=
34580 SETFILE=
34581
e6cc62c6 34582 case ${host} in
fe0895cf
VS
34583 *-*-cygwin* | *-*-mingw32* )
34584 if test "$build" != "$host" ; then
34585 RESCOMP=$host_alias-windres
34586 else
34587 # Extract the first word of "windres", so it can be a program name with args.
34588set dummy windres; ac_word=$2
e6cc62c6
VS
34589echo "$as_me:$LINENO: checking for $ac_word" >&5
34590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34591if test "${ac_cv_prog_RESCOMP+set}" = set; then
34592 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34593else
34594 if test -n "$RESCOMP"; then
34595 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34596else
e6cc62c6
VS
34597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34598for as_dir in $PATH
34599do
34600 IFS=$as_save_IFS
34601 test -z "$as_dir" && as_dir=.
34602 for ac_exec_ext in '' $ac_executable_extensions; do
34603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34604 ac_cv_prog_RESCOMP="windres"
34605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34606 break 2
34607 fi
34608done
34609done
34610
fe0895cf
VS
34611 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34612fi
34613fi
e6cc62c6 34614RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34615if test -n "$RESCOMP"; then
e6cc62c6
VS
34616 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34617echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34618else
e6cc62c6
VS
34619 echo "$as_me:$LINENO: result: no" >&5
34620echo "${ECHO_T}no" >&6
fe0895cf
VS
34621fi
34622
34623 fi
34624 ;;
e6cc62c6 34625
fe0895cf
VS
34626 *-*-darwin* )
34627 # Extract the first word of "Rez", so it can be a program name with args.
34628set dummy Rez; ac_word=$2
e6cc62c6
VS
34629echo "$as_me:$LINENO: checking for $ac_word" >&5
34630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34631if test "${ac_cv_prog_RESCOMP+set}" = set; then
34632 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34633else
34634 if test -n "$RESCOMP"; then
34635 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34636else
e6cc62c6
VS
34637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34638for as_dir in $PATH
34639do
34640 IFS=$as_save_IFS
34641 test -z "$as_dir" && as_dir=.
34642 for ac_exec_ext in '' $ac_executable_extensions; do
34643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34644 ac_cv_prog_RESCOMP="Rez"
34645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34646 break 2
34647 fi
34648done
34649done
34650
fe0895cf
VS
34651 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34652fi
34653fi
e6cc62c6 34654RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34655if test -n "$RESCOMP"; then
e6cc62c6
VS
34656 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34657echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34658else
e6cc62c6
VS
34659 echo "$as_me:$LINENO: result: no" >&5
34660echo "${ECHO_T}no" >&6
fe0895cf
VS
34661fi
34662
34663 # Extract the first word of "SetFile", so it can be a program name with args.
34664set dummy SetFile; ac_word=$2
e6cc62c6
VS
34665echo "$as_me:$LINENO: checking for $ac_word" >&5
34666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34667if test "${ac_cv_prog_SETFILE+set}" = set; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34669else
34670 if test -n "$SETFILE"; then
34671 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34672else
e6cc62c6
VS
34673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34674for as_dir in $PATH
34675do
34676 IFS=$as_save_IFS
34677 test -z "$as_dir" && as_dir=.
34678 for ac_exec_ext in '' $ac_executable_extensions; do
34679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34680 ac_cv_prog_SETFILE="SetFile"
34681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34682 break 2
34683 fi
34684done
34685done
34686
fe0895cf
VS
34687 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34688fi
34689fi
e6cc62c6 34690SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34691if test -n "$SETFILE"; then
e6cc62c6
VS
34692 echo "$as_me:$LINENO: result: $SETFILE" >&5
34693echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34694else
e6cc62c6
VS
34695 echo "$as_me:$LINENO: result: no" >&5
34696echo "${ECHO_T}no" >&6
fe0895cf
VS
34697fi
34698
34699 ;;
34700 esac
34701
fe0895cf
VS
34702
34703
e6cc62c6
VS
34704
34705
34706
34707
45842500 34708
0e012a93
VZ
34709
34710
45842500
VS
34711 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34712if test "${enable_precomp_headers+set}" = set; then
34713 enableval="$enable_precomp_headers"
34714 bk_use_pch="$enableval"
34715fi;
34716
34717 GCC_PCH=0
34718
34719 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34720 if test "x$GCC" = "xyes"; then
34721 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34722echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34723 cat >conftest.$ac_ext <<_ACEOF
34724#line $LINENO "configure"
34725/* confdefs.h. */
34726_ACEOF
34727cat confdefs.h >>conftest.$ac_ext
34728cat >>conftest.$ac_ext <<_ACEOF
34729/* end confdefs.h. */
34730
34731int
34732main ()
34733{
34734
8bcf2d20
VS
34735 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34736 #error "no pch support"
34737 #endif
34738 #if (__GNUC__ < 3)
34739 #error "no pch support"
34740 #endif
34741 #if (__GNUC__ == 3) && \
34742 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34743 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34744 #error "no pch support"
45842500
VS
34745 #endif
34746
34747 ;
34748 return 0;
34749}
34750_ACEOF
34751rm -f conftest.$ac_objext
34752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34753 (eval $ac_compile) 2>&5
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); } &&
34757 { ac_try='test -s conftest.$ac_objext'
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
34763
34764 echo "$as_me:$LINENO: result: yes" >&5
34765echo "${ECHO_T}yes" >&6
34766 CPPFLAGS="-fpch-deps $CPPFLAGS"
34767 GCC_PCH=1
34768
34769else
34770 echo "$as_me: failed program was:" >&5
34771sed 's/^/| /' conftest.$ac_ext >&5
34772
34773
34774 echo "$as_me:$LINENO: result: no" >&5
34775echo "${ECHO_T}no" >&6
34776
34777fi
34778rm -f conftest.$ac_objext conftest.$ac_ext
34779 if test $GCC_PCH = 1 ; then
34780 cat <<EOF >bk-make-pch
34781#!/bin/sh
34782
34783# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34784# script. It is used to generated precompiled headers.
34785#
34786# Permission is given to use this file in any way.
34787
34788outfile="\${1}"
34789header="\${2}"
34790shift
34791shift
34792
34793compiler=
34794headerfile=
34795while test \${#} -gt 0; do
34796 case "\${1}" in
34797 -I* )
34798 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34799 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34800 headerfile="\${incdir}/\${header}"
34801 fi
34802 ;;
34803 esac
34804 compiler="\${compiler} \${1}"
34805 shift
34806done
34807
34808if test "x\${headerfile}" = "x" ; then
34809 echo "error: can't find header \${header} in include paths" >2
34810else
34811 if test -f \${outfile} ; then
34812 rm -f \${outfile}
34813 else
34814 mkdir -p \`dirname \${outfile}\`
34815 fi
34816 depsfile=".deps/\`basename \${outfile}\`.d"
34817 mkdir -p .deps
34818 # can do this because gcc is >= 3.4:
34819 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34820 exit \${?}
34821fi
34822EOF
34823 chmod +x bk-make-pch
34824 fi
34825 fi
34826 fi
34827
34828
34829
34830
34831
d78c94f2 34832 COND_BUILD_DEBUG="#"
6f628073 34833 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34834 COND_BUILD_DEBUG=""
6f628073
VS
34835 fi
34836
6c67131a
VS
34837 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
34838 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
34839 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
34840 fi
34841
34842 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
34843 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
34844 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
34845 fi
34846
d78c94f2 34847 COND_BUILD_RELEASE="#"
6f628073 34848 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34849 COND_BUILD_RELEASE=""
6b9d41a5
VS
34850 fi
34851
6c67131a
VS
34852 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
34853 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
34854 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
34855 fi
34856
34857 COND_DEBUG_FLAG_1="#"
34858 if test "x$DEBUG_FLAG" = "x1" ; then
34859 COND_DEBUG_FLAG_1=""
34860 fi
34861
34862 COND_DEBUG_INFO_0="#"
34863 if test "x$DEBUG_INFO" = "x0" ; then
34864 COND_DEBUG_INFO_0=""
34865 fi
34866
34867 COND_DEBUG_INFO_1="#"
34868 if test "x$DEBUG_INFO" = "x1" ; then
34869 COND_DEBUG_INFO_1=""
34870 fi
34871
f95cd8fa
VS
34872 COND_DEPS_TRACKING_0="#"
34873 if test "x$DEPS_TRACKING" = "x0" ; then
34874 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34875 fi
34876
8ee2dd05
VS
34877 COND_DEPS_TRACKING_1="#"
34878 if test "x$DEPS_TRACKING" = "x1" ; then
34879 COND_DEPS_TRACKING_1=""
34880 fi
34881
45842500
VS
34882 COND_GCC_PCH_1="#"
34883 if test "x$GCC_PCH" = "x1" ; then
34884 COND_GCC_PCH_1=""
34885 fi
34886
6f628073
VS
34887 COND_MONOLITHIC_0="#"
34888 if test "x$MONOLITHIC" = "x0" ; then
34889 COND_MONOLITHIC_0=""
6b9d41a5
VS
34890 fi
34891
6f628073
VS
34892 COND_MONOLITHIC_0_SHARED_0="#"
34893 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34894 COND_MONOLITHIC_0_SHARED_0=""
34895 fi
34896
34897 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34898 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34899 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34900 fi
e6cc62c6 34901
8772a1a7
VS
34902 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
34903 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34904 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
34905 fi
34906
250700e4
RD
34907 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34908 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34909 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34910 fi
34911
eb69fda5
VS
34912 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
34913 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
34914 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
34915 fi
34916
8ee2dd05
VS
34917 COND_MONOLITHIC_0_SHARED_1="#"
34918 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34919 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34920 fi
e6cc62c6 34921
6f628073
VS
34922 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34923 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34924 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34925 fi
34926
8772a1a7
VS
34927 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
34928 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34929 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
34930 fi
34931
250700e4
RD
34932 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34933 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34934 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34935 fi
34936
eb69fda5
VS
34937 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
34938 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
34939 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
34940 fi
34941
3af038c0
VS
34942 COND_MONOLITHIC_1="#"
34943 if test "x$MONOLITHIC" = "x1" ; then
34944 COND_MONOLITHIC_1=""
34945 fi
34946
6f628073
VS
34947 COND_MONOLITHIC_1_SHARED_0="#"
34948 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34949 COND_MONOLITHIC_1_SHARED_0=""
34950 fi
34951
34952 COND_MONOLITHIC_1_SHARED_1="#"
34953 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34954 COND_MONOLITHIC_1_SHARED_1=""
34955 fi
34956
3af038c0
VS
34957 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34958 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34959 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34960 fi
34961
34962 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34963 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34964 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34965 fi
34966
6f628073
VS
34967 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34968 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34969 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34970 fi
34971
3af038c0
VS
34972 COND_PLATFORM_MACOSX_1="#"
34973 if test "x$PLATFORM_MACOSX" = "x1" ; then
34974 COND_PLATFORM_MACOSX_1=""
34975 fi
34976
250700e4
RD
34977 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34978 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34979 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34980 fi
34981
34982 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34983 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34984 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34985 fi
34986
34987 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34988 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34989 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34990 fi
34991
8ee2dd05
VS
34992 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34993 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34994 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34995 fi
34996
45842500
VS
34997 COND_PLATFORM_MAC_1="#"
34998 if test "x$PLATFORM_MAC" = "x1" ; then
34999 COND_PLATFORM_MAC_1=""
35000 fi
35001
3d8c1de0
VS
35002 COND_PLATFORM_OS2_1="#"
35003 if test "x$PLATFORM_OS2" = "x1" ; then
35004 COND_PLATFORM_OS2_1=""
35005 fi
35006
8772a1a7
VS
35007 COND_PLATFORM_UNIX_0="#"
35008 if test "x$PLATFORM_UNIX" = "x0" ; then
35009 COND_PLATFORM_UNIX_0=""
35010 fi
35011
3af038c0
VS
35012 COND_PLATFORM_UNIX_1="#"
35013 if test "x$PLATFORM_UNIX" = "x1" ; then
35014 COND_PLATFORM_UNIX_1=""
35015 fi
35016
35017 COND_PLATFORM_WIN32_0="#"
35018 if test "x$PLATFORM_WIN32" = "x0" ; then
35019 COND_PLATFORM_WIN32_0=""
35020 fi
35021
35022 COND_PLATFORM_WIN32_1="#"
35023 if test "x$PLATFORM_WIN32" = "x1" ; then
35024 COND_PLATFORM_WIN32_1=""
35025 fi
35026
45842500
VS
35027 COND_SHARED_0="#"
35028 if test "x$SHARED" = "x0" ; then
35029 COND_SHARED_0=""
35030 fi
35031
250700e4
RD
35032 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35033 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35034 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35035 fi
35036
52a5a009
VS
35037 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35038 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35039 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35040 fi
35041
35042 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35043 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35044 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35045 fi
35046
35047 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35048 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35049 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35050 fi
35051
35052 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35053 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35054 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35055 fi
35056
35057 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35058 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35059 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35060 fi
35061
35062 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35063 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35064 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35065 fi
35066
35067 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35068 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35069 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35070 fi
35071
45842500
VS
35072 COND_SHARED_1="#"
35073 if test "x$SHARED" = "x1" ; then
35074 COND_SHARED_1=""
35075 fi
35076
250700e4
RD
35077 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35078 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35079 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35080 fi
35081
6f628073
VS
35082 COND_TOOLKIT_COCOA="#"
35083 if test "x$TOOLKIT" = "xCOCOA" ; then
35084 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35085 fi
35086
6f628073
VS
35087 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35088 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35089 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35090 fi
35091
6f628073
VS
35092 COND_TOOLKIT_GTK="#"
35093 if test "x$TOOLKIT" = "xGTK" ; then
35094 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35095 fi
35096
6f628073
VS
35097 COND_TOOLKIT_GTK_USE_GUI_1="#"
35098 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35099 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35100 fi
35101
6f628073
VS
35102 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35103 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35104 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35105 fi
35106
3af038c0
VS
35107 COND_TOOLKIT_MAC="#"
35108 if test "x$TOOLKIT" = "xMAC" ; then
35109 COND_TOOLKIT_MAC=""
35110 fi
35111
8772a1a7
VS
35112 COND_TOOLKIT_MAC_USE_GUI_1="#"
35113 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35114 COND_TOOLKIT_MAC_USE_GUI_1=""
35115 fi
35116
6f628073
VS
35117 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35118 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35119 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35120 fi
35121
6f628073
VS
35122 COND_TOOLKIT_MGL="#"
35123 if test "x$TOOLKIT" = "xMGL" ; then
35124 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35125 fi
35126
6f628073
VS
35127 COND_TOOLKIT_MGL_USE_GUI_1="#"
35128 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35129 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35130 fi
35131
6f628073
VS
35132 COND_TOOLKIT_MOTIF="#"
35133 if test "x$TOOLKIT" = "xMOTIF" ; then
35134 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35135 fi
35136
6f628073
VS
35137 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35138 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35139 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35140 fi
e6cc62c6 35141
6f628073
VS
35142 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35143 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35144 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35145 fi
35146
6f628073
VS
35147 COND_TOOLKIT_MSW="#"
35148 if test "x$TOOLKIT" = "xMSW" ; then
35149 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35150 fi
35151
6f628073
VS
35152 COND_TOOLKIT_MSW_USE_GUI_1="#"
35153 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35154 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35155 fi
e6cc62c6 35156
6f628073
VS
35157 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35158 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35159 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35160 fi
e6cc62c6 35161
96c1699d
VS
35162 COND_TOOLKIT_PM="#"
35163 if test "x$TOOLKIT" = "xPM" ; then
35164 COND_TOOLKIT_PM=""
35165 fi
35166
35167 COND_TOOLKIT_PM_USE_GUI_1="#"
35168 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35169 COND_TOOLKIT_PM_USE_GUI_1=""
35170 fi
35171
35172 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35173 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35174 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35175 fi
35176
6f628073
VS
35177 COND_TOOLKIT_X11="#"
35178 if test "x$TOOLKIT" = "xX11" ; then
35179 COND_TOOLKIT_X11=""
9747f85d
VS
35180 fi
35181
6f628073
VS
35182 COND_TOOLKIT_X11_USE_GUI_1="#"
35183 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35184 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35185 fi
35186
3af038c0
VS
35187 COND_UNICODE_1="#"
35188 if test "x$UNICODE" = "x1" ; then
35189 COND_UNICODE_1=""
35190 fi
35191
35192 COND_USE_GUI_0="#"
35193 if test "x$USE_GUI" = "x0" ; then
35194 COND_USE_GUI_0=""
35195 fi
35196
35197 COND_USE_GUI_1="#"
35198 if test "x$USE_GUI" = "x1" ; then
35199 COND_USE_GUI_1=""
35200 fi
35201
e6cc62c6 35202 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35203 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35204 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35205 fi
e6cc62c6
VS
35206
35207 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35208 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35209 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35210 fi
35211
66a96744
VS
35212 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35213 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35214 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35215 fi
35216
35217 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35218 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35219 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35220 fi
35221
35222 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35223 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35224 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35225 fi
35226
6f628073
VS
35227 COND_USE_SOSYMLINKS_1="#"
35228 if test "x$USE_SOSYMLINKS" = "x1" ; then
35229 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35230 fi
35231
6f628073
VS
35232 COND_USE_SOVERLINUX_1="#"
35233 if test "x$USE_SOVERLINUX" = "x1" ; then
35234 COND_USE_SOVERLINUX_1=""
b625909c
VS
35235 fi
35236
6f628073
VS
35237 COND_USE_SOVERSION_0="#"
35238 if test "x$USE_SOVERSION" = "x0" ; then
35239 COND_USE_SOVERSION_0=""
fddeb06b 35240 fi
fe0895cf 35241
6f628073
VS
35242 COND_USE_SOVERSOLARIS_1="#"
35243 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35244 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35245 fi
fe0895cf 35246
3af038c0
VS
35247 COND_WXUNIV_1="#"
35248 if test "x$WXUNIV" = "x1" ; then
35249 COND_WXUNIV_1=""
35250 fi
35251
66a96744
VS
35252 COND_WXUSE_EXPAT_BUILTIN="#"
35253 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35254 COND_WXUSE_EXPAT_BUILTIN=""
35255 fi
35256
02980527
VS
35257 COND_WXUSE_LIBJPEG_BUILTIN="#"
35258 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35259 COND_WXUSE_LIBJPEG_BUILTIN=""
35260 fi
35261
35262 COND_WXUSE_LIBPNG_BUILTIN="#"
35263 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35264 COND_WXUSE_LIBPNG_BUILTIN=""
35265 fi
35266
35267 COND_WXUSE_LIBTIFF_BUILTIN="#"
35268 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35269 COND_WXUSE_LIBTIFF_BUILTIN=""
35270 fi
35271
35272 COND_WXUSE_ODBC_BUILTIN="#"
35273 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35274 COND_WXUSE_ODBC_BUILTIN=""
35275 fi
35276
35277 COND_WXUSE_REGEX_BUILTIN="#"
35278 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35279 COND_WXUSE_REGEX_BUILTIN=""
35280 fi
35281
35282 COND_WXUSE_ZLIB_BUILTIN="#"
35283 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35284 COND_WXUSE_ZLIB_BUILTIN=""
35285 fi
35286
1772d20c 35287
fe0895cf 35288
fe0895cf 35289
fe0895cf 35290
45842500
VS
35291if test $GCC_PCH = 1 ; then
35292 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35293else
35294 case "${host}" in
35295 powerpc-*-darwin* )
35296 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35297 ;;
45842500
VS
35298 esac
35299fi
2c6f14e1
VS
35300case "${host}" in
35301 powerpc-*-darwin* )
35302 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35303 ;;
35304esac
fe0895cf
VS
35305
35306
fddeb06b 35307SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
fe0895cf 35402
f0290fca
VS
35403
35404
67c13b6c 35405
e6cc62c6
VS
35406
35407
35408echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35409echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35410set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35411if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35412 echo $ECHO_N "(cached) $ECHO_C" >&6
35413else
35414 cat >conftest.make <<\_ACEOF
35415all:
35416 @echo 'ac_maketemp="$(MAKE)"'
35417_ACEOF
35418# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35419eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35420if test -n "$ac_maketemp"; then
35421 eval ac_cv_prog_make_${ac_make}_set=yes
35422else
35423 eval ac_cv_prog_make_${ac_make}_set=no
35424fi
35425rm -f conftest.make
35426fi
35427if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35428 echo "$as_me:$LINENO: result: yes" >&5
35429echo "${ECHO_T}yes" >&6
35430 SET_MAKE=
35431else
35432 echo "$as_me:$LINENO: result: no" >&5
35433echo "${ECHO_T}no" >&6
35434 SET_MAKE="MAKE=${MAKE-make}"
35435fi
35436
35437
35438if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35439 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35440fi
35441
35442 ac_config_headers="$ac_config_headers setup.h"
35443
35444
81345eef 35445 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35446
35447
35448 ac_config_commands="$ac_config_commands default"
35449
35450
9de9b8f0 35451
6c3e36af
VZ
35452if test "$wxUSE_GUI" = "yes"; then
35453 SUBDIRS="samples demos utils contrib"
35454else SUBDIRS="samples utils"
35455fi
e6cc62c6 35456
166263e6 35457for subdir in `echo $SUBDIRS`; do
9747f85d 35458 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35459 if test "$wxUSE_GUI" = "yes"; then
166263e6 35460 if test ${subdir} = "samples"; then
8772a1a7
VS
35461 makefiles="samples/Makefile.in $makefiles"
35462 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35463 if test -d $srcdir/samples/$sample; then
35464 makefiles="samples/$sample/Makefile.in $makefiles"
35465 fi
35466 done
35467 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35468 fi
6c3e36af 35469 else if test ${subdir} = "samples"; then
8772a1a7 35470 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35471 else makefiles="utils/HelpGen/Makefile.in \
35472 utils/HelpGen/src/Makefile.in \
35473 utils/makegen/Makefile.in"
35474 fi
35475 fi
35476
9747f85d
VS
35477 for mkin in $makefiles ; do
35478 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35479 ac_config_files="$ac_config_files $mk"
e6cc62c6 35480
9747f85d
VS
35481 done
35482 fi
35483done
e6cc62c6 35484
9de9b8f0 35485
e6cc62c6
VS
35486cat >confcache <<\_ACEOF
35487# This file is a shell script that caches the results of configure
35488# tests run on this system so they can be shared between configure
35489# scripts and configure runs, see configure's option --config-cache.
35490# It is not useful on other systems. If it contains results you don't
35491# want to keep, you may remove or edit it.
35492#
35493# config.status only pays attention to the cache file if you give it
35494# the --recheck option to rerun configure.
35495#
35496# `ac_cv_env_foo' variables (set or unset) will be overridden when
35497# loading this file, other *unset* `ac_cv_foo' will be assigned the
35498# following values.
35499
35500_ACEOF
35501
35502# The following way of writing the cache mishandles newlines in values,
35503# but we know of no workaround that is simple, portable, and efficient.
35504# So, don't put newlines in cache variables' values.
35505# Ultrix sh set writes to stderr and can't be redirected directly,
35506# and sets the high bit in the cache file unless we assign to the vars.
35507{
35508 (set) 2>&1 |
35509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35510 *ac_space=\ *)
35511 # `set' does not quote correctly, so add quotes (double-quote
35512 # substitution turns \\\\ into \\, and sed turns \\ into \).
35513 sed -n \
35514 "s/'/'\\\\''/g;
35515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35516 ;;
35517 *)
35518 # `set' quotes correctly as required by POSIX, so do not add quotes.
35519 sed -n \
35520 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35521 ;;
35522 esac;
35523} |
35524 sed '
35525 t clear
35526 : clear
35527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35528 t end
35529 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35530 : end' >>confcache
35531if diff $cache_file confcache >/dev/null 2>&1; then :; else
35532 if test -w $cache_file; then
35533 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35534 cat confcache >$cache_file
35535 else
35536 echo "not updating unwritable cache $cache_file"
35537 fi
35538fi
35539rm -f confcache
35540
35541test "x$prefix" = xNONE && prefix=$ac_default_prefix
35542# Let make expand exec_prefix.
35543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35544
35545# VPATH may cause trouble with some makes, so we remove $(srcdir),
35546# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35547# trailing colons and then remove the whole line if VPATH becomes empty
35548# (actually we leave an empty line to preserve line numbers).
35549if test "x$srcdir" = x.; then
35550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35551s/:*\$(srcdir):*/:/;
35552s/:*\${srcdir}:*/:/;
35553s/:*@srcdir@:*/:/;
35554s/^\([^=]*=[ ]*\):*/\1/;
35555s/:*$//;
35556s/^[^=]*=[ ]*$//;
35557}'
35558fi
35559
35560DEFS=-DHAVE_CONFIG_H
35561
35562ac_libobjs=
35563ac_ltlibobjs=
35564for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35565 # 1. Remove the extension, and $U if already installed.
35566 ac_i=`echo "$ac_i" |
35567 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35568 # 2. Add them.
35569 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35570 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35571done
35572LIBOBJS=$ac_libobjs
35573
35574LTLIBOBJS=$ac_ltlibobjs
35575
35576
35577
35578: ${CONFIG_STATUS=./config.status}
35579ac_clean_files_save=$ac_clean_files
35580ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35581{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35582echo "$as_me: creating $CONFIG_STATUS" >&6;}
35583cat >$CONFIG_STATUS <<_ACEOF
35584#! $SHELL
35585# Generated by $as_me.
35586# Run this file to recreate the current configuration.
35587# Compiler output produced by configure, useful for debugging
35588# configure, is in config.log if it exists.
35589
35590debug=false
35591ac_cs_recheck=false
35592ac_cs_silent=false
35593SHELL=\${CONFIG_SHELL-$SHELL}
35594_ACEOF
35595
35596cat >>$CONFIG_STATUS <<\_ACEOF
35597## --------------------- ##
35598## M4sh Initialization. ##
35599## --------------------- ##
35600
35601# Be Bourne compatible
35602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35603 emulate sh
35604 NULLCMD=:
35605 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35606 # is contrary to our usage. Disable this feature.
35607 alias -g '${1+"$@"}'='"$@"'
35608elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35609 set -o posix
35610fi
35611
35612# Support unset when possible.
35613if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35614 as_unset=unset
35615else
35616 as_unset=false
35617fi
35618
35619
35620# Work around bugs in pre-3.0 UWIN ksh.
35621$as_unset ENV MAIL MAILPATH
35622PS1='$ '
35623PS2='> '
35624PS4='+ '
35625
35626# NLS nuisances.
35627for as_var in \
35628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35630 LC_TELEPHONE LC_TIME
35631do
35632 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35633 eval $as_var=C; export $as_var
35634 else
35635 $as_unset $as_var
35636 fi
35637done
35638
35639# Required to use basename.
35640if expr a : '\(a\)' >/dev/null 2>&1; then
35641 as_expr=expr
35642else
35643 as_expr=false
35644fi
35645
35646if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35647 as_basename=basename
35648else
35649 as_basename=false
35650fi
35651
35652
35653# Name of the executable.
35654as_me=`$as_basename "$0" ||
35655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35656 X"$0" : 'X\(//\)$' \| \
35657 X"$0" : 'X\(/\)$' \| \
35658 . : '\(.\)' 2>/dev/null ||
35659echo X/"$0" |
35660 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35661 /^X\/\(\/\/\)$/{ s//\1/; q; }
35662 /^X\/\(\/\).*/{ s//\1/; q; }
35663 s/.*/./; q'`
35664
35665
35666# PATH needs CR, and LINENO needs CR and PATH.
35667# Avoid depending upon Character Ranges.
35668as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35669as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35670as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35671as_cr_digits='0123456789'
35672as_cr_alnum=$as_cr_Letters$as_cr_digits
35673
35674# The user is always right.
35675if test "${PATH_SEPARATOR+set}" != set; then
35676 echo "#! /bin/sh" >conf$$.sh
35677 echo "exit 0" >>conf$$.sh
35678 chmod +x conf$$.sh
35679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35680 PATH_SEPARATOR=';'
35681 else
35682 PATH_SEPARATOR=:
35683 fi
35684 rm -f conf$$.sh
35685fi
35686
35687
35688 as_lineno_1=$LINENO
35689 as_lineno_2=$LINENO
35690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35691 test "x$as_lineno_1" != "x$as_lineno_2" &&
35692 test "x$as_lineno_3" = "x$as_lineno_2" || {
35693 # Find who we are. Look in the path if we contain no path at all
35694 # relative or not.
35695 case $0 in
35696 *[\\/]* ) as_myself=$0 ;;
35697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35698for as_dir in $PATH
35699do
35700 IFS=$as_save_IFS
35701 test -z "$as_dir" && as_dir=.
35702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35703done
35704
35705 ;;
35706 esac
35707 # We did not find ourselves, most probably we were run as `sh COMMAND'
35708 # in which case we are not to be found in the path.
35709 if test "x$as_myself" = x; then
35710 as_myself=$0
35711 fi
35712 if test ! -f "$as_myself"; then
35713 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35714echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35715 { (exit 1); exit 1; }; }
35716 fi
35717 case $CONFIG_SHELL in
35718 '')
35719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35720for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35721do
35722 IFS=$as_save_IFS
35723 test -z "$as_dir" && as_dir=.
35724 for as_base in sh bash ksh sh5; do
35725 case $as_dir in
35726 /*)
35727 if ("$as_dir/$as_base" -c '
35728 as_lineno_1=$LINENO
35729 as_lineno_2=$LINENO
35730 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35731 test "x$as_lineno_1" != "x$as_lineno_2" &&
35732 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35733 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35734 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35735 CONFIG_SHELL=$as_dir/$as_base
35736 export CONFIG_SHELL
35737 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35738 fi;;
35739 esac
35740 done
35741done
35742;;
35743 esac
35744
35745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35746 # uniformly replaced by the line number. The first 'sed' inserts a
35747 # line-number line before each line; the second 'sed' does the real
35748 # work. The second script uses 'N' to pair each line-number line
35749 # with the numbered line, and appends trailing '-' during
35750 # substitution so that $LINENO is not a special case at line end.
35751 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35752 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35753 sed '=' <$as_myself |
35754 sed '
35755 N
35756 s,$,-,
35757 : loop
35758 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35759 t loop
35760 s,-$,,
35761 s,^['$as_cr_digits']*\n,,
35762 ' >$as_me.lineno &&
35763 chmod +x $as_me.lineno ||
35764 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35765echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35766 { (exit 1); exit 1; }; }
35767
35768 # Don't try to exec as it changes $[0], causing all sort of problems
35769 # (the dirname of $[0] is not the place where we might find the
35770 # original and so on. Autoconf is especially sensible to this).
35771 . ./$as_me.lineno
35772 # Exit status is that of the last command.
35773 exit
35774}
35775
35776
35777case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35778 *c*,-n*) ECHO_N= ECHO_C='
35779' ECHO_T=' ' ;;
35780 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35781 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35782esac
35783
35784if expr a : '\(a\)' >/dev/null 2>&1; then
35785 as_expr=expr
35786else
35787 as_expr=false
35788fi
35789
35790rm -f conf$$ conf$$.exe conf$$.file
35791echo >conf$$.file
35792if ln -s conf$$.file conf$$ 2>/dev/null; then
35793 # We could just check for DJGPP; but this test a) works b) is more generic
35794 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35795 if test -f conf$$.exe; then
35796 # Don't use ln at all; we don't have any links
35797 as_ln_s='cp -p'
35798 else
35799 as_ln_s='ln -s'
35800 fi
35801elif ln conf$$.file conf$$ 2>/dev/null; then
35802 as_ln_s=ln
35803else
35804 as_ln_s='cp -p'
35805fi
35806rm -f conf$$ conf$$.exe conf$$.file
35807
35808if mkdir -p . 2>/dev/null; then
35809 as_mkdir_p=:
35810else
35811 as_mkdir_p=false
35812fi
35813
35814as_executable_p="test -f"
35815
35816# Sed expression to map a string onto a valid CPP name.
35817as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35818
35819# Sed expression to map a string onto a valid variable name.
35820as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35821
35822
35823# IFS
35824# We need space, tab and new line, in precisely that order.
35825as_nl='
35826'
35827IFS=" $as_nl"
35828
35829# CDPATH.
35830$as_unset CDPATH
35831
35832exec 6>&1
35833
35834# Open the log real soon, to keep \$[0] and so on meaningful, and to
35835# report actual input values of CONFIG_FILES etc. instead of their
35836# values after options handling. Logging --version etc. is OK.
35837exec 5>>config.log
35838{
35839 echo
35840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35841## Running $as_me. ##
35842_ASBOX
35843} >&5
35844cat >&5 <<_CSEOF
35845
35846This file was extended by wxWindows $as_me 2.5.0, which was
35847generated by GNU Autoconf 2.57. Invocation command line was
35848
35849 CONFIG_FILES = $CONFIG_FILES
35850 CONFIG_HEADERS = $CONFIG_HEADERS
35851 CONFIG_LINKS = $CONFIG_LINKS
35852 CONFIG_COMMANDS = $CONFIG_COMMANDS
35853 $ $0 $@
35854
35855_CSEOF
35856echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35857echo >&5
35858_ACEOF
35859
35860# Files that config.status was made for.
35861if test -n "$ac_config_files"; then
35862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35863fi
35864
35865if test -n "$ac_config_headers"; then
35866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35867fi
35868
35869if test -n "$ac_config_links"; then
35870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35871fi
35872
35873if test -n "$ac_config_commands"; then
35874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35875fi
35876
35877cat >>$CONFIG_STATUS <<\_ACEOF
35878
35879ac_cs_usage="\
35880\`$as_me' instantiates files from templates according to the
35881current configuration.
35882
35883Usage: $0 [OPTIONS] [FILE]...
35884
35885 -h, --help print this help, then exit
35886 -V, --version print version number, then exit
35887 -q, --quiet do not print progress messages
35888 -d, --debug don't remove temporary files
35889 --recheck update $as_me by reconfiguring in the same conditions
35890 --file=FILE[:TEMPLATE]
35891 instantiate the configuration file FILE
35892 --header=FILE[:TEMPLATE]
35893 instantiate the configuration header FILE
35894
35895Configuration files:
35896$config_files
35897
35898Configuration headers:
35899$config_headers
35900
35901Configuration commands:
35902$config_commands
35903
35904Report bugs to <bug-autoconf@gnu.org>."
35905_ACEOF
35906
35907cat >>$CONFIG_STATUS <<_ACEOF
35908ac_cs_version="\\
35909wxWindows config.status 2.5.0
35910configured by $0, generated by GNU Autoconf 2.57,
35911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35912
35913Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35914Free Software Foundation, Inc.
35915This config.status script is free software; the Free Software Foundation
35916gives unlimited permission to copy, distribute and modify it."
35917srcdir=$srcdir
35918INSTALL="$INSTALL"
35919_ACEOF
35920
35921cat >>$CONFIG_STATUS <<\_ACEOF
35922# If no file are specified by the user, then we need to provide default
35923# value. By we need to know if files were specified by the user.
35924ac_need_defaults=:
35925while test $# != 0
35926do
35927 case $1 in
35928 --*=*)
35929 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35930 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35931 ac_shift=:
35932 ;;
35933 -*)
35934 ac_option=$1
35935 ac_optarg=$2
35936 ac_shift=shift
35937 ;;
35938 *) # This is not an option, so the user has probably given explicit
35939 # arguments.
35940 ac_option=$1
35941 ac_need_defaults=false;;
35942 esac
35943
35944 case $ac_option in
35945 # Handling of the options.
35946_ACEOF
35947cat >>$CONFIG_STATUS <<\_ACEOF
35948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35949 ac_cs_recheck=: ;;
35950 --version | --vers* | -V )
35951 echo "$ac_cs_version"; exit 0 ;;
35952 --he | --h)
35953 # Conflict between --help and --header
35954 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35955Try \`$0 --help' for more information." >&5
35956echo "$as_me: error: ambiguous option: $1
35957Try \`$0 --help' for more information." >&2;}
35958 { (exit 1); exit 1; }; };;
35959 --help | --hel | -h )
35960 echo "$ac_cs_usage"; exit 0 ;;
35961 --debug | --d* | -d )
35962 debug=: ;;
35963 --file | --fil | --fi | --f )
35964 $ac_shift
35965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35966 ac_need_defaults=false;;
35967 --header | --heade | --head | --hea )
35968 $ac_shift
35969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35970 ac_need_defaults=false;;
35971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35973 ac_cs_silent=: ;;
35974
35975 # This is an error.
35976 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35977Try \`$0 --help' for more information." >&5
35978echo "$as_me: error: unrecognized option: $1
35979Try \`$0 --help' for more information." >&2;}
35980 { (exit 1); exit 1; }; } ;;
35981
35982 *) ac_config_targets="$ac_config_targets $1" ;;
35983
35984 esac
35985 shift
35986done
35987
35988ac_configure_extra_args=
35989
35990if $ac_cs_silent; then
35991 exec 6>/dev/null
35992 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35993fi
35994
e6cc62c6
VS
35995_ACEOF
35996cat >>$CONFIG_STATUS <<_ACEOF
35997if \$ac_cs_recheck; then
35998 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35999 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36000fi
36001
e6cc62c6 36002_ACEOF
fe0895cf 36003
e6cc62c6 36004cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36005#
e6cc62c6 36006# INIT-COMMANDS section.
10f2d63a 36007#
10f2d63a 36008
a0b9e27f 36009
e6cc62c6
VS
36010 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36011 LN_S="${LN_S}"
10f2d63a 36012
10f2d63a 36013
10f2d63a 36014
e6cc62c6 36015_ACEOF
8284b0c5 36016
52127426 36017
247f5006 36018
e6cc62c6
VS
36019cat >>$CONFIG_STATUS <<\_ACEOF
36020for ac_config_target in $ac_config_targets
247f5006 36021do
e6cc62c6
VS
36022 case "$ac_config_target" in
36023 # Handling of arguments.
81345eef
VZ
36024 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36025 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36026 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36027 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36028 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36029 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36031echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36032 { (exit 1); exit 1; }; };;
247f5006
VZ
36033 esac
36034done
36035
e6cc62c6
VS
36036# If the user did not use the arguments to specify the items to instantiate,
36037# then the envvar interface is used. Set only those that are not.
36038# We use the long form for the default assignment because of an extremely
36039# bizarre bug on SunOS 4.1.3.
36040if $ac_need_defaults; then
36041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36044fi
36045
36046# Have a temporary directory for convenience. Make it in the build tree
36047# simply because there is no reason to put it here, and in addition,
36048# creating and moving files from /tmp can sometimes cause problems.
36049# Create a temporary directory, and hook for its removal unless debugging.
36050$debug ||
36051{
36052 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36053 trap '{ (exit 1); exit 1; }' 1 2 13 15
36054}
247f5006 36055
e6cc62c6 36056# Create a (secure) tmp directory for tmp files.
247f5006 36057
e6cc62c6
VS
36058{
36059 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36060 test -n "$tmp" && test -d "$tmp"
36061} ||
36062{
36063 tmp=./confstat$$-$RANDOM
36064 (umask 077 && mkdir $tmp)
36065} ||
36066{
36067 echo "$me: cannot create a temporary directory in ." >&2
36068 { (exit 1); exit 1; }
36069}
36070
36071_ACEOF
36072
36073cat >>$CONFIG_STATUS <<_ACEOF
36074
36075#
36076# CONFIG_FILES section.
36077#
247f5006 36078
e6cc62c6
VS
36079# No need to generate the scripts if there are no CONFIG_FILES.
36080# This happens for instance when ./config.status config.h
36081if test -n "\$CONFIG_FILES"; then
36082 # Protect against being on the right side of a sed subst in config.status.
36083 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36084 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36085s,@SHELL@,$SHELL,;t t
36086s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36087s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36088s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36089s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36090s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36091s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36092s,@exec_prefix@,$exec_prefix,;t t
36093s,@prefix@,$prefix,;t t
36094s,@program_transform_name@,$program_transform_name,;t t
36095s,@bindir@,$bindir,;t t
36096s,@sbindir@,$sbindir,;t t
36097s,@libexecdir@,$libexecdir,;t t
36098s,@datadir@,$datadir,;t t
36099s,@sysconfdir@,$sysconfdir,;t t
36100s,@sharedstatedir@,$sharedstatedir,;t t
36101s,@localstatedir@,$localstatedir,;t t
36102s,@libdir@,$libdir,;t t
36103s,@includedir@,$includedir,;t t
36104s,@oldincludedir@,$oldincludedir,;t t
36105s,@infodir@,$infodir,;t t
36106s,@mandir@,$mandir,;t t
36107s,@build_alias@,$build_alias,;t t
36108s,@host_alias@,$host_alias,;t t
36109s,@target_alias@,$target_alias,;t t
36110s,@DEFS@,$DEFS,;t t
36111s,@ECHO_C@,$ECHO_C,;t t
36112s,@ECHO_N@,$ECHO_N,;t t
36113s,@ECHO_T@,$ECHO_T,;t t
36114s,@LIBS@,$LIBS,;t t
36115s,@build@,$build,;t t
36116s,@build_cpu@,$build_cpu,;t t
36117s,@build_vendor@,$build_vendor,;t t
36118s,@build_os@,$build_os,;t t
36119s,@host@,$host,;t t
36120s,@host_cpu@,$host_cpu,;t t
36121s,@host_vendor@,$host_vendor,;t t
36122s,@host_os@,$host_os,;t t
36123s,@target@,$target,;t t
36124s,@target_cpu@,$target_cpu,;t t
36125s,@target_vendor@,$target_vendor,;t t
36126s,@target_os@,$target_os,;t t
36127s,@CC@,$CC,;t t
36128s,@CFLAGS@,$CFLAGS,;t t
36129s,@LDFLAGS@,$LDFLAGS,;t t
36130s,@CPPFLAGS@,$CPPFLAGS,;t t
36131s,@ac_ct_CC@,$ac_ct_CC,;t t
36132s,@EXEEXT@,$EXEEXT,;t t
36133s,@OBJEXT@,$OBJEXT,;t t
36134s,@CPP@,$CPP,;t t
36135s,@EGREP@,$EGREP,;t t
36136s,@CXX@,$CXX,;t t
36137s,@CXXFLAGS@,$CXXFLAGS,;t t
36138s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36139s,@RANLIB@,$RANLIB,;t t
36140s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36141s,@AR@,$AR,;t t
36142s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36143s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36144s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36145s,@STRIP@,$STRIP,;t t
36146s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36147s,@LN_S@,$LN_S,;t t
36148s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36149s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36150s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36151s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36152s,@GTK_LIBS@,$GTK_LIBS,;t t
36153s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36154s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36155s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36156s,@X_CFLAGS@,$X_CFLAGS,;t t
36157s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36158s,@X_LIBS@,$X_LIBS,;t t
36159s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36160s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36161s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36162s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36163s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36164s,@RESCOMP@,$RESCOMP,;t t
36165s,@DEREZ@,$DEREZ,;t t
36166s,@SETFILE@,$SETFILE,;t t
36167s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36168s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36169s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36170s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36171s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36172s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36173s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36174s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36175s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36176s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36177s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36178s,@VENDOR@,$VENDOR,;t t
36179s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36180s,@WXUNIV@,$WXUNIV,;t t
36181s,@MONOLITHIC@,$MONOLITHIC,;t t
36182s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36183s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36184s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36185s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36186s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36187s,@UNICODE@,$UNICODE,;t t
36188s,@BUILD@,$BUILD,;t t
6c67131a
VS
36189s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36190s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36191s,@SHARED@,$SHARED,;t t
36192s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36193s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36194s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36195s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36196s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36197s,@SET_MAKE@,$SET_MAKE,;t t
36198s,@MAKE_SET@,$MAKE_SET,;t t
36199s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36200s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36201s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36202s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36203s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36204s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36205s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36206s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36207s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36208s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36209s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36210s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36211s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36212s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36213s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36214s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36215s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36216s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36217s,@PIC_FLAG@,$PIC_FLAG,;t t
36218s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36219s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36220s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36221s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36222s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36223s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36224s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36225s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36226s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36227s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36228s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36229s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36230s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36231s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36232s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36233s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36234s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36235s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36236s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36237s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36238s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36239s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36240s,@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 36241s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36242s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36243s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36244s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36245s,@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 36246s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36247s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36248s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36249s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36250s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36251s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36252s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36253s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36254s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36255s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36256s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36257s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36258s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36259s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36260s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36261s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36262s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36263s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36264s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36265s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36266s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36267s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36268s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36269s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36270s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36271s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36272s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36273s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36274s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36275s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36276s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36277s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36278s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36279s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36280s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36281s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36282s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36283s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36284s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36285s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36286s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36287s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36288s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36289s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36290s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36291s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36292s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36293s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36294s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36295s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36296s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36297s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36298s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36299s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36300s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36301s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36302s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36303s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36304s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36305s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36306s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36307s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36308s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36309s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36310s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36311s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36312s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36313s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36314s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36315s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36316s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36317s,@PATH_IFS@,$PATH_IFS,;t t
36318s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36319s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36320s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36321s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36322s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36323s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36324s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36325s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36326s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36327s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36328s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36329s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36330s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36331s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36332s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36333s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36334s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36335s,@WX_ALL@,$WX_ALL,;t t
36336s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36337s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36338s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36339s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36340s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36341s,@USE_GUI@,$USE_GUI,;t t
36342s,@AFMINSTALL@,$AFMINSTALL,;t t
36343s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36344s,@TOOLKIT@,$TOOLKIT,;t t
36345s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36346s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36347s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36348s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36349s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36350s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36351s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36352s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36353s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36354s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36355s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36356s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36357s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36358s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36359s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36360s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36361s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36362s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36363s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36364s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36365s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36366s,@GUIDIST@,$GUIDIST,;t t
36367s,@PORT_FILES@,$PORT_FILES,;t t
36368s,@DISTDIR@,$DISTDIR,;t t
36369s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36370s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36371s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36372s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36373s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36374s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36375s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36376s,@RESFLAGS@,$RESFLAGS,;t t
36377s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36378s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36379s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36380s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36381s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36382s,@MACRESCOMP@,$MACRESCOMP,;t t
36383s,@MACSETFILE@,$MACSETFILE,;t t
36384s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36385s,@GCC@,$GCC,;t t
36386s,@DLLTOOL@,$DLLTOOL,;t t
36387s,@AS@,$AS,;t t
36388s,@NM@,$NM,;t t
36389s,@LD@,$LD,;t t
36390s,@MAKEINFO@,$MAKEINFO,;t t
36391s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36392s,@LIBOBJS@,$LIBOBJS,;t t
36393s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36394CEOF
36395
e6cc62c6
VS
36396_ACEOF
36397
36398 cat >>$CONFIG_STATUS <<\_ACEOF
36399 # Split the substitutions into bite-sized pieces for seds with
36400 # small command number limits, like on Digital OSF/1 and HP-UX.
36401 ac_max_sed_lines=48
36402 ac_sed_frag=1 # Number of current file.
36403 ac_beg=1 # First line for current file.
36404 ac_end=$ac_max_sed_lines # Line after last line for current file.
36405 ac_more_lines=:
36406 ac_sed_cmds=
36407 while $ac_more_lines; do
36408 if test $ac_beg -gt 1; then
36409 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36410 else
e6cc62c6
VS
36411 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36412 fi
36413 if test ! -s $tmp/subs.frag; then
36414 ac_more_lines=false
36415 else
36416 # The purpose of the label and of the branching condition is to
36417 # speed up the sed processing (if there are no `@' at all, there
36418 # is no need to browse any of the substitutions).
36419 # These are the two extra sed commands mentioned above.
36420 (echo ':t
36421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36422 if test -z "$ac_sed_cmds"; then
36423 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36424 else
36425 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36426 fi
36427 ac_sed_frag=`expr $ac_sed_frag + 1`
36428 ac_beg=$ac_end
36429 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36430 fi
e6cc62c6
VS
36431 done
36432 if test -z "$ac_sed_cmds"; then
36433 ac_sed_cmds=cat
10f2d63a 36434 fi
e6cc62c6 36435fi # test -n "$CONFIG_FILES"
10f2d63a 36436
e6cc62c6
VS
36437_ACEOF
36438cat >>$CONFIG_STATUS <<\_ACEOF
36439for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36441 case $ac_file in
36442 - | *:- | *:-:* ) # input from stdin
36443 cat >$tmp/stdin
36444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36448 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36449 esac
247f5006 36450
e6cc62c6
VS
36451 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36453$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36454 X"$ac_file" : 'X\(//\)[^/]' \| \
36455 X"$ac_file" : 'X\(//\)$' \| \
36456 X"$ac_file" : 'X\(/\)' \| \
36457 . : '\(.\)' 2>/dev/null ||
36458echo X"$ac_file" |
36459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36461 /^X\(\/\/\)$/{ s//\1/; q; }
36462 /^X\(\/\).*/{ s//\1/; q; }
36463 s/.*/./; q'`
36464 { if $as_mkdir_p; then
36465 mkdir -p "$ac_dir"
a0b9e27f 36466 else
e6cc62c6
VS
36467 as_dir="$ac_dir"
36468 as_dirs=
36469 while test ! -d "$as_dir"; do
36470 as_dirs="$as_dir $as_dirs"
36471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36473 X"$as_dir" : 'X\(//\)[^/]' \| \
36474 X"$as_dir" : 'X\(//\)$' \| \
36475 X"$as_dir" : 'X\(/\)' \| \
36476 . : '\(.\)' 2>/dev/null ||
36477echo X"$as_dir" |
36478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36480 /^X\(\/\/\)$/{ s//\1/; q; }
36481 /^X\(\/\).*/{ s//\1/; q; }
36482 s/.*/./; q'`
36483 done
36484 test ! -n "$as_dirs" || mkdir $as_dirs
36485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36486echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36487 { (exit 1); exit 1; }; }; }
36488
36489 ac_builddir=.
36490
36491if test "$ac_dir" != .; then
36492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36493 # A "../" for each directory in $ac_dir_suffix.
36494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36495else
36496 ac_dir_suffix= ac_top_builddir=
36497fi
247f5006 36498
e6cc62c6
VS
36499case $srcdir in
36500 .) # No --srcdir option. We are building in place.
36501 ac_srcdir=.
36502 if test -z "$ac_top_builddir"; then
36503 ac_top_srcdir=.
36504 else
36505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36506 fi ;;
36507 [\\/]* | ?:[\\/]* ) # Absolute path.
36508 ac_srcdir=$srcdir$ac_dir_suffix;
36509 ac_top_srcdir=$srcdir ;;
247f5006 36510 *) # Relative path.
e6cc62c6
VS
36511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36512 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36513esac
36514# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36515# absolute.
36516ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36517ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36518ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36519ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36520
247f5006 36521
e6cc62c6
VS
36522 case $INSTALL in
36523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36524 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36525 esac
247f5006 36526
e6cc62c6
VS
36527 if test x"$ac_file" != x-; then
36528 { echo "$as_me:$LINENO: creating $ac_file" >&5
36529echo "$as_me: creating $ac_file" >&6;}
36530 rm -f "$ac_file"
36531 fi
36532 # Let's still pretend it is `configure' which instantiates (i.e., don't
36533 # use $as_me), people would be surprised to read:
36534 # /* config.h. Generated by config.status. */
36535 if test x"$ac_file" = x-; then
36536 configure_input=
36537 else
36538 configure_input="$ac_file. "
36539 fi
36540 configure_input=$configure_input"Generated from `echo $ac_file_in |
36541 sed 's,.*/,,'` by configure."
36542
36543 # First look for the input files in the build tree, otherwise in the
36544 # src tree.
36545 ac_file_inputs=`IFS=:
36546 for f in $ac_file_in; do
36547 case $f in
36548 -) echo $tmp/stdin ;;
36549 [\\/$]*)
36550 # Absolute (can't be DOS-style, as IFS=:)
36551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36552echo "$as_me: error: cannot find input file: $f" >&2;}
36553 { (exit 1); exit 1; }; }
36554 echo $f;;
36555 *) # Relative
36556 if test -f "$f"; then
36557 # Build tree
36558 echo $f
36559 elif test -f "$srcdir/$f"; then
36560 # Source tree
36561 echo $srcdir/$f
36562 else
36563 # /dev/null tree
36564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36565echo "$as_me: error: cannot find input file: $f" >&2;}
36566 { (exit 1); exit 1; }; }
36567 fi;;
36568 esac
36569 done` || { (exit 1); exit 1; }
36570_ACEOF
36571cat >>$CONFIG_STATUS <<_ACEOF
36572 sed "$ac_vpsub
36573$extrasub
36574_ACEOF
36575cat >>$CONFIG_STATUS <<\_ACEOF
36576:t
36577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36578s,@configure_input@,$configure_input,;t t
36579s,@srcdir@,$ac_srcdir,;t t
36580s,@abs_srcdir@,$ac_abs_srcdir,;t t
36581s,@top_srcdir@,$ac_top_srcdir,;t t
36582s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36583s,@builddir@,$ac_builddir,;t t
36584s,@abs_builddir@,$ac_abs_builddir,;t t
36585s,@top_builddir@,$ac_top_builddir,;t t
36586s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36587s,@INSTALL@,$ac_INSTALL,;t t
36588" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36589 rm -f $tmp/stdin
36590 if test x"$ac_file" != x-; then
36591 mv $tmp/out $ac_file
36592 else
36593 cat $tmp/out
36594 rm -f $tmp/out
36595 fi
36596
36597done
36598_ACEOF
36599cat >>$CONFIG_STATUS <<\_ACEOF
36600
36601#
36602# CONFIG_HEADER section.
36603#
10f2d63a
VZ
36604
36605# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36606# NAME is the cpp macro being defined and VALUE is the value it is being given.
36607#
36608# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36609ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36610ac_dB='[ ].*$,\1#\2'
36611ac_dC=' '
36612ac_dD=',;t'
36613# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36614ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36615ac_uB='$,\1#\2define\3'
10f2d63a 36616ac_uC=' '
e6cc62c6
VS
36617ac_uD=',;t'
36618
36619for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36621 case $ac_file in
36622 - | *:- | *:-:* ) # input from stdin
36623 cat >$tmp/stdin
36624 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36626 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36628 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36629 esac
36630
e6cc62c6
VS
36631 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36632echo "$as_me: creating $ac_file" >&6;}
36633
36634 # First look for the input files in the build tree, otherwise in the
36635 # src tree.
36636 ac_file_inputs=`IFS=:
36637 for f in $ac_file_in; do
36638 case $f in
36639 -) echo $tmp/stdin ;;
36640 [\\/$]*)
36641 # Absolute (can't be DOS-style, as IFS=:)
36642 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36643echo "$as_me: error: cannot find input file: $f" >&2;}
36644 { (exit 1); exit 1; }; }
36645 echo $f;;
36646 *) # Relative
36647 if test -f "$f"; then
36648 # Build tree
36649 echo $f
36650 elif test -f "$srcdir/$f"; then
36651 # Source tree
36652 echo $srcdir/$f
36653 else
36654 # /dev/null tree
36655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36656echo "$as_me: error: cannot find input file: $f" >&2;}
36657 { (exit 1); exit 1; }; }
36658 fi;;
36659 esac
36660 done` || { (exit 1); exit 1; }
36661 # Remove the trailing spaces.
36662 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36663
36664_ACEOF
36665
36666# Transform confdefs.h into two sed scripts, `conftest.defines' and
36667# `conftest.undefs', that substitutes the proper values into
36668# config.h.in to produce config.h. The first handles `#define'
36669# templates, and the second `#undef' templates.
36670# And first: Protect against being on the right side of a sed subst in
36671# config.status. Protect against being in an unquoted here document
36672# in config.status.
36673rm -f conftest.defines conftest.undefs
36674# Using a here document instead of a string reduces the quoting nightmare.
36675# Putting comments in sed scripts is not portable.
36676#
36677# `end' is used to avoid that the second main sed command (meant for
36678# 0-ary CPP macros) applies to n-ary macro definitions.
36679# See the Autoconf documentation for `clear'.
36680cat >confdef2sed.sed <<\_ACEOF
36681s/[\\&,]/\\&/g
36682s,[\\$`],\\&,g
36683t clear
36684: clear
36685s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36686t end
36687s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36688: end
36689_ACEOF
36690# If some macros were called several times there might be several times
36691# the same #defines, which is useless. Nevertheless, we may not want to
36692# sort them, since we want the *last* AC-DEFINE to be honored.
36693uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36694sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36695rm -f confdef2sed.sed
10f2d63a
VZ
36696
36697# This sed command replaces #undef with comments. This is necessary, for
36698# example, in the case of _POSIX_SOURCE, which is predefined and required
36699# on some systems where configure will not decide to define it.
e6cc62c6
VS
36700cat >>conftest.undefs <<\_ACEOF
36701s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36702_ACEOF
36703
36704# Break up conftest.defines because some shells have a limit on the size
36705# of here documents, and old seds have small limits too (100 cmds).
36706echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36707echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36708echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36709echo ' :' >>$CONFIG_STATUS
36710rm -f conftest.tail
36711while grep . conftest.defines >/dev/null
36712do
36713 # Write a limited-size here document to $tmp/defines.sed.
36714 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36715 # Speed up: don't consider the non `#define' lines.
36716 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36717 # Work around the forget-to-reset-the-flag bug.
36718 echo 't clr' >>$CONFIG_STATUS
36719 echo ': clr' >>$CONFIG_STATUS
36720 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36721 echo 'CEOF
36722 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36723 rm -f $tmp/in
36724 mv $tmp/out $tmp/in
36725' >>$CONFIG_STATUS
36726 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36727 rm -f conftest.defines
36728 mv conftest.tail conftest.defines
36729done
36730rm -f conftest.defines
36731echo ' fi # grep' >>$CONFIG_STATUS
36732echo >>$CONFIG_STATUS
10f2d63a 36733
e6cc62c6
VS
36734# Break up conftest.undefs because some shells have a limit on the size
36735# of here documents, and old seds have small limits too (100 cmds).
36736echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36737rm -f conftest.tail
e6cc62c6 36738while grep . conftest.undefs >/dev/null
10f2d63a 36739do
e6cc62c6
VS
36740 # Write a limited-size here document to $tmp/undefs.sed.
36741 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36742 # Speed up: don't consider the non `#undef'
36743 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36744 # Work around the forget-to-reset-the-flag bug.
36745 echo 't clr' >>$CONFIG_STATUS
36746 echo ': clr' >>$CONFIG_STATUS
36747 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36748 echo 'CEOF
e6cc62c6
VS
36749 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36750 rm -f $tmp/in
36751 mv $tmp/out $tmp/in
36752' >>$CONFIG_STATUS
36753 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36754 rm -f conftest.undefs
36755 mv conftest.tail conftest.undefs
10f2d63a 36756done
e6cc62c6
VS
36757rm -f conftest.undefs
36758
36759cat >>$CONFIG_STATUS <<\_ACEOF
36760 # Let's still pretend it is `configure' which instantiates (i.e., don't
36761 # use $as_me), people would be surprised to read:
36762 # /* config.h. Generated by config.status. */
36763 if test x"$ac_file" = x-; then
36764 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36765 else
e6cc62c6 36766 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36767 fi
e6cc62c6
VS
36768 cat $tmp/in >>$tmp/config.h
36769 rm -f $tmp/in
36770 if test x"$ac_file" != x-; then
36771 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36773echo "$as_me: $ac_file is unchanged" >&6;}
36774 else
36775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36777 X"$ac_file" : 'X\(//\)[^/]' \| \
36778 X"$ac_file" : 'X\(//\)$' \| \
36779 X"$ac_file" : 'X\(/\)' \| \
36780 . : '\(.\)' 2>/dev/null ||
36781echo X"$ac_file" |
36782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36784 /^X\(\/\/\)$/{ s//\1/; q; }
36785 /^X\(\/\).*/{ s//\1/; q; }
36786 s/.*/./; q'`
36787 { if $as_mkdir_p; then
36788 mkdir -p "$ac_dir"
36789 else
36790 as_dir="$ac_dir"
36791 as_dirs=
36792 while test ! -d "$as_dir"; do
36793 as_dirs="$as_dir $as_dirs"
36794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36796 X"$as_dir" : 'X\(//\)[^/]' \| \
36797 X"$as_dir" : 'X\(//\)$' \| \
36798 X"$as_dir" : 'X\(/\)' \| \
36799 . : '\(.\)' 2>/dev/null ||
36800echo X"$as_dir" |
36801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36803 /^X\(\/\/\)$/{ s//\1/; q; }
36804 /^X\(\/\).*/{ s//\1/; q; }
36805 s/.*/./; q'`
36806 done
36807 test ! -n "$as_dirs" || mkdir $as_dirs
36808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36809echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36810 { (exit 1); exit 1; }; }; }
a0b9e27f 36811
e6cc62c6
VS
36812 rm -f $ac_file
36813 mv $tmp/config.h $ac_file
36814 fi
36815 else
36816 cat $tmp/config.h
36817 rm -f $tmp/config.h
36818 fi
36819done
36820_ACEOF
36821cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36822
e6cc62c6
VS
36823#
36824# CONFIG_COMMANDS section.
36825#
36826for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36827 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36828 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36829 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36830$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36831 X"$ac_dest" : 'X\(//\)[^/]' \| \
36832 X"$ac_dest" : 'X\(//\)$' \| \
36833 X"$ac_dest" : 'X\(/\)' \| \
36834 . : '\(.\)' 2>/dev/null ||
36835echo X"$ac_dest" |
36836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36838 /^X\(\/\/\)$/{ s//\1/; q; }
36839 /^X\(\/\).*/{ s//\1/; q; }
36840 s/.*/./; q'`
36841 ac_builddir=.
36842
36843if test "$ac_dir" != .; then
36844 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36845 # A "../" for each directory in $ac_dir_suffix.
36846 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36847else
36848 ac_dir_suffix= ac_top_builddir=
36849fi
36850
36851case $srcdir in
36852 .) # No --srcdir option. We are building in place.
36853 ac_srcdir=.
36854 if test -z "$ac_top_builddir"; then
36855 ac_top_srcdir=.
36856 else
36857 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36858 fi ;;
36859 [\\/]* | ?:[\\/]* ) # Absolute path.
36860 ac_srcdir=$srcdir$ac_dir_suffix;
36861 ac_top_srcdir=$srcdir ;;
36862 *) # Relative path.
36863 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36864 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36865esac
36866# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36867# absolute.
36868ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36869ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36870ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36871ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36872
36873
36874 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36875echo "$as_me: executing $ac_dest commands" >&6;}
36876 case $ac_dest in
36877 default )
652d930d 36878 if test ! -h wx-config; then
991a5759 36879 chmod +x wx-config
3a922bb4
RL
36880 mv wx-config wx${TOOLCHAIN_NAME}-config
36881 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36882 fi
665bbe97 36883
00cf1208
RR
36884 if test ! -d lib; then
36885 mkdir lib
36886 fi
36887 if test ! -d lib/wx; then
36888 mkdir lib/wx
36889 fi
36890 if test ! -d lib/wx/include; then
36891 mkdir lib/wx/include
36892 fi
3a922bb4
RL
36893 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36894 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36895 fi
3a922bb4
RL
36896 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36897 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36898 fi
36899 if test -f setup.h; then
3a922bb4 36900 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36901 fi
e6cc62c6
VS
36902 ;;
36903 esac
36904done
36905_ACEOF
2224580a 36906
e6cc62c6 36907cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36908
e6cc62c6
VS
36909{ (exit 0); exit 0; }
36910_ACEOF
36911chmod +x $CONFIG_STATUS
36912ac_clean_files=$ac_clean_files_save
36913
36914
36915# configure is writing to config.log, and then calls config.status.
36916# config.status does its own redirection, appending to config.log.
36917# Unfortunately, on DOS this fails, as config.log is still kept open
36918# by configure, so config.status won't be able to write to it; its
36919# output is simply discarded. So we exec the FD to /dev/null,
36920# effectively closing config.log, so it can be properly (re)opened and
36921# appended to by config.status. When coming back to configure, we
36922# need to make the FD available again.
36923if test "$no_create" != yes; then
36924 ac_cs_success=:
36925 ac_config_status_args=
36926 test "$silent" = yes &&
36927 ac_config_status_args="$ac_config_status_args --quiet"
36928 exec 5>/dev/null
36929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36930 exec 5>>config.log
36931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36932 # would make configure fail if this is the last instruction.
36933 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36934fi
36935
672abd7a
VS
36936#
36937# CONFIG_SUBDIRS section.
36938#
36939if test "$no_recursion" != yes; then
36940
36941 # Remove --cache-file and --srcdir arguments so they do not pile up.
36942 ac_sub_configure_args=
36943 ac_prev=
36944 for ac_arg in $ac_configure_args; do
36945 if test -n "$ac_prev"; then
36946 ac_prev=
36947 continue
36948 fi
36949 case $ac_arg in
36950 -cache-file | --cache-file | --cache-fil | --cache-fi \
36951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36952 ac_prev=cache_file ;;
36953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36955 | --c=*)
36956 ;;
36957 --config-cache | -C)
36958 ;;
36959 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36960 ac_prev=srcdir ;;
36961 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36962 ;;
36963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36964 ac_prev=prefix ;;
36965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36966 ;;
36967 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36968 esac
36969 done
36970
36971 # Always prepend --prefix to ensure using the same prefix
36972 # in subdir configurations.
36973 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36974
36975 ac_popdir=`pwd`
36976 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36977
36978 # Do not complain, so a configure script can configure whichever
36979 # parts of a large source tree are present.
36980 test -d $srcdir/$ac_dir || continue
36981
36982 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36983echo "$as_me: configuring in $ac_dir" >&6;}
36984 { if $as_mkdir_p; then
36985 mkdir -p "$ac_dir"
36986 else
36987 as_dir="$ac_dir"
36988 as_dirs=
36989 while test ! -d "$as_dir"; do
36990 as_dirs="$as_dir $as_dirs"
36991 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36992$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36993 X"$as_dir" : 'X\(//\)[^/]' \| \
36994 X"$as_dir" : 'X\(//\)$' \| \
36995 X"$as_dir" : 'X\(/\)' \| \
36996 . : '\(.\)' 2>/dev/null ||
36997echo X"$as_dir" |
36998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37000 /^X\(\/\/\)$/{ s//\1/; q; }
37001 /^X\(\/\).*/{ s//\1/; q; }
37002 s/.*/./; q'`
37003 done
37004 test ! -n "$as_dirs" || mkdir $as_dirs
37005 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37006echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37007 { (exit 1); exit 1; }; }; }
37008
37009 ac_builddir=.
37010
37011if test "$ac_dir" != .; then
37012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37013 # A "../" for each directory in $ac_dir_suffix.
37014 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37015else
37016 ac_dir_suffix= ac_top_builddir=
37017fi
37018
37019case $srcdir in
37020 .) # No --srcdir option. We are building in place.
37021 ac_srcdir=.
37022 if test -z "$ac_top_builddir"; then
37023 ac_top_srcdir=.
37024 else
37025 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37026 fi ;;
37027 [\\/]* | ?:[\\/]* ) # Absolute path.
37028 ac_srcdir=$srcdir$ac_dir_suffix;
37029 ac_top_srcdir=$srcdir ;;
37030 *) # Relative path.
37031 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37032 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37033esac
37034# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37035# absolute.
37036ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37037ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37038ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37039ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37040
37041
37042 cd $ac_dir
37043
37044 # Check for guested configure; otherwise get Cygnus style configure.
37045 if test -f $ac_srcdir/configure.gnu; then
37046 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37047 elif test -f $ac_srcdir/configure; then
37048 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37049 elif test -f $ac_srcdir/configure.in; then
37050 ac_sub_configure=$ac_configure
37051 else
37052 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37053echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37054 ac_sub_configure=
37055 fi
37056
37057 # The recursion is here.
37058 if test -n "$ac_sub_configure"; then
37059 # Make the cache file name correct relative to the subdirectory.
37060 case $cache_file in
37061 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37062 *) # Relative path.
37063 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37064 esac
37065
37066 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37067echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37068 # The eval makes quoting arguments work.
37069 eval $ac_sub_configure $ac_sub_configure_args \
37070 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37071 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37072echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37073 { (exit 1); exit 1; }; }
37074 fi
37075
37076 cd $ac_popdir
37077 done
37078fi
37079
8284b0c5 37080
2b5f62a0
VZ
37081echo
37082echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37083echo ""
37084echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37085echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37086
37087echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37088echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37089echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37090
0c98a14e 37091echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37092echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37093echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37094
2b5f62a0
VZ
37095echo " Which libraries should wxWindows use?"
37096echo " jpeg ${wxUSE_LIBJPEG-none}"
37097echo " png ${wxUSE_LIBPNG-none}"
37098echo " regex ${wxUSE_REGEX}"
37099echo " tiff ${wxUSE_LIBTIFF-none}"
37100echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37101echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37102echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37103
37104echo ""
37105