]> git.saurik.com Git - wxWidgets.git/blame - configure
don't change WXWIN_COMPATIBLITY settings, it affects binary compatibility
[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"
eb69fda5 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 SO_SUFFIX SO_SUFFIX_MODULE 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_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_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_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 LEX_STEM 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
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
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"
10f2d63a
VZ
1896 ;;
1897
d08b457b
GD
1898 powerpc-*-darwin* )
1899 USE_BSD=1
f11bdd03 1900 USE_DARWIN=1
3a922bb4 1901 SO_SUFFIX=dylib
e6cc62c6 1902 cat >>confdefs.h <<\_ACEOF
f11bdd03 1903#define __BSD__ 1
e6cc62c6 1904_ACEOF
b4085ce6 1905
e6cc62c6 1906 cat >>confdefs.h <<\_ACEOF
f11bdd03 1907#define __DARWIN__ 1
e6cc62c6 1908_ACEOF
d08b457b 1909
e6cc62c6 1910 cat >>confdefs.h <<\_ACEOF
d08b457b 1911#define __POWERPC__ 1
e6cc62c6 1912_ACEOF
82d43113 1913
e6cc62c6 1914 cat >>confdefs.h <<\_ACEOF
82d43113 1915#define TARGET_CARBON 1
e6cc62c6 1916_ACEOF
b4085ce6
GD
1917
1918 DEFAULT_DEFAULT_wxUSE_MAC=1
1919 ;;
1920
b12915c1
VZ
1921 *-*-beos* )
1922 USE_BEOS=1
e6cc62c6 1923 cat >>confdefs.h <<\_ACEOF
b12915c1 1924#define __BEOS__ 1
e6cc62c6 1925_ACEOF
b12915c1
VZ
1926
1927 ;;
1928
10f2d63a 1929 *)
e6cc62c6
VS
1930 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1931echo "$as_me: error: unknown system type ${host}." >&2;}
1932 { (exit 1); exit 1; }; }
10f2d63a
VZ
1933esac
1934
8284b0c5
MB
1935
1936
1937
1938 wx_arg_cache_file="configarg.cache"
1939 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1940 rm -f ${wx_arg_cache_file}.tmp
1941 touch ${wx_arg_cache_file}.tmp
1942 touch ${wx_arg_cache_file}
e6cc62c6 1943
10f2d63a
VZ
1944
1945DEBUG_CONFIGURE=0
1946if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1947 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1948 DEFAULT_wxUSE_STL=no
1e6feb95 1949
d8356fa3
VZ
1950 DEFAULT_wxUSE_NANOX=no
1951
10f2d63a
VZ
1952 DEFAULT_wxUSE_THREADS=yes
1953
1954 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1955 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1956 DEFAULT_wxUSE_PROFILE=no
1957 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1958 DEFAULT_wxUSE_NO_RTTI=no
1959 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1960 DEFAULT_wxUSE_PERMISSIVE=no
1961 DEFAULT_wxUSE_DEBUG_FLAG=yes
1962 DEFAULT_wxUSE_DEBUG_INFO=yes
1963 DEFAULT_wxUSE_DEBUG_GDB=yes
1964 DEFAULT_wxUSE_MEM_TRACING=no
1965 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1966 DEFAULT_wxUSE_DMALLOC=no
1967 DEFAULT_wxUSE_APPLE_IEEE=no
1968
1969 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1970 DEFAULT_wxUSE_LOGWINDOW=no
1971 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1972 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1973
1974 DEFAULT_wxUSE_GUI=yes
1e6feb95 1975 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1976
3e44f09d 1977 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1978 DEFAULT_wxUSE_XML=no
1979 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1980 DEFAULT_wxUSE_ZLIB=no
1981 DEFAULT_wxUSE_LIBPNG=no
1982 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1983 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1984 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1985 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1986
eb4efbdc 1987 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1988 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1989 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1990 DEFAULT_wxUSE_CMDLINE_PARSER=no
1991 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1992 DEFAULT_wxUSE_TIMER=no
1993 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1994 DEFAULT_wxUSE_FILE=no
1e6feb95 1995 DEFAULT_wxUSE_FFILE=no
a3a584a7 1996 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1997 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1998 DEFAULT_wxUSE_WAVE=no
1999 DEFAULT_wxUSE_INTL=no
2000 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2001 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2002 DEFAULT_wxUSE_STREAMS=no
2003 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2004 DEFAULT_wxUSE_OLE=no
2005 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2006 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2007 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2008 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2009 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2010 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2011 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2012
2013 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2014 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2015 DEFAULT_wxUSE_POSTSCRIPT=no
2016
10f2d63a
VZ
2017 DEFAULT_wxUSE_CLIPBOARD=no
2018 DEFAULT_wxUSE_TOOLTIPS=no
2019 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2020 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2021 DEFAULT_wxUSE_SPLINES=no
2022
2023 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2024 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2025 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2026
10f2d63a
VZ
2027 DEFAULT_wxUSE_RESOURCES=no
2028 DEFAULT_wxUSE_CONSTRAINTS=no
2029 DEFAULT_wxUSE_IPC=no
2030 DEFAULT_wxUSE_HELP=no
29fd3c0c 2031 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2032 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2033 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2034 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2035 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2036 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2037 DEFAULT_wxUSE_PROTOCOL=no
2038 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2039 DEFAULT_wxUSE_PROTOCOL_FTP=no
2040 DEFAULT_wxUSE_PROTOCOL_FILE=no
2041 DEFAULT_wxUSE_URL=no
3bd8fb5f 2042
10f2d63a 2043 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2044 DEFAULT_wxUSE_CHOICEDLG=no
2045 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2046 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2047 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2048 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2049 DEFAULT_wxUSE_FONTDLG=no
2050 DEFAULT_wxUSE_MSGDLG=no
2051 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2052 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2053 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_STARTUP_TIPS=no
2055 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2056 DEFAULT_wxUSE_WIZARDDLG=no
2057
1e6feb95 2058 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2059 DEFAULT_wxUSE_MINIFRAME=no
2060 DEFAULT_wxUSE_HTML=no
24528b0c 2061 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2062 DEFAULT_wxUSE_FS_INET=no
2063 DEFAULT_wxUSE_FS_ZIP=no
2064 DEFAULT_wxUSE_BUSYINFO=no
2065 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2066 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2067
2068 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2069 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2070 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2071 DEFAULT_wxUSE_CALCTRL=no
2072 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2073 DEFAULT_wxUSE_CHECKBOX=no
2074 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2075 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2076 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2077 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2078 DEFAULT_wxUSE_GAUGE=no
2079 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2080 DEFAULT_wxUSE_IMAGLIST=no
2081 DEFAULT_wxUSE_LISTBOX=no
2082 DEFAULT_wxUSE_LISTCTRL=no
2083 DEFAULT_wxUSE_NOTEBOOK=no
2084 DEFAULT_wxUSE_RADIOBOX=no
2085 DEFAULT_wxUSE_RADIOBTN=no
2086 DEFAULT_wxUSE_SASH=no
2087 DEFAULT_wxUSE_SCROLLBAR=no
2088 DEFAULT_wxUSE_SLIDER=no
2089 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2090 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2091 DEFAULT_wxUSE_SPLITTER=no
2092 DEFAULT_wxUSE_STATBMP=no
2093 DEFAULT_wxUSE_STATBOX=no
2094 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2095 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2096 DEFAULT_wxUSE_STATUSBAR=yes
2097 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2098 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2099 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2100 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2101 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2102 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2103 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2104 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2105 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2106
2107 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2108 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2109 DEFAULT_wxUSE_WCSRTOMBS=no
2110
edae8572 2111 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2112 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2113 DEFAULT_wxUSE_GIF=no
2114 DEFAULT_wxUSE_PCX=no
2115 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2116 DEFAULT_wxUSE_IFF=no
0046ff7c 2117 DEFAULT_wxUSE_XPM=no
658974ae 2118 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2119 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2120
e9e0dc15 2121 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2122 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2123else
1e6feb95 2124 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2125 DEFAULT_wxUSE_STL=no
1e6feb95 2126
d8356fa3
VZ
2127 DEFAULT_wxUSE_NANOX=no
2128
10f2d63a
VZ
2129 DEFAULT_wxUSE_THREADS=yes
2130
2131 DEFAULT_wxUSE_SHARED=yes
2132 DEFAULT_wxUSE_OPTIMISE=yes
2133 DEFAULT_wxUSE_PROFILE=no
2134 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2135 DEFAULT_wxUSE_NO_RTTI=no
2136 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2137 DEFAULT_wxUSE_PERMISSIVE=no
2138 DEFAULT_wxUSE_DEBUG_FLAG=no
2139 DEFAULT_wxUSE_DEBUG_INFO=no
2140 DEFAULT_wxUSE_DEBUG_GDB=no
2141 DEFAULT_wxUSE_MEM_TRACING=no
2142 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2143 DEFAULT_wxUSE_DMALLOC=no
2144 DEFAULT_wxUSE_APPLE_IEEE=yes
2145
2146 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2147 DEFAULT_wxUSE_LOGWINDOW=yes
2148 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2149 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2150
2151 DEFAULT_wxUSE_GUI=yes
2152
831b3152 2153 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2154 DEFAULT_wxUSE_XML=yes
2155 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2156 DEFAULT_wxUSE_ZLIB=yes
2157 DEFAULT_wxUSE_LIBPNG=yes
2158 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2159 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2160 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2161 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2162
eb4efbdc 2163 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2164 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2165 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2166 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2167 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2168 DEFAULT_wxUSE_TIMER=yes
2169 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2170 DEFAULT_wxUSE_FILE=yes
1e6feb95 2171 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2172 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2173 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2174 DEFAULT_wxUSE_WAVE=no
2175 DEFAULT_wxUSE_INTL=yes
2176 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2177 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2178 DEFAULT_wxUSE_STREAMS=yes
2179 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2180 DEFAULT_wxUSE_OLE=yes
2181 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2182 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2183 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2184 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2185 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2186 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2187 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2188
2189 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2190 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2191 DEFAULT_wxUSE_POSTSCRIPT=yes
2192
10f2d63a
VZ
2193 DEFAULT_wxUSE_CLIPBOARD=yes
2194 DEFAULT_wxUSE_TOOLTIPS=yes
2195 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2196 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2197 DEFAULT_wxUSE_SPLINES=yes
2198
2199 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2200 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2201 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2202
2b5f62a0 2203 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2204 DEFAULT_wxUSE_CONSTRAINTS=yes
2205 DEFAULT_wxUSE_IPC=yes
2206 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2207 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2208 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2209 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2210 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2211 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2212 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2213 DEFAULT_wxUSE_PROTOCOL=yes
2214 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2215 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2216 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2217 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2218
2219 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2220 DEFAULT_wxUSE_CHOICEDLG=yes
2221 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2222 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2223 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2224 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2225 DEFAULT_wxUSE_FONTDLG=yes
2226 DEFAULT_wxUSE_MSGDLG=yes
2227 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2228 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2229 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2230 DEFAULT_wxUSE_STARTUP_TIPS=yes
2231 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2232 DEFAULT_wxUSE_WIZARDDLG=yes
2233
1e6feb95 2234 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2235 DEFAULT_wxUSE_MINIFRAME=yes
2236 DEFAULT_wxUSE_HTML=yes
24528b0c 2237 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2238 DEFAULT_wxUSE_FS_INET=yes
2239 DEFAULT_wxUSE_FS_ZIP=yes
2240 DEFAULT_wxUSE_BUSYINFO=yes
2241 DEFAULT_wxUSE_ZIPSTREAM=yes
2242 DEFAULT_wxUSE_VALIDATORS=yes
2243
2244 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2245 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2246 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2247 DEFAULT_wxUSE_CALCTRL=yes
2248 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2249 DEFAULT_wxUSE_CHECKBOX=yes
2250 DEFAULT_wxUSE_CHECKLST=yes
2251 DEFAULT_wxUSE_CHOICE=yes
2252 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2253 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2254 DEFAULT_wxUSE_GAUGE=yes
2255 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2256 DEFAULT_wxUSE_IMAGLIST=yes
2257 DEFAULT_wxUSE_LISTBOX=yes
2258 DEFAULT_wxUSE_LISTCTRL=yes
2259 DEFAULT_wxUSE_NOTEBOOK=yes
2260 DEFAULT_wxUSE_RADIOBOX=yes
2261 DEFAULT_wxUSE_RADIOBTN=yes
2262 DEFAULT_wxUSE_SASH=yes
2263 DEFAULT_wxUSE_SCROLLBAR=yes
2264 DEFAULT_wxUSE_SLIDER=yes
2265 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2266 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2267 DEFAULT_wxUSE_SPLITTER=yes
2268 DEFAULT_wxUSE_STATBMP=yes
2269 DEFAULT_wxUSE_STATBOX=yes
2270 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2271 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2272 DEFAULT_wxUSE_STATUSBAR=yes
2273 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2274 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2275 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2276 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2277 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2278 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2279 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2280 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2281 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2282
2283 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2284 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2285 DEFAULT_wxUSE_WCSRTOMBS=no
2286
edae8572 2287 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2288 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2289 DEFAULT_wxUSE_GIF=yes
2290 DEFAULT_wxUSE_PCX=yes
cc0e8480 2291 DEFAULT_wxUSE_IFF=no
10f2d63a 2292 DEFAULT_wxUSE_PNM=yes
0046ff7c 2293 DEFAULT_wxUSE_XPM=yes
658974ae 2294 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2295 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2296
e9e0dc15 2297 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2298 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2299fi
2300
8284b0c5
MB
2301
2302
10f2d63a 2303for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2304 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2305 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2306 has_toolkit_in_cache=1
2307 eval "DEFAULT_$LINE"
2308 eval "CACHE_$toolkit=1"
2309 fi
2310done
2311
8284b0c5
MB
2312
2313
5005acfe 2314 enablestring=
e6cc62c6
VS
2315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2316echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2317 no_cache=0
2318 # Check whether --enable-gui or --disable-gui was given.
2319if test "${enable_gui+set}" = set; then
2320 enableval="$enable_gui"
e6cc62c6 2321
10f2d63a
VZ
2322 if test "$enableval" = yes; then
2323 ac_cv_use_gui='wxUSE_GUI=yes'
2324 else
2325 ac_cv_use_gui='wxUSE_GUI=no'
2326 fi
e6cc62c6 2327
10f2d63a 2328else
e6cc62c6 2329
10f2d63a
VZ
2330 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2331 if test "x$LINE" != x ; then
2332 eval "DEFAULT_$LINE"
2333 else
2334 no_cache=1
2335 fi
2336
2337 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2338
e6cc62c6 2339fi;
10f2d63a
VZ
2340
2341 eval "$ac_cv_use_gui"
2342 if test "$no_cache" != 1; then
2343 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2344 fi
2345
2346 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2347 echo "$as_me:$LINENO: result: yes" >&5
2348echo "${ECHO_T}yes" >&6
10f2d63a 2349 else
e6cc62c6
VS
2350 echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6
10f2d63a 2352 fi
e6cc62c6 2353
10f2d63a 2354
9747f85d
VS
2355 enablestring=
2356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2357echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2358 no_cache=0
2359 # Check whether --enable-monolithic or --disable-monolithic was given.
2360if test "${enable_monolithic+set}" = set; then
2361 enableval="$enable_monolithic"
2362
2363 if test "$enableval" = yes; then
2364 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2365 else
2366 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2367 fi
2368
2369else
2370
2371 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2372 if test "x$LINE" != x ; then
2373 eval "DEFAULT_$LINE"
2374 else
2375 no_cache=1
2376 fi
2377
2378 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2379
2380fi;
2381
2382 eval "$ac_cv_use_monolithic"
2383 if test "$no_cache" != 1; then
2384 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2385 fi
2386
2387 if test "$wxUSE_MONOLITHIC" = yes; then
2388 echo "$as_me:$LINENO: result: yes" >&5
2389echo "${ECHO_T}yes" >&6
2390 else
2391 echo "$as_me:$LINENO: result: no" >&5
2392echo "${ECHO_T}no" >&6
2393 fi
2394
2395
b12915c1 2396if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2397
8284b0c5 2398
5005acfe 2399 enablestring=
e6cc62c6
VS
2400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2401echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2402 no_cache=0
2403 # Check whether --enable-universal or --disable-universal was given.
2404if test "${enable_universal+set}" = set; then
2405 enableval="$enable_universal"
e6cc62c6 2406
1e6feb95
VZ
2407 if test "$enableval" = yes; then
2408 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2409 else
2410 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2411 fi
e6cc62c6 2412
1e6feb95 2413else
e6cc62c6 2414
1e6feb95
VZ
2415 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2423
e6cc62c6 2424fi;
1e6feb95
VZ
2425
2426 eval "$ac_cv_use_universal"
2427 if test "$no_cache" != 1; then
2428 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2429 fi
2430
2431 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2432 echo "$as_me:$LINENO: result: yes" >&5
2433echo "${ECHO_T}yes" >&6
1e6feb95 2434 else
e6cc62c6
VS
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
1e6feb95 2437 fi
e6cc62c6
VS
2438
2439
10f2d63a
VZ
2440# Check whether --with-gtk or --without-gtk was given.
2441if test "${with_gtk+set}" = set; then
2442 withval="$with_gtk"
2443 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2444fi;
10f2d63a
VZ
2445
2446# Check whether --with-motif or --without-motif was given.
2447if test "${with_motif+set}" = set; then
2448 withval="$with_motif"
2449 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2450fi;
10f2d63a 2451
b4085ce6
GD
2452# Check whether --with-mac or --without-mac was given.
2453if test "${with_mac+set}" = set; then
2454 withval="$with_mac"
2455 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2456fi;
b4085ce6 2457
ac0c4cc3
DE
2458# Check whether --with-cocoa or --without-cocoa was given.
2459if test "${with_cocoa+set}" = set; then
2460 withval="$with_cocoa"
2461 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2462fi;
ac0c4cc3 2463
10f2d63a
VZ
2464# Check whether --with-wine or --without-wine was given.
2465if test "${with_wine+set}" = set; then
2466 withval="$with_wine"
89e6bf6d 2467 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2468fi;
10f2d63a 2469
77e13408
RL
2470# Check whether --with-msw or --without-msw was given.
2471if test "${with_msw+set}" = set; then
2472 withval="$with_msw"
b4efce5e 2473 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2474fi;
10f2d63a 2475
e07802fc
VZ
2476# Check whether --with-pm or --without-pm was given.
2477if test "${with_pm+set}" = set; then
2478 withval="$with_pm"
2479 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2480fi;
698dcdb6 2481
1e6feb95
VZ
2482# Check whether --with-mgl or --without-mgl was given.
2483if test "${with_mgl+set}" = set; then
2484 withval="$with_mgl"
6c657b52 2485 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2486fi;
1e6feb95 2487
1725144d
RR
2488# Check whether --with-microwin or --without-microwin was given.
2489if test "${with_microwin+set}" = set; then
2490 withval="$with_microwin"
2491 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2492fi;
1725144d 2493
f79bd02d
JS
2494# Check whether --with-x11 or --without-x11 was given.
2495if test "${with_x11+set}" = set; then
2496 withval="$with_x11"
3c011993 2497 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2498fi;
a0b9e27f 2499
5005acfe 2500 enablestring=
e6cc62c6
VS
2501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2502echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2503 no_cache=0
ba875e66
VZ
2504 # Check whether --enable-nanox or --disable-nanox was given.
2505if test "${enable_nanox+set}" = set; then
2506 enableval="$enable_nanox"
e6cc62c6 2507
d8356fa3 2508 if test "$enableval" = yes; then
ba875e66 2509 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2510 else
ba875e66 2511 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2512 fi
e6cc62c6 2513
d8356fa3 2514else
e6cc62c6 2515
d8356fa3
VZ
2516 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2517 if test "x$LINE" != x ; then
2518 eval "DEFAULT_$LINE"
2519 else
2520 no_cache=1
2521 fi
2522
ba875e66 2523 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2524
e6cc62c6 2525fi;
d8356fa3 2526
ba875e66 2527 eval "$ac_cv_use_nanox"
d8356fa3 2528 if test "$no_cache" != 1; then
ba875e66 2529 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2530 fi
2531
2532 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2533 echo "$as_me:$LINENO: result: yes" >&5
2534echo "${ECHO_T}yes" >&6
d8356fa3 2535 else
e6cc62c6
VS
2536 echo "$as_me:$LINENO: result: no" >&5
2537echo "${ECHO_T}no" >&6
d8356fa3 2538 fi
e6cc62c6 2539
8284b0c5 2540
d74f4b5a 2541
5005acfe 2542 enablestring=
e6cc62c6
VS
2543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2544echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2545 no_cache=0
2546 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2547if test "${enable_gtk2+set}" = set; then
2548 enableval="$enable_gtk2"
e6cc62c6 2549
d74f4b5a
VZ
2550 if test "$enableval" = yes; then
2551 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2552 else
2553 ac_cv_use_gtk2='wxUSE_GTK2=no'
2554 fi
e6cc62c6 2555
10f2d63a 2556else
e6cc62c6 2557
d74f4b5a
VZ
2558 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2559 if test "x$LINE" != x ; then
2560 eval "DEFAULT_$LINE"
2561 else
2562 no_cache=1
2563 fi
2564
2565 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2566
e6cc62c6 2567fi;
328a083c 2568
d74f4b5a
VZ
2569 eval "$ac_cv_use_gtk2"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
d74f4b5a 2577 else
e6cc62c6
VS
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
d74f4b5a 2580 fi
d74f4b5a 2581
5c6fa7d2 2582
e6cc62c6
VS
2583
2584 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2585echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2586 no_cache=0
e6cc62c6
VS
2587
2588# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2589if test "${with_libpng+set}" = set; then
2590 withval="$with_libpng"
e6cc62c6 2591
10f2d63a 2592 if test "$withval" = yes; then
b12915c1 2593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2594 elif test "$withval" = no; then
b12915c1 2595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2596 elif test "$withval" = sys; then
2597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2598 elif test "$withval" = builtin; then
2599 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2600 else
e6cc62c6
VS
2601 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2602echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2603 { (exit 1); exit 1; }; }
10f2d63a 2604 fi
e6cc62c6 2605
10f2d63a 2606else
e6cc62c6 2607
b12915c1 2608 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2609 if test "x$LINE" != x ; then
2610 eval "DEFAULT_$LINE"
2611 else
2612 no_cache=1
2613 fi
2614
b12915c1 2615 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2616
e6cc62c6 2617fi;
10f2d63a 2618
b12915c1 2619 eval "$ac_cv_use_libpng"
10f2d63a 2620 if test "$no_cache" != 1; then
b12915c1 2621 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2622 fi
2623
b12915c1 2624 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2625 echo "$as_me:$LINENO: result: yes" >&5
2626echo "${ECHO_T}yes" >&6
422107f9 2627 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2628 echo "$as_me:$LINENO: result: no" >&5
2629echo "${ECHO_T}no" >&6
422107f9 2630 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2631 echo "$as_me:$LINENO: result: system version" >&5
2632echo "${ECHO_T}system version" >&6
4f14bcd8 2633 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2634 echo "$as_me:$LINENO: result: builtin version" >&5
2635echo "${ECHO_T}builtin version" >&6
422107f9 2636 else
e6cc62c6
VS
2637 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2638echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2639 { (exit 1); exit 1; }; }
10f2d63a 2640 fi
10f2d63a 2641
e6cc62c6
VS
2642
2643 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2644echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2645 no_cache=0
e6cc62c6
VS
2646
2647# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2648if test "${with_libjpeg+set}" = set; then
2649 withval="$with_libjpeg"
e6cc62c6 2650
10f2d63a 2651 if test "$withval" = yes; then
b12915c1 2652 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2653 elif test "$withval" = no; then
b12915c1 2654 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2655 elif test "$withval" = sys; then
2656 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2657 elif test "$withval" = builtin; then
2658 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2659 else
e6cc62c6
VS
2660 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2661echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2662 { (exit 1); exit 1; }; }
10f2d63a 2663 fi
e6cc62c6 2664
10f2d63a 2665else
e6cc62c6 2666
b12915c1 2667 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
b12915c1 2674 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2675
e6cc62c6 2676fi;
10f2d63a 2677
b12915c1 2678 eval "$ac_cv_use_libjpeg"
10f2d63a 2679 if test "$no_cache" != 1; then
b12915c1 2680 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2681 fi
2682
b12915c1 2683 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2684 echo "$as_me:$LINENO: result: yes" >&5
2685echo "${ECHO_T}yes" >&6
422107f9 2686 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2687 echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6
422107f9 2689 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2690 echo "$as_me:$LINENO: result: system version" >&5
2691echo "${ECHO_T}system version" >&6
4f14bcd8 2692 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2693 echo "$as_me:$LINENO: result: builtin version" >&5
2694echo "${ECHO_T}builtin version" >&6
422107f9 2695 else
e6cc62c6
VS
2696 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2697echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2698 { (exit 1); exit 1; }; }
10f2d63a 2699 fi
10f2d63a 2700
e6cc62c6
VS
2701
2702 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2703echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2704 no_cache=0
e6cc62c6
VS
2705
2706# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2707if test "${with_libtiff+set}" = set; then
2708 withval="$with_libtiff"
e6cc62c6 2709
10f2d63a 2710 if test "$withval" = yes; then
b12915c1 2711 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2712 elif test "$withval" = no; then
b12915c1 2713 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2714 elif test "$withval" = sys; then
2715 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2716 elif test "$withval" = builtin; then
2717 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2718 else
e6cc62c6
VS
2719 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2720echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2721 { (exit 1); exit 1; }; }
10f2d63a 2722 fi
e6cc62c6 2723
10f2d63a 2724else
e6cc62c6 2725
b12915c1 2726 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
b12915c1 2733 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2734
e6cc62c6 2735fi;
10f2d63a 2736
b12915c1 2737 eval "$ac_cv_use_libtiff"
10f2d63a 2738 if test "$no_cache" != 1; then
b12915c1 2739 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2740 fi
2741
b12915c1 2742 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2743 echo "$as_me:$LINENO: result: yes" >&5
2744echo "${ECHO_T}yes" >&6
0dcf9893 2745 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2746 echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6
0dcf9893 2748 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2749 echo "$as_me:$LINENO: result: system version" >&5
2750echo "${ECHO_T}system version" >&6
4f14bcd8 2751 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2752 echo "$as_me:$LINENO: result: builtin version" >&5
2753echo "${ECHO_T}builtin version" >&6
0dcf9893 2754 else
e6cc62c6
VS
2755 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2756echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2757 { (exit 1); exit 1; }; }
10f2d63a 2758 fi
10f2d63a 2759
e6cc62c6
VS
2760
2761 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2762echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2763 no_cache=0
e6cc62c6
VS
2764
2765# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2766if test "${with_opengl+set}" = set; then
2767 withval="$with_opengl"
e6cc62c6 2768
10f2d63a 2769 if test "$withval" = yes; then
b12915c1 2770 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2771 else
b12915c1 2772 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2773 fi
e6cc62c6 2774
10f2d63a 2775else
e6cc62c6 2776
b12915c1 2777 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
b12915c1 2784 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2785
e6cc62c6 2786fi;
10f2d63a 2787
b12915c1 2788 eval "$ac_cv_use_opengl"
10f2d63a 2789 if test "$no_cache" != 1; then
b12915c1 2790 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2791 fi
2792
b12915c1 2793 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2794 echo "$as_me:$LINENO: result: yes" >&5
2795echo "${ECHO_T}yes" >&6
10f2d63a 2796 else
e6cc62c6
VS
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
10f2d63a 2799 fi
e6cc62c6 2800
10f2d63a 2801
b12915c1
VZ
2802fi
2803
5c6fa7d2 2804
e6cc62c6
VS
2805 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2806echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2807 no_cache=0
e6cc62c6
VS
2808
2809# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2810if test "${with_dmalloc+set}" = set; then
2811 withval="$with_dmalloc"
e6cc62c6 2812
c7a2bf27 2813 if test "$withval" = yes; then
b12915c1 2814 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2815 else
b12915c1 2816 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2817 fi
e6cc62c6 2818
c7a2bf27 2819else
e6cc62c6 2820
b12915c1 2821 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
b12915c1 2828 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2829
e6cc62c6 2830fi;
c7a2bf27 2831
b12915c1 2832 eval "$ac_cv_use_dmalloc"
c7a2bf27 2833 if test "$no_cache" != 1; then
b12915c1 2834 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2835 fi
2836
b12915c1 2837 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
c7a2bf27 2840 else
e6cc62c6
VS
2841 echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
c7a2bf27 2843 fi
c7a2bf27 2844
e6cc62c6
VS
2845
2846 echo "$as_me:$LINENO: checking for --with-regex" >&5
2847echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2848 no_cache=0
e6cc62c6
VS
2849
2850# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2851if test "${with_regex+set}" = set; then
2852 withval="$with_regex"
e6cc62c6 2853
3e44f09d
VZ
2854 if test "$withval" = yes; then
2855 ac_cv_use_regex='wxUSE_REGEX=yes'
2856 elif test "$withval" = no; then
2857 ac_cv_use_regex='wxUSE_REGEX=no'
2858 elif test "$withval" = sys; then
2859 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2860 elif test "$withval" = builtin; then
2861 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2862 else
e6cc62c6
VS
2863 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2864echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2865 { (exit 1); exit 1; }; }
3e44f09d 2866 fi
e6cc62c6 2867
3e44f09d 2868else
e6cc62c6 2869
3e44f09d
VZ
2870 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2871 if test "x$LINE" != x ; then
2872 eval "DEFAULT_$LINE"
2873 else
2874 no_cache=1
2875 fi
2876
2877 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2878
e6cc62c6 2879fi;
3e44f09d
VZ
2880
2881 eval "$ac_cv_use_regex"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2887 echo "$as_me:$LINENO: result: yes" >&5
2888echo "${ECHO_T}yes" >&6
3e44f09d 2889 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2890 echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
3e44f09d 2892 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2893 echo "$as_me:$LINENO: result: system version" >&5
2894echo "${ECHO_T}system version" >&6
4f14bcd8 2895 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2896 echo "$as_me:$LINENO: result: builtin version" >&5
2897echo "${ECHO_T}builtin version" >&6
3e44f09d 2898 else
e6cc62c6
VS
2899 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2900echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2901 { (exit 1); exit 1; }; }
3e44f09d 2902 fi
3e44f09d 2903
e6cc62c6
VS
2904
2905 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2906echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2907 no_cache=0
e6cc62c6
VS
2908
2909# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2910if test "${with_zlib+set}" = set; then
2911 withval="$with_zlib"
e6cc62c6 2912
10f2d63a 2913 if test "$withval" = yes; then
b12915c1 2914 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2915 elif test "$withval" = no; then
b12915c1 2916 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2917 elif test "$withval" = sys; then
2918 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2919 elif test "$withval" = builtin; then
2920 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2921 else
e6cc62c6
VS
2922 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2923echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2924 { (exit 1); exit 1; }; }
10f2d63a 2925 fi
e6cc62c6 2926
10f2d63a 2927else
e6cc62c6 2928
b12915c1 2929 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
b12915c1 2936 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2937
e6cc62c6 2938fi;
10f2d63a 2939
b12915c1 2940 eval "$ac_cv_use_zlib"
10f2d63a 2941 if test "$no_cache" != 1; then
b12915c1 2942 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2943 fi
2944
b12915c1 2945 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2946 echo "$as_me:$LINENO: result: yes" >&5
2947echo "${ECHO_T}yes" >&6
422107f9 2948 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2949 echo "$as_me:$LINENO: result: no" >&5
2950echo "${ECHO_T}no" >&6
422107f9 2951 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2952 echo "$as_me:$LINENO: result: system version" >&5
2953echo "${ECHO_T}system version" >&6
4f14bcd8 2954 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2955 echo "$as_me:$LINENO: result: builtin version" >&5
2956echo "${ECHO_T}builtin version" >&6
422107f9 2957 else
e6cc62c6
VS
2958 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2959echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2960 { (exit 1); exit 1; }; }
10f2d63a 2961 fi
10f2d63a 2962
e6cc62c6
VS
2963
2964 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2965echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2966 no_cache=0
e6cc62c6
VS
2967
2968# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2969if test "${with_odbc+set}" = set; then
2970 withval="$with_odbc"
e6cc62c6 2971
10f2d63a
VZ
2972 if test "$withval" = yes; then
2973 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2974 elif test "$withval" = no; then
10f2d63a 2975 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2976 elif test "$withval" = sys; then
2977 ac_cv_use_odbc='wxUSE_ODBC=sys'
2978 elif test "$withval" = builtin; then
2979 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2980 else
e6cc62c6
VS
2981 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2982echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2983 { (exit 1); exit 1; }; }
10f2d63a 2984 fi
e6cc62c6 2985
10f2d63a 2986else
e6cc62c6 2987
10f2d63a
VZ
2988 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2989 if test "x$LINE" != x ; then
2990 eval "DEFAULT_$LINE"
2991 else
2992 no_cache=1
2993 fi
2994
2995 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2996
e6cc62c6 2997fi;
10f2d63a
VZ
2998
2999 eval "$ac_cv_use_odbc"
3000 if test "$no_cache" != 1; then
3001 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3002 fi
3003
3004 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3005 echo "$as_me:$LINENO: result: yes" >&5
3006echo "${ECHO_T}yes" >&6
8647bec6 3007 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3008 echo "$as_me:$LINENO: result: no" >&5
3009echo "${ECHO_T}no" >&6
8647bec6 3010 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3011 echo "$as_me:$LINENO: result: system version" >&5
3012echo "${ECHO_T}system version" >&6
8647bec6 3013 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3014 echo "$as_me:$LINENO: result: builtin version" >&5
3015echo "${ECHO_T}builtin version" >&6
8647bec6 3016 else
e6cc62c6
VS
3017 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3018echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3019 { (exit 1); exit 1; }; }
10f2d63a 3020 fi
e6cc62c6 3021
52127426 3022
672abd7a
VS
3023 echo "$as_me:$LINENO: checking for --with-expat" >&5
3024echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3025 no_cache=0
3026
3027# Check whether --with-expat or --without-expat was given.
3028if test "${with_expat+set}" = set; then
3029 withval="$with_expat"
3030
3031 if test "$withval" = yes; then
3032 ac_cv_use_expat='wxUSE_EXPAT=yes'
3033 elif test "$withval" = no; then
3034 ac_cv_use_expat='wxUSE_EXPAT=no'
3035 elif test "$withval" = sys; then
3036 ac_cv_use_expat='wxUSE_EXPAT=sys'
3037 elif test "$withval" = builtin; then
3038 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3039 else
3040 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3041echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3042 { (exit 1); exit 1; }; }
3043 fi
3044
3045else
3046
3047 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3055
3056fi;
3057
3058 eval "$ac_cv_use_expat"
3059 if test "$no_cache" != 1; then
3060 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3061 fi
3062
3063 if test "$wxUSE_EXPAT" = yes; then
3064 echo "$as_me:$LINENO: result: yes" >&5
3065echo "${ECHO_T}yes" >&6
3066 elif test "$wxUSE_EXPAT" = no; then
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
3069 elif test "$wxUSE_EXPAT" = sys; then
3070 echo "$as_me:$LINENO: result: system version" >&5
3071echo "${ECHO_T}system version" >&6
3072 elif test "$wxUSE_EXPAT" = builtin; then
3073 echo "$as_me:$LINENO: result: builtin version" >&5
3074echo "${ECHO_T}builtin version" >&6
3075 else
3076 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3077echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3078 { (exit 1); exit 1; }; }
3079 fi
3080
3081
8284b0c5
MB
3082
3083
5005acfe 3084 enablestring=
e6cc62c6
VS
3085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3086echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3087 no_cache=0
3088 # Check whether --enable-shared or --disable-shared was given.
3089if test "${enable_shared+set}" = set; then
3090 enableval="$enable_shared"
e6cc62c6 3091
10f2d63a
VZ
3092 if test "$enableval" = yes; then
3093 ac_cv_use_shared='wxUSE_SHARED=yes'
3094 else
3095 ac_cv_use_shared='wxUSE_SHARED=no'
3096 fi
e6cc62c6 3097
10f2d63a 3098else
e6cc62c6 3099
10f2d63a
VZ
3100 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3101 if test "x$LINE" != x ; then
3102 eval "DEFAULT_$LINE"
3103 else
3104 no_cache=1
3105 fi
3106
3107 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3108
e6cc62c6 3109fi;
10f2d63a
VZ
3110
3111 eval "$ac_cv_use_shared"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3117 echo "$as_me:$LINENO: result: yes" >&5
3118echo "${ECHO_T}yes" >&6
10f2d63a 3119 else
e6cc62c6
VS
3120 echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
10f2d63a 3122 fi
e6cc62c6 3123
10f2d63a 3124
5005acfe 3125 enablestring=
e6cc62c6
VS
3126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3127echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3128 no_cache=0
3129 # Check whether --enable-optimise or --disable-optimise was given.
3130if test "${enable_optimise+set}" = set; then
3131 enableval="$enable_optimise"
e6cc62c6 3132
10f2d63a
VZ
3133 if test "$enableval" = yes; then
3134 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3135 else
3136 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3137 fi
e6cc62c6 3138
10f2d63a 3139else
e6cc62c6 3140
10f2d63a
VZ
3141 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3149
e6cc62c6 3150fi;
10f2d63a
VZ
3151
3152 eval "$ac_cv_use_optimise"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
10f2d63a 3160 else
e6cc62c6
VS
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
10f2d63a 3163 fi
e6cc62c6 3164
10f2d63a 3165
5005acfe 3166 enablestring=
e6cc62c6
VS
3167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3168echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3169 no_cache=0
3170 # Check whether --enable-debug or --disable-debug was given.
3171if test "${enable_debug+set}" = set; then
3172 enableval="$enable_debug"
e6cc62c6 3173
10f2d63a
VZ
3174 if test "$enableval" = yes; then
3175 ac_cv_use_debug='wxUSE_DEBUG=yes'
3176 else
3177 ac_cv_use_debug='wxUSE_DEBUG=no'
3178 fi
e6cc62c6 3179
10f2d63a 3180else
e6cc62c6 3181
10f2d63a
VZ
3182 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3190
e6cc62c6 3191fi;
10f2d63a
VZ
3192
3193 eval "$ac_cv_use_debug"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3199 echo "$as_me:$LINENO: result: yes" >&5
3200echo "${ECHO_T}yes" >&6
10f2d63a 3201 else
e6cc62c6
VS
3202 echo "$as_me:$LINENO: result: no" >&5
3203echo "${ECHO_T}no" >&6
10f2d63a 3204 fi
e6cc62c6 3205
52127426 3206
df5168c4
MB
3207 enablestring=
3208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3209echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3210 no_cache=0
3211 # Check whether --enable-stl or --disable-stl was given.
3212if test "${enable_stl+set}" = set; then
3213 enableval="$enable_stl"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_stl='wxUSE_STL=yes'
3217 else
3218 ac_cv_use_stl='wxUSE_STL=no'
3219 fi
3220
3221else
3222
3223 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3231
3232fi;
3233
3234 eval "$ac_cv_use_stl"
3235 if test "$no_cache" != 1; then
3236 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3237 fi
3238
3239 if test "$wxUSE_STL" = yes; then
3240 echo "$as_me:$LINENO: result: yes" >&5
3241echo "${ECHO_T}yes" >&6
3242 else
3243 echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
3245 fi
3246
3247
10f2d63a
VZ
3248if test "$wxUSE_DEBUG" = "yes"; then
3249 DEFAULT_wxUSE_DEBUG_FLAG=yes
3250 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3251 BUILD=debug
10f2d63a
VZ
3252elif test "$wxUSE_DEBUG" = "no"; then
3253 DEFAULT_wxUSE_DEBUG_FLAG=no
3254 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3255 BUILD=release
10f2d63a
VZ
3256fi
3257
8284b0c5 3258
5005acfe 3259 enablestring=
e6cc62c6
VS
3260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3261echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3262 no_cache=0
3263 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3264if test "${enable_debug_flag+set}" = set; then
3265 enableval="$enable_debug_flag"
e6cc62c6 3266
10f2d63a
VZ
3267 if test "$enableval" = yes; then
3268 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3269 else
3270 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3271 fi
e6cc62c6 3272
10f2d63a 3273else
e6cc62c6 3274
10f2d63a
VZ
3275 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3276 if test "x$LINE" != x ; then
3277 eval "DEFAULT_$LINE"
3278 else
3279 no_cache=1
3280 fi
3281
3282 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3283
e6cc62c6 3284fi;
10f2d63a
VZ
3285
3286 eval "$ac_cv_use_debug_flag"
3287 if test "$no_cache" != 1; then
3288 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3289 fi
3290
3291 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3292 echo "$as_me:$LINENO: result: yes" >&5
3293echo "${ECHO_T}yes" >&6
10f2d63a 3294 else
e6cc62c6
VS
3295 echo "$as_me:$LINENO: result: no" >&5
3296echo "${ECHO_T}no" >&6
10f2d63a 3297 fi
e6cc62c6 3298
10f2d63a 3299
5005acfe 3300 enablestring=
e6cc62c6
VS
3301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3302echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3303 no_cache=0
3304 # Check whether --enable-debug_info or --disable-debug_info was given.
3305if test "${enable_debug_info+set}" = set; then
3306 enableval="$enable_debug_info"
e6cc62c6 3307
10f2d63a
VZ
3308 if test "$enableval" = yes; then
3309 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3310 else
3311 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3312 fi
e6cc62c6 3313
10f2d63a 3314else
e6cc62c6 3315
10f2d63a
VZ
3316 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3317 if test "x$LINE" != x ; then
3318 eval "DEFAULT_$LINE"
3319 else
3320 no_cache=1
3321 fi
3322
3323 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3324
e6cc62c6 3325fi;
10f2d63a
VZ
3326
3327 eval "$ac_cv_use_debug_info"
3328 if test "$no_cache" != 1; then
3329 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3330 fi
3331
3332 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3333 echo "$as_me:$LINENO: result: yes" >&5
3334echo "${ECHO_T}yes" >&6
10f2d63a 3335 else
e6cc62c6
VS
3336 echo "$as_me:$LINENO: result: no" >&5
3337echo "${ECHO_T}no" >&6
10f2d63a 3338 fi
e6cc62c6 3339
10f2d63a 3340
5005acfe 3341 enablestring=
e6cc62c6
VS
3342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3343echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3344 no_cache=0
3345 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3346if test "${enable_debug_gdb+set}" = set; then
3347 enableval="$enable_debug_gdb"
e6cc62c6 3348
10f2d63a
VZ
3349 if test "$enableval" = yes; then
3350 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3351 else
3352 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3353 fi
e6cc62c6 3354
10f2d63a 3355else
e6cc62c6 3356
10f2d63a
VZ
3357 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3358 if test "x$LINE" != x ; then
3359 eval "DEFAULT_$LINE"
3360 else
3361 no_cache=1
3362 fi
3363
3364 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3365
e6cc62c6 3366fi;
10f2d63a
VZ
3367
3368 eval "$ac_cv_use_debug_gdb"
3369 if test "$no_cache" != 1; then
3370 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3371 fi
3372
3373 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3374 echo "$as_me:$LINENO: result: yes" >&5
3375echo "${ECHO_T}yes" >&6
10f2d63a 3376 else
e6cc62c6
VS
3377 echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
10f2d63a 3379 fi
e6cc62c6 3380
10f2d63a 3381
5005acfe 3382 enablestring=
e6cc62c6
VS
3383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3384echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3385 no_cache=0
3386 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3387if test "${enable_debug_cntxt+set}" = set; then
3388 enableval="$enable_debug_cntxt"
e6cc62c6 3389
10f2d63a
VZ
3390 if test "$enableval" = yes; then
3391 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3392 else
3393 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3394 fi
e6cc62c6 3395
10f2d63a 3396else
e6cc62c6 3397
10f2d63a
VZ
3398 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3406
e6cc62c6 3407fi;
10f2d63a
VZ
3408
3409 eval "$ac_cv_use_debug_cntxt"
3410 if test "$no_cache" != 1; then
3411 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3412 fi
3413
3414 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3415 echo "$as_me:$LINENO: result: yes" >&5
3416echo "${ECHO_T}yes" >&6
10f2d63a 3417 else
e6cc62c6
VS
3418 echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
10f2d63a 3420 fi
e6cc62c6 3421
10f2d63a 3422
5005acfe 3423 enablestring=
e6cc62c6
VS
3424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3425echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3428if test "${enable_mem_tracing+set}" = set; then
3429 enableval="$enable_mem_tracing"
e6cc62c6 3430
10f2d63a
VZ
3431 if test "$enableval" = yes; then
3432 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3433 else
3434 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3435 fi
e6cc62c6 3436
10f2d63a 3437else
e6cc62c6 3438
10f2d63a
VZ
3439 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3447
e6cc62c6 3448fi;
10f2d63a
VZ
3449
3450 eval "$ac_cv_use_mem_tracing"
3451 if test "$no_cache" != 1; then
3452 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3453 fi
3454
3455 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3456 echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6
10f2d63a 3458 else
e6cc62c6
VS
3459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
10f2d63a 3461 fi
e6cc62c6 3462
10f2d63a 3463
5005acfe 3464 enablestring=
e6cc62c6
VS
3465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3466echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3467 no_cache=0
3468 # Check whether --enable-profile or --disable-profile was given.
3469if test "${enable_profile+set}" = set; then
3470 enableval="$enable_profile"
e6cc62c6 3471
10f2d63a
VZ
3472 if test "$enableval" = yes; then
3473 ac_cv_use_profile='wxUSE_PROFILE=yes'
3474 else
3475 ac_cv_use_profile='wxUSE_PROFILE=no'
3476 fi
e6cc62c6 3477
10f2d63a 3478else
e6cc62c6 3479
10f2d63a
VZ
3480 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3488
e6cc62c6 3489fi;
10f2d63a
VZ
3490
3491 eval "$ac_cv_use_profile"
3492 if test "$no_cache" != 1; then
3493 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3494 fi
3495
3496 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3497 echo "$as_me:$LINENO: result: yes" >&5
3498echo "${ECHO_T}yes" >&6
10f2d63a 3499 else
e6cc62c6
VS
3500 echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6
10f2d63a 3502 fi
e6cc62c6 3503
10f2d63a 3504
5005acfe 3505 enablestring=
e6cc62c6
VS
3506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3507echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3508 no_cache=0
3509 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3510if test "${enable_no_rtti+set}" = set; then
3511 enableval="$enable_no_rtti"
e6cc62c6 3512
10f2d63a
VZ
3513 if test "$enableval" = yes; then
3514 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3515 else
3516 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3517 fi
e6cc62c6 3518
10f2d63a 3519else
e6cc62c6 3520
10f2d63a
VZ
3521 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3529
e6cc62c6 3530fi;
10f2d63a
VZ
3531
3532 eval "$ac_cv_use_no_rtti"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3538 echo "$as_me:$LINENO: result: yes" >&5
3539echo "${ECHO_T}yes" >&6
10f2d63a 3540 else
e6cc62c6
VS
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
10f2d63a 3543 fi
e6cc62c6 3544
10f2d63a 3545
5005acfe 3546 enablestring=
e6cc62c6
VS
3547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3548echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3549 no_cache=0
3550 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3551if test "${enable_no_exceptions+set}" = set; then
3552 enableval="$enable_no_exceptions"
e6cc62c6 3553
10f2d63a
VZ
3554 if test "$enableval" = yes; then
3555 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3556 else
3557 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3558 fi
e6cc62c6 3559
10f2d63a 3560else
e6cc62c6 3561
10f2d63a
VZ
3562 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3570
e6cc62c6 3571fi;
10f2d63a
VZ
3572
3573 eval "$ac_cv_use_no_exceptions"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3579 echo "$as_me:$LINENO: result: yes" >&5
3580echo "${ECHO_T}yes" >&6
10f2d63a 3581 else
e6cc62c6
VS
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
10f2d63a 3584 fi
e6cc62c6 3585
10f2d63a 3586
5005acfe 3587 enablestring=
e6cc62c6
VS
3588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3589echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3590 no_cache=0
3591 # Check whether --enable-permissive or --disable-permissive was given.
3592if test "${enable_permissive+set}" = set; then
3593 enableval="$enable_permissive"
e6cc62c6 3594
10f2d63a
VZ
3595 if test "$enableval" = yes; then
3596 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3597 else
3598 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3599 fi
e6cc62c6 3600
10f2d63a 3601else
e6cc62c6 3602
10f2d63a
VZ
3603 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3611
e6cc62c6 3612fi;
10f2d63a
VZ
3613
3614 eval "$ac_cv_use_permissive"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3620 echo "$as_me:$LINENO: result: yes" >&5
3621echo "${ECHO_T}yes" >&6
10f2d63a 3622 else
e6cc62c6
VS
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
10f2d63a 3625 fi
e6cc62c6 3626
10f2d63a 3627
5005acfe 3628 enablestring=
e6cc62c6
VS
3629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3630echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3631 no_cache=0
3632 # Check whether --enable-no_deps or --disable-no_deps was given.
3633if test "${enable_no_deps+set}" = set; then
3634 enableval="$enable_no_deps"
e6cc62c6 3635
10f2d63a
VZ
3636 if test "$enableval" = yes; then
3637 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3638 else
3639 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3640 fi
e6cc62c6 3641
10f2d63a 3642else
e6cc62c6 3643
10f2d63a
VZ
3644 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3652
e6cc62c6 3653fi;
10f2d63a
VZ
3654
3655 eval "$ac_cv_use_no_deps"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3661 echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
10f2d63a 3663 else
e6cc62c6
VS
3664 echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6
10f2d63a 3666 fi
e6cc62c6 3667
52127426 3668
8284b0c5 3669
5005acfe 3670 enablestring=
e6cc62c6
VS
3671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3672echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3673 no_cache=0
3674 # Check whether --enable-compat20 or --disable-compat20 was given.
3675if test "${enable_compat20+set}" = set; then
3676 enableval="$enable_compat20"
e6cc62c6 3677
54276ccf
VZ
3678 if test "$enableval" = yes; then
3679 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3680 else
3681 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3682 fi
e6cc62c6 3683
54276ccf 3684else
e6cc62c6 3685
54276ccf
VZ
3686 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3694
e6cc62c6 3695fi;
54276ccf
VZ
3696
3697 eval "$ac_cv_use_compat20"
3698 if test "$no_cache" != 1; then
3699 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3700 fi
3701
3702 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3703 echo "$as_me:$LINENO: result: yes" >&5
3704echo "${ECHO_T}yes" >&6
54276ccf 3705 else
e6cc62c6
VS
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
54276ccf 3708 fi
e6cc62c6 3709
54276ccf 3710
65d8ef1e 3711 enablestring=
e6cc62c6
VS
3712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3713echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3714 no_cache=0
3715 # Check whether --enable-compat22 or --disable-compat22 was given.
3716if test "${enable_compat22+set}" = set; then
3717 enableval="$enable_compat22"
e6cc62c6 3718
54276ccf
VZ
3719 if test "$enableval" = yes; then
3720 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3721 else
3722 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3723 fi
e6cc62c6 3724
54276ccf 3725else
e6cc62c6 3726
54276ccf
VZ
3727 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3735
e6cc62c6 3736fi;
54276ccf
VZ
3737
3738 eval "$ac_cv_use_compat22"
3739 if test "$no_cache" != 1; then
3740 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3741 fi
3742
3743 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3744 echo "$as_me:$LINENO: result: yes" >&5
3745echo "${ECHO_T}yes" >&6
54276ccf 3746 else
e6cc62c6
VS
3747 echo "$as_me:$LINENO: result: no" >&5
3748echo "${ECHO_T}no" >&6
54276ccf 3749 fi
e6cc62c6 3750
54276ccf 3751
65d8ef1e 3752 enablestring=disable
e6cc62c6
VS
3753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3754echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3755 no_cache=0
3756 # Check whether --enable-compat24 or --disable-compat24 was given.
3757if test "${enable_compat24+set}" = set; then
3758 enableval="$enable_compat24"
e6cc62c6 3759
65d8ef1e
VS
3760 if test "$enableval" = yes; then
3761 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3762 else
3763 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3764 fi
e6cc62c6 3765
65d8ef1e 3766else
e6cc62c6 3767
65d8ef1e
VS
3768 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3776
e6cc62c6 3777fi;
65d8ef1e
VS
3778
3779 eval "$ac_cv_use_compat24"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3785 echo "$as_me:$LINENO: result: yes" >&5
3786echo "${ECHO_T}yes" >&6
65d8ef1e 3787 else
e6cc62c6
VS
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
65d8ef1e 3790 fi
e6cc62c6 3791
65d8ef1e 3792
3bd8fb5f
RD
3793# Check whether --enable-rpath or --disable-rpath was given.
3794if test "${enable_rpath+set}" = set; then
3795 enableval="$enable_rpath"
3796 wxRPATH_DIR="$enableval"
e6cc62c6 3797fi;
3bd8fb5f
RD
3798
3799if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3800 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3801fi
3802
8284b0c5
MB
3803
3804
3805
5005acfe 3806 enablestring=
e6cc62c6
VS
3807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3808echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3809 no_cache=0
3810 # Check whether --enable-intl or --disable-intl was given.
3811if test "${enable_intl+set}" = set; then
3812 enableval="$enable_intl"
e6cc62c6 3813
10f2d63a
VZ
3814 if test "$enableval" = yes; then
3815 ac_cv_use_intl='wxUSE_INTL=yes'
3816 else
3817 ac_cv_use_intl='wxUSE_INTL=no'
3818 fi
e6cc62c6 3819
10f2d63a 3820else
e6cc62c6 3821
10f2d63a
VZ
3822 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3830
e6cc62c6 3831fi;
10f2d63a
VZ
3832
3833 eval "$ac_cv_use_intl"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3839 echo "$as_me:$LINENO: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
10f2d63a 3841 else
e6cc62c6
VS
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
10f2d63a 3844 fi
e6cc62c6 3845
10f2d63a 3846
5005acfe 3847 enablestring=
e6cc62c6
VS
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3850 no_cache=0
3851 # Check whether --enable-config or --disable-config was given.
3852if test "${enable_config+set}" = set; then
3853 enableval="$enable_config"
e6cc62c6 3854
10f2d63a
VZ
3855 if test "$enableval" = yes; then
3856 ac_cv_use_config='wxUSE_CONFIG=yes'
3857 else
3858 ac_cv_use_config='wxUSE_CONFIG=no'
3859 fi
e6cc62c6 3860
10f2d63a 3861else
e6cc62c6 3862
10f2d63a
VZ
3863 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3871
e6cc62c6 3872fi;
10f2d63a
VZ
3873
3874 eval "$ac_cv_use_config"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
10f2d63a 3882 else
e6cc62c6
VS
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
10f2d63a 3885 fi
e6cc62c6 3886
52127426 3887
8284b0c5 3888
5005acfe 3889 enablestring=
e6cc62c6
VS
3890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3891echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3892 no_cache=0
3893 # Check whether --enable-protocols or --disable-protocols was given.
3894if test "${enable_protocols+set}" = set; then
3895 enableval="$enable_protocols"
e6cc62c6 3896
a1622950
VZ
3897 if test "$enableval" = yes; then
3898 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3899 else
3900 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3901 fi
e6cc62c6 3902
a1622950 3903else
e6cc62c6 3904
a1622950
VZ
3905 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3913
e6cc62c6 3914fi;
a1622950
VZ
3915
3916 eval "$ac_cv_use_protocols"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3922 echo "$as_me:$LINENO: result: yes" >&5
3923echo "${ECHO_T}yes" >&6
a1622950 3924 else
e6cc62c6
VS
3925 echo "$as_me:$LINENO: result: no" >&5
3926echo "${ECHO_T}no" >&6
a1622950 3927 fi
e6cc62c6 3928
a1622950 3929
5005acfe 3930 enablestring=
e6cc62c6
VS
3931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3932echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3933 no_cache=0
3934 # Check whether --enable-ftp or --disable-ftp was given.
3935if test "${enable_ftp+set}" = set; then
3936 enableval="$enable_ftp"
e6cc62c6 3937
a1622950
VZ
3938 if test "$enableval" = yes; then
3939 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3940 else
3941 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3942 fi
e6cc62c6 3943
a1622950 3944else
e6cc62c6 3945
a1622950
VZ
3946 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3954
e6cc62c6 3955fi;
a1622950
VZ
3956
3957 eval "$ac_cv_use_ftp"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3963 echo "$as_me:$LINENO: result: yes" >&5
3964echo "${ECHO_T}yes" >&6
a1622950 3965 else
e6cc62c6
VS
3966 echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
a1622950 3968 fi
e6cc62c6 3969
a1622950 3970
5005acfe 3971 enablestring=
e6cc62c6
VS
3972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3973echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3974 no_cache=0
3975 # Check whether --enable-http or --disable-http was given.
3976if test "${enable_http+set}" = set; then
3977 enableval="$enable_http"
e6cc62c6 3978
a1622950
VZ
3979 if test "$enableval" = yes; then
3980 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3981 else
3982 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3983 fi
e6cc62c6 3984
a1622950 3985else
e6cc62c6 3986
a1622950
VZ
3987 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3995
e6cc62c6 3996fi;
a1622950
VZ
3997
3998 eval "$ac_cv_use_http"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4004 echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6
a1622950 4006 else
e6cc62c6
VS
4007 echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6
a1622950 4009 fi
e6cc62c6 4010
a1622950 4011
5005acfe 4012 enablestring=
e6cc62c6
VS
4013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4014echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4015 no_cache=0
4016 # Check whether --enable-fileproto or --disable-fileproto was given.
4017if test "${enable_fileproto+set}" = set; then
4018 enableval="$enable_fileproto"
e6cc62c6 4019
a1622950
VZ
4020 if test "$enableval" = yes; then
4021 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4022 else
4023 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4024 fi
e6cc62c6 4025
a1622950 4026else
e6cc62c6 4027
a1622950
VZ
4028 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4036
e6cc62c6 4037fi;
a1622950
VZ
4038
4039 eval "$ac_cv_use_fileproto"
4040 if test "$no_cache" != 1; then
4041 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4042 fi
4043
4044 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4045 echo "$as_me:$LINENO: result: yes" >&5
4046echo "${ECHO_T}yes" >&6
a1622950 4047 else
e6cc62c6
VS
4048 echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
a1622950 4050 fi
e6cc62c6 4051
a1622950 4052
5005acfe 4053 enablestring=
e6cc62c6
VS
4054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4055echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4056 no_cache=0
4057 # Check whether --enable-sockets or --disable-sockets was given.
4058if test "${enable_sockets+set}" = set; then
4059 enableval="$enable_sockets"
e6cc62c6 4060
10f2d63a
VZ
4061 if test "$enableval" = yes; then
4062 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4063 else
4064 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4065 fi
e6cc62c6 4066
10f2d63a 4067else
e6cc62c6 4068
10f2d63a
VZ
4069 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4070 if test "x$LINE" != x ; then
4071 eval "DEFAULT_$LINE"
4072 else
4073 no_cache=1
4074 fi
4075
4076 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4077
e6cc62c6 4078fi;
10f2d63a
VZ
4079
4080 eval "$ac_cv_use_sockets"
4081 if test "$no_cache" != 1; then
4082 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4083 fi
4084
4085 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4086 echo "$as_me:$LINENO: result: yes" >&5
4087echo "${ECHO_T}yes" >&6
10f2d63a 4088 else
e6cc62c6
VS
4089 echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6
10f2d63a 4091 fi
e6cc62c6 4092
8284b0c5 4093
5005acfe 4094 enablestring=
e6cc62c6
VS
4095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4096echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4097 no_cache=0
4098 # Check whether --enable-ole or --disable-ole was given.
4099if test "${enable_ole+set}" = set; then
4100 enableval="$enable_ole"
e6cc62c6 4101
3bce6687
JS
4102 if test "$enableval" = yes; then
4103 ac_cv_use_ole='wxUSE_OLE=yes'
4104 else
4105 ac_cv_use_ole='wxUSE_OLE=no'
4106 fi
e6cc62c6 4107
3bce6687 4108else
e6cc62c6 4109
3bce6687
JS
4110 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4118
e6cc62c6 4119fi;
3bce6687
JS
4120
4121 eval "$ac_cv_use_ole"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4127 echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
3bce6687 4129 else
e6cc62c6
VS
4130 echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
3bce6687 4132 fi
e6cc62c6 4133
3bce6687 4134
5005acfe 4135 enablestring=
e6cc62c6
VS
4136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4137echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4138 no_cache=0
4139 # Check whether --enable-dataobj or --disable-dataobj was given.
4140if test "${enable_dataobj+set}" = set; then
4141 enableval="$enable_dataobj"
e6cc62c6 4142
3bce6687
JS
4143 if test "$enableval" = yes; then
4144 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4145 else
4146 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4147 fi
e6cc62c6 4148
3bce6687 4149else
e6cc62c6 4150
3bce6687
JS
4151 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4159
e6cc62c6 4160fi;
3bce6687
JS
4161
4162 eval "$ac_cv_use_dataobj"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4168 echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
3bce6687 4170 else
e6cc62c6
VS
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
3bce6687 4173 fi
e6cc62c6 4174
3bce6687 4175
52127426 4176
5005acfe 4177 enablestring=
e6cc62c6
VS
4178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4179echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4180 no_cache=0
eb4efbdc
VZ
4181 # Check whether --enable-ipc or --disable-ipc was given.
4182if test "${enable_ipc+set}" = set; then
4183 enableval="$enable_ipc"
e6cc62c6 4184
10f2d63a 4185 if test "$enableval" = yes; then
eb4efbdc 4186 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4187 else
eb4efbdc 4188 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4189 fi
e6cc62c6 4190
10f2d63a 4191else
e6cc62c6 4192
eb4efbdc 4193 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
eb4efbdc 4200 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4201
e6cc62c6 4202fi;
10f2d63a 4203
eb4efbdc 4204 eval "$ac_cv_use_ipc"
10f2d63a 4205 if test "$no_cache" != 1; then
eb4efbdc 4206 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4207 fi
4208
eb4efbdc 4209 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4210 echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
10f2d63a 4212 else
e6cc62c6
VS
4213 echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
10f2d63a 4215 fi
e6cc62c6 4216
52127426 4217
8284b0c5 4218
5005acfe 4219 enablestring=
e6cc62c6
VS
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4221echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4222 no_cache=0
4223 # Check whether --enable-cmdline or --disable-cmdline was given.
4224if test "${enable_cmdline+set}" = set; then
4225 enableval="$enable_cmdline"
e6cc62c6 4226
1e6feb95
VZ
4227 if test "$enableval" = yes; then
4228 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4229 else
4230 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4231 fi
e6cc62c6 4232
1e6feb95 4233else
e6cc62c6 4234
1e6feb95
VZ
4235 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4243
e6cc62c6 4244fi;
1e6feb95
VZ
4245
4246 eval "$ac_cv_use_cmdline"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
1e6feb95 4254 else
e6cc62c6
VS
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
1e6feb95 4257 fi
e6cc62c6 4258
1e6feb95 4259
5005acfe 4260 enablestring=
e6cc62c6
VS
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4262echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4263 no_cache=0
4264 # Check whether --enable-datetime or --disable-datetime was given.
4265if test "${enable_datetime+set}" = set; then
4266 enableval="$enable_datetime"
e6cc62c6 4267
1e6feb95
VZ
4268 if test "$enableval" = yes; then
4269 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4270 else
4271 ac_cv_use_datetime='wxUSE_DATETIME=no'
4272 fi
e6cc62c6 4273
1e6feb95 4274else
e6cc62c6 4275
1e6feb95
VZ
4276 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4284
e6cc62c6 4285fi;
1e6feb95
VZ
4286
4287 eval "$ac_cv_use_datetime"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
1e6feb95 4295 else
e6cc62c6
VS
4296 echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
1e6feb95 4298 fi
e6cc62c6 4299
1e6feb95 4300
5005acfe 4301 enablestring=
e6cc62c6
VS
4302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4303echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4304 no_cache=0
4305 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4306if test "${enable_stopwatch+set}" = set; then
4307 enableval="$enable_stopwatch"
e6cc62c6 4308
1e6feb95
VZ
4309 if test "$enableval" = yes; then
4310 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4311 else
4312 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4313 fi
e6cc62c6 4314
1e6feb95 4315else
e6cc62c6 4316
1e6feb95
VZ
4317 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4325
e6cc62c6 4326fi;
1e6feb95
VZ
4327
4328 eval "$ac_cv_use_stopwatch"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4334 echo "$as_me:$LINENO: result: yes" >&5
4335echo "${ECHO_T}yes" >&6
1e6feb95 4336 else
e6cc62c6
VS
4337 echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6
1e6feb95 4339 fi
e6cc62c6 4340
1e6feb95 4341
5005acfe 4342 enablestring=
e6cc62c6
VS
4343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4344echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4345 no_cache=0
eb4efbdc
VZ
4346 # Check whether --enable-dialupman or --disable-dialupman was given.
4347if test "${enable_dialupman+set}" = set; then
4348 enableval="$enable_dialupman"
e6cc62c6 4349
10f2d63a 4350 if test "$enableval" = yes; then
eb4efbdc 4351 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4352 else
eb4efbdc 4353 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4354 fi
e6cc62c6 4355
10f2d63a 4356else
e6cc62c6 4357
eb4efbdc 4358 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
eb4efbdc 4365 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4366
e6cc62c6 4367fi;
10f2d63a 4368
eb4efbdc 4369 eval "$ac_cv_use_dialupman"
10f2d63a 4370 if test "$no_cache" != 1; then
eb4efbdc 4371 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4372 fi
4373
eb4efbdc 4374 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4375 echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6
10f2d63a 4377 else
e6cc62c6
VS
4378 echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
10f2d63a 4380 fi
e6cc62c6 4381
10f2d63a 4382
5005acfe 4383 enablestring=
e6cc62c6
VS
4384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4385echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4386 no_cache=0
4387 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4388if test "${enable_apple_ieee+set}" = set; then
4389 enableval="$enable_apple_ieee"
e6cc62c6 4390
10f2d63a
VZ
4391 if test "$enableval" = yes; then
4392 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4393 else
4394 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4395 fi
e6cc62c6 4396
10f2d63a 4397else
e6cc62c6 4398
10f2d63a
VZ
4399 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4407
e6cc62c6 4408fi;
10f2d63a
VZ
4409
4410 eval "$ac_cv_use_apple_ieee"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4416 echo "$as_me:$LINENO: result: yes" >&5
4417echo "${ECHO_T}yes" >&6
10f2d63a 4418 else
e6cc62c6
VS
4419 echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
10f2d63a 4421 fi
e6cc62c6 4422
10f2d63a 4423
5005acfe 4424 enablestring=
e6cc62c6
VS
4425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4426echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4427 no_cache=0
1e6feb95
VZ
4428 # Check whether --enable-timer or --disable-timer was given.
4429if test "${enable_timer+set}" = set; then
4430 enableval="$enable_timer"
e6cc62c6 4431
10f2d63a 4432 if test "$enableval" = yes; then
1e6feb95 4433 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4434 else
1e6feb95 4435 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4436 fi
e6cc62c6 4437
10f2d63a 4438else
e6cc62c6 4439
1e6feb95 4440 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
1e6feb95 4447 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4448
e6cc62c6 4449fi;
10f2d63a 4450
1e6feb95 4451 eval "$ac_cv_use_timer"
10f2d63a 4452 if test "$no_cache" != 1; then
1e6feb95 4453 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4454 fi
4455
1e6feb95 4456 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4457 echo "$as_me:$LINENO: result: yes" >&5
4458echo "${ECHO_T}yes" >&6
10f2d63a 4459 else
e6cc62c6
VS
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
10f2d63a 4462 fi
e6cc62c6 4463
10f2d63a 4464
5005acfe 4465 enablestring=
e6cc62c6
VS
4466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4467echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4468 no_cache=0
4469 # Check whether --enable-wave or --disable-wave was given.
4470if test "${enable_wave+set}" = set; then
4471 enableval="$enable_wave"
e6cc62c6 4472
10f2d63a
VZ
4473 if test "$enableval" = yes; then
4474 ac_cv_use_wave='wxUSE_WAVE=yes'
4475 else
4476 ac_cv_use_wave='wxUSE_WAVE=no'
4477 fi
e6cc62c6 4478
10f2d63a 4479else
e6cc62c6 4480
10f2d63a
VZ
4481 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4482 if test "x$LINE" != x ; then
4483 eval "DEFAULT_$LINE"
4484 else
4485 no_cache=1
4486 fi
4487
4488 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4489
e6cc62c6 4490fi;
10f2d63a
VZ
4491
4492 eval "$ac_cv_use_wave"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4498 echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
10f2d63a 4500 else
e6cc62c6
VS
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
10f2d63a 4503 fi
e6cc62c6 4504
10f2d63a 4505
5005acfe 4506 enablestring=
e6cc62c6
VS
4507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4508echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4509 no_cache=0
4510 # Check whether --enable-fraction or --disable-fraction was given.
4511if test "${enable_fraction+set}" = set; then
4512 enableval="$enable_fraction"
e6cc62c6 4513
10f2d63a
VZ
4514 if test "$enableval" = yes; then
4515 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4516 else
4517 ac_cv_use_fraction='wxUSE_FRACTION=no'
4518 fi
e6cc62c6 4519
10f2d63a 4520else
e6cc62c6 4521
10f2d63a
VZ
4522 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4523 if test "x$LINE" != x ; then
4524 eval "DEFAULT_$LINE"
4525 else
4526 no_cache=1
4527 fi
4528
4529 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4530
e6cc62c6 4531fi;
10f2d63a
VZ
4532
4533 eval "$ac_cv_use_fraction"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4539 echo "$as_me:$LINENO: result: yes" >&5
4540echo "${ECHO_T}yes" >&6
10f2d63a 4541 else
e6cc62c6
VS
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
10f2d63a 4544 fi
e6cc62c6 4545
10f2d63a 4546
5005acfe 4547 enablestring=
e6cc62c6
VS
4548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4549echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4550 no_cache=0
4551 # Check whether --enable-dynlib or --disable-dynlib was given.
4552if test "${enable_dynlib+set}" = set; then
4553 enableval="$enable_dynlib"
e6cc62c6 4554
10f2d63a
VZ
4555 if test "$enableval" = yes; then
4556 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4557 else
4558 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4559 fi
e6cc62c6 4560
10f2d63a 4561else
e6cc62c6 4562
10f2d63a
VZ
4563 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4571
e6cc62c6 4572fi;
10f2d63a
VZ
4573
4574 eval "$ac_cv_use_dynlib"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4580 echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
10f2d63a 4582 else
e6cc62c6
VS
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
10f2d63a 4585 fi
e6cc62c6 4586
10f2d63a 4587
5005acfe 4588 enablestring=
e6cc62c6
VS
4589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4591 no_cache=0
4592 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4593if test "${enable_dynamicloader+set}" = set; then
4594 enableval="$enable_dynamicloader"
e6cc62c6 4595
0b9ab0bd
RL
4596 if test "$enableval" = yes; then
4597 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4598 else
4599 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4600 fi
e6cc62c6 4601
0b9ab0bd 4602else
e6cc62c6 4603
0b9ab0bd
RL
4604 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4612
e6cc62c6 4613fi;
0b9ab0bd
RL
4614
4615 eval "$ac_cv_use_dynamicloader"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
0b9ab0bd 4623 else
e6cc62c6
VS
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
0b9ab0bd 4626 fi
e6cc62c6 4627
0b9ab0bd 4628
5005acfe 4629 enablestring=
e6cc62c6
VS
4630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4631echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4632 no_cache=0
4633 # Check whether --enable-longlong or --disable-longlong was given.
4634if test "${enable_longlong+set}" = set; then
4635 enableval="$enable_longlong"
e6cc62c6 4636
10f2d63a
VZ
4637 if test "$enableval" = yes; then
4638 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4639 else
4640 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4641 fi
e6cc62c6 4642
10f2d63a 4643else
e6cc62c6 4644
10f2d63a
VZ
4645 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4646 if test "x$LINE" != x ; then
4647 eval "DEFAULT_$LINE"
4648 else
4649 no_cache=1
4650 fi
4651
4652 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4653
e6cc62c6 4654fi;
10f2d63a
VZ
4655
4656 eval "$ac_cv_use_longlong"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4662 echo "$as_me:$LINENO: result: yes" >&5
4663echo "${ECHO_T}yes" >&6
10f2d63a 4664 else
e6cc62c6
VS
4665 echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6
10f2d63a 4667 fi
e6cc62c6 4668
10f2d63a 4669
5005acfe 4670 enablestring=
e6cc62c6
VS
4671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4672echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4673 no_cache=0
4674 # Check whether --enable-geometry or --disable-geometry was given.
4675if test "${enable_geometry+set}" = set; then
4676 enableval="$enable_geometry"
e6cc62c6 4677
e8f65ba6
RR
4678 if test "$enableval" = yes; then
4679 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4680 else
4681 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4682 fi
e6cc62c6 4683
e8f65ba6 4684else
e6cc62c6 4685
e8f65ba6
RR
4686 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4694
e6cc62c6 4695fi;
e8f65ba6
RR
4696
4697 eval "$ac_cv_use_geometry"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4703 echo "$as_me:$LINENO: result: yes" >&5
4704echo "${ECHO_T}yes" >&6
e8f65ba6 4705 else
e6cc62c6
VS
4706 echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
e8f65ba6 4708 fi
e6cc62c6 4709
e8f65ba6 4710
5005acfe 4711 enablestring=
e6cc62c6
VS
4712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4713echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4714 no_cache=0
4715 # Check whether --enable-log or --disable-log was given.
4716if test "${enable_log+set}" = set; then
4717 enableval="$enable_log"
e6cc62c6 4718
10f2d63a
VZ
4719 if test "$enableval" = yes; then
4720 ac_cv_use_log='wxUSE_LOG=yes'
4721 else
4722 ac_cv_use_log='wxUSE_LOG=no'
4723 fi
e6cc62c6 4724
10f2d63a 4725else
e6cc62c6 4726
10f2d63a
VZ
4727 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4728 if test "x$LINE" != x ; then
4729 eval "DEFAULT_$LINE"
4730 else
4731 no_cache=1
4732 fi
4733
4734 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4735
e6cc62c6 4736fi;
10f2d63a
VZ
4737
4738 eval "$ac_cv_use_log"
4739 if test "$no_cache" != 1; then
4740 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4741 fi
4742
4743 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4744 echo "$as_me:$LINENO: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
10f2d63a 4746 else
e6cc62c6
VS
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
10f2d63a 4749 fi
e6cc62c6 4750
10f2d63a 4751
5005acfe 4752 enablestring=
e6cc62c6
VS
4753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4754echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4755 no_cache=0
4756 # Check whether --enable-streams or --disable-streams was given.
4757if test "${enable_streams+set}" = set; then
4758 enableval="$enable_streams"
e6cc62c6 4759
10f2d63a
VZ
4760 if test "$enableval" = yes; then
4761 ac_cv_use_streams='wxUSE_STREAMS=yes'
4762 else
4763 ac_cv_use_streams='wxUSE_STREAMS=no'
4764 fi
e6cc62c6 4765
10f2d63a 4766else
e6cc62c6 4767
10f2d63a
VZ
4768 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4776
e6cc62c6 4777fi;
10f2d63a
VZ
4778
4779 eval "$ac_cv_use_streams"
4780 if test "$no_cache" != 1; then
4781 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4782 fi
4783
4784 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4785 echo "$as_me:$LINENO: result: yes" >&5
4786echo "${ECHO_T}yes" >&6
10f2d63a 4787 else
e6cc62c6
VS
4788 echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
10f2d63a 4790 fi
e6cc62c6 4791
10f2d63a 4792
5005acfe 4793 enablestring=
e6cc62c6
VS
4794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4795echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4796 no_cache=0
4797 # Check whether --enable-file or --disable-file was given.
4798if test "${enable_file+set}" = set; then
4799 enableval="$enable_file"
e6cc62c6 4800
10f2d63a
VZ
4801 if test "$enableval" = yes; then
4802 ac_cv_use_file='wxUSE_FILE=yes'
4803 else
4804 ac_cv_use_file='wxUSE_FILE=no'
4805 fi
e6cc62c6 4806
10f2d63a 4807else
e6cc62c6 4808
10f2d63a
VZ
4809 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4817
e6cc62c6 4818fi;
10f2d63a
VZ
4819
4820 eval "$ac_cv_use_file"
4821 if test "$no_cache" != 1; then
4822 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4823 fi
4824
4825 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4826 echo "$as_me:$LINENO: result: yes" >&5
4827echo "${ECHO_T}yes" >&6
10f2d63a 4828 else
e6cc62c6
VS
4829 echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
10f2d63a 4831 fi
e6cc62c6 4832
10f2d63a 4833
5005acfe 4834 enablestring=
e6cc62c6
VS
4835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4836echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4837 no_cache=0
1e6feb95
VZ
4838 # Check whether --enable-ffile or --disable-ffile was given.
4839if test "${enable_ffile+set}" = set; then
4840 enableval="$enable_ffile"
e6cc62c6 4841
10f2d63a 4842 if test "$enableval" = yes; then
1e6feb95 4843 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4844 else
1e6feb95 4845 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4846 fi
e6cc62c6 4847
10f2d63a 4848else
e6cc62c6 4849
1e6feb95 4850 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
1e6feb95 4857 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4858
e6cc62c6 4859fi;
10f2d63a 4860
1e6feb95 4861 eval "$ac_cv_use_ffile"
10f2d63a 4862 if test "$no_cache" != 1; then
1e6feb95 4863 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4864 fi
4865
1e6feb95 4866 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4867 echo "$as_me:$LINENO: result: yes" >&5
4868echo "${ECHO_T}yes" >&6
10f2d63a 4869 else
e6cc62c6
VS
4870 echo "$as_me:$LINENO: result: no" >&5
4871echo "${ECHO_T}no" >&6
10f2d63a 4872 fi
e6cc62c6 4873
10f2d63a 4874
5005acfe 4875 enablestring=
e6cc62c6
VS
4876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4877echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4878 no_cache=0
4879 # Check whether --enable-textbuf or --disable-textbuf was given.
4880if test "${enable_textbuf+set}" = set; then
4881 enableval="$enable_textbuf"
e6cc62c6 4882
a3a584a7
VZ
4883 if test "$enableval" = yes; then
4884 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4885 else
4886 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4887 fi
e6cc62c6 4888
a3a584a7 4889else
e6cc62c6 4890
a3a584a7
VZ
4891 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 else
4895 no_cache=1
4896 fi
4897
4898 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4899
e6cc62c6 4900fi;
a3a584a7
VZ
4901
4902 eval "$ac_cv_use_textbuf"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4908 echo "$as_me:$LINENO: result: yes" >&5
4909echo "${ECHO_T}yes" >&6
a3a584a7 4910 else
e6cc62c6
VS
4911 echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6
a3a584a7 4913 fi
e6cc62c6 4914
a3a584a7 4915
5005acfe 4916 enablestring=
e6cc62c6
VS
4917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4918echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4919 no_cache=0
1e6feb95
VZ
4920 # Check whether --enable-textfile or --disable-textfile was given.
4921if test "${enable_textfile+set}" = set; then
4922 enableval="$enable_textfile"
e6cc62c6 4923
10f2d63a 4924 if test "$enableval" = yes; then
1e6feb95 4925 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4926 else
1e6feb95 4927 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4928 fi
e6cc62c6 4929
10f2d63a 4930else
e6cc62c6 4931
1e6feb95 4932 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4933 if test "x$LINE" != x ; then
4934 eval "DEFAULT_$LINE"
4935 else
4936 no_cache=1
4937 fi
4938
1e6feb95 4939 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4940
e6cc62c6 4941fi;
10f2d63a 4942
1e6feb95 4943 eval "$ac_cv_use_textfile"
10f2d63a 4944 if test "$no_cache" != 1; then
1e6feb95 4945 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4946 fi
4947
1e6feb95 4948 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4949 echo "$as_me:$LINENO: result: yes" >&5
4950echo "${ECHO_T}yes" >&6
10f2d63a 4951 else
e6cc62c6
VS
4952 echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6
10f2d63a 4954 fi
e6cc62c6 4955
10f2d63a 4956
5005acfe 4957 enablestring=
e6cc62c6
VS
4958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4959echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4960 no_cache=0
1e6feb95
VZ
4961 # Check whether --enable-fontmap or --disable-fontmap was given.
4962if test "${enable_fontmap+set}" = set; then
4963 enableval="$enable_fontmap"
e6cc62c6 4964
10f2d63a 4965 if test "$enableval" = yes; then
1e6feb95 4966 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4967 else
1e6feb95 4968 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4969 fi
e6cc62c6 4970
10f2d63a 4971else
e6cc62c6 4972
1e6feb95 4973 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
1e6feb95 4980 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4981
e6cc62c6 4982fi;
10f2d63a 4983
1e6feb95 4984 eval "$ac_cv_use_fontmap"
10f2d63a 4985 if test "$no_cache" != 1; then
1e6feb95 4986 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4987 fi
4988
1e6feb95 4989 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4990 echo "$as_me:$LINENO: result: yes" >&5
4991echo "${ECHO_T}yes" >&6
10f2d63a 4992 else
e6cc62c6
VS
4993 echo "$as_me:$LINENO: result: no" >&5
4994echo "${ECHO_T}no" >&6
10f2d63a 4995 fi
e6cc62c6 4996
10f2d63a 4997
5005acfe 4998 enablestring=
e6cc62c6
VS
4999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5000echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 5001 no_cache=0
1e6feb95
VZ
5002 # Check whether --enable-unicode or --disable-unicode was given.
5003if test "${enable_unicode+set}" = set; then
5004 enableval="$enable_unicode"
e6cc62c6 5005
1e6feb95
VZ
5006 if test "$enableval" = yes; then
5007 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5008 else
5009 ac_cv_use_unicode='wxUSE_UNICODE=no'
5010 fi
e6cc62c6 5011
1e6feb95 5012else
e6cc62c6 5013
1e6feb95
VZ
5014 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5022
e6cc62c6 5023fi;
1e6feb95
VZ
5024
5025 eval "$ac_cv_use_unicode"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5031 echo "$as_me:$LINENO: result: yes" >&5
5032echo "${ECHO_T}yes" >&6
1e6feb95 5033 else
e6cc62c6
VS
5034 echo "$as_me:$LINENO: result: no" >&5
5035echo "${ECHO_T}no" >&6
1e6feb95 5036 fi
e6cc62c6 5037
1e6feb95 5038
5005acfe 5039 enablestring=
e6cc62c6
VS
5040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5041echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5042 no_cache=0
5043 # Check whether --enable-mslu or --disable-mslu was given.
5044if test "${enable_mslu+set}" = set; then
5045 enableval="$enable_mslu"
e6cc62c6 5046
a72a4bfa
VS
5047 if test "$enableval" = yes; then
5048 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5049 else
5050 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5051 fi
e6cc62c6 5052
a72a4bfa 5053else
e6cc62c6 5054
a72a4bfa
VS
5055 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5056 if test "x$LINE" != x ; then
5057 eval "DEFAULT_$LINE"
5058 else
5059 no_cache=1
5060 fi
5061
5062 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5063
e6cc62c6 5064fi;
a72a4bfa
VS
5065
5066 eval "$ac_cv_use_mslu"
5067 if test "$no_cache" != 1; then
5068 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5069 fi
5070
5071 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5072 echo "$as_me:$LINENO: result: yes" >&5
5073echo "${ECHO_T}yes" >&6
a72a4bfa 5074 else
e6cc62c6
VS
5075 echo "$as_me:$LINENO: result: no" >&5
5076echo "${ECHO_T}no" >&6
a72a4bfa 5077 fi
e6cc62c6 5078
a72a4bfa 5079
5005acfe 5080 enablestring=
e6cc62c6
VS
5081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5082echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5083 no_cache=0
5084 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5085if test "${enable_wxprintfv+set}" = set; then
5086 enableval="$enable_wxprintfv"
e6cc62c6 5087
1e6feb95 5088 if test "$enableval" = yes; then
10f2d63a
VZ
5089 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5090 else
5091 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5092 fi
e6cc62c6 5093
10f2d63a 5094else
e6cc62c6 5095
10f2d63a
VZ
5096 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5104
e6cc62c6 5105fi;
10f2d63a
VZ
5106
5107 eval "$ac_cv_use_wxprintfv"
5108 if test "$no_cache" != 1; then
5109 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5110 fi
5111
5112 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5113 echo "$as_me:$LINENO: result: yes" >&5
5114echo "${ECHO_T}yes" >&6
10f2d63a 5115 else
e6cc62c6
VS
5116 echo "$as_me:$LINENO: result: no" >&5
5117echo "${ECHO_T}no" >&6
10f2d63a 5118 fi
e6cc62c6 5119
10f2d63a 5120
5005acfe 5121 enablestring=
e6cc62c6
VS
5122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5123echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5124 no_cache=0
5125 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5126if test "${enable_std_iostreams+set}" = set; then
5127 enableval="$enable_std_iostreams"
e6cc62c6 5128
10f2d63a
VZ
5129 if test "$enableval" = yes; then
5130 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5131 else
5132 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5133 fi
e6cc62c6 5134
10f2d63a 5135else
e6cc62c6 5136
10f2d63a
VZ
5137 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5138 if test "x$LINE" != x ; then
5139 eval "DEFAULT_$LINE"
5140 else
5141 no_cache=1
5142 fi
5143
5144 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5145
e6cc62c6 5146fi;
10f2d63a
VZ
5147
5148 eval "$ac_cv_use_std_iostreams"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5154 echo "$as_me:$LINENO: result: yes" >&5
5155echo "${ECHO_T}yes" >&6
10f2d63a 5156 else
e6cc62c6
VS
5157 echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6
10f2d63a 5159 fi
e6cc62c6 5160
10f2d63a 5161
5005acfe 5162 enablestring=
e6cc62c6
VS
5163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5164echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5165 no_cache=0
5166 # Check whether --enable-filesystem or --disable-filesystem was given.
5167if test "${enable_filesystem+set}" = set; then
5168 enableval="$enable_filesystem"
e6cc62c6 5169
24528b0c
VS
5170 if test "$enableval" = yes; then
5171 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5172 else
5173 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5174 fi
e6cc62c6 5175
24528b0c 5176else
e6cc62c6 5177
24528b0c
VS
5178 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5179 if test "x$LINE" != x ; then
5180 eval "DEFAULT_$LINE"
5181 else
5182 no_cache=1
5183 fi
5184
5185 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5186
e6cc62c6 5187fi;
24528b0c
VS
5188
5189 eval "$ac_cv_use_filesystem"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5195 echo "$as_me:$LINENO: result: yes" >&5
5196echo "${ECHO_T}yes" >&6
24528b0c 5197 else
e6cc62c6
VS
5198 echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
24528b0c 5200 fi
e6cc62c6 5201
24528b0c 5202
5005acfe 5203 enablestring=
e6cc62c6
VS
5204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5205echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5206 no_cache=0
5207 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5208if test "${enable_fs_inet+set}" = set; then
5209 enableval="$enable_fs_inet"
e6cc62c6 5210
10f2d63a
VZ
5211 if test "$enableval" = yes; then
5212 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5213 else
5214 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5215 fi
e6cc62c6 5216
10f2d63a 5217else
e6cc62c6 5218
10f2d63a
VZ
5219 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5220 if test "x$LINE" != x ; then
5221 eval "DEFAULT_$LINE"
5222 else
5223 no_cache=1
5224 fi
5225
5226 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5227
e6cc62c6 5228fi;
10f2d63a
VZ
5229
5230 eval "$ac_cv_use_fs_inet"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5236 echo "$as_me:$LINENO: result: yes" >&5
5237echo "${ECHO_T}yes" >&6
10f2d63a 5238 else
e6cc62c6
VS
5239 echo "$as_me:$LINENO: result: no" >&5
5240echo "${ECHO_T}no" >&6
10f2d63a 5241 fi
e6cc62c6 5242
10f2d63a 5243
5005acfe 5244 enablestring=
e6cc62c6
VS
5245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5246echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5247 no_cache=0
5248 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5249if test "${enable_fs_zip+set}" = set; then
5250 enableval="$enable_fs_zip"
e6cc62c6 5251
10f2d63a
VZ
5252 if test "$enableval" = yes; then
5253 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5254 else
5255 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5256 fi
e6cc62c6 5257
10f2d63a 5258else
e6cc62c6 5259
10f2d63a
VZ
5260 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5261 if test "x$LINE" != x ; then
5262 eval "DEFAULT_$LINE"
5263 else
5264 no_cache=1
5265 fi
5266
5267 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5268
e6cc62c6 5269fi;
10f2d63a
VZ
5270
5271 eval "$ac_cv_use_fs_zip"
5272 if test "$no_cache" != 1; then
5273 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5274 fi
5275
5276 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5277 echo "$as_me:$LINENO: result: yes" >&5
5278echo "${ECHO_T}yes" >&6
10f2d63a 5279 else
e6cc62c6
VS
5280 echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6
10f2d63a 5282 fi
e6cc62c6 5283
10f2d63a 5284
5005acfe 5285 enablestring=
e6cc62c6
VS
5286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5287echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5288 no_cache=0
5289 # Check whether --enable-zipstream or --disable-zipstream was given.
5290if test "${enable_zipstream+set}" = set; then
5291 enableval="$enable_zipstream"
e6cc62c6 5292
10f2d63a
VZ
5293 if test "$enableval" = yes; then
5294 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5295 else
5296 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5297 fi
e6cc62c6 5298
10f2d63a 5299else
e6cc62c6 5300
10f2d63a
VZ
5301 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5309
e6cc62c6 5310fi;
10f2d63a
VZ
5311
5312 eval "$ac_cv_use_zipstream"
5313 if test "$no_cache" != 1; then
5314 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5315 fi
5316
5317 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5318 echo "$as_me:$LINENO: result: yes" >&5
5319echo "${ECHO_T}yes" >&6
10f2d63a 5320 else
e6cc62c6
VS
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
10f2d63a 5323 fi
e6cc62c6 5324
8284b0c5 5325
52127426 5326
5005acfe 5327 enablestring=
e6cc62c6
VS
5328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5329echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5330 no_cache=0
5331 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5332if test "${enable_catch_segvs+set}" = set; then
5333 enableval="$enable_catch_segvs"
e6cc62c6 5334
eb4efbdc
VZ
5335 if test "$enableval" = yes; then
5336 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5337 else
5338 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5339 fi
e6cc62c6 5340
eb4efbdc 5341else
e6cc62c6 5342
eb4efbdc
VZ
5343 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5351
e6cc62c6 5352fi;
eb4efbdc
VZ
5353
5354 eval "$ac_cv_use_catch_segvs"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5360 echo "$as_me:$LINENO: result: yes" >&5
5361echo "${ECHO_T}yes" >&6
eb4efbdc 5362 else
e6cc62c6
VS
5363 echo "$as_me:$LINENO: result: no" >&5
5364echo "${ECHO_T}no" >&6
eb4efbdc 5365 fi
e6cc62c6 5366
eb4efbdc 5367
5005acfe 5368 enablestring=
e6cc62c6
VS
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5371 no_cache=0
5372 # Check whether --enable-snglinst or --disable-snglinst was given.
5373if test "${enable_snglinst+set}" = set; then
5374 enableval="$enable_snglinst"
e6cc62c6 5375
4f3c5f06
VZ
5376 if test "$enableval" = yes; then
5377 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5378 else
5379 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5380 fi
e6cc62c6 5381
4f3c5f06 5382else
e6cc62c6 5383
4f3c5f06
VZ
5384 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5392
e6cc62c6 5393fi;
4f3c5f06
VZ
5394
5395 eval "$ac_cv_use_snglinst"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
4f3c5f06 5403 else
e6cc62c6
VS
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
4f3c5f06 5406 fi
e6cc62c6 5407
52127426 5408
8284b0c5 5409
5005acfe 5410 enablestring=
e6cc62c6
VS
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5413 no_cache=0
5414 # Check whether --enable-mimetype or --disable-mimetype was given.
5415if test "${enable_mimetype+set}" = set; then
5416 enableval="$enable_mimetype"
e6cc62c6 5417
1e6feb95
VZ
5418 if test "$enableval" = yes; then
5419 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5420 else
5421 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5422 fi
e6cc62c6 5423
1e6feb95 5424else
e6cc62c6 5425
1e6feb95
VZ
5426 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5434
e6cc62c6 5435fi;
1e6feb95
VZ
5436
5437 eval "$ac_cv_use_mimetype"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
1e6feb95 5445 else
e6cc62c6
VS
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
1e6feb95 5448 fi
e6cc62c6 5449
1e6feb95 5450
5005acfe 5451 enablestring=
e6cc62c6
VS
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5454 no_cache=0
5455 # Check whether --enable-system_options or --disable-system_options was given.
5456if test "${enable_system_options+set}" = set; then
5457 enableval="$enable_system_options"
e6cc62c6 5458
3e44f09d
VZ
5459 if test "$enableval" = yes; then
5460 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5461 else
5462 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5463 fi
e6cc62c6 5464
3e44f09d 5465else
e6cc62c6 5466
3e44f09d
VZ
5467 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5475
e6cc62c6 5476fi;
3e44f09d
VZ
5477
5478 eval "$ac_cv_use_system_options"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
3e44f09d 5486 else
e6cc62c6
VS
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
3e44f09d 5489 fi
e6cc62c6 5490
8284b0c5 5491
52127426 5492
5005acfe 5493 enablestring=
e6cc62c6
VS
5494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5495echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5496 no_cache=0
5497 # Check whether --enable-url or --disable-url was given.
5498if test "${enable_url+set}" = set; then
5499 enableval="$enable_url"
e6cc62c6 5500
4cdb0ab0
VS
5501 if test "$enableval" = yes; then
5502 ac_cv_use_url='wxUSE_URL=yes'
5503 else
5504 ac_cv_use_url='wxUSE_URL=no'
5505 fi
e6cc62c6 5506
4cdb0ab0 5507else
e6cc62c6 5508
4cdb0ab0
VS
5509 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5510 if test "x$LINE" != x ; then
5511 eval "DEFAULT_$LINE"
5512 else
5513 no_cache=1
5514 fi
5515
5516 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5517
e6cc62c6 5518fi;
4cdb0ab0
VS
5519
5520 eval "$ac_cv_use_url"
5521 if test "$no_cache" != 1; then
5522 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5523 fi
5524
5525 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5526 echo "$as_me:$LINENO: result: yes" >&5
5527echo "${ECHO_T}yes" >&6
4cdb0ab0 5528 else
e6cc62c6
VS
5529 echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
4cdb0ab0 5531 fi
e6cc62c6 5532
4cdb0ab0 5533
5005acfe 5534 enablestring=
e6cc62c6
VS
5535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5536echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5537 no_cache=0
5538 # Check whether --enable-protocol or --disable-protocol was given.
5539if test "${enable_protocol+set}" = set; then
5540 enableval="$enable_protocol"
e6cc62c6 5541
4cdb0ab0
VS
5542 if test "$enableval" = yes; then
5543 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5544 else
5545 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5546 fi
e6cc62c6 5547
4cdb0ab0 5548else
e6cc62c6 5549
4cdb0ab0
VS
5550 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5558
e6cc62c6 5559fi;
4cdb0ab0
VS
5560
5561 eval "$ac_cv_use_protocol"
5562 if test "$no_cache" != 1; then
5563 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5564 fi
5565
5566 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5567 echo "$as_me:$LINENO: result: yes" >&5
5568echo "${ECHO_T}yes" >&6
4cdb0ab0 5569 else
e6cc62c6
VS
5570 echo "$as_me:$LINENO: result: no" >&5
5571echo "${ECHO_T}no" >&6
4cdb0ab0 5572 fi
e6cc62c6 5573
4cdb0ab0 5574
5005acfe 5575 enablestring=
e6cc62c6
VS
5576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5577echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5578 no_cache=0
5579 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5580if test "${enable_protocol_http+set}" = set; then
5581 enableval="$enable_protocol_http"
e6cc62c6 5582
4cdb0ab0
VS
5583 if test "$enableval" = yes; then
5584 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5585 else
5586 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5587 fi
e6cc62c6 5588
4cdb0ab0 5589else
e6cc62c6 5590
4cdb0ab0
VS
5591 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5599
e6cc62c6 5600fi;
4cdb0ab0
VS
5601
5602 eval "$ac_cv_use_protocol_http"
5603 if test "$no_cache" != 1; then
5604 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5605 fi
5606
5607 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5608 echo "$as_me:$LINENO: result: yes" >&5
5609echo "${ECHO_T}yes" >&6
4cdb0ab0 5610 else
e6cc62c6
VS
5611 echo "$as_me:$LINENO: result: no" >&5
5612echo "${ECHO_T}no" >&6
4cdb0ab0 5613 fi
e6cc62c6 5614
4cdb0ab0 5615
5005acfe 5616 enablestring=
e6cc62c6
VS
5617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5618echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5619 no_cache=0
5620 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5621if test "${enable_protocol_ftp+set}" = set; then
5622 enableval="$enable_protocol_ftp"
e6cc62c6 5623
4cdb0ab0
VS
5624 if test "$enableval" = yes; then
5625 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5626 else
5627 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5628 fi
e6cc62c6 5629
4cdb0ab0 5630else
e6cc62c6 5631
4cdb0ab0
VS
5632 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5633 if test "x$LINE" != x ; then
5634 eval "DEFAULT_$LINE"
5635 else
5636 no_cache=1
5637 fi
5638
5639 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5640
e6cc62c6 5641fi;
4cdb0ab0
VS
5642
5643 eval "$ac_cv_use_protocol_ftp"
5644 if test "$no_cache" != 1; then
5645 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5646 fi
5647
5648 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5649 echo "$as_me:$LINENO: result: yes" >&5
5650echo "${ECHO_T}yes" >&6
4cdb0ab0 5651 else
e6cc62c6
VS
5652 echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
4cdb0ab0 5654 fi
e6cc62c6 5655
4cdb0ab0 5656
5005acfe 5657 enablestring=
e6cc62c6
VS
5658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5659echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5660 no_cache=0
5661 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5662if test "${enable_protocol_file+set}" = set; then
5663 enableval="$enable_protocol_file"
e6cc62c6 5664
4cdb0ab0
VS
5665 if test "$enableval" = yes; then
5666 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5667 else
5668 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5669 fi
e6cc62c6 5670
4cdb0ab0 5671else
e6cc62c6 5672
4cdb0ab0
VS
5673 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5674 if test "x$LINE" != x ; then
5675 eval "DEFAULT_$LINE"
5676 else
5677 no_cache=1
5678 fi
5679
5680 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5681
e6cc62c6 5682fi;
4cdb0ab0
VS
5683
5684 eval "$ac_cv_use_protocol_file"
5685 if test "$no_cache" != 1; then
5686 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5687 fi
5688
5689 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: yes" >&5
5691echo "${ECHO_T}yes" >&6
4cdb0ab0 5692 else
e6cc62c6
VS
5693 echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
4cdb0ab0 5695 fi
e6cc62c6 5696
52127426 5697
8284b0c5
MB
5698
5699
5700
5005acfe 5701 enablestring=
e6cc62c6
VS
5702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5703echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5704 no_cache=0
5705 # Check whether --enable-threads or --disable-threads was given.
5706if test "${enable_threads+set}" = set; then
5707 enableval="$enable_threads"
e6cc62c6 5708
10f2d63a
VZ
5709 if test "$enableval" = yes; then
5710 ac_cv_use_threads='wxUSE_THREADS=yes'
5711 else
5712 ac_cv_use_threads='wxUSE_THREADS=no'
5713 fi
e6cc62c6 5714
10f2d63a 5715else
e6cc62c6 5716
10f2d63a
VZ
5717 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 else
5721 no_cache=1
5722 fi
5723
5724 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5725
e6cc62c6 5726fi;
10f2d63a
VZ
5727
5728 eval "$ac_cv_use_threads"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5734 echo "$as_me:$LINENO: result: yes" >&5
5735echo "${ECHO_T}yes" >&6
10f2d63a 5736 else
e6cc62c6
VS
5737 echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
10f2d63a 5739 fi
e6cc62c6 5740
10f2d63a 5741
b12915c1
VZ
5742if test "$wxUSE_GUI" = "yes"; then
5743
8284b0c5
MB
5744
5745
5005acfe 5746 enablestring=
e6cc62c6
VS
5747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5748echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5749 no_cache=0
5750 # Check whether --enable-docview or --disable-docview was given.
5751if test "${enable_docview+set}" = set; then
5752 enableval="$enable_docview"
e6cc62c6 5753
10f2d63a
VZ
5754 if test "$enableval" = yes; then
5755 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5756 else
5757 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5758 fi
e6cc62c6 5759
10f2d63a 5760else
e6cc62c6 5761
10f2d63a
VZ
5762 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5770
e6cc62c6 5771fi;
10f2d63a
VZ
5772
5773 eval "$ac_cv_use_docview"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5779 echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
10f2d63a 5781 else
e6cc62c6
VS
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
10f2d63a 5784 fi
e6cc62c6 5785
10f2d63a 5786
5005acfe 5787 enablestring=
e6cc62c6
VS
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5790 no_cache=0
5791 # Check whether --enable-help or --disable-help was given.
5792if test "${enable_help+set}" = set; then
5793 enableval="$enable_help"
e6cc62c6 5794
10f2d63a
VZ
5795 if test "$enableval" = yes; then
5796 ac_cv_use_help='wxUSE_HELP=yes'
5797 else
5798 ac_cv_use_help='wxUSE_HELP=no'
5799 fi
e6cc62c6 5800
10f2d63a 5801else
e6cc62c6 5802
10f2d63a
VZ
5803 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5811
e6cc62c6 5812fi;
10f2d63a
VZ
5813
5814 eval "$ac_cv_use_help"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
10f2d63a 5822 else
e6cc62c6
VS
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
10f2d63a 5825 fi
e6cc62c6 5826
10f2d63a 5827
5005acfe 5828 enablestring=
e6cc62c6
VS
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5831 no_cache=0
5832 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5833if test "${enable_mshtmlhelp+set}" = set; then
5834 enableval="$enable_mshtmlhelp"
e6cc62c6 5835
29fd3c0c
VS
5836 if test "$enableval" = yes; then
5837 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5838 else
5839 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5840 fi
e6cc62c6 5841
29fd3c0c 5842else
e6cc62c6 5843
29fd3c0c
VS
5844 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5852
e6cc62c6 5853fi;
29fd3c0c
VS
5854
5855 eval "$ac_cv_use_mshtmlhelp"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
29fd3c0c 5863 else
e6cc62c6
VS
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
29fd3c0c 5866 fi
e6cc62c6 5867
29fd3c0c 5868
5005acfe 5869 enablestring=
e6cc62c6
VS
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5872 no_cache=0
5873 # Check whether --enable-html or --disable-html was given.
5874if test "${enable_html+set}" = set; then
5875 enableval="$enable_html"
e6cc62c6 5876
3379ed37
VZ
5877 if test "$enableval" = yes; then
5878 ac_cv_use_html='wxUSE_HTML=yes'
5879 else
5880 ac_cv_use_html='wxUSE_HTML=no'
5881 fi
e6cc62c6 5882
3379ed37 5883else
e6cc62c6 5884
3379ed37
VZ
5885 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5893
e6cc62c6 5894fi;
3379ed37
VZ
5895
5896 eval "$ac_cv_use_html"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
3379ed37 5904 else
e6cc62c6
VS
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
3379ed37 5907 fi
e6cc62c6 5908
3379ed37 5909
5005acfe 5910 enablestring=
e6cc62c6
VS
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5913 no_cache=0
5914 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5915if test "${enable_htmlhelp+set}" = set; then
5916 enableval="$enable_htmlhelp"
e6cc62c6 5917
3379ed37
VZ
5918 if test "$enableval" = yes; then
5919 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5920 else
5921 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5922 fi
e6cc62c6 5923
3379ed37 5924else
e6cc62c6 5925
3379ed37
VZ
5926 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5934
e6cc62c6 5935fi;
3379ed37
VZ
5936
5937 eval "$ac_cv_use_htmlhelp"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
3379ed37 5945 else
e6cc62c6
VS
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
3379ed37 5948 fi
e6cc62c6 5949
3379ed37 5950
5005acfe 5951 enablestring=
e6cc62c6
VS
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5954 no_cache=0
5955 # Check whether --enable-constraints or --disable-constraints was given.
5956if test "${enable_constraints+set}" = set; then
5957 enableval="$enable_constraints"
e6cc62c6 5958
10f2d63a
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5961 else
5962 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5963 fi
e6cc62c6 5964
10f2d63a 5965else
e6cc62c6 5966
10f2d63a
VZ
5967 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5975
e6cc62c6 5976fi;
10f2d63a
VZ
5977
5978 eval "$ac_cv_use_constraints"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
10f2d63a 5986 else
e6cc62c6
VS
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
10f2d63a 5989 fi
e6cc62c6 5990
10f2d63a 5991
5005acfe 5992 enablestring=
e6cc62c6
VS
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5995 no_cache=0
5996 # Check whether --enable-printarch or --disable-printarch was given.
5997if test "${enable_printarch+set}" = set; then
5998 enableval="$enable_printarch"
e6cc62c6 5999
10f2d63a
VZ
6000 if test "$enableval" = yes; then
6001 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6002 else
6003 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6004 fi
e6cc62c6 6005
10f2d63a 6006else
e6cc62c6 6007
10f2d63a
VZ
6008 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6016
e6cc62c6 6017fi;
10f2d63a
VZ
6018
6019 eval "$ac_cv_use_printarch"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
10f2d63a 6027 else
e6cc62c6
VS
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
10f2d63a 6030 fi
e6cc62c6 6031
10f2d63a 6032
5005acfe 6033 enablestring=
e6cc62c6
VS
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6036 no_cache=0
6037 # Check whether --enable-mdi or --disable-mdi was given.
6038if test "${enable_mdi+set}" = set; then
6039 enableval="$enable_mdi"
e6cc62c6 6040
10f2d63a
VZ
6041 if test "$enableval" = yes; then
6042 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6043 else
6044 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6045 fi
e6cc62c6 6046
10f2d63a 6047else
e6cc62c6 6048
10f2d63a
VZ
6049 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6057
e6cc62c6 6058fi;
10f2d63a
VZ
6059
6060 eval "$ac_cv_use_mdi"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
10f2d63a 6068 else
e6cc62c6
VS
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
10f2d63a 6071 fi
e6cc62c6 6072
698dcdb6 6073
5005acfe 6074 enablestring=
e6cc62c6
VS
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6077 no_cache=0
6078 # Check whether --enable-loggui or --disable-loggui was given.
6079if test "${enable_loggui+set}" = set; then
6080 enableval="$enable_loggui"
e6cc62c6 6081
1e6feb95
VZ
6082 if test "$enableval" = yes; then
6083 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6084 else
6085 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6086 fi
e6cc62c6 6087
1e6feb95 6088else
e6cc62c6 6089
1e6feb95
VZ
6090 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6098
e6cc62c6 6099fi;
1e6feb95
VZ
6100
6101 eval "$ac_cv_use_loggui"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
1e6feb95 6109 else
e6cc62c6
VS
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
1e6feb95 6112 fi
e6cc62c6 6113
1e6feb95 6114
5005acfe 6115 enablestring=
e6cc62c6
VS
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6118 no_cache=0
6119 # Check whether --enable-logwin or --disable-logwin was given.
6120if test "${enable_logwin+set}" = set; then
6121 enableval="$enable_logwin"
e6cc62c6 6122
1e6feb95
VZ
6123 if test "$enableval" = yes; then
6124 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6125 else
6126 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6127 fi
e6cc62c6 6128
1e6feb95 6129else
e6cc62c6 6130
1e6feb95
VZ
6131 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6139
e6cc62c6 6140fi;
1e6feb95
VZ
6141
6142 eval "$ac_cv_use_logwin"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
1e6feb95 6150 else
e6cc62c6
VS
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
1e6feb95 6153 fi
e6cc62c6 6154
1e6feb95 6155
5005acfe 6156 enablestring=
e6cc62c6
VS
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6159 no_cache=0
6160 # Check whether --enable-logdialog or --disable-logdialog was given.
6161if test "${enable_logdialog+set}" = set; then
6162 enableval="$enable_logdialog"
e6cc62c6 6163
69d27ff7
MB
6164 if test "$enableval" = yes; then
6165 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6166 else
6167 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6168 fi
e6cc62c6 6169
69d27ff7 6170else
e6cc62c6 6171
69d27ff7
MB
6172 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6180
e6cc62c6 6181fi;
69d27ff7
MB
6182
6183 eval "$ac_cv_use_logdialog"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
69d27ff7 6191 else
e6cc62c6
VS
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
69d27ff7 6194 fi
e6cc62c6 6195
8284b0c5 6196
52127426 6197
5005acfe 6198 enablestring=
e6cc62c6
VS
6199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6200echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6201 no_cache=0
6202 # Check whether --enable-postscript or --disable-postscript was given.
6203if test "${enable_postscript+set}" = set; then
6204 enableval="$enable_postscript"
e6cc62c6 6205
10f2d63a
VZ
6206 if test "$enableval" = yes; then
6207 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6208 else
6209 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6210 fi
e6cc62c6 6211
10f2d63a 6212else
e6cc62c6 6213
10f2d63a
VZ
6214 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6215 if test "x$LINE" != x ; then
6216 eval "DEFAULT_$LINE"
6217 else
6218 no_cache=1
6219 fi
6220
6221 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6222
e6cc62c6 6223fi;
10f2d63a
VZ
6224
6225 eval "$ac_cv_use_postscript"
6226 if test "$no_cache" != 1; then
6227 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6228 fi
6229
6230 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6231 echo "$as_me:$LINENO: result: yes" >&5
6232echo "${ECHO_T}yes" >&6
10f2d63a 6233 else
e6cc62c6
VS
6234 echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
10f2d63a 6236 fi
e6cc62c6 6237
8284b0c5
MB
6238
6239
52127426 6240
8284b0c5 6241
5005acfe 6242 enablestring=
e6cc62c6
VS
6243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6244echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6245 no_cache=0
3c907f20
VZ
6246 # Check whether --enable-prologio or --disable-prologio was given.
6247if test "${enable_prologio+set}" = set; then
6248 enableval="$enable_prologio"
e6cc62c6 6249
10f2d63a 6250 if test "$enableval" = yes; then
3c907f20 6251 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6252 else
3c907f20 6253 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6254 fi
e6cc62c6 6255
10f2d63a 6256else
e6cc62c6 6257
3c907f20 6258 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6259 if test "x$LINE" != x ; then
6260 eval "DEFAULT_$LINE"
6261 else
6262 no_cache=1
6263 fi
6264
3c907f20 6265 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6266
e6cc62c6 6267fi;
10f2d63a 6268
3c907f20 6269 eval "$ac_cv_use_prologio"
10f2d63a 6270 if test "$no_cache" != 1; then
3c907f20 6271 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6272 fi
6273
3c907f20 6274 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6275 echo "$as_me:$LINENO: result: yes" >&5
6276echo "${ECHO_T}yes" >&6
10f2d63a 6277 else
e6cc62c6
VS
6278 echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6
10f2d63a 6280 fi
e6cc62c6 6281
8284b0c5 6282
5005acfe 6283 enablestring=
e6cc62c6
VS
6284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6285echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6286 no_cache=0
3c907f20
VZ
6287 # Check whether --enable-resources or --disable-resources was given.
6288if test "${enable_resources+set}" = set; then
6289 enableval="$enable_resources"
e6cc62c6 6290
10f2d63a 6291 if test "$enableval" = yes; then
3c907f20 6292 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6293 else
3c907f20 6294 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6295 fi
e6cc62c6 6296
10f2d63a 6297else
e6cc62c6 6298
3c907f20 6299 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6300 if test "x$LINE" != x ; then
6301 eval "DEFAULT_$LINE"
6302 else
6303 no_cache=1
6304 fi
6305
3c907f20 6306 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6307
e6cc62c6 6308fi;
10f2d63a 6309
3c907f20 6310 eval "$ac_cv_use_resources"
10f2d63a 6311 if test "$no_cache" != 1; then
3c907f20 6312 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6313 fi
6314
3c907f20 6315 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6316 echo "$as_me:$LINENO: result: yes" >&5
6317echo "${ECHO_T}yes" >&6
10f2d63a 6318 else
e6cc62c6
VS
6319 echo "$as_me:$LINENO: result: no" >&5
6320echo "${ECHO_T}no" >&6
10f2d63a 6321 fi
e6cc62c6 6322
8284b0c5
MB
6323
6324
52127426 6325
5005acfe 6326 enablestring=
e6cc62c6
VS
6327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6328echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6329 no_cache=0
6330 # Check whether --enable-clipboard or --disable-clipboard was given.
6331if test "${enable_clipboard+set}" = set; then
6332 enableval="$enable_clipboard"
e6cc62c6 6333
10f2d63a
VZ
6334 if test "$enableval" = yes; then
6335 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6336 else
6337 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6338 fi
e6cc62c6 6339
10f2d63a 6340else
e6cc62c6 6341
10f2d63a
VZ
6342 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6343 if test "x$LINE" != x ; then
6344 eval "DEFAULT_$LINE"
6345 else
6346 no_cache=1
6347 fi
6348
6349 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6350
e6cc62c6 6351fi;
10f2d63a
VZ
6352
6353 eval "$ac_cv_use_clipboard"
6354 if test "$no_cache" != 1; then
6355 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6356 fi
6357
6358 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6359 echo "$as_me:$LINENO: result: yes" >&5
6360echo "${ECHO_T}yes" >&6
10f2d63a 6361 else
e6cc62c6
VS
6362 echo "$as_me:$LINENO: result: no" >&5
6363echo "${ECHO_T}no" >&6
10f2d63a 6364 fi
e6cc62c6 6365
10f2d63a 6366
5005acfe 6367 enablestring=
e6cc62c6
VS
6368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6369echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6370 no_cache=0
6371 # Check whether --enable-dnd or --disable-dnd was given.
6372if test "${enable_dnd+set}" = set; then
6373 enableval="$enable_dnd"
e6cc62c6 6374
10f2d63a
VZ
6375 if test "$enableval" = yes; then
6376 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6377 else
6378 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6379 fi
e6cc62c6 6380
10f2d63a 6381else
e6cc62c6 6382
10f2d63a
VZ
6383 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6384 if test "x$LINE" != x ; then
6385 eval "DEFAULT_$LINE"
6386 else
6387 no_cache=1
6388 fi
6389
6390 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6391
e6cc62c6 6392fi;
10f2d63a
VZ
6393
6394 eval "$ac_cv_use_dnd"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6400 echo "$as_me:$LINENO: result: yes" >&5
6401echo "${ECHO_T}yes" >&6
10f2d63a 6402 else
e6cc62c6
VS
6403 echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
10f2d63a 6405 fi
e6cc62c6 6406
10f2d63a 6407
5005acfe 6408 enablestring=
e6cc62c6
VS
6409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6410echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6411 no_cache=0
6412 # Check whether --enable-metafile or --disable-metafile was given.
6413if test "${enable_metafile+set}" = set; then
6414 enableval="$enable_metafile"
e6cc62c6 6415
b64f0a5f
RL
6416 if test "$enableval" = yes; then
6417 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6418 else
6419 ac_cv_use_metafile='wxUSE_METAFILE=no'
6420 fi
e6cc62c6 6421
b64f0a5f 6422else
e6cc62c6 6423
b64f0a5f
RL
6424 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6432
e6cc62c6 6433fi;
b64f0a5f
RL
6434
6435 eval "$ac_cv_use_metafile"
6436 if test "$no_cache" != 1; then
6437 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6438 fi
6439
6440 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6441 echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6
b64f0a5f 6443 else
e6cc62c6
VS
6444 echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
b64f0a5f 6446 fi
e6cc62c6 6447
52127426 6448
8284b0c5 6449
52127426 6450
8284b0c5 6451
5005acfe 6452 enablestring=
e6cc62c6
VS
6453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6454echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6455 no_cache=0
6456 # Check whether --enable-controls or --disable-controls was given.
6457if test "${enable_controls+set}" = set; then
6458 enableval="$enable_controls"
e6cc62c6 6459
10f2d63a
VZ
6460 if test "$enableval" = yes; then
6461 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6462 else
6463 ac_cv_use_controls='wxUSE_CONTROLS=no'
6464 fi
e6cc62c6 6465
10f2d63a 6466else
e6cc62c6 6467
10f2d63a
VZ
6468 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6476
e6cc62c6 6477fi;
10f2d63a
VZ
6478
6479 eval "$ac_cv_use_controls"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6485 echo "$as_me:$LINENO: result: yes" >&5
6486echo "${ECHO_T}yes" >&6
10f2d63a 6487 else
e6cc62c6
VS
6488 echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
10f2d63a 6490 fi
e6cc62c6 6491
10f2d63a
VZ
6492
6493if test "$wxUSE_CONTROLS" = "yes"; then
6494 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6495 DEFAULT_wxUSE_BMPBUTTON=yes
6496 DEFAULT_wxUSE_BUTTON=yes
6497 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6498 DEFAULT_wxUSE_CARET=yes
6499 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6500 DEFAULT_wxUSE_CHECKBOX=yes
6501 DEFAULT_wxUSE_CHECKLISTBOX=yes
6502 DEFAULT_wxUSE_CHOICE=yes
6503 DEFAULT_wxUSE_GAUGE=yes
6504 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6505 DEFAULT_wxUSE_IMAGLIST=yes
6506 DEFAULT_wxUSE_LISTBOX=yes
6507 DEFAULT_wxUSE_LISTCTRL=yes
6508 DEFAULT_wxUSE_NOTEBOOK=yes
6509 DEFAULT_wxUSE_RADIOBOX=yes
6510 DEFAULT_wxUSE_RADIOBTN=yes
6511 DEFAULT_wxUSE_SASH=yes
6512 DEFAULT_wxUSE_SCROLLBAR=yes
6513 DEFAULT_wxUSE_SLIDER=yes
6514 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6515 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6516 DEFAULT_wxUSE_SPLITTER=yes
6517 DEFAULT_wxUSE_STATBMP=yes
6518 DEFAULT_wxUSE_STATBOX=yes
6519 DEFAULT_wxUSE_STATLINE=yes
6520 DEFAULT_wxUSE_STATUSBAR=yes
6521 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6522 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6523 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6524 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6525 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6526 DEFAULT_wxUSE_TOOLTIPS=yes
6527 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6528 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6529 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6530elif test "$wxUSE_CONTROLS" = "no"; then
6531 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6532 DEFAULT_wxUSE_BMPBUTTON=no
6533 DEFAULT_wxUSE_BUTTON=no
6534 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6535 DEFAULT_wxUSE_CARET=no
6536 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6537 DEFAULT_wxUSE_CHECKBOX=no
6538 DEFAULT_wxUSE_CHECKLISTBOX=no
6539 DEFAULT_wxUSE_CHOICE=no
6540 DEFAULT_wxUSE_GAUGE=no
6541 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6542 DEFAULT_wxUSE_IMAGLIST=no
6543 DEFAULT_wxUSE_LISTBOX=no
6544 DEFAULT_wxUSE_LISTCTRL=no
6545 DEFAULT_wxUSE_NOTEBOOK=no
6546 DEFAULT_wxUSE_RADIOBOX=no
6547 DEFAULT_wxUSE_RADIOBTN=no
6548 DEFAULT_wxUSE_SASH=no
6549 DEFAULT_wxUSE_SCROLLBAR=no
6550 DEFAULT_wxUSE_SLIDER=no
6551 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6552 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6553 DEFAULT_wxUSE_SPLITTER=no
6554 DEFAULT_wxUSE_STATBMP=no
6555 DEFAULT_wxUSE_STATBOX=no
6556 DEFAULT_wxUSE_STATLINE=no
6557 DEFAULT_wxUSE_STATUSBAR=no
6558 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6559 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6560 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6561 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6562 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6563 DEFAULT_wxUSE_TOOLTIPS=no
6564 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6565 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6566 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6567fi
6568
ac0c4cc3
DE
6569## FIXME: This is a blatant hack
6570if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6571 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6572 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6573 # Generic notebook requires tab dialog
6574 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6575 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6576 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6577 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6578 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6579fi
6580
8284b0c5 6581
5005acfe 6582 enablestring=
e6cc62c6
VS
6583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6584echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6585 no_cache=0
6586 # Check whether --enable-accel or --disable-accel was given.
6587if test "${enable_accel+set}" = set; then
6588 enableval="$enable_accel"
e6cc62c6 6589
10f2d63a
VZ
6590 if test "$enableval" = yes; then
6591 ac_cv_use_accel='wxUSE_ACCEL=yes'
6592 else
6593 ac_cv_use_accel='wxUSE_ACCEL=no'
6594 fi
e6cc62c6 6595
10f2d63a 6596else
e6cc62c6 6597
10f2d63a
VZ
6598 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6599 if test "x$LINE" != x ; then
6600 eval "DEFAULT_$LINE"
6601 else
6602 no_cache=1
6603 fi
6604
6605 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6606
e6cc62c6 6607fi;
10f2d63a
VZ
6608
6609 eval "$ac_cv_use_accel"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6615 echo "$as_me:$LINENO: result: yes" >&5
6616echo "${ECHO_T}yes" >&6
10f2d63a 6617 else
e6cc62c6
VS
6618 echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6
10f2d63a 6620 fi
e6cc62c6 6621
10f2d63a 6622
5005acfe 6623 enablestring=
e6cc62c6
VS
6624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6625echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6626 no_cache=0
1e6feb95
VZ
6627 # Check whether --enable-button or --disable-button was given.
6628if test "${enable_button+set}" = set; then
6629 enableval="$enable_button"
e6cc62c6 6630
10f2d63a 6631 if test "$enableval" = yes; then
1e6feb95 6632 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6633 else
1e6feb95 6634 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6635 fi
e6cc62c6 6636
10f2d63a 6637else
e6cc62c6 6638
1e6feb95 6639 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
1e6feb95 6646 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6647
e6cc62c6 6648fi;
10f2d63a 6649
1e6feb95 6650 eval "$ac_cv_use_button"
10f2d63a 6651 if test "$no_cache" != 1; then
1e6feb95 6652 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6653 fi
6654
1e6feb95 6655 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6656 echo "$as_me:$LINENO: result: yes" >&5
6657echo "${ECHO_T}yes" >&6
10f2d63a 6658 else
e6cc62c6
VS
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
10f2d63a 6661 fi
e6cc62c6 6662
10f2d63a 6663
5005acfe 6664 enablestring=
e6cc62c6
VS
6665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6666echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6667 no_cache=0
6668 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6669if test "${enable_bmpbutton+set}" = set; then
6670 enableval="$enable_bmpbutton"
e6cc62c6 6671
10f2d63a
VZ
6672 if test "$enableval" = yes; then
6673 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6674 else
6675 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6676 fi
e6cc62c6 6677
10f2d63a 6678else
e6cc62c6 6679
10f2d63a
VZ
6680 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6688
e6cc62c6 6689fi;
10f2d63a
VZ
6690
6691 eval "$ac_cv_use_bmpbutton"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6697 echo "$as_me:$LINENO: result: yes" >&5
6698echo "${ECHO_T}yes" >&6
10f2d63a 6699 else
e6cc62c6
VS
6700 echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
10f2d63a 6702 fi
e6cc62c6 6703
10f2d63a 6704
5005acfe 6705 enablestring=
e6cc62c6
VS
6706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6707echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6708 no_cache=0
6709 # Check whether --enable-calendar or --disable-calendar was given.
6710if test "${enable_calendar+set}" = set; then
6711 enableval="$enable_calendar"
e6cc62c6 6712
1e6feb95
VZ
6713 if test "$enableval" = yes; then
6714 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6715 else
6716 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6717 fi
e6cc62c6 6718
1e6feb95 6719else
e6cc62c6 6720
1e6feb95
VZ
6721 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6722 if test "x$LINE" != x ; then
6723 eval "DEFAULT_$LINE"
6724 else
6725 no_cache=1
6726 fi
6727
6728 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6729
e6cc62c6 6730fi;
1e6feb95
VZ
6731
6732 eval "$ac_cv_use_calendar"
6733 if test "$no_cache" != 1; then
6734 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6735 fi
6736
6737 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6738 echo "$as_me:$LINENO: result: yes" >&5
6739echo "${ECHO_T}yes" >&6
1e6feb95 6740 else
e6cc62c6
VS
6741 echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6
1e6feb95 6743 fi
e6cc62c6 6744
1e6feb95 6745
5005acfe 6746 enablestring=
e6cc62c6
VS
6747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6748echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6749 no_cache=0
6750 # Check whether --enable-caret or --disable-caret was given.
6751if test "${enable_caret+set}" = set; then
6752 enableval="$enable_caret"
e6cc62c6 6753
1e6feb95
VZ
6754 if test "$enableval" = yes; then
6755 ac_cv_use_caret='wxUSE_CARET=yes'
6756 else
6757 ac_cv_use_caret='wxUSE_CARET=no'
6758 fi
e6cc62c6 6759
1e6feb95 6760else
e6cc62c6 6761
1e6feb95
VZ
6762 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6770
e6cc62c6 6771fi;
1e6feb95
VZ
6772
6773 eval "$ac_cv_use_caret"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6779 echo "$as_me:$LINENO: result: yes" >&5
6780echo "${ECHO_T}yes" >&6
1e6feb95 6781 else
e6cc62c6
VS
6782 echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6
1e6feb95 6784 fi
e6cc62c6 6785
1e6feb95 6786
5005acfe 6787 enablestring=
e6cc62c6
VS
6788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6789echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6790 no_cache=0
6791 # Check whether --enable-checkbox or --disable-checkbox was given.
6792if test "${enable_checkbox+set}" = set; then
6793 enableval="$enable_checkbox"
e6cc62c6 6794
10f2d63a
VZ
6795 if test "$enableval" = yes; then
6796 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6797 else
6798 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6799 fi
e6cc62c6 6800
10f2d63a 6801else
e6cc62c6 6802
10f2d63a
VZ
6803 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6804 if test "x$LINE" != x ; then
6805 eval "DEFAULT_$LINE"
6806 else
6807 no_cache=1
6808 fi
6809
6810 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6811
e6cc62c6 6812fi;
10f2d63a
VZ
6813
6814 eval "$ac_cv_use_checkbox"
6815 if test "$no_cache" != 1; then
6816 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6817 fi
6818
6819 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6820 echo "$as_me:$LINENO: result: yes" >&5
6821echo "${ECHO_T}yes" >&6
10f2d63a 6822 else
e6cc62c6
VS
6823 echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6
10f2d63a 6825 fi
e6cc62c6 6826
10f2d63a 6827
5005acfe 6828 enablestring=
e6cc62c6
VS
6829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6830echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6831 no_cache=0
6832 # Check whether --enable-checklst or --disable-checklst was given.
6833if test "${enable_checklst+set}" = set; then
6834 enableval="$enable_checklst"
e6cc62c6 6835
10f2d63a
VZ
6836 if test "$enableval" = yes; then
6837 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6838 else
6839 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6840 fi
e6cc62c6 6841
10f2d63a 6842else
e6cc62c6 6843
10f2d63a
VZ
6844 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6845 if test "x$LINE" != x ; then
6846 eval "DEFAULT_$LINE"
6847 else
6848 no_cache=1
6849 fi
6850
6851 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6852
e6cc62c6 6853fi;
10f2d63a
VZ
6854
6855 eval "$ac_cv_use_checklst"
6856 if test "$no_cache" != 1; then
6857 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6858 fi
6859
6860 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6861 echo "$as_me:$LINENO: result: yes" >&5
6862echo "${ECHO_T}yes" >&6
10f2d63a 6863 else
e6cc62c6
VS
6864 echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6
10f2d63a 6866 fi
e6cc62c6 6867
10f2d63a 6868
5005acfe 6869 enablestring=
e6cc62c6
VS
6870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6871echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6872 no_cache=0
6873 # Check whether --enable-choice or --disable-choice was given.
6874if test "${enable_choice+set}" = set; then
6875 enableval="$enable_choice"
e6cc62c6 6876
10f2d63a
VZ
6877 if test "$enableval" = yes; then
6878 ac_cv_use_choice='wxUSE_CHOICE=yes'
6879 else
6880 ac_cv_use_choice='wxUSE_CHOICE=no'
6881 fi
e6cc62c6 6882
10f2d63a 6883else
e6cc62c6 6884
10f2d63a
VZ
6885 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6886 if test "x$LINE" != x ; then
6887 eval "DEFAULT_$LINE"
6888 else
6889 no_cache=1
6890 fi
6891
6892 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6893
e6cc62c6 6894fi;
10f2d63a
VZ
6895
6896 eval "$ac_cv_use_choice"
6897 if test "$no_cache" != 1; then
6898 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6899 fi
6900
6901 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6902 echo "$as_me:$LINENO: result: yes" >&5
6903echo "${ECHO_T}yes" >&6
10f2d63a 6904 else
e6cc62c6
VS
6905 echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6
10f2d63a 6907 fi
e6cc62c6 6908
10f2d63a 6909
5005acfe 6910 enablestring=
e6cc62c6
VS
6911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6912echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6913 no_cache=0
6914 # Check whether --enable-combobox or --disable-combobox was given.
6915if test "${enable_combobox+set}" = set; then
6916 enableval="$enable_combobox"
e6cc62c6 6917
10f2d63a
VZ
6918 if test "$enableval" = yes; then
6919 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6920 else
6921 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6922 fi
e6cc62c6 6923
10f2d63a 6924else
e6cc62c6 6925
10f2d63a
VZ
6926 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6927 if test "x$LINE" != x ; then
6928 eval "DEFAULT_$LINE"
6929 else
6930 no_cache=1
6931 fi
6932
6933 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6934
e6cc62c6 6935fi;
10f2d63a
VZ
6936
6937 eval "$ac_cv_use_combobox"
6938 if test "$no_cache" != 1; then
6939 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6940 fi
6941
6942 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6943 echo "$as_me:$LINENO: result: yes" >&5
6944echo "${ECHO_T}yes" >&6
10f2d63a 6945 else
e6cc62c6
VS
6946 echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6
10f2d63a 6948 fi
e6cc62c6 6949
10f2d63a 6950
da494b40 6951 enablestring=
e6cc62c6
VS
6952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6953echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6954 no_cache=0
6955 # Check whether --enable-display or --disable-display was given.
6956if test "${enable_display+set}" = set; then
6957 enableval="$enable_display"
e6cc62c6 6958
da494b40
MB
6959 if test "$enableval" = yes; then
6960 ac_cv_use_display='wxUSE_DISPLAY=yes'
6961 else
6962 ac_cv_use_display='wxUSE_DISPLAY=no'
6963 fi
e6cc62c6 6964
da494b40 6965else
e6cc62c6 6966
da494b40
MB
6967 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6968 if test "x$LINE" != x ; then
6969 eval "DEFAULT_$LINE"
6970 else
6971 no_cache=1
6972 fi
6973
6974 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6975
e6cc62c6 6976fi;
da494b40
MB
6977
6978 eval "$ac_cv_use_display"
6979 if test "$no_cache" != 1; then
6980 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6981 fi
6982
6983 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6984 echo "$as_me:$LINENO: result: yes" >&5
6985echo "${ECHO_T}yes" >&6
da494b40 6986 else
e6cc62c6
VS
6987 echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6
da494b40 6989 fi
e6cc62c6 6990
da494b40 6991
5005acfe 6992 enablestring=
e6cc62c6
VS
6993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6994echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6995 no_cache=0
6996 # Check whether --enable-gauge or --disable-gauge was given.
6997if test "${enable_gauge+set}" = set; then
6998 enableval="$enable_gauge"
e6cc62c6 6999
10f2d63a
VZ
7000 if test "$enableval" = yes; then
7001 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7002 else
7003 ac_cv_use_gauge='wxUSE_GAUGE=no'
7004 fi
e6cc62c6 7005
10f2d63a 7006else
e6cc62c6 7007
10f2d63a
VZ
7008 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7009 if test "x$LINE" != x ; then
7010 eval "DEFAULT_$LINE"
7011 else
7012 no_cache=1
7013 fi
7014
7015 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7016
e6cc62c6 7017fi;
10f2d63a
VZ
7018
7019 eval "$ac_cv_use_gauge"
7020 if test "$no_cache" != 1; then
7021 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7022 fi
7023
7024 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7025 echo "$as_me:$LINENO: result: yes" >&5
7026echo "${ECHO_T}yes" >&6
10f2d63a 7027 else
e6cc62c6
VS
7028 echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6
10f2d63a 7030 fi
e6cc62c6 7031
10f2d63a 7032
5005acfe 7033 enablestring=
e6cc62c6
VS
7034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7035echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7036 no_cache=0
7037 # Check whether --enable-grid or --disable-grid was given.
7038if test "${enable_grid+set}" = set; then
7039 enableval="$enable_grid"
e6cc62c6 7040
10f2d63a
VZ
7041 if test "$enableval" = yes; then
7042 ac_cv_use_grid='wxUSE_GRID=yes'
7043 else
7044 ac_cv_use_grid='wxUSE_GRID=no'
7045 fi
e6cc62c6 7046
10f2d63a 7047else
e6cc62c6 7048
10f2d63a
VZ
7049 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7050 if test "x$LINE" != x ; then
7051 eval "DEFAULT_$LINE"
7052 else
7053 no_cache=1
7054 fi
7055
7056 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7057
e6cc62c6 7058fi;
10f2d63a
VZ
7059
7060 eval "$ac_cv_use_grid"
7061 if test "$no_cache" != 1; then
7062 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7063 fi
7064
7065 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7066 echo "$as_me:$LINENO: result: yes" >&5
7067echo "${ECHO_T}yes" >&6
10f2d63a 7068 else
e6cc62c6
VS
7069 echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6
10f2d63a 7071 fi
e6cc62c6 7072
10f2d63a 7073
5005acfe 7074 enablestring=
e6cc62c6
VS
7075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7076echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7077 no_cache=0
7078 # Check whether --enable-imaglist or --disable-imaglist was given.
7079if test "${enable_imaglist+set}" = set; then
7080 enableval="$enable_imaglist"
e6cc62c6 7081
10f2d63a
VZ
7082 if test "$enableval" = yes; then
7083 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7084 else
7085 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7086 fi
e6cc62c6 7087
10f2d63a 7088else
e6cc62c6 7089
10f2d63a
VZ
7090 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7091 if test "x$LINE" != x ; then
7092 eval "DEFAULT_$LINE"
7093 else
7094 no_cache=1
7095 fi
7096
7097 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7098
e6cc62c6 7099fi;
10f2d63a
VZ
7100
7101 eval "$ac_cv_use_imaglist"
7102 if test "$no_cache" != 1; then
7103 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7104 fi
7105
7106 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7107 echo "$as_me:$LINENO: result: yes" >&5
7108echo "${ECHO_T}yes" >&6
10f2d63a 7109 else
e6cc62c6
VS
7110 echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6
10f2d63a 7112 fi
e6cc62c6 7113
10f2d63a 7114
5005acfe 7115 enablestring=
e6cc62c6
VS
7116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7117echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7118 no_cache=0
7119 # Check whether --enable-listbox or --disable-listbox was given.
7120if test "${enable_listbox+set}" = set; then
7121 enableval="$enable_listbox"
e6cc62c6 7122
10f2d63a
VZ
7123 if test "$enableval" = yes; then
7124 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7125 else
7126 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7127 fi
e6cc62c6 7128
10f2d63a 7129else
e6cc62c6 7130
10f2d63a
VZ
7131 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7132 if test "x$LINE" != x ; then
7133 eval "DEFAULT_$LINE"
7134 else
7135 no_cache=1
7136 fi
7137
7138 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7139
e6cc62c6 7140fi;
10f2d63a
VZ
7141
7142 eval "$ac_cv_use_listbox"
7143 if test "$no_cache" != 1; then
7144 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7145 fi
7146
7147 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7148 echo "$as_me:$LINENO: result: yes" >&5
7149echo "${ECHO_T}yes" >&6
10f2d63a 7150 else
e6cc62c6
VS
7151 echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
10f2d63a 7153 fi
e6cc62c6 7154
10f2d63a 7155
5005acfe 7156 enablestring=
e6cc62c6
VS
7157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7158echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7159 no_cache=0
7160 # Check whether --enable-listctrl or --disable-listctrl was given.
7161if test "${enable_listctrl+set}" = set; then
7162 enableval="$enable_listctrl"
e6cc62c6 7163
10f2d63a
VZ
7164 if test "$enableval" = yes; then
7165 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7166 else
7167 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7168 fi
e6cc62c6 7169
10f2d63a 7170else
e6cc62c6 7171
10f2d63a
VZ
7172 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7180
e6cc62c6 7181fi;
10f2d63a
VZ
7182
7183 eval "$ac_cv_use_listctrl"
7184 if test "$no_cache" != 1; then
7185 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7186 fi
7187
7188 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7189 echo "$as_me:$LINENO: result: yes" >&5
7190echo "${ECHO_T}yes" >&6
10f2d63a 7191 else
e6cc62c6
VS
7192 echo "$as_me:$LINENO: result: no" >&5
7193echo "${ECHO_T}no" >&6
10f2d63a 7194 fi
e6cc62c6 7195
10f2d63a 7196
5005acfe 7197 enablestring=
e6cc62c6
VS
7198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7199echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7200 no_cache=0
7201 # Check whether --enable-notebook or --disable-notebook was given.
7202if test "${enable_notebook+set}" = set; then
7203 enableval="$enable_notebook"
e6cc62c6 7204
10f2d63a
VZ
7205 if test "$enableval" = yes; then
7206 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7207 else
7208 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7209 fi
e6cc62c6 7210
10f2d63a 7211else
e6cc62c6 7212
10f2d63a
VZ
7213 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7221
e6cc62c6 7222fi;
10f2d63a
VZ
7223
7224 eval "$ac_cv_use_notebook"
7225 if test "$no_cache" != 1; then
7226 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7227 fi
7228
7229 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7230 echo "$as_me:$LINENO: result: yes" >&5
7231echo "${ECHO_T}yes" >&6
10f2d63a 7232 else
e6cc62c6
VS
7233 echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6
10f2d63a 7235 fi
e6cc62c6 7236
10f2d63a 7237
5005acfe 7238 enablestring=
e6cc62c6
VS
7239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7240echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7241 no_cache=0
7242 # Check whether --enable-radiobox or --disable-radiobox was given.
7243if test "${enable_radiobox+set}" = set; then
7244 enableval="$enable_radiobox"
e6cc62c6 7245
10f2d63a
VZ
7246 if test "$enableval" = yes; then
7247 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7248 else
7249 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7250 fi
e6cc62c6 7251
10f2d63a 7252else
e6cc62c6 7253
10f2d63a
VZ
7254 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7255 if test "x$LINE" != x ; then
7256 eval "DEFAULT_$LINE"
7257 else
7258 no_cache=1
7259 fi
7260
7261 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7262
e6cc62c6 7263fi;
10f2d63a
VZ
7264
7265 eval "$ac_cv_use_radiobox"
7266 if test "$no_cache" != 1; then
7267 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7268 fi
7269
7270 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7271 echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6
10f2d63a 7273 else
e6cc62c6
VS
7274 echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6
10f2d63a 7276 fi
e6cc62c6 7277
10f2d63a 7278
5005acfe 7279 enablestring=
e6cc62c6
VS
7280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7281echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7282 no_cache=0
7283 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7284if test "${enable_radiobtn+set}" = set; then
7285 enableval="$enable_radiobtn"
e6cc62c6 7286
10f2d63a
VZ
7287 if test "$enableval" = yes; then
7288 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7289 else
7290 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7291 fi
e6cc62c6 7292
10f2d63a 7293else
e6cc62c6 7294
10f2d63a
VZ
7295 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7303
e6cc62c6 7304fi;
10f2d63a
VZ
7305
7306 eval "$ac_cv_use_radiobtn"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7312 echo "$as_me:$LINENO: result: yes" >&5
7313echo "${ECHO_T}yes" >&6
10f2d63a 7314 else
e6cc62c6
VS
7315 echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6
10f2d63a 7317 fi
e6cc62c6 7318
10f2d63a 7319
5005acfe 7320 enablestring=
e6cc62c6
VS
7321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7322echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7323 no_cache=0
7324 # Check whether --enable-sash or --disable-sash was given.
7325if test "${enable_sash+set}" = set; then
7326 enableval="$enable_sash"
e6cc62c6 7327
10f2d63a
VZ
7328 if test "$enableval" = yes; then
7329 ac_cv_use_sash='wxUSE_SASH=yes'
7330 else
7331 ac_cv_use_sash='wxUSE_SASH=no'
7332 fi
e6cc62c6 7333
10f2d63a 7334else
e6cc62c6 7335
10f2d63a
VZ
7336 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7344
e6cc62c6 7345fi;
10f2d63a
VZ
7346
7347 eval "$ac_cv_use_sash"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7353 echo "$as_me:$LINENO: result: yes" >&5
7354echo "${ECHO_T}yes" >&6
10f2d63a 7355 else
e6cc62c6
VS
7356 echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6
10f2d63a 7358 fi
e6cc62c6 7359
10f2d63a 7360
5005acfe 7361 enablestring=
e6cc62c6
VS
7362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7363echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7364 no_cache=0
7365 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7366if test "${enable_scrollbar+set}" = set; then
7367 enableval="$enable_scrollbar"
e6cc62c6 7368
10f2d63a
VZ
7369 if test "$enableval" = yes; then
7370 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7371 else
7372 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7373 fi
e6cc62c6 7374
10f2d63a 7375else
e6cc62c6 7376
10f2d63a
VZ
7377 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7385
e6cc62c6 7386fi;
10f2d63a
VZ
7387
7388 eval "$ac_cv_use_scrollbar"
7389 if test "$no_cache" != 1; then
7390 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7391 fi
7392
7393 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7394 echo "$as_me:$LINENO: result: yes" >&5
7395echo "${ECHO_T}yes" >&6
10f2d63a 7396 else
e6cc62c6
VS
7397 echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
10f2d63a 7399 fi
e6cc62c6 7400
10f2d63a 7401
5005acfe 7402 enablestring=
e6cc62c6
VS
7403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7404echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7405 no_cache=0
7406 # Check whether --enable-slider or --disable-slider was given.
7407if test "${enable_slider+set}" = set; then
7408 enableval="$enable_slider"
e6cc62c6 7409
10f2d63a
VZ
7410 if test "$enableval" = yes; then
7411 ac_cv_use_slider='wxUSE_SLIDER=yes'
7412 else
7413 ac_cv_use_slider='wxUSE_SLIDER=no'
7414 fi
e6cc62c6 7415
10f2d63a 7416else
e6cc62c6 7417
10f2d63a
VZ
7418 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7426
e6cc62c6 7427fi;
10f2d63a
VZ
7428
7429 eval "$ac_cv_use_slider"
7430 if test "$no_cache" != 1; then
7431 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7432 fi
7433
7434 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7435 echo "$as_me:$LINENO: result: yes" >&5
7436echo "${ECHO_T}yes" >&6
10f2d63a 7437 else
e6cc62c6
VS
7438 echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
10f2d63a 7440 fi
e6cc62c6 7441
10f2d63a 7442
5005acfe 7443 enablestring=
e6cc62c6
VS
7444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7445echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7446 no_cache=0
7447 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7448if test "${enable_spinbtn+set}" = set; then
7449 enableval="$enable_spinbtn"
e6cc62c6 7450
10f2d63a
VZ
7451 if test "$enableval" = yes; then
7452 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7453 else
7454 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7455 fi
e6cc62c6 7456
10f2d63a 7457else
e6cc62c6 7458
10f2d63a
VZ
7459 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7460 if test "x$LINE" != x ; then
7461 eval "DEFAULT_$LINE"
7462 else
7463 no_cache=1
7464 fi
7465
7466 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7467
e6cc62c6 7468fi;
10f2d63a
VZ
7469
7470 eval "$ac_cv_use_spinbtn"
7471 if test "$no_cache" != 1; then
7472 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7473 fi
7474
7475 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7476 echo "$as_me:$LINENO: result: yes" >&5
7477echo "${ECHO_T}yes" >&6
10f2d63a 7478 else
e6cc62c6
VS
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
10f2d63a 7481 fi
e6cc62c6 7482
10f2d63a 7483
5005acfe 7484 enablestring=
e6cc62c6
VS
7485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7486echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7487 no_cache=0
7488 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7489if test "${enable_spinctrl+set}" = set; then
7490 enableval="$enable_spinctrl"
e6cc62c6 7491
56cfaa52
RR
7492 if test "$enableval" = yes; then
7493 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7494 else
7495 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7496 fi
e6cc62c6 7497
56cfaa52 7498else
e6cc62c6 7499
56cfaa52
RR
7500 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7508
e6cc62c6 7509fi;
56cfaa52
RR
7510
7511 eval "$ac_cv_use_spinctrl"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7517 echo "$as_me:$LINENO: result: yes" >&5
7518echo "${ECHO_T}yes" >&6
56cfaa52 7519 else
e6cc62c6
VS
7520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
56cfaa52 7522 fi
e6cc62c6 7523
56cfaa52 7524
5005acfe 7525 enablestring=
e6cc62c6
VS
7526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7527echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7528 no_cache=0
7529 # Check whether --enable-splitter or --disable-splitter was given.
7530if test "${enable_splitter+set}" = set; then
7531 enableval="$enable_splitter"
e6cc62c6 7532
10f2d63a
VZ
7533 if test "$enableval" = yes; then
7534 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7535 else
7536 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7537 fi
e6cc62c6 7538
10f2d63a 7539else
e6cc62c6 7540
10f2d63a
VZ
7541 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
7548 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7549
e6cc62c6 7550fi;
10f2d63a
VZ
7551
7552 eval "$ac_cv_use_splitter"
7553 if test "$no_cache" != 1; then
7554 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7555 fi
7556
7557 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7558 echo "$as_me:$LINENO: result: yes" >&5
7559echo "${ECHO_T}yes" >&6
10f2d63a 7560 else
e6cc62c6
VS
7561 echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6
10f2d63a 7563 fi
e6cc62c6 7564
10f2d63a 7565
5005acfe 7566 enablestring=
e6cc62c6
VS
7567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7568echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7569 no_cache=0
7570 # Check whether --enable-statbmp or --disable-statbmp was given.
7571if test "${enable_statbmp+set}" = set; then
7572 enableval="$enable_statbmp"
e6cc62c6 7573
10f2d63a
VZ
7574 if test "$enableval" = yes; then
7575 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7576 else
7577 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7578 fi
e6cc62c6 7579
10f2d63a 7580else
e6cc62c6 7581
10f2d63a
VZ
7582 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7583 if test "x$LINE" != x ; then
7584 eval "DEFAULT_$LINE"
7585 else
7586 no_cache=1
7587 fi
7588
7589 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7590
e6cc62c6 7591fi;
10f2d63a
VZ
7592
7593 eval "$ac_cv_use_statbmp"
7594 if test "$no_cache" != 1; then
7595 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7596 fi
7597
7598 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7599 echo "$as_me:$LINENO: result: yes" >&5
7600echo "${ECHO_T}yes" >&6
10f2d63a 7601 else
e6cc62c6
VS
7602 echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6
10f2d63a 7604 fi
e6cc62c6 7605
10f2d63a 7606
5005acfe 7607 enablestring=
e6cc62c6
VS
7608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7609echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7610 no_cache=0
7611 # Check whether --enable-statbox or --disable-statbox was given.
7612if test "${enable_statbox+set}" = set; then
7613 enableval="$enable_statbox"
e6cc62c6 7614
10f2d63a
VZ
7615 if test "$enableval" = yes; then
7616 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7617 else
7618 ac_cv_use_statbox='wxUSE_STATBOX=no'
7619 fi
e6cc62c6 7620
10f2d63a 7621else
e6cc62c6 7622
10f2d63a
VZ
7623 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7624 if test "x$LINE" != x ; then
7625 eval "DEFAULT_$LINE"
7626 else
7627 no_cache=1
7628 fi
7629
7630 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7631
e6cc62c6 7632fi;
10f2d63a
VZ
7633
7634 eval "$ac_cv_use_statbox"
7635 if test "$no_cache" != 1; then
7636 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7637 fi
7638
7639 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7640 echo "$as_me:$LINENO: result: yes" >&5
7641echo "${ECHO_T}yes" >&6
10f2d63a 7642 else
e6cc62c6
VS
7643 echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
10f2d63a 7645 fi
e6cc62c6 7646
10f2d63a 7647
5005acfe 7648 enablestring=
e6cc62c6
VS
7649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7650echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7651 no_cache=0
7652 # Check whether --enable-statline or --disable-statline was given.
7653if test "${enable_statline+set}" = set; then
7654 enableval="$enable_statline"
e6cc62c6 7655
10f2d63a
VZ
7656 if test "$enableval" = yes; then
7657 ac_cv_use_statline='wxUSE_STATLINE=yes'
7658 else
7659 ac_cv_use_statline='wxUSE_STATLINE=no'
7660 fi
e6cc62c6 7661
10f2d63a 7662else
e6cc62c6 7663
10f2d63a
VZ
7664 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7665 if test "x$LINE" != x ; then
7666 eval "DEFAULT_$LINE"
7667 else
7668 no_cache=1
7669 fi
7670
7671 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7672
e6cc62c6 7673fi;
10f2d63a
VZ
7674
7675 eval "$ac_cv_use_statline"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7681 echo "$as_me:$LINENO: result: yes" >&5
7682echo "${ECHO_T}yes" >&6
10f2d63a 7683 else
e6cc62c6
VS
7684 echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
10f2d63a 7686 fi
e6cc62c6 7687
10f2d63a 7688
5005acfe 7689 enablestring=
e6cc62c6
VS
7690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7691echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7692 no_cache=0
7693 # Check whether --enable-stattext or --disable-stattext was given.
7694if test "${enable_stattext+set}" = set; then
7695 enableval="$enable_stattext"
e6cc62c6 7696
1e6feb95
VZ
7697 if test "$enableval" = yes; then
7698 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7699 else
7700 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7701 fi
e6cc62c6 7702
1e6feb95 7703else
e6cc62c6 7704
1e6feb95
VZ
7705 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7713
e6cc62c6 7714fi;
1e6feb95
VZ
7715
7716 eval "$ac_cv_use_stattext"
7717 if test "$no_cache" != 1; then
7718 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7719 fi
7720
7721 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7722 echo "$as_me:$LINENO: result: yes" >&5
7723echo "${ECHO_T}yes" >&6
1e6feb95 7724 else
e6cc62c6
VS
7725 echo "$as_me:$LINENO: result: no" >&5
7726echo "${ECHO_T}no" >&6
1e6feb95 7727 fi
e6cc62c6 7728
1e6feb95 7729
5005acfe 7730 enablestring=
e6cc62c6
VS
7731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7732echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7733 no_cache=0
7734 # Check whether --enable-statusbar or --disable-statusbar was given.
7735if test "${enable_statusbar+set}" = set; then
7736 enableval="$enable_statusbar"
e6cc62c6 7737
10f2d63a
VZ
7738 if test "$enableval" = yes; then
7739 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7740 else
7741 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7742 fi
e6cc62c6 7743
10f2d63a 7744else
e6cc62c6 7745
10f2d63a
VZ
7746 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7754
e6cc62c6 7755fi;
10f2d63a
VZ
7756
7757 eval "$ac_cv_use_statusbar"
7758 if test "$no_cache" != 1; then
7759 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7760 fi
7761
7762 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7763 echo "$as_me:$LINENO: result: yes" >&5
7764echo "${ECHO_T}yes" >&6
10f2d63a 7765 else
e6cc62c6
VS
7766 echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6
10f2d63a 7768 fi
e6cc62c6 7769
10f2d63a 7770
5005acfe 7771 enablestring=
e6cc62c6
VS
7772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7773echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7774 no_cache=0
7775 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7776if test "${enable_tabdialog+set}" = set; then
7777 enableval="$enable_tabdialog"
e6cc62c6 7778
10f2d63a
VZ
7779 if test "$enableval" = yes; then
7780 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7781 else
7782 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7783 fi
e6cc62c6 7784
10f2d63a 7785else
e6cc62c6 7786
10f2d63a
VZ
7787 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7788 if test "x$LINE" != x ; then
7789 eval "DEFAULT_$LINE"
7790 else
7791 no_cache=1
7792 fi
7793
7794 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7795
e6cc62c6 7796fi;
10f2d63a
VZ
7797
7798 eval "$ac_cv_use_tabdialog"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7804 echo "$as_me:$LINENO: result: yes" >&5
7805echo "${ECHO_T}yes" >&6
10f2d63a 7806 else
e6cc62c6
VS
7807 echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6
10f2d63a 7809 fi
e6cc62c6 7810
10f2d63a 7811
5005acfe 7812 enablestring=
e6cc62c6
VS
7813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7814echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7815 no_cache=0
7816 # Check whether --enable-textctrl or --disable-textctrl was given.
7817if test "${enable_textctrl+set}" = set; then
7818 enableval="$enable_textctrl"
e6cc62c6 7819
1e6feb95
VZ
7820 if test "$enableval" = yes; then
7821 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7822 else
7823 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7824 fi
e6cc62c6 7825
1e6feb95 7826else
e6cc62c6 7827
1e6feb95
VZ
7828 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7829 if test "x$LINE" != x ; then
7830 eval "DEFAULT_$LINE"
7831 else
7832 no_cache=1
7833 fi
7834
7835 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7836
e6cc62c6 7837fi;
1e6feb95
VZ
7838
7839 eval "$ac_cv_use_textctrl"
7840 if test "$no_cache" != 1; then
7841 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7842 fi
7843
7844 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7845 echo "$as_me:$LINENO: result: yes" >&5
7846echo "${ECHO_T}yes" >&6
1e6feb95 7847 else
e6cc62c6
VS
7848 echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6
1e6feb95 7850 fi
e6cc62c6 7851
1e6feb95 7852
5005acfe 7853 enablestring=
e6cc62c6
VS
7854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7855echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7856 no_cache=0
7857 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7858if test "${enable_togglebtn+set}" = set; then
7859 enableval="$enable_togglebtn"
e6cc62c6 7860
1db8dc4a
VZ
7861 if test "$enableval" = yes; then
7862 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7863 else
7864 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7865 fi
e6cc62c6 7866
1db8dc4a 7867else
e6cc62c6 7868
1db8dc4a
VZ
7869 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7870 if test "x$LINE" != x ; then
7871 eval "DEFAULT_$LINE"
7872 else
7873 no_cache=1
7874 fi
7875
7876 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7877
e6cc62c6 7878fi;
1db8dc4a
VZ
7879
7880 eval "$ac_cv_use_togglebtn"
7881 if test "$no_cache" != 1; then
7882 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7883 fi
7884
7885 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7886 echo "$as_me:$LINENO: result: yes" >&5
7887echo "${ECHO_T}yes" >&6
1db8dc4a 7888 else
e6cc62c6
VS
7889 echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6
1db8dc4a 7891 fi
e6cc62c6 7892
1db8dc4a 7893
5005acfe 7894 enablestring=
e6cc62c6
VS
7895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7896echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7897 no_cache=0
7898 # Check whether --enable-toolbar or --disable-toolbar was given.
7899if test "${enable_toolbar+set}" = set; then
7900 enableval="$enable_toolbar"
e6cc62c6 7901
10f2d63a
VZ
7902 if test "$enableval" = yes; then
7903 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7904 else
7905 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7906 fi
e6cc62c6 7907
10f2d63a 7908else
e6cc62c6 7909
10f2d63a
VZ
7910 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7918
e6cc62c6 7919fi;
10f2d63a
VZ
7920
7921 eval "$ac_cv_use_toolbar"
7922 if test "$no_cache" != 1; then
7923 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7924 fi
7925
7926 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7927 echo "$as_me:$LINENO: result: yes" >&5
7928echo "${ECHO_T}yes" >&6
10f2d63a 7929 else
e6cc62c6
VS
7930 echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6
10f2d63a 7932 fi
e6cc62c6 7933
10f2d63a 7934
5005acfe 7935 enablestring=
e6cc62c6
VS
7936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7937echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7938 no_cache=0
7939 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7940if test "${enable_tbarnative+set}" = set; then
7941 enableval="$enable_tbarnative"
e6cc62c6 7942
360d6699
VZ
7943 if test "$enableval" = yes; then
7944 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7945 else
7946 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7947 fi
e6cc62c6 7948
360d6699 7949else
e6cc62c6 7950
360d6699
VZ
7951 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7952 if test "x$LINE" != x ; then
7953 eval "DEFAULT_$LINE"
7954 else
7955 no_cache=1
7956 fi
7957
7958 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7959
e6cc62c6 7960fi;
360d6699
VZ
7961
7962 eval "$ac_cv_use_tbarnative"
7963 if test "$no_cache" != 1; then
7964 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7965 fi
7966
7967 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7968 echo "$as_me:$LINENO: result: yes" >&5
7969echo "${ECHO_T}yes" >&6
360d6699 7970 else
e6cc62c6
VS
7971 echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
360d6699 7973 fi
e6cc62c6 7974
360d6699 7975
5005acfe 7976 enablestring=
e6cc62c6
VS
7977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7978echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7979 no_cache=0
7980 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7981if test "${enable_tbarsmpl+set}" = set; then
7982 enableval="$enable_tbarsmpl"
e6cc62c6 7983
360d6699
VZ
7984 if test "$enableval" = yes; then
7985 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7986 else
7987 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7988 fi
e6cc62c6 7989
360d6699 7990else
e6cc62c6 7991
360d6699
VZ
7992 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7993 if test "x$LINE" != x ; then
7994 eval "DEFAULT_$LINE"
7995 else
7996 no_cache=1
7997 fi
7998
7999 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8000
e6cc62c6 8001fi;
360d6699
VZ
8002
8003 eval "$ac_cv_use_tbarsmpl"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8009 echo "$as_me:$LINENO: result: yes" >&5
8010echo "${ECHO_T}yes" >&6
360d6699 8011 else
e6cc62c6
VS
8012 echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6
360d6699 8014 fi
e6cc62c6 8015
360d6699 8016
5005acfe 8017 enablestring=
e6cc62c6
VS
8018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8019echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8020 no_cache=0
8021 # Check whether --enable-treectrl or --disable-treectrl was given.
8022if test "${enable_treectrl+set}" = set; then
8023 enableval="$enable_treectrl"
e6cc62c6 8024
10f2d63a
VZ
8025 if test "$enableval" = yes; then
8026 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8027 else
8028 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8029 fi
e6cc62c6 8030
10f2d63a 8031else
e6cc62c6 8032
10f2d63a
VZ
8033 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8034 if test "x$LINE" != x ; then
8035 eval "DEFAULT_$LINE"
8036 else
8037 no_cache=1
8038 fi
8039
8040 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8041
e6cc62c6 8042fi;
10f2d63a 8043
1e6feb95
VZ
8044 eval "$ac_cv_use_treectrl"
8045 if test "$no_cache" != 1; then
8046 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8047 fi
8048
8049 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8050 echo "$as_me:$LINENO: result: yes" >&5
8051echo "${ECHO_T}yes" >&6
1e6feb95 8052 else
e6cc62c6
VS
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
1e6feb95 8055 fi
e6cc62c6 8056
1e6feb95 8057
5005acfe 8058 enablestring=
e6cc62c6
VS
8059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8060echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8061 no_cache=0
8062 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8063if test "${enable_tipwindow+set}" = set; then
8064 enableval="$enable_tipwindow"
e6cc62c6 8065
9926e4a4
VZ
8066 if test "$enableval" = yes; then
8067 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8068 else
8069 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8070 fi
e6cc62c6 8071
9926e4a4 8072else
e6cc62c6 8073
9926e4a4
VZ
8074 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8075 if test "x$LINE" != x ; then
8076 eval "DEFAULT_$LINE"
8077 else
8078 no_cache=1
8079 fi
8080
8081 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8082
e6cc62c6 8083fi;
9926e4a4
VZ
8084
8085 eval "$ac_cv_use_tipwindow"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8091 echo "$as_me:$LINENO: result: yes" >&5
8092echo "${ECHO_T}yes" >&6
9926e4a4 8093 else
e6cc62c6
VS
8094 echo "$as_me:$LINENO: result: no" >&5
8095echo "${ECHO_T}no" >&6
9926e4a4 8096 fi
e6cc62c6 8097
9926e4a4 8098
5005acfe 8099 enablestring=
e6cc62c6
VS
8100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8101echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8102 no_cache=0
8103 # Check whether --enable-popupwin or --disable-popupwin was given.
8104if test "${enable_popupwin+set}" = set; then
8105 enableval="$enable_popupwin"
e6cc62c6 8106
9f41d601
RR
8107 if test "$enableval" = yes; then
8108 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8109 else
8110 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8111 fi
e6cc62c6 8112
9f41d601 8113else
e6cc62c6 8114
9f41d601
RR
8115 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8116 if test "x$LINE" != x ; then
8117 eval "DEFAULT_$LINE"
8118 else
8119 no_cache=1
8120 fi
8121
8122 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8123
e6cc62c6 8124fi;
9f41d601
RR
8125
8126 eval "$ac_cv_use_popupwin"
8127 if test "$no_cache" != 1; then
8128 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8129 fi
8130
8131 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8132 echo "$as_me:$LINENO: result: yes" >&5
8133echo "${ECHO_T}yes" >&6
9f41d601 8134 else
e6cc62c6
VS
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
9f41d601 8137 fi
e6cc62c6 8138
52127426 8139
8284b0c5
MB
8140
8141
5005acfe 8142 enablestring=
e6cc62c6
VS
8143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8144echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8145 no_cache=0
8146 # Check whether --enable-commondlg or --disable-commondlg was given.
8147if test "${enable_commondlg+set}" = set; then
8148 enableval="$enable_commondlg"
e6cc62c6 8149
1e6feb95
VZ
8150 if test "$enableval" = yes; then
8151 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8152 else
8153 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8154 fi
e6cc62c6 8155
1e6feb95 8156else
e6cc62c6 8157
1e6feb95
VZ
8158 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8159 if test "x$LINE" != x ; then
8160 eval "DEFAULT_$LINE"
8161 else
8162 no_cache=1
8163 fi
8164
8165 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8166
e6cc62c6 8167fi;
1e6feb95
VZ
8168
8169 eval "$ac_cv_use_commondlg"
8170 if test "$no_cache" != 1; then
8171 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8172 fi
8173
8174 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8175 echo "$as_me:$LINENO: result: yes" >&5
8176echo "${ECHO_T}yes" >&6
1e6feb95 8177 else
e6cc62c6
VS
8178 echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
1e6feb95 8180 fi
e6cc62c6 8181
1e6feb95 8182
5005acfe 8183 enablestring=
e6cc62c6
VS
8184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8185echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8186 no_cache=0
8187 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8188if test "${enable_choicedlg+set}" = set; then
8189 enableval="$enable_choicedlg"
e6cc62c6 8190
1e6feb95
VZ
8191 if test "$enableval" = yes; then
8192 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8193 else
8194 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8195 fi
e6cc62c6 8196
1e6feb95 8197else
e6cc62c6 8198
1e6feb95
VZ
8199 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8200 if test "x$LINE" != x ; then
8201 eval "DEFAULT_$LINE"
8202 else
8203 no_cache=1
8204 fi
8205
8206 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8207
e6cc62c6 8208fi;
1e6feb95
VZ
8209
8210 eval "$ac_cv_use_choicedlg"
8211 if test "$no_cache" != 1; then
8212 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8213 fi
8214
8215 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8216 echo "$as_me:$LINENO: result: yes" >&5
8217echo "${ECHO_T}yes" >&6
1e6feb95 8218 else
e6cc62c6
VS
8219 echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6
1e6feb95 8221 fi
e6cc62c6 8222
1e6feb95 8223
5005acfe 8224 enablestring=
e6cc62c6
VS
8225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8226echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8227 no_cache=0
8228 # Check whether --enable-coldlg or --disable-coldlg was given.
8229if test "${enable_coldlg+set}" = set; then
8230 enableval="$enable_coldlg"
e6cc62c6 8231
1e6feb95
VZ
8232 if test "$enableval" = yes; then
8233 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8234 else
8235 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8236 fi
e6cc62c6 8237
1e6feb95 8238else
e6cc62c6 8239
1e6feb95
VZ
8240 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8241 if test "x$LINE" != x ; then
8242 eval "DEFAULT_$LINE"
8243 else
8244 no_cache=1
8245 fi
8246
8247 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8248
e6cc62c6 8249fi;
1e6feb95
VZ
8250
8251 eval "$ac_cv_use_coldlg"
8252 if test "$no_cache" != 1; then
8253 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8254 fi
8255
8256 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8257 echo "$as_me:$LINENO: result: yes" >&5
8258echo "${ECHO_T}yes" >&6
1e6feb95 8259 else
e6cc62c6
VS
8260 echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6
1e6feb95 8262 fi
e6cc62c6 8263
1e6feb95 8264
5005acfe 8265 enablestring=
e6cc62c6
VS
8266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8267echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8268 no_cache=0
8269 # Check whether --enable-filedlg or --disable-filedlg was given.
8270if test "${enable_filedlg+set}" = set; then
8271 enableval="$enable_filedlg"
e6cc62c6 8272
1e6feb95
VZ
8273 if test "$enableval" = yes; then
8274 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8275 else
8276 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8277 fi
e6cc62c6 8278
1e6feb95 8279else
e6cc62c6 8280
1e6feb95
VZ
8281 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8282 if test "x$LINE" != x ; then
8283 eval "DEFAULT_$LINE"
8284 else
8285 no_cache=1
8286 fi
8287
8288 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8289
e6cc62c6 8290fi;
1e6feb95
VZ
8291
8292 eval "$ac_cv_use_filedlg"
8293 if test "$no_cache" != 1; then
8294 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8295 fi
8296
8297 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8298 echo "$as_me:$LINENO: result: yes" >&5
8299echo "${ECHO_T}yes" >&6
1e6feb95 8300 else
e6cc62c6
VS
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
1e6feb95 8303 fi
e6cc62c6 8304
1e6feb95 8305
5005acfe 8306 enablestring=
e6cc62c6
VS
8307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8308echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8309 no_cache=0
69d27ff7
MB
8310 # Check whether --enable-finddlg or --disable-finddlg was given.
8311if test "${enable_finddlg+set}" = set; then
8312 enableval="$enable_finddlg"
e6cc62c6 8313
8db37e06 8314 if test "$enableval" = yes; then
69d27ff7 8315 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8316 else
69d27ff7 8317 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8318 fi
e6cc62c6 8319
8db37e06 8320else
e6cc62c6 8321
8db37e06
VZ
8322 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8323 if test "x$LINE" != x ; then
8324 eval "DEFAULT_$LINE"
8325 else
8326 no_cache=1
8327 fi
8328
69d27ff7 8329 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8330
e6cc62c6 8331fi;
8db37e06 8332
69d27ff7 8333 eval "$ac_cv_use_finddlg"
8db37e06 8334 if test "$no_cache" != 1; then
69d27ff7 8335 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8336 fi
8337
8338 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8339 echo "$as_me:$LINENO: result: yes" >&5
8340echo "${ECHO_T}yes" >&6
8db37e06 8341 else
e6cc62c6
VS
8342 echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
8db37e06 8344 fi
e6cc62c6 8345
8db37e06 8346
5005acfe 8347 enablestring=
e6cc62c6
VS
8348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8349echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8350 no_cache=0
8351 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8352if test "${enable_fontdlg+set}" = set; then
8353 enableval="$enable_fontdlg"
e6cc62c6 8354
1e6feb95
VZ
8355 if test "$enableval" = yes; then
8356 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8357 else
8358 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8359 fi
e6cc62c6 8360
1e6feb95 8361else
e6cc62c6 8362
1e6feb95
VZ
8363 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
8370 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8371
e6cc62c6 8372fi;
1e6feb95
VZ
8373
8374 eval "$ac_cv_use_fontdlg"
8375 if test "$no_cache" != 1; then
8376 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8377 fi
8378
8379 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8380 echo "$as_me:$LINENO: result: yes" >&5
8381echo "${ECHO_T}yes" >&6
1e6feb95 8382 else
e6cc62c6
VS
8383 echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
1e6feb95 8385 fi
e6cc62c6 8386
1e6feb95 8387
5005acfe 8388 enablestring=
e6cc62c6
VS
8389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8390echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8391 no_cache=0
8392 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8393if test "${enable_dirdlg+set}" = set; then
8394 enableval="$enable_dirdlg"
e6cc62c6 8395
1e6feb95
VZ
8396 if test "$enableval" = yes; then
8397 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8398 else
8399 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8400 fi
e6cc62c6 8401
1e6feb95 8402else
e6cc62c6 8403
1e6feb95
VZ
8404 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8405 if test "x$LINE" != x ; then
8406 eval "DEFAULT_$LINE"
8407 else
8408 no_cache=1
8409 fi
8410
8411 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8412
e6cc62c6 8413fi;
1e6feb95
VZ
8414
8415 eval "$ac_cv_use_dirdlg"
10f2d63a 8416 if test "$no_cache" != 1; then
1e6feb95 8417 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8418 fi
8419
1e6feb95 8420 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8421 echo "$as_me:$LINENO: result: yes" >&5
8422echo "${ECHO_T}yes" >&6
10f2d63a 8423 else
e6cc62c6
VS
8424 echo "$as_me:$LINENO: result: no" >&5
8425echo "${ECHO_T}no" >&6
10f2d63a 8426 fi
e6cc62c6 8427
698dcdb6 8428
5005acfe 8429 enablestring=
e6cc62c6
VS
8430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8431echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8432 no_cache=0
1e6feb95
VZ
8433 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8434if test "${enable_msgdlg+set}" = set; then
8435 enableval="$enable_msgdlg"
e6cc62c6 8436
10f2d63a 8437 if test "$enableval" = yes; then
1e6feb95 8438 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8439 else
1e6feb95 8440 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8441 fi
e6cc62c6 8442
10f2d63a 8443else
e6cc62c6 8444
1e6feb95 8445 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8446 if test "x$LINE" != x ; then
8447 eval "DEFAULT_$LINE"
8448 else
8449 no_cache=1
8450 fi
8451
1e6feb95 8452 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8453
e6cc62c6 8454fi;
10f2d63a 8455
1e6feb95 8456 eval "$ac_cv_use_msgdlg"
10f2d63a 8457 if test "$no_cache" != 1; then
1e6feb95 8458 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8459 fi
8460
1e6feb95 8461 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8462 echo "$as_me:$LINENO: result: yes" >&5
8463echo "${ECHO_T}yes" >&6
10f2d63a 8464 else
e6cc62c6
VS
8465 echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6
10f2d63a 8467 fi
e6cc62c6 8468
10f2d63a 8469
5005acfe 8470 enablestring=
e6cc62c6
VS
8471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8472echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8473 no_cache=0
1e6feb95
VZ
8474 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8475if test "${enable_numberdlg+set}" = set; then
8476 enableval="$enable_numberdlg"
e6cc62c6 8477
10f2d63a 8478 if test "$enableval" = yes; then
1e6feb95 8479 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8480 else
1e6feb95 8481 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8482 fi
e6cc62c6 8483
10f2d63a 8484else
e6cc62c6 8485
1e6feb95 8486 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8487 if test "x$LINE" != x ; then
8488 eval "DEFAULT_$LINE"
8489 else
8490 no_cache=1
8491 fi
8492
1e6feb95 8493 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8494
e6cc62c6 8495fi;
10f2d63a 8496
1e6feb95 8497 eval "$ac_cv_use_numberdlg"
10f2d63a 8498 if test "$no_cache" != 1; then
1e6feb95 8499 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8500 fi
8501
1e6feb95 8502 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8503 echo "$as_me:$LINENO: result: yes" >&5
8504echo "${ECHO_T}yes" >&6
10f2d63a 8505 else
e6cc62c6
VS
8506 echo "$as_me:$LINENO: result: no" >&5
8507echo "${ECHO_T}no" >&6
10f2d63a 8508 fi
e6cc62c6 8509
10f2d63a 8510
5005acfe 8511 enablestring=
e6cc62c6
VS
8512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8513echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8514 no_cache=0
8515 # Check whether --enable-splash or --disable-splash was given.
8516if test "${enable_splash+set}" = set; then
8517 enableval="$enable_splash"
e6cc62c6 8518
cbca9943
VZ
8519 if test "$enableval" = yes; then
8520 ac_cv_use_splash='wxUSE_SPLASH=yes'
8521 else
8522 ac_cv_use_splash='wxUSE_SPLASH=no'
8523 fi
e6cc62c6 8524
cbca9943 8525else
e6cc62c6 8526
cbca9943
VZ
8527 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8528 if test "x$LINE" != x ; then
8529 eval "DEFAULT_$LINE"
8530 else
8531 no_cache=1
8532 fi
8533
8534 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8535
e6cc62c6 8536fi;
cbca9943
VZ
8537
8538 eval "$ac_cv_use_splash"
8539 if test "$no_cache" != 1; then
8540 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8541 fi
8542
8543 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8544 echo "$as_me:$LINENO: result: yes" >&5
8545echo "${ECHO_T}yes" >&6
cbca9943 8546 else
e6cc62c6
VS
8547 echo "$as_me:$LINENO: result: no" >&5
8548echo "${ECHO_T}no" >&6
cbca9943 8549 fi
e6cc62c6 8550
cbca9943 8551
5005acfe 8552 enablestring=
e6cc62c6
VS
8553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8554echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8555 no_cache=0
8556 # Check whether --enable-textdlg or --disable-textdlg was given.
8557if test "${enable_textdlg+set}" = set; then
8558 enableval="$enable_textdlg"
e6cc62c6 8559
10f2d63a
VZ
8560 if test "$enableval" = yes; then
8561 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8562 else
8563 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8564 fi
e6cc62c6 8565
10f2d63a 8566else
e6cc62c6 8567
10f2d63a
VZ
8568 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8569 if test "x$LINE" != x ; then
8570 eval "DEFAULT_$LINE"
8571 else
8572 no_cache=1
8573 fi
8574
8575 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8576
e6cc62c6 8577fi;
10f2d63a
VZ
8578
8579 eval "$ac_cv_use_textdlg"
8580 if test "$no_cache" != 1; then
8581 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8582 fi
8583
8584 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8585 echo "$as_me:$LINENO: result: yes" >&5
8586echo "${ECHO_T}yes" >&6
10f2d63a 8587 else
e6cc62c6
VS
8588 echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6
10f2d63a 8590 fi
e6cc62c6 8591
10f2d63a 8592
5005acfe 8593 enablestring=
e6cc62c6
VS
8594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8595echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8596 no_cache=0
8597 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8598if test "${enable_tipdlg+set}" = set; then
8599 enableval="$enable_tipdlg"
e6cc62c6 8600
10f2d63a
VZ
8601 if test "$enableval" = yes; then
8602 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8603 else
8604 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8605 fi
e6cc62c6 8606
10f2d63a 8607else
e6cc62c6 8608
10f2d63a
VZ
8609 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8610 if test "x$LINE" != x ; then
8611 eval "DEFAULT_$LINE"
8612 else
8613 no_cache=1
8614 fi
8615
8616 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8617
e6cc62c6 8618fi;
10f2d63a
VZ
8619
8620 eval "$ac_cv_use_tipdlg"
8621 if test "$no_cache" != 1; then
8622 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8623 fi
8624
8625 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8626 echo "$as_me:$LINENO: result: yes" >&5
8627echo "${ECHO_T}yes" >&6
10f2d63a 8628 else
e6cc62c6
VS
8629 echo "$as_me:$LINENO: result: no" >&5
8630echo "${ECHO_T}no" >&6
10f2d63a 8631 fi
e6cc62c6 8632
10f2d63a 8633
5005acfe 8634 enablestring=
e6cc62c6
VS
8635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8636echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8637 no_cache=0
8638 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8639if test "${enable_progressdlg+set}" = set; then
8640 enableval="$enable_progressdlg"
e6cc62c6 8641
10f2d63a
VZ
8642 if test "$enableval" = yes; then
8643 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8644 else
8645 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8646 fi
e6cc62c6 8647
10f2d63a 8648else
e6cc62c6 8649
10f2d63a
VZ
8650 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8651 if test "x$LINE" != x ; then
8652 eval "DEFAULT_$LINE"
8653 else
8654 no_cache=1
8655 fi
8656
8657 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8658
e6cc62c6 8659fi;
10f2d63a
VZ
8660
8661 eval "$ac_cv_use_progressdlg"
8662 if test "$no_cache" != 1; then
8663 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8664 fi
8665
8666 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8667 echo "$as_me:$LINENO: result: yes" >&5
8668echo "${ECHO_T}yes" >&6
10f2d63a 8669 else
e6cc62c6
VS
8670 echo "$as_me:$LINENO: result: no" >&5
8671echo "${ECHO_T}no" >&6
10f2d63a 8672 fi
e6cc62c6 8673
10f2d63a 8674
5005acfe 8675 enablestring=
e6cc62c6
VS
8676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8677echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8678 no_cache=0
8679 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8680if test "${enable_wizarddlg+set}" = set; then
8681 enableval="$enable_wizarddlg"
e6cc62c6 8682
b1f5d087
VZ
8683 if test "$enableval" = yes; then
8684 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8685 else
8686 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8687 fi
e6cc62c6 8688
b1f5d087 8689else
e6cc62c6 8690
b1f5d087
VZ
8691 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8692 if test "x$LINE" != x ; then
8693 eval "DEFAULT_$LINE"
8694 else
8695 no_cache=1
8696 fi
8697
8698 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8699
e6cc62c6 8700fi;
b1f5d087
VZ
8701
8702 eval "$ac_cv_use_wizarddlg"
8703 if test "$no_cache" != 1; then
8704 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8705 fi
8706
8707 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8708 echo "$as_me:$LINENO: result: yes" >&5
8709echo "${ECHO_T}yes" >&6
b1f5d087 8710 else
e6cc62c6
VS
8711 echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6
b1f5d087 8713 fi
e6cc62c6 8714
8284b0c5
MB
8715
8716
52127426 8717
5005acfe 8718 enablestring=
e6cc62c6
VS
8719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8720echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8721 no_cache=0
8722 # Check whether --enable-menus or --disable-menus was given.
8723if test "${enable_menus+set}" = set; then
8724 enableval="$enable_menus"
e6cc62c6 8725
1e6feb95
VZ
8726 if test "$enableval" = yes; then
8727 ac_cv_use_menus='wxUSE_MENUS=yes'
8728 else
8729 ac_cv_use_menus='wxUSE_MENUS=no'
8730 fi
e6cc62c6 8731
1e6feb95 8732else
e6cc62c6 8733
1e6feb95
VZ
8734 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8735 if test "x$LINE" != x ; then
8736 eval "DEFAULT_$LINE"
8737 else
8738 no_cache=1
8739 fi
8740
8741 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8742
e6cc62c6 8743fi;
1e6feb95
VZ
8744
8745 eval "$ac_cv_use_menus"
8746 if test "$no_cache" != 1; then
8747 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8748 fi
8749
8750 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8751 echo "$as_me:$LINENO: result: yes" >&5
8752echo "${ECHO_T}yes" >&6
1e6feb95 8753 else
e6cc62c6
VS
8754 echo "$as_me:$LINENO: result: no" >&5
8755echo "${ECHO_T}no" >&6
1e6feb95 8756 fi
e6cc62c6 8757
1e6feb95 8758
5005acfe 8759 enablestring=
e6cc62c6
VS
8760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8761echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8762 no_cache=0
8763 # Check whether --enable-miniframe or --disable-miniframe was given.
8764if test "${enable_miniframe+set}" = set; then
8765 enableval="$enable_miniframe"
e6cc62c6 8766
10f2d63a
VZ
8767 if test "$enableval" = yes; then
8768 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8769 else
8770 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8771 fi
e6cc62c6 8772
10f2d63a 8773else
e6cc62c6 8774
10f2d63a
VZ
8775 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8776 if test "x$LINE" != x ; then
8777 eval "DEFAULT_$LINE"
8778 else
8779 no_cache=1
8780 fi
8781
8782 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8783
e6cc62c6 8784fi;
10f2d63a
VZ
8785
8786 eval "$ac_cv_use_miniframe"
8787 if test "$no_cache" != 1; then
8788 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8789 fi
8790
8791 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8792 echo "$as_me:$LINENO: result: yes" >&5
8793echo "${ECHO_T}yes" >&6
10f2d63a 8794 else
e6cc62c6
VS
8795 echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
10f2d63a 8797 fi
e6cc62c6 8798
10f2d63a 8799
5005acfe 8800 enablestring=
e6cc62c6
VS
8801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8802echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8803 no_cache=0
8804 # Check whether --enable-tooltips or --disable-tooltips was given.
8805if test "${enable_tooltips+set}" = set; then
8806 enableval="$enable_tooltips"
e6cc62c6 8807
10f2d63a
VZ
8808 if test "$enableval" = yes; then
8809 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8810 else
8811 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8812 fi
e6cc62c6 8813
10f2d63a 8814else
e6cc62c6 8815
10f2d63a
VZ
8816 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8817 if test "x$LINE" != x ; then
8818 eval "DEFAULT_$LINE"
8819 else
8820 no_cache=1
8821 fi
8822
8823 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8824
e6cc62c6 8825fi;
10f2d63a
VZ
8826
8827 eval "$ac_cv_use_tooltips"
8828 if test "$no_cache" != 1; then
8829 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8830 fi
8831
8832 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8833 echo "$as_me:$LINENO: result: yes" >&5
8834echo "${ECHO_T}yes" >&6
10f2d63a 8835 else
e6cc62c6
VS
8836 echo "$as_me:$LINENO: result: no" >&5
8837echo "${ECHO_T}no" >&6
10f2d63a 8838 fi
e6cc62c6 8839
10f2d63a 8840
5005acfe 8841 enablestring=
e6cc62c6
VS
8842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8843echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8844 no_cache=0
8845 # Check whether --enable-splines or --disable-splines was given.
8846if test "${enable_splines+set}" = set; then
8847 enableval="$enable_splines"
e6cc62c6 8848
10f2d63a
VZ
8849 if test "$enableval" = yes; then
8850 ac_cv_use_splines='wxUSE_SPLINES=yes'
8851 else
8852 ac_cv_use_splines='wxUSE_SPLINES=no'
8853 fi
e6cc62c6 8854
10f2d63a 8855else
e6cc62c6 8856
10f2d63a
VZ
8857 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8858 if test "x$LINE" != x ; then
8859 eval "DEFAULT_$LINE"
8860 else
8861 no_cache=1
8862 fi
8863
8864 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8865
e6cc62c6 8866fi;
10f2d63a
VZ
8867
8868 eval "$ac_cv_use_splines"
8869 if test "$no_cache" != 1; then
8870 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8871 fi
8872
8873 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8874 echo "$as_me:$LINENO: result: yes" >&5
8875echo "${ECHO_T}yes" >&6
10f2d63a 8876 else
e6cc62c6
VS
8877 echo "$as_me:$LINENO: result: no" >&5
8878echo "${ECHO_T}no" >&6
10f2d63a 8879 fi
e6cc62c6 8880
10f2d63a 8881
5005acfe 8882 enablestring=
e6cc62c6
VS
8883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8884echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8885 no_cache=0
8886 # Check whether --enable-validators or --disable-validators was given.
8887if test "${enable_validators+set}" = set; then
8888 enableval="$enable_validators"
e6cc62c6 8889
10f2d63a
VZ
8890 if test "$enableval" = yes; then
8891 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8892 else
8893 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8894 fi
e6cc62c6 8895
10f2d63a 8896else
e6cc62c6 8897
10f2d63a
VZ
8898 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8899 if test "x$LINE" != x ; then
8900 eval "DEFAULT_$LINE"
8901 else
8902 no_cache=1
8903 fi
8904
8905 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8906
e6cc62c6 8907fi;
10f2d63a
VZ
8908
8909 eval "$ac_cv_use_validators"
8910 if test "$no_cache" != 1; then
8911 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8912 fi
8913
8914 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8915 echo "$as_me:$LINENO: result: yes" >&5
8916echo "${ECHO_T}yes" >&6
10f2d63a 8917 else
e6cc62c6
VS
8918 echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
10f2d63a 8920 fi
e6cc62c6 8921
10f2d63a 8922
5005acfe 8923 enablestring=
e6cc62c6
VS
8924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8925echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8926 no_cache=0
8927 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8928if test "${enable_busyinfo+set}" = set; then
8929 enableval="$enable_busyinfo"
e6cc62c6 8930
10f2d63a
VZ
8931 if test "$enableval" = yes; then
8932 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8933 else
8934 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8935 fi
e6cc62c6 8936
10f2d63a 8937else
e6cc62c6 8938
10f2d63a
VZ
8939 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8940 if test "x$LINE" != x ; then
8941 eval "DEFAULT_$LINE"
8942 else
8943 no_cache=1
8944 fi
8945
8946 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8947
e6cc62c6 8948fi;
10f2d63a
VZ
8949
8950 eval "$ac_cv_use_busyinfo"
8951 if test "$no_cache" != 1; then
8952 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8953 fi
8954
8955 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8956 echo "$as_me:$LINENO: result: yes" >&5
8957echo "${ECHO_T}yes" >&6
10f2d63a 8958 else
e6cc62c6
VS
8959 echo "$as_me:$LINENO: result: no" >&5
8960echo "${ECHO_T}no" >&6
10f2d63a 8961 fi
e6cc62c6 8962
10f2d63a 8963
5005acfe 8964 enablestring=
e6cc62c6
VS
8965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8966echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8967 no_cache=0
8968 # Check whether --enable-joystick or --disable-joystick was given.
8969if test "${enable_joystick+set}" = set; then
8970 enableval="$enable_joystick"
e6cc62c6 8971
f6bcfd97
BP
8972 if test "$enableval" = yes; then
8973 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8974 else
8975 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8976 fi
e6cc62c6 8977
f6bcfd97 8978else
e6cc62c6 8979
f6bcfd97
BP
8980 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8981 if test "x$LINE" != x ; then
8982 eval "DEFAULT_$LINE"
8983 else
8984 no_cache=1
8985 fi
8986
8987 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8988
e6cc62c6 8989fi;
f6bcfd97
BP
8990
8991 eval "$ac_cv_use_joystick"
8992 if test "$no_cache" != 1; then
8993 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8994 fi
8995
8996 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8997 echo "$as_me:$LINENO: result: yes" >&5
8998echo "${ECHO_T}yes" >&6
f6bcfd97 8999 else
e6cc62c6
VS
9000 echo "$as_me:$LINENO: result: no" >&5
9001echo "${ECHO_T}no" >&6
f6bcfd97 9002 fi
e6cc62c6 9003
698dcdb6 9004
5005acfe 9005 enablestring=
e6cc62c6
VS
9006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9007echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9008 no_cache=0
9009 # Check whether --enable-metafile or --disable-metafile was given.
9010if test "${enable_metafile+set}" = set; then
9011 enableval="$enable_metafile"
e6cc62c6 9012
1e6feb95
VZ
9013 if test "$enableval" = yes; then
9014 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9015 else
9016 ac_cv_use_metafile='wxUSE_METAFILE=no'
9017 fi
e6cc62c6 9018
1e6feb95 9019else
e6cc62c6 9020
1e6feb95
VZ
9021 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9022 if test "x$LINE" != x ; then
9023 eval "DEFAULT_$LINE"
9024 else
9025 no_cache=1
9026 fi
9027
9028 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9029
e6cc62c6 9030fi;
1e6feb95
VZ
9031
9032 eval "$ac_cv_use_metafile"
9033 if test "$no_cache" != 1; then
9034 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9035 fi
9036
9037 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9038 echo "$as_me:$LINENO: result: yes" >&5
9039echo "${ECHO_T}yes" >&6
1e6feb95 9040 else
e6cc62c6
VS
9041 echo "$as_me:$LINENO: result: no" >&5
9042echo "${ECHO_T}no" >&6
1e6feb95 9043 fi
e6cc62c6 9044
1e6feb95 9045
5005acfe 9046 enablestring=
e6cc62c6
VS
9047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9048echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9049 no_cache=0
9050 # Check whether --enable-dragimage or --disable-dragimage was given.
9051if test "${enable_dragimage+set}" = set; then
9052 enableval="$enable_dragimage"
e6cc62c6 9053
24fd6d87
VZ
9054 if test "$enableval" = yes; then
9055 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9056 else
9057 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9058 fi
e6cc62c6 9059
24fd6d87 9060else
e6cc62c6 9061
24fd6d87
VZ
9062 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9063 if test "x$LINE" != x ; then
9064 eval "DEFAULT_$LINE"
9065 else
9066 no_cache=1
9067 fi
9068
9069 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9070
e6cc62c6 9071fi;
24fd6d87
VZ
9072
9073 eval "$ac_cv_use_dragimage"
9074 if test "$no_cache" != 1; then
9075 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9076 fi
9077
9078 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9079 echo "$as_me:$LINENO: result: yes" >&5
9080echo "${ECHO_T}yes" >&6
24fd6d87 9081 else
e6cc62c6
VS
9082 echo "$as_me:$LINENO: result: no" >&5
9083echo "${ECHO_T}no" >&6
24fd6d87 9084 fi
e6cc62c6 9085
52127426 9086
7bb2947d 9087 enablestring=
e6cc62c6
VS
9088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9089echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9090 no_cache=0
9091 # Check whether --enable-accessibility or --disable-accessibility was given.
9092if test "${enable_accessibility+set}" = set; then
9093 enableval="$enable_accessibility"
e6cc62c6 9094
7bb2947d
MB
9095 if test "$enableval" = yes; then
9096 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9097 else
9098 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9099 fi
e6cc62c6 9100
7bb2947d 9101else
e6cc62c6 9102
7bb2947d
MB
9103 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9104 if test "x$LINE" != x ; then
9105 eval "DEFAULT_$LINE"
9106 else
9107 no_cache=1
9108 fi
9109
9110 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9111
e6cc62c6 9112fi;
7bb2947d
MB
9113
9114 eval "$ac_cv_use_accessibility"
9115 if test "$no_cache" != 1; then
9116 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9117 fi
9118
9119 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9120 echo "$as_me:$LINENO: result: yes" >&5
9121echo "${ECHO_T}yes" >&6
7bb2947d 9122 else
e6cc62c6
VS
9123 echo "$as_me:$LINENO: result: no" >&5
9124echo "${ECHO_T}no" >&6
7bb2947d 9125 fi
e6cc62c6 9126
7bb2947d 9127
8284b0c5
MB
9128
9129
5005acfe 9130 enablestring=
e6cc62c6
VS
9131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9132echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9133 no_cache=0
9134 # Check whether --enable-palette or --disable-palette was given.
9135if test "${enable_palette+set}" = set; then
9136 enableval="$enable_palette"
e6cc62c6 9137
edae8572
VZ
9138 if test "$enableval" = yes; then
9139 ac_cv_use_palette='wxUSE_PALETTE=yes'
9140 else
9141 ac_cv_use_palette='wxUSE_PALETTE=no'
9142 fi
e6cc62c6 9143
edae8572 9144else
e6cc62c6 9145
edae8572
VZ
9146 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9147 if test "x$LINE" != x ; then
9148 eval "DEFAULT_$LINE"
9149 else
9150 no_cache=1
9151 fi
9152
9153 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9154
e6cc62c6 9155fi;
edae8572
VZ
9156
9157 eval "$ac_cv_use_palette"
9158 if test "$no_cache" != 1; then
9159 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9160 fi
9161
9162 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9163 echo "$as_me:$LINENO: result: yes" >&5
9164echo "${ECHO_T}yes" >&6
edae8572 9165 else
e6cc62c6
VS
9166 echo "$as_me:$LINENO: result: no" >&5
9167echo "${ECHO_T}no" >&6
edae8572 9168 fi
e6cc62c6 9169
edae8572 9170
5005acfe 9171 enablestring=
e6cc62c6
VS
9172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9173echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9174 no_cache=0
9175 # Check whether --enable-image or --disable-image was given.
9176if test "${enable_image+set}" = set; then
9177 enableval="$enable_image"
e6cc62c6 9178
0046ff7c
VS
9179 if test "$enableval" = yes; then
9180 ac_cv_use_image='wxUSE_IMAGE=yes'
9181 else
9182 ac_cv_use_image='wxUSE_IMAGE=no'
9183 fi
e6cc62c6 9184
0046ff7c 9185else
e6cc62c6 9186
0046ff7c
VS
9187 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9188 if test "x$LINE" != x ; then
9189 eval "DEFAULT_$LINE"
9190 else
9191 no_cache=1
9192 fi
9193
9194 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9195
e6cc62c6 9196fi;
0046ff7c
VS
9197
9198 eval "$ac_cv_use_image"
9199 if test "$no_cache" != 1; then
9200 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9201 fi
9202
9203 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9204 echo "$as_me:$LINENO: result: yes" >&5
9205echo "${ECHO_T}yes" >&6
0046ff7c 9206 else
e6cc62c6
VS
9207 echo "$as_me:$LINENO: result: no" >&5
9208echo "${ECHO_T}no" >&6
0046ff7c 9209 fi
e6cc62c6 9210
0046ff7c 9211
5005acfe 9212 enablestring=
e6cc62c6
VS
9213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9214echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9215 no_cache=0
9216 # Check whether --enable-gif or --disable-gif was given.
9217if test "${enable_gif+set}" = set; then
9218 enableval="$enable_gif"
e6cc62c6 9219
10f2d63a
VZ
9220 if test "$enableval" = yes; then
9221 ac_cv_use_gif='wxUSE_GIF=yes'
9222 else
9223 ac_cv_use_gif='wxUSE_GIF=no'
9224 fi
e6cc62c6 9225
10f2d63a 9226else
e6cc62c6 9227
10f2d63a
VZ
9228 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9229 if test "x$LINE" != x ; then
9230 eval "DEFAULT_$LINE"
9231 else
9232 no_cache=1
9233 fi
9234
9235 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9236
e6cc62c6 9237fi;
10f2d63a
VZ
9238
9239 eval "$ac_cv_use_gif"
9240 if test "$no_cache" != 1; then
9241 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9242 fi
9243
9244 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9245 echo "$as_me:$LINENO: result: yes" >&5
9246echo "${ECHO_T}yes" >&6
10f2d63a 9247 else
e6cc62c6
VS
9248 echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6
10f2d63a 9250 fi
e6cc62c6 9251
10f2d63a 9252
5005acfe 9253 enablestring=
e6cc62c6
VS
9254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9255echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9256 no_cache=0
9257 # Check whether --enable-pcx or --disable-pcx was given.
9258if test "${enable_pcx+set}" = set; then
9259 enableval="$enable_pcx"
e6cc62c6 9260
10f2d63a
VZ
9261 if test "$enableval" = yes; then
9262 ac_cv_use_pcx='wxUSE_PCX=yes'
9263 else
9264 ac_cv_use_pcx='wxUSE_PCX=no'
9265 fi
e6cc62c6 9266
10f2d63a 9267else
e6cc62c6 9268
10f2d63a
VZ
9269 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9270 if test "x$LINE" != x ; then
9271 eval "DEFAULT_$LINE"
9272 else
9273 no_cache=1
9274 fi
9275
9276 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9277
e6cc62c6 9278fi;
10f2d63a
VZ
9279
9280 eval "$ac_cv_use_pcx"
9281 if test "$no_cache" != 1; then
9282 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9283 fi
9284
9285 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9286 echo "$as_me:$LINENO: result: yes" >&5
9287echo "${ECHO_T}yes" >&6
10f2d63a 9288 else
e6cc62c6
VS
9289 echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6
10f2d63a 9291 fi
e6cc62c6 9292
10f2d63a 9293
5005acfe 9294 enablestring=
e6cc62c6
VS
9295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9296echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9297 no_cache=0
9298 # Check whether --enable-iff or --disable-iff was given.
9299if test "${enable_iff+set}" = set; then
9300 enableval="$enable_iff"
e6cc62c6 9301
4b6b4dfc
RR
9302 if test "$enableval" = yes; then
9303 ac_cv_use_iff='wxUSE_IFF=yes'
9304 else
9305 ac_cv_use_iff='wxUSE_IFF=no'
9306 fi
e6cc62c6 9307
4b6b4dfc 9308else
e6cc62c6 9309
4b6b4dfc
RR
9310 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9311 if test "x$LINE" != x ; then
9312 eval "DEFAULT_$LINE"
9313 else
9314 no_cache=1
9315 fi
9316
9317 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9318
e6cc62c6 9319fi;
4b6b4dfc
RR
9320
9321 eval "$ac_cv_use_iff"
9322 if test "$no_cache" != 1; then
9323 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9324 fi
9325
9326 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9327 echo "$as_me:$LINENO: result: yes" >&5
9328echo "${ECHO_T}yes" >&6
4b6b4dfc 9329 else
e6cc62c6
VS
9330 echo "$as_me:$LINENO: result: no" >&5
9331echo "${ECHO_T}no" >&6
4b6b4dfc 9332 fi
e6cc62c6 9333
4b6b4dfc 9334
5005acfe 9335 enablestring=
e6cc62c6
VS
9336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9337echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9338 no_cache=0
9339 # Check whether --enable-pnm or --disable-pnm was given.
9340if test "${enable_pnm+set}" = set; then
9341 enableval="$enable_pnm"
e6cc62c6 9342
10f2d63a
VZ
9343 if test "$enableval" = yes; then
9344 ac_cv_use_pnm='wxUSE_PNM=yes'
9345 else
9346 ac_cv_use_pnm='wxUSE_PNM=no'
9347 fi
e6cc62c6 9348
10f2d63a 9349else
e6cc62c6 9350
10f2d63a
VZ
9351 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9352 if test "x$LINE" != x ; then
9353 eval "DEFAULT_$LINE"
9354 else
9355 no_cache=1
9356 fi
9357
9358 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9359
e6cc62c6 9360fi;
10f2d63a
VZ
9361
9362 eval "$ac_cv_use_pnm"
9363 if test "$no_cache" != 1; then
9364 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9365 fi
9366
9367 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9368 echo "$as_me:$LINENO: result: yes" >&5
9369echo "${ECHO_T}yes" >&6
10f2d63a 9370 else
e6cc62c6
VS
9371 echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
10f2d63a 9373 fi
e6cc62c6 9374
10f2d63a 9375
5005acfe 9376 enablestring=
e6cc62c6
VS
9377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9378echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9379 no_cache=0
69d27ff7
MB
9380 # Check whether --enable-xpm or --disable-xpm was given.
9381if test "${enable_xpm+set}" = set; then
9382 enableval="$enable_xpm"
e6cc62c6 9383
0046ff7c 9384 if test "$enableval" = yes; then
69d27ff7 9385 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9386 else
69d27ff7 9387 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9388 fi
e6cc62c6 9389
0046ff7c 9390else
e6cc62c6 9391
0046ff7c
VS
9392 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9393 if test "x$LINE" != x ; then
9394 eval "DEFAULT_$LINE"
9395 else
9396 no_cache=1
9397 fi
9398
69d27ff7 9399 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9400
e6cc62c6 9401fi;
0046ff7c 9402
69d27ff7 9403 eval "$ac_cv_use_xpm"
0046ff7c 9404 if test "$no_cache" != 1; then
69d27ff7 9405 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9406 fi
9407
9408 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9409 echo "$as_me:$LINENO: result: yes" >&5
9410echo "${ECHO_T}yes" >&6
0046ff7c 9411 else
e6cc62c6
VS
9412 echo "$as_me:$LINENO: result: no" >&5
9413echo "${ECHO_T}no" >&6
0046ff7c 9414 fi
e6cc62c6 9415
0046ff7c 9416
5005acfe 9417 enablestring=
e6cc62c6
VS
9418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9419echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9420 no_cache=0
c7206e64
VS
9421 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9422if test "${enable_ico_cur+set}" = set; then
9423 enableval="$enable_ico_cur"
e6cc62c6 9424
658974ae 9425 if test "$enableval" = yes; then
c7206e64 9426 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9427 else
c7206e64 9428 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9429 fi
e6cc62c6 9430
658974ae 9431else
e6cc62c6 9432
658974ae
VS
9433 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9434 if test "x$LINE" != x ; then
9435 eval "DEFAULT_$LINE"
9436 else
9437 no_cache=1
9438 fi
9439
c7206e64 9440 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9441
e6cc62c6 9442fi;
658974ae 9443
c7206e64 9444 eval "$ac_cv_use_ico_cur"
658974ae 9445 if test "$no_cache" != 1; then
c7206e64 9446 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9447 fi
9448
9449 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9450 echo "$as_me:$LINENO: result: yes" >&5
9451echo "${ECHO_T}yes" >&6
658974ae 9452 else
e6cc62c6
VS
9453 echo "$as_me:$LINENO: result: no" >&5
9454echo "${ECHO_T}no" >&6
658974ae 9455 fi
e6cc62c6 9456
658974ae 9457
b12915c1
VZ
9458fi
9459
029b47ad
VS
9460
9461
9462 enablestring=
9463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9464echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9465 no_cache=0
9466 # Check whether --enable-official_build or --disable-official_build was given.
9467if test "${enable_official_build+set}" = set; then
9468 enableval="$enable_official_build"
9469
9470 if test "$enableval" = yes; then
9471 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9472 else
9473 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9474 fi
9475
9476else
9477
9478 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9479 if test "x$LINE" != x ; then
9480 eval "DEFAULT_$LINE"
9481 else
9482 no_cache=1
9483 fi
9484
9485 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9486
9487fi;
9488
9489 eval "$ac_cv_use_official_build"
9490 if test "$no_cache" != 1; then
9491 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9492 fi
9493
9494 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9495 echo "$as_me:$LINENO: result: yes" >&5
9496echo "${ECHO_T}yes" >&6
9497 else
9498 echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
9500 fi
9501
9502# Check whether --enable-vendor or --disable-vendor was given.
9503if test "${enable_vendor+set}" = set; then
9504 enableval="$enable_vendor"
9505 VENDOR="$enableval"
9506fi;
9507if test "x$VENDOR" = "x"; then
9508 VENDOR="custom"
9509fi
9510
d558c907
VS
9511case "${host}" in
9512 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9513 PATH_IFS=';'
9514 LEX_STEM="lexyy"
d558c907
VS
9515 ;;
9516 *)
9517 PATH_IFS=':'
9518 LEX_STEM="lex.yy"
9519 ;;
9520esac
9521
8284b0c5
MB
9522
9523
10f2d63a
VZ
9524 echo "saving argument cache $wx_arg_cache_file"
9525 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9526
8284b0c5 9527
e6cc62c6
VS
9528
9529echo "$as_me:$LINENO: checking for toolkit" >&5
9530echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9531
9532# In Wine, we need to default to MSW, not GTK or MOTIF
9533if test "$wxUSE_WINE" = "yes"; then
9534 DEFAULT_DEFAULT_wxUSE_GTK=0
9535 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9536 DEFAULT_DEFAULT_wxUSE_MSW=1
9537fi
10f2d63a
VZ
9538
9539if test "$wxUSE_GUI" = "yes"; then
9540
3a922bb4 9541 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9542 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9543echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9544 { (exit 1); exit 1; }; }
3a922bb4 9545 fi
b12915c1 9546
3a922bb4
RL
9547 if test "$TOOLKIT_GIVEN" = 1; then
9548 for toolkit in `echo $ALL_TOOLKITS`; do
9549 var=wxUSE_$toolkit
9550 eval "value=\$${var}"
9551 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9552 done
10f2d63a 9553 else
3a922bb4
RL
9554 for toolkit in `echo $ALL_TOOLKITS`; do
9555 if test "$has_toolkit_in_cache" != 1; then
9556 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9557 else
9558 var=DEFAULT_wxUSE_$toolkit
9559 fi
9560 eval "wxUSE_$toolkit=\$${var}"
9561 done
10f2d63a 9562 fi
10f2d63a 9563
ac0c4cc3
DE
9564 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9565 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9566 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9567
d558c907 9568 case "${host}" in
6fa882bd 9569 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9570 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9571 esac
10f2d63a 9572
3a922bb4
RL
9573 case "$NUM_TOOLKITS" in
9574 1)
9575 ;;
9576 0)
e6cc62c6
VS
9577 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9578echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9579 { (exit 1); exit 1; }; }
3a922bb4
RL
9580 ;;
9581 *)
e6cc62c6
VS
9582 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9583echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9584 { (exit 1); exit 1; }; }
3a922bb4 9585 esac
10f2d63a 9586
3a922bb4
RL
9587 for toolkit in `echo $ALL_TOOLKITS`; do
9588 var=wxUSE_$toolkit
9589 eval "value=\$${var}"
9590 if test "x$value" != x; then
9591 cache_var=CACHE_$toolkit
9592 eval "cache=\$${cache_var}"
9593 if test "$cache" = 1; then
9594 echo "$var=$value" >> ${wx_arg_cache_file}
9595 fi
9596 if test "$value" = 1; then
9597 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9598 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9599echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9600 fi
9601 fi
9602 done
10f2d63a 9603else
9de9b8f0
VZ
9604 if test "x$host_alias" != "x"; then
9605 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9606echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9607 else
9608 echo "$as_me:$LINENO: result: base only" >&5
9609echo "${ECHO_T}base only" >&6
9610 fi
10f2d63a
VZ
9611fi
9612
43d99b6d
VS
9613wants_win32=0
9614doesnt_want_win32=0
17234b26
MB
9615case "${host}" in
9616 *-*-cygwin*)
9617 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9618 wants_win32=1
9619 else
9620 doesnt_want_win32=1
17234b26
MB
9621 fi
9622 ;;
9623 *-*-mingw*)
43d99b6d 9624 wants_win32=1
17234b26
MB
9625 ;;
9626esac
9627
89e6bf6d
VZ
9628if test "$wxUSE_WINE" = "yes"; then
9629 wants_win32=1
9630 CC=winegcc
9631 CXX=wineg++
9632 RESCOMP=wrc
9633fi
9634
43d99b6d 9635if test "$wants_win32" = 1 ; then
17234b26
MB
9636 USE_UNIX=0
9637 USE_WIN32=1
e6cc62c6 9638 cat >>confdefs.h <<\_ACEOF
17234b26 9639#define __WIN32__ 1
e6cc62c6 9640_ACEOF
17234b26 9641
e6cc62c6 9642 cat >>confdefs.h <<\_ACEOF
17234b26 9643#define __WIN95__ 1
e6cc62c6 9644_ACEOF
17234b26 9645
e6cc62c6 9646 cat >>confdefs.h <<\_ACEOF
17234b26 9647#define __WINDOWS__ 1
e6cc62c6 9648_ACEOF
17234b26 9649
e6cc62c6 9650 cat >>confdefs.h <<\_ACEOF
17234b26 9651#define __GNUWIN32__ 1
e6cc62c6 9652_ACEOF
17234b26 9653
e6cc62c6 9654 cat >>confdefs.h <<\_ACEOF
17234b26 9655#define STRICT 1
e6cc62c6 9656_ACEOF
17234b26 9657
e6cc62c6 9658 cat >>confdefs.h <<\_ACEOF
17234b26 9659#define WINVER 0x0400
e6cc62c6 9660_ACEOF
17234b26 9661
43d99b6d
VS
9662fi
9663if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9664 USE_UNIX=1
9665 USE_WIN32=0
9666fi
9667
9668if test "$USE_UNIX" = 1 ; then
9669 wxUSE_UNIX=yes
e6cc62c6 9670 cat >>confdefs.h <<\_ACEOF
17234b26 9671#define __UNIX__ 1
e6cc62c6 9672_ACEOF
17234b26
MB
9673
9674fi
9675
8284b0c5 9676
e6cc62c6 9677cat >confcache <<\_ACEOF
10f2d63a
VZ
9678# This file is a shell script that caches the results of configure
9679# tests run on this system so they can be shared between configure
e6cc62c6
VS
9680# scripts and configure runs, see configure's option --config-cache.
9681# It is not useful on other systems. If it contains results you don't
9682# want to keep, you may remove or edit it.
10f2d63a 9683#
e6cc62c6
VS
9684# config.status only pays attention to the cache file if you give it
9685# the --recheck option to rerun configure.
10f2d63a 9686#
e6cc62c6
VS
9687# `ac_cv_env_foo' variables (set or unset) will be overridden when
9688# loading this file, other *unset* `ac_cv_foo' will be assigned the
9689# following values.
9690
9691_ACEOF
9692
10f2d63a
VZ
9693# The following way of writing the cache mishandles newlines in values,
9694# but we know of no workaround that is simple, portable, and efficient.
9695# So, don't put newlines in cache variables' values.
9696# Ultrix sh set writes to stderr and can't be redirected directly,
9697# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9698{
9699 (set) 2>&1 |
9700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9701 *ac_space=\ *)
9702 # `set' does not quote correctly, so add quotes (double-quote
9703 # substitution turns \\\\ into \\, and sed turns \\ into \).
9704 sed -n \
9705 "s/'/'\\\\''/g;
9706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9707 ;;
9708 *)
9709 # `set' quotes correctly as required by POSIX, so do not add quotes.
9710 sed -n \
9711 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9712 ;;
9713 esac;
9714} |
9715 sed '
9716 t clear
9717 : clear
9718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9719 t end
9720 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9721 : end' >>confcache
9722if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9723 if test -w $cache_file; then
e6cc62c6
VS
9724 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9725 cat confcache >$cache_file
10f2d63a
VZ
9726 else
9727 echo "not updating unwritable cache $cache_file"
9728 fi
9729fi
9730rm -f confcache
9731
e59890c3 9732if test "$build" != "$host" ; then
9d353d4a 9733 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9734 CC=$host_alias-gcc
9735 CXX=$host_alias-c++
9736 AR=$host_alias-ar
9737 RANLIB=$host_alias-ranlib
9738 DLLTOOL=$host_alias-dlltool
9739 RESCOMP=$host_alias-windres
9740 LD=$host_alias-ld
9741 NM=$host_alias-nm
9742 STRIP=$host_alias-strip
9743 else
e6cc62c6
VS
9744 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9745echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9746 { (exit 1); exit 1; }; }
3a922bb4 9747 fi
10f2d63a
VZ
9748fi
9749
ec603395 9750CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9751ac_ext=c
9752ac_cpp='$CPP $CPPFLAGS'
9753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755ac_compiler_gnu=$ac_cv_c_compiler_gnu
9756if test -n "$ac_tool_prefix"; then
9757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9758set dummy ${ac_tool_prefix}gcc; ac_word=$2
9759echo "$as_me:$LINENO: checking for $ac_word" >&5
9760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9761if test "${ac_cv_prog_CC+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 if test -n "$CC"; then
9765 ac_cv_prog_CC="$CC" # Let the user override the test.
9766else
9767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768for as_dir in $PATH
9769do
9770 IFS=$as_save_IFS
9771 test -z "$as_dir" && as_dir=.
9772 for ac_exec_ext in '' $ac_executable_extensions; do
9773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 break 2
9777 fi
9778done
9779done
9780
9781fi
9782fi
9783CC=$ac_cv_prog_CC
9784if test -n "$CC"; then
9785 echo "$as_me:$LINENO: result: $CC" >&5
9786echo "${ECHO_T}$CC" >&6
9787else
9788 echo "$as_me:$LINENO: result: no" >&5
9789echo "${ECHO_T}no" >&6
9790fi
9791
9792fi
9793if test -z "$ac_cv_prog_CC"; then
9794 ac_ct_CC=$CC
9795 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9796set dummy gcc; ac_word=$2
e6cc62c6
VS
9797echo "$as_me:$LINENO: checking for $ac_word" >&5
9798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801else
9802 if test -n "$ac_ct_CC"; then
9803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9804else
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_prog_ac_ct_CC="gcc"
9813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817done
9818
9819fi
9820fi
9821ac_ct_CC=$ac_cv_prog_ac_ct_CC
9822if test -n "$ac_ct_CC"; then
9823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9824echo "${ECHO_T}$ac_ct_CC" >&6
9825else
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
9828fi
9829
9830 CC=$ac_ct_CC
9831else
9832 CC="$ac_cv_prog_CC"
9833fi
9834
9835if test -z "$CC"; then
9836 if test -n "$ac_tool_prefix"; then
9837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9838set dummy ${ac_tool_prefix}cc; ac_word=$2
9839echo "$as_me:$LINENO: checking for $ac_word" >&5
9840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9841if test "${ac_cv_prog_CC+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9843else
9844 if test -n "$CC"; then
9845 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9846else
e6cc62c6
VS
9847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848for as_dir in $PATH
9849do
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_prog_CC="${ac_tool_prefix}cc"
9855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 break 2
9857 fi
9858done
9859done
9860
10f2d63a 9861fi
6232543b 9862fi
e6cc62c6 9863CC=$ac_cv_prog_CC
6232543b 9864if test -n "$CC"; then
e6cc62c6
VS
9865 echo "$as_me:$LINENO: result: $CC" >&5
9866echo "${ECHO_T}$CC" >&6
9867else
9868 echo "$as_me:$LINENO: result: no" >&5
9869echo "${ECHO_T}no" >&6
9870fi
9871
9872fi
9873if test -z "$ac_cv_prog_CC"; then
9874 ac_ct_CC=$CC
9875 # Extract the first word of "cc", so it can be a program name with args.
9876set dummy cc; ac_word=$2
9877echo "$as_me:$LINENO: checking for $ac_word" >&5
9878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 if test -n "$ac_ct_CC"; then
9883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9884else
9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_prog_ac_ct_CC="cc"
9893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9895 fi
9896done
9897done
9898
9899fi
9900fi
9901ac_ct_CC=$ac_cv_prog_ac_ct_CC
9902if test -n "$ac_ct_CC"; then
9903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9904echo "${ECHO_T}$ac_ct_CC" >&6
9905else
9906 echo "$as_me:$LINENO: result: no" >&5
9907echo "${ECHO_T}no" >&6
9908fi
9909
9910 CC=$ac_ct_CC
247f5006 9911else
e6cc62c6 9912 CC="$ac_cv_prog_CC"
247f5006
VZ
9913fi
9914
e6cc62c6 9915fi
5c6fa7d2
RR
9916if test -z "$CC"; then
9917 # Extract the first word of "cc", so it can be a program name with args.
9918set dummy cc; ac_word=$2
e6cc62c6
VS
9919echo "$as_me:$LINENO: checking for $ac_word" >&5
9920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9921if test "${ac_cv_prog_CC+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9923else
9924 if test -n "$CC"; then
9925 ac_cv_prog_CC="$CC" # Let the user override the test.
9926else
9927 ac_prog_rejected=no
e6cc62c6
VS
9928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929for as_dir in $PATH
9930do
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9936 ac_prog_rejected=yes
9937 continue
9938 fi
9939 ac_cv_prog_CC="cc"
9940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944done
9945
328a083c
RR
9946if test $ac_prog_rejected = yes; then
9947 # We found a bogon in the path, so make sure we never use it.
9948 set dummy $ac_cv_prog_CC
9949 shift
e6cc62c6 9950 if test $# != 0; then
328a083c 9951 # We chose a different compiler from the bogus one.
1e487827
VS
9952 # However, it has the same basename, so the bogon will be chosen
9953 # first if we set CC to just the basename; use the full file name.
9954 shift
e6cc62c6 9955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9956 fi
1e487827
VS
9957fi
9958fi
9959fi
e6cc62c6 9960CC=$ac_cv_prog_CC
1e487827 9961if test -n "$CC"; then
e6cc62c6
VS
9962 echo "$as_me:$LINENO: result: $CC" >&5
9963echo "${ECHO_T}$CC" >&6
703e0a69 9964else
e6cc62c6
VS
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
703e0a69 9967fi
1e487827 9968
e6cc62c6
VS
9969fi
9970if test -z "$CC"; then
9971 if test -n "$ac_tool_prefix"; then
9972 for ac_prog in cl
9973 do
9974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9976echo "$as_me:$LINENO: checking for $ac_word" >&5
9977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978if test "${ac_cv_prog_CC+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9980else
9981 if test -n "$CC"; then
9982 ac_cv_prog_CC="$CC" # Let the user override the test.
9983else
e6cc62c6
VS
9984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985for as_dir in $PATH
9986do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995done
9996done
9997
f09359cf
VS
9998fi
9999fi
e6cc62c6 10000CC=$ac_cv_prog_CC
f09359cf 10001if test -n "$CC"; then
e6cc62c6
VS
10002 echo "$as_me:$LINENO: result: $CC" >&5
10003echo "${ECHO_T}$CC" >&6
f09359cf 10004else
e6cc62c6
VS
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
5c6fa7d2 10007fi
1e487827 10008
e6cc62c6
VS
10009 test -n "$CC" && break
10010 done
10011fi
10012if test -z "$CC"; then
10013 ac_ct_CC=$CC
10014 for ac_prog in cl
10015do
10016 # Extract the first word of "$ac_prog", so it can be a program name with args.
10017set dummy $ac_prog; ac_word=$2
10018echo "$as_me:$LINENO: checking for $ac_word" >&5
10019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023 if test -n "$ac_ct_CC"; then
10024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10025else
10026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027for as_dir in $PATH
10028do
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033 ac_cv_prog_ac_ct_CC="$ac_prog"
10034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10036 fi
10037done
10038done
f09359cf 10039
e6cc62c6
VS
10040fi
10041fi
10042ac_ct_CC=$ac_cv_prog_ac_ct_CC
10043if test -n "$ac_ct_CC"; then
10044 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10045echo "${ECHO_T}$ac_ct_CC" >&6
10046else
10047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
10049fi
f09359cf 10050
e6cc62c6
VS
10051 test -n "$ac_ct_CC" && break
10052done
247f5006 10053
e6cc62c6
VS
10054 CC=$ac_ct_CC
10055fi
10056
10057fi
10058
10059
10060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10061See \`config.log' for more details." >&5
10062echo "$as_me: error: no acceptable C compiler found in \$PATH
10063See \`config.log' for more details." >&2;}
10064 { (exit 1); exit 1; }; }
10065
10066# Provide some information about the compiler.
10067echo "$as_me:$LINENO:" \
10068 "checking for C compiler version" >&5
10069ac_compiler=`set X $ac_compile; echo $2`
10070{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10071 (eval $ac_compiler --version </dev/null >&5) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }
10075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10076 (eval $ac_compiler -v </dev/null >&5) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }
10080{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10081 (eval $ac_compiler -V </dev/null >&5) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }
10085
10086cat >conftest.$ac_ext <<_ACEOF
10087#line $LINENO "configure"
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093
10094int
10095main ()
10096{
247f5006 10097
e6cc62c6
VS
10098 ;
10099 return 0;
10100}
10101_ACEOF
10102ac_clean_files_save=$ac_clean_files
10103ac_clean_files="$ac_clean_files a.out a.exe b.out"
10104# Try to create an executable without -o first, disregard a.out.
10105# It will help us diagnose broken compilers, and finding out an intuition
10106# of exeext.
10107echo "$as_me:$LINENO: checking for C compiler default output" >&5
10108echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10109ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10110if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10111 (eval $ac_link_default) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; then
10115 # Find the output, starting from the most likely. This scheme is
10116# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10117# resort.
10118
10119# Be careful to initialize this variable, since it used to be cached.
10120# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10121ac_cv_exeext=
10122# b.out is created by i960 compilers.
10123for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10124do
10125 test -f "$ac_file" || continue
10126 case $ac_file in
10127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10128 ;;
10129 conftest.$ac_ext )
10130 # This is the source file.
10131 ;;
10132 [ab].out )
10133 # We found the default executable, but exeext='' is most
10134 # certainly right.
10135 break;;
10136 *.* )
10137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10138 # FIXME: I believe we export ac_cv_exeext for Libtool,
10139 # but it would be cool to find out if it's true. Does anybody
10140 # maintain Libtool? --akim.
10141 export ac_cv_exeext
10142 break;;
10143 * )
10144 break;;
10145 esac
10146done
10147else
10148 echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10152See \`config.log' for more details." >&5
10153echo "$as_me: error: C compiler cannot create executables
10154See \`config.log' for more details." >&2;}
10155 { (exit 77); exit 77; }; }
10156fi
10157
10158ac_exeext=$ac_cv_exeext
10159echo "$as_me:$LINENO: result: $ac_file" >&5
10160echo "${ECHO_T}$ac_file" >&6
10161
10162# Check the compiler produces executables we can run. If not, either
10163# the compiler is broken, or we cross compile.
10164echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10165echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10166# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10167# If not cross compiling, check that we can run a simple program.
10168if test "$cross_compiling" != yes; then
10169 if { ac_try='./$ac_file'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 cross_compiling=no
698dcdb6 10176 else
e6cc62c6
VS
10177 if test "$cross_compiling" = maybe; then
10178 cross_compiling=yes
10179 else
10180 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10181If you meant to cross compile, use \`--host'.
10182See \`config.log' for more details." >&5
10183echo "$as_me: error: cannot run C compiled programs.
10184If you meant to cross compile, use \`--host'.
10185See \`config.log' for more details." >&2;}
10186 { (exit 1); exit 1; }; }
10187 fi
698dcdb6 10188 fi
52127426 10189fi
e6cc62c6
VS
10190echo "$as_me:$LINENO: result: yes" >&5
10191echo "${ECHO_T}yes" >&6
10192
10193rm -f a.out a.exe conftest$ac_cv_exeext b.out
10194ac_clean_files=$ac_clean_files_save
10195# Check the compiler produces executables we can run. If not, either
10196# the compiler is broken, or we cross compile.
10197echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10198echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10199echo "$as_me:$LINENO: result: $cross_compiling" >&5
10200echo "${ECHO_T}$cross_compiling" >&6
10201
10202echo "$as_me:$LINENO: checking for suffix of executables" >&5
10203echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; then
10209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10210# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10211# work properly (i.e., refer to `conftest.exe'), while it won't with
10212# `rm'.
10213for ac_file in conftest.exe conftest conftest.*; do
10214 test -f "$ac_file" || continue
10215 case $ac_file in
10216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10218 export ac_cv_exeext
10219 break;;
10220 * ) break;;
10221 esac
10222done
5c6fa7d2 10223else
e6cc62c6
VS
10224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10225See \`config.log' for more details." >&5
10226echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10227See \`config.log' for more details." >&2;}
10228 { (exit 1); exit 1; }; }
10229fi
10230
10231rm -f conftest$ac_cv_exeext
10232echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10233echo "${ECHO_T}$ac_cv_exeext" >&6
10234
10235rm -f conftest.$ac_ext
10236EXEEXT=$ac_cv_exeext
10237ac_exeext=$EXEEXT
10238echo "$as_me:$LINENO: checking for suffix of object files" >&5
10239echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10240if test "${ac_cv_objext+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 cat >conftest.$ac_ext <<_ACEOF
10244#line $LINENO "configure"
10245/* confdefs.h. */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h. */
10250
10251int
10252main ()
10253{
f09359cf 10254
e6cc62c6
VS
10255 ;
10256 return 0;
10257}
10258_ACEOF
10259rm -f conftest.o conftest.obj
10260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; then
10265 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10266 case $ac_file in
10267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10269 break;;
10270 esac
10271done
a0b9e27f 10272else
e6cc62c6
VS
10273 echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10277See \`config.log' for more details." >&5
10278echo "$as_me: error: cannot compute suffix of object files: cannot compile
10279See \`config.log' for more details." >&2;}
10280 { (exit 1); exit 1; }; }
a0b9e27f 10281fi
247f5006 10282
e6cc62c6
VS
10283rm -f conftest.$ac_cv_objext conftest.$ac_ext
10284fi
10285echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10286echo "${ECHO_T}$ac_cv_objext" >&6
10287OBJEXT=$ac_cv_objext
10288ac_objext=$OBJEXT
10289echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10291if test "${ac_cv_c_compiler_gnu+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10293else
e6cc62c6
VS
10294 cat >conftest.$ac_ext <<_ACEOF
10295#line $LINENO "configure"
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301
10302int
10303main ()
10304{
10305#ifndef __GNUC__
10306 choke me
10307#endif
10308
10309 ;
10310 return 0;
10311}
10312_ACEOF
10313rm -f conftest.$ac_objext
10314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -s conftest.$ac_objext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_compiler_gnu=yes
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330ac_compiler_gnu=no
10331fi
10332rm -f conftest.$ac_objext conftest.$ac_ext
10333ac_cv_c_compiler_gnu=$ac_compiler_gnu
10334
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10337echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10338GCC=`test $ac_compiler_gnu = yes && echo yes`
10339ac_test_CFLAGS=${CFLAGS+set}
10340ac_save_CFLAGS=$CFLAGS
10341CFLAGS="-g"
10342echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10343echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10344if test "${ac_cv_prog_cc_g+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10346else
10347 cat >conftest.$ac_ext <<_ACEOF
10348#line $LINENO "configure"
10349/* confdefs.h. */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h. */
10354
10355int
10356main ()
10357{
10358
10359 ;
10360 return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext
10364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10f2d63a
VZ
10375 ac_cv_prog_cc_g=yes
10376else
e6cc62c6
VS
10377 echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10379
e6cc62c6 10380ac_cv_prog_cc_g=no
10f2d63a 10381fi
e6cc62c6
VS
10382rm -f conftest.$ac_objext conftest.$ac_ext
10383fi
10384echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10385echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10386if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10387 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10388elif test $ac_cv_prog_cc_g = yes; then
10389 if test "$GCC" = yes; then
10f2d63a
VZ
10390 CFLAGS="-g -O2"
10391 else
f09359cf 10392 CFLAGS="-g"
10f2d63a 10393 fi
5c0a20c3 10394else
f09359cf
VS
10395 if test "$GCC" = yes; then
10396 CFLAGS="-O2"
10397 else
10398 CFLAGS=
10399 fi
10f2d63a 10400fi
e6cc62c6
VS
10401echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10402echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10403if test "${ac_cv_prog_cc_stdc+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 ac_cv_prog_cc_stdc=no
10407ac_save_CC=$CC
10408cat >conftest.$ac_ext <<_ACEOF
10409#line $LINENO "configure"
10410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
10415#include <stdarg.h>
10416#include <stdio.h>
10417#include <sys/types.h>
10418#include <sys/stat.h>
10419/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10420struct buf { int x; };
10421FILE * (*rcsopen) (struct buf *, struct stat *, int);
10422static char *e (p, i)
10423 char **p;
10424 int i;
10425{
10426 return p[i];
10427}
10428static char *f (char * (*g) (char **, int), char **p, ...)
10429{
10430 char *s;
10431 va_list v;
10432 va_start (v,p);
10433 s = g (p, va_arg (v,int));
10434 va_end (v);
10435 return s;
10436}
10437int test (int i, double x);
10438struct s1 {int (*f) (int a);};
10439struct s2 {int (*f) (double a);};
10440int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10441int argc;
10442char **argv;
10443int
10444main ()
10445{
10446return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10447 ;
10448 return 0;
10449}
10450_ACEOF
10451# Don't try gcc -ansi; that turns off useful extensions and
10452# breaks some systems' header files.
10453# AIX -qlanglvl=ansi
10454# Ultrix and OSF/1 -std1
10455# HP-UX 10.20 and later -Ae
10456# HP-UX older versions -Aa -D_HPUX_SOURCE
10457# SVR4 -Xc -D__EXTENSIONS__
10458for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10459do
10460 CC="$ac_save_CC $ac_arg"
10461 rm -f conftest.$ac_objext
10462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_prog_cc_stdc=$ac_arg
10474break
10475else
10476 echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479fi
10480rm -f conftest.$ac_objext
10481done
10482rm -f conftest.$ac_ext conftest.$ac_objext
10483CC=$ac_save_CC
10484
10485fi
10486
10487case "x$ac_cv_prog_cc_stdc" in
10488 x|xno)
10489 echo "$as_me:$LINENO: result: none needed" >&5
10490echo "${ECHO_T}none needed" >&6 ;;
10491 *)
10492 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10493echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10494 CC="$CC $ac_cv_prog_cc_stdc" ;;
10495esac
10496
10497# Some people use a C++ compiler to compile C. Since we use `exit',
10498# in C++ we need to declare it. In case someone uses the same compiler
10499# for both compiling C and C++ we need to have the C++ compiler decide
10500# the declaration of exit, since it's the most demanding environment.
10501cat >conftest.$ac_ext <<_ACEOF
10502#ifndef __cplusplus
10503 choke me
10504#endif
10505_ACEOF
10506rm -f conftest.$ac_objext
10507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -s conftest.$ac_objext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 for ac_declaration in \
6f628073
VS
10519 ''\
10520 '#include <stdlib.h>' \
e6cc62c6
VS
10521 'extern "C" void std::exit (int) throw (); using std::exit;' \
10522 'extern "C" void std::exit (int); using std::exit;' \
10523 'extern "C" void exit (int) throw ();' \
10524 'extern "C" void exit (int);' \
10525 'void exit (int);'
10526do
10527 cat >conftest.$ac_ext <<_ACEOF
10528#line $LINENO "configure"
10529/* confdefs.h. */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */
71e83a03 10534#include <stdlib.h>
6f628073 10535$ac_declaration
e6cc62c6
VS
10536int
10537main ()
10538{
10539exit (42);
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544rm -f conftest.$ac_objext
10545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 :
10557else
10558 echo "$as_me: failed program was:" >&5
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
10561continue
10562fi
10563rm -f conftest.$ac_objext conftest.$ac_ext
10564 cat >conftest.$ac_ext <<_ACEOF
10565#line $LINENO "configure"
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571$ac_declaration
10572int
10573main ()
10574{
10575exit (42);
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext
10581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 break
10593else
10594 echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597fi
10598rm -f conftest.$ac_objext conftest.$ac_ext
10599done
10600rm -f conftest*
10601if test -n "$ac_declaration"; then
10602 echo '#ifdef __cplusplus' >>confdefs.h
10603 echo $ac_declaration >>confdefs.h
10604 echo '#endif' >>confdefs.h
10605fi
10606
10607else
10608 echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611fi
10612rm -f conftest.$ac_objext conftest.$ac_ext
10613ac_ext=c
10614ac_cpp='$CPP $CPPFLAGS'
10615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10618
10619
e6cc62c6
VS
10620
10621ac_ext=c
10622ac_cpp='$CPP $CPPFLAGS'
10623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10627echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10628# On Suns, sometimes $CPP names a directory.
10629if test -n "$CPP" && test -d "$CPP"; then
10630 CPP=
10631fi
10632if test -z "$CPP"; then
e6cc62c6
VS
10633 if test "${ac_cv_prog_CPP+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636 # Double quotes because CPP needs to be expanded
10637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10638 do
10639 ac_preproc_ok=false
10640for ac_c_preproc_warn_flag in '' yes
10641do
10642 # Use a header file that comes with gcc, so configuring glibc
10643 # with a fresh cross-compiler works.
10644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10645 # <limits.h> exists even on freestanding compilers.
10f2d63a 10646 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10647 # not just through cpp. "Syntax error" is here to catch this case.
10648 cat >conftest.$ac_ext <<_ACEOF
10649#line $LINENO "configure"
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655#ifdef __STDC__
10656# include <limits.h>
10657#else
10658# include <assert.h>
10659#endif
10660 Syntax error
10661_ACEOF
10662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } >/dev/null; then
10670 if test -s conftest.err; then
10671 ac_cpp_err=$ac_c_preproc_warn_flag
10672 else
10673 ac_cpp_err=
10674 fi
10f2d63a 10675else
e6cc62c6
VS
10676 ac_cpp_err=yes
10677fi
10678if test -z "$ac_cpp_err"; then
a0b9e27f 10679 :
247f5006 10680else
e6cc62c6
VS
10681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 # Broken: fails on valid input.
10685continue
10686fi
10687rm -f conftest.err conftest.$ac_ext
10688
10689 # OK, works on sane cases. Now check whether non-existent headers
10690 # can be detected and how.
10691 cat >conftest.$ac_ext <<_ACEOF
10692#line $LINENO "configure"
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698#include <ac_nonexistent.h>
10699_ACEOF
10700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } >/dev/null; then
10708 if test -s conftest.err; then
10709 ac_cpp_err=$ac_c_preproc_warn_flag
10710 else
10711 ac_cpp_err=
10712 fi
10f2d63a 10713else
e6cc62c6 10714 ac_cpp_err=yes
579d8138 10715fi
e6cc62c6
VS
10716if test -z "$ac_cpp_err"; then
10717 # Broken: success on invalid input.
10718continue
10719else
10720 echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 # Passes both tests.
10724ac_preproc_ok=:
10725break
52127426 10726fi
e6cc62c6
VS
10727rm -f conftest.err conftest.$ac_ext
10728
10729done
10730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10731rm -f conftest.err conftest.$ac_ext
10732if $ac_preproc_ok; then
10733 break
8284b0c5 10734fi
e6cc62c6
VS
10735
10736 done
10737 ac_cv_prog_CPP=$CPP
10738
10739fi
10740 CPP=$ac_cv_prog_CPP
10741else
10742 ac_cv_prog_CPP=$CPP
10743fi
10744echo "$as_me:$LINENO: result: $CPP" >&5
10745echo "${ECHO_T}$CPP" >&6
10746ac_preproc_ok=false
10747for ac_c_preproc_warn_flag in '' yes
10748do
10749 # Use a header file that comes with gcc, so configuring glibc
10750 # with a fresh cross-compiler works.
10751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10752 # <limits.h> exists even on freestanding compilers.
10753 # On the NeXT, cc -E runs the code through the compiler's parser,
10754 # not just through cpp. "Syntax error" is here to catch this case.
10755 cat >conftest.$ac_ext <<_ACEOF
10756#line $LINENO "configure"
10757/* confdefs.h. */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h. */
10762#ifdef __STDC__
10763# include <limits.h>
10764#else
10765# include <assert.h>
10766#endif
10767 Syntax error
10768_ACEOF
10769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } >/dev/null; then
10777 if test -s conftest.err; then
10778 ac_cpp_err=$ac_c_preproc_warn_flag
10779 else
10780 ac_cpp_err=
10781 fi
10782else
10783 ac_cpp_err=yes
10784fi
10785if test -z "$ac_cpp_err"; then
10786 :
10787else
10788 echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 # Broken: fails on valid input.
10792continue
10793fi
10794rm -f conftest.err conftest.$ac_ext
10795
10796 # OK, works on sane cases. Now check whether non-existent headers
10797 # can be detected and how.
10798 cat >conftest.$ac_ext <<_ACEOF
10799#line $LINENO "configure"
10800/* confdefs.h. */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h. */
10805#include <ac_nonexistent.h>
10806_ACEOF
10807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 else
10818 ac_cpp_err=
10819 fi
10820else
10821 ac_cpp_err=yes
10822fi
10823if test -z "$ac_cpp_err"; then
10824 # Broken: success on invalid input.
10825continue
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 # Passes both tests.
10831ac_preproc_ok=:
10832break
a0b9e27f 10833fi
e6cc62c6
VS
10834rm -f conftest.err conftest.$ac_ext
10835
10836done
10837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10838rm -f conftest.err conftest.$ac_ext
10839if $ac_preproc_ok; then
10840 :
10841else
10842 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10843See \`config.log' for more details." >&5
10844echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10845See \`config.log' for more details." >&2;}
10846 { (exit 1); exit 1; }; }
10847fi
10848
10849ac_ext=c
10850ac_cpp='$CPP $CPPFLAGS'
10851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10853ac_compiler_gnu=$ac_cv_c_compiler_gnu
10854
10855
10856echo "$as_me:$LINENO: checking for egrep" >&5
10857echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10858if test "${ac_cv_prog_egrep+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10860else
e6cc62c6
VS
10861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10862 then ac_cv_prog_egrep='grep -E'
10863 else ac_cv_prog_egrep='egrep'
10864 fi
10f2d63a 10865fi
e6cc62c6
VS
10866echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10867echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10868 EGREP=$ac_cv_prog_egrep
10869
10f2d63a 10870
e6cc62c6
VS
10871if test $ac_cv_c_compiler_gnu = yes; then
10872 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10873echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10874if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10876else
10877 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10878 cat >conftest.$ac_ext <<_ACEOF
10879#line $LINENO "configure"
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10f2d63a
VZ
10885#include <sgtty.h>
10886Autoconf TIOCGETP
e6cc62c6 10887_ACEOF
10f2d63a 10888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10889 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10890 ac_cv_prog_gcc_traditional=yes
10891else
10f2d63a
VZ
10892 ac_cv_prog_gcc_traditional=no
10893fi
10894rm -f conftest*
10895
8284b0c5 10896
10f2d63a 10897 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10898 cat >conftest.$ac_ext <<_ACEOF
10899#line $LINENO "configure"
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
10f2d63a
VZ
10905#include <termio.h>
10906Autoconf TCGETA
e6cc62c6 10907_ACEOF
10f2d63a 10908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10909 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10910 ac_cv_prog_gcc_traditional=yes
10911fi
10912rm -f conftest*
10913
10914 fi
10915fi
e6cc62c6
VS
10916echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10917echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10918 if test $ac_cv_prog_gcc_traditional = yes; then
10919 CC="$CC -traditional"
10920 fi
10921fi
10922
8284b0c5
MB
10923
10924
e6cc62c6
VS
10925
10926ac_ext=cc
1e487827 10927ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10931
698dcdb6 10932
ec603395 10933CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10934ac_ext=cc
10935ac_cpp='$CXXCPP $CPPFLAGS'
10936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10939if test -n "$ac_tool_prefix"; then
10940 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10941 do
10942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10944echo "$as_me:$LINENO: checking for $ac_word" >&5
10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10946if test "${ac_cv_prog_CXX+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10948else
10949 if test -n "$CXX"; then
10950 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10951else
e6cc62c6
VS
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
10965
10f2d63a
VZ
10966fi
10967fi
e6cc62c6 10968CXX=$ac_cv_prog_CXX
10f2d63a 10969if test -n "$CXX"; then
e6cc62c6
VS
10970 echo "$as_me:$LINENO: result: $CXX" >&5
10971echo "${ECHO_T}$CXX" >&6
10f2d63a 10972else
e6cc62c6
VS
10973 echo "$as_me:$LINENO: result: no" >&5
10974echo "${ECHO_T}no" >&6
10f2d63a
VZ
10975fi
10976
e6cc62c6
VS
10977 test -n "$CXX" && break
10978 done
10979fi
10980if test -z "$CXX"; then
10981 ac_ct_CXX=$CXX
10982 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10983do
10984 # Extract the first word of "$ac_prog", so it can be a program name with args.
10985set dummy $ac_prog; ac_word=$2
10986echo "$as_me:$LINENO: checking for $ac_word" >&5
10987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10988if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 if test -n "$ac_ct_CXX"; then
10992 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001 ac_cv_prog_ac_ct_CXX="$ac_prog"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
10f2d63a 11006done
a0b9e27f 11007
8284b0c5 11008fi
a0b9e27f 11009fi
e6cc62c6
VS
11010ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11011if test -n "$ac_ct_CXX"; then
11012 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11013echo "${ECHO_T}$ac_ct_CXX" >&6
11014else
11015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
a0b9e27f 11017fi
10f2d63a 11018
e6cc62c6
VS
11019 test -n "$ac_ct_CXX" && break
11020done
11021test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11022
11023 CXX=$ac_ct_CXX
11024fi
11025
11026
11027# Provide some information about the compiler.
11028echo "$as_me:$LINENO:" \
11029 "checking for C++ compiler version" >&5
11030ac_compiler=`set X $ac_compile; echo $2`
11031{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11032 (eval $ac_compiler --version </dev/null >&5) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }
11036{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11037 (eval $ac_compiler -v </dev/null >&5) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }
11041{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11042 (eval $ac_compiler -V </dev/null >&5) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }
11046
11047echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11048echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11049if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052 cat >conftest.$ac_ext <<_ACEOF
11053#line $LINENO "configure"
11054/* confdefs.h. */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h. */
11059
11060int
11061main ()
11062{
11063#ifndef __GNUC__
11064 choke me
11065#endif
10f2d63a 11066
e6cc62c6
VS
11067 ;
11068 return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext
11072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -s conftest.$ac_objext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_compiler_gnu=yes
11084else
11085 echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088ac_compiler_gnu=no
11089fi
11090rm -f conftest.$ac_objext conftest.$ac_ext
11091ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11092
11093fi
11094echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11095echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11096GXX=`test $ac_compiler_gnu = yes && echo yes`
11097ac_test_CXXFLAGS=${CXXFLAGS+set}
11098ac_save_CXXFLAGS=$CXXFLAGS
11099CXXFLAGS="-g"
11100echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11101echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11102if test "${ac_cv_prog_cxx_g+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 cat >conftest.$ac_ext <<_ACEOF
11106#line $LINENO "configure"
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112
11113int
11114main ()
11115{
f09359cf 11116
e6cc62c6
VS
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121rm -f conftest.$ac_objext
11122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
10f2d63a
VZ
11133 ac_cv_prog_cxx_g=yes
11134else
e6cc62c6
VS
11135 echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11137
e6cc62c6 11138ac_cv_prog_cxx_g=no
10f2d63a 11139fi
e6cc62c6
VS
11140rm -f conftest.$ac_objext conftest.$ac_ext
11141fi
11142echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11144if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11145 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11146elif test $ac_cv_prog_cxx_g = yes; then
11147 if test "$GXX" = yes; then
10f2d63a
VZ
11148 CXXFLAGS="-g -O2"
11149 else
f09359cf 11150 CXXFLAGS="-g"
10f2d63a 11151 fi
5c0a20c3 11152else
f09359cf
VS
11153 if test "$GXX" = yes; then
11154 CXXFLAGS="-O2"
11155 else
11156 CXXFLAGS=
11157 fi
10f2d63a 11158fi
e6cc62c6 11159for ac_declaration in \
6f628073
VS
11160 ''\
11161 '#include <stdlib.h>' \
e6cc62c6
VS
11162 'extern "C" void std::exit (int) throw (); using std::exit;' \
11163 'extern "C" void std::exit (int); using std::exit;' \
11164 'extern "C" void exit (int) throw ();' \
11165 'extern "C" void exit (int);' \
11166 'void exit (int);'
11167do
11168 cat >conftest.$ac_ext <<_ACEOF
11169#line $LINENO "configure"
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
71e83a03 11175#include <stdlib.h>
6f628073 11176$ac_declaration
e6cc62c6
VS
11177int
11178main ()
11179{
11180exit (42);
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -s conftest.$ac_objext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 :
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202continue
11203fi
11204rm -f conftest.$ac_objext conftest.$ac_ext
11205 cat >conftest.$ac_ext <<_ACEOF
11206#line $LINENO "configure"
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212$ac_declaration
11213int
11214main ()
11215{
11216exit (42);
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221rm -f conftest.$ac_objext
11222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 break
11234else
11235 echo "$as_me: failed program was:" >&5
11236sed 's/^/| /' conftest.$ac_ext >&5
11237
11238fi
11239rm -f conftest.$ac_objext conftest.$ac_ext
11240done
11241rm -f conftest*
11242if test -n "$ac_declaration"; then
11243 echo '#ifdef __cplusplus' >>confdefs.h
11244 echo $ac_declaration >>confdefs.h
11245 echo '#endif' >>confdefs.h
11246fi
11247
11248ac_ext=cc
11249ac_cpp='$CXXCPP $CPPFLAGS'
11250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11253
11254
10f2d63a 11255ac_ext=c
10f2d63a 11256ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11260
11261
e6cc62c6
VS
11262if test -n "$ac_tool_prefix"; then
11263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11264set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11265echo "$as_me:$LINENO: checking for $ac_word" >&5
11266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11267if test "${ac_cv_prog_RANLIB+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11269else
11270 if test -n "$RANLIB"; then
11271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11272else
e6cc62c6
VS
11273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274for as_dir in $PATH
11275do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11280 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11283 fi
11284done
11285done
11286
10f2d63a
VZ
11287fi
11288fi
e6cc62c6 11289RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11290if test -n "$RANLIB"; then
e6cc62c6
VS
11291 echo "$as_me:$LINENO: result: $RANLIB" >&5
11292echo "${ECHO_T}$RANLIB" >&6
11293else
11294 echo "$as_me:$LINENO: result: no" >&5
11295echo "${ECHO_T}no" >&6
11296fi
11297
11298fi
11299if test -z "$ac_cv_prog_RANLIB"; then
11300 ac_ct_RANLIB=$RANLIB
11301 # Extract the first word of "ranlib", so it can be a program name with args.
11302set dummy ranlib; ac_word=$2
11303echo "$as_me:$LINENO: checking for $ac_word" >&5
11304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11307else
e6cc62c6
VS
11308 if test -n "$ac_ct_RANLIB"; then
11309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11310else
11311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_ac_ct_RANLIB="ranlib"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322done
11323done
11324
11325 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11326fi
11327fi
11328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11329if test -n "$ac_ct_RANLIB"; then
11330 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11331echo "${ECHO_T}$ac_ct_RANLIB" >&6
11332else
11333 echo "$as_me:$LINENO: result: no" >&5
11334echo "${ECHO_T}no" >&6
11335fi
11336
11337 RANLIB=$ac_ct_RANLIB
11338else
11339 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11340fi
11341
10f2d63a
VZ
11342
11343# Extract the first word of "ar", so it can be a program name with args.
11344set dummy ar; ac_word=$2
e6cc62c6
VS
11345echo "$as_me:$LINENO: checking for $ac_word" >&5
11346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11347if test "${ac_cv_prog_AR+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11349else
11350 if test -n "$AR"; then
11351 ac_cv_prog_AR="$AR" # Let the user override the test.
11352else
e6cc62c6
VS
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11360 ac_cv_prog_AR="ar"
11361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 break 2
11363 fi
11364done
11365done
11366
10f2d63a
VZ
11367fi
11368fi
e6cc62c6 11369AR=$ac_cv_prog_AR
10f2d63a 11370if test -n "$AR"; then
e6cc62c6
VS
11371 echo "$as_me:$LINENO: result: $AR" >&5
11372echo "${ECHO_T}$AR" >&6
10f2d63a 11373else
e6cc62c6
VS
11374 echo "$as_me:$LINENO: result: no" >&5
11375echo "${ECHO_T}no" >&6
10f2d63a
VZ
11376fi
11377
911740e7
VS
11378if test "x$AR" = "x" ; then
11379 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11380echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11381 { (exit 1); exit 1; }; }
11382fi
8284b0c5 11383
6054113a 11384# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11385# so one script is as good as another. But avoid the broken or
11386# incompatible versions:
11387# SysV /etc/install, /usr/sbin/install
11388# SunOS /usr/etc/install
11389# IRIX /sbin/install
11390# AIX /bin/install
e6cc62c6 11391# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11395# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11396echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11397echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11398if test -z "$INSTALL"; then
e6cc62c6
VS
11399if test "${ac_cv_path_install+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403for as_dir in $PATH
11404do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 # Account for people who put trailing slashes in PATH elements.
11408case $as_dir/ in
11409 ./ | .// | /cC/* | \
11410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11411 /usr/ucb/* ) ;;
11412 *)
11413 # OSF1 and SCO ODT 3.0 have their own names for install.
11414 # Don't use installbsd from OSF since it installs stuff as root
11415 # by default.
11416 for ac_prog in ginstall scoinst install; do
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11419 if test $ac_prog = install &&
11420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11421 # AIX install. It has an incompatible calling convention.
11422 :
11423 elif test $ac_prog = install &&
11424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11425 # program-specific install script used by HP pwplus--don't use.
11426 :
11427 else
11428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11429 break 3
11430 fi
11431 fi
10f2d63a 11432 done
e6cc62c6
VS
11433 done
11434 ;;
11435esac
11436done
11437
10f2d63a
VZ
11438
11439fi
11440 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11441 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11442 else
11443 # As a last resort, use the slow shell script. We don't cache a
11444 # path for INSTALL within a source directory, because that will
11445 # break other packages using the cache if that directory is
11446 # removed, or if the path is relative.
e6cc62c6 11447 INSTALL=$ac_install_sh
10f2d63a
VZ
11448 fi
11449fi
e6cc62c6
VS
11450echo "$as_me:$LINENO: result: $INSTALL" >&5
11451echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11452
11453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11454# It thinks the first close brace ends the variable substitution.
11455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11456
e6cc62c6 11457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11458
10f2d63a
VZ
11459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11460
8284b0c5 11461
1d1b75ac
VZ
11462case ${INSTALL} in
11463 /* ) # Absolute
11464 ;;
4f5a7f74
VZ
11465 ?:* ) # Drive letter, considered as absolute.
11466 ;;
3bd8fb5f 11467 *)
1d1b75ac
VZ
11468 INSTALL=`pwd`/${INSTALL} ;;
11469esac
11470
4f5a7f74
VZ
11471case ${host} in
11472 *-hp-hpux* )
11473 INSTALL_DIR="mkdir"
11474 ;;
11475
11476 *) INSTALL_DIR="$INSTALL -d"
11477 ;;
11478esac
11479
8284b0c5 11480
6054113a
GD
11481case "${host}" in
11482
b5853384 11483 powerpc-*-darwin* )
eb99ae0b
GD
11484 INSTALL_PROGRAM="cp -fp"
11485 INSTALL_DATA="cp -fp"
6054113a
GD
11486 ;;
11487 *)
11488 ;;
d6853540 11489esac
698dcdb6 11490
10f2d63a
VZ
11491# Extract the first word of "strip", so it can be a program name with args.
11492set dummy strip; ac_word=$2
e6cc62c6
VS
11493echo "$as_me:$LINENO: checking for $ac_word" >&5
11494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495if test "${ac_cv_prog_STRIP+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11497else
11498 if test -n "$STRIP"; then
11499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11500else
e6cc62c6
VS
11501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508 ac_cv_prog_STRIP="strip"
11509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
11513done
11514
10f2d63a
VZ
11515 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11516fi
11517fi
e6cc62c6 11518STRIP=$ac_cv_prog_STRIP
10f2d63a 11519if test -n "$STRIP"; then
e6cc62c6
VS
11520 echo "$as_me:$LINENO: result: $STRIP" >&5
11521echo "${ECHO_T}$STRIP" >&6
10f2d63a 11522else
e6cc62c6
VS
11523 echo "$as_me:$LINENO: result: no" >&5
11524echo "${ECHO_T}no" >&6
10f2d63a
VZ
11525fi
11526
5c6fa7d2 11527
e6cc62c6
VS
11528echo "$as_me:$LINENO: checking if make is GNU make" >&5
11529echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11530if test "${wx_cv_prog_makeisgnu+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11532else
e6cc62c6 11533
414eab6d 11534 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11535 egrep -s GNU > /dev/null); then
414eab6d
VZ
11536 wx_cv_prog_makeisgnu="yes"
11537 else
11538 wx_cv_prog_makeisgnu="no"
11539 fi
11540
11541fi
e6cc62c6
VS
11542echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11543echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11544
11545if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11546 IF_GNU_MAKE=""
11547else
11548 IF_GNU_MAKE="#"
11549fi
11550
8284b0c5
MB
11551
11552
414eab6d 11553if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11554echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11555echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11556if test "${wx_cv_prog_makevpath+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11558else
e6cc62c6 11559
10f2d63a
VZ
11560cat - << EOF > confMake
11561check : file
11562 cp \$? \$@
11563 cp \$? final_file
11564EOF
11565
11566if test ! -d sub ; then
11567 mkdir sub
11568fi
11569echo dummy > sub/file
f6bcfd97 11570${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11571RESULT=$?
11572rm -f sub/file check final_file confMake
11573rmdir sub
11574if test "$RESULT" = 0; then
04e7a216 11575 wx_cv_prog_makevpath="yes"
10f2d63a 11576else
04e7a216
VZ
11577 wx_cv_prog_makevpath="no"
11578fi
11579
11580fi
e6cc62c6
VS
11581echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11582echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11583
11584if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11585{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11586You need a make-utility that is able to use the variable
11587VPATH correctly.
11588If your version of make does not support VPATH correctly,
11589please install GNU-make (possibly as gmake), and start
11590configure with the following command:
11591export MAKE=gmake; ./configure for sh-type shells
11592setenv MAKE gmake; ./configure for csh-type shells
11593Also please do remember to use gmake in this case every time
11594you are trying to compile.
e6cc62c6
VS
11595" >&5
11596echo "$as_me: error:
11597You need a make-utility that is able to use the variable
11598VPATH correctly.
11599If your version of make does not support VPATH correctly,
11600please install GNU-make (possibly as gmake), and start
11601configure with the following command:
11602export MAKE=gmake; ./configure for sh-type shells
11603setenv MAKE gmake; ./configure for csh-type shells
11604Also please do remember to use gmake in this case every time
11605you are trying to compile.
11606" >&2;}
11607 { (exit 1); exit 1; }; }
11608fi fi
10f2d63a
VZ
11609for ac_prog in 'bison -y' byacc
11610do
e6cc62c6 11611 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11612set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11613echo "$as_me:$LINENO: checking for $ac_word" >&5
11614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615if test "${ac_cv_prog_YACC+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11617else
11618 if test -n "$YACC"; then
11619 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11620else
e6cc62c6
VS
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_YACC="$ac_prog"
11629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632done
11633done
11634
10f2d63a
VZ
11635fi
11636fi
e6cc62c6 11637YACC=$ac_cv_prog_YACC
10f2d63a 11638if test -n "$YACC"; then
e6cc62c6
VS
11639 echo "$as_me:$LINENO: result: $YACC" >&5
11640echo "${ECHO_T}$YACC" >&6
10f2d63a 11641else
e6cc62c6
VS
11642 echo "$as_me:$LINENO: result: no" >&5
11643echo "${ECHO_T}no" >&6
10f2d63a
VZ
11644fi
11645
e6cc62c6 11646 test -n "$YACC" && break
10f2d63a
VZ
11647done
11648test -n "$YACC" || YACC="yacc"
11649
8284b0c5 11650
e6cc62c6
VS
11651for ac_prog in flex lex
11652do
11653 # Extract the first word of "$ac_prog", so it can be a program name with args.
11654set dummy $ac_prog; ac_word=$2
11655echo "$as_me:$LINENO: checking for $ac_word" >&5
11656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11657if test "${ac_cv_prog_LEX+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11659else
11660 if test -n "$LEX"; then
11661 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11662else
e6cc62c6
VS
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_prog_LEX="$ac_prog"
11671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675done
11676
10f2d63a
VZ
11677fi
11678fi
e6cc62c6 11679LEX=$ac_cv_prog_LEX
10f2d63a 11680if test -n "$LEX"; then
e6cc62c6
VS
11681 echo "$as_me:$LINENO: result: $LEX" >&5
11682echo "${ECHO_T}$LEX" >&6
10f2d63a 11683else
e6cc62c6
VS
11684 echo "$as_me:$LINENO: result: no" >&5
11685echo "${ECHO_T}no" >&6
10f2d63a
VZ
11686fi
11687
e6cc62c6
VS
11688 test -n "$LEX" && break
11689done
11690test -n "$LEX" || LEX=":"
11691
10f2d63a
VZ
11692if test -z "$LEXLIB"
11693then
e6cc62c6
VS
11694 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11695echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11696if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 ac_check_lib_save_LIBS=$LIBS
11700LIBS="-lfl $LIBS"
11701cat >conftest.$ac_ext <<_ACEOF
11702#line $LINENO "configure"
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708
11709/* Override any gcc2 internal prototype to avoid an error. */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713/* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715char yywrap ();
11716int
11717main ()
11718{
11719yywrap ();
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext conftest$ac_exeext
11725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_cv_lib_fl_yywrap=yes
11737else
11738 echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741ac_cv_lib_fl_yywrap=no
11742fi
11743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744LIBS=$ac_check_lib_save_LIBS
11745fi
11746echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11747echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11748if test $ac_cv_lib_fl_yywrap = yes; then
11749 LEXLIB="-lfl"
11750else
11751 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11752echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11753if test "${ac_cv_lib_l_yywrap+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 ac_check_lib_save_LIBS=$LIBS
11757LIBS="-ll $LIBS"
11758cat >conftest.$ac_ext <<_ACEOF
11759#line $LINENO "configure"
11760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
11765
247f5006 11766/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11767#ifdef __cplusplus
11768extern "C"
11769#endif
247f5006 11770/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11771 builtin and then its argument prototype would still apply. */
11772char yywrap ();
11773int
11774main ()
11775{
11776yywrap ();
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781rm -f conftest.$ac_objext conftest$ac_exeext
11782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_cv_lib_l_yywrap=yes
11794else
11795 echo "$as_me: failed program was:" >&5
11796sed 's/^/| /' conftest.$ac_ext >&5
11797
11798ac_cv_lib_l_yywrap=no
11799fi
11800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801LIBS=$ac_check_lib_save_LIBS
11802fi
11803echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11804echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11805if test $ac_cv_lib_l_yywrap = yes; then
11806 LEXLIB="-ll"
11807fi
10f2d63a 11808
10f2d63a 11809fi
8284b0c5 11810
10f2d63a 11811fi
e6cc62c6
VS
11812
11813if test "x$LEX" != "x:"; then
11814 echo "$as_me:$LINENO: checking lex output file root" >&5
11815echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11816if test "${ac_cv_prog_lex_root+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 # The minimal lex program is just a single line: %%. But some broken lexes
11820# (Solaris, I think it was) want two %% lines, so accommodate them.
11821cat >conftest.l <<_ACEOF
11822%%
11823%%
11824_ACEOF
11825{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11826 (eval $LEX conftest.l) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }
11830if test -f lex.yy.c; then
11831 ac_cv_prog_lex_root=lex.yy
11832elif test -f lexyy.c; then
11833 ac_cv_prog_lex_root=lexyy
8284b0c5 11834else
e6cc62c6
VS
11835 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11836echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11837 { (exit 1); exit 1; }; }
10f2d63a 11838fi
a0b9e27f 11839fi
e6cc62c6
VS
11840echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11841echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11842rm -f conftest.l
11843LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11844
e6cc62c6
VS
11845echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11846echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11847if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11849else
e6cc62c6
VS
11850 # POSIX says lex can declare yytext either as a pointer or an array; the
11851# default is implementation-dependent. Figure out which it is, since
11852# not all implementations provide the %pointer and %array declarations.
11853ac_cv_prog_lex_yytext_pointer=no
11854echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11855ac_save_LIBS=$LIBS
11856LIBS="$LIBS $LEXLIB"
11857cat >conftest.$ac_ext <<_ACEOF
11858`cat $LEX_OUTPUT_ROOT.c`
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11873else
e6cc62c6
VS
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
10f2d63a 11877fi
e6cc62c6
VS
11878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879LIBS=$ac_save_LIBS
11880rm -f "${LEX_OUTPUT_ROOT}.c"
11881
11882fi
11883echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11884echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11885if test $ac_cv_prog_lex_yytext_pointer = yes; then
11886
11887cat >>confdefs.h <<\_ACEOF
11888#define YYTEXT_POINTER 1
11889_ACEOF
11890
a0b9e27f 11891fi
e6cc62c6
VS
11892
11893fi
11894
11895echo "$as_me:$LINENO: checking whether ln -s works" >&5
11896echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11897LN_S=$as_ln_s
11898if test "$LN_S" = "ln -s"; then
11899 echo "$as_me:$LINENO: result: yes" >&5
11900echo "${ECHO_T}yes" >&6
10f2d63a 11901else
e6cc62c6
VS
11902 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11903echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11904fi
5c6fa7d2 11905
247f5006 11906
2b5f62a0
VZ
11907case "${host}" in
11908 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11909 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11910 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11911echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11912if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11914else
e6cc62c6 11915 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11916LIBS="-lcExt $LIBS"
e6cc62c6
VS
11917cat >conftest.$ac_ext <<_ACEOF
11918#line $LINENO "configure"
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924
2b5f62a0 11925/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11926#ifdef __cplusplus
11927extern "C"
11928#endif
2b5f62a0 11929/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11930 builtin and then its argument prototype would still apply. */
11931char drand48 ();
11932int
11933main ()
11934{
11935drand48 ();
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_lib_cExt_drand48=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957ac_cv_lib_cExt_drand48=no
11958fi
11959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960LIBS=$ac_check_lib_save_LIBS
11961fi
11962echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11963echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11964if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11965 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11966fi
11967
11968 else
11969 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11970 fi
11971 ;;
11972esac
11973
a0b9e27f 11974
01aa5863
VS
11975if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11976 echo "$as_me:$LINENO: checking for strings.h" >&5
11977echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11978if test "${ac_cv_header_strings_h+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980else
11981 ac_cv_header_strings_h=no
11982fi
11983echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11984echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11985 if test "$ac_cv_header_strings_h" = "no"; then
11986 echo "$as_me:$LINENO: result: forced no into cache" >&5
11987echo "${ECHO_T}forced no into cache" >&6
11988 else
11989 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11990echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11991 fi
11992fi
11993echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11994echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11995if test "${ac_cv_header_stdc+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997else
11998 cat >conftest.$ac_ext <<_ACEOF
11999#line $LINENO "configure"
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005#include <stdlib.h>
12006#include <stdarg.h>
12007#include <string.h>
12008#include <float.h>
247f5006 12009
e6cc62c6
VS
12010int
12011main ()
12012{
90dd450c 12013
e6cc62c6
VS
12014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020 (eval $ac_compile) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -s conftest.$ac_objext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_header_stdc=yes
8284b0c5 12031else
e6cc62c6
VS
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035ac_cv_header_stdc=no
21d1c967 12036fi
e6cc62c6 12037rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12038
e6cc62c6
VS
12039if test $ac_cv_header_stdc = yes; then
12040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12041 cat >conftest.$ac_ext <<_ACEOF
12042#line $LINENO "configure"
12043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
12048#include <string.h>
12049
12050_ACEOF
12051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12052 $EGREP "memchr" >/dev/null 2>&1; then
12053 :
12054else
12055 ac_cv_header_stdc=no
3a922bb4 12056fi
a0b9e27f 12057rm -f conftest*
e6cc62c6 12058
90dd450c 12059fi
e6cc62c6
VS
12060
12061if test $ac_cv_header_stdc = yes; then
12062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12063 cat >conftest.$ac_ext <<_ACEOF
12064#line $LINENO "configure"
12065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
12070#include <stdlib.h>
12071
12072_ACEOF
12073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12074 $EGREP "free" >/dev/null 2>&1; then
12075 :
a0b9e27f 12076else
e6cc62c6 12077 ac_cv_header_stdc=no
21d1c967 12078fi
e6cc62c6 12079rm -f conftest*
247f5006
VZ
12080
12081fi
e6cc62c6
VS
12082
12083if test $ac_cv_header_stdc = yes; then
12084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12085 if test "$cross_compiling" = yes; then
12086 :
12087else
12088 cat >conftest.$ac_ext <<_ACEOF
12089#line $LINENO "configure"
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095#include <ctype.h>
12096#if ((' ' & 0x0FF) == 0x020)
12097# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12098# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12099#else
12100# define ISLOWER(c) \
12101 (('a' <= (c) && (c) <= 'i') \
12102 || ('j' <= (c) && (c) <= 'r') \
12103 || ('s' <= (c) && (c) <= 'z'))
12104# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12105#endif
12106
12107#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12108int
12109main ()
12110{
12111 int i;
12112 for (i = 0; i < 256; i++)
12113 if (XOR (islower (i), ISLOWER (i))
12114 || toupper (i) != TOUPPER (i))
12115 exit(2);
12116 exit (0);
12117}
12118_ACEOF
12119rm -f conftest$ac_exeext
12120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121 (eval $ac_link) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 :
a0b9e27f 12131else
e6cc62c6
VS
12132 echo "$as_me: program exited with status $ac_status" >&5
12133echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136( exit $ac_status )
12137ac_cv_header_stdc=no
12138fi
12139rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12140fi
12141fi
12142fi
12143echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12144echo "${ECHO_T}$ac_cv_header_stdc" >&6
12145if test $ac_cv_header_stdc = yes; then
12146
12147cat >>confdefs.h <<\_ACEOF
12148#define STDC_HEADERS 1
12149_ACEOF
12150
a0b9e27f 12151fi
e6cc62c6
VS
12152
12153# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12164 inttypes.h stdint.h unistd.h
12165do
12166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12167echo "$as_me:$LINENO: checking for $ac_header" >&5
12168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12169if eval "test \"\${$as_ac_Header+set}\" = set"; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171else
12172 cat >conftest.$ac_ext <<_ACEOF
12173#line $LINENO "configure"
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179$ac_includes_default
12180
12181#include <$ac_header>
12182_ACEOF
12183rm -f conftest.$ac_objext
12184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 eval "$as_ac_Header=yes"
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200eval "$as_ac_Header=no"
12201fi
12202rm -f conftest.$ac_objext conftest.$ac_ext
12203fi
12204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12206if test `eval echo '${'$as_ac_Header'}'` = yes; then
12207 cat >>confdefs.h <<_ACEOF
12208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12209_ACEOF
12210
12211fi
12212
a0b9e27f 12213done
90dd450c 12214
e6cc62c6
VS
12215
12216
12217for ac_header in strings.h
21d1c967 12218do
e6cc62c6
VS
12219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220if eval "test \"\${$as_ac_Header+set}\" = set"; then
12221 echo "$as_me:$LINENO: checking for $ac_header" >&5
12222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225fi
12226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12228else
12229 # Is the header compilable?
12230echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12232cat >conftest.$ac_ext <<_ACEOF
12233#line $LINENO "configure"
12234/* confdefs.h. */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h. */
12239$ac_includes_default
12240#include <$ac_header>
12241_ACEOF
12242rm -f conftest.$ac_objext
12243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -s conftest.$ac_objext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_header_compiler=yes
12255else
12256 echo "$as_me: failed program was:" >&5
12257sed 's/^/| /' conftest.$ac_ext >&5
12258
12259ac_header_compiler=no
12260fi
12261rm -f conftest.$ac_objext conftest.$ac_ext
12262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12263echo "${ECHO_T}$ac_header_compiler" >&6
12264
12265# Is the header present?
12266echo "$as_me:$LINENO: checking $ac_header presence" >&5
12267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12268cat >conftest.$ac_ext <<_ACEOF
12269#line $LINENO "configure"
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275#include <$ac_header>
12276_ACEOF
12277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null; then
12285 if test -s conftest.err; then
12286 ac_cpp_err=$ac_c_preproc_warn_flag
12287 else
12288 ac_cpp_err=
12289 fi
12290else
12291 ac_cpp_err=yes
12292fi
12293if test -z "$ac_cpp_err"; then
12294 ac_header_preproc=yes
12295else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_header_preproc=no
12300fi
12301rm -f conftest.err conftest.$ac_ext
12302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12303echo "${ECHO_T}$ac_header_preproc" >&6
12304
12305# So? What about this header?
12306case $ac_header_compiler:$ac_header_preproc in
12307 yes:no )
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12312 (
12313 cat <<\_ASBOX
12314## ------------------------------------ ##
12315## Report this to bug-autoconf@gnu.org. ##
12316## ------------------------------------ ##
12317_ASBOX
12318 ) |
12319 sed "s/^/$as_me: WARNING: /" >&2
12320 ;;
12321 no:yes )
12322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 ;;
12337esac
12338echo "$as_me:$LINENO: checking for $ac_header" >&5
12339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12340if eval "test \"\${$as_ac_Header+set}\" = set"; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12344fi
e6cc62c6
VS
12345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12347
a0b9e27f 12348fi
e6cc62c6
VS
12349if test `eval echo '${'$as_ac_Header'}'` = yes; then
12350 cat >>confdefs.h <<_ACEOF
12351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12352_ACEOF
12353
12354fi
12355
12356done
12357
e6cc62c6
VS
12358
12359
12360for ac_header in stdlib.h
12361do
12362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363if eval "test \"\${$as_ac_Header+set}\" = set"; then
12364 echo "$as_me:$LINENO: checking for $ac_header" >&5
12365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12366if eval "test \"\${$as_ac_Header+set}\" = set"; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368fi
12369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12371else
12372 # Is the header compilable?
12373echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12375cat >conftest.$ac_ext <<_ACEOF
12376#line $LINENO "configure"
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382$ac_includes_default
12383#include <$ac_header>
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_header_compiler=yes
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402ac_header_compiler=no
12403fi
12404rm -f conftest.$ac_objext conftest.$ac_ext
12405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406echo "${ECHO_T}$ac_header_compiler" >&6
12407
12408# Is the header present?
12409echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12411cat >conftest.$ac_ext <<_ACEOF
12412#line $LINENO "configure"
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
12418#include <$ac_header>
12419_ACEOF
12420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null; then
12428 if test -s conftest.err; then
12429 ac_cpp_err=$ac_c_preproc_warn_flag
12430 else
12431 ac_cpp_err=
12432 fi
12433else
12434 ac_cpp_err=yes
12435fi
12436if test -z "$ac_cpp_err"; then
12437 ac_header_preproc=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_header_preproc=no
12443fi
12444rm -f conftest.err conftest.$ac_ext
12445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446echo "${ECHO_T}$ac_header_preproc" >&6
12447
12448# So? What about this header?
12449case $ac_header_compiler:$ac_header_preproc in
12450 yes:no )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455 (
12456 cat <<\_ASBOX
12457## ------------------------------------ ##
12458## Report this to bug-autoconf@gnu.org. ##
12459## ------------------------------------ ##
12460_ASBOX
12461 ) |
12462 sed "s/^/$as_me: WARNING: /" >&2
12463 ;;
12464 no:yes )
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12471 (
12472 cat <<\_ASBOX
12473## ------------------------------------ ##
12474## Report this to bug-autoconf@gnu.org. ##
12475## ------------------------------------ ##
12476_ASBOX
12477 ) |
12478 sed "s/^/$as_me: WARNING: /" >&2
12479 ;;
12480esac
12481echo "$as_me:$LINENO: checking for $ac_header" >&5
12482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12485else
e6cc62c6
VS
12486 eval "$as_ac_Header=$ac_header_preproc"
12487fi
12488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490
21d1c967 12491fi
e6cc62c6
VS
12492if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493 cat >>confdefs.h <<_ACEOF
12494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495_ACEOF
12496
12497fi
12498
21d1c967 12499done
4f14bcd8 12500
5c6fa7d2 12501
e6cc62c6 12502for ac_header in malloc.h
21d1c967 12503do
e6cc62c6
VS
12504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12505if eval "test \"\${$as_ac_Header+set}\" = set"; then
12506 echo "$as_me:$LINENO: checking for $ac_header" >&5
12507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510fi
12511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12513else
12514 # Is the header compilable?
12515echo "$as_me:$LINENO: checking $ac_header usability" >&5
12516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12517cat >conftest.$ac_ext <<_ACEOF
12518#line $LINENO "configure"
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524$ac_includes_default
12525#include <$ac_header>
12526_ACEOF
12527rm -f conftest.$ac_objext
12528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529 (eval $ac_compile) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -s conftest.$ac_objext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_header_compiler=yes
12540else
12541 echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544ac_header_compiler=no
12545fi
12546rm -f conftest.$ac_objext conftest.$ac_ext
12547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548echo "${ECHO_T}$ac_header_compiler" >&6
12549
12550# Is the header present?
12551echo "$as_me:$LINENO: checking $ac_header presence" >&5
12552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12553cat >conftest.$ac_ext <<_ACEOF
12554#line $LINENO "configure"
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560#include <$ac_header>
12561_ACEOF
12562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } >/dev/null; then
12570 if test -s conftest.err; then
12571 ac_cpp_err=$ac_c_preproc_warn_flag
12572 else
12573 ac_cpp_err=
12574 fi
12575else
12576 ac_cpp_err=yes
12577fi
12578if test -z "$ac_cpp_err"; then
12579 ac_header_preproc=yes
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 ac_header_preproc=no
12585fi
12586rm -f conftest.err conftest.$ac_ext
12587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588echo "${ECHO_T}$ac_header_preproc" >&6
12589
12590# So? What about this header?
12591case $ac_header_compiler:$ac_header_preproc in
12592 yes:no )
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12597 (
12598 cat <<\_ASBOX
12599## ------------------------------------ ##
12600## Report this to bug-autoconf@gnu.org. ##
12601## ------------------------------------ ##
12602_ASBOX
12603 ) |
12604 sed "s/^/$as_me: WARNING: /" >&2
12605 ;;
12606 no:yes )
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12613 (
12614 cat <<\_ASBOX
12615## ------------------------------------ ##
12616## Report this to bug-autoconf@gnu.org. ##
12617## ------------------------------------ ##
12618_ASBOX
12619 ) |
12620 sed "s/^/$as_me: WARNING: /" >&2
12621 ;;
12622esac
12623echo "$as_me:$LINENO: checking for $ac_header" >&5
12624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12625if eval "test \"\${$as_ac_Header+set}\" = set"; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12629fi
e6cc62c6
VS
12630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12632
21d1c967 12633fi
e6cc62c6
VS
12634if test `eval echo '${'$as_ac_Header'}'` = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637_ACEOF
12638
12639fi
12640
12641done
12642
12643
12644for ac_header in unistd.h
12645do
12646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12647if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo "$as_me:$LINENO: checking for $ac_header" >&5
12649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652fi
12653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655else
12656 # Is the header compilable?
12657echo "$as_me:$LINENO: checking $ac_header usability" >&5
12658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12659cat >conftest.$ac_ext <<_ACEOF
12660#line $LINENO "configure"
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666$ac_includes_default
12667#include <$ac_header>
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_header_compiler=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686ac_header_compiler=no
12687fi
12688rm -f conftest.$ac_objext conftest.$ac_ext
12689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12690echo "${ECHO_T}$ac_header_compiler" >&6
12691
12692# Is the header present?
12693echo "$as_me:$LINENO: checking $ac_header presence" >&5
12694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12695cat >conftest.$ac_ext <<_ACEOF
12696#line $LINENO "configure"
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#include <$ac_header>
12703_ACEOF
12704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } >/dev/null; then
12712 if test -s conftest.err; then
12713 ac_cpp_err=$ac_c_preproc_warn_flag
12714 else
12715 ac_cpp_err=
12716 fi
a0b9e27f 12717else
e6cc62c6
VS
12718 ac_cpp_err=yes
12719fi
12720if test -z "$ac_cpp_err"; then
12721 ac_header_preproc=yes
12722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_header_preproc=no
12727fi
12728rm -f conftest.err conftest.$ac_ext
12729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730echo "${ECHO_T}$ac_header_preproc" >&6
12731
12732# So? What about this header?
12733case $ac_header_compiler:$ac_header_preproc in
12734 yes:no )
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12739 (
12740 cat <<\_ASBOX
12741## ------------------------------------ ##
12742## Report this to bug-autoconf@gnu.org. ##
12743## ------------------------------------ ##
12744_ASBOX
12745 ) |
12746 sed "s/^/$as_me: WARNING: /" >&2
12747 ;;
12748 no:yes )
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12755 (
12756 cat <<\_ASBOX
12757## ------------------------------------ ##
12758## Report this to bug-autoconf@gnu.org. ##
12759## ------------------------------------ ##
12760_ASBOX
12761 ) |
12762 sed "s/^/$as_me: WARNING: /" >&2
12763 ;;
12764esac
12765echo "$as_me:$LINENO: checking for $ac_header" >&5
12766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12767if eval "test \"\${$as_ac_Header+set}\" = set"; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770 eval "$as_ac_Header=$ac_header_preproc"
12771fi
12772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12774
12775fi
12776if test `eval echo '${'$as_ac_Header'}'` = yes; then
12777 cat >>confdefs.h <<_ACEOF
12778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12779_ACEOF
12780
d4158b5d 12781fi
e6cc62c6 12782
21d1c967 12783done
f6bcfd97 12784
e6cc62c6
VS
12785
12786for ac_header in wchar.h
12787do
12788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12789if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790 echo "$as_me:$LINENO: checking for $ac_header" >&5
12791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12792if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12794fi
12795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12797else
12798 # Is the header compilable?
12799echo "$as_me:$LINENO: checking $ac_header usability" >&5
12800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12801cat >conftest.$ac_ext <<_ACEOF
12802#line $LINENO "configure"
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808$ac_includes_default
12809#include <$ac_header>
12810_ACEOF
12811rm -f conftest.$ac_objext
12812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_header_compiler=yes
12824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828ac_header_compiler=no
12829fi
12830rm -f conftest.$ac_objext conftest.$ac_ext
12831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12832echo "${ECHO_T}$ac_header_compiler" >&6
12833
12834# Is the header present?
12835echo "$as_me:$LINENO: checking $ac_header presence" >&5
12836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12837cat >conftest.$ac_ext <<_ACEOF
12838#line $LINENO "configure"
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844#include <$ac_header>
12845_ACEOF
12846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_c_preproc_warn_flag
12856 else
12857 ac_cpp_err=
12858 fi
12859else
12860 ac_cpp_err=yes
12861fi
12862if test -z "$ac_cpp_err"; then
12863 ac_header_preproc=yes
12864else
12865 echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ac_header_preproc=no
12869fi
12870rm -f conftest.err conftest.$ac_ext
12871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872echo "${ECHO_T}$ac_header_preproc" >&6
12873
12874# So? What about this header?
12875case $ac_header_compiler:$ac_header_preproc in
12876 yes:no )
12877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12881 (
12882 cat <<\_ASBOX
12883## ------------------------------------ ##
12884## Report this to bug-autoconf@gnu.org. ##
12885## ------------------------------------ ##
12886_ASBOX
12887 ) |
12888 sed "s/^/$as_me: WARNING: /" >&2
12889 ;;
12890 no:yes )
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897 (
12898 cat <<\_ASBOX
12899## ------------------------------------ ##
12900## Report this to bug-autoconf@gnu.org. ##
12901## ------------------------------------ ##
12902_ASBOX
12903 ) |
12904 sed "s/^/$as_me: WARNING: /" >&2
12905 ;;
12906esac
12907echo "$as_me:$LINENO: checking for $ac_header" >&5
12908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912 eval "$as_ac_Header=$ac_header_preproc"
12913fi
12914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916
90dd450c 12917fi
e6cc62c6
VS
12918if test `eval echo '${'$as_ac_Header'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12921_ACEOF
12922
12923fi
12924
12925done
90dd450c 12926
e6cc62c6
VS
12927
12928if test "$ac_cv_header_wchar_h" != "yes"; then
12929
12930for ac_header in wcstr.h
21d1c967 12931do
e6cc62c6
VS
12932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12933if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934 echo "$as_me:$LINENO: checking for $ac_header" >&5
12935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938fi
12939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12941else
12942 # Is the header compilable?
12943echo "$as_me:$LINENO: checking $ac_header usability" >&5
12944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12945cat >conftest.$ac_ext <<_ACEOF
12946#line $LINENO "configure"
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952$ac_includes_default
12953#include <$ac_header>
12954_ACEOF
12955rm -f conftest.$ac_objext
12956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_header_compiler=yes
12968else
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972ac_header_compiler=no
12973fi
12974rm -f conftest.$ac_objext conftest.$ac_ext
12975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976echo "${ECHO_T}$ac_header_compiler" >&6
12977
12978# Is the header present?
12979echo "$as_me:$LINENO: checking $ac_header presence" >&5
12980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12981cat >conftest.$ac_ext <<_ACEOF
12982#line $LINENO "configure"
12983/* confdefs.h. */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h. */
12988#include <$ac_header>
12989_ACEOF
12990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } >/dev/null; then
12998 if test -s conftest.err; then
12999 ac_cpp_err=$ac_c_preproc_warn_flag
13000 else
13001 ac_cpp_err=
13002 fi
13003else
13004 ac_cpp_err=yes
13005fi
13006if test -z "$ac_cpp_err"; then
13007 ac_header_preproc=yes
13008else
13009 echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_header_preproc=no
13013fi
13014rm -f conftest.err conftest.$ac_ext
13015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016echo "${ECHO_T}$ac_header_preproc" >&6
13017
13018# So? What about this header?
13019case $ac_header_compiler:$ac_header_preproc in
13020 yes:no )
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13025 (
13026 cat <<\_ASBOX
13027## ------------------------------------ ##
13028## Report this to bug-autoconf@gnu.org. ##
13029## ------------------------------------ ##
13030_ASBOX
13031 ) |
13032 sed "s/^/$as_me: WARNING: /" >&2
13033 ;;
13034 no:yes )
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13041 (
13042 cat <<\_ASBOX
13043## ------------------------------------ ##
13044## Report this to bug-autoconf@gnu.org. ##
13045## ------------------------------------ ##
13046_ASBOX
13047 ) |
13048 sed "s/^/$as_me: WARNING: /" >&2
13049 ;;
13050esac
13051echo "$as_me:$LINENO: checking for $ac_header" >&5
13052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13053if eval "test \"\${$as_ac_Header+set}\" = set"; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
13056 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13057fi
e6cc62c6
VS
13058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13060
4f14bcd8 13061fi
e6cc62c6
VS
13062if test `eval echo '${'$as_ac_Header'}'` = yes; then
13063 cat >>confdefs.h <<_ACEOF
13064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13065_ACEOF
13066
13067fi
13068
13069done
13070
13071fi
13072
13073
13074for ac_header in fnmatch.h
13075do
13076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13077if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo "$as_me:$LINENO: checking for $ac_header" >&5
13079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13080if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082fi
13083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13085else
13086 # Is the header compilable?
13087echo "$as_me:$LINENO: checking $ac_header usability" >&5
13088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13089cat >conftest.$ac_ext <<_ACEOF
13090#line $LINENO "configure"
13091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
13096$ac_includes_default
13097#include <$ac_header>
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_header_compiler=yes
13112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116ac_header_compiler=no
13117fi
13118rm -f conftest.$ac_objext conftest.$ac_ext
13119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13120echo "${ECHO_T}$ac_header_compiler" >&6
13121
13122# Is the header present?
13123echo "$as_me:$LINENO: checking $ac_header presence" >&5
13124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13125cat >conftest.$ac_ext <<_ACEOF
13126#line $LINENO "configure"
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132#include <$ac_header>
13133_ACEOF
13134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } >/dev/null; then
13142 if test -s conftest.err; then
13143 ac_cpp_err=$ac_c_preproc_warn_flag
13144 else
13145 ac_cpp_err=
13146 fi
13147else
13148 ac_cpp_err=yes
13149fi
13150if test -z "$ac_cpp_err"; then
13151 ac_header_preproc=yes
13152else
13153 echo "$as_me: failed program was:" >&5
13154sed 's/^/| /' conftest.$ac_ext >&5
13155
13156 ac_header_preproc=no
13157fi
13158rm -f conftest.err conftest.$ac_ext
13159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13160echo "${ECHO_T}$ac_header_preproc" >&6
13161
13162# So? What about this header?
13163case $ac_header_compiler:$ac_header_preproc in
13164 yes:no )
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13169 (
13170 cat <<\_ASBOX
13171## ------------------------------------ ##
13172## Report this to bug-autoconf@gnu.org. ##
13173## ------------------------------------ ##
13174_ASBOX
13175 ) |
13176 sed "s/^/$as_me: WARNING: /" >&2
13177 ;;
13178 no:yes )
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13185 (
13186 cat <<\_ASBOX
13187## ------------------------------------ ##
13188## Report this to bug-autoconf@gnu.org. ##
13189## ------------------------------------ ##
13190_ASBOX
13191 ) |
13192 sed "s/^/$as_me: WARNING: /" >&2
13193 ;;
13194esac
13195echo "$as_me:$LINENO: checking for $ac_header" >&5
13196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13197if eval "test \"\${$as_ac_Header+set}\" = set"; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13199else
e6cc62c6
VS
13200 eval "$as_ac_Header=$ac_header_preproc"
13201fi
13202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13204
21d1c967 13205fi
e6cc62c6
VS
13206if test `eval echo '${'$as_ac_Header'}'` = yes; then
13207 cat >>confdefs.h <<_ACEOF
13208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13209_ACEOF
13210
13211fi
13212
21d1c967 13213done
90dd450c 13214
5c6fa7d2 13215
a0b9e27f 13216if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13217
13218for ac_func in fnmatch
21d1c967 13219do
e6cc62c6
VS
13220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221echo "$as_me:$LINENO: checking for $ac_func" >&5
13222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13223if eval "test \"\${$as_ac_var+set}\" = set"; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
13226 cat >conftest.$ac_ext <<_ACEOF
13227#line $LINENO "configure"
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
a0b9e27f 13233/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13234 which can conflict with char $ac_func (); below.
13235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13236 <limits.h> exists even on freestanding compilers. */
13237#ifdef __STDC__
13238# include <limits.h>
13239#else
13240# include <assert.h>
13241#endif
a0b9e27f 13242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13243#ifdef __cplusplus
13244extern "C"
13245{
13246#endif
a0b9e27f 13247/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13248 builtin and then its argument prototype would still apply. */
13249char $ac_func ();
a0b9e27f
MB
13250/* The GNU C library defines this for functions which it implements
13251 to always fail with ENOSYS. Some functions are actually named
13252 something starting with __ and the normal name is an alias. */
13253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254choke me
13255#else
e6cc62c6
VS
13256char (*f) () = $ac_func;
13257#endif
13258#ifdef __cplusplus
13259}
a0b9e27f
MB
13260#endif
13261
e6cc62c6
VS
13262int
13263main ()
13264{
13265return f != $ac_func;
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270rm -f conftest.$ac_objext conftest$ac_exeext
13271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272 (eval $ac_link) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 eval "$as_ac_var=yes"
13283else
13284 echo "$as_me: failed program was:" >&5
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
13287eval "$as_ac_var=no"
13288fi
13289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13290fi
13291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13293if test `eval echo '${'$as_ac_var'}'` = yes; then
13294 cat >>confdefs.h <<_ACEOF
13295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13296_ACEOF
32832908 13297
21d1c967
GD
13298fi
13299done
90dd450c 13300
a0b9e27f 13301fi
90dd450c 13302
e6cc62c6
VS
13303
13304for ac_header in langinfo.h
21d1c967 13305do
e6cc62c6
VS
13306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307if eval "test \"\${$as_ac_Header+set}\" = set"; then
13308 echo "$as_me:$LINENO: checking for $ac_header" >&5
13309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13310if eval "test \"\${$as_ac_Header+set}\" = set"; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312fi
13313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315else
13316 # Is the header compilable?
13317echo "$as_me:$LINENO: checking $ac_header usability" >&5
13318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13319cat >conftest.$ac_ext <<_ACEOF
13320#line $LINENO "configure"
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h. */
13326$ac_includes_default
13327#include <$ac_header>
13328_ACEOF
13329rm -f conftest.$ac_objext
13330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -s conftest.$ac_objext'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_header_compiler=yes
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346ac_header_compiler=no
13347fi
13348rm -f conftest.$ac_objext conftest.$ac_ext
13349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350echo "${ECHO_T}$ac_header_compiler" >&6
13351
13352# Is the header present?
13353echo "$as_me:$LINENO: checking $ac_header presence" >&5
13354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13355cat >conftest.$ac_ext <<_ACEOF
13356#line $LINENO "configure"
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362#include <$ac_header>
13363_ACEOF
13364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } >/dev/null; then
13372 if test -s conftest.err; then
13373 ac_cpp_err=$ac_c_preproc_warn_flag
13374 else
13375 ac_cpp_err=
13376 fi
13377else
13378 ac_cpp_err=yes
13379fi
13380if test -z "$ac_cpp_err"; then
13381 ac_header_preproc=yes
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 ac_header_preproc=no
13387fi
13388rm -f conftest.err conftest.$ac_ext
13389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390echo "${ECHO_T}$ac_header_preproc" >&6
13391
13392# So? What about this header?
13393case $ac_header_compiler:$ac_header_preproc in
13394 yes:no )
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13399 (
13400 cat <<\_ASBOX
13401## ------------------------------------ ##
13402## Report this to bug-autoconf@gnu.org. ##
13403## ------------------------------------ ##
13404_ASBOX
13405 ) |
13406 sed "s/^/$as_me: WARNING: /" >&2
13407 ;;
13408 no:yes )
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 (
13416 cat <<\_ASBOX
13417## ------------------------------------ ##
13418## Report this to bug-autoconf@gnu.org. ##
13419## ------------------------------------ ##
13420_ASBOX
13421 ) |
13422 sed "s/^/$as_me: WARNING: /" >&2
13423 ;;
13424esac
13425echo "$as_me:$LINENO: checking for $ac_header" >&5
13426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13427if eval "test \"\${$as_ac_Header+set}\" = set"; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429else
13430 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13431fi
e6cc62c6
VS
13432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13434
4f14bcd8 13435fi
e6cc62c6
VS
13436if test `eval echo '${'$as_ac_Header'}'` = yes; then
13437 cat >>confdefs.h <<_ACEOF
13438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13439_ACEOF
13440
21d1c967 13441fi
e6cc62c6 13442
21d1c967 13443done
3a922bb4 13444
8284b0c5 13445
4f5a7f74
VZ
13446case "${host}" in
13447 *-pc-os2_emx | *-pc-os2-emx )
13448 if test $ac_cv_header_langinfo_h = "yes"; then
13449 LIBS="$LIBS -lintl"
13450 fi
13451 ;;
13452esac
1542ea39 13453
a0b9e27f
MB
13454if test "$wxUSE_GUI" = "yes"; then
13455 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 13456
eb69fda5 13457for ac_header in X11/Xlib.h
21d1c967 13458do
e6cc62c6
VS
13459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13460if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461 echo "$as_me:$LINENO: checking for $ac_header" >&5
13462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465fi
13466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468else
13469 # Is the header compilable?
13470echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13472cat >conftest.$ac_ext <<_ACEOF
13473#line $LINENO "configure"
13474/* confdefs.h. */
13475_ACEOF
13476cat confdefs.h >>conftest.$ac_ext
13477cat >>conftest.$ac_ext <<_ACEOF
13478/* end confdefs.h. */
13479$ac_includes_default
13480#include <$ac_header>
13481_ACEOF
13482rm -f conftest.$ac_objext
13483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484 (eval $ac_compile) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499ac_header_compiler=no
13500fi
13501rm -f conftest.$ac_objext conftest.$ac_ext
13502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503echo "${ECHO_T}$ac_header_compiler" >&6
13504
13505# Is the header present?
13506echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508cat >conftest.$ac_ext <<_ACEOF
13509#line $LINENO "configure"
13510/* confdefs.h. */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h. */
13515#include <$ac_header>
13516_ACEOF
13517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } >/dev/null; then
13525 if test -s conftest.err; then
13526 ac_cpp_err=$ac_c_preproc_warn_flag
13527 else
13528 ac_cpp_err=
13529 fi
13530else
13531 ac_cpp_err=yes
13532fi
13533if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535else
13536 echo "$as_me: failed program was:" >&5
13537sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_header_preproc=no
13540fi
13541rm -f conftest.err conftest.$ac_ext
13542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543echo "${ECHO_T}$ac_header_preproc" >&6
13544
13545# So? What about this header?
13546case $ac_header_compiler:$ac_header_preproc in
13547 yes:no )
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13552 (
13553 cat <<\_ASBOX
13554## ------------------------------------ ##
13555## Report this to bug-autoconf@gnu.org. ##
13556## ------------------------------------ ##
13557_ASBOX
13558 ) |
13559 sed "s/^/$as_me: WARNING: /" >&2
13560 ;;
13561 no:yes )
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13568 (
13569 cat <<\_ASBOX
13570## ------------------------------------ ##
13571## Report this to bug-autoconf@gnu.org. ##
13572## ------------------------------------ ##
13573_ASBOX
13574 ) |
13575 sed "s/^/$as_me: WARNING: /" >&2
13576 ;;
13577esac
13578echo "$as_me:$LINENO: checking for $ac_header" >&5
13579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13580if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13584fi
e6cc62c6
VS
13585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13587
90dd450c 13588fi
e6cc62c6
VS
13589if test `eval echo '${'$as_ac_Header'}'` = yes; then
13590 cat >>confdefs.h <<_ACEOF
13591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13592_ACEOF
13593
247f5006 13594fi
e6cc62c6 13595
eb69fda5
VS
13596done
13597
13598
13599for ac_header in X11/XKBlib.h
13600do
13601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13602echo "$as_me:$LINENO: checking for $ac_header" >&5
13603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13604if eval "test \"\${$as_ac_Header+set}\" = set"; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 cat >conftest.$ac_ext <<_ACEOF
13608#line $LINENO "configure"
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614
13615 #if HAVE_X11_XLIB_H
13616 #include <X11/Xlib.h>
13617 #endif
13618
13619
13620#include <$ac_header>
13621_ACEOF
13622rm -f conftest.$ac_objext
13623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -s conftest.$ac_objext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 eval "$as_ac_Header=yes"
13635else
13636 echo "$as_me: failed program was:" >&5
13637sed 's/^/| /' conftest.$ac_ext >&5
13638
13639eval "$as_ac_Header=no"
13640fi
13641rm -f conftest.$ac_objext conftest.$ac_ext
13642fi
13643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13645if test `eval echo '${'$as_ac_Header'}'` = yes; then
13646 cat >>confdefs.h <<_ACEOF
13647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13648_ACEOF
13649
13650fi
13651
247f5006
VZ
13652done
13653
a0b9e27f
MB
13654 fi
13655fi
247f5006 13656
247f5006 13657
e6cc62c6
VS
13658echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13659echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13660if test "${ac_cv_c_const+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662else
13663 cat >conftest.$ac_ext <<_ACEOF
13664#line $LINENO "configure"
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
13669/* end confdefs.h. */
13670
13671int
13672main ()
13673{
13674/* FIXME: Include the comments suggested by Paul. */
13675#ifndef __cplusplus
13676 /* Ultrix mips cc rejects this. */
13677 typedef int charset[2];
13678 const charset x;
13679 /* SunOS 4.1.1 cc rejects this. */
13680 char const *const *ccp;
13681 char **p;
13682 /* NEC SVR4.0.2 mips cc rejects this. */
13683 struct point {int x, y;};
13684 static struct point const zero = {0,0};
13685 /* AIX XL C 1.02.0.0 rejects this.
13686 It does not let you subtract one const X* pointer from another in
13687 an arm of an if-expression whose if-part is not a constant
13688 expression */
13689 const char *g = "string";
13690 ccp = &g + (g ? g-g : 0);
13691 /* HPUX 7.0 cc rejects these. */
13692 ++ccp;
13693 p = (char**) ccp;
13694 ccp = (char const *const *) p;
13695 { /* SCO 3.2v4 cc rejects this. */
13696 char *t;
13697 char const *s = 0 ? (char *) 0 : (char const *) 0;
13698
13699 *t++ = 0;
13700 }
13701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13702 int x[] = {25, 17};
13703 const int *foo = &x[0];
13704 ++foo;
13705 }
13706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13707 typedef const int *iptr;
13708 iptr p = 0;
13709 ++p;
13710 }
13711 { /* AIX XL C 1.02.0.0 rejects this saying
13712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13713 struct s { int j; const int *ap[3]; };
13714 struct s *b; b->j = 5;
13715 }
13716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13717 const int foo = 10;
13718 }
13719#endif
13720
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext
13726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
a0b9e27f 13737 ac_cv_c_const=yes
247f5006 13738else
e6cc62c6
VS
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742ac_cv_c_const=no
247f5006 13743fi
e6cc62c6 13744rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13745fi
e6cc62c6
VS
13746echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13747echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13748if test $ac_cv_c_const = no; then
e6cc62c6
VS
13749
13750cat >>confdefs.h <<\_ACEOF
13751#define const
13752_ACEOF
10f2d63a 13753
90dd450c 13754fi
81809c07 13755
e6cc62c6
VS
13756echo "$as_me:$LINENO: checking for inline" >&5
13757echo $ECHO_N "checking for inline... $ECHO_C" >&6
13758if test "${ac_cv_c_inline+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13760else
a0b9e27f
MB
13761 ac_cv_c_inline=no
13762for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13763 cat >conftest.$ac_ext <<_ACEOF
13764#line $LINENO "configure"
13765/* confdefs.h. */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
13769/* end confdefs.h. */
13770#ifndef __cplusplus
13771typedef int foo_t;
13772static $ac_kw foo_t static_foo () {return 0; }
13773$ac_kw foo_t foo () {return 0; }
13774#endif
a0b9e27f 13775
e6cc62c6
VS
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
a0b9e27f 13789 ac_cv_c_inline=$ac_kw; break
247f5006 13790else
e6cc62c6
VS
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
247f5006 13794fi
e6cc62c6 13795rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13796done
247f5006
VZ
13797
13798fi
e6cc62c6
VS
13799echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13800echo "${ECHO_T}$ac_cv_c_inline" >&6
13801case $ac_cv_c_inline in
a0b9e27f 13802 inline | yes) ;;
e6cc62c6
VS
13803 no)
13804cat >>confdefs.h <<\_ACEOF
13805#define inline
13806_ACEOF
a0b9e27f 13807 ;;
e6cc62c6 13808 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13809#define inline $ac_cv_c_inline
e6cc62c6 13810_ACEOF
a0b9e27f
MB
13811 ;;
13812esac
247f5006 13813
247f5006 13814
e6cc62c6
VS
13815echo "$as_me:$LINENO: checking for char" >&5
13816echo $ECHO_N "checking for char... $ECHO_C" >&6
13817if test "${ac_cv_type_char+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820 cat >conftest.$ac_ext <<_ACEOF
13821#line $LINENO "configure"
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827$ac_includes_default
13828int
13829main ()
13830{
13831if ((char *) 0)
13832 return 0;
13833if (sizeof (char))
13834 return 0;
13835 ;
13836 return 0;
13837}
13838_ACEOF
13839rm -f conftest.$ac_objext
13840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_cv_type_char=yes
13852else
13853 echo "$as_me: failed program was:" >&5
13854sed 's/^/| /' conftest.$ac_ext >&5
13855
13856ac_cv_type_char=no
13857fi
13858rm -f conftest.$ac_objext conftest.$ac_ext
13859fi
13860echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13861echo "${ECHO_T}$ac_cv_type_char" >&6
13862
13863echo "$as_me:$LINENO: checking size of char" >&5
13864echo $ECHO_N "checking size of char... $ECHO_C" >&6
13865if test "${ac_cv_sizeof_char+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 if test "$ac_cv_type_char" = yes; then
13869 # The cast to unsigned long works around a bug in the HP C Compiler
13870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13872 # This bug is HP SR number 8606223364.
a0b9e27f 13873 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13874 # Depending upon the size, compute the lo and hi bounds.
13875cat >conftest.$ac_ext <<_ACEOF
13876#line $LINENO "configure"
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882$ac_includes_default
13883int
13884main ()
13885{
13886static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13887test_array [0] = 0
13888
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -s conftest.$ac_objext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_lo=0 ac_mid=0
13906 while :; do
13907 cat >conftest.$ac_ext <<_ACEOF
13908#line $LINENO "configure"
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914$ac_includes_default
13915int
13916main ()
13917{
13918static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13919test_array [0] = 0
13920
13921 ;
13922 return 0;
13923}
13924_ACEOF
13925rm -f conftest.$ac_objext
13926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927 (eval $ac_compile) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
13931 { ac_try='test -s conftest.$ac_objext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_hi=$ac_mid; break
13938else
13939 echo "$as_me: failed program was:" >&5
13940sed 's/^/| /' conftest.$ac_ext >&5
13941
13942ac_lo=`expr $ac_mid + 1`
13943 if test $ac_lo -le $ac_mid; then
13944 ac_lo= ac_hi=
13945 break
13946 fi
13947 ac_mid=`expr 2 '*' $ac_mid + 1`
13948fi
13949rm -f conftest.$ac_objext conftest.$ac_ext
13950 done
a0b9e27f 13951else
e6cc62c6
VS
13952 echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
13955cat >conftest.$ac_ext <<_ACEOF
13956#line $LINENO "configure"
13957/* confdefs.h. */
13958_ACEOF
13959cat confdefs.h >>conftest.$ac_ext
13960cat >>conftest.$ac_ext <<_ACEOF
13961/* end confdefs.h. */
13962$ac_includes_default
13963int
13964main ()
13965{
13966static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13967test_array [0] = 0
13968
13969 ;
13970 return 0;
13971}
13972_ACEOF
13973rm -f conftest.$ac_objext
13974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975 (eval $ac_compile) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
13979 { ac_try='test -s conftest.$ac_objext'
13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981 (eval $ac_try) 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 ac_hi=-1 ac_mid=-1
13986 while :; do
13987 cat >conftest.$ac_ext <<_ACEOF
13988#line $LINENO "configure"
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994$ac_includes_default
13995int
13996main ()
13997{
13998static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13999test_array [0] = 0
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext
14006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007 (eval $ac_compile) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -s conftest.$ac_objext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_lo=$ac_mid; break
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
14022ac_hi=`expr '(' $ac_mid ')' - 1`
14023 if test $ac_mid -le $ac_hi; then
14024 ac_lo= ac_hi=
14025 break
14026 fi
14027 ac_mid=`expr 2 '*' $ac_mid`
14028fi
14029rm -f conftest.$ac_objext conftest.$ac_ext
14030 done
14031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035ac_lo= ac_hi=
14036fi
14037rm -f conftest.$ac_objext conftest.$ac_ext
14038fi
14039rm -f conftest.$ac_objext conftest.$ac_ext
14040# Binary search between lo and hi bounds.
14041while test "x$ac_lo" != "x$ac_hi"; do
14042 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14043 cat >conftest.$ac_ext <<_ACEOF
14044#line $LINENO "configure"
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050$ac_includes_default
14051int
14052main ()
14053{
14054static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14055test_array [0] = 0
14056
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
14062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_hi=$ac_mid
14074else
14075 echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078ac_lo=`expr '(' $ac_mid ')' + 1`
14079fi
14080rm -f conftest.$ac_objext conftest.$ac_ext
14081done
14082case $ac_lo in
14083?*) ac_cv_sizeof_char=$ac_lo;;
14084'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14085See \`config.log' for more details." >&5
14086echo "$as_me: error: cannot compute sizeof (char), 77
14087See \`config.log' for more details." >&2;}
14088 { (exit 1); exit 1; }; } ;;
14089esac
14090else
14091 if test "$cross_compiling" = yes; then
14092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14093See \`config.log' for more details." >&5
14094echo "$as_me: error: cannot run test program while cross compiling
14095See \`config.log' for more details." >&2;}
14096 { (exit 1); exit 1; }; }
14097else
14098 cat >conftest.$ac_ext <<_ACEOF
14099#line $LINENO "configure"
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105$ac_includes_default
14106long longval () { return (long) (sizeof (char)); }
14107unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14108#include <stdio.h>
e6cc62c6
VS
14109#include <stdlib.h>
14110int
14111main ()
247f5006 14112{
e6cc62c6
VS
14113
14114 FILE *f = fopen ("conftest.val", "w");
14115 if (! f)
14116 exit (1);
14117 if (((long) (sizeof (char))) < 0)
14118 {
14119 long i = longval ();
14120 if (i != ((long) (sizeof (char))))
14121 exit (1);
14122 fprintf (f, "%ld\n", i);
14123 }
14124 else
14125 {
14126 unsigned long i = ulongval ();
14127 if (i != ((long) (sizeof (char))))
14128 exit (1);
14129 fprintf (f, "%lu\n", i);
14130 }
14131 exit (ferror (f) || fclose (f) != 0);
14132
14133 ;
14134 return 0;
52127426 14135}
e6cc62c6
VS
14136_ACEOF
14137rm -f conftest$ac_exeext
14138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 (eval $ac_link) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 ac_cv_sizeof_char=`cat conftest.val`
14149else
14150 echo "$as_me: program exited with status $ac_status" >&5
14151echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154( exit $ac_status )
14155{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14156See \`config.log' for more details." >&5
14157echo "$as_me: error: cannot compute sizeof (char), 77
14158See \`config.log' for more details." >&2;}
14159 { (exit 1); exit 1; }; }
14160fi
14161rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14162fi
14163fi
14164rm -f conftest.val
247f5006 14165else
a0b9e27f 14166 ac_cv_sizeof_char=0
247f5006 14167fi
247f5006 14168fi
e6cc62c6
VS
14169echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14170echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14171cat >>confdefs.h <<_ACEOF
14172#define SIZEOF_CHAR $ac_cv_sizeof_char
14173_ACEOF
14174
14175
14176echo "$as_me:$LINENO: checking for short" >&5
14177echo $ECHO_N "checking for short... $ECHO_C" >&6
14178if test "${ac_cv_type_short+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180else
14181 cat >conftest.$ac_ext <<_ACEOF
14182#line $LINENO "configure"
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
14187/* end confdefs.h. */
14188$ac_includes_default
14189int
14190main ()
14191{
14192if ((short *) 0)
14193 return 0;
14194if (sizeof (short))
14195 return 0;
14196 ;
14197 return 0;
14198}
14199_ACEOF
14200rm -f conftest.$ac_objext
14201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202 (eval $ac_compile) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_cv_type_short=yes
14213else
14214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217ac_cv_type_short=no
14218fi
14219rm -f conftest.$ac_objext conftest.$ac_ext
14220fi
14221echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14222echo "${ECHO_T}$ac_cv_type_short" >&6
14223
14224echo "$as_me:$LINENO: checking size of short" >&5
14225echo $ECHO_N "checking size of short... $ECHO_C" >&6
14226if test "${ac_cv_sizeof_short+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228else
14229 if test "$ac_cv_type_short" = yes; then
14230 # The cast to unsigned long works around a bug in the HP C Compiler
14231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14233 # This bug is HP SR number 8606223364.
14234 if test "$cross_compiling" = yes; then
14235 # Depending upon the size, compute the lo and hi bounds.
14236cat >conftest.$ac_ext <<_ACEOF
14237#line $LINENO "configure"
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
14242/* end confdefs.h. */
14243$ac_includes_default
14244int
14245main ()
14246{
14247static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14248test_array [0] = 0
247f5006 14249
e6cc62c6
VS
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254rm -f conftest.$ac_objext
14255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_lo=0 ac_mid=0
14267 while :; do
14268 cat >conftest.$ac_ext <<_ACEOF
14269#line $LINENO "configure"
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
14275$ac_includes_default
14276int
14277main ()
14278{
14279static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14280test_array [0] = 0
14281
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286rm -f conftest.$ac_objext
14287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14298 ac_hi=$ac_mid; break
14299else
14300 echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
14303ac_lo=`expr $ac_mid + 1`
14304 if test $ac_lo -le $ac_mid; then
14305 ac_lo= ac_hi=
14306 break
14307 fi
14308 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14309fi
e6cc62c6
VS
14310rm -f conftest.$ac_objext conftest.$ac_ext
14311 done
14312else
14313 echo "$as_me: failed program was:" >&5
14314sed 's/^/| /' conftest.$ac_ext >&5
14315
14316cat >conftest.$ac_ext <<_ACEOF
14317#line $LINENO "configure"
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323$ac_includes_default
14324int
14325main ()
14326{
14327static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14328test_array [0] = 0
247f5006 14329
e6cc62c6
VS
14330 ;
14331 return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext
14335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336 (eval $ac_compile) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -s conftest.$ac_objext'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_hi=-1 ac_mid=-1
14347 while :; do
14348 cat >conftest.$ac_ext <<_ACEOF
14349#line $LINENO "configure"
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355$ac_includes_default
14356int
14357main ()
14358{
14359static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14360test_array [0] = 0
247f5006 14361
e6cc62c6
VS
14362 ;
14363 return 0;
14364}
14365_ACEOF
14366rm -f conftest.$ac_objext
14367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 ac_lo=$ac_mid; break
14379else
14380 echo "$as_me: failed program was:" >&5
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
14383ac_hi=`expr '(' $ac_mid ')' - 1`
14384 if test $ac_mid -le $ac_hi; then
14385 ac_lo= ac_hi=
14386 break
14387 fi
14388 ac_mid=`expr 2 '*' $ac_mid`
14389fi
14390rm -f conftest.$ac_objext conftest.$ac_ext
14391 done
247f5006 14392else
e6cc62c6
VS
14393 echo "$as_me: failed program was:" >&5
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
14396ac_lo= ac_hi=
14397fi
14398rm -f conftest.$ac_objext conftest.$ac_ext
14399fi
14400rm -f conftest.$ac_objext conftest.$ac_ext
14401# Binary search between lo and hi bounds.
14402while test "x$ac_lo" != "x$ac_hi"; do
14403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14404 cat >conftest.$ac_ext <<_ACEOF
14405#line $LINENO "configure"
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411$ac_includes_default
14412int
14413main ()
14414{
14415static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14416test_array [0] = 0
14417
14418 ;
14419 return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext
14423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424 (eval $ac_compile) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -s conftest.$ac_objext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_hi=$ac_mid
14435else
14436 echo "$as_me: failed program was:" >&5
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
14439ac_lo=`expr '(' $ac_mid ')' + 1`
14440fi
14441rm -f conftest.$ac_objext conftest.$ac_ext
14442done
14443case $ac_lo in
14444?*) ac_cv_sizeof_short=$ac_lo;;
14445'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14446See \`config.log' for more details." >&5
14447echo "$as_me: error: cannot compute sizeof (short), 77
14448See \`config.log' for more details." >&2;}
14449 { (exit 1); exit 1; }; } ;;
14450esac
247f5006 14451else
e6cc62c6
VS
14452 if test "$cross_compiling" = yes; then
14453 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14454See \`config.log' for more details." >&5
14455echo "$as_me: error: cannot run test program while cross compiling
14456See \`config.log' for more details." >&2;}
14457 { (exit 1); exit 1; }; }
14458else
14459 cat >conftest.$ac_ext <<_ACEOF
14460#line $LINENO "configure"
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
14465/* end confdefs.h. */
14466$ac_includes_default
14467long longval () { return (long) (sizeof (short)); }
14468unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14469#include <stdio.h>
e6cc62c6
VS
14470#include <stdlib.h>
14471int
14472main ()
a0b9e27f 14473{
e6cc62c6
VS
14474
14475 FILE *f = fopen ("conftest.val", "w");
14476 if (! f)
14477 exit (1);
14478 if (((long) (sizeof (short))) < 0)
14479 {
14480 long i = longval ();
14481 if (i != ((long) (sizeof (short))))
14482 exit (1);
14483 fprintf (f, "%ld\n", i);
14484 }
14485 else
14486 {
14487 unsigned long i = ulongval ();
14488 if (i != ((long) (sizeof (short))))
14489 exit (1);
14490 fprintf (f, "%lu\n", i);
14491 }
14492 exit (ferror (f) || fclose (f) != 0);
14493
14494 ;
14495 return 0;
a0b9e27f 14496}
e6cc62c6
VS
14497_ACEOF
14498rm -f conftest$ac_exeext
14499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500 (eval $ac_link) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 ac_cv_sizeof_short=`cat conftest.val`
14510else
14511 echo "$as_me: program exited with status $ac_status" >&5
14512echo "$as_me: failed program was:" >&5
14513sed 's/^/| /' conftest.$ac_ext >&5
14514
14515( exit $ac_status )
14516{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14517See \`config.log' for more details." >&5
14518echo "$as_me: error: cannot compute sizeof (short), 77
14519See \`config.log' for more details." >&2;}
14520 { (exit 1); exit 1; }; }
14521fi
14522rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523fi
14524fi
14525rm -f conftest.val
247f5006 14526else
a0b9e27f 14527 ac_cv_sizeof_short=0
247f5006 14528fi
247f5006 14529fi
e6cc62c6
VS
14530echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14531echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14532cat >>confdefs.h <<_ACEOF
14533#define SIZEOF_SHORT $ac_cv_sizeof_short
14534_ACEOF
14535
14536
14537echo "$as_me:$LINENO: checking for void *" >&5
14538echo $ECHO_N "checking for void *... $ECHO_C" >&6
14539if test "${ac_cv_type_void_p+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542 cat >conftest.$ac_ext <<_ACEOF
14543#line $LINENO "configure"
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550int
14551main ()
14552{
14553if ((void * *) 0)
14554 return 0;
14555if (sizeof (void *))
14556 return 0;
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_type_void_p=yes
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578ac_cv_type_void_p=no
14579fi
14580rm -f conftest.$ac_objext conftest.$ac_ext
14581fi
14582echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14583echo "${ECHO_T}$ac_cv_type_void_p" >&6
14584
14585echo "$as_me:$LINENO: checking size of void *" >&5
14586echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14587if test "${ac_cv_sizeof_void_p+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14589else
14590 if test "$ac_cv_type_void_p" = yes; then
14591 # The cast to unsigned long works around a bug in the HP C Compiler
14592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14594 # This bug is HP SR number 8606223364.
14595 if test "$cross_compiling" = yes; then
14596 # Depending upon the size, compute the lo and hi bounds.
14597cat >conftest.$ac_ext <<_ACEOF
14598#line $LINENO "configure"
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605int
14606main ()
14607{
14608static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14609test_array [0] = 0
14610
14611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_lo=0 ac_mid=0
14628 while :; do
14629 cat >conftest.$ac_ext <<_ACEOF
14630#line $LINENO "configure"
14631/* confdefs.h. */
14632_ACEOF
14633cat confdefs.h >>conftest.$ac_ext
14634cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */
14636$ac_includes_default
14637int
14638main ()
14639{
14640static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14641test_array [0] = 0
247f5006 14642
e6cc62c6
VS
14643 ;
14644 return 0;
14645}
14646_ACEOF
14647rm -f conftest.$ac_objext
14648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest.$ac_objext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_hi=$ac_mid; break
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
14664ac_lo=`expr $ac_mid + 1`
14665 if test $ac_lo -le $ac_mid; then
14666 ac_lo= ac_hi=
14667 break
14668 fi
14669 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14670fi
e6cc62c6
VS
14671rm -f conftest.$ac_objext conftest.$ac_ext
14672 done
14673else
14674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
14677cat >conftest.$ac_ext <<_ACEOF
14678#line $LINENO "configure"
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
14684$ac_includes_default
14685int
14686main ()
14687{
14688static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14689test_array [0] = 0
247f5006 14690
e6cc62c6
VS
14691 ;
14692 return 0;
14693}
14694_ACEOF
14695rm -f conftest.$ac_objext
14696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697 (eval $ac_compile) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -s conftest.$ac_objext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_hi=-1 ac_mid=-1
14708 while :; do
14709 cat >conftest.$ac_ext <<_ACEOF
14710#line $LINENO "configure"
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
14716$ac_includes_default
14717int
14718main ()
14719{
14720static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14721test_array [0] = 0
247f5006 14722
e6cc62c6
VS
14723 ;
14724 return 0;
14725}
14726_ACEOF
14727rm -f conftest.$ac_objext
14728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729 (eval $ac_compile) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_lo=$ac_mid; break
14740else
14741 echo "$as_me: failed program was:" >&5
14742sed 's/^/| /' conftest.$ac_ext >&5
14743
14744ac_hi=`expr '(' $ac_mid ')' - 1`
14745 if test $ac_mid -le $ac_hi; then
14746 ac_lo= ac_hi=
14747 break
14748 fi
14749 ac_mid=`expr 2 '*' $ac_mid`
14750fi
14751rm -f conftest.$ac_objext conftest.$ac_ext
14752 done
a0b9e27f 14753else
e6cc62c6
VS
14754 echo "$as_me: failed program was:" >&5
14755sed 's/^/| /' conftest.$ac_ext >&5
14756
14757ac_lo= ac_hi=
14758fi
14759rm -f conftest.$ac_objext conftest.$ac_ext
14760fi
14761rm -f conftest.$ac_objext conftest.$ac_ext
14762# Binary search between lo and hi bounds.
14763while test "x$ac_lo" != "x$ac_hi"; do
14764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14765 cat >conftest.$ac_ext <<_ACEOF
14766#line $LINENO "configure"
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773int
14774main ()
14775{
14776static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14777test_array [0] = 0
14778
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_hi=$ac_mid
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800ac_lo=`expr '(' $ac_mid ')' + 1`
14801fi
14802rm -f conftest.$ac_objext conftest.$ac_ext
14803done
14804case $ac_lo in
14805?*) ac_cv_sizeof_void_p=$ac_lo;;
14806'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14807See \`config.log' for more details." >&5
14808echo "$as_me: error: cannot compute sizeof (void *), 77
14809See \`config.log' for more details." >&2;}
14810 { (exit 1); exit 1; }; } ;;
14811esac
247f5006 14812else
e6cc62c6
VS
14813 if test "$cross_compiling" = yes; then
14814 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14815See \`config.log' for more details." >&5
14816echo "$as_me: error: cannot run test program while cross compiling
14817See \`config.log' for more details." >&2;}
14818 { (exit 1); exit 1; }; }
14819else
14820 cat >conftest.$ac_ext <<_ACEOF
14821#line $LINENO "configure"
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827$ac_includes_default
14828long longval () { return (long) (sizeof (void *)); }
14829unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14830#include <stdio.h>
e6cc62c6
VS
14831#include <stdlib.h>
14832int
14833main ()
247f5006 14834{
e6cc62c6
VS
14835
14836 FILE *f = fopen ("conftest.val", "w");
14837 if (! f)
14838 exit (1);
14839 if (((long) (sizeof (void *))) < 0)
14840 {
14841 long i = longval ();
14842 if (i != ((long) (sizeof (void *))))
14843 exit (1);
14844 fprintf (f, "%ld\n", i);
14845 }
14846 else
14847 {
14848 unsigned long i = ulongval ();
14849 if (i != ((long) (sizeof (void *))))
14850 exit (1);
14851 fprintf (f, "%lu\n", i);
14852 }
14853 exit (ferror (f) || fclose (f) != 0);
14854
14855 ;
14856 return 0;
5c6fa7d2 14857}
e6cc62c6
VS
14858_ACEOF
14859rm -f conftest$ac_exeext
14860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861 (eval $ac_link) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_sizeof_void_p=`cat conftest.val`
14871else
14872 echo "$as_me: program exited with status $ac_status" >&5
14873echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
14876( exit $ac_status )
14877{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14878See \`config.log' for more details." >&5
14879echo "$as_me: error: cannot compute sizeof (void *), 77
14880See \`config.log' for more details." >&2;}
14881 { (exit 1); exit 1; }; }
14882fi
14883rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14884fi
14885fi
14886rm -f conftest.val
a0b9e27f 14887else
a0b9e27f
MB
14888 ac_cv_sizeof_void_p=0
14889fi
a0b9e27f 14890fi
e6cc62c6
VS
14891echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14892echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14893cat >>confdefs.h <<_ACEOF
14894#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14895_ACEOF
14896
14897
14898echo "$as_me:$LINENO: checking for int" >&5
14899echo $ECHO_N "checking for int... $ECHO_C" >&6
14900if test "${ac_cv_type_int+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902else
14903 cat >conftest.$ac_ext <<_ACEOF
14904#line $LINENO "configure"
14905/* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
14910$ac_includes_default
14911int
14912main ()
14913{
14914if ((int *) 0)
14915 return 0;
14916if (sizeof (int))
14917 return 0;
14918 ;
14919 return 0;
14920}
14921_ACEOF
14922rm -f conftest.$ac_objext
14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -s conftest.$ac_objext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_type_int=yes
14935else
14936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939ac_cv_type_int=no
14940fi
14941rm -f conftest.$ac_objext conftest.$ac_ext
14942fi
14943echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14944echo "${ECHO_T}$ac_cv_type_int" >&6
14945
14946echo "$as_me:$LINENO: checking size of int" >&5
14947echo $ECHO_N "checking size of int... $ECHO_C" >&6
14948if test "${ac_cv_sizeof_int+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950else
14951 if test "$ac_cv_type_int" = yes; then
14952 # The cast to unsigned long works around a bug in the HP C Compiler
14953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14955 # This bug is HP SR number 8606223364.
14956 if test "$cross_compiling" = yes; then
14957 # Depending upon the size, compute the lo and hi bounds.
14958cat >conftest.$ac_ext <<_ACEOF
14959#line $LINENO "configure"
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965$ac_includes_default
14966int
14967main ()
14968{
14969static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14970test_array [0] = 0
8284b0c5 14971
e6cc62c6
VS
14972 ;
14973 return 0;
14974}
14975_ACEOF
14976rm -f conftest.$ac_objext
14977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978 (eval $ac_compile) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_lo=0 ac_mid=0
14989 while :; do
14990 cat >conftest.$ac_ext <<_ACEOF
14991#line $LINENO "configure"
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997$ac_includes_default
14998int
14999main ()
15000{
15001static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15002test_array [0] = 0
15003
15004 ;
15005 return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext
15009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
15014 { ac_try='test -s conftest.$ac_objext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_hi=$ac_mid; break
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
15025ac_lo=`expr $ac_mid + 1`
15026 if test $ac_lo -le $ac_mid; then
15027 ac_lo= ac_hi=
15028 break
15029 fi
15030 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15031fi
e6cc62c6
VS
15032rm -f conftest.$ac_objext conftest.$ac_ext
15033 done
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038cat >conftest.$ac_ext <<_ACEOF
15039#line $LINENO "configure"
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045$ac_includes_default
15046int
15047main ()
15048{
15049static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15050test_array [0] = 0
247f5006 15051
e6cc62c6
VS
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_hi=-1 ac_mid=-1
15069 while :; do
15070 cat >conftest.$ac_ext <<_ACEOF
15071#line $LINENO "configure"
15072/* confdefs.h. */
15073_ACEOF
15074cat confdefs.h >>conftest.$ac_ext
15075cat >>conftest.$ac_ext <<_ACEOF
15076/* end confdefs.h. */
15077$ac_includes_default
15078int
15079main ()
15080{
15081static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15082test_array [0] = 0
247f5006 15083
e6cc62c6
VS
15084 ;
15085 return 0;
15086}
15087_ACEOF
15088rm -f conftest.$ac_objext
15089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15090 (eval $ac_compile) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_lo=$ac_mid; break
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105ac_hi=`expr '(' $ac_mid ')' - 1`
15106 if test $ac_mid -le $ac_hi; then
15107 ac_lo= ac_hi=
15108 break
15109 fi
15110 ac_mid=`expr 2 '*' $ac_mid`
15111fi
15112rm -f conftest.$ac_objext conftest.$ac_ext
15113 done
247f5006 15114else
e6cc62c6
VS
15115 echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118ac_lo= ac_hi=
15119fi
15120rm -f conftest.$ac_objext conftest.$ac_ext
15121fi
15122rm -f conftest.$ac_objext conftest.$ac_ext
15123# Binary search between lo and hi bounds.
15124while test "x$ac_lo" != "x$ac_hi"; do
15125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15126 cat >conftest.$ac_ext <<_ACEOF
15127#line $LINENO "configure"
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
15132/* end confdefs.h. */
15133$ac_includes_default
15134int
15135main ()
15136{
15137static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15138test_array [0] = 0
15139
15140 ;
15141 return 0;
15142}
15143_ACEOF
15144rm -f conftest.$ac_objext
15145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_hi=$ac_mid
15157else
15158 echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161ac_lo=`expr '(' $ac_mid ')' + 1`
15162fi
15163rm -f conftest.$ac_objext conftest.$ac_ext
15164done
15165case $ac_lo in
15166?*) ac_cv_sizeof_int=$ac_lo;;
15167'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15168See \`config.log' for more details." >&5
15169echo "$as_me: error: cannot compute sizeof (int), 77
15170See \`config.log' for more details." >&2;}
15171 { (exit 1); exit 1; }; } ;;
15172esac
a0b9e27f 15173else
e6cc62c6
VS
15174 if test "$cross_compiling" = yes; then
15175 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15176See \`config.log' for more details." >&5
15177echo "$as_me: error: cannot run test program while cross compiling
15178See \`config.log' for more details." >&2;}
15179 { (exit 1); exit 1; }; }
15180else
15181 cat >conftest.$ac_ext <<_ACEOF
15182#line $LINENO "configure"
15183/* confdefs.h. */
15184_ACEOF
15185cat confdefs.h >>conftest.$ac_ext
15186cat >>conftest.$ac_ext <<_ACEOF
15187/* end confdefs.h. */
15188$ac_includes_default
15189long longval () { return (long) (sizeof (int)); }
15190unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15191#include <stdio.h>
e6cc62c6
VS
15192#include <stdlib.h>
15193int
15194main ()
247f5006 15195{
e6cc62c6
VS
15196
15197 FILE *f = fopen ("conftest.val", "w");
15198 if (! f)
15199 exit (1);
15200 if (((long) (sizeof (int))) < 0)
15201 {
15202 long i = longval ();
15203 if (i != ((long) (sizeof (int))))
15204 exit (1);
15205 fprintf (f, "%ld\n", i);
15206 }
15207 else
15208 {
15209 unsigned long i = ulongval ();
15210 if (i != ((long) (sizeof (int))))
15211 exit (1);
15212 fprintf (f, "%lu\n", i);
15213 }
15214 exit (ferror (f) || fclose (f) != 0);
15215
15216 ;
15217 return 0;
247f5006 15218}
e6cc62c6
VS
15219_ACEOF
15220rm -f conftest$ac_exeext
15221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222 (eval $ac_link) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_sizeof_int=`cat conftest.val`
15232else
15233 echo "$as_me: program exited with status $ac_status" >&5
15234echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237( exit $ac_status )
15238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15239See \`config.log' for more details." >&5
15240echo "$as_me: error: cannot compute sizeof (int), 77
15241See \`config.log' for more details." >&2;}
15242 { (exit 1); exit 1; }; }
15243fi
15244rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15245fi
15246fi
15247rm -f conftest.val
6f72b082 15248else
a0b9e27f 15249 ac_cv_sizeof_int=0
21d1c967 15250fi
698dcdb6 15251fi
e6cc62c6
VS
15252echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15253echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15254cat >>confdefs.h <<_ACEOF
15255#define SIZEOF_INT $ac_cv_sizeof_int
15256_ACEOF
15257
15258
15259echo "$as_me:$LINENO: checking for long" >&5
15260echo $ECHO_N "checking for long... $ECHO_C" >&6
15261if test "${ac_cv_type_long+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263else
15264 cat >conftest.$ac_ext <<_ACEOF
15265#line $LINENO "configure"
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271$ac_includes_default
15272int
15273main ()
15274{
15275if ((long *) 0)
15276 return 0;
15277if (sizeof (long))
15278 return 0;
15279 ;
15280 return 0;
15281}
15282_ACEOF
15283rm -f conftest.$ac_objext
15284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285 (eval $ac_compile) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -s conftest.$ac_objext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_type_long=yes
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300ac_cv_type_long=no
15301fi
15302rm -f conftest.$ac_objext conftest.$ac_ext
15303fi
15304echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15305echo "${ECHO_T}$ac_cv_type_long" >&6
15306
15307echo "$as_me:$LINENO: checking size of long" >&5
15308echo $ECHO_N "checking size of long... $ECHO_C" >&6
15309if test "${ac_cv_sizeof_long+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311else
15312 if test "$ac_cv_type_long" = yes; then
15313 # The cast to unsigned long works around a bug in the HP C Compiler
15314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15316 # This bug is HP SR number 8606223364.
15317 if test "$cross_compiling" = yes; then
15318 # Depending upon the size, compute the lo and hi bounds.
15319cat >conftest.$ac_ext <<_ACEOF
15320#line $LINENO "configure"
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326$ac_includes_default
15327int
15328main ()
15329{
15330static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15331test_array [0] = 0
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
15337rm -f conftest.$ac_objext
15338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339 (eval $ac_compile) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_lo=0 ac_mid=0
15350 while :; do
15351 cat >conftest.$ac_ext <<_ACEOF
15352#line $LINENO "configure"
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359int
15360main ()
15361{
15362static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15363test_array [0] = 0
4f14bcd8 15364
e6cc62c6
VS
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_hi=$ac_mid; break
15382else
15383 echo "$as_me: failed program was:" >&5
15384sed 's/^/| /' conftest.$ac_ext >&5
15385
15386ac_lo=`expr $ac_mid + 1`
15387 if test $ac_lo -le $ac_mid; then
15388 ac_lo= ac_hi=
15389 break
15390 fi
15391 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15392fi
e6cc62c6
VS
15393rm -f conftest.$ac_objext conftest.$ac_ext
15394 done
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399cat >conftest.$ac_ext <<_ACEOF
15400#line $LINENO "configure"
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
15406$ac_includes_default
15407int
15408main ()
15409{
15410static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15411test_array [0] = 0
4f14bcd8 15412
e6cc62c6
VS
15413 ;
15414 return 0;
15415}
15416_ACEOF
15417rm -f conftest.$ac_objext
15418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -s conftest.$ac_objext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_hi=-1 ac_mid=-1
15430 while :; do
15431 cat >conftest.$ac_ext <<_ACEOF
15432#line $LINENO "configure"
15433/* confdefs.h. */
15434_ACEOF
15435cat confdefs.h >>conftest.$ac_ext
15436cat >>conftest.$ac_ext <<_ACEOF
15437/* end confdefs.h. */
15438$ac_includes_default
15439int
15440main ()
15441{
15442static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15443test_array [0] = 0
5c6fa7d2 15444
e6cc62c6
VS
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext
15450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451 (eval $ac_compile) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -s conftest.$ac_objext'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_lo=$ac_mid; break
15462else
15463 echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466ac_hi=`expr '(' $ac_mid ')' - 1`
15467 if test $ac_mid -le $ac_hi; then
15468 ac_lo= ac_hi=
15469 break
15470 fi
15471 ac_mid=`expr 2 '*' $ac_mid`
15472fi
15473rm -f conftest.$ac_objext conftest.$ac_ext
15474 done
247f5006 15475else
e6cc62c6
VS
15476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479ac_lo= ac_hi=
15480fi
15481rm -f conftest.$ac_objext conftest.$ac_ext
15482fi
15483rm -f conftest.$ac_objext conftest.$ac_ext
15484# Binary search between lo and hi bounds.
15485while test "x$ac_lo" != "x$ac_hi"; do
15486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15487 cat >conftest.$ac_ext <<_ACEOF
15488#line $LINENO "configure"
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495int
15496main ()
15497{
15498static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15499test_array [0] = 0
15500
15501 ;
15502 return 0;
15503}
15504_ACEOF
15505rm -f conftest.$ac_objext
15506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507 (eval $ac_compile) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -s conftest.$ac_objext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_hi=$ac_mid
15518else
15519 echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522ac_lo=`expr '(' $ac_mid ')' + 1`
15523fi
15524rm -f conftest.$ac_objext conftest.$ac_ext
15525done
15526case $ac_lo in
15527?*) ac_cv_sizeof_long=$ac_lo;;
15528'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15529See \`config.log' for more details." >&5
15530echo "$as_me: error: cannot compute sizeof (long), 77
15531See \`config.log' for more details." >&2;}
15532 { (exit 1); exit 1; }; } ;;
15533esac
247f5006 15534else
e6cc62c6
VS
15535 if test "$cross_compiling" = yes; then
15536 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15537See \`config.log' for more details." >&5
15538echo "$as_me: error: cannot run test program while cross compiling
15539See \`config.log' for more details." >&2;}
15540 { (exit 1); exit 1; }; }
15541else
15542 cat >conftest.$ac_ext <<_ACEOF
15543#line $LINENO "configure"
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549$ac_includes_default
15550long longval () { return (long) (sizeof (long)); }
15551unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15552#include <stdio.h>
e6cc62c6
VS
15553#include <stdlib.h>
15554int
15555main ()
247f5006 15556{
e6cc62c6
VS
15557
15558 FILE *f = fopen ("conftest.val", "w");
15559 if (! f)
15560 exit (1);
15561 if (((long) (sizeof (long))) < 0)
15562 {
15563 long i = longval ();
15564 if (i != ((long) (sizeof (long))))
15565 exit (1);
15566 fprintf (f, "%ld\n", i);
15567 }
15568 else
15569 {
15570 unsigned long i = ulongval ();
15571 if (i != ((long) (sizeof (long))))
15572 exit (1);
15573 fprintf (f, "%lu\n", i);
15574 }
15575 exit (ferror (f) || fclose (f) != 0);
15576
15577 ;
15578 return 0;
247f5006 15579}
e6cc62c6
VS
15580_ACEOF
15581rm -f conftest$ac_exeext
15582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583 (eval $ac_link) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_sizeof_long=`cat conftest.val`
15593else
15594 echo "$as_me: program exited with status $ac_status" >&5
15595echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598( exit $ac_status )
15599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15600See \`config.log' for more details." >&5
15601echo "$as_me: error: cannot compute sizeof (long), 77
15602See \`config.log' for more details." >&2;}
15603 { (exit 1); exit 1; }; }
15604fi
15605rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606fi
15607fi
15608rm -f conftest.val
247f5006 15609else
a0b9e27f 15610 ac_cv_sizeof_long=0
247f5006 15611fi
247f5006 15612fi
e6cc62c6
VS
15613echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15614echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15615cat >>confdefs.h <<_ACEOF
a0b9e27f 15616#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15617_ACEOF
247f5006 15618
a0b9e27f
MB
15619
15620
15621case "${host}" in
15622 arm-*-linux* )
e6cc62c6
VS
15623 echo "$as_me:$LINENO: checking for long long" >&5
15624echo $ECHO_N "checking for long long... $ECHO_C" >&6
15625if test "${ac_cv_type_long_long+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627else
15628 cat >conftest.$ac_ext <<_ACEOF
15629#line $LINENO "configure"
15630/* confdefs.h. */
15631_ACEOF
15632cat confdefs.h >>conftest.$ac_ext
15633cat >>conftest.$ac_ext <<_ACEOF
15634/* end confdefs.h. */
15635$ac_includes_default
15636int
15637main ()
15638{
15639if ((long long *) 0)
15640 return 0;
15641if (sizeof (long long))
15642 return 0;
15643 ;
15644 return 0;
15645}
15646_ACEOF
15647rm -f conftest.$ac_objext
15648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_type_long_long=yes
15660else
15661 echo "$as_me: failed program was:" >&5
15662sed 's/^/| /' conftest.$ac_ext >&5
15663
15664ac_cv_type_long_long=no
15665fi
15666rm -f conftest.$ac_objext conftest.$ac_ext
15667fi
15668echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15669echo "${ECHO_T}$ac_cv_type_long_long" >&6
15670
15671echo "$as_me:$LINENO: checking size of long long" >&5
15672echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15673if test "${ac_cv_sizeof_long_long+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675else
15676 if test "$ac_cv_type_long_long" = yes; then
15677 # The cast to unsigned long works around a bug in the HP C Compiler
15678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15680 # This bug is HP SR number 8606223364.
a0b9e27f 15681 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15682 # Depending upon the size, compute the lo and hi bounds.
15683cat >conftest.$ac_ext <<_ACEOF
15684#line $LINENO "configure"
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690$ac_includes_default
15691int
15692main ()
15693{
15694static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15695test_array [0] = 0
15696
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703 (eval $ac_compile) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -s conftest.$ac_objext'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_lo=0 ac_mid=0
15714 while :; do
15715 cat >conftest.$ac_ext <<_ACEOF
15716#line $LINENO "configure"
15717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722$ac_includes_default
15723int
15724main ()
15725{
15726static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15727test_array [0] = 0
15728
15729 ;
15730 return 0;
15731}
15732_ACEOF
15733rm -f conftest.$ac_objext
15734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735 (eval $ac_compile) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_hi=$ac_mid; break
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750ac_lo=`expr $ac_mid + 1`
15751 if test $ac_lo -le $ac_mid; then
15752 ac_lo= ac_hi=
15753 break
15754 fi
15755 ac_mid=`expr 2 '*' $ac_mid + 1`
15756fi
15757rm -f conftest.$ac_objext conftest.$ac_ext
15758 done
15759else
15760 echo "$as_me: failed program was:" >&5
15761sed 's/^/| /' conftest.$ac_ext >&5
15762
15763cat >conftest.$ac_ext <<_ACEOF
15764#line $LINENO "configure"
15765/* confdefs.h. */
15766_ACEOF
15767cat confdefs.h >>conftest.$ac_ext
15768cat >>conftest.$ac_ext <<_ACEOF
15769/* end confdefs.h. */
15770$ac_includes_default
15771int
15772main ()
15773{
15774static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15775test_array [0] = 0
15776
15777 ;
15778 return 0;
15779}
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_hi=-1 ac_mid=-1
15794 while :; do
15795 cat >conftest.$ac_ext <<_ACEOF
15796#line $LINENO "configure"
15797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802$ac_includes_default
15803int
15804main ()
15805{
15806static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15807test_array [0] = 0
15808
15809 ;
15810 return 0;
15811}
15812_ACEOF
15813rm -f conftest.$ac_objext
15814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815 (eval $ac_compile) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -s conftest.$ac_objext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 ac_lo=$ac_mid; break
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830ac_hi=`expr '(' $ac_mid ')' - 1`
15831 if test $ac_mid -le $ac_hi; then
15832 ac_lo= ac_hi=
15833 break
15834 fi
15835 ac_mid=`expr 2 '*' $ac_mid`
15836fi
15837rm -f conftest.$ac_objext conftest.$ac_ext
15838 done
15839else
15840 echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5
15842
15843ac_lo= ac_hi=
15844fi
15845rm -f conftest.$ac_objext conftest.$ac_ext
15846fi
15847rm -f conftest.$ac_objext conftest.$ac_ext
15848# Binary search between lo and hi bounds.
15849while test "x$ac_lo" != "x$ac_hi"; do
15850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15851 cat >conftest.$ac_ext <<_ACEOF
15852#line $LINENO "configure"
15853/* confdefs.h. */
15854_ACEOF
15855cat confdefs.h >>conftest.$ac_ext
15856cat >>conftest.$ac_ext <<_ACEOF
15857/* end confdefs.h. */
15858$ac_includes_default
15859int
15860main ()
15861{
15862static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15863test_array [0] = 0
15864
15865 ;
15866 return 0;
15867}
15868_ACEOF
15869rm -f conftest.$ac_objext
15870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ac_hi=$ac_mid
15882else
15883 echo "$as_me: failed program was:" >&5
15884sed 's/^/| /' conftest.$ac_ext >&5
15885
15886ac_lo=`expr '(' $ac_mid ')' + 1`
15887fi
15888rm -f conftest.$ac_objext conftest.$ac_ext
15889done
15890case $ac_lo in
15891?*) ac_cv_sizeof_long_long=$ac_lo;;
15892'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15893See \`config.log' for more details." >&5
15894echo "$as_me: error: cannot compute sizeof (long long), 77
15895See \`config.log' for more details." >&2;}
15896 { (exit 1); exit 1; }; } ;;
15897esac
a0b9e27f 15898else
e6cc62c6
VS
15899 if test "$cross_compiling" = yes; then
15900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15901See \`config.log' for more details." >&5
15902echo "$as_me: error: cannot run test program while cross compiling
15903See \`config.log' for more details." >&2;}
15904 { (exit 1); exit 1; }; }
15905else
15906 cat >conftest.$ac_ext <<_ACEOF
15907#line $LINENO "configure"
15908/* confdefs.h. */
15909_ACEOF
15910cat confdefs.h >>conftest.$ac_ext
15911cat >>conftest.$ac_ext <<_ACEOF
15912/* end confdefs.h. */
15913$ac_includes_default
15914long longval () { return (long) (sizeof (long long)); }
15915unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15916#include <stdio.h>
e6cc62c6
VS
15917#include <stdlib.h>
15918int
15919main ()
247f5006 15920{
e6cc62c6
VS
15921
15922 FILE *f = fopen ("conftest.val", "w");
15923 if (! f)
15924 exit (1);
15925 if (((long) (sizeof (long long))) < 0)
15926 {
15927 long i = longval ();
15928 if (i != ((long) (sizeof (long long))))
15929 exit (1);
15930 fprintf (f, "%ld\n", i);
15931 }
15932 else
15933 {
15934 unsigned long i = ulongval ();
15935 if (i != ((long) (sizeof (long long))))
15936 exit (1);
15937 fprintf (f, "%lu\n", i);
15938 }
15939 exit (ferror (f) || fclose (f) != 0);
15940
15941 ;
15942 return 0;
247f5006 15943}
e6cc62c6
VS
15944_ACEOF
15945rm -f conftest$ac_exeext
15946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 ac_cv_sizeof_long_long=`cat conftest.val`
15957else
15958 echo "$as_me: program exited with status $ac_status" >&5
15959echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962( exit $ac_status )
15963{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15964See \`config.log' for more details." >&5
15965echo "$as_me: error: cannot compute sizeof (long long), 77
15966See \`config.log' for more details." >&2;}
15967 { (exit 1); exit 1; }; }
15968fi
15969rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970fi
15971fi
15972rm -f conftest.val
7b4a847f 15973else
a0b9e27f 15974 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15975fi
15976fi
e6cc62c6
VS
15977echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15978echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15979cat >>confdefs.h <<_ACEOF
15980#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15981_ACEOF
15982
15983
15984 ;;
15985 *-hp-hpux* )
15986 echo "$as_me:$LINENO: checking for long long" >&5
15987echo $ECHO_N "checking for long long... $ECHO_C" >&6
15988if test "${ac_cv_type_long_long+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990else
15991 cat >conftest.$ac_ext <<_ACEOF
15992#line $LINENO "configure"
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999int
16000main ()
16001{
16002if ((long long *) 0)
16003 return 0;
16004if (sizeof (long long))
16005 return 0;
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010rm -f conftest.$ac_objext
16011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16012 (eval $ac_compile) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_cv_type_long_long=yes
16023else
16024 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027ac_cv_type_long_long=no
16028fi
16029rm -f conftest.$ac_objext conftest.$ac_ext
16030fi
16031echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16032echo "${ECHO_T}$ac_cv_type_long_long" >&6
16033
16034echo "$as_me:$LINENO: checking size of long long" >&5
16035echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16036if test "${ac_cv_sizeof_long_long+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038else
16039 if test "$ac_cv_type_long_long" = yes; then
16040 # The cast to unsigned long works around a bug in the HP C Compiler
16041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16043 # This bug is HP SR number 8606223364.
16044 if test "$cross_compiling" = yes; then
16045 # Depending upon the size, compute the lo and hi bounds.
16046cat >conftest.$ac_ext <<_ACEOF
16047#line $LINENO "configure"
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054int
16055main ()
16056{
16057static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16058test_array [0] = 0
16059
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066 (eval $ac_compile) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; }; then
16076 ac_lo=0 ac_mid=0
16077 while :; do
16078 cat >conftest.$ac_ext <<_ACEOF
16079#line $LINENO "configure"
16080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
16085$ac_includes_default
16086int
16087main ()
16088{
16089static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16090test_array [0] = 0
8284b0c5 16091
e6cc62c6
VS
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096rm -f conftest.$ac_objext
16097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
16102 { ac_try='test -s conftest.$ac_objext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_hi=$ac_mid; break
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
16113ac_lo=`expr $ac_mid + 1`
16114 if test $ac_lo -le $ac_mid; then
16115 ac_lo= ac_hi=
16116 break
16117 fi
16118 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16119fi
e6cc62c6
VS
16120rm -f conftest.$ac_objext conftest.$ac_ext
16121 done
16122else
16123 echo "$as_me: failed program was:" >&5
16124sed 's/^/| /' conftest.$ac_ext >&5
16125
16126cat >conftest.$ac_ext <<_ACEOF
16127#line $LINENO "configure"
16128/* confdefs.h. */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
16132/* end confdefs.h. */
16133$ac_includes_default
16134int
16135main ()
16136{
16137static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16138test_array [0] = 0
a0b9e27f 16139
e6cc62c6
VS
16140 ;
16141 return 0;
16142}
16143_ACEOF
16144rm -f conftest.$ac_objext
16145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_hi=-1 ac_mid=-1
16157 while :; do
16158 cat >conftest.$ac_ext <<_ACEOF
16159#line $LINENO "configure"
16160/* confdefs.h. */
16161_ACEOF
16162cat confdefs.h >>conftest.$ac_ext
16163cat >>conftest.$ac_ext <<_ACEOF
16164/* end confdefs.h. */
16165$ac_includes_default
16166int
16167main ()
16168{
16169static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16170test_array [0] = 0
a0b9e27f 16171
e6cc62c6
VS
16172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16178 (eval $ac_compile) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -s conftest.$ac_objext'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; }; then
16188 ac_lo=$ac_mid; break
16189else
16190 echo "$as_me: failed program was:" >&5
16191sed 's/^/| /' conftest.$ac_ext >&5
16192
16193ac_hi=`expr '(' $ac_mid ')' - 1`
16194 if test $ac_mid -le $ac_hi; then
16195 ac_lo= ac_hi=
16196 break
16197 fi
16198 ac_mid=`expr 2 '*' $ac_mid`
16199fi
16200rm -f conftest.$ac_objext conftest.$ac_ext
16201 done
8284b0c5 16202else
e6cc62c6
VS
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206ac_lo= ac_hi=
16207fi
16208rm -f conftest.$ac_objext conftest.$ac_ext
16209fi
16210rm -f conftest.$ac_objext conftest.$ac_ext
16211# Binary search between lo and hi bounds.
16212while test "x$ac_lo" != "x$ac_hi"; do
16213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16214 cat >conftest.$ac_ext <<_ACEOF
16215#line $LINENO "configure"
16216/* confdefs.h. */
16217_ACEOF
16218cat confdefs.h >>conftest.$ac_ext
16219cat >>conftest.$ac_ext <<_ACEOF
16220/* end confdefs.h. */
16221$ac_includes_default
16222int
16223main ()
16224{
16225static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16226test_array [0] = 0
16227
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232rm -f conftest.$ac_objext
16233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_hi=$ac_mid
16245else
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
16249ac_lo=`expr '(' $ac_mid ')' + 1`
16250fi
16251rm -f conftest.$ac_objext conftest.$ac_ext
16252done
16253case $ac_lo in
16254?*) ac_cv_sizeof_long_long=$ac_lo;;
16255'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16256See \`config.log' for more details." >&5
16257echo "$as_me: error: cannot compute sizeof (long long), 77
16258See \`config.log' for more details." >&2;}
16259 { (exit 1); exit 1; }; } ;;
16260esac
8284b0c5 16261else
e6cc62c6
VS
16262 if test "$cross_compiling" = yes; then
16263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16264See \`config.log' for more details." >&5
16265echo "$as_me: error: cannot run test program while cross compiling
16266See \`config.log' for more details." >&2;}
16267 { (exit 1); exit 1; }; }
16268else
16269 cat >conftest.$ac_ext <<_ACEOF
16270#line $LINENO "configure"
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277long longval () { return (long) (sizeof (long long)); }
16278unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16279#include <stdio.h>
e6cc62c6
VS
16280#include <stdlib.h>
16281int
16282main ()
8284b0c5 16283{
e6cc62c6
VS
16284
16285 FILE *f = fopen ("conftest.val", "w");
16286 if (! f)
16287 exit (1);
16288 if (((long) (sizeof (long long))) < 0)
16289 {
16290 long i = longval ();
16291 if (i != ((long) (sizeof (long long))))
16292 exit (1);
16293 fprintf (f, "%ld\n", i);
16294 }
16295 else
16296 {
16297 unsigned long i = ulongval ();
16298 if (i != ((long) (sizeof (long long))))
16299 exit (1);
16300 fprintf (f, "%lu\n", i);
16301 }
16302 exit (ferror (f) || fclose (f) != 0);
16303
16304 ;
16305 return 0;
8284b0c5 16306}
e6cc62c6
VS
16307_ACEOF
16308rm -f conftest$ac_exeext
16309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310 (eval $ac_link) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_cv_sizeof_long_long=`cat conftest.val`
16320else
16321 echo "$as_me: program exited with status $ac_status" >&5
16322echo "$as_me: failed program was:" >&5
16323sed 's/^/| /' conftest.$ac_ext >&5
16324
16325( exit $ac_status )
16326{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16327See \`config.log' for more details." >&5
16328echo "$as_me: error: cannot compute sizeof (long long), 77
16329See \`config.log' for more details." >&2;}
16330 { (exit 1); exit 1; }; }
16331fi
16332rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16333fi
16334fi
16335rm -f conftest.val
5c6fa7d2
RR
16336else
16337 ac_cv_sizeof_long_long=0
52127426 16338fi
4f57cf11 16339fi
e6cc62c6
VS
16340echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16341echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16342cat >>confdefs.h <<_ACEOF
4f57cf11 16343#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16344_ACEOF
4f57cf11
GD
16345
16346
16347 if test "$ac_cv_sizeof_long_long" != "0"; then
16348 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16349 fi
16350 ;;
16351 * )
e6cc62c6
VS
16352 echo "$as_me:$LINENO: checking for long long" >&5
16353echo $ECHO_N "checking for long long... $ECHO_C" >&6
16354if test "${ac_cv_type_long_long+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357 cat >conftest.$ac_ext <<_ACEOF
16358#line $LINENO "configure"
16359/* confdefs.h. */
16360_ACEOF
16361cat confdefs.h >>conftest.$ac_ext
16362cat >>conftest.$ac_ext <<_ACEOF
16363/* end confdefs.h. */
16364$ac_includes_default
16365int
16366main ()
16367{
16368if ((long long *) 0)
16369 return 0;
16370if (sizeof (long long))
16371 return 0;
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest.$ac_objext
16377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378 (eval $ac_compile) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -s conftest.$ac_objext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_cv_type_long_long=yes
16389else
16390 echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393ac_cv_type_long_long=no
16394fi
16395rm -f conftest.$ac_objext conftest.$ac_ext
16396fi
16397echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16398echo "${ECHO_T}$ac_cv_type_long_long" >&6
16399
16400echo "$as_me:$LINENO: checking size of long long" >&5
16401echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16402if test "${ac_cv_sizeof_long_long+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405 if test "$ac_cv_type_long_long" = yes; then
16406 # The cast to unsigned long works around a bug in the HP C Compiler
16407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16409 # This bug is HP SR number 8606223364.
4f57cf11 16410 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16411 # Depending upon the size, compute the lo and hi bounds.
16412cat >conftest.$ac_ext <<_ACEOF
16413#line $LINENO "configure"
16414/* confdefs.h. */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h. */
16419$ac_includes_default
16420int
16421main ()
16422{
16423static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16424test_array [0] = 0
16425
16426 ;
16427 return 0;
16428}
16429_ACEOF
16430rm -f conftest.$ac_objext
16431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_lo=0 ac_mid=0
16443 while :; do
16444 cat >conftest.$ac_ext <<_ACEOF
16445#line $LINENO "configure"
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452int
16453main ()
16454{
16455static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16456test_array [0] = 0
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462rm -f conftest.$ac_objext
16463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464 (eval $ac_compile) 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_hi=$ac_mid; break
16475else
16476 echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479ac_lo=`expr $ac_mid + 1`
16480 if test $ac_lo -le $ac_mid; then
16481 ac_lo= ac_hi=
16482 break
16483 fi
16484 ac_mid=`expr 2 '*' $ac_mid + 1`
16485fi
16486rm -f conftest.$ac_objext conftest.$ac_ext
16487 done
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492cat >conftest.$ac_ext <<_ACEOF
16493#line $LINENO "configure"
16494/* confdefs.h. */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h. */
16499$ac_includes_default
16500int
16501main ()
16502{
16503static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16504test_array [0] = 0
16505
16506 ;
16507 return 0;
16508}
16509_ACEOF
16510rm -f conftest.$ac_objext
16511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16512 (eval $ac_compile) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -s conftest.$ac_objext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_hi=-1 ac_mid=-1
16523 while :; do
16524 cat >conftest.$ac_ext <<_ACEOF
16525#line $LINENO "configure"
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
16530/* end confdefs.h. */
16531$ac_includes_default
16532int
16533main ()
16534{
16535static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16536test_array [0] = 0
16537
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_lo=$ac_mid; break
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559ac_hi=`expr '(' $ac_mid ')' - 1`
16560 if test $ac_mid -le $ac_hi; then
16561 ac_lo= ac_hi=
16562 break
16563 fi
16564 ac_mid=`expr 2 '*' $ac_mid`
16565fi
16566rm -f conftest.$ac_objext conftest.$ac_ext
16567 done
4f57cf11 16568else
e6cc62c6
VS
16569 echo "$as_me: failed program was:" >&5
16570sed 's/^/| /' conftest.$ac_ext >&5
16571
16572ac_lo= ac_hi=
16573fi
16574rm -f conftest.$ac_objext conftest.$ac_ext
16575fi
16576rm -f conftest.$ac_objext conftest.$ac_ext
16577# Binary search between lo and hi bounds.
16578while test "x$ac_lo" != "x$ac_hi"; do
16579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16580 cat >conftest.$ac_ext <<_ACEOF
16581#line $LINENO "configure"
16582/* confdefs.h. */
16583_ACEOF
16584cat confdefs.h >>conftest.$ac_ext
16585cat >>conftest.$ac_ext <<_ACEOF
16586/* end confdefs.h. */
16587$ac_includes_default
16588int
16589main ()
16590{
16591static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16592test_array [0] = 0
16593
16594 ;
16595 return 0;
16596}
16597_ACEOF
16598rm -f conftest.$ac_objext
16599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16600 (eval $ac_compile) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_hi=$ac_mid
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615ac_lo=`expr '(' $ac_mid ')' + 1`
16616fi
16617rm -f conftest.$ac_objext conftest.$ac_ext
16618done
16619case $ac_lo in
16620?*) ac_cv_sizeof_long_long=$ac_lo;;
16621'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16622See \`config.log' for more details." >&5
16623echo "$as_me: error: cannot compute sizeof (long long), 77
16624See \`config.log' for more details." >&2;}
16625 { (exit 1); exit 1; }; } ;;
16626esac
16627else
16628 if test "$cross_compiling" = yes; then
16629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16630See \`config.log' for more details." >&5
16631echo "$as_me: error: cannot run test program while cross compiling
16632See \`config.log' for more details." >&2;}
16633 { (exit 1); exit 1; }; }
16634else
16635 cat >conftest.$ac_ext <<_ACEOF
16636#line $LINENO "configure"
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643long longval () { return (long) (sizeof (long long)); }
16644unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16645#include <stdio.h>
e6cc62c6
VS
16646#include <stdlib.h>
16647int
16648main ()
4f57cf11 16649{
e6cc62c6
VS
16650
16651 FILE *f = fopen ("conftest.val", "w");
16652 if (! f)
16653 exit (1);
16654 if (((long) (sizeof (long long))) < 0)
16655 {
16656 long i = longval ();
16657 if (i != ((long) (sizeof (long long))))
16658 exit (1);
16659 fprintf (f, "%ld\n", i);
16660 }
16661 else
16662 {
16663 unsigned long i = ulongval ();
16664 if (i != ((long) (sizeof (long long))))
16665 exit (1);
16666 fprintf (f, "%lu\n", i);
16667 }
16668 exit (ferror (f) || fclose (f) != 0);
16669
16670 ;
16671 return 0;
4f57cf11 16672}
e6cc62c6
VS
16673_ACEOF
16674rm -f conftest$ac_exeext
16675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_sizeof_long_long=`cat conftest.val`
16686else
16687 echo "$as_me: program exited with status $ac_status" >&5
16688echo "$as_me: failed program was:" >&5
16689sed 's/^/| /' conftest.$ac_ext >&5
16690
16691( exit $ac_status )
16692{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16693See \`config.log' for more details." >&5
16694echo "$as_me: error: cannot compute sizeof (long long), 77
16695See \`config.log' for more details." >&2;}
16696 { (exit 1); exit 1; }; }
16697fi
16698rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16699fi
16700fi
16701rm -f conftest.val
4f57cf11 16702else
4f57cf11
GD
16703 ac_cv_sizeof_long_long=0
16704fi
7b4a847f 16705fi
e6cc62c6
VS
16706echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16707echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16708cat >>confdefs.h <<_ACEOF
21d1c967 16709#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16710_ACEOF
9e691f46 16711
8284b0c5 16712
21d1c967
GD
16713esac
16714
e6cc62c6
VS
16715echo "$as_me:$LINENO: checking size of wchar_t" >&5
16716echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16717if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16719else
e6cc62c6 16720
21d1c967 16721 if test "$cross_compiling" = yes; then
e6cc62c6 16722
2b5f62a0
VZ
16723 case "${host}" in
16724 *-pc-msdosdjgpp )
16725 wx_cv_sizeof_wchar_t=0
16726 ;;
16727 * )
16728 wx_cv_sizeof_wchar_t=4
16729 ;;
16730 esac
e6cc62c6
VS
16731
16732
6f72b082 16733else
e6cc62c6
VS
16734 cat >conftest.$ac_ext <<_ACEOF
16735#line $LINENO "configure"
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
21d1c967 16741
2b5f62a0
VZ
16742 /* DJGPP only has fake wchar_t: */
16743 #ifdef __DJGPP__
16744 # error "fake wchar_t"
16745 #endif
21d1c967
GD
16746 #ifdef HAVE_WCHAR_H
16747 # ifdef __CYGWIN__
16748 # include <stddef.h>
16749 # endif
16750 # include <wchar.h>
16751 #endif
16752 #ifdef HAVE_STDLIB_H
16753 # include <stdlib.h>
16754 #endif
16755 #include <stdio.h>
16756 int main()
16757 {
16758 FILE *f=fopen("conftestval", "w");
16759 if (!f) exit(1);
16760 fprintf(f, "%i", sizeof(wchar_t));
16761 exit(0);
16762 }
e6cc62c6
VS
16763
16764_ACEOF
16765rm -f conftest$ac_exeext
16766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767 (eval $ac_link) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
21d1c967 16776 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16777else
e6cc62c6
VS
16778 echo "$as_me: program exited with status $ac_status" >&5
16779echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782( exit $ac_status )
16783wx_cv_sizeof_wchar_t=0
6f72b082 16784fi
e6cc62c6 16785rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16786fi
6f72b082 16787
3f345b47 16788fi
e6cc62c6
VS
16789echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16790echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16791
e6cc62c6 16792cat >>confdefs.h <<_ACEOF
21d1c967 16793#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16794_ACEOF
90dd450c 16795
8284b0c5 16796
21d1c967
GD
16797# Check whether --enable-largefile or --disable-largefile was given.
16798if test "${enable_largefile+set}" = set; then
16799 enableval="$enable_largefile"
3f345b47 16800
e6cc62c6 16801fi;
21d1c967
GD
16802if test "$enable_largefile" != no; then
16803 wx_largefile=no
e6cc62c6
VS
16804
16805 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16806echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16807if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809else
16810
16811 cat >conftest.$ac_ext <<_ACEOF
16812#line $LINENO "configure"
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
21d1c967
GD
16818#define _FILE_OFFSET_BITS 64
16819 #include <sys/types.h>
e6cc62c6
VS
16820int
16821main ()
16822{
21d1c967
GD
16823typedef struct {
16824 unsigned int field: sizeof(off_t) == 8;
16825} wxlf;
16826
e6cc62c6
VS
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833 (eval $ac_compile) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
21d1c967 16843 ac_cv_sys_file_offset_bits=64
f6bcfd97 16844else
e6cc62c6
VS
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848ac_cv_sys_file_offset_bits=no
247f5006 16849fi
e6cc62c6
VS
16850rm -f conftest.$ac_objext conftest.$ac_ext
16851
a0b9e27f 16852
e6cc62c6
VS
16853fi
16854echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16855echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16856
16857 if test "$ac_cv_sys_file_offset_bits" != no; then
16858 wx_largefile=yes
e6cc62c6 16859 cat >>confdefs.h <<_ACEOF
21d1c967 16860#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16861_ACEOF
21d1c967
GD
16862
16863 fi
16864
16865 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16866
16867 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16868echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16869if test "${ac_cv_sys_large_files+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871else
16872
16873 cat >conftest.$ac_ext <<_ACEOF
16874#line $LINENO "configure"
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
21d1c967
GD
16880#define _LARGE_FILES 1
16881 #include <sys/types.h>
e6cc62c6
VS
16882int
16883main ()
16884{
21d1c967
GD
16885typedef struct {
16886 unsigned int field: sizeof(off_t) == 8;
16887} wxlf;
16888
e6cc62c6
VS
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 (eval $ac_compile) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
21d1c967 16905 ac_cv_sys_large_files=1
f6bcfd97 16906else
e6cc62c6
VS
16907 echo "$as_me: failed program was:" >&5
16908sed 's/^/| /' conftest.$ac_ext >&5
16909
16910ac_cv_sys_large_files=no
247f5006 16911fi
e6cc62c6 16912rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16913
e6cc62c6
VS
16914
16915fi
16916echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16917echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16918
21d1c967
GD
16919 if test "$ac_cv_sys_large_files" != no; then
16920 wx_largefile=yes
e6cc62c6 16921 cat >>confdefs.h <<_ACEOF
21d1c967 16922#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16923_ACEOF
90dd450c 16924
90dd450c
VZ
16925 fi
16926
90dd450c 16927 fi
90dd450c 16928
e6cc62c6
VS
16929 echo "$as_me:$LINENO: checking if large file support is available" >&5
16930echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16931 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16932 cat >>confdefs.h <<\_ACEOF
21d1c967 16933#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16934_ACEOF
90dd450c 16935
90dd450c 16936 fi
e6cc62c6
VS
16937 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16938echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16939fi
90dd450c 16940
8284b0c5 16941
f02444d0 16942if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16943 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16944 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16945 else
e26c13cf 16946 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16947 fi
e26c13cf 16948 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16949fi
16950
e6cc62c6
VS
16951echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16952echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16953if test "${ac_cv_c_bigendian+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16955else
21d1c967
GD
16956 ac_cv_c_bigendian=unknown
16957# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16958cat >conftest.$ac_ext <<_ACEOF
16959#line $LINENO "configure"
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
21d1c967
GD
16965#include <sys/types.h>
16966#include <sys/param.h>
e6cc62c6
VS
16967int
16968main ()
16969{
21d1c967
GD
16970
16971#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16972 bogus endian macros
16973#endif
e6cc62c6
VS
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
21d1c967 16990 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16991cat >conftest.$ac_ext <<_ACEOF
16992#line $LINENO "configure"
16993/* confdefs.h. */
16994_ACEOF
16995cat confdefs.h >>conftest.$ac_ext
16996cat >>conftest.$ac_ext <<_ACEOF
16997/* end confdefs.h. */
21d1c967
GD
16998#include <sys/types.h>
16999#include <sys/param.h>
e6cc62c6
VS
17000int
17001main ()
17002{
21d1c967
GD
17003
17004#if BYTE_ORDER != BIG_ENDIAN
17005 not big endian
17006#endif
e6cc62c6
VS
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext
17012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013 (eval $ac_compile) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -s conftest.$ac_objext'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; }; then
21d1c967 17023 ac_cv_c_bigendian=yes
3f345b47 17024else
e6cc62c6
VS
17025 echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028ac_cv_c_bigendian=no
3f345b47 17029fi
e6cc62c6 17030rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 17031else
e6cc62c6
VS
17032 echo "$as_me: failed program was:" >&5
17033sed 's/^/| /' conftest.$ac_ext >&5
17034
3f345b47 17035fi
e6cc62c6 17036rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17037if test $ac_cv_c_bigendian = unknown; then
17038if test "$cross_compiling" = yes; then
17039 ac_cv_c_bigendian=unknown
10f2d63a 17040else
e6cc62c6
VS
17041 cat >conftest.$ac_ext <<_ACEOF
17042#line $LINENO "configure"
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
21d1c967
GD
17048main () {
17049 /* Are we little or big endian? From Harbison&Steele. */
17050 union
17051 {
17052 long l;
17053 char c[sizeof (long)];
17054 } u;
17055 u.l = 1;
17056 exit (u.c[sizeof (long) - 1] == 1);
17057}
e6cc62c6
VS
17058_ACEOF
17059rm -f conftest$ac_exeext
17060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
21d1c967 17070 ac_cv_c_bigendian=no
3f345b47 17071else
e6cc62c6
VS
17072 echo "$as_me: program exited with status $ac_status" >&5
17073echo "$as_me: failed program was:" >&5
17074sed 's/^/| /' conftest.$ac_ext >&5
17075
17076( exit $ac_status )
17077ac_cv_c_bigendian=yes
247f5006 17078fi
e6cc62c6 17079rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17080fi
3f345b47 17081fi
8168de4c 17082fi
e6cc62c6
VS
17083echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17084echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17085if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17086 { 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
17087echo "$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
17088fi
17089if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17090 cat >>confdefs.h <<\_ACEOF
247f5006 17091#define WORDS_BIGENDIAN 1
e6cc62c6 17092_ACEOF
247f5006
VZ
17093
17094fi
17095
17096
e6cc62c6
VS
17097
17098ac_ext=cc
17099ac_cpp='$CXXCPP $CPPFLAGS'
17100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17103echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17104echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17105if test -z "$CXXCPP"; then
e6cc62c6
VS
17106 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109 # Double quotes because CXXCPP needs to be expanded
17110 for CXXCPP in "$CXX -E" "/lib/cpp"
17111 do
17112 ac_preproc_ok=false
17113for ac_cxx_preproc_warn_flag in '' yes
17114do
17115 # Use a header file that comes with gcc, so configuring glibc
17116 # with a fresh cross-compiler works.
17117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 # <limits.h> exists even on freestanding compilers.
17119 # On the NeXT, cc -E runs the code through the compiler's parser,
17120 # not just through cpp. "Syntax error" is here to catch this case.
17121 cat >conftest.$ac_ext <<_ACEOF
17122#line $LINENO "configure"
17123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
17128#ifdef __STDC__
17129# include <limits.h>
17130#else
17131# include <assert.h>
17132#endif
17133 Syntax error
17134_ACEOF
17135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } >/dev/null; then
17143 if test -s conftest.err; then
17144 ac_cpp_err=$ac_cxx_preproc_warn_flag
17145 else
17146 ac_cpp_err=
17147 fi
247f5006 17148else
e6cc62c6
VS
17149 ac_cpp_err=yes
17150fi
17151if test -z "$ac_cpp_err"; then
17152 :
17153else
17154 echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 # Broken: fails on valid input.
17158continue
17159fi
17160rm -f conftest.err conftest.$ac_ext
17161
17162 # OK, works on sane cases. Now check whether non-existent headers
17163 # can be detected and how.
17164 cat >conftest.$ac_ext <<_ACEOF
17165#line $LINENO "configure"
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
17171#include <ac_nonexistent.h>
17172_ACEOF
17173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } >/dev/null; then
17181 if test -s conftest.err; then
17182 ac_cpp_err=$ac_cxx_preproc_warn_flag
17183 else
17184 ac_cpp_err=
17185 fi
17186else
17187 ac_cpp_err=yes
17188fi
17189if test -z "$ac_cpp_err"; then
17190 # Broken: success on invalid input.
17191continue
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 # Passes both tests.
17197ac_preproc_ok=:
17198break
17199fi
17200rm -f conftest.err conftest.$ac_ext
17201
17202done
17203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17204rm -f conftest.err conftest.$ac_ext
17205if $ac_preproc_ok; then
17206 break
17207fi
17208
17209 done
17210 ac_cv_prog_CXXCPP=$CXXCPP
17211
17212fi
17213 CXXCPP=$ac_cv_prog_CXXCPP
17214else
17215 ac_cv_prog_CXXCPP=$CXXCPP
17216fi
17217echo "$as_me:$LINENO: result: $CXXCPP" >&5
17218echo "${ECHO_T}$CXXCPP" >&6
17219ac_preproc_ok=false
17220for ac_cxx_preproc_warn_flag in '' yes
17221do
17222 # Use a header file that comes with gcc, so configuring glibc
17223 # with a fresh cross-compiler works.
17224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17225 # <limits.h> exists even on freestanding compilers.
17226 # On the NeXT, cc -E runs the code through the compiler's parser,
17227 # not just through cpp. "Syntax error" is here to catch this case.
17228 cat >conftest.$ac_ext <<_ACEOF
17229#line $LINENO "configure"
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240 Syntax error
17241_ACEOF
17242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } >/dev/null; then
17250 if test -s conftest.err; then
17251 ac_cpp_err=$ac_cxx_preproc_warn_flag
17252 else
17253 ac_cpp_err=
17254 fi
17255else
17256 ac_cpp_err=yes
17257fi
17258if test -z "$ac_cpp_err"; then
21d1c967 17259 :
698dcdb6 17260else
e6cc62c6
VS
17261 echo "$as_me: failed program was:" >&5
17262sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 # Broken: fails on valid input.
17265continue
17266fi
17267rm -f conftest.err conftest.$ac_ext
17268
17269 # OK, works on sane cases. Now check whether non-existent headers
17270 # can be detected and how.
17271 cat >conftest.$ac_ext <<_ACEOF
17272#line $LINENO "configure"
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
17278#include <ac_nonexistent.h>
17279_ACEOF
17280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } >/dev/null; then
17288 if test -s conftest.err; then
17289 ac_cpp_err=$ac_cxx_preproc_warn_flag
17290 else
17291 ac_cpp_err=
17292 fi
17293else
17294 ac_cpp_err=yes
247f5006 17295fi
e6cc62c6
VS
17296if test -z "$ac_cpp_err"; then
17297 # Broken: success on invalid input.
17298continue
17299else
17300 echo "$as_me: failed program was:" >&5
17301sed 's/^/| /' conftest.$ac_ext >&5
17302
17303 # Passes both tests.
17304ac_preproc_ok=:
17305break
328a083c 17306fi
e6cc62c6
VS
17307rm -f conftest.err conftest.$ac_ext
17308
17309done
17310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17311rm -f conftest.err conftest.$ac_ext
17312if $ac_preproc_ok; then
17313 :
17314else
17315 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17316See \`config.log' for more details." >&5
17317echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17318See \`config.log' for more details." >&2;}
17319 { (exit 1); exit 1; }; }
90dd450c 17320fi
e6cc62c6
VS
17321
17322ac_ext=cc
17323ac_cpp='$CXXCPP $CPPFLAGS'
17324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327
1e6feb95 17328
1725144d 17329
21d1c967 17330 if test "$cross_compiling" = "yes"; then
e6cc62c6 17331 cat >>confdefs.h <<\_ACEOF
21d1c967 17332#define wxUSE_IOSTREAMH 1
e6cc62c6 17333_ACEOF
ab9b9eab 17334
21d1c967 17335 else
e6cc62c6
VS
17336
17337
17338 ac_ext=cc
5c6fa7d2 17339ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17343
52127426 17344
247f5006 17345
e6cc62c6 17346for ac_header in iostream
21d1c967 17347do
e6cc62c6
VS
17348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17349if eval "test \"\${$as_ac_Header+set}\" = set"; then
17350 echo "$as_me:$LINENO: checking for $ac_header" >&5
17351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17352if eval "test \"\${$as_ac_Header+set}\" = set"; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354fi
17355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17357else
17358 # Is the header compilable?
17359echo "$as_me:$LINENO: checking $ac_header usability" >&5
17360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17361cat >conftest.$ac_ext <<_ACEOF
17362#line $LINENO "configure"
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368$ac_includes_default
17369#include <$ac_header>
17370_ACEOF
17371rm -f conftest.$ac_objext
17372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_header_compiler=yes
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388ac_header_compiler=no
17389fi
17390rm -f conftest.$ac_objext conftest.$ac_ext
17391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17392echo "${ECHO_T}$ac_header_compiler" >&6
17393
17394# Is the header present?
17395echo "$as_me:$LINENO: checking $ac_header presence" >&5
17396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17397cat >conftest.$ac_ext <<_ACEOF
17398#line $LINENO "configure"
17399/* confdefs.h. */
17400_ACEOF
17401cat confdefs.h >>conftest.$ac_ext
17402cat >>conftest.$ac_ext <<_ACEOF
17403/* end confdefs.h. */
17404#include <$ac_header>
17405_ACEOF
17406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } >/dev/null; then
17414 if test -s conftest.err; then
17415 ac_cpp_err=$ac_cxx_preproc_warn_flag
17416 else
17417 ac_cpp_err=
17418 fi
17419else
17420 ac_cpp_err=yes
17421fi
17422if test -z "$ac_cpp_err"; then
17423 ac_header_preproc=yes
17424else
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ac_header_preproc=no
17429fi
17430rm -f conftest.err conftest.$ac_ext
17431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17432echo "${ECHO_T}$ac_header_preproc" >&6
17433
17434# So? What about this header?
17435case $ac_header_compiler:$ac_header_preproc in
17436 yes:no )
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17441 (
17442 cat <<\_ASBOX
17443## ------------------------------------ ##
17444## Report this to bug-autoconf@gnu.org. ##
17445## ------------------------------------ ##
17446_ASBOX
17447 ) |
17448 sed "s/^/$as_me: WARNING: /" >&2
17449 ;;
17450 no:yes )
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17457 (
17458 cat <<\_ASBOX
17459## ------------------------------------ ##
17460## Report this to bug-autoconf@gnu.org. ##
17461## ------------------------------------ ##
17462_ASBOX
17463 ) |
17464 sed "s/^/$as_me: WARNING: /" >&2
17465 ;;
17466esac
17467echo "$as_me:$LINENO: checking for $ac_header" >&5
17468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17469if eval "test \"\${$as_ac_Header+set}\" = set"; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17473fi
e6cc62c6
VS
17474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17476
90dd450c 17477fi
e6cc62c6
VS
17478if test `eval echo '${'$as_ac_Header'}'` = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17481_ACEOF
17482
90dd450c 17483fi
e6cc62c6 17484
21d1c967 17485done
10f2d63a 17486
8284b0c5 17487
21d1c967
GD
17488 if test "$ac_cv_header_iostream" = "yes" ; then
17489 :
17490 else
e6cc62c6 17491 cat >>confdefs.h <<\_ACEOF
21d1c967 17492#define wxUSE_IOSTREAMH 1
e6cc62c6 17493_ACEOF
788deba1 17494
90dd450c 17495 fi
ab9b9eab 17496
21d1c967 17497 ac_ext=c
21d1c967 17498ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17502
21d1c967 17503 fi
ab9b9eab 17504
52127426 17505
8284b0c5 17506
e6cc62c6
VS
17507 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17508echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17509if test "${wx_cv_cpp_bool+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17511else
e6cc62c6
VS
17512
17513
17514
17515 ac_ext=cc
5c6fa7d2 17516ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17520
8284b0c5 17521
e6cc62c6
VS
17522 cat >conftest.$ac_ext <<_ACEOF
17523#line $LINENO "configure"
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
21d1c967 17529
e6cc62c6
VS
17530
17531int
17532main ()
17533{
21d1c967
GD
17534
17535 bool b = true;
17536
17537 return 0;
e6cc62c6
VS
17538
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555
21d1c967 17556 wx_cv_cpp_bool=yes
e6cc62c6 17557
698dcdb6 17558else
e6cc62c6
VS
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562
21d1c967 17563 wx_cv_cpp_bool=no
e6cc62c6
VS
17564
17565
698dcdb6 17566fi
e6cc62c6 17567rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17568
17569 ac_ext=c
21d1c967 17570ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17574
a0b9e27f 17575
e6cc62c6
VS
17576fi
17577echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17578echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17579
17580 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17581 cat >>confdefs.h <<\_ACEOF
21d1c967 17582#define HAVE_BOOL 1
e6cc62c6 17583_ACEOF
ab9b9eab 17584
21d1c967
GD
17585 fi
17586
52127426 17587
8284b0c5 17588
e6cc62c6
VS
17589 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17590echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17591if test "${wx_cv_explicit+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17593else
e6cc62c6
VS
17594
17595
17596
17597 ac_ext=cc
5c6fa7d2 17598ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17602
8284b0c5 17603
e6cc62c6
VS
17604 cat >conftest.$ac_ext <<_ACEOF
17605#line $LINENO "configure"
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
986ecc86
VZ
17611
17612 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17613
17614int
17615main ()
17616{
986ecc86
VZ
17617
17618 return 0;
e6cc62c6
VS
17619
17620 ;
17621 return 0;
17622}
17623_ACEOF
17624rm -f conftest.$ac_objext
17625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } &&
17630 { ac_try='test -s conftest.$ac_objext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636
17637 cat >conftest.$ac_ext <<_ACEOF
17638#line $LINENO "configure"
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
986ecc86
VZ
17644
17645 class Foo { public: explicit Foo(int) {} };
17646 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17647
17648int
17649main ()
17650{
986ecc86
VZ
17651
17652 TakeFoo(17);
17653 return 0;
e6cc62c6
VS
17654
17655 ;
17656 return 0;
17657}
17658_ACEOF
17659rm -f conftest.$ac_objext
17660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17661 (eval $ac_compile) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
986ecc86
VZ
17671 wx_cv_explicit=no
17672else
e6cc62c6
VS
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676wx_cv_explicit=yes
17677
986ecc86 17678fi
e6cc62c6
VS
17679rm -f conftest.$ac_objext conftest.$ac_ext
17680
986ecc86 17681else
e6cc62c6
VS
17682 echo "$as_me: failed program was:" >&5
17683sed 's/^/| /' conftest.$ac_ext >&5
17684
17685wx_cv_explicit=no
17686
986ecc86 17687fi
e6cc62c6 17688rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17689
17690 ac_ext=c
986ecc86 17691ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17695
a0b9e27f 17696
e6cc62c6
VS
17697fi
17698echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17699echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17700
17701 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17702 cat >>confdefs.h <<\_ACEOF
986ecc86 17703#define HAVE_EXPLICIT 1
e6cc62c6 17704_ACEOF
986ecc86
VZ
17705
17706 fi
17707
8284b0c5 17708
e6cc62c6
VS
17709echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17710echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17711if test "${ac_cv_cxx_const_cast+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17713else
521196a2 17714
521196a2 17715
e6cc62c6
VS
17716 ac_ext=cc
17717ac_cpp='$CXXCPP $CPPFLAGS'
17718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722 cat >conftest.$ac_ext <<_ACEOF
17723#line $LINENO "configure"
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729
17730int
17731main ()
17732{
521196a2 17733int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext
17739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740 (eval $ac_compile) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
521196a2
MB
17750 ac_cv_cxx_const_cast=yes
17751else
e6cc62c6
VS
17752 echo "$as_me: failed program was:" >&5
17753sed 's/^/| /' conftest.$ac_ext >&5
17754
17755ac_cv_cxx_const_cast=no
521196a2 17756fi
e6cc62c6 17757rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17758 ac_ext=c
521196a2 17759ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17762ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17763
17764
17765fi
e6cc62c6
VS
17766echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17767echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17768if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17769
17770cat >>confdefs.h <<\_ACEOF
17771#define HAVE_CONST_CAST
17772_ACEOF
521196a2
MB
17773
17774fi
17775
17776
e87b7833
MB
17777if test "$wxUSE_STL" = "yes"; then
17778 ac_ext=cc
17779ac_cpp='$CXXCPP $CPPFLAGS'
17780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784
17785 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17786echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17788#line $LINENO "configure"
17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
17794#include <string>
17795 #include <functional>
17796 #include <algorithm>
17797 #include <vector>
17798 #include <list>
17799int
17800main ()
17801{
17802std::vector<int> moo;
17803 std::list<int> foo;
17804 std::vector<int>::iterator it =
17805 std::find_if(moo.begin(), moo.end(),
17806 std::bind2nd(std::less<int>(), 3));
17807 ;
17808 return 0;
17809}
17810_ACEOF
17811rm -f conftest.$ac_objext
17812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813 (eval $ac_compile) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -s conftest.$ac_objext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 echo "$as_me:$LINENO: result: yes" >&5
17824echo "${ECHO_T}yes" >&6
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829echo "$as_me:$LINENO: result: no" >&5
17830echo "${ECHO_T}no" >&6
17831 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17832echo "$as_me: error: Basic STL functionality missing" >&2;}
17833 { (exit 1); exit 1; }; }
17834fi
17835rm -f conftest.$ac_objext conftest.$ac_ext
17836
17837 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17838echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17839 cat >conftest.$ac_ext <<_ACEOF
17840#line $LINENO "configure"
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846#include <string>
17847int
17848main ()
17849{
17850std::wstring foo;
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 echo "$as_me:$LINENO: result: yes" >&5
17868echo "${ECHO_T}yes" >&6
17869 cat >>confdefs.h <<\_ACEOF
17870#define HAVE_STD_WSTRING 1
17871_ACEOF
17872
17873else
17874 echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877echo "$as_me:$LINENO: result: no" >&5
17878echo "${ECHO_T}no" >&6
17879fi
17880rm -f conftest.$ac_objext conftest.$ac_ext
17881
17882 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17883echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17884 cat >conftest.$ac_ext <<_ACEOF
17885#line $LINENO "configure"
17886/* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
17891#include <string>
17892int
17893main ()
17894{
17895std::string foo, bar;
17896 foo.compare(bar);
17897 foo.compare(1, 1, bar);
17898 foo.compare(1, 1, bar, 1, 1);
17899 foo.compare("");
17900 foo.compare(1, 1, "");
17901 foo.compare(1, 1, "", 2);
17902 ;
17903 return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext
17907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 echo "$as_me:$LINENO: result: yes" >&5
17919echo "${ECHO_T}yes" >&6
17920 cat >>confdefs.h <<\_ACEOF
17921#define HAVE_STD_STRING_COMPARE 1
17922_ACEOF
17923
17924else
17925 echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928echo "$as_me:$LINENO: result: no" >&5
17929echo "${ECHO_T}no" >&6
17930fi
17931rm -f conftest.$ac_objext conftest.$ac_ext
17932
17933 ac_ext=c
17934ac_cpp='$CPP $CPPFLAGS'
17935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937ac_compiler_gnu=$ac_cv_c_compiler_gnu
17938
17939fi
17940
8284b0c5 17941
21d1c967
GD
17942SEARCH_INCLUDE="\
17943 /usr/local/include \
17944 \
17945 /usr/Motif-1.2/include \
17946 /usr/Motif-2.1/include \
17947 \
17948 /usr/include/Motif1.2 \
17949 /opt/xpm/include/X11 \
17950 /opt/GBxpm/include/ \
17951 /opt/GBxpm/X11/include/ \
17952 \
17953 /usr/Motif1.2/include \
17954 /usr/dt/include \
17955 /usr/openwin/include \
17956 \
17957 /usr/include/Xm \
17958 \
17959 /usr/X11R6/include \
17960 /usr/X11R6.4/include \
17961 /usr/X11R5/include \
17962 /usr/X11R4/include \
17963 \
17964 /usr/include/X11R6 \
17965 /usr/include/X11R5 \
17966 /usr/include/X11R4 \
17967 \
17968 /usr/local/X11R6/include \
17969 /usr/local/X11R5/include \
17970 /usr/local/X11R4/include \
17971 \
17972 /usr/local/include/X11R6 \
17973 /usr/local/include/X11R5 \
17974 /usr/local/include/X11R4 \
17975 \
17976 /usr/X11/include \
17977 /usr/include/X11 \
17978 /usr/local/X11/include \
17979 /usr/local/include/X11 \
17980 \
17981 /usr/X386/include \
17982 /usr/x386/include \
17983 /usr/XFree86/include/X11 \
17984 \
17985 X:/XFree86/include \
17986 X:/XFree86/include/X11 \
17987 \
17988 /usr/include/gtk \
17989 /usr/local/include/gtk \
17990 /usr/include/glib \
17991 /usr/local/include/glib \
17992 \
17993 /usr/include/qt \
17994 /usr/local/include/qt \
17995 \
17996 /usr/include/windows \
17997 /usr/include/wine \
17998 /usr/local/include/wine \
17999 \
18000 /usr/unsupported/include \
18001 /usr/athena/include \
18002 /usr/local/x11r5/include \
18003 /usr/lpp/Xamples/include \
18004 \
2b5f62a0 18005 /usr/openwin/share/include"
21d1c967
GD
18006
18007SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18008
8284b0c5 18009
e6cc62c6 18010cat >confcache <<\_ACEOF
21d1c967
GD
18011# This file is a shell script that caches the results of configure
18012# tests run on this system so they can be shared between configure
e6cc62c6
VS
18013# scripts and configure runs, see configure's option --config-cache.
18014# It is not useful on other systems. If it contains results you don't
18015# want to keep, you may remove or edit it.
21d1c967 18016#
e6cc62c6
VS
18017# config.status only pays attention to the cache file if you give it
18018# the --recheck option to rerun configure.
21d1c967 18019#
e6cc62c6
VS
18020# `ac_cv_env_foo' variables (set or unset) will be overridden when
18021# loading this file, other *unset* `ac_cv_foo' will be assigned the
18022# following values.
18023
18024_ACEOF
18025
21d1c967
GD
18026# The following way of writing the cache mishandles newlines in values,
18027# but we know of no workaround that is simple, portable, and efficient.
18028# So, don't put newlines in cache variables' values.
18029# Ultrix sh set writes to stderr and can't be redirected directly,
18030# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18031{
18032 (set) 2>&1 |
18033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18034 *ac_space=\ *)
18035 # `set' does not quote correctly, so add quotes (double-quote
18036 # substitution turns \\\\ into \\, and sed turns \\ into \).
18037 sed -n \
18038 "s/'/'\\\\''/g;
18039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18040 ;;
18041 *)
18042 # `set' quotes correctly as required by POSIX, so do not add quotes.
18043 sed -n \
18044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18045 ;;
18046 esac;
18047} |
18048 sed '
18049 t clear
18050 : clear
18051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18052 t end
18053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18054 : end' >>confcache
18055if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18056 if test -w $cache_file; then
e6cc62c6
VS
18057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18058 cat confcache >$cache_file
21d1c967
GD
18059 else
18060 echo "not updating unwritable cache $cache_file"
18061 fi
ab9b9eab 18062fi
21d1c967 18063rm -f confcache
ab9b9eab 18064
fe0895cf 18065if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18066 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18067echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18068if test "${wx_cv_lib_glibc21+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18070else
18071
18072 cat >conftest.$ac_ext <<_ACEOF
18073#line $LINENO "configure"
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
21d1c967 18079#include <features.h>
e6cc62c6
VS
18080int
18081main ()
18082{
ab9b9eab 18083
21d1c967
GD
18084 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18085 #error not glibc2.1
18086 #endif
e6cc62c6
VS
18087
18088 ;
18089 return 0;
18090}
18091_ACEOF
18092rm -f conftest.$ac_objext
18093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104
21d1c967 18105 wx_cv_lib_glibc21=yes
e6cc62c6 18106
698dcdb6 18107else
e6cc62c6
VS
18108 echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111
21d1c967 18112 wx_cv_lib_glibc21=no
e6cc62c6
VS
18113
18114
247f5006 18115fi
e6cc62c6 18116rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18117
e6cc62c6
VS
18118fi
18119echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18120echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18121 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18122 cat >>confdefs.h <<\_ACEOF
21d1c967 18123#define wxHAVE_GLIBC2 1
e6cc62c6 18124_ACEOF
1e487827 18125
90dd450c 18126 fi
ab9b9eab
VZ
18127fi
18128
5c0a20c3
VZ
18129if test "x$wx_cv_lib_glibc21" = "xyes"; then
18130 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18131 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18132#define _GNU_SOURCE 1
e6cc62c6 18133_ACEOF
5c0a20c3
VZ
18134
18135 fi
18136fi
18137
8284b0c5
MB
18138
18139
21d1c967
GD
18140REGEX_INCLUDE=
18141if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18142 cat >>confdefs.h <<\_ACEOF
21d1c967 18143#define wxUSE_REGEX 1
e6cc62c6 18144_ACEOF
698dcdb6 18145
8284b0c5 18146
21d1c967 18147 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18148 if test "${ac_cv_header_regex_h+set}" = set; then
18149 echo "$as_me:$LINENO: checking for regex.h" >&5
18150echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18151if test "${ac_cv_header_regex_h+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153fi
18154echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18155echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18156else
18157 # Is the header compilable?
18158echo "$as_me:$LINENO: checking regex.h usability" >&5
18159echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18160cat >conftest.$ac_ext <<_ACEOF
18161#line $LINENO "configure"
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
18167$ac_includes_default
247f5006 18168#include <regex.h>
e6cc62c6
VS
18169_ACEOF
18170rm -f conftest.$ac_objext
18171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -s conftest.$ac_objext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_header_compiler=yes
18183else
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187ac_header_compiler=no
18188fi
18189rm -f conftest.$ac_objext conftest.$ac_ext
18190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18191echo "${ECHO_T}$ac_header_compiler" >&6
18192
18193# Is the header present?
18194echo "$as_me:$LINENO: checking regex.h presence" >&5
18195echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18196cat >conftest.$ac_ext <<_ACEOF
18197#line $LINENO "configure"
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
18203#include <regex.h>
18204_ACEOF
18205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } >/dev/null; then
18213 if test -s conftest.err; then
18214 ac_cpp_err=$ac_c_preproc_warn_flag
18215 else
18216 ac_cpp_err=
18217 fi
18218else
18219 ac_cpp_err=yes
18220fi
18221if test -z "$ac_cpp_err"; then
18222 ac_header_preproc=yes
18223else
18224 echo "$as_me: failed program was:" >&5
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 ac_header_preproc=no
18228fi
18229rm -f conftest.err conftest.$ac_ext
18230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18231echo "${ECHO_T}$ac_header_preproc" >&6
18232
18233# So? What about this header?
18234case $ac_header_compiler:$ac_header_preproc in
18235 yes:no )
18236 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18237echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18239echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18240 (
18241 cat <<\_ASBOX
18242## ------------------------------------ ##
18243## Report this to bug-autoconf@gnu.org. ##
18244## ------------------------------------ ##
18245_ASBOX
18246 ) |
18247 sed "s/^/$as_me: WARNING: /" >&2
18248 ;;
18249 no:yes )
18250 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18251echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18252 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18253echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18255echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18256 (
18257 cat <<\_ASBOX
18258## ------------------------------------ ##
18259## Report this to bug-autoconf@gnu.org. ##
18260## ------------------------------------ ##
18261_ASBOX
18262 ) |
18263 sed "s/^/$as_me: WARNING: /" >&2
18264 ;;
18265esac
18266echo "$as_me:$LINENO: checking for regex.h" >&5
18267echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18268if test "${ac_cv_header_regex_h+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270else
18271 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18272fi
e6cc62c6
VS
18273echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18274echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18275
698dcdb6 18276fi
e6cc62c6
VS
18277if test $ac_cv_header_regex_h = yes; then
18278
18279for ac_func in regcomp
21d1c967 18280do
e6cc62c6
VS
18281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18282echo "$as_me:$LINENO: checking for $ac_func" >&5
18283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18284if eval "test \"\${$as_ac_var+set}\" = set"; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287 cat >conftest.$ac_ext <<_ACEOF
18288#line $LINENO "configure"
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
a0b9e27f 18294/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18295 which can conflict with char $ac_func (); below.
18296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297 <limits.h> exists even on freestanding compilers. */
18298#ifdef __STDC__
18299# include <limits.h>
18300#else
18301# include <assert.h>
18302#endif
21d1c967 18303/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18304#ifdef __cplusplus
18305extern "C"
18306{
18307#endif
21d1c967 18308/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18309 builtin and then its argument prototype would still apply. */
18310char $ac_func ();
21d1c967
GD
18311/* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18315choke me
18316#else
e6cc62c6
VS
18317char (*f) () = $ac_func;
18318#endif
18319#ifdef __cplusplus
18320}
21d1c967 18321#endif
90dd450c 18322
e6cc62c6
VS
18323int
18324main ()
18325{
18326return f != $ac_func;
18327 ;
18328 return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext conftest$ac_exeext
18332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18344else
18345 echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348eval "$as_ac_var=no"
18349fi
18350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18351fi
18352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18354if test `eval echo '${'$as_ac_var'}'` = yes; then
18355 cat >>confdefs.h <<_ACEOF
18356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18357_ACEOF
5c6fa7d2 18358
698dcdb6 18359fi
21d1c967
GD
18360done
18361
ab9b9eab
VZ
18362fi
18363
8284b0c5 18364
e6cc62c6 18365
21d1c967
GD
18366 if test "x$ac_cv_func_regcomp" != "xyes"; then
18367 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18368 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18369echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18370 { (exit 1); exit 1; }; }
21d1c967 18371 else
e6cc62c6
VS
18372 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18373echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18374 wxUSE_REGEX=builtin
18375 fi
18376 else
18377 wxUSE_REGEX=sys
18378 fi
ab9b9eab 18379 fi
90dd450c 18380
21d1c967
GD
18381 if test "$wxUSE_REGEX" = "builtin" ; then
18382 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18383 fi
21d1c967 18384fi
90dd450c 18385
8284b0c5 18386
21d1c967
GD
18387ZLIB_INCLUDE=
18388ZLIB_LINK=
18389if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18390 cat >>confdefs.h <<\_ACEOF
21d1c967 18391#define wxUSE_ZLIB 1
e6cc62c6 18392_ACEOF
21d1c967 18393
8284b0c5 18394
21d1c967 18395 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18396 if test "$USE_DARWIN" = 1; then
18397 system_zlib_h_ok="yes"
18398 else
e6cc62c6
VS
18399 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18400echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18401if test "${ac_cv_header_zlib_h+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18403else
18404 if test "$cross_compiling" = yes; then
89e6bf6d 18405 unset ac_cv_header_zlib_h
e6cc62c6 18406
d643b80e 18407else
e6cc62c6
VS
18408 cat >conftest.$ac_ext <<_ACEOF
18409#line $LINENO "configure"
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415
ef33c576 18416 #include <zlib.h>
d775acfa 18417 #include <stdio.h>
d643b80e 18418
d775acfa
VZ
18419 int main()
18420 {
18421 FILE *f=fopen("conftestval", "w");
18422 if (!f) exit(1);
18423 fprintf(f, "%s",
18424 ZLIB_VERSION[0] == '1' &&
18425 (ZLIB_VERSION[2] > '1' ||
18426 (ZLIB_VERSION[2] == '1' &&
18427 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18428 exit(0);
18429 }
e6cc62c6
VS
18430
18431_ACEOF
18432rm -f conftest$ac_exeext
18433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
d643b80e
VZ
18443 ac_cv_header_zlib_h=`cat conftestval`
18444else
e6cc62c6
VS
18445 echo "$as_me: program exited with status $ac_status" >&5
18446echo "$as_me: failed program was:" >&5
18447sed 's/^/| /' conftest.$ac_ext >&5
18448
18449( exit $ac_status )
18450ac_cv_header_zlib_h=no
d643b80e 18451fi
e6cc62c6 18452rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18453fi
18454
d643b80e 18455fi
e6cc62c6
VS
18456echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18457echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18458 if test "${ac_cv_header_zlib_h+set}" = set; then
18459 echo "$as_me:$LINENO: checking for zlib.h" >&5
18460echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18461if test "${ac_cv_header_zlib_h+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463fi
18464echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18465echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18466else
e6cc62c6
VS
18467 # Is the header compilable?
18468echo "$as_me:$LINENO: checking zlib.h usability" >&5
18469echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18470cat >conftest.$ac_ext <<_ACEOF
18471#line $LINENO "configure"
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
18477$ac_includes_default
89e6bf6d 18478#include <zlib.h>
e6cc62c6
VS
18479_ACEOF
18480rm -f conftest.$ac_objext
18481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482 (eval $ac_compile) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -s conftest.$ac_objext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_header_compiler=yes
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497ac_header_compiler=no
18498fi
18499rm -f conftest.$ac_objext conftest.$ac_ext
18500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18501echo "${ECHO_T}$ac_header_compiler" >&6
18502
18503# Is the header present?
18504echo "$as_me:$LINENO: checking zlib.h presence" >&5
18505echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18506cat >conftest.$ac_ext <<_ACEOF
18507#line $LINENO "configure"
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513#include <zlib.h>
18514_ACEOF
18515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } >/dev/null; then
18523 if test -s conftest.err; then
18524 ac_cpp_err=$ac_c_preproc_warn_flag
18525 else
18526 ac_cpp_err=
18527 fi
18528else
18529 ac_cpp_err=yes
18530fi
18531if test -z "$ac_cpp_err"; then
18532 ac_header_preproc=yes
18533else
18534 echo "$as_me: failed program was:" >&5
18535sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 ac_header_preproc=no
18538fi
18539rm -f conftest.err conftest.$ac_ext
18540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18541echo "${ECHO_T}$ac_header_preproc" >&6
18542
18543# So? What about this header?
18544case $ac_header_compiler:$ac_header_preproc in
18545 yes:no )
18546 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18547echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18548 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18549echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18550 (
18551 cat <<\_ASBOX
18552## ------------------------------------ ##
18553## Report this to bug-autoconf@gnu.org. ##
18554## ------------------------------------ ##
18555_ASBOX
18556 ) |
18557 sed "s/^/$as_me: WARNING: /" >&2
18558 ;;
18559 no:yes )
18560 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18561echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18563echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18565echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18566 (
18567 cat <<\_ASBOX
18568## ------------------------------------ ##
18569## Report this to bug-autoconf@gnu.org. ##
18570## ------------------------------------ ##
18571_ASBOX
18572 ) |
18573 sed "s/^/$as_me: WARNING: /" >&2
18574 ;;
18575esac
18576echo "$as_me:$LINENO: checking for zlib.h" >&5
18577echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18578if test "${ac_cv_header_zlib_h+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18580else
e6cc62c6
VS
18581 ac_cv_header_zlib_h=$ac_header_preproc
18582fi
18583echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18584echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18585
89e6bf6d
VZ
18586fi
18587
d643b80e 18588
e6cc62c6 18589
d775acfa
VZ
18590 system_zlib_h_ok=$ac_cv_header_zlib_h
18591 fi
18592
18593 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18594 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18595echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18596if test "${ac_cv_lib_z_deflate+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18598else
e6cc62c6 18599 ac_check_lib_save_LIBS=$LIBS
21d1c967 18600LIBS="-lz $LIBS"
e6cc62c6
VS
18601cat >conftest.$ac_ext <<_ACEOF
18602#line $LINENO "configure"
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608
21d1c967 18609/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18610#ifdef __cplusplus
18611extern "C"
18612#endif
21d1c967 18613/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18614 builtin and then its argument prototype would still apply. */
18615char deflate ();
18616int
18617main ()
18618{
18619deflate ();
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext conftest$ac_exeext
18625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626 (eval $ac_link) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -s conftest$ac_exeext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_lib_z_deflate=yes
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641ac_cv_lib_z_deflate=no
18642fi
18643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18644LIBS=$ac_check_lib_save_LIBS
18645fi
18646echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18647echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18648if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18649 ZLIB_LINK=" -lz"
a0b9e27f 18650fi
698dcdb6 18651
d643b80e 18652 fi
247f5006 18653
21d1c967
GD
18654 if test "x$ZLIB_LINK" = "x" ; then
18655 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18656 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18657echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18658 { (exit 1); exit 1; }; }
21d1c967 18659 else
e6cc62c6
VS
18660 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18661echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18662 wxUSE_ZLIB=builtin
18663 fi
18664 else
18665 wxUSE_ZLIB=sys
18666 fi
18667 fi
18668
18669 if test "$wxUSE_ZLIB" = "builtin" ; then
18670 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18671 fi
ab9b9eab
VZ
18672fi
18673
8284b0c5 18674
21d1c967
GD
18675PNG_INCLUDE=
18676PNG_LINK=
18677if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18678 cat >>confdefs.h <<\_ACEOF
21d1c967 18679#define wxUSE_LIBPNG 1
e6cc62c6 18680_ACEOF
90dd450c 18681
8284b0c5 18682
21d1c967 18683 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18684 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18685echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18686 wxUSE_LIBPNG=sys
18687 fi
90dd450c 18688
21d1c967 18689 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18690 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18691echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18692 wxUSE_LIBPNG=builtin
18693 fi
18694
18695 if test "$wxUSE_MGL" != 1 ; then
18696 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18697 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18698echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18699if test "${ac_cv_header_png_h+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18701else
18702 if test "$cross_compiling" = yes; then
89e6bf6d 18703 unset ac_cv_header_png_h
e6cc62c6 18704
5d3f766d 18705else
e6cc62c6
VS
18706 cat >conftest.$ac_ext <<_ACEOF
18707#line $LINENO "configure"
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
18713
ef33c576 18714 #include <png.h>
5d3f766d
VZ
18715 #include <stdio.h>
18716
18717 int main()
18718 {
18719 FILE *f=fopen("conftestval", "w");
18720 if (!f) exit(1);
18721 fprintf(f, "%s",
18722 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18723 exit(0);
18724 }
e6cc62c6
VS
18725
18726_ACEOF
18727rm -f conftest$ac_exeext
18728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
5d3f766d
VZ
18738 ac_cv_header_png_h=`cat conftestval`
18739else
e6cc62c6
VS
18740 echo "$as_me: program exited with status $ac_status" >&5
18741echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744( exit $ac_status )
18745ac_cv_header_png_h=no
5d3f766d 18746fi
e6cc62c6 18747rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18748fi
18749
5d3f766d 18750fi
e6cc62c6
VS
18751echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18752echo "${ECHO_T}$ac_cv_header_png_h" >&6
18753 if test "${ac_cv_header_png_h+set}" = set; then
18754 echo "$as_me:$LINENO: checking for png.h" >&5
18755echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18756if test "${ac_cv_header_png_h+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758fi
18759echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18760echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18761else
e6cc62c6
VS
18762 # Is the header compilable?
18763echo "$as_me:$LINENO: checking png.h usability" >&5
18764echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18765cat >conftest.$ac_ext <<_ACEOF
18766#line $LINENO "configure"
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
89e6bf6d 18773#include <png.h>
e6cc62c6
VS
18774_ACEOF
18775rm -f conftest.$ac_objext
18776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -s conftest.$ac_objext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_header_compiler=yes
18788else
18789 echo "$as_me: failed program was:" >&5
18790sed 's/^/| /' conftest.$ac_ext >&5
18791
18792ac_header_compiler=no
18793fi
18794rm -f conftest.$ac_objext conftest.$ac_ext
18795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18796echo "${ECHO_T}$ac_header_compiler" >&6
18797
18798# Is the header present?
18799echo "$as_me:$LINENO: checking png.h presence" >&5
18800echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18801cat >conftest.$ac_ext <<_ACEOF
18802#line $LINENO "configure"
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808#include <png.h>
18809_ACEOF
18810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } >/dev/null; then
18818 if test -s conftest.err; then
18819 ac_cpp_err=$ac_c_preproc_warn_flag
18820 else
18821 ac_cpp_err=
18822 fi
18823else
18824 ac_cpp_err=yes
18825fi
18826if test -z "$ac_cpp_err"; then
18827 ac_header_preproc=yes
18828else
18829 echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_header_preproc=no
18833fi
18834rm -f conftest.err conftest.$ac_ext
18835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836echo "${ECHO_T}$ac_header_preproc" >&6
18837
18838# So? What about this header?
18839case $ac_header_compiler:$ac_header_preproc in
18840 yes:no )
18841 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18842echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18844echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18845 (
18846 cat <<\_ASBOX
18847## ------------------------------------ ##
18848## Report this to bug-autoconf@gnu.org. ##
18849## ------------------------------------ ##
18850_ASBOX
18851 ) |
18852 sed "s/^/$as_me: WARNING: /" >&2
18853 ;;
18854 no:yes )
18855 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18856echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18858echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18859 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18860echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18861 (
18862 cat <<\_ASBOX
18863## ------------------------------------ ##
18864## Report this to bug-autoconf@gnu.org. ##
18865## ------------------------------------ ##
18866_ASBOX
18867 ) |
18868 sed "s/^/$as_me: WARNING: /" >&2
18869 ;;
18870esac
18871echo "$as_me:$LINENO: checking for png.h" >&5
18872echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18873if test "${ac_cv_header_png_h+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18875else
e6cc62c6
VS
18876 ac_cv_header_png_h=$ac_header_preproc
18877fi
18878echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18879echo "${ECHO_T}$ac_cv_header_png_h" >&6
18880
89e6bf6d
VZ
18881fi
18882
5d3f766d 18883
e6cc62c6 18884
5d3f766d 18885 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18886 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18887echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18888if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18890else
e6cc62c6 18891 ac_check_lib_save_LIBS=$LIBS
21d1c967 18892LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18893cat >conftest.$ac_ext <<_ACEOF
18894#line $LINENO "configure"
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
18900
21d1c967 18901/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18902#ifdef __cplusplus
18903extern "C"
18904#endif
21d1c967 18905/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18906 builtin and then its argument prototype would still apply. */
18907char png_check_sig ();
18908int
18909main ()
18910{
18911png_check_sig ();
18912 ;
18913 return 0;
18914}
18915_ACEOF
18916rm -f conftest.$ac_objext conftest$ac_exeext
18917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18918 (eval $ac_link) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_cv_lib_png_png_check_sig=yes
18929else
18930 echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933ac_cv_lib_png_png_check_sig=no
18934fi
18935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18936LIBS=$ac_check_lib_save_LIBS
18937fi
18938echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18939echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18940if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18941 PNG_LINK=" -lpng"
a0b9e27f 18942fi
90dd450c 18943
5d3f766d 18944 fi
247f5006 18945
21d1c967
GD
18946 if test "x$PNG_LINK" = "x" ; then
18947 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18948 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18949echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18950 { (exit 1); exit 1; }; }
21d1c967 18951 else
e6cc62c6
VS
18952 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18953echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18954 wxUSE_LIBPNG=builtin
18955 fi
18956 else
2b5f62a0 18957 wxUSE_LIBPNG=sys
21d1c967
GD
18958 fi
18959 fi
18960 fi
90dd450c 18961
21d1c967
GD
18962 if test "$wxUSE_LIBPNG" = "builtin" ; then
18963 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18964 fi
90dd450c 18965
21d1c967 18966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18967fi
18968
8284b0c5 18969
21d1c967
GD
18970JPEG_INCLUDE=
18971JPEG_LINK=
18972if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18973 cat >>confdefs.h <<\_ACEOF
21d1c967 18974#define wxUSE_LIBJPEG 1
e6cc62c6 18975_ACEOF
90dd450c 18976
8284b0c5 18977
21d1c967 18978 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18979 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18980echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18981 wxUSE_LIBJPEG=sys
18982 fi
90dd450c 18983
21d1c967
GD
18984 if test "$wxUSE_MGL" != 1 ; then
18985 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18986 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18987echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18988 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 cat >conftest.$ac_ext <<_ACEOF
18992#line $LINENO "configure"
18993/* confdefs.h. */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h. */
90dd450c 18998
21d1c967
GD
18999 #undef HAVE_STDLIB_H
19000 #include <stdio.h>
19001 #include <jpeglib.h>
90dd450c 19002
e6cc62c6
VS
19003int
19004main ()
19005{
19006
19007
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext
19013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014 (eval $ac_compile) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
21d1c967 19024 ac_cv_header_jpeglib_h=yes
90dd450c 19025else
e6cc62c6
VS
19026 echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029ac_cv_header_jpeglib_h=no
19030
90dd450c 19031fi
e6cc62c6
VS
19032rm -f conftest.$ac_objext conftest.$ac_ext
19033
90dd450c
VZ
19034fi
19035
e6cc62c6
VS
19036 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19037echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19038
21d1c967 19039 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19040 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19041echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19042if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19044else
e6cc62c6 19045 ac_check_lib_save_LIBS=$LIBS
21d1c967 19046LIBS="-ljpeg $LIBS"
e6cc62c6
VS
19047cat >conftest.$ac_ext <<_ACEOF
19048#line $LINENO "configure"
19049/* confdefs.h. */
19050_ACEOF
19051cat confdefs.h >>conftest.$ac_ext
19052cat >>conftest.$ac_ext <<_ACEOF
19053/* end confdefs.h. */
19054
21d1c967 19055/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19056#ifdef __cplusplus
19057extern "C"
19058#endif
21d1c967 19059/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19060 builtin and then its argument prototype would still apply. */
19061char jpeg_read_header ();
19062int
19063main ()
19064{
19065jpeg_read_header ();
19066 ;
19067 return 0;
19068}
19069_ACEOF
19070rm -f conftest.$ac_objext conftest$ac_exeext
19071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19072 (eval $ac_link) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_jpeg_jpeg_read_header=yes
19083else
19084 echo "$as_me: failed program was:" >&5
19085sed 's/^/| /' conftest.$ac_ext >&5
19086
19087ac_cv_lib_jpeg_jpeg_read_header=no
19088fi
19089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19090LIBS=$ac_check_lib_save_LIBS
19091fi
19092echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19093echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19094if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19095 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19096fi
19097
21d1c967 19098 fi
90dd450c 19099
21d1c967
GD
19100 if test "x$JPEG_LINK" = "x" ; then
19101 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19102 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19103echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19104 { (exit 1); exit 1; }; }
21d1c967 19105 else
e6cc62c6
VS
19106 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19107echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19108 wxUSE_LIBJPEG=builtin
19109 fi
19110 else
19111 wxUSE_LIBJPEG=sys
19112 fi
19113 fi
19114 fi
90dd450c 19115
21d1c967
GD
19116 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19117 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19118 fi
19119fi
90dd450c 19120
8284b0c5 19121
21d1c967
GD
19122TIFF_INCLUDE=
19123TIFF_LINK=
2b5f62a0 19124TIFF_PREREQ_LINKS=-lm
21d1c967 19125if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19126 cat >>confdefs.h <<\_ACEOF
21d1c967 19127#define wxUSE_LIBTIFF 1
e6cc62c6 19128_ACEOF
21d1c967 19129
8284b0c5 19130
21d1c967 19131 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19132 if test "$wxUSE_LIBJPEG" = "sys"; then
19133 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19134 fi
19135 if test "$wxUSE_ZLIB" = "sys"; then
19136 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19137 fi
e6cc62c6
VS
19138 if test "${ac_cv_header_tiffio_h+set}" = set; then
19139 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19140echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19141if test "${ac_cv_header_tiffio_h+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143fi
19144echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19145echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19146else
19147 # Is the header compilable?
19148echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19149echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19150cat >conftest.$ac_ext <<_ACEOF
19151#line $LINENO "configure"
19152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
19157$ac_includes_default
247f5006 19158#include <tiffio.h>
e6cc62c6
VS
19159_ACEOF
19160rm -f conftest.$ac_objext
19161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -s conftest.$ac_objext'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_header_compiler=yes
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177ac_header_compiler=no
19178fi
19179rm -f conftest.$ac_objext conftest.$ac_ext
19180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181echo "${ECHO_T}$ac_header_compiler" >&6
19182
19183# Is the header present?
19184echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19185echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19186cat >conftest.$ac_ext <<_ACEOF
19187#line $LINENO "configure"
19188/* confdefs.h. */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h. */
19193#include <tiffio.h>
19194_ACEOF
19195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } >/dev/null; then
19203 if test -s conftest.err; then
19204 ac_cpp_err=$ac_c_preproc_warn_flag
19205 else
19206 ac_cpp_err=
19207 fi
19208else
19209 ac_cpp_err=yes
19210fi
19211if test -z "$ac_cpp_err"; then
19212 ac_header_preproc=yes
19213else
19214 echo "$as_me: failed program was:" >&5
19215sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_header_preproc=no
19218fi
19219rm -f conftest.err conftest.$ac_ext
19220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221echo "${ECHO_T}$ac_header_preproc" >&6
19222
19223# So? What about this header?
19224case $ac_header_compiler:$ac_header_preproc in
19225 yes:no )
19226 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19227echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19228 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19229echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19230 (
19231 cat <<\_ASBOX
19232## ------------------------------------ ##
19233## Report this to bug-autoconf@gnu.org. ##
19234## ------------------------------------ ##
19235_ASBOX
19236 ) |
19237 sed "s/^/$as_me: WARNING: /" >&2
19238 ;;
19239 no:yes )
19240 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19241echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19243echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19244 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19245echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19246 (
19247 cat <<\_ASBOX
19248## ------------------------------------ ##
19249## Report this to bug-autoconf@gnu.org. ##
19250## ------------------------------------ ##
19251_ASBOX
19252 ) |
19253 sed "s/^/$as_me: WARNING: /" >&2
19254 ;;
19255esac
19256echo "$as_me:$LINENO: checking for tiffio.h" >&5
19257echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19258if test "${ac_cv_header_tiffio_h+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19262fi
e6cc62c6
VS
19263echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19264echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19265
21d1c967 19266fi
e6cc62c6
VS
19267if test $ac_cv_header_tiffio_h = yes; then
19268 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19269echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19270if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19272else
e6cc62c6 19273 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19274LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19275cat >conftest.$ac_ext <<_ACEOF
19276#line $LINENO "configure"
19277/* confdefs.h. */
19278_ACEOF
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
19281/* end confdefs.h. */
19282
ab9b9eab 19283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19284#ifdef __cplusplus
19285extern "C"
19286#endif
ab9b9eab 19287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19288 builtin and then its argument prototype would still apply. */
19289char TIFFError ();
19290int
19291main ()
19292{
19293TIFFError ();
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext conftest$ac_exeext
19299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_tiff_TIFFError=yes
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315ac_cv_lib_tiff_TIFFError=no
19316fi
19317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19318LIBS=$ac_check_lib_save_LIBS
19319fi
19320echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19321echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19322if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19323 TIFF_LINK=" -ltiff"
a0b9e27f 19324fi
cd6d6d5b 19325
e6cc62c6 19326
a0b9e27f 19327fi
8284b0c5 19328
247f5006 19329
e6cc62c6 19330
21d1c967
GD
19331 if test "x$TIFF_LINK" = "x" ; then
19332 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19333 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19334echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19335 { (exit 1); exit 1; }; }
90dd450c 19336 else
e6cc62c6
VS
19337 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19338echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19339 wxUSE_LIBTIFF=builtin
d8356fa3 19340 fi
d8356fa3 19341 else
21d1c967 19342 wxUSE_LIBTIFF=sys
d8356fa3 19343 fi
21d1c967 19344 fi
d8356fa3 19345
21d1c967
GD
19346 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19347 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19348 fi
21d1c967 19349fi
10f2d63a 19350
8284b0c5 19351
672abd7a 19352if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19353 wxUSE_XML=yes
672abd7a
VS
19354 cat >>confdefs.h <<\_ACEOF
19355#define wxUSE_EXPAT 1
19356_ACEOF
19357
19358 cat >>confdefs.h <<\_ACEOF
19359#define wxUSE_XML 1
19360_ACEOF
19361
19362
19363 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19364 if test "${ac_cv_header_expat_h+set}" = set; then
19365 echo "$as_me:$LINENO: checking for expat.h" >&5
19366echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19367if test "${ac_cv_header_expat_h+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369fi
19370echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19371echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19372else
19373 # Is the header compilable?
19374echo "$as_me:$LINENO: checking expat.h usability" >&5
19375echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19376cat >conftest.$ac_ext <<_ACEOF
19377#line $LINENO "configure"
19378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
19383$ac_includes_default
19384#include <expat.h>
19385_ACEOF
19386rm -f conftest.$ac_objext
19387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19388 (eval $ac_compile) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 ac_header_compiler=yes
19399else
19400 echo "$as_me: failed program was:" >&5
19401sed 's/^/| /' conftest.$ac_ext >&5
19402
19403ac_header_compiler=no
19404fi
19405rm -f conftest.$ac_objext conftest.$ac_ext
19406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19407echo "${ECHO_T}$ac_header_compiler" >&6
19408
19409# Is the header present?
19410echo "$as_me:$LINENO: checking expat.h presence" >&5
19411echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19412cat >conftest.$ac_ext <<_ACEOF
19413#line $LINENO "configure"
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419#include <expat.h>
19420_ACEOF
19421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } >/dev/null; then
19429 if test -s conftest.err; then
19430 ac_cpp_err=$ac_c_preproc_warn_flag
19431 else
19432 ac_cpp_err=
19433 fi
19434else
19435 ac_cpp_err=yes
19436fi
19437if test -z "$ac_cpp_err"; then
19438 ac_header_preproc=yes
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_header_preproc=no
19444fi
19445rm -f conftest.err conftest.$ac_ext
19446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19447echo "${ECHO_T}$ac_header_preproc" >&6
19448
19449# So? What about this header?
19450case $ac_header_compiler:$ac_header_preproc in
19451 yes:no )
19452 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19453echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19455echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19456 (
19457 cat <<\_ASBOX
19458## ------------------------------------ ##
19459## Report this to bug-autoconf@gnu.org. ##
19460## ------------------------------------ ##
19461_ASBOX
19462 ) |
19463 sed "s/^/$as_me: WARNING: /" >&2
19464 ;;
19465 no:yes )
19466 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19467echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19469echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19471echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19472 (
19473 cat <<\_ASBOX
19474## ------------------------------------ ##
19475## Report this to bug-autoconf@gnu.org. ##
19476## ------------------------------------ ##
19477_ASBOX
19478 ) |
19479 sed "s/^/$as_me: WARNING: /" >&2
19480 ;;
19481esac
19482echo "$as_me:$LINENO: checking for expat.h" >&5
19483echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19484if test "${ac_cv_header_expat_h+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
19487 ac_cv_header_expat_h=$ac_header_preproc
19488fi
19489echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19490echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19491
19492fi
5f0b6dff
VS
19493if test $ac_cv_header_expat_h = yes; then
19494 found_expat_h=1
19495fi
19496
19497
19498 if test "x$found_expat_h" = "x1"; then
19499 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19500echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19501if test "${wx_cv_expat_is_not_broken+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503else
19504
19505
672abd7a 19506
5f0b6dff
VS
19507 ac_ext=cc
19508ac_cpp='$CXXCPP $CPPFLAGS'
19509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513 cat >conftest.$ac_ext <<_ACEOF
19514#line $LINENO "configure"
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520#include <expat.h>
19521int
19522main ()
19523{
672abd7a 19524
5f0b6dff
VS
19525 ;
19526 return 0;
19527}
19528_ACEOF
19529rm -f conftest.$ac_objext
19530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531 (eval $ac_compile) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -s conftest.$ac_objext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 wx_cv_expat_is_not_broken=yes
19542else
19543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546wx_cv_expat_is_not_broken=no
19547
19548fi
19549rm -f conftest.$ac_objext conftest.$ac_ext
19550 ac_ext=c
19551ac_cpp='$CPP $CPPFLAGS'
19552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555
19556
19557
19558fi
19559echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19560echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19561 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19562 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19563echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19564if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19566else
19567 ac_check_lib_save_LIBS=$LIBS
19568LIBS="-lexpat $LIBS"
19569cat >conftest.$ac_ext <<_ACEOF
19570#line $LINENO "configure"
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576
19577/* Override any gcc2 internal prototype to avoid an error. */
19578#ifdef __cplusplus
19579extern "C"
19580#endif
19581/* We use char because int might match the return type of a gcc2
19582 builtin and then its argument prototype would still apply. */
19583char XML_ParserCreate ();
19584int
19585main ()
19586{
19587XML_ParserCreate ();
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext conftest$ac_exeext
19593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -s conftest$ac_exeext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_lib_expat_XML_ParserCreate=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609ac_cv_lib_expat_XML_ParserCreate=no
19610fi
19611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19612LIBS=$ac_check_lib_save_LIBS
19613fi
19614echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19615echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19616if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19617 EXPAT_LINK=" -lexpat"
19618fi
19619
5f0b6dff 19620 fi
672abd7a
VS
19621 fi
19622 if test "x$EXPAT_LINK" = "x" ; then
19623 if test "$wxUSE_EXPAT" = "sys" ; then
19624 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19625echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19626 { (exit 1); exit 1; }; }
19627 else
19628 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19629echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19630 wxUSE_EXPAT=builtin
19631 fi
19632 else
19633 wxUSE_EXPAT=sys
19634 fi
19635 fi
19636 if test "$wxUSE_EXPAT" = "builtin" ; then
19637
19638
19639subdirs="$subdirs src/expat"
19640
19641 fi
19642fi
19643
19644
19645
21d1c967 19646AFMINSTALL=
2b5f62a0 19647WIN32INSTALL=
90dd450c 19648
21d1c967
GD
19649TOOLKIT=
19650TOOLKIT_INCLUDE=
19651WIDGET_SET=
19652
19653if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19654
19655for ac_header in w32api.h
21d1c967 19656do
e6cc62c6
VS
19657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19658if eval "test \"\${$as_ac_Header+set}\" = set"; then
19659 echo "$as_me:$LINENO: checking for $ac_header" >&5
19660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19661if eval "test \"\${$as_ac_Header+set}\" = set"; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663fi
19664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19666else
19667 # Is the header compilable?
19668echo "$as_me:$LINENO: checking $ac_header usability" >&5
19669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19670cat >conftest.$ac_ext <<_ACEOF
19671#line $LINENO "configure"
19672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
19677$ac_includes_default
19678#include <$ac_header>
19679_ACEOF
19680rm -f conftest.$ac_objext
19681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682 (eval $ac_compile) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_header_compiler=yes
19693else
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697ac_header_compiler=no
19698fi
19699rm -f conftest.$ac_objext conftest.$ac_ext
19700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19701echo "${ECHO_T}$ac_header_compiler" >&6
19702
19703# Is the header present?
19704echo "$as_me:$LINENO: checking $ac_header presence" >&5
19705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19706cat >conftest.$ac_ext <<_ACEOF
19707#line $LINENO "configure"
19708/* confdefs.h. */
19709_ACEOF
19710cat confdefs.h >>conftest.$ac_ext
19711cat >>conftest.$ac_ext <<_ACEOF
19712/* end confdefs.h. */
19713#include <$ac_header>
19714_ACEOF
19715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } >/dev/null; then
19723 if test -s conftest.err; then
19724 ac_cpp_err=$ac_c_preproc_warn_flag
19725 else
19726 ac_cpp_err=
19727 fi
19728else
19729 ac_cpp_err=yes
19730fi
19731if test -z "$ac_cpp_err"; then
19732 ac_header_preproc=yes
19733else
19734 echo "$as_me: failed program was:" >&5
19735sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_header_preproc=no
19738fi
19739rm -f conftest.err conftest.$ac_ext
19740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19741echo "${ECHO_T}$ac_header_preproc" >&6
19742
19743# So? What about this header?
19744case $ac_header_compiler:$ac_header_preproc in
19745 yes:no )
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19750 (
19751 cat <<\_ASBOX
19752## ------------------------------------ ##
19753## Report this to bug-autoconf@gnu.org. ##
19754## ------------------------------------ ##
19755_ASBOX
19756 ) |
19757 sed "s/^/$as_me: WARNING: /" >&2
19758 ;;
19759 no:yes )
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19766 (
19767 cat <<\_ASBOX
19768## ------------------------------------ ##
19769## Report this to bug-autoconf@gnu.org. ##
19770## ------------------------------------ ##
19771_ASBOX
19772 ) |
19773 sed "s/^/$as_me: WARNING: /" >&2
19774 ;;
19775esac
19776echo "$as_me:$LINENO: checking for $ac_header" >&5
19777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19778if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19780else
19781 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19782fi
e6cc62c6
VS
19783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19785
21d1c967 19786fi
e6cc62c6
VS
19787if test `eval echo '${'$as_ac_Header'}'` = yes; then
19788 cat >>confdefs.h <<_ACEOF
19789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19790_ACEOF
19791
21d1c967 19792fi
e6cc62c6 19793
21d1c967 19794done
f79bd02d 19795
e6cc62c6
VS
19796 if test "${ac_cv_header_windows_h+set}" = set; then
19797 echo "$as_me:$LINENO: checking for windows.h" >&5
19798echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19799if test "${ac_cv_header_windows_h+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801fi
19802echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19803echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19804else
19805 # Is the header compilable?
19806echo "$as_me:$LINENO: checking windows.h usability" >&5
19807echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19808cat >conftest.$ac_ext <<_ACEOF
19809#line $LINENO "configure"
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815$ac_includes_default
247f5006 19816#include <windows.h>
e6cc62c6
VS
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820 (eval $ac_compile) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler=yes
19831else
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835ac_header_compiler=no
19836fi
19837rm -f conftest.$ac_objext conftest.$ac_ext
19838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839echo "${ECHO_T}$ac_header_compiler" >&6
19840
19841# Is the header present?
19842echo "$as_me:$LINENO: checking windows.h presence" >&5
19843echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19844cat >conftest.$ac_ext <<_ACEOF
19845#line $LINENO "configure"
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
19851#include <windows.h>
19852_ACEOF
19853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } >/dev/null; then
19861 if test -s conftest.err; then
19862 ac_cpp_err=$ac_c_preproc_warn_flag
19863 else
19864 ac_cpp_err=
19865 fi
19866else
19867 ac_cpp_err=yes
19868fi
19869if test -z "$ac_cpp_err"; then
19870 ac_header_preproc=yes
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875 ac_header_preproc=no
19876fi
19877rm -f conftest.err conftest.$ac_ext
19878echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879echo "${ECHO_T}$ac_header_preproc" >&6
19880
19881# So? What about this header?
19882case $ac_header_compiler:$ac_header_preproc in
19883 yes:no )
19884 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19885echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19887echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19888 (
19889 cat <<\_ASBOX
19890## ------------------------------------ ##
19891## Report this to bug-autoconf@gnu.org. ##
19892## ------------------------------------ ##
19893_ASBOX
19894 ) |
19895 sed "s/^/$as_me: WARNING: /" >&2
19896 ;;
19897 no:yes )
19898 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19899echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19901echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19903echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19904 (
19905 cat <<\_ASBOX
19906## ------------------------------------ ##
19907## Report this to bug-autoconf@gnu.org. ##
19908## ------------------------------------ ##
19909_ASBOX
19910 ) |
19911 sed "s/^/$as_me: WARNING: /" >&2
19912 ;;
19913esac
19914echo "$as_me:$LINENO: checking for windows.h" >&5
19915echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19916if test "${ac_cv_header_windows_h+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918else
19919 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19920fi
e6cc62c6
VS
19921echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19922echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19923
90dd450c 19924fi
e6cc62c6 19925if test $ac_cv_header_windows_h = yes; then
21d1c967 19926 :
90dd450c 19927else
21d1c967 19928
e6cc62c6
VS
19929 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19930echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19931 { (exit 1); exit 1; }; }
19932
5c6fa7d2 19933fi
7b4a847f 19934
5c6fa7d2 19935
e6cc62c6 19936
b3dfbbc9 19937 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19938
7bb2947d
MB
19939 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19940 LIBS="$LIBS -loleacc"
19941 fi
19942
21d1c967
GD
19943 case "${host}" in
19944 *-*-cygwin* )
b3dfbbc9 19945 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19946 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19947 esac
f79bd02d 19948
8647bec6
RG
19949 if test "$wxUSE_ODBC" = "sys" ; then
19950 wxUSE_ODBC = "yes"
21d1c967 19951 fi
8647bec6
RG
19952 if test "$wxUSE_ODBC" = "yes" ; then
19953 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19954 cat >>confdefs.h <<\_ACEOF
8647bec6 19955#define wxUSE_ODBC 1
e6cc62c6 19956_ACEOF
f79bd02d 19957
8647bec6 19958 fi
e6cc62c6 19959
21d1c967
GD
19960 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19961 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19962
19963 WIN32INSTALL=win32install
f79bd02d 19964fi
f79bd02d 19965
21d1c967
GD
19966if test "$wxUSE_GUI" = "yes"; then
19967 USE_GUI=1
f79bd02d 19968
21d1c967 19969 GUI_TK_LIBRARY=
f79bd02d 19970
21d1c967
GD
19971 WXGTK12=
19972 WXGTK127=
19973 WXGTK20=
f79bd02d 19974
21d1c967
GD
19975 if test "$wxUSE_MSW" = 1 ; then
19976 TOOLKIT=MSW
19977 GUIDIST=MSW_DIST
ffef10f6
VS
19978
19979 case "${host}" in
19980 *-*-mingw32* )
19981 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19982 esac
f79bd02d
JS
19983 fi
19984
21d1c967 19985 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19986 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19987echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19988
19989 gtk_version_cached=1
e6cc62c6
VS
19990 if test "${wx_cv_lib_gtk+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19992else
e6cc62c6 19993
21d1c967 19994 gtk_version_cached=0
e6cc62c6
VS
19995 echo "$as_me:$LINENO: result: " >&5
19996echo "${ECHO_T}" >&6
f79bd02d 19997
21d1c967
GD
19998 GTK_MODULES=
19999 if test "$wxUSE_THREADS" = "yes"; then
20000 GTK_MODULES=gthread
20001 fi
f79bd02d 20002
2b5f62a0 20003 wx_cv_lib_gtk=
21d1c967
GD
20004 if test "x$wxUSE_GTK2" = "xyes"; then
20005 # Check whether --enable-gtktest or --disable-gtktest was given.
20006if test "${enable_gtktest+set}" = set; then
20007 enableval="$enable_gtktest"
e6cc62c6 20008
f79bd02d 20009else
21d1c967 20010 enable_gtktest=yes
e6cc62c6 20011fi;
f79bd02d 20012
21d1c967
GD
20013 pkg_config_args=gtk+-2.0
20014 for module in . $GTK_MODULES
20015 do
20016 case "$module" in
e6cc62c6 20017 gthread)
21d1c967
GD
20018 pkg_config_args="$pkg_config_args gthread-2.0"
20019 ;;
20020 esac
20021 done
20022
20023 no_gtk=""
f79bd02d 20024
21d1c967
GD
20025 # Extract the first word of "pkg-config", so it can be a program name with args.
20026set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20027echo "$as_me:$LINENO: checking for $ac_word" >&5
20028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20029if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20031else
e6cc62c6
VS
20032 case $PKG_CONFIG in
20033 [\\/]* | ?:[\\/]*)
21d1c967
GD
20034 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20035 ;;
21d1c967 20036 *)
e6cc62c6
VS
20037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038for as_dir in $PATH
20039do
20040 IFS=$as_save_IFS
20041 test -z "$as_dir" && as_dir=.
20042 for ac_exec_ext in '' $ac_executable_extensions; do
20043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20044 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20046 break 2
20047 fi
20048done
20049done
20050
21d1c967
GD
20051 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20052 ;;
20053esac
f79bd02d 20054fi
e6cc62c6
VS
20055PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20056
21d1c967 20057if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20058 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20059echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20060else
e6cc62c6
VS
20061 echo "$as_me:$LINENO: result: no" >&5
20062echo "${ECHO_T}no" >&6
f79bd02d
JS
20063fi
20064
8284b0c5 20065
21d1c967
GD
20066 if test x$PKG_CONFIG != xno ; then
20067 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20068 :
20069 else
20070 echo *** pkg-config too old; version 0.7 or better required.
20071 no_gtk=yes
20072 PKG_CONFIG=no
20073 fi
20074 else
20075 no_gtk=yes
20076 fi
f79bd02d 20077
21d1c967 20078 min_gtk_version=2.0.0
e6cc62c6
VS
20079 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20080echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20081
21d1c967
GD
20082 if test x$PKG_CONFIG != xno ; then
20083 ## don't try to run the test against uninstalled libtool libs
20084 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20085 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20086 enable_gtktest=no
20087 fi
f79bd02d 20088
21d1c967
GD
20089 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20090 :
20091 else
20092 no_gtk=yes
20093 fi
20094 fi
f79bd02d 20095
21d1c967
GD
20096 if test x"$no_gtk" = x ; then
20097 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20098 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20099 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20101 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20103 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20105 if test "x$enable_gtktest" = "xyes" ; then
20106 ac_save_CFLAGS="$CFLAGS"
20107 ac_save_LIBS="$LIBS"
20108 CFLAGS="$CFLAGS $GTK_CFLAGS"
20109 LIBS="$GTK_LIBS $LIBS"
20110 rm -f conf.gtktest
20111 if test "$cross_compiling" = yes; then
20112 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20113else
e6cc62c6
VS
20114 cat >conftest.$ac_ext <<_ACEOF
20115#line $LINENO "configure"
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
f79bd02d 20121
21d1c967
GD
20122#include <gtk/gtk.h>
20123#include <stdio.h>
20124#include <stdlib.h>
f79bd02d 20125
e6cc62c6 20126int
21d1c967
GD
20127main ()
20128{
20129 int major, minor, micro;
20130 char *tmp_version;
f79bd02d 20131
21d1c967 20132 system ("touch conf.gtktest");
f79bd02d 20133
21d1c967
GD
20134 /* HP/UX 9 (%@#!) writes to sscanf strings */
20135 tmp_version = g_strdup("$min_gtk_version");
20136 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20137 printf("%s, bad version string\n", "$min_gtk_version");
20138 exit(1);
20139 }
f79bd02d 20140
21d1c967
GD
20141 if ((gtk_major_version != $gtk_config_major_version) ||
20142 (gtk_minor_version != $gtk_config_minor_version) ||
20143 (gtk_micro_version != $gtk_config_micro_version))
20144 {
e6cc62c6 20145 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20146 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20147 gtk_major_version, gtk_minor_version, gtk_micro_version);
20148 printf ("*** was found! If pkg-config was correct, then it is best\n");
20149 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20150 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20151 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20152 printf("*** required on your system.\n");
20153 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20154 printf("*** to point to the correct configuration files\n");
e6cc62c6 20155 }
21d1c967
GD
20156 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20157 (gtk_minor_version != GTK_MINOR_VERSION) ||
20158 (gtk_micro_version != GTK_MICRO_VERSION))
20159 {
20160 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20161 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20162 printf("*** library (version %d.%d.%d)\n",
20163 gtk_major_version, gtk_minor_version, gtk_micro_version);
20164 }
20165 else
20166 {
20167 if ((gtk_major_version > major) ||
20168 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20169 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20170 {
20171 return 0;
20172 }
20173 else
20174 {
20175 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20176 gtk_major_version, gtk_minor_version, gtk_micro_version);
20177 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20178 major, minor, micro);
20179 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20180 printf("***\n");
20181 printf("*** If you have already installed a sufficiently new version, this error\n");
20182 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20183 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20184 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20185 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20186 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20187 printf("*** so that the correct libraries are found at run-time))\n");
20188 }
20189 }
20190 return 1;
20191}
f79bd02d 20192
e6cc62c6
VS
20193_ACEOF
20194rm -f conftest$ac_exeext
20195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20196 (eval $ac_link) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
21d1c967 20205 :
f79bd02d 20206else
e6cc62c6
VS
20207 echo "$as_me: program exited with status $ac_status" >&5
20208echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211( exit $ac_status )
20212no_gtk=yes
f79bd02d 20213fi
e6cc62c6 20214rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20215fi
21d1c967
GD
20216 CFLAGS="$ac_save_CFLAGS"
20217 LIBS="$ac_save_LIBS"
20218 fi
20219 fi
20220 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20221 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20222echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20223 wx_cv_lib_gtk=2.0
21d1c967 20224 else
e6cc62c6
VS
20225 echo "$as_me:$LINENO: result: no" >&5
20226echo "${ECHO_T}no" >&6
21d1c967
GD
20227 if test "$PKG_CONFIG" = "no" ; then
20228 echo "*** A new enough version of pkg-config was not found."
20229 echo "*** See http://pkgconfig.sourceforge.net"
20230 else
20231 if test -f conf.gtktest ; then
20232 :
20233 else
20234 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20235 ac_save_CFLAGS="$CFLAGS"
20236 ac_save_LIBS="$LIBS"
21d1c967
GD
20237 CFLAGS="$CFLAGS $GTK_CFLAGS"
20238 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20239 cat >conftest.$ac_ext <<_ACEOF
20240#line $LINENO "configure"
20241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
21d1c967
GD
20246
20247#include <gtk/gtk.h>
20248#include <stdio.h>
f79bd02d 20249
e6cc62c6
VS
20250int
20251main ()
20252{
20253 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20254 ;
20255 return 0;
20256}
20257_ACEOF
20258rm -f conftest.$ac_objext conftest$ac_exeext
20259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260 (eval $ac_link) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -s conftest$ac_exeext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
21d1c967
GD
20270 echo "*** The test program compiled, but did not run. This usually means"
20271 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20272 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20273 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20274 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20275 echo "*** is required on your system"
20276 echo "***"
20277 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20278 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20279else
e6cc62c6
VS
20280 echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20284 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20285fi
e6cc62c6 20286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20287 CFLAGS="$ac_save_CFLAGS"
20288 LIBS="$ac_save_LIBS"
20289 fi
20290 fi
20291 GTK_CFLAGS=""
20292 GTK_LIBS=""
20293 :
20294 fi
e6cc62c6
VS
20295
20296
21d1c967 20297 rm -f conf.gtktest
f79bd02d 20298
2b5f62a0 20299 else
e6cc62c6
VS
20300
20301# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20302if test "${with_gtk_prefix+set}" = set; then
20303 withval="$with_gtk_prefix"
20304 gtk_config_prefix="$withval"
20305else
20306 gtk_config_prefix=""
e6cc62c6 20307fi;
f79bd02d 20308
21d1c967
GD
20309# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20310if test "${with_gtk_exec_prefix+set}" = set; then
20311 withval="$with_gtk_exec_prefix"
20312 gtk_config_exec_prefix="$withval"
20313else
20314 gtk_config_exec_prefix=""
e6cc62c6 20315fi;
21d1c967
GD
20316# Check whether --enable-gtktest or --disable-gtktest was given.
20317if test "${enable_gtktest+set}" = set; then
20318 enableval="$enable_gtktest"
e6cc62c6 20319
21d1c967
GD
20320else
20321 enable_gtktest=yes
e6cc62c6 20322fi;
21d1c967
GD
20323
20324 for module in . $GTK_MODULES
20325 do
20326 case "$module" in
e6cc62c6 20327 gthread)
21d1c967
GD
20328 gtk_config_args="$gtk_config_args gthread"
20329 ;;
20330 esac
20331 done
20332
20333 if test x$gtk_config_exec_prefix != x ; then
20334 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20335 if test x${GTK_CONFIG+set} != xset ; then
20336 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20337 fi
20338 fi
20339 if test x$gtk_config_prefix != x ; then
20340 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20341 if test x${GTK_CONFIG+set} != xset ; then
20342 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20343 fi
20344 fi
20345
20346 # Extract the first word of "gtk-config", so it can be a program name with args.
20347set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20348echo "$as_me:$LINENO: checking for $ac_word" >&5
20349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20350if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20352else
e6cc62c6
VS
20353 case $GTK_CONFIG in
20354 [\\/]* | ?:[\\/]*)
21d1c967
GD
20355 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20356 ;;
21d1c967 20357 *)
e6cc62c6
VS
20358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359for as_dir in $PATH
20360do
20361 IFS=$as_save_IFS
20362 test -z "$as_dir" && as_dir=.
20363 for ac_exec_ext in '' $ac_executable_extensions; do
20364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20365 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20367 break 2
20368 fi
20369done
20370done
20371
21d1c967
GD
20372 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20373 ;;
20374esac
20375fi
e6cc62c6
VS
20376GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20377
21d1c967 20378if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20379 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20380echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20381else
e6cc62c6
VS
20382 echo "$as_me:$LINENO: result: no" >&5
20383echo "${ECHO_T}no" >&6
21d1c967
GD
20384fi
20385
20386 min_gtk_version=1.2.7
e6cc62c6
VS
20387 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20388echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20389 no_gtk=""
20390 if test "$GTK_CONFIG" = "no" ; then
20391 no_gtk=yes
20392 else
20393 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20394 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20395 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20396 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20397 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20399 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20401 if test "x$enable_gtktest" = "xyes" ; then
20402 ac_save_CFLAGS="$CFLAGS"
20403 ac_save_LIBS="$LIBS"
20404 CFLAGS="$CFLAGS $GTK_CFLAGS"
20405 LIBS="$GTK_LIBS $LIBS"
20406 rm -f conf.gtktest
20407 if test "$cross_compiling" = yes; then
20408 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20409else
e6cc62c6
VS
20410 cat >conftest.$ac_ext <<_ACEOF
20411#line $LINENO "configure"
20412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
f79bd02d 20417
21d1c967
GD
20418#include <gtk/gtk.h>
20419#include <stdio.h>
20420#include <stdlib.h>
f79bd02d 20421
e6cc62c6 20422int
21d1c967
GD
20423main ()
20424{
20425 int major, minor, micro;
20426 char *tmp_version;
20427
20428 system ("touch conf.gtktest");
20429
20430 /* HP/UX 9 (%@#!) writes to sscanf strings */
20431 tmp_version = g_strdup("$min_gtk_version");
20432 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20433 printf("%s, bad version string\n", "$min_gtk_version");
20434 exit(1);
20435 }
90dd450c 20436
21d1c967
GD
20437 if ((gtk_major_version != $gtk_config_major_version) ||
20438 (gtk_minor_version != $gtk_config_minor_version) ||
20439 (gtk_micro_version != $gtk_config_micro_version))
20440 {
e6cc62c6 20441 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20442 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20443 gtk_major_version, gtk_minor_version, gtk_micro_version);
20444 printf ("*** was found! If gtk-config was correct, then it is best\n");
20445 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20446 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20447 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20448 printf("*** required on your system.\n");
20449 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20450 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20451 printf("*** before re-running configure\n");
e6cc62c6 20452 }
21d1c967
GD
20453#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20454 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20455 (gtk_minor_version != GTK_MINOR_VERSION) ||
20456 (gtk_micro_version != GTK_MICRO_VERSION))
20457 {
20458 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20459 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20460 printf("*** library (version %d.%d.%d)\n",
20461 gtk_major_version, gtk_minor_version, gtk_micro_version);
20462 }
20463#endif /* defined (GTK_MAJOR_VERSION) ... */
20464 else
20465 {
20466 if ((gtk_major_version > major) ||
20467 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20468 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20469 {
20470 return 0;
20471 }
20472 else
20473 {
20474 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20475 gtk_major_version, gtk_minor_version, gtk_micro_version);
20476 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20477 major, minor, micro);
20478 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20479 printf("***\n");
20480 printf("*** If you have already installed a sufficiently new version, this error\n");
20481 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20482 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20483 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20484 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20485 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20486 printf("*** so that the correct libraries are found at run-time))\n");
20487 }
20488 }
20489 return 1;
20490}
20491
e6cc62c6
VS
20492_ACEOF
20493rm -f conftest$ac_exeext
20494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495 (eval $ac_link) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
21d1c967
GD
20504 :
20505else
e6cc62c6
VS
20506 echo "$as_me: program exited with status $ac_status" >&5
20507echo "$as_me: failed program was:" >&5
20508sed 's/^/| /' conftest.$ac_ext >&5
20509
20510( exit $ac_status )
20511no_gtk=yes
21d1c967 20512fi
e6cc62c6 20513rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20514fi
21d1c967
GD
20515 CFLAGS="$ac_save_CFLAGS"
20516 LIBS="$ac_save_LIBS"
20517 fi
20518 fi
20519 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20520 echo "$as_me:$LINENO: result: yes" >&5
20521echo "${ECHO_T}yes" >&6
20522 wx_cv_lib_gtk=1.2.7
21d1c967 20523 else
e6cc62c6
VS
20524 echo "$as_me:$LINENO: result: no" >&5
20525echo "${ECHO_T}no" >&6
21d1c967
GD
20526 if test "$GTK_CONFIG" = "no" ; then
20527 echo "*** The gtk-config script installed by GTK could not be found"
20528 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20529 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20530 echo "*** full path to gtk-config."
20531 else
20532 if test -f conf.gtktest ; then
20533 :
20534 else
20535 echo "*** Could not run GTK test program, checking why..."
20536 CFLAGS="$CFLAGS $GTK_CFLAGS"
20537 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20538 cat >conftest.$ac_ext <<_ACEOF
20539#line $LINENO "configure"
20540/* confdefs.h. */
20541_ACEOF
20542cat confdefs.h >>conftest.$ac_ext
20543cat >>conftest.$ac_ext <<_ACEOF
20544/* end confdefs.h. */
21d1c967
GD
20545
20546#include <gtk/gtk.h>
20547#include <stdio.h>
20548
e6cc62c6
VS
20549int
20550main ()
20551{
20552 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20553 ;
20554 return 0;
20555}
20556_ACEOF
20557rm -f conftest.$ac_objext conftest$ac_exeext
20558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20559 (eval $ac_link) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -s conftest$ac_exeext'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
21d1c967
GD
20569 echo "*** The test program compiled, but did not run. This usually means"
20570 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20571 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20574 echo "*** is required on your system"
20575 echo "***"
20576 echo "*** If you have an old version installed, it is best to remove it, although"
20577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20578 echo "***"
20579 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20580 echo "*** came with the system with the command"
20581 echo "***"
e6cc62c6 20582 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20583else
e6cc62c6
VS
20584 echo "$as_me: failed program was:" >&5
20585sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20588 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20589 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20590 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20591fi
e6cc62c6 20592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20593 CFLAGS="$ac_save_CFLAGS"
20594 LIBS="$ac_save_LIBS"
20595 fi
20596 fi
20597 GTK_CFLAGS=""
20598 GTK_LIBS=""
20599 :
20600 fi
e6cc62c6
VS
20601
20602
21d1c967
GD
20603 rm -f conf.gtktest
20604
21d1c967 20605
2b5f62a0 20606 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20607
20608# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20609if test "${with_gtk_prefix+set}" = set; then
20610 withval="$with_gtk_prefix"
20611 gtk_config_prefix="$withval"
20612else
20613 gtk_config_prefix=""
e6cc62c6 20614fi;
f79bd02d 20615
21d1c967
GD
20616# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20617if test "${with_gtk_exec_prefix+set}" = set; then
20618 withval="$with_gtk_exec_prefix"
20619 gtk_config_exec_prefix="$withval"
20620else
20621 gtk_config_exec_prefix=""
e6cc62c6 20622fi;
21d1c967
GD
20623# Check whether --enable-gtktest or --disable-gtktest was given.
20624if test "${enable_gtktest+set}" = set; then
20625 enableval="$enable_gtktest"
e6cc62c6 20626
90dd450c 20627else
21d1c967 20628 enable_gtktest=yes
e6cc62c6 20629fi;
21d1c967
GD
20630
20631 for module in . $GTK_MODULES
20632 do
20633 case "$module" in
e6cc62c6 20634 gthread)
21d1c967
GD
20635 gtk_config_args="$gtk_config_args gthread"
20636 ;;
20637 esac
20638 done
20639
20640 if test x$gtk_config_exec_prefix != x ; then
20641 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20642 if test x${GTK_CONFIG+set} != xset ; then
20643 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20644 fi
20645 fi
20646 if test x$gtk_config_prefix != x ; then
20647 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20648 if test x${GTK_CONFIG+set} != xset ; then
20649 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20650 fi
20651 fi
20652
20653 # Extract the first word of "gtk-config", so it can be a program name with args.
20654set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20655echo "$as_me:$LINENO: checking for $ac_word" >&5
20656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20657if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20659else
e6cc62c6
VS
20660 case $GTK_CONFIG in
20661 [\\/]* | ?:[\\/]*)
21d1c967
GD
20662 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20663 ;;
21d1c967 20664 *)
e6cc62c6
VS
20665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20666for as_dir in $PATH
20667do
20668 IFS=$as_save_IFS
20669 test -z "$as_dir" && as_dir=.
20670 for ac_exec_ext in '' $ac_executable_extensions; do
20671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20672 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20674 break 2
20675 fi
20676done
20677done
20678
21d1c967
GD
20679 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20680 ;;
20681esac
20682fi
e6cc62c6
VS
20683GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20684
21d1c967 20685if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20686 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20687echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20688else
e6cc62c6
VS
20689 echo "$as_me:$LINENO: result: no" >&5
20690echo "${ECHO_T}no" >&6
21d1c967
GD
20691fi
20692
20693 min_gtk_version=1.2.3
e6cc62c6
VS
20694 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20695echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20696 no_gtk=""
20697 if test "$GTK_CONFIG" = "no" ; then
20698 no_gtk=yes
20699 else
20700 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20701 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20702 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20703 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20704 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20706 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20708 if test "x$enable_gtktest" = "xyes" ; then
20709 ac_save_CFLAGS="$CFLAGS"
20710 ac_save_LIBS="$LIBS"
20711 CFLAGS="$CFLAGS $GTK_CFLAGS"
20712 LIBS="$GTK_LIBS $LIBS"
20713 rm -f conf.gtktest
20714 if test "$cross_compiling" = yes; then
20715 echo $ac_n "cross compiling; assumed OK... $ac_c"
20716else
e6cc62c6
VS
20717 cat >conftest.$ac_ext <<_ACEOF
20718#line $LINENO "configure"
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
21d1c967
GD
20724
20725#include <gtk/gtk.h>
20726#include <stdio.h>
20727#include <stdlib.h>
20728
e6cc62c6 20729int
21d1c967
GD
20730main ()
20731{
20732 int major, minor, micro;
20733 char *tmp_version;
20734
20735 system ("touch conf.gtktest");
20736
20737 /* HP/UX 9 (%@#!) writes to sscanf strings */
20738 tmp_version = g_strdup("$min_gtk_version");
20739 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20740 printf("%s, bad version string\n", "$min_gtk_version");
20741 exit(1);
20742 }
20743
20744 if ((gtk_major_version != $gtk_config_major_version) ||
20745 (gtk_minor_version != $gtk_config_minor_version) ||
20746 (gtk_micro_version != $gtk_config_micro_version))
20747 {
e6cc62c6 20748 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20749 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20750 gtk_major_version, gtk_minor_version, gtk_micro_version);
20751 printf ("*** was found! If gtk-config was correct, then it is best\n");
20752 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20753 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20754 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20755 printf("*** required on your system.\n");
20756 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20757 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20758 printf("*** before re-running configure\n");
e6cc62c6 20759 }
21d1c967
GD
20760#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20761 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20762 (gtk_minor_version != GTK_MINOR_VERSION) ||
20763 (gtk_micro_version != GTK_MICRO_VERSION))
20764 {
20765 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20766 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20767 printf("*** library (version %d.%d.%d)\n",
20768 gtk_major_version, gtk_minor_version, gtk_micro_version);
20769 }
20770#endif /* defined (GTK_MAJOR_VERSION) ... */
20771 else
20772 {
20773 if ((gtk_major_version > major) ||
20774 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20775 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20776 {
20777 return 0;
20778 }
20779 else
20780 {
20781 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20782 gtk_major_version, gtk_minor_version, gtk_micro_version);
20783 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20784 major, minor, micro);
20785 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20786 printf("***\n");
20787 printf("*** If you have already installed a sufficiently new version, this error\n");
20788 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20789 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20790 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20791 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20792 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20793 printf("*** so that the correct libraries are found at run-time))\n");
20794 }
20795 }
20796 return 1;
20797}
20798
e6cc62c6
VS
20799_ACEOF
20800rm -f conftest$ac_exeext
20801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20802 (eval $ac_link) 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
21d1c967
GD
20811 :
20812else
e6cc62c6
VS
20813 echo "$as_me: program exited with status $ac_status" >&5
20814echo "$as_me: failed program was:" >&5
20815sed 's/^/| /' conftest.$ac_ext >&5
20816
20817( exit $ac_status )
20818no_gtk=yes
21d1c967 20819fi
e6cc62c6 20820rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20821fi
21d1c967
GD
20822 CFLAGS="$ac_save_CFLAGS"
20823 LIBS="$ac_save_LIBS"
20824 fi
20825 fi
20826 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20827 echo "$as_me:$LINENO: result: yes" >&5
20828echo "${ECHO_T}yes" >&6
20829 wx_cv_lib_gtk=1.2.3
21d1c967 20830 else
e6cc62c6
VS
20831 echo "$as_me:$LINENO: result: no" >&5
20832echo "${ECHO_T}no" >&6
21d1c967
GD
20833 if test "$GTK_CONFIG" = "no" ; then
20834 echo "*** The gtk-config script installed by GTK could not be found"
20835 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20836 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20837 echo "*** full path to gtk-config."
20838 else
20839 if test -f conf.gtktest ; then
20840 :
20841 else
20842 echo "*** Could not run GTK test program, checking why..."
20843 CFLAGS="$CFLAGS $GTK_CFLAGS"
20844 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20845 cat >conftest.$ac_ext <<_ACEOF
20846#line $LINENO "configure"
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
21d1c967
GD
20852
20853#include <gtk/gtk.h>
20854#include <stdio.h>
f79bd02d 20855
e6cc62c6
VS
20856int
20857main ()
20858{
20859 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20860 ;
20861 return 0;
20862}
20863_ACEOF
20864rm -f conftest.$ac_objext conftest$ac_exeext
20865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866 (eval $ac_link) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -s conftest$ac_exeext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
21d1c967
GD
20876 echo "*** The test program compiled, but did not run. This usually means"
20877 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20878 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20879 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20880 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20881 echo "*** is required on your system"
20882 echo "***"
20883 echo "*** If you have an old version installed, it is best to remove it, although"
20884 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20885 echo "***"
20886 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20887 echo "*** came with the system with the command"
20888 echo "***"
e6cc62c6 20889 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20890else
e6cc62c6
VS
20891 echo "$as_me: failed program was:" >&5
20892sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20895 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20896 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20897 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20898fi
e6cc62c6 20899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20900 CFLAGS="$ac_save_CFLAGS"
20901 LIBS="$ac_save_LIBS"
20902 fi
20903 fi
20904 GTK_CFLAGS=""
20905 GTK_LIBS=""
20906 :
20907 fi
e6cc62c6
VS
20908
20909
21d1c967 20910 rm -f conf.gtktest
f79bd02d 20911
2b5f62a0 20912 fi
21d1c967
GD
20913 fi
20914
20915 if test -z "$wx_cv_lib_gtk"; then
20916 wx_cv_lib_gtk=none
20917 else
20918 wx_cv_cflags_gtk=$GTK_CFLAGS
20919 wx_cv_libs_gtk=$GTK_LIBS
20920 fi
e6cc62c6
VS
20921
20922
5c6fa7d2 20923fi
52127426 20924
8284b0c5 20925
21d1c967 20926 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20927 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20928echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20929 fi
20930
20931 case "$wx_cv_lib_gtk" in
20932 2.0) WXGTK20=1
2b5f62a0 20933 TOOLKIT_VERSION=2
21d1c967
GD
20934 ;;
20935 1.2.7) WXGTK127=1
20936 WXGTK12=1
20937 ;;
20938 1.2.3) WXGTK12=1
20939 ;;
e6cc62c6
VS
20940 *) { { echo "$as_me:$LINENO: error:
20941Please check that gtk-config is in path, the directory
20942where GTK+ libraries are installed (returned by
20943'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20944equivalent variable and GTK+ is version 1.2.3 or above.
20945 " >&5
20946echo "$as_me: error:
247f5006
VZ
20947Please check that gtk-config is in path, the directory
20948where GTK+ libraries are installed (returned by
20949'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20950equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20951 " >&2;}
20952 { (exit 1); exit 1; }; }
21d1c967
GD
20953 ;;
20954 esac
20955
b13cd66e
VZ
20956 if test "$WXGTK20" = 1; then
20957 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20958
f09359cf
VS
20959 succeeded=no
20960
20961 if test -z "$PKG_CONFIG"; then
20962 # Extract the first word of "pkg-config", so it can be a program name with args.
20963set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20964echo "$as_me:$LINENO: checking for $ac_word" >&5
20965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20966if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20968else
e6cc62c6
VS
20969 case $PKG_CONFIG in
20970 [\\/]* | ?:[\\/]*)
f09359cf
VS
20971 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20972 ;;
f09359cf 20973 *)
e6cc62c6
VS
20974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20975for as_dir in $PATH
20976do
20977 IFS=$as_save_IFS
20978 test -z "$as_dir" && as_dir=.
20979 for ac_exec_ext in '' $ac_executable_extensions; do
20980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20983 break 2
20984 fi
20985done
20986done
20987
f09359cf
VS
20988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20989 ;;
20990esac
20991fi
e6cc62c6
VS
20992PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20993
f09359cf 20994if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20995 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20996echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20997else
e6cc62c6
VS
20998 echo "$as_me:$LINENO: result: no" >&5
20999echo "${ECHO_T}no" >&6
f09359cf
VS
21000fi
21001
21002 fi
21003
21004 if test "$PKG_CONFIG" = "no" ; then
21005 echo "*** The pkg-config script could not be found. Make sure it is"
21006 echo "*** in your path, or set the PKG_CONFIG environment variable"
21007 echo "*** to the full path to pkg-config."
21008 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21009 else
21010 PKG_CONFIG_MIN_VERSION=0.9.0
21011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21012 echo "$as_me:$LINENO: checking for pangoft2" >&5
21013echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21014
21015 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21016 echo "$as_me:$LINENO: result: yes" >&5
21017echo "${ECHO_T}yes" >&6
f09359cf
VS
21018 succeeded=yes
21019
e6cc62c6
VS
21020 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21021echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21022 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21023 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21024echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21025
e6cc62c6
VS
21026 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21027echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21028 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21029 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21030echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21031 else
21032 PANGOFT2_CFLAGS=""
21033 PANGOFT2_LIBS=""
e6cc62c6 21034 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21035 ## do set a variable so people can do so.
21036 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21037
f09359cf
VS
21038 fi
21039
e6cc62c6
VS
21040
21041
f09359cf
VS
21042 else
21043 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21044 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21045 fi
21046 fi
21047
21048 if test $succeeded = yes; then
e6cc62c6 21049
b13cd66e 21050 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21051 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21052
f09359cf 21053 else
e6cc62c6
VS
21054
21055 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21056echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21057 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21058
21059
f09359cf
VS
21060 fi
21061
b13cd66e 21062 fi
2b5f62a0
VZ
21063 else
21064 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21065 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21066echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21067 wxUSE_UNICODE=no
21068 fi
21069 fi
21070
21071 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21072
21073for ac_func in poll
2b5f62a0 21074do
e6cc62c6
VS
21075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21076echo "$as_me:$LINENO: checking for $ac_func" >&5
21077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21078if eval "test \"\${$as_ac_var+set}\" = set"; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080else
21081 cat >conftest.$ac_ext <<_ACEOF
21082#line $LINENO "configure"
21083/* confdefs.h. */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h. */
2b5f62a0 21088/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21089 which can conflict with char $ac_func (); below.
21090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091 <limits.h> exists even on freestanding compilers. */
21092#ifdef __STDC__
21093# include <limits.h>
21094#else
21095# include <assert.h>
21096#endif
2b5f62a0 21097/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21098#ifdef __cplusplus
21099extern "C"
21100{
21101#endif
2b5f62a0 21102/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21103 builtin and then its argument prototype would still apply. */
21104char $ac_func ();
2b5f62a0
VZ
21105/* The GNU C library defines this for functions which it implements
21106 to always fail with ENOSYS. Some functions are actually named
21107 something starting with __ and the normal name is an alias. */
21108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21109choke me
21110#else
e6cc62c6
VS
21111char (*f) () = $ac_func;
21112#endif
21113#ifdef __cplusplus
21114}
2b5f62a0
VZ
21115#endif
21116
e6cc62c6
VS
21117int
21118main ()
21119{
21120return f != $ac_func;
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125rm -f conftest.$ac_objext conftest$ac_exeext
21126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21127 (eval $ac_link) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } &&
21131 { ac_try='test -s conftest$ac_exeext'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; }; then
21137 eval "$as_ac_var=yes"
21138else
21139 echo "$as_me: failed program was:" >&5
21140sed 's/^/| /' conftest.$ac_ext >&5
21141
21142eval "$as_ac_var=no"
21143fi
21144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21145fi
21146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21148if test `eval echo '${'$as_ac_var'}'` = yes; then
21149 cat >>confdefs.h <<_ACEOF
21150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21151_ACEOF
2b5f62a0 21152
2b5f62a0
VZ
21153fi
21154done
21155
f09359cf
VS
21156 fi
21157
21d1c967 21158 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21159 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21160
21161 AFMINSTALL=afminstall
21162 TOOLKIT=GTK
21163 GUIDIST=GTK_DIST
21164
e6cc62c6
VS
21165 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21166echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21167if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21169else
e6cc62c6 21170 ac_check_lib_save_LIBS=$LIBS
21d1c967 21171LIBS="-lgdk $LIBS"
e6cc62c6
VS
21172cat >conftest.$ac_ext <<_ACEOF
21173#line $LINENO "configure"
21174/* confdefs.h. */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h. */
21179
5c6fa7d2 21180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21181#ifdef __cplusplus
21182extern "C"
21183#endif
5c6fa7d2 21184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21185 builtin and then its argument prototype would still apply. */
21186char gdk_im_open ();
21187int
21188main ()
21189{
21190gdk_im_open ();
21191 ;
21192 return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext conftest$ac_exeext
21196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197 (eval $ac_link) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -s conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_lib_gdk_gdk_im_open=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212ac_cv_lib_gdk_gdk_im_open=no
21213fi
21214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21215LIBS=$ac_check_lib_save_LIBS
21216fi
21217echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21218echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21219if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21220 cat >>confdefs.h <<\_ACEOF
21d1c967 21221#define HAVE_XIM 1
e6cc62c6 21222_ACEOF
21d1c967 21223
90dd450c 21224fi
1e6feb95 21225
21d1c967 21226 fi
1e6feb95 21227
21d1c967 21228 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21229 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21230echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21231 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21232 echo "$as_me:$LINENO: result: not found" >&5
21233echo "${ECHO_T}not found" >&6
21234 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21235echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21236 { (exit 1); exit 1; }; }
21d1c967 21237 else
e6cc62c6
VS
21238 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21239echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21240 fi
21241
e6cc62c6
VS
21242 echo "$as_me:$LINENO: checking for libmgl location" >&5
21243echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
21244 case "${host}" in
21245 *-*-linux* )
63a76696
VS
21246 if test "x$wxUSE_SHARED" = xyes ; then
21247 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21248 else
21249 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21250 fi
21d1c967
GD
21251 ;;
21252 *-pc-msdosdjgpp )
63a76696 21253 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21254 ;;
21255 *)
e6cc62c6
VS
21256 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21257echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21258 { (exit 1); exit 1; }; }
21d1c967 21259 esac
1e6feb95 21260
21d1c967 21261 mgl_lib_type=""
63a76696
VS
21262 mgl_os=""
21263
21264 for mgl_os_i in $mgl_os_candidates ; do
21265 if test "x$mgl_os" = x ; then
21266 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21267 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21268 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21269 mgl_lib_type=debug
21270 mgl_os=$mgl_os_i
21271 fi
21272 fi
21273 if test "x$mgl_lib_type" = x ; then
21274 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21275 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21276 mgl_lib_type=release
21277 mgl_os=$mgl_os_i
21278 fi
21279 fi
21d1c967 21280 fi
63a76696 21281 done
2224580a 21282
63a76696 21283 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21284 echo "$as_me:$LINENO: result: not found" >&5
21285echo "${ECHO_T}not found" >&6
21286 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21287echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21288 { (exit 1); exit 1; }; }
63a76696 21289 fi
e6cc62c6
VS
21290 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21291echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21292
1d1b75ac
VZ
21293 wxUSE_UNIVERSAL="yes"
21294
21d1c967
GD
21295 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21296 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21297
90dd450c 21298 AFMINSTALL=afminstall
21d1c967
GD
21299 TOOLKIT=MGL
21300 GUIDIST=MGL_DIST
21301 fi
dad6c0ea 21302
21d1c967 21303 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21304 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21305echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21306 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21307 echo "$as_me:$LINENO: result: not found" >&5
21308echo "${ECHO_T}not found" >&6
21309 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21310echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21311 { (exit 1); exit 1; }; }
21d1c967 21312 else
e6cc62c6
VS
21313 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21314echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21315 fi
f6bcfd97 21316
21d1c967 21317 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21318 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21319echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21320 else
e6cc62c6
VS
21321 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21322echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21323 { (exit 1); exit 1; }; }
90dd450c 21324 fi
0b2effe9 21325
21d1c967
GD
21326 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21327 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21328
1d1b75ac
VZ
21329 wxUSE_UNIVERSAL="yes"
21330
21d1c967
GD
21331 AFMINSTALL=afminstall
21332 TOOLKIT=MICROWIN
21333 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21334
21335 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21336 fi
f6bcfd97 21337
21d1c967 21338 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21339 echo "$as_me:$LINENO: checking for X" >&5
21340echo $ECHO_N "checking for X... $ECHO_C" >&6
21341
d8356fa3 21342
21d1c967
GD
21343# Check whether --with-x or --without-x was given.
21344if test "${with_x+set}" = set; then
21345 withval="$with_x"
2224580a 21346
e6cc62c6 21347fi;
21d1c967
GD
21348# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21349if test "x$with_x" = xno; then
21350 # The user explicitly disabled X.
21351 have_x=disabled
21352else
21353 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21354 # Both variables are already set.
21355 have_x=yes
21356 else
e6cc62c6
VS
21357 if test "${ac_cv_have_x+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21359else
21360 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21361ac_x_includes=no ac_x_libraries=no
21362rm -fr conftest.dir
21363if mkdir conftest.dir; then
21364 cd conftest.dir
21d1c967 21365 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21366 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21367acfindx:
21368 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21369_ACEOF
21d1c967
GD
21370 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21371 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21372 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21373 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21374 for ac_extension in a so sl; do
21375 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21376 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21377 ac_im_usrlibdir=$ac_im_libdir; break
21378 fi
21379 done
21380 # Screen out bogus values from the imake configuration. They are
21381 # bogus both because they are the default anyway, and because
21382 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21383 case $ac_im_incroot in
21d1c967 21384 /usr/include) ;;
e6cc62c6 21385 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21386 esac
e6cc62c6 21387 case $ac_im_usrlibdir in
21d1c967 21388 /usr/lib | /lib) ;;
e6cc62c6 21389 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21390 esac
21391 fi
21392 cd ..
e6cc62c6 21393 rm -fr conftest.dir
21d1c967 21394fi
10f2d63a 21395
e6cc62c6
VS
21396# Standard set of common directories for X headers.
21397# Check X11 before X11Rn because it is often a symlink to the current release.
21398ac_x_header_dirs='
21399/usr/X11/include
21400/usr/X11R6/include
21401/usr/X11R5/include
21402/usr/X11R4/include
21403
21404/usr/include/X11
21405/usr/include/X11R6
21406/usr/include/X11R5
21407/usr/include/X11R4
21408
21409/usr/local/X11/include
21410/usr/local/X11R6/include
21411/usr/local/X11R5/include
21412/usr/local/X11R4/include
21413
21414/usr/local/include/X11
21415/usr/local/include/X11R6
21416/usr/local/include/X11R5
21417/usr/local/include/X11R4
21418
21419/usr/X386/include
21420/usr/x386/include
21421/usr/XFree86/include/X11
21422
21423/usr/include
21424/usr/local/include
21425/usr/unsupported/include
21426/usr/athena/include
21427/usr/local/x11r5/include
21428/usr/lpp/Xamples/include
21429
21430/usr/openwin/include
21431/usr/openwin/share/include'
21432
21433if test "$ac_x_includes" = no; then
21434 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21435 # First, try using that file with no special directory specified.
e6cc62c6
VS
21436 cat >conftest.$ac_ext <<_ACEOF
21437#line $LINENO "configure"
21438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
21443#include <X11/Intrinsic.h>
21444_ACEOF
21445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21447 ac_status=$?
21448 grep -v '^ *+' conftest.er1 >conftest.err
21449 rm -f conftest.er1
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } >/dev/null; then
21453 if test -s conftest.err; then
21454 ac_cpp_err=$ac_c_preproc_warn_flag
21455 else
21456 ac_cpp_err=
21457 fi
21458else
21459 ac_cpp_err=yes
21460fi
21461if test -z "$ac_cpp_err"; then
21d1c967
GD
21462 # We can compile using X headers with no special include directory.
21463ac_x_includes=
90dd450c 21464else
e6cc62c6
VS
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 for ac_dir in $ac_x_header_dirs; do
21469 if test -r "$ac_dir/X11/Intrinsic.h"; then
21470 ac_x_includes=$ac_dir
21471 break
21472 fi
21473done
3a922bb4 21474fi
e6cc62c6
VS
21475rm -f conftest.err conftest.$ac_ext
21476fi # $ac_x_includes = no
10f2d63a 21477
e6cc62c6 21478if test "$ac_x_libraries" = no; then
21d1c967 21479 # Check for the libraries.
21d1c967
GD
21480 # See if we find them without any special options.
21481 # Don't add to $LIBS permanently.
e6cc62c6
VS
21482 ac_save_LIBS=$LIBS
21483 LIBS="-lXt $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21485#line $LINENO "configure"
21486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
21490/* end confdefs.h. */
21491#include <X11/Intrinsic.h>
21492int
21493main ()
21494{
21495XtMalloc (0)
21496 ;
21497 return 0;
21498}
21499_ACEOF
21500rm -f conftest.$ac_objext conftest$ac_exeext
21501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502 (eval $ac_link) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
21506 { ac_try='test -s conftest$ac_exeext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 LIBS=$ac_save_LIBS
21d1c967
GD
21513# We can link X programs with no special library path.
21514ac_x_libraries=
3a922bb4 21515else
e6cc62c6
VS
21516 echo "$as_me: failed program was:" >&5
21517sed 's/^/| /' conftest.$ac_ext >&5
21518
21519LIBS=$ac_save_LIBS
21520for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21521do
e6cc62c6 21522 # Don't even attempt the hair of trying to link an X program!
21d1c967 21523 for ac_extension in a so sl; do
e6cc62c6 21524 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21525 ac_x_libraries=$ac_dir
21526 break 2
21527 fi
21528 done
21529done
3a922bb4 21530fi
e6cc62c6
VS
21531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21532fi # $ac_x_libraries = no
90dd450c 21533
e6cc62c6 21534if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21535 # Didn't find X anywhere. Cache the known absence of X.
21536 ac_cv_have_x="have_x=no"
21537else
21538 # Record where we found X for the cache.
21539 ac_cv_have_x="have_x=yes \
21540 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21541fi
21d1c967 21542fi
e6cc62c6 21543
21d1c967
GD
21544 fi
21545 eval "$ac_cv_have_x"
21546fi # $with_x != no
90dd450c 21547
21d1c967 21548if test "$have_x" != yes; then
e6cc62c6
VS
21549 echo "$as_me:$LINENO: result: $have_x" >&5
21550echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21551 no_x=yes
21552else
21553 # If each of the values was on the command line, it overrides each guess.
21554 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21555 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21556 # Update the cache value to reflect the command line values.
21557 ac_cv_have_x="have_x=yes \
21558 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21559 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21560echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21561fi
90dd450c 21562
21d1c967 21563if test "$no_x" = yes; then
90dd450c 21564 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21565
21566cat >>confdefs.h <<\_ACEOF
90dd450c 21567#define X_DISPLAY_MISSING 1
e6cc62c6 21568_ACEOF
90dd450c
VZ
21569
21570 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21571else
21572 if test -n "$x_includes"; then
21573 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21574 fi
3a922bb4 21575
90dd450c
VZ
21576 # It would also be nice to do this for all -L options, not just this one.
21577 if test -n "$x_libraries"; then
21578 X_LIBS="$X_LIBS -L$x_libraries"
21579 # For Solaris; some versions of Sun CC require a space after -R and
21580 # others require no space. Words are not sufficient . . . .
e6cc62c6 21581 case `(uname -sr) 2>/dev/null` in
90dd450c 21582 "SunOS 5"*)
e6cc62c6
VS
21583 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21584echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21585 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21586 cat >conftest.$ac_ext <<_ACEOF
21587#line $LINENO "configure"
21588/* confdefs.h. */
21589_ACEOF
21590cat confdefs.h >>conftest.$ac_ext
21591cat >>conftest.$ac_ext <<_ACEOF
21592/* end confdefs.h. */
21593
21594int
21595main ()
21596{
90dd450c 21597
e6cc62c6
VS
21598 ;
21599 return 0;
21600}
21601_ACEOF
21602rm -f conftest.$ac_objext conftest$ac_exeext
21603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604 (eval $ac_link) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try='test -s conftest$ac_exeext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
90dd450c 21614 ac_R_nospace=yes
3a922bb4 21615else
e6cc62c6
VS
21616 echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619ac_R_nospace=no
3a922bb4 21620fi
e6cc62c6 21621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21622 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21623 echo "$as_me:$LINENO: result: no" >&5
21624echo "${ECHO_T}no" >&6
90dd450c
VZ
21625 X_LIBS="$X_LIBS -R$x_libraries"
21626 else
21627 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21628 cat >conftest.$ac_ext <<_ACEOF
21629#line $LINENO "configure"
21630/* confdefs.h. */
21631_ACEOF
21632cat confdefs.h >>conftest.$ac_ext
21633cat >>conftest.$ac_ext <<_ACEOF
21634/* end confdefs.h. */
21635
21636int
21637main ()
21638{
6f754473 21639
e6cc62c6
VS
21640 ;
21641 return 0;
21642}
21643_ACEOF
21644rm -f conftest.$ac_objext conftest$ac_exeext
21645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21646 (eval $ac_link) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -s conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
90dd450c
VZ
21656 ac_R_space=yes
21657else
e6cc62c6
VS
21658 echo "$as_me: failed program was:" >&5
21659sed 's/^/| /' conftest.$ac_ext >&5
21660
21661ac_R_space=no
90dd450c 21662fi
e6cc62c6 21663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21664 if test $ac_R_space = yes; then
e6cc62c6
VS
21665 echo "$as_me:$LINENO: result: yes" >&5
21666echo "${ECHO_T}yes" >&6
90dd450c
VZ
21667 X_LIBS="$X_LIBS -R $x_libraries"
21668 else
e6cc62c6
VS
21669 echo "$as_me:$LINENO: result: neither works" >&5
21670echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21671 fi
21672 fi
e6cc62c6 21673 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21674 esac
21675 fi
21676
21677 # Check for system-dependent libraries X programs must link with.
21678 # Do this before checking for the system-independent R6 libraries
21679 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21680
90dd450c
VZ
21681 if test "$ISC" = yes; then
21682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21683 else
e6cc62c6
VS
21684 # Martyn Johnson says this is needed for Ultrix, if the X
21685 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21686 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21687 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21688 cat >conftest.$ac_ext <<_ACEOF
21689#line $LINENO "configure"
21690/* confdefs.h. */
21691_ACEOF
21692cat confdefs.h >>conftest.$ac_ext
21693cat >>conftest.$ac_ext <<_ACEOF
21694/* end confdefs.h. */
21695
247f5006 21696/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21697#ifdef __cplusplus
21698extern "C"
21699#endif
247f5006 21700/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21701 builtin and then its argument prototype would still apply. */
21702char XOpenDisplay ();
21703int
21704main ()
21705{
21706XOpenDisplay ();
21707 ;
21708 return 0;
21709}
21710_ACEOF
21711rm -f conftest.$ac_objext conftest$ac_exeext
21712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21713 (eval $ac_link) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -s conftest$ac_exeext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 :
21724else
21725 echo "$as_me: failed program was:" >&5
21726sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21727
e6cc62c6
VS
21728echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21729echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21730if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21732else
e6cc62c6
VS
21733 ac_check_lib_save_LIBS=$LIBS
21734LIBS="-ldnet $LIBS"
21735cat >conftest.$ac_ext <<_ACEOF
21736#line $LINENO "configure"
21737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
a0b9e27f 21742
e6cc62c6
VS
21743/* Override any gcc2 internal prototype to avoid an error. */
21744#ifdef __cplusplus
21745extern "C"
21746#endif
21747/* We use char because int might match the return type of a gcc2
21748 builtin and then its argument prototype would still apply. */
21749char dnet_ntoa ();
21750int
21751main ()
21752{
21753dnet_ntoa ();
21754 ;
21755 return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
21759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760 (eval $ac_link) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } &&
21764 { ac_try='test -s conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 ac_cv_lib_dnet_dnet_ntoa=yes
21771else
21772 echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
21775ac_cv_lib_dnet_dnet_ntoa=no
21776fi
21777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21778LIBS=$ac_check_lib_save_LIBS
21779fi
21780echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21781echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21782if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21783 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21784fi
21785
90dd450c 21786 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21787 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21788echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21789if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21791else
e6cc62c6 21792 ac_check_lib_save_LIBS=$LIBS
90dd450c 21793LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21794cat >conftest.$ac_ext <<_ACEOF
21795#line $LINENO "configure"
21796/* confdefs.h. */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h. */
21801
90dd450c 21802/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21803#ifdef __cplusplus
21804extern "C"
21805#endif
90dd450c 21806/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21807 builtin and then its argument prototype would still apply. */
21808char dnet_ntoa ();
21809int
21810main ()
21811{
21812dnet_ntoa ();
21813 ;
21814 return 0;
21815}
21816_ACEOF
21817rm -f conftest.$ac_objext conftest$ac_exeext
21818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21819 (eval $ac_link) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try='test -s conftest$ac_exeext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21830else
21831 echo "$as_me: failed program was:" >&5
21832sed 's/^/| /' conftest.$ac_ext >&5
21833
21834ac_cv_lib_dnet_stub_dnet_ntoa=no
21835fi
21836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21837LIBS=$ac_check_lib_save_LIBS
21838fi
21839echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21840echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21841if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21842 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21843fi
21844
90dd450c 21845 fi
e6cc62c6
VS
21846fi
21847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21848 LIBS="$ac_xsave_LIBS"
978f1259 21849
90dd450c
VZ
21850 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21851 # to get the SysV transport functions.
e6cc62c6 21852 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21853 # needs -lnsl.
21854 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21855 # on Irix 5.2, according to T.E. Dickey.
21856 # The functions gethostbyname, getservbyname, and inet_addr are
21857 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21858 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21859echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21860if test "${ac_cv_func_gethostbyname+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862else
21863 cat >conftest.$ac_ext <<_ACEOF
21864#line $LINENO "configure"
21865/* confdefs.h. */
21866_ACEOF
21867cat confdefs.h >>conftest.$ac_ext
21868cat >>conftest.$ac_ext <<_ACEOF
21869/* end confdefs.h. */
90dd450c 21870/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21871 which can conflict with char gethostbyname (); below.
21872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873 <limits.h> exists even on freestanding compilers. */
21874#ifdef __STDC__
21875# include <limits.h>
21876#else
21877# include <assert.h>
21878#endif
90dd450c 21879/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21880#ifdef __cplusplus
21881extern "C"
21882{
21883#endif
90dd450c 21884/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21885 builtin and then its argument prototype would still apply. */
21886char gethostbyname ();
90dd450c
VZ
21887/* The GNU C library defines this for functions which it implements
21888 to always fail with ENOSYS. Some functions are actually named
21889 something starting with __ and the normal name is an alias. */
21890#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21891choke me
21892#else
e6cc62c6
VS
21893char (*f) () = gethostbyname;
21894#endif
21895#ifdef __cplusplus
21896}
90dd450c 21897#endif
978f1259 21898
e6cc62c6
VS
21899int
21900main ()
21901{
21902return f != gethostbyname;
21903 ;
21904 return 0;
21905}
21906_ACEOF
21907rm -f conftest.$ac_objext conftest$ac_exeext
21908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21909 (eval $ac_link) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
21913 { ac_try='test -s conftest$ac_exeext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 ac_cv_func_gethostbyname=yes
21920else
21921 echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924ac_cv_func_gethostbyname=no
21925fi
21926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21927fi
21928echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21929echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21930
90dd450c 21931 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21932 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21933echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21934if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21936else
e6cc62c6 21937 ac_check_lib_save_LIBS=$LIBS
90dd450c 21938LIBS="-lnsl $LIBS"
e6cc62c6
VS
21939cat >conftest.$ac_ext <<_ACEOF
21940#line $LINENO "configure"
21941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
21946
90dd450c 21947/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21948#ifdef __cplusplus
21949extern "C"
21950#endif
90dd450c 21951/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21952 builtin and then its argument prototype would still apply. */
21953char gethostbyname ();
21954int
21955main ()
21956{
21957gethostbyname ();
21958 ;
21959 return 0;
21960}
21961_ACEOF
21962rm -f conftest.$ac_objext conftest$ac_exeext
21963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964 (eval $ac_link) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } &&
21968 { ac_try='test -s conftest$ac_exeext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 ac_cv_lib_nsl_gethostbyname=yes
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979ac_cv_lib_nsl_gethostbyname=no
21980fi
21981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21982LIBS=$ac_check_lib_save_LIBS
21983fi
21984echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21985echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21986if test $ac_cv_lib_nsl_gethostbyname = yes; then
21987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21988fi
247f5006 21989
e6cc62c6
VS
21990 if test $ac_cv_lib_nsl_gethostbyname = no; then
21991 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21992echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21993if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21995else
e6cc62c6
VS
21996 ac_check_lib_save_LIBS=$LIBS
21997LIBS="-lbsd $LIBS"
21998cat >conftest.$ac_ext <<_ACEOF
21999#line $LINENO "configure"
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
22005
22006/* Override any gcc2 internal prototype to avoid an error. */
22007#ifdef __cplusplus
22008extern "C"
22009#endif
22010/* We use char because int might match the return type of a gcc2
22011 builtin and then its argument prototype would still apply. */
22012char gethostbyname ();
22013int
22014main ()
22015{
22016gethostbyname ();
22017 ;
22018 return 0;
22019}
22020_ACEOF
22021rm -f conftest.$ac_objext conftest$ac_exeext
22022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023 (eval $ac_link) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } &&
22027 { ac_try='test -s conftest$ac_exeext'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 ac_cv_lib_bsd_gethostbyname=yes
22034else
22035 echo "$as_me: failed program was:" >&5
22036sed 's/^/| /' conftest.$ac_ext >&5
22037
22038ac_cv_lib_bsd_gethostbyname=no
22039fi
22040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22041LIBS=$ac_check_lib_save_LIBS
22042fi
22043echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22044echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22045if test $ac_cv_lib_bsd_gethostbyname = yes; then
22046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22047fi
b12915c1 22048
e6cc62c6 22049 fi
90dd450c
VZ
22050 fi
22051
22052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22053 # socket/setsockopt and other routines are undefined under SCO ODT
22054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22055 # on later versions), says Simon Leinen: it contains gethostby*
22056 # variants that don't use the name server (or something). -lsocket
22057 # must be given before -lnsl if both are needed. We assume that
22058 # if connect needs -lnsl, so does gethostbyname.
22059 echo "$as_me:$LINENO: checking for connect" >&5
22060echo $ECHO_N "checking for connect... $ECHO_C" >&6
22061if test "${ac_cv_func_connect+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064 cat >conftest.$ac_ext <<_ACEOF
22065#line $LINENO "configure"
22066/* confdefs.h. */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h. */
90dd450c 22071/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22072 which can conflict with char connect (); below.
22073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22074 <limits.h> exists even on freestanding compilers. */
22075#ifdef __STDC__
22076# include <limits.h>
22077#else
22078# include <assert.h>
22079#endif
90dd450c 22080/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22081#ifdef __cplusplus
22082extern "C"
22083{
22084#endif
90dd450c 22085/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22086 builtin and then its argument prototype would still apply. */
22087char connect ();
90dd450c
VZ
22088/* The GNU C library defines this for functions which it implements
22089 to always fail with ENOSYS. Some functions are actually named
22090 something starting with __ and the normal name is an alias. */
22091#if defined (__stub_connect) || defined (__stub___connect)
22092choke me
22093#else
e6cc62c6
VS
22094char (*f) () = connect;
22095#endif
22096#ifdef __cplusplus
22097}
90dd450c
VZ
22098#endif
22099
e6cc62c6
VS
22100int
22101main ()
22102{
22103return f != connect;
22104 ;
22105 return 0;
22106}
22107_ACEOF
22108rm -f conftest.$ac_objext conftest$ac_exeext
22109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22110 (eval $ac_link) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
22114 { ac_try='test -s conftest$ac_exeext'
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
22120 ac_cv_func_connect=yes
22121else
22122 echo "$as_me: failed program was:" >&5
22123sed 's/^/| /' conftest.$ac_ext >&5
22124
22125ac_cv_func_connect=no
22126fi
22127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22128fi
22129echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22130echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22131
90dd450c 22132 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22133 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22134echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22135if test "${ac_cv_lib_socket_connect+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22137else
e6cc62c6 22138 ac_check_lib_save_LIBS=$LIBS
90dd450c 22139LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22140cat >conftest.$ac_ext <<_ACEOF
22141#line $LINENO "configure"
22142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
22147
90dd450c 22148/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22149#ifdef __cplusplus
22150extern "C"
22151#endif
90dd450c 22152/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22153 builtin and then its argument prototype would still apply. */
22154char connect ();
22155int
22156main ()
22157{
22158connect ();
22159 ;
22160 return 0;
22161}
22162_ACEOF
22163rm -f conftest.$ac_objext conftest$ac_exeext
22164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165 (eval $ac_link) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } &&
22169 { ac_try='test -s conftest$ac_exeext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_lib_socket_connect=yes
22176else
22177 echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
22180ac_cv_lib_socket_connect=no
22181fi
22182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22183LIBS=$ac_check_lib_save_LIBS
22184fi
22185echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22186echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22187if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22188 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22189fi
77e13408 22190
90dd450c 22191 fi
25d0687a 22192
e6cc62c6
VS
22193 # Guillermo Gomez says -lposix is necessary on A/UX.
22194 echo "$as_me:$LINENO: checking for remove" >&5
22195echo $ECHO_N "checking for remove... $ECHO_C" >&6
22196if test "${ac_cv_func_remove+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198else
22199 cat >conftest.$ac_ext <<_ACEOF
22200#line $LINENO "configure"
22201/* confdefs.h. */
22202_ACEOF
22203cat confdefs.h >>conftest.$ac_ext
22204cat >>conftest.$ac_ext <<_ACEOF
22205/* end confdefs.h. */
90dd450c 22206/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22207 which can conflict with char remove (); below.
22208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209 <limits.h> exists even on freestanding compilers. */
22210#ifdef __STDC__
22211# include <limits.h>
22212#else
22213# include <assert.h>
22214#endif
90dd450c 22215/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22216#ifdef __cplusplus
22217extern "C"
22218{
22219#endif
90dd450c 22220/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22221 builtin and then its argument prototype would still apply. */
22222char remove ();
90dd450c
VZ
22223/* The GNU C library defines this for functions which it implements
22224 to always fail with ENOSYS. Some functions are actually named
22225 something starting with __ and the normal name is an alias. */
22226#if defined (__stub_remove) || defined (__stub___remove)
22227choke me
22228#else
e6cc62c6
VS
22229char (*f) () = remove;
22230#endif
22231#ifdef __cplusplus
22232}
90dd450c 22233#endif
55e80573 22234
e6cc62c6
VS
22235int
22236main ()
22237{
22238return f != remove;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext conftest$ac_exeext
22244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } &&
22249 { ac_try='test -s conftest$ac_exeext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_func_remove=yes
22256else
22257 echo "$as_me: failed program was:" >&5
22258sed 's/^/| /' conftest.$ac_ext >&5
22259
22260ac_cv_func_remove=no
22261fi
22262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22263fi
22264echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22265echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22266
90dd450c 22267 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22268 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22269echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22270if test "${ac_cv_lib_posix_remove+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22272else
e6cc62c6 22273 ac_check_lib_save_LIBS=$LIBS
90dd450c 22274LIBS="-lposix $LIBS"
e6cc62c6
VS
22275cat >conftest.$ac_ext <<_ACEOF
22276#line $LINENO "configure"
22277/* confdefs.h. */
22278_ACEOF
22279cat confdefs.h >>conftest.$ac_ext
22280cat >>conftest.$ac_ext <<_ACEOF
22281/* end confdefs.h. */
22282
90dd450c 22283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22284#ifdef __cplusplus
22285extern "C"
22286#endif
90dd450c 22287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22288 builtin and then its argument prototype would still apply. */
22289char remove ();
22290int
22291main ()
22292{
22293remove ();
22294 ;
22295 return 0;
22296}
22297_ACEOF
22298rm -f conftest.$ac_objext conftest$ac_exeext
22299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22300 (eval $ac_link) 2>&5
22301 ac_status=$?
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
22304 { ac_try='test -s conftest$ac_exeext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ac_cv_lib_posix_remove=yes
22311else
22312 echo "$as_me: failed program was:" >&5
22313sed 's/^/| /' conftest.$ac_ext >&5
22314
22315ac_cv_lib_posix_remove=no
22316fi
22317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22318LIBS=$ac_check_lib_save_LIBS
22319fi
22320echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22321echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22322if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22324fi
f6bcfd97 22325
6fa882bd
RR
22326 fi
22327
90dd450c 22328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22329 echo "$as_me:$LINENO: checking for shmat" >&5
22330echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22331if test "${ac_cv_func_shmat+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333else
22334 cat >conftest.$ac_ext <<_ACEOF
22335#line $LINENO "configure"
22336/* confdefs.h. */
22337_ACEOF
22338cat confdefs.h >>conftest.$ac_ext
22339cat >>conftest.$ac_ext <<_ACEOF
22340/* end confdefs.h. */
90dd450c 22341/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22342 which can conflict with char shmat (); below.
22343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22344 <limits.h> exists even on freestanding compilers. */
22345#ifdef __STDC__
22346# include <limits.h>
22347#else
22348# include <assert.h>
22349#endif
90dd450c 22350/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22351#ifdef __cplusplus
22352extern "C"
22353{
22354#endif
90dd450c 22355/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22356 builtin and then its argument prototype would still apply. */
22357char shmat ();
90dd450c
VZ
22358/* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361#if defined (__stub_shmat) || defined (__stub___shmat)
22362choke me
22363#else
e6cc62c6
VS
22364char (*f) () = shmat;
22365#endif
22366#ifdef __cplusplus
22367}
90dd450c 22368#endif
10f2d63a 22369
e6cc62c6
VS
22370int
22371main ()
22372{
22373return f != shmat;
22374 ;
22375 return 0;
22376}
22377_ACEOF
22378rm -f conftest.$ac_objext conftest$ac_exeext
22379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22380 (eval $ac_link) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } &&
22384 { ac_try='test -s conftest$ac_exeext'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_func_shmat=yes
22391else
22392 echo "$as_me: failed program was:" >&5
22393sed 's/^/| /' conftest.$ac_ext >&5
22394
22395ac_cv_func_shmat=no
22396fi
22397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22398fi
22399echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22400echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22401
90dd450c 22402 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22404echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22405if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22407else
e6cc62c6 22408 ac_check_lib_save_LIBS=$LIBS
90dd450c 22409LIBS="-lipc $LIBS"
e6cc62c6
VS
22410cat >conftest.$ac_ext <<_ACEOF
22411#line $LINENO "configure"
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417
8284b0c5 22418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22419#ifdef __cplusplus
22420extern "C"
22421#endif
90dd450c 22422/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22423 builtin and then its argument prototype would still apply. */
22424char shmat ();
22425int
22426main ()
22427{
22428shmat ();
22429 ;
22430 return 0;
22431}
22432_ACEOF
22433rm -f conftest.$ac_objext conftest$ac_exeext
22434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22435 (eval $ac_link) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } &&
22439 { ac_try='test -s conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_cv_lib_ipc_shmat=yes
22446else
22447 echo "$as_me: failed program was:" >&5
22448sed 's/^/| /' conftest.$ac_ext >&5
22449
22450ac_cv_lib_ipc_shmat=no
22451fi
22452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22453LIBS=$ac_check_lib_save_LIBS
22454fi
22455echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22456echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22457if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22459fi
22460
d558c907 22461 fi
90dd450c 22462 fi
3a922bb4 22463
90dd450c 22464 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22465 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22466 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22467 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22468 # check for ICE first), but we must link in the order -lSM -lICE or
22469 # we get undefined symbols. So assume we have SM if we have ICE.
22470 # These have to be linked with before -lX11, unlike the other
22471 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22472 # John Interrante, Karl Berry
22473 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22474echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22475if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22477else
22478 ac_check_lib_save_LIBS=$LIBS
f09359cf 22479LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22480cat >conftest.$ac_ext <<_ACEOF
22481#line $LINENO "configure"
22482/* confdefs.h. */
22483_ACEOF
22484cat confdefs.h >>conftest.$ac_ext
22485cat >>conftest.$ac_ext <<_ACEOF
22486/* end confdefs.h. */
22487
90dd450c 22488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22489#ifdef __cplusplus
22490extern "C"
22491#endif
90dd450c 22492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22493 builtin and then its argument prototype would still apply. */
22494char IceConnectionNumber ();
22495int
22496main ()
22497{
22498IceConnectionNumber ();
22499 ;
22500 return 0;
22501}
22502_ACEOF
22503rm -f conftest.$ac_objext conftest$ac_exeext
22504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505 (eval $ac_link) 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } &&
22509 { ac_try='test -s conftest$ac_exeext'
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; }; then
22515 ac_cv_lib_ICE_IceConnectionNumber=yes
22516else
22517 echo "$as_me: failed program was:" >&5
22518sed 's/^/| /' conftest.$ac_ext >&5
22519
22520ac_cv_lib_ICE_IceConnectionNumber=no
22521fi
22522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22523LIBS=$ac_check_lib_save_LIBS
22524fi
22525echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22526echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22527if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22528 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22529fi
10f2d63a 22530
e6cc62c6 22531 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22532
22533fi
22534
8284b0c5 22535
90dd450c 22536 if test "$no_x" = "yes"; then
e6cc62c6
VS
22537 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22538echo "$as_me: error: X11 not found" >&2;}
22539 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22540 fi
22541
22542 GUI_TK_LIBRARY="$X_LIBS"
22543 TOOLKIT_INCLUDE="$X_CFLAGS"
22544 AFMINSTALL=afminstall
22545 COMPILED_X_PROGRAM=0
22546
21d1c967 22547 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22548 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22549echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22550 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22551 echo "$as_me:$LINENO: result: not found" >&5
22552echo "${ECHO_T}not found" >&6
22553 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22554echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22555 { (exit 1); exit 1; }; }
90dd450c 22556 else
e6cc62c6
VS
22557 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22558echo "${ECHO_T}$MICROWIN" >&6
22559 cat >>confdefs.h <<\_ACEOF
21d1c967 22560#define wxUSE_NANOX 1
e6cc62c6 22561_ACEOF
21d1c967 22562
90dd450c
VZ
22563 fi
22564 fi
22565
22566 xpm_link=
e6cc62c6
VS
22567 echo "$as_me:$LINENO: checking for Xpm library" >&5
22568echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22569
90dd450c 22570ac_find_libraries=
2b5f62a0 22571for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22572 do
22573 for ac_extension in a so sl dylib; do
22574 if test -f "$ac_dir/libXpm.$ac_extension"; then
22575 ac_find_libraries=$ac_dir
22576 break 2
22577 fi
22578 done
22579 done
22580
22581 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22582
90dd450c
VZ
22583 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22584 result=$?
22585 if test $result = 0; then
22586 ac_path_to_link=""
22587 else
22588 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22589 fi
90dd450c 22590
21d1c967
GD
22591 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22592 xpm_link=" -lXpm"
e6cc62c6 22593 cat >>confdefs.h <<\_ACEOF
21d1c967 22594#define wxHAVE_LIB_XPM 1
e6cc62c6 22595_ACEOF
90dd450c 22596
e6cc62c6
VS
22597 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22598echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22599 else
e6cc62c6
VS
22600 cat >conftest.$ac_ext <<_ACEOF
22601#line $LINENO "configure"
22602/* confdefs.h. */
22603_ACEOF
22604cat confdefs.h >>conftest.$ac_ext
22605cat >>conftest.$ac_ext <<_ACEOF
22606/* end confdefs.h. */
90dd450c 22607
21d1c967 22608 #include <X11/xpm.h>
e6cc62c6
VS
22609
22610int
22611main ()
22612{
6f72b082 22613
21d1c967
GD
22614 int version;
22615 version = XpmLibraryVersion();
e6cc62c6
VS
22616
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621rm -f conftest.$ac_objext
22622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633
21d1c967 22634 xpm_link=" -lXpm"
e6cc62c6 22635 cat >>confdefs.h <<\_ACEOF
21d1c967 22636#define wxHAVE_LIB_XPM 1
e6cc62c6 22637_ACEOF
90dd450c 22638
e6cc62c6
VS
22639 echo "$as_me:$LINENO: result: found in default search path" >&5
22640echo "${ECHO_T}found in default search path" >&6
21d1c967 22641 COMPILED_X_PROGRAM=0
e6cc62c6 22642
21d1c967 22643else
e6cc62c6
VS
22644 echo "$as_me: failed program was:" >&5
22645sed 's/^/| /' conftest.$ac_ext >&5
22646
22647
22648 echo "$as_me:$LINENO: result: no" >&5
22649echo "${ECHO_T}no" >&6
22650 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22651echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22652
22653
6f72b082 22654fi
e6cc62c6 22655rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22656 fi
90dd450c 22657
e6cc62c6
VS
22658 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22659echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22660if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22662else
e6cc62c6 22663 ac_check_lib_save_LIBS=$LIBS
f7f78039 22664LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22665cat >conftest.$ac_ext <<_ACEOF
22666#line $LINENO "configure"
22667/* confdefs.h. */
22668_ACEOF
22669cat confdefs.h >>conftest.$ac_ext
22670cat >>conftest.$ac_ext <<_ACEOF
22671/* end confdefs.h. */
22672
f7f78039 22673/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22674#ifdef __cplusplus
22675extern "C"
22676#endif
f7f78039 22677/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22678 builtin and then its argument prototype would still apply. */
22679char XShapeQueryExtension ();
22680int
22681main ()
22682{
22683XShapeQueryExtension ();
22684 ;
22685 return 0;
22686}
22687_ACEOF
22688rm -f conftest.$ac_objext conftest$ac_exeext
22689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22690 (eval $ac_link) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } &&
22694 { ac_try='test -s conftest$ac_exeext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22700 ac_cv_lib_Xext_XShapeQueryExtension=yes
22701else
22702 echo "$as_me: failed program was:" >&5
22703sed 's/^/| /' conftest.$ac_ext >&5
22704
22705ac_cv_lib_Xext_XShapeQueryExtension=no
22706fi
22707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22708LIBS=$ac_check_lib_save_LIBS
22709fi
22710echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22711echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22712if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22713
f7f78039
MB
22714 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22715 wxHAVE_XEXT_LIB=1
e6cc62c6 22716
f7f78039
MB
22717fi
22718
22719
2b5f62a0 22720 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22721
2b5f62a0 22722 succeeded=no
90dd450c 22723
2b5f62a0
VZ
22724 if test -z "$PKG_CONFIG"; then
22725 # Extract the first word of "pkg-config", so it can be a program name with args.
22726set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22727echo "$as_me:$LINENO: checking for $ac_word" >&5
22728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22729if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22731else
e6cc62c6
VS
22732 case $PKG_CONFIG in
22733 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22735 ;;
2b5f62a0 22736 *)
e6cc62c6
VS
22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738for as_dir in $PATH
22739do
22740 IFS=$as_save_IFS
22741 test -z "$as_dir" && as_dir=.
22742 for ac_exec_ext in '' $ac_executable_extensions; do
22743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22746 break 2
22747 fi
22748done
22749done
22750
2b5f62a0
VZ
22751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22752 ;;
22753esac
22754fi
e6cc62c6
VS
22755PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22756
2b5f62a0 22757if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22758 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22759echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22760else
e6cc62c6
VS
22761 echo "$as_me:$LINENO: result: no" >&5
22762echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22763fi
22764
22765 fi
22766
22767 if test "$PKG_CONFIG" = "no" ; then
22768 echo "*** The pkg-config script could not be found. Make sure it is"
22769 echo "*** in your path, or set the PKG_CONFIG environment variable"
22770 echo "*** to the full path to pkg-config."
22771 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22772 else
22773 PKG_CONFIG_MIN_VERSION=0.9.0
22774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22775 echo "$as_me:$LINENO: checking for pangox" >&5
22776echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22777
22778 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22779 echo "$as_me:$LINENO: result: yes" >&5
22780echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22781 succeeded=yes
22782
e6cc62c6
VS
22783 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22784echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22785 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22786 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22787echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22788
e6cc62c6
VS
22789 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22790echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22791 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22792 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22793echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22794 else
22795 PANGOX_CFLAGS=""
22796 PANGOX_LIBS=""
e6cc62c6 22797 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22798 ## do set a variable so people can do so.
22799 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22800
2b5f62a0
VZ
22801 fi
22802
e6cc62c6
VS
22803
22804
2b5f62a0
VZ
22805 else
22806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22808 fi
22809 fi
22810
22811 if test $succeeded = yes; then
e6cc62c6 22812
2b5f62a0 22813 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22815
2b5f62a0 22816 else
e6cc62c6
VS
22817
22818 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22819echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22820 { (exit 1); exit 1; }; }
22821
22822
2b5f62a0
VZ
22823 fi
22824
e6cc62c6 22825
2b5f62a0
VZ
22826 succeeded=no
22827
22828 if test -z "$PKG_CONFIG"; then
22829 # Extract the first word of "pkg-config", so it can be a program name with args.
22830set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22831echo "$as_me:$LINENO: checking for $ac_word" >&5
22832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22833if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22835else
e6cc62c6
VS
22836 case $PKG_CONFIG in
22837 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22839 ;;
2b5f62a0 22840 *)
e6cc62c6
VS
22841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22842for as_dir in $PATH
22843do
22844 IFS=$as_save_IFS
22845 test -z "$as_dir" && as_dir=.
22846 for ac_exec_ext in '' $ac_executable_extensions; do
22847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22850 break 2
22851 fi
22852done
22853done
22854
2b5f62a0
VZ
22855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22856 ;;
22857esac
22858fi
e6cc62c6
VS
22859PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22860
2b5f62a0 22861if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22862 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22863echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22864else
e6cc62c6
VS
22865 echo "$as_me:$LINENO: result: no" >&5
22866echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22867fi
22868
22869 fi
22870
22871 if test "$PKG_CONFIG" = "no" ; then
22872 echo "*** The pkg-config script could not be found. Make sure it is"
22873 echo "*** in your path, or set the PKG_CONFIG environment variable"
22874 echo "*** to the full path to pkg-config."
22875 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22876 else
22877 PKG_CONFIG_MIN_VERSION=0.9.0
22878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22879 echo "$as_me:$LINENO: checking for pangoft2" >&5
22880echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22881
22882 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22883 echo "$as_me:$LINENO: result: yes" >&5
22884echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22885 succeeded=yes
22886
e6cc62c6
VS
22887 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22888echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22889 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22890 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22891echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22892
e6cc62c6
VS
22893 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22894echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22895 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22896 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22897echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22898 else
22899 PANGOFT2_CFLAGS=""
22900 PANGOFT2_LIBS=""
e6cc62c6 22901 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22902 ## do set a variable so people can do so.
22903 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22904
2b5f62a0
VZ
22905 fi
22906
e6cc62c6
VS
22907
22908
2b5f62a0
VZ
22909 else
22910 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22911 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22912 fi
22913 fi
22914
22915 if test $succeeded = yes; then
e6cc62c6 22916
2b5f62a0 22917 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22918 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22919
2b5f62a0 22920 else
e6cc62c6
VS
22921
22922 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22923echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22924 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22925
22926
2b5f62a0
VZ
22927 fi
22928
e6cc62c6 22929
2b5f62a0
VZ
22930 succeeded=no
22931
22932 if test -z "$PKG_CONFIG"; then
22933 # Extract the first word of "pkg-config", so it can be a program name with args.
22934set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22935echo "$as_me:$LINENO: checking for $ac_word" >&5
22936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22937if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22939else
e6cc62c6
VS
22940 case $PKG_CONFIG in
22941 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22943 ;;
2b5f62a0 22944 *)
e6cc62c6
VS
22945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22946for as_dir in $PATH
22947do
22948 IFS=$as_save_IFS
22949 test -z "$as_dir" && as_dir=.
22950 for ac_exec_ext in '' $ac_executable_extensions; do
22951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22954 break 2
22955 fi
22956done
22957done
22958
2b5f62a0
VZ
22959 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22960 ;;
22961esac
22962fi
e6cc62c6
VS
22963PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22964
2b5f62a0 22965if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22966 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22967echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22968else
e6cc62c6
VS
22969 echo "$as_me:$LINENO: result: no" >&5
22970echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22971fi
22972
22973 fi
22974
22975 if test "$PKG_CONFIG" = "no" ; then
22976 echo "*** The pkg-config script could not be found. Make sure it is"
22977 echo "*** in your path, or set the PKG_CONFIG environment variable"
22978 echo "*** to the full path to pkg-config."
22979 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22980 else
22981 PKG_CONFIG_MIN_VERSION=0.9.0
22982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22983 echo "$as_me:$LINENO: checking for pangoxft" >&5
22984echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22985
22986 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22987 echo "$as_me:$LINENO: result: yes" >&5
22988echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22989 succeeded=yes
22990
e6cc62c6
VS
22991 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22992echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22993 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22994 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22995echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22996
e6cc62c6
VS
22997 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22998echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22999 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
23000 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23001echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
23002 else
23003 PANGOXFT_CFLAGS=""
23004 PANGOXFT_LIBS=""
e6cc62c6 23005 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23006 ## do set a variable so people can do so.
23007 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 23008
2b5f62a0
VZ
23009 fi
23010
e6cc62c6
VS
23011
23012
2b5f62a0
VZ
23013 else
23014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23016 fi
23017 fi
23018
23019 if test $succeeded = yes; then
e6cc62c6 23020
2b5f62a0 23021 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23022 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23023
2b5f62a0 23024 else
e6cc62c6
VS
23025
23026 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23027echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23028
23029
2b5f62a0
VZ
23030 fi
23031
23032 fi
23033
23034 wxUSE_UNIVERSAL="yes"
23035
23036 if test "$wxUSE_NANOX" = "yes"; then
23037 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23038 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
23039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23040 else
23041 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
23042 fi
23043
23044 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23045 TOOLKIT=X11
23046 GUIDIST=X11_DIST
23047 fi
23048
21d1c967
GD
23049 if test "$wxUSE_MOTIF" = 1; then
23050 if test "$no_x" = yes; then
23051 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23052
23053cat >>confdefs.h <<\_ACEOF
21d1c967 23054#define X_DISPLAY_MISSING 1
e6cc62c6 23055_ACEOF
21d1c967
GD
23056
23057 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23058else
23059 if test -n "$x_includes"; then
23060 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23061 fi
23062
21d1c967
GD
23063 # It would also be nice to do this for all -L options, not just this one.
23064 if test -n "$x_libraries"; then
23065 X_LIBS="$X_LIBS -L$x_libraries"
23066 # For Solaris; some versions of Sun CC require a space after -R and
23067 # others require no space. Words are not sufficient . . . .
e6cc62c6 23068 case `(uname -sr) 2>/dev/null` in
21d1c967 23069 "SunOS 5"*)
e6cc62c6
VS
23070 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23071echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23072 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23073 cat >conftest.$ac_ext <<_ACEOF
23074#line $LINENO "configure"
23075/* confdefs.h. */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h. */
23080
23081int
23082main ()
23083{
21d1c967 23084
e6cc62c6
VS
23085 ;
23086 return 0;
23087}
23088_ACEOF
23089rm -f conftest.$ac_objext conftest$ac_exeext
23090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091 (eval $ac_link) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
23095 { ac_try='test -s conftest$ac_exeext'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; }; then
21d1c967 23101 ac_R_nospace=yes
698dcdb6 23102else
e6cc62c6
VS
23103 echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
23106ac_R_nospace=no
10f2d63a 23107fi
e6cc62c6 23108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23109 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23110 echo "$as_me:$LINENO: result: no" >&5
23111echo "${ECHO_T}no" >&6
21d1c967
GD
23112 X_LIBS="$X_LIBS -R$x_libraries"
23113 else
23114 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23115 cat >conftest.$ac_ext <<_ACEOF
23116#line $LINENO "configure"
23117/* confdefs.h. */
23118_ACEOF
23119cat confdefs.h >>conftest.$ac_ext
23120cat >>conftest.$ac_ext <<_ACEOF
23121/* end confdefs.h. */
23122
23123int
23124main ()
23125{
f0c87536 23126
e6cc62c6
VS
23127 ;
23128 return 0;
23129}
23130_ACEOF
23131rm -f conftest.$ac_objext conftest$ac_exeext
23132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133 (eval $ac_link) 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -s conftest$ac_exeext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
21d1c967
GD
23143 ac_R_space=yes
23144else
e6cc62c6
VS
23145 echo "$as_me: failed program was:" >&5
23146sed 's/^/| /' conftest.$ac_ext >&5
23147
23148ac_R_space=no
21d1c967 23149fi
e6cc62c6 23150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23151 if test $ac_R_space = yes; then
e6cc62c6
VS
23152 echo "$as_me:$LINENO: result: yes" >&5
23153echo "${ECHO_T}yes" >&6
21d1c967
GD
23154 X_LIBS="$X_LIBS -R $x_libraries"
23155 else
e6cc62c6
VS
23156 echo "$as_me:$LINENO: result: neither works" >&5
23157echo "${ECHO_T}neither works" >&6
21d1c967
GD
23158 fi
23159 fi
e6cc62c6 23160 LIBS=$ac_xsave_LIBS
21d1c967
GD
23161 esac
23162 fi
90dd450c 23163
21d1c967
GD
23164 # Check for system-dependent libraries X programs must link with.
23165 # Do this before checking for the system-independent R6 libraries
23166 # (-lICE), since we may need -lsocket or whatever for X linking.
23167
23168 if test "$ISC" = yes; then
23169 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23170 else
e6cc62c6
VS
23171 # Martyn Johnson says this is needed for Ultrix, if the X
23172 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23173 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23174 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23175 cat >conftest.$ac_ext <<_ACEOF
23176#line $LINENO "configure"
23177/* confdefs.h. */
23178_ACEOF
23179cat confdefs.h >>conftest.$ac_ext
23180cat >>conftest.$ac_ext <<_ACEOF
23181/* end confdefs.h. */
23182
247f5006 23183/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23184#ifdef __cplusplus
23185extern "C"
23186#endif
247f5006 23187/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23188 builtin and then its argument prototype would still apply. */
23189char XOpenDisplay ();
23190int
23191main ()
23192{
23193XOpenDisplay ();
23194 ;
23195 return 0;
23196}
23197_ACEOF
23198rm -f conftest.$ac_objext conftest$ac_exeext
23199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200 (eval $ac_link) 2>&5
23201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } &&
23204 { ac_try='test -s conftest$ac_exeext'
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; }; then
23210 :
23211else
23212 echo "$as_me: failed program was:" >&5
23213sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23214
e6cc62c6
VS
23215echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23216echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23217if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23219else
e6cc62c6
VS
23220 ac_check_lib_save_LIBS=$LIBS
23221LIBS="-ldnet $LIBS"
23222cat >conftest.$ac_ext <<_ACEOF
23223#line $LINENO "configure"
23224/* confdefs.h. */
23225_ACEOF
23226cat confdefs.h >>conftest.$ac_ext
23227cat >>conftest.$ac_ext <<_ACEOF
23228/* end confdefs.h. */
a0b9e27f 23229
e6cc62c6
VS
23230/* Override any gcc2 internal prototype to avoid an error. */
23231#ifdef __cplusplus
23232extern "C"
23233#endif
23234/* We use char because int might match the return type of a gcc2
23235 builtin and then its argument prototype would still apply. */
23236char dnet_ntoa ();
23237int
23238main ()
23239{
23240dnet_ntoa ();
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245rm -f conftest.$ac_objext conftest$ac_exeext
23246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23247 (eval $ac_link) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } &&
23251 { ac_try='test -s conftest$ac_exeext'
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257 ac_cv_lib_dnet_dnet_ntoa=yes
23258else
23259 echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
23262ac_cv_lib_dnet_dnet_ntoa=no
23263fi
23264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23265LIBS=$ac_check_lib_save_LIBS
23266fi
23267echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23268echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23269if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23270 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23271fi
0fb0dd83 23272
21d1c967 23273 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23274 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23275echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23276if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23278else
e6cc62c6 23279 ac_check_lib_save_LIBS=$LIBS
21d1c967 23280LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23281cat >conftest.$ac_ext <<_ACEOF
23282#line $LINENO "configure"
23283/* confdefs.h. */
23284_ACEOF
23285cat confdefs.h >>conftest.$ac_ext
23286cat >>conftest.$ac_ext <<_ACEOF
23287/* end confdefs.h. */
23288
21d1c967 23289/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23290#ifdef __cplusplus
23291extern "C"
23292#endif
21d1c967 23293/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23294 builtin and then its argument prototype would still apply. */
23295char dnet_ntoa ();
23296int
23297main ()
23298{
23299dnet_ntoa ();
23300 ;
23301 return 0;
23302}
23303_ACEOF
23304rm -f conftest.$ac_objext conftest$ac_exeext
23305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306 (eval $ac_link) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } &&
23310 { ac_try='test -s conftest$ac_exeext'
23311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312 (eval $ac_try) 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23317else
23318 echo "$as_me: failed program was:" >&5
23319sed 's/^/| /' conftest.$ac_ext >&5
23320
23321ac_cv_lib_dnet_stub_dnet_ntoa=no
23322fi
23323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23324LIBS=$ac_check_lib_save_LIBS
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23327echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23328if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23330fi
23331
21d1c967 23332 fi
e6cc62c6
VS
23333fi
23334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23335 LIBS="$ac_xsave_LIBS"
90dd450c 23336
21d1c967
GD
23337 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23338 # to get the SysV transport functions.
e6cc62c6 23339 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23340 # needs -lnsl.
23341 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23342 # on Irix 5.2, according to T.E. Dickey.
23343 # The functions gethostbyname, getservbyname, and inet_addr are
23344 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23345 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23346echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23347if test "${ac_cv_func_gethostbyname+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23349else
23350 cat >conftest.$ac_ext <<_ACEOF
23351#line $LINENO "configure"
23352/* confdefs.h. */
23353_ACEOF
23354cat confdefs.h >>conftest.$ac_ext
23355cat >>conftest.$ac_ext <<_ACEOF
23356/* end confdefs.h. */
21d1c967 23357/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23358 which can conflict with char gethostbyname (); below.
23359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23360 <limits.h> exists even on freestanding compilers. */
23361#ifdef __STDC__
23362# include <limits.h>
23363#else
23364# include <assert.h>
23365#endif
21d1c967 23366/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23367#ifdef __cplusplus
23368extern "C"
23369{
23370#endif
21d1c967 23371/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23372 builtin and then its argument prototype would still apply. */
23373char gethostbyname ();
21d1c967
GD
23374/* The GNU C library defines this for functions which it implements
23375 to always fail with ENOSYS. Some functions are actually named
23376 something starting with __ and the normal name is an alias. */
23377#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23378choke me
23379#else
e6cc62c6
VS
23380char (*f) () = gethostbyname;
23381#endif
23382#ifdef __cplusplus
23383}
21d1c967 23384#endif
90dd450c 23385
e6cc62c6
VS
23386int
23387main ()
23388{
23389return f != gethostbyname;
23390 ;
23391 return 0;
23392}
23393_ACEOF
23394rm -f conftest.$ac_objext conftest$ac_exeext
23395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23396 (eval $ac_link) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
23400 { ac_try='test -s conftest$ac_exeext'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_func_gethostbyname=yes
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411ac_cv_func_gethostbyname=no
23412fi
23413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23414fi
23415echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23416echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23417
21d1c967 23418 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23419 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23420echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23421if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23423else
e6cc62c6 23424 ac_check_lib_save_LIBS=$LIBS
21d1c967 23425LIBS="-lnsl $LIBS"
e6cc62c6
VS
23426cat >conftest.$ac_ext <<_ACEOF
23427#line $LINENO "configure"
23428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
23432/* end confdefs.h. */
23433
21d1c967 23434/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23435#ifdef __cplusplus
23436extern "C"
23437#endif
21d1c967 23438/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23439 builtin and then its argument prototype would still apply. */
23440char gethostbyname ();
23441int
23442main ()
23443{
23444gethostbyname ();
23445 ;
23446 return 0;
23447}
23448_ACEOF
23449rm -f conftest.$ac_objext conftest$ac_exeext
23450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23451 (eval $ac_link) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
23455 { ac_try='test -s conftest$ac_exeext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_lib_nsl_gethostbyname=yes
23462else
23463 echo "$as_me: failed program was:" >&5
23464sed 's/^/| /' conftest.$ac_ext >&5
23465
23466ac_cv_lib_nsl_gethostbyname=no
23467fi
23468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23469LIBS=$ac_check_lib_save_LIBS
23470fi
23471echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23472echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23473if test $ac_cv_lib_nsl_gethostbyname = yes; then
23474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23475fi
247f5006 23476
e6cc62c6
VS
23477 if test $ac_cv_lib_nsl_gethostbyname = no; then
23478 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23479echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23480if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23482else
e6cc62c6
VS
23483 ac_check_lib_save_LIBS=$LIBS
23484LIBS="-lbsd $LIBS"
23485cat >conftest.$ac_ext <<_ACEOF
23486#line $LINENO "configure"
23487/* confdefs.h. */
23488_ACEOF
23489cat confdefs.h >>conftest.$ac_ext
23490cat >>conftest.$ac_ext <<_ACEOF
23491/* end confdefs.h. */
23492
23493/* Override any gcc2 internal prototype to avoid an error. */
23494#ifdef __cplusplus
23495extern "C"
23496#endif
23497/* We use char because int might match the return type of a gcc2
23498 builtin and then its argument prototype would still apply. */
23499char gethostbyname ();
23500int
23501main ()
23502{
23503gethostbyname ();
23504 ;
23505 return 0;
23506}
23507_ACEOF
23508rm -f conftest.$ac_objext conftest$ac_exeext
23509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510 (eval $ac_link) 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -s conftest$ac_exeext'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23520 ac_cv_lib_bsd_gethostbyname=yes
23521else
23522 echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
23525ac_cv_lib_bsd_gethostbyname=no
23526fi
23527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23528LIBS=$ac_check_lib_save_LIBS
23529fi
23530echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23531echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23532if test $ac_cv_lib_bsd_gethostbyname = yes; then
23533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23534fi
90dd450c 23535
e6cc62c6 23536 fi
90dd450c
VZ
23537 fi
23538
21d1c967
GD
23539 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23540 # socket/setsockopt and other routines are undefined under SCO ODT
23541 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23542 # on later versions), says Simon Leinen: it contains gethostby*
23543 # variants that don't use the name server (or something). -lsocket
23544 # must be given before -lnsl if both are needed. We assume that
23545 # if connect needs -lnsl, so does gethostbyname.
23546 echo "$as_me:$LINENO: checking for connect" >&5
23547echo $ECHO_N "checking for connect... $ECHO_C" >&6
23548if test "${ac_cv_func_connect+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550else
23551 cat >conftest.$ac_ext <<_ACEOF
23552#line $LINENO "configure"
23553/* confdefs.h. */
23554_ACEOF
23555cat confdefs.h >>conftest.$ac_ext
23556cat >>conftest.$ac_ext <<_ACEOF
23557/* end confdefs.h. */
21d1c967 23558/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23559 which can conflict with char connect (); below.
23560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23561 <limits.h> exists even on freestanding compilers. */
23562#ifdef __STDC__
23563# include <limits.h>
23564#else
23565# include <assert.h>
23566#endif
21d1c967 23567/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23568#ifdef __cplusplus
23569extern "C"
23570{
23571#endif
21d1c967 23572/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23573 builtin and then its argument prototype would still apply. */
23574char connect ();
21d1c967
GD
23575/* The GNU C library defines this for functions which it implements
23576 to always fail with ENOSYS. Some functions are actually named
23577 something starting with __ and the normal name is an alias. */
23578#if defined (__stub_connect) || defined (__stub___connect)
23579choke me
23580#else
e6cc62c6
VS
23581char (*f) () = connect;
23582#endif
23583#ifdef __cplusplus
23584}
21d1c967 23585#endif
90dd450c 23586
e6cc62c6
VS
23587int
23588main ()
23589{
23590return f != connect;
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest.$ac_objext conftest$ac_exeext
23596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597 (eval $ac_link) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } &&
23601 { ac_try='test -s conftest$ac_exeext'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; }; then
23607 ac_cv_func_connect=yes
23608else
23609 echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
23612ac_cv_func_connect=no
23613fi
23614rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23615fi
23616echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23617echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23618
21d1c967 23619 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23620 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23621echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23622if test "${ac_cv_lib_socket_connect+set}" = set; then
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23624else
e6cc62c6 23625 ac_check_lib_save_LIBS=$LIBS
21d1c967 23626LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23627cat >conftest.$ac_ext <<_ACEOF
23628#line $LINENO "configure"
23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
23634
21d1c967 23635/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23636#ifdef __cplusplus
23637extern "C"
23638#endif
21d1c967 23639/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23640 builtin and then its argument prototype would still apply. */
23641char connect ();
23642int
23643main ()
23644{
23645connect ();
23646 ;
23647 return 0;
23648}
23649_ACEOF
23650rm -f conftest.$ac_objext conftest$ac_exeext
23651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -s conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_lib_socket_connect=yes
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667ac_cv_lib_socket_connect=no
23668fi
23669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23670LIBS=$ac_check_lib_save_LIBS
23671fi
23672echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23673echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23674if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23675 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23676fi
90dd450c 23677
21d1c967 23678 fi
90dd450c 23679
e6cc62c6
VS
23680 # Guillermo Gomez says -lposix is necessary on A/UX.
23681 echo "$as_me:$LINENO: checking for remove" >&5
23682echo $ECHO_N "checking for remove... $ECHO_C" >&6
23683if test "${ac_cv_func_remove+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23685else
23686 cat >conftest.$ac_ext <<_ACEOF
23687#line $LINENO "configure"
23688/* confdefs.h. */
23689_ACEOF
23690cat confdefs.h >>conftest.$ac_ext
23691cat >>conftest.$ac_ext <<_ACEOF
23692/* end confdefs.h. */
21d1c967 23693/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23694 which can conflict with char remove (); below.
23695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696 <limits.h> exists even on freestanding compilers. */
23697#ifdef __STDC__
23698# include <limits.h>
23699#else
23700# include <assert.h>
23701#endif
21d1c967 23702/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23703#ifdef __cplusplus
23704extern "C"
23705{
23706#endif
21d1c967 23707/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23708 builtin and then its argument prototype would still apply. */
23709char remove ();
21d1c967
GD
23710/* The GNU C library defines this for functions which it implements
23711 to always fail with ENOSYS. Some functions are actually named
23712 something starting with __ and the normal name is an alias. */
23713#if defined (__stub_remove) || defined (__stub___remove)
23714choke me
23715#else
e6cc62c6
VS
23716char (*f) () = remove;
23717#endif
23718#ifdef __cplusplus
23719}
21d1c967 23720#endif
90dd450c 23721
e6cc62c6
VS
23722int
23723main ()
23724{
23725return f != remove;
23726 ;
23727 return 0;
23728}
23729_ACEOF
23730rm -f conftest.$ac_objext conftest$ac_exeext
23731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23732 (eval $ac_link) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } &&
23736 { ac_try='test -s conftest$ac_exeext'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 ac_cv_func_remove=yes
23743else
23744 echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747ac_cv_func_remove=no
23748fi
23749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23750fi
23751echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23752echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23753
21d1c967 23754 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23755 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23756echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23757if test "${ac_cv_lib_posix_remove+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23759else
e6cc62c6 23760 ac_check_lib_save_LIBS=$LIBS
21d1c967 23761LIBS="-lposix $LIBS"
e6cc62c6
VS
23762cat >conftest.$ac_ext <<_ACEOF
23763#line $LINENO "configure"
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769
21d1c967 23770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23771#ifdef __cplusplus
23772extern "C"
23773#endif
21d1c967 23774/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23775 builtin and then its argument prototype would still apply. */
23776char remove ();
23777int
23778main ()
23779{
23780remove ();
23781 ;
23782 return 0;
23783}
23784_ACEOF
23785rm -f conftest.$ac_objext conftest$ac_exeext
23786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787 (eval $ac_link) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -s conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_lib_posix_remove=yes
23798else
23799 echo "$as_me: failed program was:" >&5
23800sed 's/^/| /' conftest.$ac_ext >&5
23801
23802ac_cv_lib_posix_remove=no
23803fi
23804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805LIBS=$ac_check_lib_save_LIBS
23806fi
23807echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23808echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23809if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23811fi
19bc6aad 23812
90dd450c 23813 fi
19bc6aad 23814
21d1c967 23815 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23816 echo "$as_me:$LINENO: checking for shmat" >&5
23817echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23818if test "${ac_cv_func_shmat+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23820else
23821 cat >conftest.$ac_ext <<_ACEOF
23822#line $LINENO "configure"
23823/* confdefs.h. */
23824_ACEOF
23825cat confdefs.h >>conftest.$ac_ext
23826cat >>conftest.$ac_ext <<_ACEOF
23827/* end confdefs.h. */
21d1c967 23828/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23829 which can conflict with char shmat (); below.
23830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23831 <limits.h> exists even on freestanding compilers. */
23832#ifdef __STDC__
23833# include <limits.h>
23834#else
23835# include <assert.h>
23836#endif
21d1c967 23837/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23838#ifdef __cplusplus
23839extern "C"
23840{
23841#endif
21d1c967 23842/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23843 builtin and then its argument prototype would still apply. */
23844char shmat ();
21d1c967
GD
23845/* The GNU C library defines this for functions which it implements
23846 to always fail with ENOSYS. Some functions are actually named
23847 something starting with __ and the normal name is an alias. */
23848#if defined (__stub_shmat) || defined (__stub___shmat)
23849choke me
23850#else
e6cc62c6
VS
23851char (*f) () = shmat;
23852#endif
23853#ifdef __cplusplus
23854}
21d1c967 23855#endif
90dd450c 23856
e6cc62c6
VS
23857int
23858main ()
23859{
23860return f != shmat;
23861 ;
23862 return 0;
23863}
23864_ACEOF
23865rm -f conftest.$ac_objext conftest$ac_exeext
23866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23867 (eval $ac_link) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } &&
23871 { ac_try='test -s conftest$ac_exeext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 ac_cv_func_shmat=yes
23878else
23879 echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882ac_cv_func_shmat=no
23883fi
23884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23885fi
23886echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23887echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23888
21d1c967 23889 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23890 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23891echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23892if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23894else
e6cc62c6 23895 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23896LIBS="-lipc $LIBS"
e6cc62c6
VS
23897cat >conftest.$ac_ext <<_ACEOF
23898#line $LINENO "configure"
23899/* confdefs.h. */
23900_ACEOF
23901cat confdefs.h >>conftest.$ac_ext
23902cat >>conftest.$ac_ext <<_ACEOF
23903/* end confdefs.h. */
23904
5c6fa7d2 23905/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23906#ifdef __cplusplus
23907extern "C"
23908#endif
5c6fa7d2 23909/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23910 builtin and then its argument prototype would still apply. */
23911char shmat ();
23912int
23913main ()
23914{
23915shmat ();
23916 ;
23917 return 0;
23918}
23919_ACEOF
23920rm -f conftest.$ac_objext conftest$ac_exeext
23921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23922 (eval $ac_link) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } &&
23926 { ac_try='test -s conftest$ac_exeext'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ac_cv_lib_ipc_shmat=yes
23933else
23934 echo "$as_me: failed program was:" >&5
23935sed 's/^/| /' conftest.$ac_ext >&5
23936
23937ac_cv_lib_ipc_shmat=no
23938fi
23939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23940LIBS=$ac_check_lib_save_LIBS
23941fi
23942echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23943echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23944if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23946fi
90dd450c 23947
90dd450c 23948 fi
21d1c967 23949 fi
10f2d63a 23950
21d1c967 23951 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23952 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23953 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23954 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23955 # check for ICE first), but we must link in the order -lSM -lICE or
23956 # we get undefined symbols. So assume we have SM if we have ICE.
23957 # These have to be linked with before -lX11, unlike the other
23958 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23959 # John Interrante, Karl Berry
23960 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23961echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23962if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23964else
23965 ac_check_lib_save_LIBS=$LIBS
f09359cf 23966LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23967cat >conftest.$ac_ext <<_ACEOF
23968#line $LINENO "configure"
23969/* confdefs.h. */
23970_ACEOF
23971cat confdefs.h >>conftest.$ac_ext
23972cat >>conftest.$ac_ext <<_ACEOF
23973/* end confdefs.h. */
23974
21d1c967 23975/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23976#ifdef __cplusplus
23977extern "C"
23978#endif
21d1c967 23979/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23980 builtin and then its argument prototype would still apply. */
23981char IceConnectionNumber ();
23982int
23983main ()
23984{
23985IceConnectionNumber ();
23986 ;
23987 return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext conftest$ac_exeext
23991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992 (eval $ac_link) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } &&
23996 { ac_try='test -s conftest$ac_exeext'
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
23999 ac_status=$?
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; }; then
24002 ac_cv_lib_ICE_IceConnectionNumber=yes
24003else
24004 echo "$as_me: failed program was:" >&5
24005sed 's/^/| /' conftest.$ac_ext >&5
24006
24007ac_cv_lib_ICE_IceConnectionNumber=no
24008fi
24009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24010LIBS=$ac_check_lib_save_LIBS
24011fi
24012echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24013echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24014if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 24015 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24016fi
21d1c967 24017
e6cc62c6 24018 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24019
10f2d63a
VZ
24020fi
24021
8284b0c5 24022
21d1c967 24023 if test "$no_x" = "yes"; then
e6cc62c6
VS
24024 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24025echo "$as_me: error: X11 not found" >&2;}
24026 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24027 fi
24028
2b5f62a0
VZ
24029 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24030 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24031 AFMINSTALL=afminstall
24032 COMPILED_X_PROGRAM=0
24033
e6cc62c6
VS
24034 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24035echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24036
21d1c967 24037ac_find_includes=
2b5f62a0 24038for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24039 do
24040 if test -f "$ac_dir/Xm/Xm.h"; then
24041 ac_find_includes=$ac_dir
24042 break
24043 fi
24044 done
24045
24046 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24047 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24048echo "${ECHO_T}found in $ac_find_includes" >&6
24049
2b5f62a0 24050 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24051 ac_path_to_include=""
24052 else
2b5f62a0
VZ
24053 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24054 result=$?
24055 if test $result = 0; then
24056 ac_path_to_include=""
24057 else
24058 ac_path_to_include=" -I$ac_find_includes"
24059 fi
dd0e4a90
VZ
24060 fi
24061
24062 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24063 else
e6cc62c6
VS
24064 cat >conftest.$ac_ext <<_ACEOF
24065#line $LINENO "configure"
24066/* confdefs.h. */
24067_ACEOF
24068cat confdefs.h >>conftest.$ac_ext
24069cat >>conftest.$ac_ext <<_ACEOF
24070/* end confdefs.h. */
21d1c967
GD
24071
24072 #include <Xm/Xm.h>
e6cc62c6
VS
24073
24074int
24075main ()
24076{
21d1c967
GD
24077
24078 int version;
24079 version = xmUseVersion;
e6cc62c6
VS
24080
24081 ;
24082 return 0;
24083}
24084_ACEOF
24085rm -f conftest.$ac_objext
24086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24087 (eval $ac_compile) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } &&
24091 { ac_try='test -s conftest.$ac_objext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097
24098 echo "$as_me:$LINENO: result: found in default search path" >&5
24099echo "${ECHO_T}found in default search path" >&6
21d1c967 24100 COMPILED_X_PROGRAM=1
e6cc62c6 24101
10f2d63a 24102else
e6cc62c6
VS
24103 echo "$as_me: failed program was:" >&5
24104sed 's/^/| /' conftest.$ac_ext >&5
24105
24106
24107 echo "$as_me:$LINENO: result: no" >&5
24108echo "${ECHO_T}no" >&6
24109 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24110echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24111 { (exit 1); exit 1; }; }
24112
24113
10f2d63a 24114fi
e6cc62c6 24115rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24116 fi
10f2d63a 24117
21d1c967 24118 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24119 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24120echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24121
21d1c967 24122ac_find_libraries=
2b5f62a0 24123for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24124 do
24125 for ac_extension in a so sl dylib; do
24126 if test -f "$ac_dir/libXm.$ac_extension"; then
24127 ac_find_libraries=$ac_dir
24128 break 2
24129 fi
24130 done
24131 done
24132
24133 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24134 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24135echo "${ECHO_T}found at $ac_find_libraries" >&6
24136
21d1c967 24137
21d1c967
GD
24138 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24139 result=$?
24140 if test $result = 0; then
24141 ac_path_to_link=""
24142 else
24143 ac_path_to_link=" -L$ac_find_libraries"
24144 fi
24145
21d1c967 24146 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24147 else
dd0e4a90
VZ
24148 save_CFLAGS=$CFLAGS
24149 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24150
e6cc62c6
VS
24151 cat >conftest.$ac_ext <<_ACEOF
24152#line $LINENO "configure"
24153/* confdefs.h. */
24154_ACEOF
24155cat confdefs.h >>conftest.$ac_ext
24156cat >>conftest.$ac_ext <<_ACEOF
24157/* end confdefs.h. */
21d1c967
GD
24158
24159 #include <Xm/Xm.h>
e6cc62c6
VS
24160
24161int
24162main ()
24163{
21d1c967
GD
24164
24165 int version;
24166 version = xmUseVersion;
e6cc62c6
VS
24167
24168 ;
24169 return 0;
24170}
24171_ACEOF
24172rm -f conftest.$ac_objext
24173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24174 (eval $ac_compile) 2>&5
24175 ac_status=$?
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } &&
24178 { ac_try='test -s conftest.$ac_objext'
24179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184
24185 echo "$as_me:$LINENO: result: found in default search path" >&5
24186echo "${ECHO_T}found in default search path" >&6
21d1c967 24187 COMPILED_X_PROGRAM=1
e6cc62c6 24188
d836ee96 24189else
e6cc62c6
VS
24190 echo "$as_me: failed program was:" >&5
24191sed 's/^/| /' conftest.$ac_ext >&5
24192
24193
24194 echo "$as_me:$LINENO: result: no" >&5
24195echo "${ECHO_T}no" >&6
24196 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24197echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24198 { (exit 1); exit 1; }; }
24199
24200
d836ee96 24201fi
e6cc62c6 24202rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24203
24204 CFLAGS=$save_CFLAGS
21d1c967
GD
24205 fi
24206 fi
24207
24208 xpm_link=
e6cc62c6
VS
24209 echo "$as_me:$LINENO: checking for Xpm library" >&5
24210echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24211
21d1c967 24212ac_find_libraries=
2b5f62a0 24213for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24214 do
24215 for ac_extension in a so sl dylib; do
24216 if test -f "$ac_dir/libXpm.$ac_extension"; then
24217 ac_find_libraries=$ac_dir
24218 break 2
24219 fi
24220 done
24221 done
24222
24223 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24224
21d1c967
GD
24225 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24226 result=$?
24227 if test $result = 0; then
24228 ac_path_to_link=""
24229 else
24230 ac_path_to_link=" -L$ac_find_libraries"
24231 fi
24232
24233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24234
21d1c967 24235 xpm_link=" -lXpm"
e6cc62c6 24236 cat >>confdefs.h <<\_ACEOF
21d1c967 24237#define wxHAVE_LIB_XPM 1
e6cc62c6 24238_ACEOF
90dd450c 24239
e6cc62c6
VS
24240 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24241echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24242 else
dd0e4a90
VZ
24243 save_CFLAGS=$CFLAGS
24244 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24245
e6cc62c6
VS
24246 cat >conftest.$ac_ext <<_ACEOF
24247#line $LINENO "configure"
24248/* confdefs.h. */
24249_ACEOF
24250cat confdefs.h >>conftest.$ac_ext
24251cat >>conftest.$ac_ext <<_ACEOF
24252/* end confdefs.h. */
21d1c967
GD
24253
24254 #include <X11/xpm.h>
e6cc62c6
VS
24255
24256int
24257main ()
24258{
21d1c967
GD
24259
24260 int version;
24261 version = XpmLibraryVersion();
e6cc62c6
VS
24262
24263 ;
24264 return 0;
24265}
24266_ACEOF
24267rm -f conftest.$ac_objext
24268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24269 (eval $ac_compile) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } &&
24273 { ac_try='test -s conftest.$ac_objext'
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279
21d1c967 24280 xpm_link=" -lXpm"
e6cc62c6 24281 cat >>confdefs.h <<\_ACEOF
21d1c967 24282#define wxHAVE_LIB_XPM 1
e6cc62c6 24283_ACEOF
21d1c967 24284
e6cc62c6
VS
24285 echo "$as_me:$LINENO: result: found in default search path" >&5
24286echo "${ECHO_T}found in default search path" >&6
21d1c967 24287 COMPILED_X_PROGRAM=0
e6cc62c6 24288
d836ee96 24289else
e6cc62c6
VS
24290 echo "$as_me: failed program was:" >&5
24291sed 's/^/| /' conftest.$ac_ext >&5
24292
24293
24294 echo "$as_me:$LINENO: result: no" >&5
24295echo "${ECHO_T}no" >&6
24296 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24297echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24298
24299
d836ee96 24300fi
e6cc62c6 24301rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24302
24303 CFLAGS=$save_CFLAGS
21d1c967
GD
24304 fi
24305
e6cc62c6
VS
24306 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24307echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24308 libp_link=""
24309 libsm_ice_link=""
24310 libs_found=0
24311 for libp in "" " -lXp"; do
24312 if test "$libs_found" = "0"; then
24313 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24314 if test "$libs_found" = "0"; then
6a30f1c8
MB
24315 save_LIBS="$LIBS"
24316 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24317 save_CFLAGS=$CFLAGS
24318 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24319
e6cc62c6
VS
24320 cat >conftest.$ac_ext <<_ACEOF
24321#line $LINENO "configure"
24322/* confdefs.h. */
24323_ACEOF
24324cat confdefs.h >>conftest.$ac_ext
24325cat >>conftest.$ac_ext <<_ACEOF
24326/* end confdefs.h. */
17234b26 24327
6a30f1c8
MB
24328 #include <Xm/Xm.h>
24329 #include <Xm/List.h>
e6cc62c6
VS
24330
24331int
24332main ()
24333{
6a30f1c8
MB
24334
24335 XmString string = NULL;
24336 Widget w = NULL;
24337 int position = 0;
24338 XmListAddItem(w, string, position);
e6cc62c6
VS
24339
24340 ;
24341 return 0;
24342}
24343_ACEOF
24344rm -f conftest.$ac_objext conftest$ac_exeext
24345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346 (eval $ac_link) 2>&5
24347 ac_status=$?
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
24350 { ac_try='test -s conftest$ac_exeext'
24351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352 (eval $ac_try) 2>&5
24353 ac_status=$?
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); }; }; then
24356
6a30f1c8
MB
24357 libp_link="$libp"
24358 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24359 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24360echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24361 libs_found=1
e6cc62c6 24362
6a30f1c8 24363else
e6cc62c6
VS
24364 echo "$as_me: failed program was:" >&5
24365sed 's/^/| /' conftest.$ac_ext >&5
24366
24367
24368
6a30f1c8 24369fi
e6cc62c6 24370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24371
6a30f1c8 24372 LIBS="$save_LIBS"
dd0e4a90 24373 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24374 fi
24375 done
24376 fi
24377 done
24378
24379 if test "$libs_found" = "0"; then
e6cc62c6
VS
24380 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24381echo "${ECHO_T}can't find the right libraries" >&6
24382 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24383echo "$as_me: error: can't link a simple motif program" >&2;}
24384 { (exit 1); exit 1; }; }
6a30f1c8
MB
24385 fi
24386
da494b40
MB
24387 save_CFLAGS=$CFLAGS
24388 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24389 echo "$as_me:$LINENO: checking for Motif 2" >&5
24390echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24391 cat >conftest.$ac_ext <<_ACEOF
24392#line $LINENO "configure"
24393/* confdefs.h. */
24394_ACEOF
24395cat confdefs.h >>conftest.$ac_ext
24396cat >>conftest.$ac_ext <<_ACEOF
24397/* end confdefs.h. */
da494b40
MB
24398
24399 #include <Xm/Xm.h>
e6cc62c6
VS
24400
24401int
24402main ()
24403{
da494b40
MB
24404
24405 #if XmVersion < 2000
24406 #error "Not Motif 2"
24407 #endif
e6cc62c6
VS
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
24413rm -f conftest.$ac_objext
24414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24415 (eval $ac_compile) 2>&5
24416 ac_status=$?
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } &&
24419 { ac_try='test -s conftest.$ac_objext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425
24426 cat >>confdefs.h <<\_ACEOF
da494b40 24427#define __WXMOTIF20__ 1
e6cc62c6
VS
24428_ACEOF
24429
24430 echo "$as_me:$LINENO: result: found" >&5
24431echo "${ECHO_T}found" >&6
da494b40 24432
da494b40 24433else
e6cc62c6
VS
24434 echo "$as_me: failed program was:" >&5
24435sed 's/^/| /' conftest.$ac_ext >&5
24436
24437
24438 cat >>confdefs.h <<\_ACEOF
da494b40 24439#define __WXMOTIF20__ 0
e6cc62c6
VS
24440_ACEOF
24441
24442 echo "$as_me:$LINENO: result: not found" >&5
24443echo "${ECHO_T}not found" >&6
da494b40 24444
da494b40 24445fi
e6cc62c6 24446rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24447 CFLAGS=$save_CFLAGS
24448
6a30f1c8 24449 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24450 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24451 TOOLKIT=MOTIF
24452 GUIDIST=MOTIF_DIST
f7f78039
MB
24453 wxHAVE_XEXT_LIB=1
24454 fi
24455
24456 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24457 test "$wxHAVE_XEXT_LIB" = 1; then
24458 save_CFLAGS="$CFLAGS"
24459 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24460
e6cc62c6
VS
24461 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24462echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24463 cat >conftest.$ac_ext <<_ACEOF
24464#line $LINENO "configure"
24465/* confdefs.h. */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
24469/* end confdefs.h. */
24470
24471 #include <X11/Xlib.h>
f7f78039 24472 #include <X11/extensions/shape.h>
e6cc62c6
VS
24473
24474int
24475main ()
24476{
f7f78039
MB
24477
24478 int dummy1, dummy2;
24479 XShapeQueryExtension((Display*)NULL,
24480 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24481
24482 ;
24483 return 0;
24484}
24485_ACEOF
24486rm -f conftest.$ac_objext
24487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24488 (eval $ac_compile) 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } &&
24492 { ac_try='test -s conftest.$ac_objext'
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498
24499 cat >>confdefs.h <<\_ACEOF
f7f78039 24500#define HAVE_XSHAPE 1
e6cc62c6
VS
24501_ACEOF
24502
24503 echo "$as_me:$LINENO: result: found" >&5
24504echo "${ECHO_T}found" >&6
f7f78039 24505
f7f78039 24506else
e6cc62c6
VS
24507 echo "$as_me: failed program was:" >&5
24508sed 's/^/| /' conftest.$ac_ext >&5
24509
24510
24511 echo "$as_me:$LINENO: result: not found" >&5
24512echo "${ECHO_T}not found" >&6
24513
f7f78039 24514fi
e6cc62c6 24515rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24516 CFLAGS="$save_CFLAGS"
21d1c967
GD
24517 fi
24518
24519 if test "$wxUSE_MAC" = 1; then
0c98a14e 24520 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24521
0c98a14e 24522 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24523 TOOLKIT=MAC
24524 GUIDIST=MACX_DIST
cf615ebb 24525 WXBASEPORT="_carbon"
21d1c967
GD
24526 fi
24527
ac0c4cc3
DE
24528 if test "$wxUSE_COCOA" = 1; then
24529 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24530 TOOLKIT=COCOA
24531 GUIDIST=COCOA_DIST
24532 fi
24533
21d1c967
GD
24534 if test "$wxUSE_PM" = 1; then
24535 TOOLKIT=PM
24536 GUIDIST=GTK_DIST
e6cc62c6
VS
24537 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24538echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24539 wxUSE_THREADS="no"
21d1c967
GD
24540 fi
24541
24542 if test "$TOOLKIT" = "PM" ; then
24543 TOOLKIT_DIR="os2"
24544 else
24545 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24546 fi
24547
24548 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24549
24550 if test "$wxUSE_UNIVERSAL" = "yes"; then
24551 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24552
24553 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24554 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24555
24556 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24557 if test "$wxUSE_X11" = 1; then
24558 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24559 else
24560 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24561 fi
24562 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24563 WIDGET_SET=univ
24564 else
24565 ALL_OBJECTS="\$(GUIOBJS)"
24566 ALL_SOURCES="\$(ALL_SOURCES)"
24567 ALL_HEADERS="\$(ALL_HEADERS)"
24568 fi
24569
24570 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24571
24572 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24573 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24574 fi
24575
24576 if test "$wxUSE_HTML" = "yes"; then
24577 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24578 fi
24579
24580 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24581 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24582 fi
24583 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24584 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24585 fi
24586 if test "$wxUSE_LIBPNG" = "builtin" ; then
24587 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24588 fi
24589
24590 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24591 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24592else
21d1c967
GD
24593 USE_GUI=0
24594
24595 TOOLKIT_DIR="base"
24596
24597 if test "$USE_WIN32" = 1 ; then
24598 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24599 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24600
24601 TOOLKIT="MSW"
24602 else
24603 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24604 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24605 fi
24606
24607 ALL_SOURCES="\$(ALL_SOURCES)"
24608 ALL_HEADERS="\$(ALL_HEADERS)"
24609
24610 PORT_FILES="\${top_srcdir}/src/files.lst"
24611
24612 GUIDIST="BASE_DIST"
24613 DISTDIR="wxBase"
d836ee96
VZ
24614fi
24615
8284b0c5 24616
8647bec6
RG
24617
24618
24619IODBC_C_SRC=""
24620
24621
24622if test "$TOOLKIT" != "MSW" ; then
24623
bb41dcbe 24624 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24625
bb41dcbe 24626 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24627 echo "$as_me:$LINENO: checking for sql.h" >&5
24628echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24629if test "${ac_cv_header_sql_h+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24631fi
24632echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24633echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24634else
24635 # Is the header compilable?
24636echo "$as_me:$LINENO: checking sql.h usability" >&5
24637echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24638cat >conftest.$ac_ext <<_ACEOF
24639#line $LINENO "configure"
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645$ac_includes_default
8647bec6 24646#include <sql.h>
e6cc62c6
VS
24647_ACEOF
24648rm -f conftest.$ac_objext
24649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24650 (eval $ac_compile) 2>&5
24651 ac_status=$?
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } &&
24654 { ac_try='test -s conftest.$ac_objext'
24655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; }; then
24660 ac_header_compiler=yes
24661else
24662 echo "$as_me: failed program was:" >&5
24663sed 's/^/| /' conftest.$ac_ext >&5
24664
24665ac_header_compiler=no
24666fi
24667rm -f conftest.$ac_objext conftest.$ac_ext
24668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24669echo "${ECHO_T}$ac_header_compiler" >&6
24670
24671# Is the header present?
24672echo "$as_me:$LINENO: checking sql.h presence" >&5
24673echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24674cat >conftest.$ac_ext <<_ACEOF
24675#line $LINENO "configure"
24676/* confdefs.h. */
24677_ACEOF
24678cat confdefs.h >>conftest.$ac_ext
24679cat >>conftest.$ac_ext <<_ACEOF
24680/* end confdefs.h. */
24681#include <sql.h>
24682_ACEOF
24683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24685 ac_status=$?
24686 grep -v '^ *+' conftest.er1 >conftest.err
24687 rm -f conftest.er1
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } >/dev/null; then
24691 if test -s conftest.err; then
24692 ac_cpp_err=$ac_c_preproc_warn_flag
24693 else
24694 ac_cpp_err=
24695 fi
24696else
24697 ac_cpp_err=yes
24698fi
24699if test -z "$ac_cpp_err"; then
24700 ac_header_preproc=yes
24701else
24702 echo "$as_me: failed program was:" >&5
24703sed 's/^/| /' conftest.$ac_ext >&5
24704
24705 ac_header_preproc=no
24706fi
24707rm -f conftest.err conftest.$ac_ext
24708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24709echo "${ECHO_T}$ac_header_preproc" >&6
24710
24711# So? What about this header?
24712case $ac_header_compiler:$ac_header_preproc in
24713 yes:no )
24714 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24715echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24717echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24718 (
24719 cat <<\_ASBOX
24720## ------------------------------------ ##
24721## Report this to bug-autoconf@gnu.org. ##
24722## ------------------------------------ ##
24723_ASBOX
24724 ) |
24725 sed "s/^/$as_me: WARNING: /" >&2
24726 ;;
24727 no:yes )
24728 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24729echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24730 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24731echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24732 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24733echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24734 (
24735 cat <<\_ASBOX
24736## ------------------------------------ ##
24737## Report this to bug-autoconf@gnu.org. ##
24738## ------------------------------------ ##
24739_ASBOX
24740 ) |
24741 sed "s/^/$as_me: WARNING: /" >&2
24742 ;;
24743esac
24744echo "$as_me:$LINENO: checking for sql.h" >&5
24745echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24746if test "${ac_cv_header_sql_h+set}" = set; then
24747 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24748else
e6cc62c6
VS
24749 ac_cv_header_sql_h=$ac_header_preproc
24750fi
24751echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24752echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24753
bb41dcbe
VS
24754fi
24755if test $ac_cv_header_sql_h = yes; then
24756 found_sql_h=1
8647bec6
RG
24757fi
24758
e6cc62c6 24759
bb41dcbe
VS
24760 if test "x$found_sql_h" = "x1" ; then
24761 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24762echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24763if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24764 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24765else
bb41dcbe
VS
24766 ac_check_lib_save_LIBS=$LIBS
24767LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24768cat >conftest.$ac_ext <<_ACEOF
24769#line $LINENO "configure"
24770/* confdefs.h. */
24771_ACEOF
24772cat confdefs.h >>conftest.$ac_ext
24773cat >>conftest.$ac_ext <<_ACEOF
24774/* end confdefs.h. */
24775
8647bec6 24776/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24777#ifdef __cplusplus
24778extern "C"
24779#endif
8647bec6 24780/* We use char because int might match the return type of a gcc2
e6cc62c6 24781 builtin and then its argument prototype would still apply. */
bb41dcbe 24782char iodbc ();
e6cc62c6
VS
24783int
24784main ()
24785{
bb41dcbe 24786iodbc ();
e6cc62c6
VS
24787 ;
24788 return 0;
24789}
24790_ACEOF
24791rm -f conftest.$ac_objext conftest$ac_exeext
24792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793 (eval $ac_link) 2>&5
24794 ac_status=$?
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } &&
24797 { ac_try='test -s conftest$ac_exeext'
24798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799 (eval $ac_try) 2>&5
24800 ac_status=$?
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); }; }; then
bb41dcbe 24803 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24804else
e6cc62c6
VS
24805 echo "$as_me: failed program was:" >&5
24806sed 's/^/| /' conftest.$ac_ext >&5
24807
bb41dcbe 24808ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24809fi
e6cc62c6 24810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24811LIBS=$ac_check_lib_save_LIBS
24812fi
24813echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24814echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24815if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24816 ODBC_LINK=" -liodbc"
24817else
24818
24819 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24820echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24821if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24823else
24824 ac_check_lib_save_LIBS=$LIBS
24825LIBS="-lSQLAllocEnv $LIBS"
24826cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24827#line $LINENO "configure"
24828/* confdefs.h. */
24829_ACEOF
24830cat confdefs.h >>conftest.$ac_ext
24831cat >>conftest.$ac_ext <<_ACEOF
24832/* end confdefs.h. */
24833
8647bec6 24834/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24835#ifdef __cplusplus
24836extern "C"
24837#endif
8647bec6 24838/* We use char because int might match the return type of a gcc2
e6cc62c6 24839 builtin and then its argument prototype would still apply. */
bb41dcbe 24840char unixodbc ();
e6cc62c6
VS
24841int
24842main ()
24843{
bb41dcbe 24844unixodbc ();
e6cc62c6
VS
24845 ;
24846 return 0;
24847}
24848_ACEOF
24849rm -f conftest.$ac_objext conftest$ac_exeext
24850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24851 (eval $ac_link) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
24855 { ac_try='test -s conftest$ac_exeext'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
bb41dcbe 24861 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24862else
e6cc62c6
VS
24863 echo "$as_me: failed program was:" >&5
24864sed 's/^/| /' conftest.$ac_ext >&5
24865
bb41dcbe 24866ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24867fi
e6cc62c6 24868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24869LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24870fi
bb41dcbe
VS
24871echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24872echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24873if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24874 ODBC_LINK=" -lunixodbc"
24875else
24876
24877 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24878echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24879if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881else
24882 ac_check_lib_save_LIBS=$LIBS
24883LIBS="-lSQLAllocEnv $LIBS"
24884cat >conftest.$ac_ext <<_ACEOF
24885#line $LINENO "configure"
24886/* confdefs.h. */
24887_ACEOF
24888cat confdefs.h >>conftest.$ac_ext
24889cat >>conftest.$ac_ext <<_ACEOF
24890/* end confdefs.h. */
e6cc62c6 24891
bb41dcbe
VS
24892/* Override any gcc2 internal prototype to avoid an error. */
24893#ifdef __cplusplus
24894extern "C"
24895#endif
24896/* We use char because int might match the return type of a gcc2
24897 builtin and then its argument prototype would still apply. */
24898char odbc ();
24899int
24900main ()
24901{
24902odbc ();
24903 ;
24904 return 0;
24905}
24906_ACEOF
24907rm -f conftest.$ac_objext conftest$ac_exeext
24908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24909 (eval $ac_link) 2>&5
24910 ac_status=$?
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } &&
24913 { ac_try='test -s conftest$ac_exeext'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24920else
bb41dcbe
VS
24921 echo "$as_me: failed program was:" >&5
24922sed 's/^/| /' conftest.$ac_ext >&5
24923
24924ac_cv_lib_SQLAllocEnv_odbc=no
24925fi
24926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24927LIBS=$ac_check_lib_save_LIBS
24928fi
24929echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24930echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24931if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24932 ODBC_LINK=" -lodbc"
24933fi
24934
24935
24936fi
e6cc62c6 24937
e6cc62c6 24938
8647bec6 24939fi
e6cc62c6 24940
fd3d7534 24941 fi
bb41dcbe
VS
24942 if test "x$ODBC_LINK" = "x" ; then
24943 if test "$wxUSE_ODBC" = "sys" ; then
24944 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24945echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24946 { (exit 1); exit 1; }; }
24947 else
24948 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24949echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24950 wxUSE_ODBC=builtin
24951 fi
24952 else
24953 wxUSE_ODBC=sys
8647bec6 24954 fi
8647bec6 24955 fi
bb41dcbe
VS
24956 if test "$wxUSE_ODBC" != "no" ; then
24957 cat >>confdefs.h <<\_ACEOF
24958#define wxUSE_ODBC 1
24959_ACEOF
e6cc62c6 24960
bb41dcbe
VS
24961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24962
24963 WXODBCFLAG="-D_IODBC_"
24964 fi
6232543b 24965fi
21d1c967
GD
24966
24967if test "$wxUSE_REGEX" = "builtin" ; then
24968 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24969fi
21d1c967
GD
24970if test "$wxUSE_ZLIB" = "builtin" ; then
24971 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24972fi
24973
8284b0c5 24974
4d264332 24975USE_OPENGL=0
21d1c967 24976if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24977 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24978 OPENGL_LIBS="-framework OpenGL -framework AGL"
24979 elif test "$wxUSE_MSW" = 1; then
24980 OPENGL_LIBS="-lopengl32 -lglu32"
24981 else
01aa5863
VS
24982
24983
24984ac_find_includes=
24985for ac_dir in $SEARCH_INCLUDE /usr/include;
24986 do
24987 if test -f "$ac_dir/GL/gl.h"; then
24988 ac_find_includes=$ac_dir
24989 break
24990 fi
24991 done
24992
24993 if test "$ac_find_includes" != "" ; then
24994 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24995echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24996
24997 if test "x$ac_find_includes" = "x/usr/include"; then
24998 ac_path_to_include=""
24999 else
25000 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25001 result=$?
25002 if test $result = 0; then
25003 ac_path_to_include=""
25004 else
25005 ac_path_to_include=" -I$ac_find_includes"
25006 fi
25007 fi
25008
25009 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25010 fi
25011
e6cc62c6
VS
25012 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25013 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25014echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25015if test "${ac_cv_header_GL_gl_h+set}" = set; then
25016 echo $ECHO_N "(cached) $ECHO_C" >&6
25017fi
25018echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25019echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25020else
25021 # Is the header compilable?
25022echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25023echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25024cat >conftest.$ac_ext <<_ACEOF
25025#line $LINENO "configure"
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031$ac_includes_default
21d1c967 25032#include <GL/gl.h>
e6cc62c6
VS
25033_ACEOF
25034rm -f conftest.$ac_objext
25035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036 (eval $ac_compile) 2>&5
25037 ac_status=$?
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } &&
25040 { ac_try='test -s conftest.$ac_objext'
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; }; then
25046 ac_header_compiler=yes
25047else
25048 echo "$as_me: failed program was:" >&5
25049sed 's/^/| /' conftest.$ac_ext >&5
25050
25051ac_header_compiler=no
25052fi
25053rm -f conftest.$ac_objext conftest.$ac_ext
25054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25055echo "${ECHO_T}$ac_header_compiler" >&6
25056
25057# Is the header present?
25058echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25059echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25060cat >conftest.$ac_ext <<_ACEOF
25061#line $LINENO "configure"
25062/* confdefs.h. */
25063_ACEOF
25064cat confdefs.h >>conftest.$ac_ext
25065cat >>conftest.$ac_ext <<_ACEOF
25066/* end confdefs.h. */
25067#include <GL/gl.h>
25068_ACEOF
25069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25071 ac_status=$?
25072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } >/dev/null; then
25077 if test -s conftest.err; then
25078 ac_cpp_err=$ac_c_preproc_warn_flag
25079 else
25080 ac_cpp_err=
25081 fi
25082else
25083 ac_cpp_err=yes
25084fi
25085if test -z "$ac_cpp_err"; then
25086 ac_header_preproc=yes
25087else
25088 echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091 ac_header_preproc=no
25092fi
25093rm -f conftest.err conftest.$ac_ext
25094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25095echo "${ECHO_T}$ac_header_preproc" >&6
25096
25097# So? What about this header?
25098case $ac_header_compiler:$ac_header_preproc in
25099 yes:no )
25100 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25101echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25102 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25103echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25104 (
25105 cat <<\_ASBOX
25106## ------------------------------------ ##
25107## Report this to bug-autoconf@gnu.org. ##
25108## ------------------------------------ ##
25109_ASBOX
25110 ) |
25111 sed "s/^/$as_me: WARNING: /" >&2
25112 ;;
25113 no:yes )
25114 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25115echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25116 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25117echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25118 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25119echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25120 (
25121 cat <<\_ASBOX
25122## ------------------------------------ ##
25123## Report this to bug-autoconf@gnu.org. ##
25124## ------------------------------------ ##
25125_ASBOX
25126 ) |
25127 sed "s/^/$as_me: WARNING: /" >&2
25128 ;;
25129esac
25130echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25131echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25132if test "${ac_cv_header_GL_gl_h+set}" = set; then
25133 echo $ECHO_N "(cached) $ECHO_C" >&6
25134else
25135 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25136fi
e6cc62c6
VS
25137echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25138echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25139
698dcdb6 25140fi
e6cc62c6
VS
25141if test $ac_cv_header_GL_gl_h = yes; then
25142
89e3b3e4
VZ
25143 found_gl=0
25144
e6cc62c6
VS
25145 echo "$as_me:$LINENO: checking for -lGL" >&5
25146echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25147
21d1c967 25148ac_find_libraries=
2b5f62a0 25149for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25150 do
25151 for ac_extension in a so sl dylib; do
25152 if test -f "$ac_dir/libGL.$ac_extension"; then
25153 ac_find_libraries=$ac_dir
25154 break 2
25155 fi
25156 done
25157 done
25158
25159 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25160
21d1c967
GD
25161 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25162 result=$?
25163 if test $result = 0; then
25164 ac_path_to_link=""
25165 else
25166 ac_path_to_link=" -L$ac_find_libraries"
25167 fi
25168
89e3b3e4
VZ
25169 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25170 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25171 fi
89e3b3e4 25172
e6cc62c6 25173
89e3b3e4
VZ
25174ac_find_libraries=
25175for ac_dir in $SEARCH_LIB /usr/lib;
25176 do
25177 for ac_extension in a so sl dylib; do
25178 if test -f "$ac_dir/libGLU.$ac_extension"; then
25179 ac_find_libraries=$ac_dir
25180 break 2
25181 fi
25182 done
25183 done
25184
25185 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25186
89e3b3e4
VZ
25187 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25188 result=$?
25189 if test $result = 0; then
25190 ac_path_to_link=""
25191 else
25192 ac_path_to_link=" -L$ac_find_libraries"
25193 fi
25194
25195 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25196 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25197 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25198 fi
25199
25200 found_gl=1
25201 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25202 echo "$as_me:$LINENO: result: yes" >&5
25203echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25204 fi
25205 fi
25206
bb41dcbe 25207 if test "$found_gl" != 1; then
e6cc62c6
VS
25208 echo "$as_me:$LINENO: result: no" >&5
25209echo "${ECHO_T}no" >&6
25210 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25211echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25212
21d1c967 25213ac_find_libraries=
2b5f62a0 25214for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25215 do
25216 for ac_extension in a so sl dylib; do
25217 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25218 ac_find_libraries=$ac_dir
25219 break 2
25220 fi
25221 done
25222 done
25223
25224 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25225
21d1c967
GD
25226 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25227 result=$?
25228 if test $result = 0; then
25229 ac_path_to_link=""
25230 else
25231 ac_path_to_link=" -L$ac_find_libraries"
25232 fi
25233
25234 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25235 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25236 echo "$as_me:$LINENO: result: yes" >&5
25237echo "${ECHO_T}yes" >&6
21d1c967 25238 else
e6cc62c6
VS
25239 echo "$as_me:$LINENO: result: no" >&5
25240echo "${ECHO_T}no" >&6
21d1c967
GD
25241 fi
25242 fi
e6cc62c6 25243
5c6fa7d2 25244fi
52127426 25245
8284b0c5 25246
e6cc62c6 25247
21d1c967 25248 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25249 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25250echo "$as_me: error: OpenGL libraries not available" >&2;}
25251 { (exit 1); exit 1; }; }
21d1c967
GD
25252 fi
25253 fi
90dd450c 25254
21d1c967 25255 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25256 USE_OPENGL=1
e6cc62c6 25257 cat >>confdefs.h <<\_ACEOF
21d1c967 25258#define wxUSE_OPENGL 1
e6cc62c6 25259_ACEOF
21d1c967 25260
e6cc62c6 25261 cat >>confdefs.h <<\_ACEOF
21d1c967 25262#define wxUSE_GLCANVAS 1
e6cc62c6 25263_ACEOF
21d1c967 25264
520755bb 25265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25266 fi
10f2d63a 25267fi
21d1c967
GD
25268
25269if test -z "$TOOLKIT_VPATH" ; then
25270 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25271fi
21d1c967
GD
25272
25273if test -n "$TOOLKIT" ; then
25274 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25275fi
25276
fe0895cf 25277UNICODE=0
21d1c967
GD
25278lib_unicode_suffix=
25279if test "$wxUSE_UNICODE" = "yes"; then
25280 lib_unicode_suffix=u
fe0895cf 25281 UNICODE=1
90dd450c 25282fi
698dcdb6 25283
21d1c967 25284lib_debug_suffix=
6c67131a 25285DEBUG_FLAG=0
21d1c967
GD
25286if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25287 lib_debug_suffix=d
6c67131a
VS
25288 DEBUG_FLAG=1
25289fi
25290
25291DEBUG_INFO=0
25292if test "$wxUSE_DEBUG_INFO" = "yes"; then
25293 DEBUG_INFO=1
21d1c967 25294fi
698dcdb6 25295
1cbb95a2 25296WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25297
25298TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25299TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25300
25301if test "$cross_compiling" = "yes"; then
25302 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25303 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25304 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25305fi
25306
25307WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25308WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25309WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25310WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25311
25312WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25313WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25314
25315WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25316WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25317WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25318WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25319
25320case "${host}" in
25321 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25322 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25323 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25324 ;;
25325
25326 *-*-darwin* )
e6cc62c6 25327
05159a27
GD
25328 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25329 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25330
25331 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25332 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25333 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25334 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25335
21d1c967 25336 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25337 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25338 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25339 fi
25340 ;;
25341esac
25342
25343WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25344WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25345
25346WXCONFIG_LIBS="-l${WX_LIBRARY}"
25347WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25348
25349if test "$wxUSE_OPENGL" = "yes"; then
25350 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25351 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25352fi
25353
8284b0c5
MB
25354
25355
21d1c967
GD
25356if test "$wxUSE_SHARED" = "yes"; then
25357 case "${host}" in
25358 *-pc-os2_emx | *-pc-os2-emx | \
25359 *-pc-msdosdjgpp )
25360 wxUSE_SHARED=no
e6cc62c6
VS
25361 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25362echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25363 ;;
25364 esac
25365fi
25366
fe0895cf 25367SHARED=0
2b5f62a0 25368if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25369 SHARED=1
2b5f62a0 25370
e6cc62c6 25371
2b5f62a0
VZ
25372 found_versioning=no
25373
e6cc62c6 25374
2b5f62a0 25375 if test $found_versioning = no ; then
e6cc62c6
VS
25376 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25377echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25378if test "${wx_cv_version_script+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25380else
e6cc62c6 25381
2b5f62a0
VZ
25382 echo "VER_1 { *; };" >conftest.sym
25383 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25384
2b5f62a0
VZ
25385 if { ac_try='
25386 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25387 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25393 if test -s conftest.stderr ; then
25394 wx_cv_version_script=no
25395 else
25396 wx_cv_version_script=yes
25397 fi
25398 else
25399 wx_cv_version_script=no
25400 fi
25401 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25402
e6cc62c6
VS
25403fi
25404echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25405echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25406 if test $wx_cv_version_script = yes ; then
e6cc62c6 25407 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25408 fi
25409 fi
21d1c967 25410
21d1c967 25411
21d1c967 25412 case "${host}" in
fe0895cf 25413 *-*-linux* | *-*-gnu* )
e6cc62c6 25414 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25415 ;;
21d1c967
GD
25416
25417 *-*-solaris2* )
25418 if test "$GCC" = yes ; then
25419 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25420
25421 saveLdflags="$LDFLAGS"
25422 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25423 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25424echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25425 cat >conftest.$ac_ext <<_ACEOF
25426#line $LINENO "configure"
25427/* confdefs.h. */
25428_ACEOF
25429cat confdefs.h >>conftest.$ac_ext
25430cat >>conftest.$ac_ext <<_ACEOF
25431/* end confdefs.h. */
25432
25433int
25434main ()
25435{
fe0895cf 25436
e6cc62c6
VS
25437 ;
25438 return 0;
25439}
25440_ACEOF
25441rm -f conftest.$ac_objext conftest$ac_exeext
25442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25443 (eval $ac_link) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } &&
25447 { ac_try='test -s conftest$ac_exeext'
25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; }; then
25453
25454 echo "$as_me:$LINENO: result: yes" >&5
25455echo "${ECHO_T}yes" >&6
25456 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25457
25458else
25459 echo "$as_me: failed program was:" >&5
25460sed 's/^/| /' conftest.$ac_ext >&5
25461
25462
25463 echo "$as_me:$LINENO: result: no" >&5
25464echo "${ECHO_T}no" >&6
25465 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25466echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25467 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25468 cat >conftest.$ac_ext <<_ACEOF
25469#line $LINENO "configure"
25470/* confdefs.h. */
25471_ACEOF
25472cat confdefs.h >>conftest.$ac_ext
25473cat >>conftest.$ac_ext <<_ACEOF
25474/* end confdefs.h. */
25475
25476int
25477main ()
25478{
25479
25480 ;
25481 return 0;
25482}
25483_ACEOF
25484rm -f conftest.$ac_objext conftest$ac_exeext
25485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25486 (eval $ac_link) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); } &&
25490 { ac_try='test -s conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496
25497 echo "$as_me:$LINENO: result: yes" >&5
25498echo "${ECHO_T}yes" >&6
25499 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25500else
25501 echo "$as_me: failed program was:" >&5
25502sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25503
fe0895cf 25504
e6cc62c6
VS
25505 echo "$as_me:$LINENO: result: no" >&5
25506echo "${ECHO_T}no" >&6
25507
fe0895cf 25508fi
e6cc62c6
VS
25509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25510
25511fi
25512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25513 LDFLAGS="$saveLdflags"
21d1c967
GD
25514 else
25515 SHARED_LD="${CXX} -G -o"
25516 PIC_FLAG="-KPIC"
e6cc62c6 25517 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25518 fi
25519 ;;
0f1bc9c2
VS
25520
25521 powerpc-*-darwin* )
ef0add05
VS
25522 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25523 cat <<EOF >change-install-names
25524#!/bin/sh
25525libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25526inst_cmd="install_name_tool "
25527for i in \${libnames} ; do
25528 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25529done
25530\${inst_cmd} \${3}
25531EOF
25532 chmod +x change-install-names
0f1bc9c2
VS
25533 ;;
25534
21d1c967
GD
25535 esac
25536
25537 if test "x$WX_TARGET_LIBRARY" = "x"; then
25538 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25539 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25540 fi
25541
25542 WX_TARGET_LIBRARY_TYPE="so"
25543 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25544fi
10f2d63a 25545
21d1c967
GD
25546if test "$wxUSE_SHARED" = "no"; then
25547
25548 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25549 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25550 fi
25551
ac0c4cc3 25552 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25553 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25554 fi
25555
25556 if test "$wxUSE_OPENGL" = "yes"; then
25557 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25558 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25559 else
25560 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25561 fi
25562
25563 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25564 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25565
25566 WX_TARGET_LIBRARY_TYPE="a"
25567 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25568
25569 STATIC_FLAG="yes"
25570else
25571 STATIC_FLAG="no"
90dd450c 25572fi
1e487827 25573
93fac604
VZ
25574MACRESCOMP="@#"
25575MACSETFILE="@#"
36825681 25576MACRESWXCONFIG="#"
21d1c967 25577if test "$wxUSE_MAC" = 1; then
e6cc62c6 25578 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25579 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25580 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25581 # Extract the first word of "Rez", so it can be a program name with args.
25582set dummy Rez; ac_word=$2
e6cc62c6
VS
25583echo "$as_me:$LINENO: checking for $ac_word" >&5
25584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25585if test "${ac_cv_prog_RESCOMP+set}" = set; then
25586 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25587else
21d1c967
GD
25588 if test -n "$RESCOMP"; then
25589 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25590else
e6cc62c6
VS
25591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592for as_dir in $PATH
25593do
25594 IFS=$as_save_IFS
25595 test -z "$as_dir" && as_dir=.
25596 for ac_exec_ext in '' $ac_executable_extensions; do
25597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25598 ac_cv_prog_RESCOMP="Rez"
25599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25600 break 2
25601 fi
25602done
25603done
25604
21d1c967 25605 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25606fi
b93d0d08 25607fi
e6cc62c6 25608RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25609if test -n "$RESCOMP"; then
e6cc62c6
VS
25610 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25611echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25612else
e6cc62c6
VS
25613 echo "$as_me:$LINENO: result: no" >&5
25614echo "${ECHO_T}no" >&6
90dd450c 25615fi
b93d0d08 25616
21d1c967
GD
25617 # Extract the first word of "DeRez", so it can be a program name with args.
25618set dummy DeRez; ac_word=$2
e6cc62c6
VS
25619echo "$as_me:$LINENO: checking for $ac_word" >&5
25620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25621if test "${ac_cv_prog_DEREZ+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25623else
21d1c967
GD
25624 if test -n "$DEREZ"; then
25625 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25626else
e6cc62c6
VS
25627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25628for as_dir in $PATH
25629do
25630 IFS=$as_save_IFS
25631 test -z "$as_dir" && as_dir=.
25632 for ac_exec_ext in '' $ac_executable_extensions; do
25633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25634 ac_cv_prog_DEREZ="DeRez"
25635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25636 break 2
25637 fi
25638done
25639done
25640
21d1c967 25641 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25642fi
90dd450c 25643fi
e6cc62c6 25644DEREZ=$ac_cv_prog_DEREZ
21d1c967 25645if test -n "$DEREZ"; then
e6cc62c6
VS
25646 echo "$as_me:$LINENO: result: $DEREZ" >&5
25647echo "${ECHO_T}$DEREZ" >&6
90dd450c 25648else
e6cc62c6
VS
25649 echo "$as_me:$LINENO: result: no" >&5
25650echo "${ECHO_T}no" >&6
3a922bb4 25651fi
698dcdb6 25652
36825681
GD
25653 # Extract the first word of "SetFile", so it can be a program name with args.
25654set dummy SetFile; ac_word=$2
e6cc62c6
VS
25655echo "$as_me:$LINENO: checking for $ac_word" >&5
25656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25657if test "${ac_cv_prog_SETFILE+set}" = set; then
25658 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25659else
25660 if test -n "$SETFILE"; then
25661 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25662else
e6cc62c6
VS
25663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25664for as_dir in $PATH
25665do
25666 IFS=$as_save_IFS
25667 test -z "$as_dir" && as_dir=.
25668 for ac_exec_ext in '' $ac_executable_extensions; do
25669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25670 ac_cv_prog_SETFILE="SetFile"
25671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25672 break 2
25673 fi
25674done
25675done
25676
36825681
GD
25677 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25678fi
25679fi
e6cc62c6 25680SETFILE=$ac_cv_prog_SETFILE
36825681 25681if test -n "$SETFILE"; then
e6cc62c6
VS
25682 echo "$as_me:$LINENO: result: $SETFILE" >&5
25683echo "${ECHO_T}$SETFILE" >&6
36825681 25684else
e6cc62c6
VS
25685 echo "$as_me:$LINENO: result: no" >&5
25686echo "${ECHO_T}no" >&6
36825681
GD
25687fi
25688
21d1c967 25689 MACOSX_BUNDLE="bundle"
36825681
GD
25690 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25691 MACSETFILE="\$(SETFILE)"
9711d31e 25692 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25693elif test "$wxUSE_COCOA" = 1; then
25694 # Extract the first word of "Rez", so it can be a program name with args.
25695set dummy Rez; ac_word=$2
e6cc62c6
VS
25696echo "$as_me:$LINENO: checking for $ac_word" >&5
25697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25698if test "${ac_cv_prog_RESCOMP+set}" = set; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25700else
25701 if test -n "$RESCOMP"; then
25702 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25703else
e6cc62c6
VS
25704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25705for as_dir in $PATH
25706do
25707 IFS=$as_save_IFS
25708 test -z "$as_dir" && as_dir=.
25709 for ac_exec_ext in '' $ac_executable_extensions; do
25710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25711 ac_cv_prog_RESCOMP="Rez"
25712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25713 break 2
25714 fi
25715done
25716done
25717
64440d77
DE
25718 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25719fi
25720fi
e6cc62c6 25721RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25722if test -n "$RESCOMP"; then
e6cc62c6
VS
25723 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25724echo "${ECHO_T}$RESCOMP" >&6
64440d77 25725else
e6cc62c6
VS
25726 echo "$as_me:$LINENO: result: no" >&5
25727echo "${ECHO_T}no" >&6
64440d77
DE
25728fi
25729
25730 # Extract the first word of "DeRez", so it can be a program name with args.
25731set dummy DeRez; ac_word=$2
e6cc62c6
VS
25732echo "$as_me:$LINENO: checking for $ac_word" >&5
25733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25734if test "${ac_cv_prog_DEREZ+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25736else
25737 if test -n "$DEREZ"; then
25738 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25739else
e6cc62c6
VS
25740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25741for as_dir in $PATH
25742do
25743 IFS=$as_save_IFS
25744 test -z "$as_dir" && as_dir=.
25745 for ac_exec_ext in '' $ac_executable_extensions; do
25746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25747 ac_cv_prog_DEREZ="DeRez"
25748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25749 break 2
25750 fi
25751done
25752done
25753
64440d77
DE
25754 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25755fi
25756fi
e6cc62c6 25757DEREZ=$ac_cv_prog_DEREZ
64440d77 25758if test -n "$DEREZ"; then
e6cc62c6
VS
25759 echo "$as_me:$LINENO: result: $DEREZ" >&5
25760echo "${ECHO_T}$DEREZ" >&6
64440d77 25761else
e6cc62c6
VS
25762 echo "$as_me:$LINENO: result: no" >&5
25763echo "${ECHO_T}no" >&6
64440d77
DE
25764fi
25765
25766 # Extract the first word of "SetFile", so it can be a program name with args.
25767set dummy SetFile; ac_word=$2
e6cc62c6
VS
25768echo "$as_me:$LINENO: checking for $ac_word" >&5
25769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25770if test "${ac_cv_prog_SETFILE+set}" = set; then
25771 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25772else
25773 if test -n "$SETFILE"; then
25774 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25775else
e6cc62c6
VS
25776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25777for as_dir in $PATH
25778do
25779 IFS=$as_save_IFS
25780 test -z "$as_dir" && as_dir=.
25781 for ac_exec_ext in '' $ac_executable_extensions; do
25782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25783 ac_cv_prog_SETFILE="SetFile"
25784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25785 break 2
25786 fi
25787done
25788done
25789
64440d77
DE
25790 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25791fi
25792fi
e6cc62c6 25793SETFILE=$ac_cv_prog_SETFILE
64440d77 25794if test -n "$SETFILE"; then
e6cc62c6
VS
25795 echo "$as_me:$LINENO: result: $SETFILE" >&5
25796echo "${ECHO_T}$SETFILE" >&6
64440d77 25797else
e6cc62c6
VS
25798 echo "$as_me:$LINENO: result: no" >&5
25799echo "${ECHO_T}no" >&6
64440d77
DE
25800fi
25801
25802 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25803 MACSETFILE="\$(SETFILE)"
9711d31e 25804 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25805else
25806 if test "$wxUSE_PM" = 1; then
36825681 25807 MACRESCOMP="emxbind -ep"
90dd450c 25808 fi
4f14bcd8 25809fi
10f2d63a 25810
8284b0c5 25811
e6cc62c6
VS
25812echo "$as_me:$LINENO: checking for mode_t" >&5
25813echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25814if test "${ac_cv_type_mode_t+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25816else
e6cc62c6
VS
25817 cat >conftest.$ac_ext <<_ACEOF
25818#line $LINENO "configure"
25819/* confdefs.h. */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h. */
25824$ac_includes_default
25825int
25826main ()
25827{
25828if ((mode_t *) 0)
25829 return 0;
25830if (sizeof (mode_t))
25831 return 0;
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext
25837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838 (eval $ac_compile) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } &&
25842 { ac_try='test -s conftest.$ac_objext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 ac_cv_type_mode_t=yes
a0b9e27f 25849else
e6cc62c6
VS
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25852
e6cc62c6 25853ac_cv_type_mode_t=no
a0b9e27f 25854fi
e6cc62c6 25855rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25856fi
e6cc62c6
VS
25857echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25858echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25859if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25860 :
25861else
a0b9e27f 25862
e6cc62c6
VS
25863cat >>confdefs.h <<_ACEOF
25864#define mode_t int
25865_ACEOF
8284b0c5
MB
25866
25867fi
25868
e6cc62c6
VS
25869echo "$as_me:$LINENO: checking for off_t" >&5
25870echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25871if test "${ac_cv_type_off_t+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25873else
e6cc62c6
VS
25874 cat >conftest.$ac_ext <<_ACEOF
25875#line $LINENO "configure"
25876/* confdefs.h. */
25877_ACEOF
25878cat confdefs.h >>conftest.$ac_ext
25879cat >>conftest.$ac_ext <<_ACEOF
25880/* end confdefs.h. */
25881$ac_includes_default
25882int
25883main ()
25884{
25885if ((off_t *) 0)
25886 return 0;
25887if (sizeof (off_t))
25888 return 0;
25889 ;
25890 return 0;
25891}
25892_ACEOF
25893rm -f conftest.$ac_objext
25894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25895 (eval $ac_compile) 2>&5
25896 ac_status=$?
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); } &&
25899 { ac_try='test -s conftest.$ac_objext'
25900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901 (eval $ac_try) 2>&5
25902 ac_status=$?
25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904 (exit $ac_status); }; }; then
25905 ac_cv_type_off_t=yes
5c6fa7d2 25906else
e6cc62c6
VS
25907 echo "$as_me: failed program was:" >&5
25908sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25909
e6cc62c6 25910ac_cv_type_off_t=no
8284b0c5 25911fi
e6cc62c6 25912rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25913fi
e6cc62c6
VS
25914echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25915echo "${ECHO_T}$ac_cv_type_off_t" >&6
25916if test $ac_cv_type_off_t = yes; then
25917 :
247f5006
VZ
25918else
25919
e6cc62c6 25920cat >>confdefs.h <<_ACEOF
90dd450c 25921#define off_t long
e6cc62c6 25922_ACEOF
10f2d63a 25923
90dd450c 25924fi
10f2d63a 25925
e6cc62c6
VS
25926echo "$as_me:$LINENO: checking for pid_t" >&5
25927echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25928if test "${ac_cv_type_pid_t+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25930else
e6cc62c6
VS
25931 cat >conftest.$ac_ext <<_ACEOF
25932#line $LINENO "configure"
25933/* confdefs.h. */
25934_ACEOF
25935cat confdefs.h >>conftest.$ac_ext
25936cat >>conftest.$ac_ext <<_ACEOF
25937/* end confdefs.h. */
25938$ac_includes_default
25939int
25940main ()
25941{
25942if ((pid_t *) 0)
25943 return 0;
25944if (sizeof (pid_t))
25945 return 0;
25946 ;
25947 return 0;
25948}
25949_ACEOF
25950rm -f conftest.$ac_objext
25951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952 (eval $ac_compile) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -s conftest.$ac_objext'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
90dd450c 25962 ac_cv_type_pid_t=yes
698dcdb6 25963else
e6cc62c6
VS
25964 echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25966
e6cc62c6
VS
25967ac_cv_type_pid_t=no
25968fi
25969rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25970fi
e6cc62c6
VS
25971echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25972echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25973if test $ac_cv_type_pid_t = yes; then
25974 :
25975else
25976
25977cat >>confdefs.h <<_ACEOF
90dd450c 25978#define pid_t int
e6cc62c6 25979_ACEOF
10f2d63a 25980
7b4a847f
RR
25981fi
25982
e6cc62c6
VS
25983echo "$as_me:$LINENO: checking for size_t" >&5
25984echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25985if test "${ac_cv_type_size_t+set}" = set; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25987else
e6cc62c6
VS
25988 cat >conftest.$ac_ext <<_ACEOF
25989#line $LINENO "configure"
25990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
25995$ac_includes_default
25996int
25997main ()
25998{
25999if ((size_t *) 0)
26000 return 0;
26001if (sizeof (size_t))
26002 return 0;
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007rm -f conftest.$ac_objext
26008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26009 (eval $ac_compile) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } &&
26013 { ac_try='test -s conftest.$ac_objext'
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
90dd450c 26019 ac_cv_type_size_t=yes
18dbb1f6 26020else
e6cc62c6
VS
26021 echo "$as_me: failed program was:" >&5
26022sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26023
e6cc62c6 26024ac_cv_type_size_t=no
a0b9e27f 26025fi
e6cc62c6
VS
26026rm -f conftest.$ac_objext conftest.$ac_ext
26027fi
26028echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26029echo "${ECHO_T}$ac_cv_type_size_t" >&6
26030if test $ac_cv_type_size_t = yes; then
26031 :
26032else
26033
26034cat >>confdefs.h <<_ACEOF
90dd450c 26035#define size_t unsigned
e6cc62c6 26036_ACEOF
90dd450c
VZ
26037
26038fi
26039
e6cc62c6
VS
26040echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26041echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26042if test "${ac_cv_type_uid_t+set}" = set; then
26043 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26044else
e6cc62c6
VS
26045 cat >conftest.$ac_ext <<_ACEOF
26046#line $LINENO "configure"
26047/* confdefs.h. */
26048_ACEOF
26049cat confdefs.h >>conftest.$ac_ext
26050cat >>conftest.$ac_ext <<_ACEOF
26051/* end confdefs.h. */
90dd450c 26052#include <sys/types.h>
e6cc62c6
VS
26053
26054_ACEOF
90dd450c 26055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26056 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26057 ac_cv_type_uid_t=yes
b3e8d00a 26058else
90dd450c 26059 ac_cv_type_uid_t=no
b3e8d00a 26060fi
90dd450c 26061rm -f conftest*
b3e8d00a 26062
4f14bcd8 26063fi
e6cc62c6
VS
26064echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26065echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26066if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26067
26068cat >>confdefs.h <<\_ACEOF
90dd450c 26069#define uid_t int
e6cc62c6 26070_ACEOF
247f5006 26071
e6cc62c6
VS
26072
26073cat >>confdefs.h <<\_ACEOF
90dd450c 26074#define gid_t int
e6cc62c6 26075_ACEOF
4f14bcd8 26076
b3e8d00a 26077fi
b3e8d00a 26078
8284b0c5
MB
26079
26080
e6cc62c6
VS
26081
26082ac_ext=cc
4f14bcd8 26083ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26087
26088echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26089echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26090if test "${wx_cv_size_t_is_uint+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26092else
26093
26094 cat >conftest.$ac_ext <<_ACEOF
26095#line $LINENO "configure"
26096/* confdefs.h. */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h. */
90dd450c 26101#include <stddef.h>
e6cc62c6
VS
26102int
26103main ()
26104{
90dd450c
VZ
26105
26106 return 0; }
26107
26108 struct Foo { void foo(size_t); void foo(unsigned int); };
26109
26110 int bar() {
e6cc62c6
VS
26111
26112 ;
26113 return 0;
26114}
26115_ACEOF
26116rm -f conftest.$ac_objext
26117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118 (eval $ac_compile) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
26122 { ac_try='test -s conftest.$ac_objext'
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; }; then
90dd450c 26128 wx_cv_size_t_is_uint=no
698dcdb6 26129else
e6cc62c6
VS
26130 echo "$as_me: failed program was:" >&5
26131sed 's/^/| /' conftest.$ac_ext >&5
26132
26133wx_cv_size_t_is_uint=yes
8284b0c5 26134
247f5006 26135fi
e6cc62c6
VS
26136rm -f conftest.$ac_objext conftest.$ac_ext
26137
a0b9e27f 26138
e6cc62c6
VS
26139fi
26140echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26141echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26142
90dd450c 26143if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26144 cat >>confdefs.h <<\_ACEOF
90dd450c 26145#define wxSIZE_T_IS_UINT 1
e6cc62c6 26146_ACEOF
698dcdb6 26147
90dd450c 26148else
e6cc62c6
VS
26149 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26150echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26151if test "${wx_cv_size_t_is_ulong+set}" = set; then
26152 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26153else
e6cc62c6
VS
26154 cat >conftest.$ac_ext <<_ACEOF
26155#line $LINENO "configure"
26156/* confdefs.h. */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h. */
90dd450c 26161#include <stddef.h>
e6cc62c6
VS
26162int
26163main ()
26164{
90dd450c
VZ
26165
26166 return 0; }
26167
26168 struct Foo { void foo(size_t); void foo(unsigned long); };
26169
26170 int bar() {
e6cc62c6
VS
26171
26172 ;
26173 return 0;
26174}
26175_ACEOF
26176rm -f conftest.$ac_objext
26177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26178 (eval $ac_compile) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); } &&
26182 { ac_try='test -s conftest.$ac_objext'
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
90dd450c 26188 wx_cv_size_t_is_ulong=no
698dcdb6 26189else
e6cc62c6
VS
26190 echo "$as_me: failed program was:" >&5
26191sed 's/^/| /' conftest.$ac_ext >&5
26192
26193wx_cv_size_t_is_ulong=yes
26194
247f5006 26195fi
e6cc62c6 26196rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26197
e6cc62c6
VS
26198fi
26199echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26200echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26201
90dd450c 26202 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26203 cat >>confdefs.h <<\_ACEOF
90dd450c 26204#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26205_ACEOF
4f14bcd8
GD
26206
26207 fi
90dd450c 26208fi
1e487827 26209
90dd450c 26210ac_ext=c
4f14bcd8 26211ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26214ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26215
5c6fa7d2 26216
8284b0c5 26217
e6cc62c6
VS
26218echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26219echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26220if test "${wx_cv_struct_pw_gecos+set}" = set; then
26221 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26222else
e6cc62c6
VS
26223
26224 cat >conftest.$ac_ext <<_ACEOF
26225#line $LINENO "configure"
26226/* confdefs.h. */
26227_ACEOF
26228cat confdefs.h >>conftest.$ac_ext
26229cat >>conftest.$ac_ext <<_ACEOF
26230/* end confdefs.h. */
90dd450c 26231#include <pwd.h>
e6cc62c6
VS
26232int
26233main ()
26234{
f6bcfd97 26235
90dd450c
VZ
26236 char *p;
26237 struct passwd *pw;
26238 p = pw->pw_gecos;
e6cc62c6
VS
26239
26240 ;
26241 return 0;
26242}
26243_ACEOF
26244rm -f conftest.$ac_objext
26245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26246 (eval $ac_compile) 2>&5
26247 ac_status=$?
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } &&
26250 { ac_try='test -s conftest.$ac_objext'
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; }; then
26256
90dd450c 26257 wx_cv_struct_pw_gecos=yes
e6cc62c6 26258
10f2d63a 26259else
e6cc62c6
VS
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263
90dd450c 26264 wx_cv_struct_pw_gecos=no
e6cc62c6 26265
247f5006
VZ
26266
26267fi
e6cc62c6 26268rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26269
e6cc62c6
VS
26270
26271fi
26272echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26273echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26274
90dd450c 26275if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26276 cat >>confdefs.h <<\_ACEOF
90dd450c 26277#define HAVE_PW_GECOS 1
e6cc62c6 26278_ACEOF
c521c494 26279
90dd450c 26280fi
4f14bcd8 26281
8284b0c5 26282
d29b553b 26283if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26284 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26285#define wxUSE_WCHAR_T 1
e6cc62c6 26286_ACEOF
d74f4b5a 26287
8284b0c5 26288
d74f4b5a
VZ
26289 WCSLEN_FOUND=0
26290 WCHAR_LINK=
e6cc62c6
VS
26291
26292for ac_func in wcslen
7a30264c 26293do
e6cc62c6
VS
26294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295echo "$as_me:$LINENO: checking for $ac_func" >&5
26296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26297if eval "test \"\${$as_ac_var+set}\" = set"; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
26300 cat >conftest.$ac_ext <<_ACEOF
26301#line $LINENO "configure"
26302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
7a30264c 26307/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26308 which can conflict with char $ac_func (); below.
26309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26310 <limits.h> exists even on freestanding compilers. */
26311#ifdef __STDC__
26312# include <limits.h>
26313#else
26314# include <assert.h>
26315#endif
4f14bcd8 26316/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26317#ifdef __cplusplus
26318extern "C"
26319{
26320#endif
4f14bcd8 26321/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26322 builtin and then its argument prototype would still apply. */
26323char $ac_func ();
7a30264c
VZ
26324/* The GNU C library defines this for functions which it implements
26325 to always fail with ENOSYS. Some functions are actually named
26326 something starting with __ and the normal name is an alias. */
26327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26328choke me
26329#else
e6cc62c6
VS
26330char (*f) () = $ac_func;
26331#endif
26332#ifdef __cplusplus
26333}
7a30264c
VZ
26334#endif
26335
e6cc62c6
VS
26336int
26337main ()
26338{
26339return f != $ac_func;
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext conftest$ac_exeext
26345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26346 (eval $ac_link) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -s conftest$ac_exeext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26356 eval "$as_ac_var=yes"
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361eval "$as_ac_var=no"
26362fi
26363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26364fi
26365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26367if test `eval echo '${'$as_ac_var'}'` = yes; then
26368 cat >>confdefs.h <<_ACEOF
26369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26370_ACEOF
d74f4b5a 26371 WCSLEN_FOUND=1
7a30264c
VZ
26372fi
26373done
9d8deca0 26374
8284b0c5 26375
d74f4b5a 26376 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26377 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26378 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26379echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26380if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26381 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26382else
e6cc62c6 26383 ac_check_lib_save_LIBS=$LIBS
7a30264c 26384LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26385cat >conftest.$ac_ext <<_ACEOF
26386#line $LINENO "configure"
26387/* confdefs.h. */
26388_ACEOF
26389cat confdefs.h >>conftest.$ac_ext
26390cat >>conftest.$ac_ext <<_ACEOF
26391/* end confdefs.h. */
26392
4f14bcd8 26393/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26394#ifdef __cplusplus
26395extern "C"
26396#endif
4f14bcd8 26397/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26398 builtin and then its argument prototype would still apply. */
26399char wcslen ();
26400int
26401main ()
26402{
26403wcslen ();
26404 ;
26405 return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext conftest$ac_exeext
26409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410 (eval $ac_link) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); } &&
26414 { ac_try='test -s conftest$ac_exeext'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; }; then
26420 ac_cv_lib_msvcrt_wcslen=yes
26421else
26422 echo "$as_me: failed program was:" >&5
26423sed 's/^/| /' conftest.$ac_ext >&5
26424
26425ac_cv_lib_msvcrt_wcslen=no
26426fi
26427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26428LIBS=$ac_check_lib_save_LIBS
26429fi
26430echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26431echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26432if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26433 WCHAR_OK=1
d29b553b 26434fi
698dcdb6 26435
7a30264c 26436 else
e6cc62c6
VS
26437 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26438echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26439if test "${ac_cv_lib_w_wcslen+set}" = set; then
26440 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26441else
e6cc62c6 26442 ac_check_lib_save_LIBS=$LIBS
7a30264c 26443LIBS="-lw $LIBS"
e6cc62c6
VS
26444cat >conftest.$ac_ext <<_ACEOF
26445#line $LINENO "configure"
26446/* confdefs.h. */
26447_ACEOF
26448cat confdefs.h >>conftest.$ac_ext
26449cat >>conftest.$ac_ext <<_ACEOF
26450/* end confdefs.h. */
26451
4f14bcd8 26452/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26453#ifdef __cplusplus
26454extern "C"
26455#endif
4f14bcd8 26456/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26457 builtin and then its argument prototype would still apply. */
26458char wcslen ();
26459int
26460main ()
26461{
26462wcslen ();
26463 ;
26464 return 0;
26465}
26466_ACEOF
26467rm -f conftest.$ac_objext conftest$ac_exeext
26468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26469 (eval $ac_link) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); } &&
26473 { ac_try='test -s conftest$ac_exeext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 ac_cv_lib_w_wcslen=yes
26480else
26481 echo "$as_me: failed program was:" >&5
26482sed 's/^/| /' conftest.$ac_ext >&5
26483
26484ac_cv_lib_w_wcslen=no
26485fi
26486rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26487LIBS=$ac_check_lib_save_LIBS
26488fi
26489echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26490echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26491if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26492
7a30264c 26493 WCHAR_LINK=" -lw"
d74f4b5a 26494 WCSLEN_FOUND=1
e6cc62c6 26495
4f14bcd8 26496fi
10f2d63a 26497
7a30264c 26498 fi
d29b553b 26499 fi
95c8801c 26500
d74f4b5a 26501 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26502 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26503#define HAVE_WCSLEN 1
e6cc62c6 26504_ACEOF
10f2d63a 26505
d74f4b5a 26506 fi
52127426 26507
e6cc62c6
VS
26508
26509for ac_func in wcsrtombs
eb4efbdc 26510do
e6cc62c6
VS
26511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26512echo "$as_me:$LINENO: checking for $ac_func" >&5
26513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26514if eval "test \"\${$as_ac_var+set}\" = set"; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516else
26517 cat >conftest.$ac_ext <<_ACEOF
26518#line $LINENO "configure"
26519/* confdefs.h. */
26520_ACEOF
26521cat confdefs.h >>conftest.$ac_ext
26522cat >>conftest.$ac_ext <<_ACEOF
26523/* end confdefs.h. */
eb4efbdc 26524/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26525 which can conflict with char $ac_func (); below.
26526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527 <limits.h> exists even on freestanding compilers. */
26528#ifdef __STDC__
26529# include <limits.h>
26530#else
26531# include <assert.h>
26532#endif
eb4efbdc 26533/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26534#ifdef __cplusplus
26535extern "C"
26536{
26537#endif
4f14bcd8 26538/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26539 builtin and then its argument prototype would still apply. */
26540char $ac_func ();
10f2d63a
VZ
26541/* The GNU C library defines this for functions which it implements
26542 to always fail with ENOSYS. Some functions are actually named
26543 something starting with __ and the normal name is an alias. */
247f5006 26544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26545choke me
26546#else
e6cc62c6
VS
26547char (*f) () = $ac_func;
26548#endif
26549#ifdef __cplusplus
26550}
10f2d63a
VZ
26551#endif
26552
e6cc62c6
VS
26553int
26554main ()
26555{
26556return f != $ac_func;
26557 ;
26558 return 0;
26559}
26560_ACEOF
26561rm -f conftest.$ac_objext conftest$ac_exeext
26562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26563 (eval $ac_link) 2>&5
26564 ac_status=$?
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } &&
26567 { ac_try='test -s conftest$ac_exeext'
26568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569 (eval $ac_try) 2>&5
26570 ac_status=$?
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); }; }; then
26573 eval "$as_ac_var=yes"
26574else
26575 echo "$as_me: failed program was:" >&5
26576sed 's/^/| /' conftest.$ac_ext >&5
26577
26578eval "$as_ac_var=no"
26579fi
26580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26581fi
26582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26584if test `eval echo '${'$as_ac_var'}'` = yes; then
26585 cat >>confdefs.h <<_ACEOF
26586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26587_ACEOF
270a909e 26588
4f14bcd8 26589fi
247f5006 26590done
1e487827 26591
af15babd 26592else
e6cc62c6
VS
26593 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26594echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26595fi
52127426 26596
8284b0c5 26597
e6cc62c6
VS
26598
26599ac_ext=cc
247f5006 26600ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26604
af15babd 26605
247f5006
VZ
26606
26607for ac_func in vsnprintf
26608do
e6cc62c6
VS
26609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26610echo "$as_me:$LINENO: checking for $ac_func" >&5
26611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26612if eval "test \"\${$as_ac_var+set}\" = set"; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26614else
26615 cat >conftest.$ac_ext <<_ACEOF
26616#line $LINENO "configure"
26617/* confdefs.h. */
26618_ACEOF
26619cat confdefs.h >>conftest.$ac_ext
26620cat >>conftest.$ac_ext <<_ACEOF
26621/* end confdefs.h. */
247f5006 26622/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26623 which can conflict with char $ac_func (); below.
26624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26625 <limits.h> exists even on freestanding compilers. */
26626#ifdef __STDC__
26627# include <limits.h>
26628#else
26629# include <assert.h>
26630#endif
247f5006
VZ
26631/* Override any gcc2 internal prototype to avoid an error. */
26632#ifdef __cplusplus
26633extern "C"
e6cc62c6 26634{
247f5006
VZ
26635#endif
26636/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26637 builtin and then its argument prototype would still apply. */
26638char $ac_func ();
247f5006
VZ
26639/* The GNU C library defines this for functions which it implements
26640 to always fail with ENOSYS. Some functions are actually named
26641 something starting with __ and the normal name is an alias. */
26642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26643choke me
26644#else
e6cc62c6
VS
26645char (*f) () = $ac_func;
26646#endif
26647#ifdef __cplusplus
26648}
247f5006 26649#endif
af15babd 26650
e6cc62c6
VS
26651int
26652main ()
26653{
26654return f != $ac_func;
26655 ;
26656 return 0;
26657}
26658_ACEOF
26659rm -f conftest.$ac_objext conftest$ac_exeext
26660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26661 (eval $ac_link) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } &&
26665 { ac_try='test -s conftest$ac_exeext'
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 eval "$as_ac_var=yes"
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676eval "$as_ac_var=no"
26677fi
26678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26679fi
26680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26682if test `eval echo '${'$as_ac_var'}'` = yes; then
26683 cat >>confdefs.h <<_ACEOF
26684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26685_ACEOF
52127426 26686
5c6fa7d2 26687fi
247f5006 26688done
8284b0c5 26689
4f14bcd8 26690
8d90d2f2 26691if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26692 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26693echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26694if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26695 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26696else
e6cc62c6
VS
26697
26698 cat >conftest.$ac_ext <<_ACEOF
26699#line $LINENO "configure"
26700/* confdefs.h. */
26701_ACEOF
26702cat confdefs.h >>conftest.$ac_ext
26703cat >>conftest.$ac_ext <<_ACEOF
26704/* end confdefs.h. */
8d90d2f2
VZ
26705
26706 #include <stdio.h>
26707 #include <stdarg.h>
e6cc62c6
VS
26708
26709int
26710main ()
26711{
8d90d2f2
VZ
26712
26713 char *buf;
26714 va_list ap;
26715 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26716
26717 ;
26718 return 0;
26719}
26720_ACEOF
26721rm -f conftest.$ac_objext
26722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26723 (eval $ac_compile) 2>&5
26724 ac_status=$?
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -s conftest.$ac_objext'
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
8d90d2f2
VZ
26733 wx_cv_func_vsnprintf_decl=yes
26734else
e6cc62c6
VS
26735 echo "$as_me: failed program was:" >&5
26736sed 's/^/| /' conftest.$ac_ext >&5
26737
26738wx_cv_func_vsnprintf_decl=no
26739
8d90d2f2 26740fi
e6cc62c6
VS
26741rm -f conftest.$ac_objext conftest.$ac_ext
26742
8d90d2f2 26743
e6cc62c6
VS
26744fi
26745echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26746echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26747
26748 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26749 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26750#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26751_ACEOF
8d90d2f2
VZ
26752
26753 fi
26754fi
26755
247f5006 26756if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26757
26758
26759
26760for ac_func in fputwc wprintf vswprintf
d74f4b5a 26761do
e6cc62c6
VS
26762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26763echo "$as_me:$LINENO: checking for $ac_func" >&5
26764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26765if eval "test \"\${$as_ac_var+set}\" = set"; then
26766 echo $ECHO_N "(cached) $ECHO_C" >&6
26767else
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. */
d74f4b5a 26775/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26776 which can conflict with char $ac_func (); below.
26777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778 <limits.h> exists even on freestanding compilers. */
26779#ifdef __STDC__
26780# include <limits.h>
26781#else
26782# include <assert.h>
26783#endif
d74f4b5a 26784/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26785#ifdef __cplusplus
26786extern "C"
e6cc62c6 26787{
247f5006 26788#endif
d74f4b5a 26789/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26790 builtin and then its argument prototype would still apply. */
26791char $ac_func ();
d74f4b5a
VZ
26792/* The GNU C library defines this for functions which it implements
26793 to always fail with ENOSYS. Some functions are actually named
26794 something starting with __ and the normal name is an alias. */
26795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26796choke me
26797#else
e6cc62c6
VS
26798char (*f) () = $ac_func;
26799#endif
26800#ifdef __cplusplus
26801}
d74f4b5a
VZ
26802#endif
26803
e6cc62c6
VS
26804int
26805main ()
26806{
26807return f != $ac_func;
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814 (eval $ac_link) 2>&5
26815 ac_status=$?
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
26818 { ac_try='test -s conftest$ac_exeext'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 eval "$as_ac_var=yes"
26825else
26826 echo "$as_me: failed program was:" >&5
26827sed 's/^/| /' conftest.$ac_ext >&5
26828
26829eval "$as_ac_var=no"
26830fi
26831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26832fi
26833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26835if test `eval echo '${'$as_ac_var'}'` = yes; then
26836 cat >>confdefs.h <<_ACEOF
26837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26838_ACEOF
d74f4b5a 26839
d74f4b5a
VZ
26840fi
26841done
26842
8d90d2f2 26843
e6cc62c6
VS
26844 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26845echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26846 cat >conftest.$ac_ext <<_ACEOF
26847#line $LINENO "configure"
26848/* confdefs.h. */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h. */
79668cae 26853#include <wchar.h>
e6cc62c6
VS
26854int
26855main ()
26856{
79668cae 26857&_vsnwprintf;
e6cc62c6
VS
26858 ;
26859 return 0;
26860}
26861_ACEOF
26862rm -f conftest.$ac_objext
26863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26864 (eval $ac_compile) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } &&
26868 { ac_try='test -s conftest.$ac_objext'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 echo "$as_me:$LINENO: result: yes" >&5
26875echo "${ECHO_T}yes" >&6
26876 cat >>confdefs.h <<\_ACEOF
79668cae 26877#define HAVE__VSNWPRINTF 1
e6cc62c6 26878_ACEOF
79668cae
MB
26879
26880else
e6cc62c6
VS
26881 echo "$as_me: failed program was:" >&5
26882sed 's/^/| /' conftest.$ac_ext >&5
26883
26884echo "$as_me:$LINENO: result: no" >&5
26885echo "${ECHO_T}no" >&6
79668cae 26886fi
e6cc62c6 26887rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26888fi
26889
247f5006
VZ
26890ac_ext=c
26891ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26894ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26895
26896
26897
26898
4f14bcd8 26899if test "$TOOLKIT" != "MSW"; then
af15babd 26900
8284b0c5
MB
26901
26902
e6cc62c6
VS
26903
26904ac_ext=cc
4f14bcd8 26905ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26909
52127426 26910
e6cc62c6
VS
26911
26912
26913# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26914if test "${with_libiconv_prefix+set}" = set; then
26915 withval="$with_libiconv_prefix"
e6cc62c6 26916
b040e242
VS
26917 for dir in `echo "$withval" | tr : ' '`; do
26918 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26919 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26920 done
b040e242 26921
e6cc62c6 26922fi;
b040e242 26923
e6cc62c6
VS
26924 echo "$as_me:$LINENO: checking for iconv" >&5
26925echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26926if test "${am_cv_func_iconv+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26928else
e6cc62c6 26929
b040e242
VS
26930 am_cv_func_iconv="no, consider installing GNU libiconv"
26931 am_cv_lib_iconv=no
e6cc62c6
VS
26932 cat >conftest.$ac_ext <<_ACEOF
26933#line $LINENO "configure"
26934/* confdefs.h. */
26935_ACEOF
26936cat confdefs.h >>conftest.$ac_ext
26937cat >>conftest.$ac_ext <<_ACEOF
26938/* end confdefs.h. */
b040e242 26939#include <stdlib.h>
4f14bcd8 26940#include <iconv.h>
e6cc62c6
VS
26941int
26942main ()
26943{
b040e242
VS
26944iconv_t cd = iconv_open("","");
26945 iconv(cd,NULL,NULL,NULL,NULL);
26946 iconv_close(cd);
e6cc62c6
VS
26947 ;
26948 return 0;
26949}
26950_ACEOF
26951rm -f conftest.$ac_objext conftest$ac_exeext
26952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26953 (eval $ac_link) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -s conftest$ac_exeext'
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
b040e242 26963 am_cv_func_iconv=yes
af15babd 26964else
e6cc62c6
VS
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
b040e242 26968fi
e6cc62c6 26969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26970 if test "$am_cv_func_iconv" != yes; then
26971 am_save_LIBS="$LIBS"
26972 LIBS="$LIBS -liconv"
e6cc62c6
VS
26973 cat >conftest.$ac_ext <<_ACEOF
26974#line $LINENO "configure"
26975/* confdefs.h. */
26976_ACEOF
26977cat confdefs.h >>conftest.$ac_ext
26978cat >>conftest.$ac_ext <<_ACEOF
26979/* end confdefs.h. */
b040e242
VS
26980#include <stdlib.h>
26981#include <iconv.h>
e6cc62c6
VS
26982int
26983main ()
26984{
b040e242
VS
26985iconv_t cd = iconv_open("","");
26986 iconv(cd,NULL,NULL,NULL,NULL);
26987 iconv_close(cd);
e6cc62c6
VS
26988 ;
26989 return 0;
26990}
26991_ACEOF
26992rm -f conftest.$ac_objext conftest$ac_exeext
26993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26994 (eval $ac_link) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } &&
26998 { ac_try='test -s conftest$ac_exeext'
26999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; }; then
b040e242
VS
27004 am_cv_lib_iconv=yes
27005 am_cv_func_iconv=yes
27006else
e6cc62c6
VS
27007 echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
af15babd 27010fi
e6cc62c6 27011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27012 LIBS="$am_save_LIBS"
27013 fi
247f5006 27014
e6cc62c6
VS
27015fi
27016echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27017echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27018 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27019
27020cat >>confdefs.h <<\_ACEOF
b040e242 27021#define HAVE_ICONV 1
e6cc62c6 27022_ACEOF
b040e242 27023
e6cc62c6
VS
27024 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27025echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27026if test "${wx_cv_func_iconv_const+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27028else
e6cc62c6
VS
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. */
b040e242
VS
27036
27037#include <stdlib.h>
27038#include <iconv.h>
27039extern
27040#ifdef __cplusplus
27041"C"
27042#endif
27043#if defined(__STDC__) || defined(__cplusplus)
27044size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27045#else
27046size_t iconv();
27047#endif
af15babd 27048
e6cc62c6
VS
27049int
27050main ()
27051{
27052
27053 ;
27054 return 0;
27055}
27056_ACEOF
27057rm -f conftest.$ac_objext
27058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27059 (eval $ac_compile) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } &&
27063 { ac_try='test -s conftest.$ac_objext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
b7043674 27069 wx_cv_func_iconv_const="no"
b040e242 27070else
e6cc62c6
VS
27071 echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074wx_cv_func_iconv_const="yes"
27075
247f5006 27076fi
e6cc62c6 27077rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27078
e6cc62c6
VS
27079fi
27080echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27081echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27082
27083 iconv_const=
1c405bb5 27084 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27085 iconv_const="const"
27086 fi
27087
e6cc62c6
VS
27088
27089cat >>confdefs.h <<_ACEOF
f09359cf 27090#define ICONV_CONST $iconv_const
e6cc62c6 27091_ACEOF
b040e242
VS
27092
27093 fi
27094 LIBICONV=
27095 if test "$am_cv_lib_iconv" = yes; then
27096 LIBICONV="-liconv"
27097 fi
e6cc62c6 27098
b040e242
VS
27099
27100LIBS="$LIBICONV $LIBS"
4f14bcd8 27101ac_ext=c
4f14bcd8 27102ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27105ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27106
5c6fa7d2 27107
8284b0c5 27108if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27109
27110for ac_func in sigaction
af15babd 27111do
e6cc62c6
VS
27112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27113echo "$as_me:$LINENO: checking for $ac_func" >&5
27114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27115if eval "test \"\${$as_ac_var+set}\" = set"; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 cat >conftest.$ac_ext <<_ACEOF
27119#line $LINENO "configure"
27120/* confdefs.h. */
27121_ACEOF
27122cat confdefs.h >>conftest.$ac_ext
27123cat >>conftest.$ac_ext <<_ACEOF
27124/* end confdefs.h. */
af15babd 27125/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27126 which can conflict with char $ac_func (); below.
27127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128 <limits.h> exists even on freestanding compilers. */
27129#ifdef __STDC__
27130# include <limits.h>
27131#else
27132# include <assert.h>
27133#endif
af15babd 27134/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27135#ifdef __cplusplus
27136extern "C"
27137{
27138#endif
af15babd 27139/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27140 builtin and then its argument prototype would still apply. */
27141char $ac_func ();
af15babd
VZ
27142/* The GNU C library defines this for functions which it implements
27143 to always fail with ENOSYS. Some functions are actually named
27144 something starting with __ and the normal name is an alias. */
27145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27146choke me
27147#else
e6cc62c6
VS
27148char (*f) () = $ac_func;
27149#endif
27150#ifdef __cplusplus
27151}
af15babd
VZ
27152#endif
27153
e6cc62c6
VS
27154int
27155main ()
27156{
27157return f != $ac_func;
27158 ;
27159 return 0;
27160}
27161_ACEOF
27162rm -f conftest.$ac_objext conftest$ac_exeext
27163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164 (eval $ac_link) 2>&5
27165 ac_status=$?
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); } &&
27168 { ac_try='test -s conftest$ac_exeext'
27169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); }; }; then
27174 eval "$as_ac_var=yes"
27175else
27176 echo "$as_me: failed program was:" >&5
27177sed 's/^/| /' conftest.$ac_ext >&5
27178
27179eval "$as_ac_var=no"
27180fi
27181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27182fi
27183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27185if test `eval echo '${'$as_ac_var'}'` = yes; then
27186 cat >>confdefs.h <<_ACEOF
27187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27188_ACEOF
7b4a847f 27189
4f14bcd8
GD
27190fi
27191done
27192
8284b0c5 27193
4f14bcd8 27194 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27195 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27196echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27197 wxUSE_ON_FATAL_EXCEPTION=no
27198 fi
27199
27200 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27201
27202
27203 ac_ext=cc
5c6fa7d2 27204ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27208
5c6fa7d2 27209
e6cc62c6
VS
27210 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27211echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27212if test "${wx_cv_type_sa_handler+set}" = set; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27214else
e6cc62c6
VS
27215
27216 cat >conftest.$ac_ext <<_ACEOF
27217#line $LINENO "configure"
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
4f14bcd8 27223#include <signal.h>
e6cc62c6
VS
27224int
27225main ()
27226{
4f14bcd8
GD
27227
27228 extern void testSigHandler(int);
27229
27230 struct sigaction sa;
27231 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27232
27233 ;
27234 return 0;
27235}
27236_ACEOF
27237rm -f conftest.$ac_objext
27238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239 (eval $ac_compile) 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } &&
27243 { ac_try='test -s conftest.$ac_objext'
27244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27246 ac_status=$?
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; }; then
27249
4f14bcd8 27250 wx_cv_type_sa_handler=int
e6cc62c6 27251
af15babd 27252else
e6cc62c6
VS
27253 echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256
4f14bcd8 27257 wx_cv_type_sa_handler=void
e6cc62c6 27258
247f5006 27259fi
e6cc62c6 27260rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27261
e6cc62c6
VS
27262fi
27263echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27264echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27265
27266 ac_ext=c
4f14bcd8 27267ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27270ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27271
8284b0c5 27272
e6cc62c6 27273 cat >>confdefs.h <<_ACEOF
4f14bcd8 27274#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27275_ACEOF
af15babd 27276
4f14bcd8
GD
27277 fi
27278fi
af15babd 27279
e6cc62c6
VS
27280
27281
a1d22ad7 27282for ac_func in mkstemp mktemp
af15babd 27283do
e6cc62c6
VS
27284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27285echo "$as_me:$LINENO: checking for $ac_func" >&5
27286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27287if eval "test \"\${$as_ac_var+set}\" = set"; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27289else
27290 cat >conftest.$ac_ext <<_ACEOF
27291#line $LINENO "configure"
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
af15babd 27297/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27298 which can conflict with char $ac_func (); below.
27299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27300 <limits.h> exists even on freestanding compilers. */
27301#ifdef __STDC__
27302# include <limits.h>
27303#else
27304# include <assert.h>
27305#endif
af15babd 27306/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27307#ifdef __cplusplus
27308extern "C"
27309{
27310#endif
af15babd 27311/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27312 builtin and then its argument prototype would still apply. */
27313char $ac_func ();
af15babd
VZ
27314/* The GNU C library defines this for functions which it implements
27315 to always fail with ENOSYS. Some functions are actually named
27316 something starting with __ and the normal name is an alias. */
27317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27318choke me
27319#else
e6cc62c6
VS
27320char (*f) () = $ac_func;
27321#endif
27322#ifdef __cplusplus
27323}
af15babd
VZ
27324#endif
27325
e6cc62c6
VS
27326int
27327main ()
27328{
27329return f != $ac_func;
27330 ;
27331 return 0;
27332}
27333_ACEOF
27334rm -f conftest.$ac_objext conftest$ac_exeext
27335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27336 (eval $ac_link) 2>&5
27337 ac_status=$?
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
27340 { ac_try='test -s conftest$ac_exeext'
27341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342 (eval $ac_try) 2>&5
27343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; }; then
27346 eval "$as_ac_var=yes"
27347else
27348 echo "$as_me: failed program was:" >&5
27349sed 's/^/| /' conftest.$ac_ext >&5
27350
27351eval "$as_ac_var=no"
27352fi
27353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27354fi
27355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27357if test `eval echo '${'$as_ac_var'}'` = yes; then
27358 cat >>confdefs.h <<_ACEOF
27359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27360_ACEOF
ade35f11 27361 break
ade35f11
VZ
27362fi
27363done
27364
8284b0c5 27365
e6cc62c6
VS
27366echo "$as_me:$LINENO: checking for statfs" >&5
27367echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27368if test "${wx_cv_func_statfs+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27370else
e6cc62c6
VS
27371 cat >conftest.$ac_ext <<_ACEOF
27372#line $LINENO "configure"
27373/* confdefs.h. */
27374_ACEOF
27375cat confdefs.h >>conftest.$ac_ext
27376cat >>conftest.$ac_ext <<_ACEOF
27377/* end confdefs.h. */
4f14bcd8
GD
27378
27379 #if defined(__BSD__)
27380 #include <sys/param.h>
27381 #include <sys/mount.h>
27382 #else
27383 #include <sys/vfs.h>
27384 #endif
e6cc62c6
VS
27385
27386int
27387main ()
27388{
4f14bcd8
GD
27389
27390 long l;
27391 struct statfs fs;
27392 statfs("/", &fs);
27393 l = fs.f_bsize;
27394 l += fs.f_blocks;
27395 l += fs.f_bavail;
e6cc62c6
VS
27396
27397 ;
27398 return 0;
27399}
27400_ACEOF
27401rm -f conftest.$ac_objext
27402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27403 (eval $ac_compile) 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try='test -s conftest.$ac_objext'
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; }; then
27413
4f14bcd8 27414 wx_cv_func_statfs=yes
e6cc62c6 27415
4f14bcd8 27416else
e6cc62c6
VS
27417 echo "$as_me: failed program was:" >&5
27418sed 's/^/| /' conftest.$ac_ext >&5
27419
27420
4f14bcd8 27421 wx_cv_func_statfs=no
e6cc62c6 27422
8284b0c5 27423
247f5006 27424fi
e6cc62c6 27425rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27426
e6cc62c6
VS
27427fi
27428echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27429echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27430
27431if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27432 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27433 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27434#define HAVE_STATFS 1
e6cc62c6 27435_ACEOF
4f14bcd8
GD
27436
27437else
e6cc62c6
VS
27438 echo "$as_me:$LINENO: checking for statvfs" >&5
27439echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27440if test "${wx_cv_func_statvfs+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27442else
e6cc62c6
VS
27443 cat >conftest.$ac_ext <<_ACEOF
27444#line $LINENO "configure"
27445/* confdefs.h. */
27446_ACEOF
27447cat confdefs.h >>conftest.$ac_ext
27448cat >>conftest.$ac_ext <<_ACEOF
27449/* end confdefs.h. */
af15babd 27450
54ab82b3
VZ
27451 #include <stddef.h>
27452 #include <sys/statvfs.h>
e6cc62c6
VS
27453
27454int
27455main ()
27456{
af15babd 27457
54ab82b3 27458 statvfs("/", NULL);
e6cc62c6
VS
27459
27460 ;
27461 return 0;
27462}
27463_ACEOF
27464rm -f conftest.$ac_objext
27465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27466 (eval $ac_compile) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
27470 { ac_try='test -s conftest.$ac_objext'
27471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475 (exit $ac_status); }; }; then
54ab82b3 27476 wx_cv_func_statvfs=yes
af15babd 27477else
e6cc62c6
VS
27478 echo "$as_me: failed program was:" >&5
27479sed 's/^/| /' conftest.$ac_ext >&5
27480
27481wx_cv_func_statvfs=no
27482
247f5006 27483fi
e6cc62c6 27484rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27485
e6cc62c6
VS
27486fi
27487echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27488echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27489
4f14bcd8 27490 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27491
27492
27493 ac_ext=cc
54ab82b3 27494ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27498
27499
e6cc62c6
VS
27500 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27501echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27502if test "${wx_cv_type_statvfs_t+set}" = set; then
27503 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27504else
e6cc62c6
VS
27505 cat >conftest.$ac_ext <<_ACEOF
27506#line $LINENO "configure"
27507/* confdefs.h. */
27508_ACEOF
27509cat confdefs.h >>conftest.$ac_ext
27510cat >>conftest.$ac_ext <<_ACEOF
27511/* end confdefs.h. */
54ab82b3
VZ
27512
27513 #include <sys/statvfs.h>
e6cc62c6
VS
27514
27515int
27516main ()
27517{
54ab82b3
VZ
27518
27519 long l;
27520 statvfs_t fs;
27521 statvfs("/", &fs);
27522 l = fs.f_bsize;
27523 l += fs.f_blocks;
27524 l += fs.f_bavail;
e6cc62c6
VS
27525
27526 ;
27527 return 0;
27528}
27529_ACEOF
27530rm -f conftest.$ac_objext
27531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27532 (eval $ac_compile) 2>&5
27533 ac_status=$?
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -s conftest.$ac_objext'
27537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; }; then
54ab82b3
VZ
27542 wx_cv_type_statvfs_t=statvfs_t
27543else
e6cc62c6
VS
27544 echo "$as_me: failed program was:" >&5
27545sed 's/^/| /' conftest.$ac_ext >&5
27546
27547
27548 cat >conftest.$ac_ext <<_ACEOF
27549#line $LINENO "configure"
27550/* confdefs.h. */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h. */
54ab82b3
VZ
27555
27556 #include <sys/statvfs.h>
e6cc62c6
VS
27557
27558int
27559main ()
27560{
54ab82b3
VZ
27561
27562 long l;
65d8ef1e 27563 struct statvfs fs;
54ab82b3
VZ
27564 statvfs("/", &fs);
27565 l = fs.f_bsize;
27566 l += fs.f_blocks;
27567 l += fs.f_bavail;
e6cc62c6
VS
27568
27569 ;
27570 return 0;
27571}
27572_ACEOF
27573rm -f conftest.$ac_objext
27574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575 (eval $ac_compile) 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
27579 { ac_try='test -s conftest.$ac_objext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
54ab82b3
VZ
27585 wx_cv_type_statvfs_t="struct statvfs"
27586else
e6cc62c6
VS
27587 echo "$as_me: failed program was:" >&5
27588sed 's/^/| /' conftest.$ac_ext >&5
27589
27590wx_cv_type_statvfs_t="unknown"
27591
54ab82b3 27592fi
e6cc62c6
VS
27593rm -f conftest.$ac_objext conftest.$ac_ext
27594
27595
54ab82b3 27596fi
e6cc62c6 27597rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27598
e6cc62c6
VS
27599fi
27600echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27601echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27602
27603 ac_ext=c
54ab82b3 27604ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27608
27609
27610 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27611 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27612#define HAVE_STATVFS 1
e6cc62c6 27613_ACEOF
af15babd 27614
54ab82b3 27615 fi
4f14bcd8 27616 else
54ab82b3 27617 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27618 fi
27619fi
af15babd 27620
54ab82b3 27621if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27622 cat >>confdefs.h <<_ACEOF
54ab82b3 27623#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27624_ACEOF
54ab82b3
VZ
27625
27626else
e6cc62c6
VS
27627 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27628echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27629fi
27630
4f14bcd8 27631if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27632
27633
27634for ac_func in fcntl flock
af15babd 27635do
e6cc62c6
VS
27636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27637echo "$as_me:$LINENO: checking for $ac_func" >&5
27638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27639if eval "test \"\${$as_ac_var+set}\" = set"; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27641else
27642 cat >conftest.$ac_ext <<_ACEOF
27643#line $LINENO "configure"
27644/* confdefs.h. */
27645_ACEOF
27646cat confdefs.h >>conftest.$ac_ext
27647cat >>conftest.$ac_ext <<_ACEOF
27648/* end confdefs.h. */
af15babd 27649/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27650 which can conflict with char $ac_func (); below.
27651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27652 <limits.h> exists even on freestanding compilers. */
27653#ifdef __STDC__
27654# include <limits.h>
27655#else
27656# include <assert.h>
27657#endif
af15babd 27658/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27659#ifdef __cplusplus
27660extern "C"
27661{
27662#endif
af15babd 27663/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27664 builtin and then its argument prototype would still apply. */
27665char $ac_func ();
af15babd
VZ
27666/* The GNU C library defines this for functions which it implements
27667 to always fail with ENOSYS. Some functions are actually named
27668 something starting with __ and the normal name is an alias. */
27669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27670choke me
27671#else
e6cc62c6
VS
27672char (*f) () = $ac_func;
27673#endif
27674#ifdef __cplusplus
27675}
af15babd
VZ
27676#endif
27677
e6cc62c6
VS
27678int
27679main ()
27680{
27681return f != $ac_func;
27682 ;
27683 return 0;
27684}
27685_ACEOF
27686rm -f conftest.$ac_objext conftest$ac_exeext
27687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688 (eval $ac_link) 2>&5
27689 ac_status=$?
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } &&
27692 { ac_try='test -s conftest$ac_exeext'
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; }; then
27698 eval "$as_ac_var=yes"
27699else
27700 echo "$as_me: failed program was:" >&5
27701sed 's/^/| /' conftest.$ac_ext >&5
27702
27703eval "$as_ac_var=no"
27704fi
27705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27706fi
27707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27709if test `eval echo '${'$as_ac_var'}'` = yes; then
27710 cat >>confdefs.h <<_ACEOF
27711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712_ACEOF
4f14bcd8 27713 break
af15babd
VZ
27714fi
27715done
27716
8284b0c5 27717
4f14bcd8 27718 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27719 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27720echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27721 wxUSE_SNGLINST_CHECKER=no
27722 fi
27723fi
af15babd 27724
e6cc62c6 27725
4f14bcd8 27726for ac_func in timegm
af15babd 27727do
e6cc62c6
VS
27728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27729echo "$as_me:$LINENO: checking for $ac_func" >&5
27730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27731if eval "test \"\${$as_ac_var+set}\" = set"; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27733else
27734 cat >conftest.$ac_ext <<_ACEOF
27735#line $LINENO "configure"
27736/* confdefs.h. */
27737_ACEOF
27738cat confdefs.h >>conftest.$ac_ext
27739cat >>conftest.$ac_ext <<_ACEOF
27740/* end confdefs.h. */
af15babd 27741/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27742 which can conflict with char $ac_func (); below.
27743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27744 <limits.h> exists even on freestanding compilers. */
27745#ifdef __STDC__
27746# include <limits.h>
27747#else
27748# include <assert.h>
27749#endif
af15babd 27750/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27751#ifdef __cplusplus
27752extern "C"
27753{
27754#endif
af15babd 27755/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27756 builtin and then its argument prototype would still apply. */
27757char $ac_func ();
af15babd
VZ
27758/* The GNU C library defines this for functions which it implements
27759 to always fail with ENOSYS. Some functions are actually named
27760 something starting with __ and the normal name is an alias. */
247f5006
VZ
27761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27762choke me
27763#else
e6cc62c6
VS
27764char (*f) () = $ac_func;
27765#endif
27766#ifdef __cplusplus
27767}
247f5006
VZ
27768#endif
27769
e6cc62c6
VS
27770int
27771main ()
27772{
27773return f != $ac_func;
27774 ;
27775 return 0;
27776}
27777_ACEOF
27778rm -f conftest.$ac_objext conftest$ac_exeext
27779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27780 (eval $ac_link) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } &&
27784 { ac_try='test -s conftest$ac_exeext'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27787 ac_status=$?
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; }; then
27790 eval "$as_ac_var=yes"
27791else
27792 echo "$as_me: failed program was:" >&5
27793sed 's/^/| /' conftest.$ac_ext >&5
27794
27795eval "$as_ac_var=no"
27796fi
27797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27798fi
27799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27801if test `eval echo '${'$as_ac_var'}'` = yes; then
27802 cat >>confdefs.h <<_ACEOF
27803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27804_ACEOF
703e0a69 27805
af15babd
VZ
27806fi
27807done
27808
8284b0c5 27809
e6cc62c6
VS
27810
27811
4f14bcd8 27812for ac_func in putenv setenv
10f2d63a 27813do
e6cc62c6
VS
27814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815echo "$as_me:$LINENO: checking for $ac_func" >&5
27816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27817if eval "test \"\${$as_ac_var+set}\" = set"; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27819else
27820 cat >conftest.$ac_ext <<_ACEOF
27821#line $LINENO "configure"
27822/* confdefs.h. */
27823_ACEOF
27824cat confdefs.h >>conftest.$ac_ext
27825cat >>conftest.$ac_ext <<_ACEOF
27826/* end confdefs.h. */
af15babd 27827/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27828 which can conflict with char $ac_func (); below.
27829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27830 <limits.h> exists even on freestanding compilers. */
27831#ifdef __STDC__
27832# include <limits.h>
27833#else
27834# include <assert.h>
27835#endif
af15babd 27836/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27837#ifdef __cplusplus
27838extern "C"
27839{
27840#endif
af15babd 27841/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27842 builtin and then its argument prototype would still apply. */
27843char $ac_func ();
af15babd
VZ
27844/* The GNU C library defines this for functions which it implements
27845 to always fail with ENOSYS. Some functions are actually named
27846 something starting with __ and the normal name is an alias. */
27847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27848choke me
27849#else
e6cc62c6
VS
27850char (*f) () = $ac_func;
27851#endif
27852#ifdef __cplusplus
27853}
af15babd
VZ
27854#endif
27855
e6cc62c6
VS
27856int
27857main ()
27858{
27859return f != $ac_func;
27860 ;
27861 return 0;
27862}
27863_ACEOF
27864rm -f conftest.$ac_objext conftest$ac_exeext
27865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27866 (eval $ac_link) 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } &&
27870 { ac_try='test -s conftest$ac_exeext'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 eval "$as_ac_var=yes"
27877else
27878 echo "$as_me: failed program was:" >&5
27879sed 's/^/| /' conftest.$ac_ext >&5
27880
27881eval "$as_ac_var=no"
27882fi
27883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27884fi
27885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27887if test `eval echo '${'$as_ac_var'}'` = yes; then
27888 cat >>confdefs.h <<_ACEOF
27889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27890_ACEOF
4f14bcd8 27891 break
af15babd 27892fi
af15babd
VZ
27893done
27894
8284b0c5 27895
4f14bcd8
GD
27896HAVE_SOME_SLEEP_FUNC=0
27897if test "$USE_BEOS" = 1; then
e6cc62c6 27898 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27899#define HAVE_SLEEP 1
e6cc62c6 27900_ACEOF
af15babd 27901
4f14bcd8 27902 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27903fi
27904
4f14bcd8 27905if test "$USE_DARWIN" = 1; then
e6cc62c6 27906 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27907#define HAVE_USLEEP 1
e6cc62c6 27908_ACEOF
10f2d63a 27909
4f14bcd8 27910 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27911fi
27912
4f14bcd8
GD
27913if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27914 POSIX4_LINK=
e6cc62c6
VS
27915
27916for ac_func in nanosleep
4f14bcd8 27917do
e6cc62c6
VS
27918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27919echo "$as_me:$LINENO: checking for $ac_func" >&5
27920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27921if eval "test \"\${$as_ac_var+set}\" = set"; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27923else
27924 cat >conftest.$ac_ext <<_ACEOF
27925#line $LINENO "configure"
27926/* confdefs.h. */
27927_ACEOF
27928cat confdefs.h >>conftest.$ac_ext
27929cat >>conftest.$ac_ext <<_ACEOF
27930/* end confdefs.h. */
4f14bcd8 27931/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27932 which can conflict with char $ac_func (); below.
27933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27934 <limits.h> exists even on freestanding compilers. */
27935#ifdef __STDC__
27936# include <limits.h>
27937#else
27938# include <assert.h>
27939#endif
10f2d63a 27940/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27941#ifdef __cplusplus
27942extern "C"
27943{
27944#endif
10f2d63a 27945/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27946 builtin and then its argument prototype would still apply. */
27947char $ac_func ();
4f14bcd8
GD
27948/* The GNU C library defines this for functions which it implements
27949 to always fail with ENOSYS. Some functions are actually named
27950 something starting with __ and the normal name is an alias. */
27951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27952choke me
27953#else
e6cc62c6
VS
27954char (*f) () = $ac_func;
27955#endif
27956#ifdef __cplusplus
27957}
4f14bcd8
GD
27958#endif
27959
e6cc62c6
VS
27960int
27961main ()
27962{
27963return f != $ac_func;
27964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext conftest$ac_exeext
27969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27970 (eval $ac_link) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); } &&
27974 { ac_try='test -s conftest$ac_exeext'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 eval "$as_ac_var=yes"
27981else
27982 echo "$as_me: failed program was:" >&5
27983sed 's/^/| /' conftest.$ac_ext >&5
27984
27985eval "$as_ac_var=no"
27986fi
27987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27988fi
27989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27991if test `eval echo '${'$as_ac_var'}'` = yes; then
27992 cat >>confdefs.h <<_ACEOF
27993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27994_ACEOF
27995 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27996#define HAVE_NANOSLEEP 1
e6cc62c6 27997_ACEOF
4f14bcd8 27998
10f2d63a 27999else
e6cc62c6
VS
28000
28001 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28002echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28003if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28005else
e6cc62c6 28006 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28007LIBS="-lposix4 $LIBS"
e6cc62c6
VS
28008cat >conftest.$ac_ext <<_ACEOF
28009#line $LINENO "configure"
28010/* confdefs.h. */
28011_ACEOF
28012cat confdefs.h >>conftest.$ac_ext
28013cat >>conftest.$ac_ext <<_ACEOF
28014/* end confdefs.h. */
28015
10f2d63a 28016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28017#ifdef __cplusplus
28018extern "C"
28019#endif
10f2d63a 28020/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28021 builtin and then its argument prototype would still apply. */
28022char nanosleep ();
28023int
28024main ()
28025{
28026nanosleep ();
28027 ;
28028 return 0;
28029}
28030_ACEOF
28031rm -f conftest.$ac_objext conftest$ac_exeext
28032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28033 (eval $ac_link) 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } &&
28037 { ac_try='test -s conftest$ac_exeext'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28043 ac_cv_lib_posix4_nanosleep=yes
28044else
28045 echo "$as_me: failed program was:" >&5
28046sed 's/^/| /' conftest.$ac_ext >&5
28047
28048ac_cv_lib_posix4_nanosleep=no
28049fi
28050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28051LIBS=$ac_check_lib_save_LIBS
28052fi
28053echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28054echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28055if test $ac_cv_lib_posix4_nanosleep = yes; then
28056
28057 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28058#define HAVE_NANOSLEEP 1
e6cc62c6 28059_ACEOF
4f14bcd8 28060
3d63bc3a 28061 POSIX4_LINK=" -lposix4"
e6cc62c6 28062
10f2d63a 28063else
10f2d63a 28064
e6cc62c6
VS
28065
28066for ac_func in usleep
4f14bcd8 28067do
e6cc62c6
VS
28068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28069echo "$as_me:$LINENO: checking for $ac_func" >&5
28070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28071if eval "test \"\${$as_ac_var+set}\" = set"; then
28072 echo $ECHO_N "(cached) $ECHO_C" >&6
28073else
28074 cat >conftest.$ac_ext <<_ACEOF
28075#line $LINENO "configure"
28076/* confdefs.h. */
28077_ACEOF
28078cat confdefs.h >>conftest.$ac_ext
28079cat >>conftest.$ac_ext <<_ACEOF
28080/* end confdefs.h. */
4f14bcd8 28081/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28082 which can conflict with char $ac_func (); below.
28083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28084 <limits.h> exists even on freestanding compilers. */
28085#ifdef __STDC__
28086# include <limits.h>
28087#else
28088# include <assert.h>
28089#endif
4f14bcd8 28090/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28091#ifdef __cplusplus
28092extern "C"
28093{
28094#endif
4f14bcd8 28095/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28096 builtin and then its argument prototype would still apply. */
28097char $ac_func ();
4f14bcd8
GD
28098/* The GNU C library defines this for functions which it implements
28099 to always fail with ENOSYS. Some functions are actually named
28100 something starting with __ and the normal name is an alias. */
28101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28102choke me
28103#else
e6cc62c6
VS
28104char (*f) () = $ac_func;
28105#endif
28106#ifdef __cplusplus
28107}
4f14bcd8
GD
28108#endif
28109
e6cc62c6
VS
28110int
28111main ()
28112{
28113return f != $ac_func;
28114 ;
28115 return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext conftest$ac_exeext
28119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120 (eval $ac_link) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -s conftest$ac_exeext'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 eval "$as_ac_var=yes"
28131else
28132 echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135eval "$as_ac_var=no"
28136fi
28137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28138fi
28139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28141if test `eval echo '${'$as_ac_var'}'` = yes; then
28142 cat >>confdefs.h <<_ACEOF
28143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28144_ACEOF
28145 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28146#define HAVE_USLEEP 1
e6cc62c6 28147_ACEOF
4f14bcd8 28148
698dcdb6 28149else
e6cc62c6
VS
28150 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28151echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28152
10f2d63a 28153fi
4f14bcd8 28154done
10f2d63a 28155
e6cc62c6
VS
28156
28157
6232543b 28158fi
10f2d63a 28159
e6cc62c6
VS
28160
28161
1e487827 28162fi
4f14bcd8 28163done
703e0a69 28164
10f2d63a
VZ
28165fi
28166
e6cc62c6
VS
28167
28168
4f14bcd8 28169for ac_func in uname gethostname
70846f0a 28170do
e6cc62c6
VS
28171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28172echo "$as_me:$LINENO: checking for $ac_func" >&5
28173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28174if eval "test \"\${$as_ac_var+set}\" = set"; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176else
28177 cat >conftest.$ac_ext <<_ACEOF
28178#line $LINENO "configure"
28179/* confdefs.h. */
28180_ACEOF
28181cat confdefs.h >>conftest.$ac_ext
28182cat >>conftest.$ac_ext <<_ACEOF
28183/* end confdefs.h. */
70846f0a 28184/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28185 which can conflict with char $ac_func (); below.
28186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187 <limits.h> exists even on freestanding compilers. */
28188#ifdef __STDC__
28189# include <limits.h>
28190#else
28191# include <assert.h>
28192#endif
70846f0a 28193/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28194#ifdef __cplusplus
28195extern "C"
28196{
28197#endif
70846f0a 28198/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28199 builtin and then its argument prototype would still apply. */
28200char $ac_func ();
70846f0a
VZ
28201/* The GNU C library defines this for functions which it implements
28202 to always fail with ENOSYS. Some functions are actually named
28203 something starting with __ and the normal name is an alias. */
28204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28205choke me
28206#else
e6cc62c6
VS
28207char (*f) () = $ac_func;
28208#endif
28209#ifdef __cplusplus
28210}
70846f0a
VZ
28211#endif
28212
e6cc62c6
VS
28213int
28214main ()
28215{
28216return f != $ac_func;
28217 ;
28218 return 0;
28219}
28220_ACEOF
28221rm -f conftest.$ac_objext conftest$ac_exeext
28222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223 (eval $ac_link) 2>&5
28224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } &&
28227 { ac_try='test -s conftest$ac_exeext'
28228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229 (eval $ac_try) 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 eval "$as_ac_var=yes"
28234else
28235 echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
28238eval "$as_ac_var=no"
28239fi
28240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28241fi
28242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28244if test `eval echo '${'$as_ac_var'}'` = yes; then
28245 cat >>confdefs.h <<_ACEOF
28246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28247_ACEOF
4f14bcd8 28248 break
70846f0a
VZ
28249fi
28250done
28251
8284b0c5
MB
28252
28253
e6cc62c6
VS
28254
28255ac_ext=cc
4f14bcd8 28256ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28260
8284b0c5 28261
4f14bcd8
GD
28262
28263for ac_func in strtok_r
10f2d63a 28264do
e6cc62c6
VS
28265as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28266echo "$as_me:$LINENO: checking for $ac_func" >&5
28267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28268if eval "test \"\${$as_ac_var+set}\" = set"; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
28270else
28271 cat >conftest.$ac_ext <<_ACEOF
28272#line $LINENO "configure"
28273/* confdefs.h. */
28274_ACEOF
28275cat confdefs.h >>conftest.$ac_ext
28276cat >>conftest.$ac_ext <<_ACEOF
28277/* end confdefs.h. */
4f14bcd8 28278/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28279 which can conflict with char $ac_func (); below.
28280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28281 <limits.h> exists even on freestanding compilers. */
28282#ifdef __STDC__
28283# include <limits.h>
28284#else
28285# include <assert.h>
28286#endif
4f14bcd8
GD
28287/* Override any gcc2 internal prototype to avoid an error. */
28288#ifdef __cplusplus
28289extern "C"
e6cc62c6 28290{
4f14bcd8
GD
28291#endif
28292/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28293 builtin and then its argument prototype would still apply. */
28294char $ac_func ();
4f14bcd8
GD
28295/* The GNU C library defines this for functions which it implements
28296 to always fail with ENOSYS. Some functions are actually named
28297 something starting with __ and the normal name is an alias. */
28298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28299choke me
28300#else
e6cc62c6
VS
28301char (*f) () = $ac_func;
28302#endif
28303#ifdef __cplusplus
28304}
4f14bcd8
GD
28305#endif
28306
e6cc62c6
VS
28307int
28308main ()
28309{
28310return f != $ac_func;
28311 ;
28312 return 0;
28313}
28314_ACEOF
28315rm -f conftest.$ac_objext conftest$ac_exeext
28316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28317 (eval $ac_link) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); } &&
28321 { ac_try='test -s conftest$ac_exeext'
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28327 eval "$as_ac_var=yes"
28328else
28329 echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332eval "$as_ac_var=no"
28333fi
28334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28335fi
28336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28337echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28338if test `eval echo '${'$as_ac_var'}'` = yes; then
28339 cat >>confdefs.h <<_ACEOF
28340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28341_ACEOF
4f14bcd8 28342
10f2d63a
VZ
28343fi
28344done
28345
8284b0c5 28346
4f14bcd8 28347ac_ext=c
4f14bcd8 28348ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28351ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28352
5c6fa7d2 28353
8284b0c5 28354INET_LINK=
e6cc62c6 28355
4f14bcd8
GD
28356for ac_func in inet_addr
28357do
e6cc62c6
VS
28358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28359echo "$as_me:$LINENO: checking for $ac_func" >&5
28360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28361if eval "test \"\${$as_ac_var+set}\" = set"; then
28362 echo $ECHO_N "(cached) $ECHO_C" >&6
28363else
28364 cat >conftest.$ac_ext <<_ACEOF
28365#line $LINENO "configure"
28366/* confdefs.h. */
28367_ACEOF
28368cat confdefs.h >>conftest.$ac_ext
28369cat >>conftest.$ac_ext <<_ACEOF
28370/* end confdefs.h. */
4f14bcd8 28371/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28372 which can conflict with char $ac_func (); below.
28373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28374 <limits.h> exists even on freestanding compilers. */
28375#ifdef __STDC__
28376# include <limits.h>
28377#else
28378# include <assert.h>
28379#endif
10f2d63a 28380/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28381#ifdef __cplusplus
28382extern "C"
28383{
28384#endif
10f2d63a 28385/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28386 builtin and then its argument prototype would still apply. */
28387char $ac_func ();
4f14bcd8
GD
28388/* The GNU C library defines this for functions which it implements
28389 to always fail with ENOSYS. Some functions are actually named
28390 something starting with __ and the normal name is an alias. */
28391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28392choke me
28393#else
e6cc62c6
VS
28394char (*f) () = $ac_func;
28395#endif
28396#ifdef __cplusplus
28397}
4f14bcd8
GD
28398#endif
28399
e6cc62c6
VS
28400int
28401main ()
28402{
28403return f != $ac_func;
28404 ;
28405 return 0;
28406}
28407_ACEOF
28408rm -f conftest.$ac_objext conftest$ac_exeext
28409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28410 (eval $ac_link) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
28414 { ac_try='test -s conftest$ac_exeext'
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 eval "$as_ac_var=yes"
28421else
28422 echo "$as_me: failed program was:" >&5
28423sed 's/^/| /' conftest.$ac_ext >&5
28424
28425eval "$as_ac_var=no"
28426fi
28427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28428fi
28429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28431if test `eval echo '${'$as_ac_var'}'` = yes; then
28432 cat >>confdefs.h <<_ACEOF
28433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28434_ACEOF
28435 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28436#define HAVE_INET_ADDR 1
e6cc62c6 28437_ACEOF
10f2d63a
VZ
28438
28439else
e6cc62c6
VS
28440
28441 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28442echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28443if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28444 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28445else
e6cc62c6 28446 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28447LIBS="-lnsl $LIBS"
e6cc62c6
VS
28448cat >conftest.$ac_ext <<_ACEOF
28449#line $LINENO "configure"
28450/* confdefs.h. */
28451_ACEOF
28452cat confdefs.h >>conftest.$ac_ext
28453cat >>conftest.$ac_ext <<_ACEOF
28454/* end confdefs.h. */
28455
10f2d63a 28456/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28457#ifdef __cplusplus
28458extern "C"
28459#endif
10f2d63a 28460/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28461 builtin and then its argument prototype would still apply. */
28462char inet_addr ();
28463int
28464main ()
28465{
28466inet_addr ();
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext conftest$ac_exeext
28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473 (eval $ac_link) 2>&5
28474 ac_status=$?
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); } &&
28477 { ac_try='test -s conftest$ac_exeext'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28480 ac_status=$?
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 ac_cv_lib_nsl_inet_addr=yes
28484else
28485 echo "$as_me: failed program was:" >&5
28486sed 's/^/| /' conftest.$ac_ext >&5
28487
28488ac_cv_lib_nsl_inet_addr=no
28489fi
28490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28491LIBS=$ac_check_lib_save_LIBS
28492fi
28493echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28494echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28495if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28496 INET_LINK="nsl"
10f2d63a 28497else
e6cc62c6
VS
28498 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28499echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28500if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28502else
e6cc62c6 28503 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28504LIBS="-lresolv $LIBS"
e6cc62c6
VS
28505cat >conftest.$ac_ext <<_ACEOF
28506#line $LINENO "configure"
28507/* confdefs.h. */
28508_ACEOF
28509cat confdefs.h >>conftest.$ac_ext
28510cat >>conftest.$ac_ext <<_ACEOF
28511/* end confdefs.h. */
28512
5c6fa7d2 28513/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28514#ifdef __cplusplus
28515extern "C"
28516#endif
5c6fa7d2 28517/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28518 builtin and then its argument prototype would still apply. */
28519char inet_addr ();
28520int
28521main ()
28522{
28523inet_addr ();
28524 ;
28525 return 0;
28526}
28527_ACEOF
28528rm -f conftest.$ac_objext conftest$ac_exeext
28529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28530 (eval $ac_link) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); } &&
28534 { ac_try='test -s conftest$ac_exeext'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 ac_cv_lib_resolv_inet_addr=yes
28541else
28542 echo "$as_me: failed program was:" >&5
28543sed 's/^/| /' conftest.$ac_ext >&5
28544
28545ac_cv_lib_resolv_inet_addr=no
28546fi
28547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28548LIBS=$ac_check_lib_save_LIBS
28549fi
28550echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28551echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28552if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28553 INET_LINK="resolv"
698dcdb6 28554else
e6cc62c6
VS
28555 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28556echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28557if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28559else
e6cc62c6 28560 ac_check_lib_save_LIBS=$LIBS
3c011993 28561LIBS="-lsocket $LIBS"
e6cc62c6
VS
28562cat >conftest.$ac_ext <<_ACEOF
28563#line $LINENO "configure"
28564/* confdefs.h. */
28565_ACEOF
28566cat confdefs.h >>conftest.$ac_ext
28567cat >>conftest.$ac_ext <<_ACEOF
28568/* end confdefs.h. */
28569
3c011993 28570/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28571#ifdef __cplusplus
28572extern "C"
28573#endif
3c011993 28574/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28575 builtin and then its argument prototype would still apply. */
28576char inet_addr ();
28577int
28578main ()
28579{
28580inet_addr ();
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585rm -f conftest.$ac_objext conftest$ac_exeext
28586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28587 (eval $ac_link) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -s conftest$ac_exeext'
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_lib_socket_inet_addr=yes
28598else
28599 echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602ac_cv_lib_socket_inet_addr=no
28603fi
28604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28605LIBS=$ac_check_lib_save_LIBS
28606fi
28607echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28608echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28609if test $ac_cv_lib_socket_inet_addr = yes; then
28610 INET_LINK="socket"
4f14bcd8 28611
8284b0c5 28612fi
e6cc62c6 28613
698dcdb6 28614
7b4a847f 28615fi
e6cc62c6
VS
28616
28617
a0b9e27f 28618fi
579d8138 28619
e6cc62c6
VS
28620
28621
5c6fa7d2 28622fi
e6cc62c6
VS
28623done
28624
28625
28626
28627for ac_func in inet_aton
28628do
28629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28630echo "$as_me:$LINENO: checking for $ac_func" >&5
28631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28632if eval "test \"\${$as_ac_var+set}\" = set"; then
28633 echo $ECHO_N "(cached) $ECHO_C" >&6
28634else
28635 cat >conftest.$ac_ext <<_ACEOF
28636#line $LINENO "configure"
28637/* confdefs.h. */
28638_ACEOF
28639cat confdefs.h >>conftest.$ac_ext
28640cat >>conftest.$ac_ext <<_ACEOF
28641/* end confdefs.h. */
28642/* System header to define __stub macros and hopefully few prototypes,
28643 which can conflict with char $ac_func (); below.
28644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28645 <limits.h> exists even on freestanding compilers. */
28646#ifdef __STDC__
28647# include <limits.h>
28648#else
28649# include <assert.h>
28650#endif
28651/* Override any gcc2 internal prototype to avoid an error. */
28652#ifdef __cplusplus
28653extern "C"
28654{
28655#endif
28656/* We use char because int might match the return type of a gcc2
28657 builtin and then its argument prototype would still apply. */
28658char $ac_func ();
28659/* The GNU C library defines this for functions which it implements
28660 to always fail with ENOSYS. Some functions are actually named
28661 something starting with __ and the normal name is an alias. */
28662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28663choke me
28664#else
28665char (*f) () = $ac_func;
28666#endif
28667#ifdef __cplusplus
28668}
28669#endif
28670
28671int
28672main ()
28673{
28674return f != $ac_func;
28675 ;
28676 return 0;
28677}
28678_ACEOF
28679rm -f conftest.$ac_objext conftest$ac_exeext
28680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28681 (eval $ac_link) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -s conftest$ac_exeext'
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; }; then
28691 eval "$as_ac_var=yes"
28692else
28693 echo "$as_me: failed program was:" >&5
28694sed 's/^/| /' conftest.$ac_ext >&5
28695
28696eval "$as_ac_var=no"
28697fi
28698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28699fi
28700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28702if test `eval echo '${'$as_ac_var'}'` = yes; then
28703 cat >>confdefs.h <<_ACEOF
28704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28705_ACEOF
28706 cat >>confdefs.h <<\_ACEOF
28707#define HAVE_INET_ATON 1
28708_ACEOF
28709
28710else
28711
28712 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28713echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28714echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28715if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28716 echo $ECHO_N "(cached) $ECHO_C" >&6
28717else
28718 ac_check_lib_save_LIBS=$LIBS
28719LIBS="-l$INET_LINK $LIBS"
28720cat >conftest.$ac_ext <<_ACEOF
28721#line $LINENO "configure"
28722/* confdefs.h. */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h. */
28727
28728/* Override any gcc2 internal prototype to avoid an error. */
28729#ifdef __cplusplus
28730extern "C"
28731#endif
28732/* We use char because int might match the return type of a gcc2
28733 builtin and then its argument prototype would still apply. */
28734char inet_aton ();
28735int
28736main ()
28737{
28738inet_aton ();
28739 ;
28740 return 0;
28741}
28742_ACEOF
28743rm -f conftest.$ac_objext conftest$ac_exeext
28744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28745 (eval $ac_link) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } &&
28749 { ac_try='test -s conftest$ac_exeext'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 eval "$as_ac_Lib=yes"
28756else
28757 echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
28760eval "$as_ac_Lib=no"
28761fi
28762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28763LIBS=$ac_check_lib_save_LIBS
28764fi
28765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28766echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28767if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28768 cat >>confdefs.h <<\_ACEOF
28769#define HAVE_INET_ATON 1
28770_ACEOF
52127426 28771
a0b9e27f 28772fi
247f5006 28773
8284b0c5 28774
698dcdb6 28775fi
4f14bcd8
GD
28776done
28777
8284b0c5 28778
e6cc62c6
VS
28779if test "x$INET_LINK" != "x"; then
28780 cat >>confdefs.h <<\_ACEOF
28781#define HAVE_INET_ADDR 1
28782_ACEOF
28783
28784 INET_LINK=" -l$INET_LINK"
28785fi
28786
28787fi
a0b9e27f 28788
a0b9e27f 28789
4f14bcd8 28790
edd891e2
VS
28791EXTRALIBS_ESD=
28792echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28793echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28794if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28795 echo $ECHO_N "(cached) $ECHO_C" >&6
28796else
28797 ac_check_lib_save_LIBS=$LIBS
28798LIBS="-lesd $LIBS"
28799cat >conftest.$ac_ext <<_ACEOF
28800#line $LINENO "configure"
28801/* confdefs.h. */
28802_ACEOF
28803cat confdefs.h >>conftest.$ac_ext
28804cat >>conftest.$ac_ext <<_ACEOF
28805/* end confdefs.h. */
28806
28807/* Override any gcc2 internal prototype to avoid an error. */
28808#ifdef __cplusplus
28809extern "C"
28810#endif
28811/* We use char because int might match the return type of a gcc2
28812 builtin and then its argument prototype would still apply. */
28813char esd_close ();
28814int
28815main ()
28816{
28817esd_close ();
28818 ;
28819 return 0;
28820}
28821_ACEOF
28822rm -f conftest.$ac_objext conftest$ac_exeext
28823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28824 (eval $ac_link) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } &&
28828 { ac_try='test -s conftest$ac_exeext'
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 ac_cv_lib_esd_esd_close=yes
28835else
28836 echo "$as_me: failed program was:" >&5
28837sed 's/^/| /' conftest.$ac_ext >&5
28838
28839ac_cv_lib_esd_esd_close=no
28840fi
28841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28842LIBS=$ac_check_lib_save_LIBS
28843fi
28844echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28845echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28846if test $ac_cv_lib_esd_esd_close = yes; then
28847
28848
28849for ac_header in esd.h
28850do
28851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28852if eval "test \"\${$as_ac_Header+set}\" = set"; then
28853 echo "$as_me:$LINENO: checking for $ac_header" >&5
28854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28855if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28857fi
edd891e2
VS
28858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28860else
28861 # Is the header compilable?
edd891e2
VS
28862echo "$as_me:$LINENO: checking $ac_header usability" >&5
28863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28864cat >conftest.$ac_ext <<_ACEOF
28865#line $LINENO "configure"
28866/* confdefs.h. */
28867_ACEOF
28868cat confdefs.h >>conftest.$ac_ext
28869cat >>conftest.$ac_ext <<_ACEOF
28870/* end confdefs.h. */
28871$ac_includes_default
edd891e2 28872#include <$ac_header>
e6cc62c6
VS
28873_ACEOF
28874rm -f conftest.$ac_objext
28875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28876 (eval $ac_compile) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_header_compiler=yes
28887else
28888 echo "$as_me: failed program was:" >&5
28889sed 's/^/| /' conftest.$ac_ext >&5
28890
28891ac_header_compiler=no
28892fi
28893rm -f conftest.$ac_objext conftest.$ac_ext
28894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895echo "${ECHO_T}$ac_header_compiler" >&6
28896
28897# Is the header present?
edd891e2
VS
28898echo "$as_me:$LINENO: checking $ac_header presence" >&5
28899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28900cat >conftest.$ac_ext <<_ACEOF
28901#line $LINENO "configure"
28902/* confdefs.h. */
28903_ACEOF
28904cat confdefs.h >>conftest.$ac_ext
28905cat >>conftest.$ac_ext <<_ACEOF
28906/* end confdefs.h. */
edd891e2 28907#include <$ac_header>
e6cc62c6
VS
28908_ACEOF
28909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28911 ac_status=$?
28912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } >/dev/null; then
28917 if test -s conftest.err; then
28918 ac_cpp_err=$ac_c_preproc_warn_flag
28919 else
28920 ac_cpp_err=
28921 fi
a0b9e27f 28922else
e6cc62c6
VS
28923 ac_cpp_err=yes
28924fi
28925if test -z "$ac_cpp_err"; then
28926 ac_header_preproc=yes
28927else
28928 echo "$as_me: failed program was:" >&5
28929sed 's/^/| /' conftest.$ac_ext >&5
28930
28931 ac_header_preproc=no
28932fi
28933rm -f conftest.err conftest.$ac_ext
28934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935echo "${ECHO_T}$ac_header_preproc" >&6
28936
28937# So? What about this header?
28938case $ac_header_compiler:$ac_header_preproc in
28939 yes:no )
edd891e2
VS
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28944 (
28945 cat <<\_ASBOX
28946## ------------------------------------ ##
28947## Report this to bug-autoconf@gnu.org. ##
28948## ------------------------------------ ##
28949_ASBOX
28950 ) |
28951 sed "s/^/$as_me: WARNING: /" >&2
28952 ;;
28953 no:yes )
edd891e2
VS
28954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28960 (
28961 cat <<\_ASBOX
28962## ------------------------------------ ##
28963## Report this to bug-autoconf@gnu.org. ##
28964## ------------------------------------ ##
28965_ASBOX
28966 ) |
28967 sed "s/^/$as_me: WARNING: /" >&2
28968 ;;
28969esac
edd891e2
VS
28970echo "$as_me:$LINENO: checking for $ac_header" >&5
28971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28972if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28974else
edd891e2 28975 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28976fi
edd891e2
VS
28977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28979
e6cc62c6 28980fi
edd891e2
VS
28981if test `eval echo '${'$as_ac_Header'}'` = yes; then
28982 cat >>confdefs.h <<_ACEOF
28983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28984_ACEOF
e6cc62c6 28985
edd891e2 28986 EXTRALIBS_ESD="-lesd"
4f14bcd8 28987
a0b9e27f 28988fi
247f5006 28989
edd891e2 28990done
8284b0c5 28991
4f14bcd8 28992
6232543b 28993fi
10f2d63a 28994
703e0a69 28995
8284b0c5 28996
e6cc62c6
VS
28997
28998
28999cat >confcache <<\_ACEOF
4f14bcd8
GD
29000# This file is a shell script that caches the results of configure
29001# tests run on this system so they can be shared between configure
e6cc62c6
VS
29002# scripts and configure runs, see configure's option --config-cache.
29003# It is not useful on other systems. If it contains results you don't
29004# want to keep, you may remove or edit it.
4f14bcd8 29005#
e6cc62c6
VS
29006# config.status only pays attention to the cache file if you give it
29007# the --recheck option to rerun configure.
4f14bcd8 29008#
e6cc62c6
VS
29009# `ac_cv_env_foo' variables (set or unset) will be overridden when
29010# loading this file, other *unset* `ac_cv_foo' will be assigned the
29011# following values.
29012
29013_ACEOF
29014
4f14bcd8
GD
29015# The following way of writing the cache mishandles newlines in values,
29016# but we know of no workaround that is simple, portable, and efficient.
29017# So, don't put newlines in cache variables' values.
29018# Ultrix sh set writes to stderr and can't be redirected directly,
29019# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29020{
29021 (set) 2>&1 |
29022 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29023 *ac_space=\ *)
29024 # `set' does not quote correctly, so add quotes (double-quote
29025 # substitution turns \\\\ into \\, and sed turns \\ into \).
29026 sed -n \
29027 "s/'/'\\\\''/g;
29028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29029 ;;
29030 *)
29031 # `set' quotes correctly as required by POSIX, so do not add quotes.
29032 sed -n \
29033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29034 ;;
29035 esac;
29036} |
29037 sed '
29038 t clear
29039 : clear
29040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29041 t end
29042 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29043 : end' >>confcache
29044if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29045 if test -w $cache_file; then
e6cc62c6
VS
29046 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29047 cat confcache >$cache_file
f6bcfd97 29048 else
4f14bcd8 29049 echo "not updating unwritable cache $cache_file"
f6bcfd97 29050 fi
4f14bcd8
GD
29051fi
29052rm -f confcache
f6bcfd97 29053
8284b0c5 29054
009fead0 29055CPP_MT_FLAG=
4f14bcd8
GD
29056if test "$TOOLKIT" != "MSW"; then
29057
e6cc62c6 29058
7274f1c7 29059 THREADS_LINK=
009fead0 29060 THREADS_CFLAGS=
7274f1c7
RL
29061
29062 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29063 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29064 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29065echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29066 wxUSE_THREADS="no"
29067 fi
4f14bcd8 29068 fi
4f14bcd8 29069
7274f1c7 29070 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29071
29072
009fead0
VZ
29073 THREAD_OPTS="-pthread"
29074 case "${host}" in
29075 *-*-solaris2* | *-*-sunos4* )
29076 if test "x$GCC" = "xyes"; then
126be6b4 29077 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29078 else
29079 THREAD_OPTS="-mt $THREAD_OPTS"
29080 fi
29081 ;;
29082 *-*-freebsd*)
29083 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29084 ;;
17234b26
MB
29085 *-*-darwin* | *-*-cygwin* )
29086 THREAD_OPTS=""
4101db81 29087 ;;
8f4a9a10 29088 *-*-aix*)
009fead0
VZ
29089 THREAD_OPTS="pthreads"
29090 ;;
4f5a7f74
VZ
29091 *-hp-hpux* )
29092 if test "x$GCC" != "xyes"; then
29093 THREAD_OPTS=""
29094 fi
89e3b3e4
VZ
29095 ;;
29096
29097 *-*-irix* )
29098 if test "x$GCC" = "xyes"; then
29099 THREAD_OPTS=""
29100 fi
29101 ;;
29102
29103 *-*-*UnixWare*)
29104 if test "x$GCC" != "xyes"; then
29105 THREAD_OPTS="-Ethread"
29106 fi
29107 ;;
009fead0 29108 esac
4f14bcd8 29109
02a1dfba 29110 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29111
009fead0
VZ
29112 THREADS_OK=no
29113 for flag in $THREAD_OPTS; do
29114 case $flag in
29115 none)
e6cc62c6
VS
29116 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29117echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29118 ;;
698dcdb6 29119
009fead0 29120 -*)
e6cc62c6
VS
29121 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29122echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29123 THREADS_CFLAGS="$flag"
29124 ;;
698dcdb6 29125
009fead0 29126 *)
e6cc62c6
VS
29127 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29128echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29129 THREADS_LINK="-l$flag"
29130 ;;
29131 esac
10f2d63a 29132
009fead0
VZ
29133 save_LIBS="$LIBS"
29134 save_CFLAGS="$CFLAGS"
29135 LIBS="$THREADS_LINK $LIBS"
04727afd 29136 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29137
e6cc62c6
VS
29138 cat >conftest.$ac_ext <<_ACEOF
29139#line $LINENO "configure"
29140/* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
009fead0 29145#include <pthread.h>
e6cc62c6
VS
29146int
29147main ()
29148{
009fead0 29149pthread_create(0,0,0,0);
e6cc62c6
VS
29150 ;
29151 return 0;
29152}
29153_ACEOF
29154rm -f conftest.$ac_objext conftest$ac_exeext
29155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29156 (eval $ac_link) 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } &&
29160 { ac_try='test -s conftest$ac_exeext'
29161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29162 (eval $ac_try) 2>&5
29163 ac_status=$?
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); }; }; then
009fead0 29166 THREADS_OK=yes
10f2d63a 29167else
e6cc62c6
VS
29168 echo "$as_me: failed program was:" >&5
29169sed 's/^/| /' conftest.$ac_ext >&5
29170
6232543b 29171fi
e6cc62c6 29172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29173
009fead0
VZ
29174 LIBS="$save_LIBS"
29175 CFLAGS="$save_CFLAGS"
d9b9876f 29176
e6cc62c6
VS
29177 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29178echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29179 if test "x$THREADS_OK" = "xyes"; then
29180 break;
29181 fi
d9b9876f 29182
009fead0
VZ
29183 THREADS_LINK=""
29184 THREADS_CFLAGS=""
29185 done
4f14bcd8 29186
009fead0
VZ
29187 if test "x$THREADS_OK" != "xyes"; then
29188 wxUSE_THREADS=no
e6cc62c6
VS
29189 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29190echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29191 else
db82f09e
VZ
29192 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29193 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29194
e6cc62c6
VS
29195 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29196echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29197 flag=no
29198 case "${host}" in
2b5f62a0
VZ
29199 *-aix*)
29200 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29201 flag="-D_THREAD_SAFE"
29202 ;;
29203 *-freebsd*)
009fead0
VZ
29204 flag="-D_THREAD_SAFE"
29205 ;;
06313569
GD
29206 *-hp-hpux* )
29207 flag="-D_REENTRANT"
4f5a7f74
VZ
29208 if test "x$GCC" != "xyes"; then
29209 flag="$flag -D_RWSTD_MULTI_THREAD"
29210 fi
06313569 29211 ;;
009fead0
VZ
29212 *solaris* | alpha*-osf*)
29213 flag="-D_REENTRANT"
29214 ;;
29215 esac
e6cc62c6
VS
29216 echo "$as_me:$LINENO: result: ${flag}" >&5
29217echo "${ECHO_T}${flag}" >&6
009fead0 29218 if test "x$flag" != xno; then
04727afd 29219 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29220 fi
29221
009fead0 29222 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29223 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29224 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29225 fi
29226 fi
4f14bcd8 29227 fi
4f14bcd8 29228
7274f1c7 29229 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29230
29231for ac_func in thr_setconcurrency
4f14bcd8 29232do
e6cc62c6
VS
29233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29234echo "$as_me:$LINENO: checking for $ac_func" >&5
29235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29236if eval "test \"\${$as_ac_var+set}\" = set"; then
29237 echo $ECHO_N "(cached) $ECHO_C" >&6
29238else
29239 cat >conftest.$ac_ext <<_ACEOF
29240#line $LINENO "configure"
29241/* confdefs.h. */
29242_ACEOF
29243cat confdefs.h >>conftest.$ac_ext
29244cat >>conftest.$ac_ext <<_ACEOF
29245/* end confdefs.h. */
4f14bcd8 29246/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29247 which can conflict with char $ac_func (); below.
29248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29249 <limits.h> exists even on freestanding compilers. */
29250#ifdef __STDC__
29251# include <limits.h>
29252#else
29253# include <assert.h>
29254#endif
4f14bcd8 29255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29256#ifdef __cplusplus
29257extern "C"
29258{
29259#endif
4f14bcd8 29260/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29261 builtin and then its argument prototype would still apply. */
29262char $ac_func ();
4f14bcd8
GD
29263/* The GNU C library defines this for functions which it implements
29264 to always fail with ENOSYS. Some functions are actually named
29265 something starting with __ and the normal name is an alias. */
29266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29267choke me
29268#else
e6cc62c6
VS
29269char (*f) () = $ac_func;
29270#endif
29271#ifdef __cplusplus
29272}
4f14bcd8
GD
29273#endif
29274
e6cc62c6
VS
29275int
29276main ()
29277{
29278return f != $ac_func;
29279 ;
29280 return 0;
29281}
29282_ACEOF
29283rm -f conftest.$ac_objext conftest$ac_exeext
29284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29285 (eval $ac_link) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } &&
29289 { ac_try='test -s conftest$ac_exeext'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29295 eval "$as_ac_var=yes"
29296else
29297 echo "$as_me: failed program was:" >&5
29298sed 's/^/| /' conftest.$ac_ext >&5
29299
29300eval "$as_ac_var=no"
29301fi
29302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29303fi
29304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29306if test `eval echo '${'$as_ac_var'}'` = yes; then
29307 cat >>confdefs.h <<_ACEOF
29308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29309_ACEOF
698dcdb6 29310
10f2d63a 29311fi
4f14bcd8 29312done
10f2d63a 29313
8284b0c5 29314
e6cc62c6
VS
29315
29316for ac_header in sched.h
4f14bcd8 29317do
e6cc62c6
VS
29318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29319if eval "test \"\${$as_ac_Header+set}\" = set"; then
29320 echo "$as_me:$LINENO: checking for $ac_header" >&5
29321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29322if eval "test \"\${$as_ac_Header+set}\" = set"; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324fi
29325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327else
29328 # Is the header compilable?
29329echo "$as_me:$LINENO: checking $ac_header usability" >&5
29330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29331cat >conftest.$ac_ext <<_ACEOF
29332#line $LINENO "configure"
29333/* confdefs.h. */
29334_ACEOF
29335cat confdefs.h >>conftest.$ac_ext
29336cat >>conftest.$ac_ext <<_ACEOF
29337/* end confdefs.h. */
29338$ac_includes_default
29339#include <$ac_header>
29340_ACEOF
29341rm -f conftest.$ac_objext
29342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29343 (eval $ac_compile) 2>&5
29344 ac_status=$?
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); } &&
29347 { ac_try='test -s conftest.$ac_objext'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29350 ac_status=$?
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29353 ac_header_compiler=yes
29354else
29355 echo "$as_me: failed program was:" >&5
29356sed 's/^/| /' conftest.$ac_ext >&5
29357
29358ac_header_compiler=no
29359fi
29360rm -f conftest.$ac_objext conftest.$ac_ext
29361echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29362echo "${ECHO_T}$ac_header_compiler" >&6
29363
29364# Is the header present?
29365echo "$as_me:$LINENO: checking $ac_header presence" >&5
29366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29367cat >conftest.$ac_ext <<_ACEOF
29368#line $LINENO "configure"
29369/* confdefs.h. */
29370_ACEOF
29371cat confdefs.h >>conftest.$ac_ext
29372cat >>conftest.$ac_ext <<_ACEOF
29373/* end confdefs.h. */
29374#include <$ac_header>
29375_ACEOF
29376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29378 ac_status=$?
29379 grep -v '^ *+' conftest.er1 >conftest.err
29380 rm -f conftest.er1
29381 cat conftest.err >&5
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } >/dev/null; then
29384 if test -s conftest.err; then
29385 ac_cpp_err=$ac_c_preproc_warn_flag
29386 else
29387 ac_cpp_err=
29388 fi
29389else
29390 ac_cpp_err=yes
29391fi
29392if test -z "$ac_cpp_err"; then
29393 ac_header_preproc=yes
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398 ac_header_preproc=no
29399fi
29400rm -f conftest.err conftest.$ac_ext
29401echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29402echo "${ECHO_T}$ac_header_preproc" >&6
29403
29404# So? What about this header?
29405case $ac_header_compiler:$ac_header_preproc in
29406 yes:no )
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29408echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29411 (
29412 cat <<\_ASBOX
29413## ------------------------------------ ##
29414## Report this to bug-autoconf@gnu.org. ##
29415## ------------------------------------ ##
29416_ASBOX
29417 ) |
29418 sed "s/^/$as_me: WARNING: /" >&2
29419 ;;
29420 no:yes )
29421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29427 (
29428 cat <<\_ASBOX
29429## ------------------------------------ ##
29430## Report this to bug-autoconf@gnu.org. ##
29431## ------------------------------------ ##
29432_ASBOX
29433 ) |
29434 sed "s/^/$as_me: WARNING: /" >&2
29435 ;;
29436esac
29437echo "$as_me:$LINENO: checking for $ac_header" >&5
29438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29439if eval "test \"\${$as_ac_Header+set}\" = set"; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
29442 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29443fi
e6cc62c6
VS
29444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29446
10f2d63a 29447fi
e6cc62c6
VS
29448if test `eval echo '${'$as_ac_Header'}'` = yes; then
29449 cat >>confdefs.h <<_ACEOF
29450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29451_ACEOF
29452
f6bcfd97 29453fi
e6cc62c6 29454
4f14bcd8 29455done
f6bcfd97 29456
009fead0 29457 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29458 echo "$as_me:$LINENO: checking for sched_yield" >&5
29459echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29460if test "${ac_cv_func_sched_yield+set}" = set; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29462else
29463 cat >conftest.$ac_ext <<_ACEOF
29464#line $LINENO "configure"
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
009fead0 29470/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29471 which can conflict with char sched_yield (); below.
29472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29473 <limits.h> exists even on freestanding compilers. */
29474#ifdef __STDC__
29475# include <limits.h>
29476#else
29477# include <assert.h>
29478#endif
4f14bcd8 29479/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29480#ifdef __cplusplus
29481extern "C"
29482{
29483#endif
4f14bcd8 29484/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29485 builtin and then its argument prototype would still apply. */
29486char sched_yield ();
009fead0
VZ
29487/* The GNU C library defines this for functions which it implements
29488 to always fail with ENOSYS. Some functions are actually named
29489 something starting with __ and the normal name is an alias. */
29490#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29491choke me
29492#else
e6cc62c6
VS
29493char (*f) () = sched_yield;
29494#endif
29495#ifdef __cplusplus
29496}
009fead0
VZ
29497#endif
29498
e6cc62c6
VS
29499int
29500main ()
29501{
29502return f != sched_yield;
29503 ;
29504 return 0;
29505}
29506_ACEOF
29507rm -f conftest.$ac_objext conftest$ac_exeext
29508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29509 (eval $ac_link) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } &&
29513 { ac_try='test -s conftest$ac_exeext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29516 ac_status=$?
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_cv_func_sched_yield=yes
29520else
29521 echo "$as_me: failed program was:" >&5
29522sed 's/^/| /' conftest.$ac_ext >&5
29523
29524ac_cv_func_sched_yield=no
29525fi
29526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29527fi
29528echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29529echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29530if test $ac_cv_func_sched_yield = yes; then
29531 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29532#define HAVE_SCHED_YIELD 1
e6cc62c6 29533_ACEOF
10f2d63a 29534
4f14bcd8 29535else
009fead0 29536
e6cc62c6
VS
29537 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29538echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29539if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29540 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29541else
e6cc62c6 29542 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29543LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29544cat >conftest.$ac_ext <<_ACEOF
29545#line $LINENO "configure"
29546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
29551
4f14bcd8 29552/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29553#ifdef __cplusplus
29554extern "C"
29555#endif
4f14bcd8 29556/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29557 builtin and then its argument prototype would still apply. */
29558char sched_yield ();
29559int
29560main ()
29561{
29562sched_yield ();
29563 ;
29564 return 0;
29565}
29566_ACEOF
29567rm -f conftest.$ac_objext conftest$ac_exeext
29568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29569 (eval $ac_link) 2>&5
29570 ac_status=$?
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } &&
29573 { ac_try='test -s conftest$ac_exeext'
29574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575 (eval $ac_try) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; }; then
29579 ac_cv_lib_posix4_sched_yield=yes
29580else
29581 echo "$as_me: failed program was:" >&5
29582sed 's/^/| /' conftest.$ac_ext >&5
29583
29584ac_cv_lib_posix4_sched_yield=no
29585fi
29586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29587LIBS=$ac_check_lib_save_LIBS
29588fi
29589echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29590echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29591if test $ac_cv_lib_posix4_sched_yield = yes; then
29592 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29593#define HAVE_SCHED_YIELD 1
e6cc62c6 29594_ACEOF
3d63bc3a 29595 POSIX4_LINK=" -lposix4"
4f14bcd8 29596else
e6cc62c6
VS
29597 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29598echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29599
54276ccf
VZ
29600fi
29601
e6cc62c6
VS
29602
29603
4f14bcd8 29604fi
698dcdb6 29605
009fead0 29606 fi
10f2d63a 29607
7274f1c7 29608 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29609 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29610echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29611if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613else
29614 cat >conftest.$ac_ext <<_ACEOF
29615#line $LINENO "configure"
29616/* confdefs.h. */
29617_ACEOF
29618cat confdefs.h >>conftest.$ac_ext
29619cat >>conftest.$ac_ext <<_ACEOF
29620/* end confdefs.h. */
009fead0 29621/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29622 which can conflict with char pthread_attr_getschedpolicy (); below.
29623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29624 <limits.h> exists even on freestanding compilers. */
29625#ifdef __STDC__
29626# include <limits.h>
29627#else
29628# include <assert.h>
29629#endif
4f14bcd8 29630/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29631#ifdef __cplusplus
29632extern "C"
29633{
29634#endif
4f14bcd8 29635/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29636 builtin and then its argument prototype would still apply. */
29637char pthread_attr_getschedpolicy ();
009fead0
VZ
29638/* The GNU C library defines this for functions which it implements
29639 to always fail with ENOSYS. Some functions are actually named
29640 something starting with __ and the normal name is an alias. */
29641#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29642choke me
29643#else
e6cc62c6
VS
29644char (*f) () = pthread_attr_getschedpolicy;
29645#endif
29646#ifdef __cplusplus
29647}
009fead0
VZ
29648#endif
29649
e6cc62c6
VS
29650int
29651main ()
29652{
29653return f != pthread_attr_getschedpolicy;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext conftest$ac_exeext
29659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29660 (eval $ac_link) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } &&
29664 { ac_try='test -s conftest$ac_exeext'
29665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666 (eval $ac_try) 2>&5
29667 ac_status=$?
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; }; then
29670 ac_cv_func_pthread_attr_getschedpolicy=yes
29671else
29672 echo "$as_me: failed program was:" >&5
29673sed 's/^/| /' conftest.$ac_ext >&5
29674
29675ac_cv_func_pthread_attr_getschedpolicy=no
29676fi
29677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29678fi
29679echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29680echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29681if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29682 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29683echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29684if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29686else
29687 cat >conftest.$ac_ext <<_ACEOF
29688#line $LINENO "configure"
29689/* confdefs.h. */
29690_ACEOF
29691cat confdefs.h >>conftest.$ac_ext
29692cat >>conftest.$ac_ext <<_ACEOF
29693/* end confdefs.h. */
a0b9e27f 29694/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29695 which can conflict with char pthread_attr_setschedparam (); below.
29696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29697 <limits.h> exists even on freestanding compilers. */
29698#ifdef __STDC__
29699# include <limits.h>
29700#else
29701# include <assert.h>
29702#endif
422107f9 29703/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29704#ifdef __cplusplus
29705extern "C"
29706{
29707#endif
422107f9 29708/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29709 builtin and then its argument prototype would still apply. */
29710char pthread_attr_setschedparam ();
009fead0
VZ
29711/* The GNU C library defines this for functions which it implements
29712 to always fail with ENOSYS. Some functions are actually named
29713 something starting with __ and the normal name is an alias. */
29714#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29715choke me
29716#else
e6cc62c6
VS
29717char (*f) () = pthread_attr_setschedparam;
29718#endif
29719#ifdef __cplusplus
29720}
009fead0
VZ
29721#endif
29722
e6cc62c6
VS
29723int
29724main ()
29725{
29726return f != pthread_attr_setschedparam;
29727 ;
29728 return 0;
29729}
29730_ACEOF
29731rm -f conftest.$ac_objext conftest$ac_exeext
29732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29733 (eval $ac_link) 2>&5
29734 ac_status=$?
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); } &&
29737 { ac_try='test -s conftest$ac_exeext'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29740 ac_status=$?
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29743 ac_cv_func_pthread_attr_setschedparam=yes
29744else
29745 echo "$as_me: failed program was:" >&5
29746sed 's/^/| /' conftest.$ac_ext >&5
29747
29748ac_cv_func_pthread_attr_setschedparam=no
29749fi
29750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29751fi
29752echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29753echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29754if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29755 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29756echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29757if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29759else
29760 cat >conftest.$ac_ext <<_ACEOF
29761#line $LINENO "configure"
29762/* confdefs.h. */
29763_ACEOF
29764cat confdefs.h >>conftest.$ac_ext
29765cat >>conftest.$ac_ext <<_ACEOF
29766/* end confdefs.h. */
ef33c576 29767/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29768 which can conflict with char sched_get_priority_max (); below.
29769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29770 <limits.h> exists even on freestanding compilers. */
29771#ifdef __STDC__
29772# include <limits.h>
29773#else
29774# include <assert.h>
29775#endif
4f14bcd8 29776/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29777#ifdef __cplusplus
29778extern "C"
29779{
29780#endif
4f14bcd8 29781/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29782 builtin and then its argument prototype would still apply. */
29783char sched_get_priority_max ();
009fead0
VZ
29784/* The GNU C library defines this for functions which it implements
29785 to always fail with ENOSYS. Some functions are actually named
29786 something starting with __ and the normal name is an alias. */
29787#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29788choke me
29789#else
e6cc62c6
VS
29790char (*f) () = sched_get_priority_max;
29791#endif
29792#ifdef __cplusplus
29793}
009fead0
VZ
29794#endif
29795
e6cc62c6
VS
29796int
29797main ()
29798{
29799return f != sched_get_priority_max;
29800 ;
29801 return 0;
29802}
29803_ACEOF
29804rm -f conftest.$ac_objext conftest$ac_exeext
29805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29806 (eval $ac_link) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
29810 { ac_try='test -s conftest$ac_exeext'
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 ac_cv_func_sched_get_priority_max=yes
29817else
29818 echo "$as_me: failed program was:" >&5
29819sed 's/^/| /' conftest.$ac_ext >&5
29820
29821ac_cv_func_sched_get_priority_max=no
29822fi
29823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29824fi
29825echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29826echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29827if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29828 HAVE_PRIOR_FUNCS=1
29829else
e6cc62c6
VS
29830 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29831echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29832if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29834else
e6cc62c6 29835 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29836LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29837cat >conftest.$ac_ext <<_ACEOF
29838#line $LINENO "configure"
29839/* confdefs.h. */
29840_ACEOF
29841cat confdefs.h >>conftest.$ac_ext
29842cat >>conftest.$ac_ext <<_ACEOF
29843/* end confdefs.h. */
29844
422107f9 29845/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29846#ifdef __cplusplus
29847extern "C"
29848#endif
422107f9 29849/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29850 builtin and then its argument prototype would still apply. */
29851char sched_get_priority_max ();
29852int
29853main ()
29854{
29855sched_get_priority_max ();
29856 ;
29857 return 0;
29858}
29859_ACEOF
29860rm -f conftest.$ac_objext conftest$ac_exeext
29861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29862 (eval $ac_link) 2>&5
29863 ac_status=$?
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
29866 { ac_try='test -s conftest$ac_exeext'
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; }; then
29872 ac_cv_lib_posix4_sched_get_priority_max=yes
29873else
29874 echo "$as_me: failed program was:" >&5
29875sed 's/^/| /' conftest.$ac_ext >&5
29876
29877ac_cv_lib_posix4_sched_get_priority_max=no
29878fi
29879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29880LIBS=$ac_check_lib_save_LIBS
29881fi
29882echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29883echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29884if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29885
7274f1c7
RL
29886 HAVE_PRIOR_FUNCS=1
29887 POSIX4_LINK=" -lposix4"
e6cc62c6 29888
4f14bcd8 29889fi
463abc64 29890
e6cc62c6 29891
328a083c 29892fi
463abc64 29893
e6cc62c6 29894
7b4a847f 29895fi
579d8138 29896
e6cc62c6 29897
5c6fa7d2 29898fi
52127426 29899
8284b0c5 29900
7274f1c7 29901 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29902 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29903#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29904_ACEOF
463abc64 29905
7274f1c7 29906 else
e6cc62c6
VS
29907 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29908echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29909 fi
463abc64 29910
e6cc62c6
VS
29911 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29912echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29913if test "${ac_cv_func_pthread_cancel+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29915else
29916 cat >conftest.$ac_ext <<_ACEOF
29917#line $LINENO "configure"
29918/* confdefs.h. */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h. */
009fead0 29923/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29924 which can conflict with char pthread_cancel (); below.
29925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29926 <limits.h> exists even on freestanding compilers. */
29927#ifdef __STDC__
29928# include <limits.h>
29929#else
29930# include <assert.h>
29931#endif
422107f9 29932/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29933#ifdef __cplusplus
29934extern "C"
29935{
29936#endif
422107f9 29937/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29938 builtin and then its argument prototype would still apply. */
29939char pthread_cancel ();
009fead0
VZ
29940/* The GNU C library defines this for functions which it implements
29941 to always fail with ENOSYS. Some functions are actually named
29942 something starting with __ and the normal name is an alias. */
29943#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29944choke me
29945#else
e6cc62c6
VS
29946char (*f) () = pthread_cancel;
29947#endif
29948#ifdef __cplusplus
29949}
009fead0
VZ
29950#endif
29951
e6cc62c6
VS
29952int
29953main ()
29954{
29955return f != pthread_cancel;
29956 ;
29957 return 0;
29958}
29959_ACEOF
29960rm -f conftest.$ac_objext conftest$ac_exeext
29961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29962 (eval $ac_link) 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
29966 { ac_try='test -s conftest$ac_exeext'
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; }; then
29972 ac_cv_func_pthread_cancel=yes
29973else
29974 echo "$as_me: failed program was:" >&5
29975sed 's/^/| /' conftest.$ac_ext >&5
29976
29977ac_cv_func_pthread_cancel=no
29978fi
29979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29980fi
29981echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29982echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29983if test $ac_cv_func_pthread_cancel = yes; then
29984 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29985#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29986_ACEOF
4f14bcd8 29987
698dcdb6 29988else
e6cc62c6
VS
29989 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29990echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29991fi
29992
5c6fa7d2 29993
e6cc62c6
VS
29994 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29995echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29996if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29998else
e6cc62c6
VS
29999
30000 cat >conftest.$ac_ext <<_ACEOF
30001#line $LINENO "configure"
30002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
4f14bcd8 30007#include <pthread.h>
e6cc62c6
VS
30008int
30009main ()
30010{
4f14bcd8 30011
7274f1c7
RL
30012 pthread_cleanup_push(NULL, NULL);
30013 pthread_cleanup_pop(0);
e6cc62c6
VS
30014
30015 ;
30016 return 0;
30017}
30018_ACEOF
30019rm -f conftest.$ac_objext
30020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30021 (eval $ac_compile) 2>&5
30022 ac_status=$?
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); } &&
30025 { ac_try='test -s conftest.$ac_objext'
30026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027 (eval $ac_try) 2>&5
30028 ac_status=$?
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); }; }; then
30031
7274f1c7 30032 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 30033
4f14bcd8 30034else
e6cc62c6
VS
30035 echo "$as_me: failed program was:" >&5
30036sed 's/^/| /' conftest.$ac_ext >&5
30037
30038
7274f1c7 30039 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 30040
247f5006 30041fi
e6cc62c6 30042rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30043
e6cc62c6
VS
30044fi
30045echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
30046echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 30047
7274f1c7 30048 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 30049 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30050#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 30051_ACEOF
c7a2bf27 30052
7274f1c7 30053 fi
4f14bcd8 30054
e6cc62c6
VS
30055
30056 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30057echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30058if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30060else
e6cc62c6
VS
30061
30062 cat >conftest.$ac_ext <<_ACEOF
30063#line $LINENO "configure"
30064/* confdefs.h. */
30065_ACEOF
30066cat confdefs.h >>conftest.$ac_ext
30067cat >>conftest.$ac_ext <<_ACEOF
30068/* end confdefs.h. */
4f14bcd8 30069#include <pthread.h>
e6cc62c6
VS
30070int
30071main ()
30072{
4f14bcd8 30073
7274f1c7
RL
30074 pthread_mutexattr_t attr;
30075 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30076
30077 ;
30078 return 0;
30079}
30080_ACEOF
30081rm -f conftest.$ac_objext
30082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30083 (eval $ac_compile) 2>&5
30084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
30087 { ac_try='test -s conftest.$ac_objext'
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; }; then
30093
7274f1c7 30094 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30095
3fed1840 30096else
e6cc62c6
VS
30097 echo "$as_me: failed program was:" >&5
30098sed 's/^/| /' conftest.$ac_ext >&5
30099
30100
7274f1c7 30101 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30102
30103
247f5006 30104fi
e6cc62c6 30105rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30106
e6cc62c6
VS
30107fi
30108echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30109echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30110
7274f1c7 30111 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30112 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30113#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30114_ACEOF
4f14bcd8 30115
7274f1c7 30116 else
e6cc62c6
VS
30117 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30118echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30119if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30120 echo $ECHO_N "(cached) $ECHO_C" >&6
30121else
30122
30123 cat >conftest.$ac_ext <<_ACEOF
30124#line $LINENO "configure"
30125/* confdefs.h. */
30126_ACEOF
30127cat confdefs.h >>conftest.$ac_ext
30128cat >>conftest.$ac_ext <<_ACEOF
30129/* end confdefs.h. */
4f14bcd8 30130#include <pthread.h>
e6cc62c6
VS
30131int
30132main ()
30133{
4f14bcd8 30134
7274f1c7 30135 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30136
30137 ;
30138 return 0;
30139}
30140_ACEOF
30141rm -f conftest.$ac_objext
30142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30143 (eval $ac_compile) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
30147 { ac_try='test -s conftest.$ac_objext'
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
30153
7274f1c7 30154 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30155
698dcdb6 30156else
e6cc62c6
VS
30157 echo "$as_me: failed program was:" >&5
30158sed 's/^/| /' conftest.$ac_ext >&5
30159
30160
7274f1c7 30161 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30162
30163
247f5006 30164fi
e6cc62c6 30165rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30166
e6cc62c6
VS
30167fi
30168echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30169echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30170 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30171 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30172#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30173_ACEOF
3fed1840 30174
7274f1c7 30175 else
e6cc62c6
VS
30176 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30177echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30178 fi
30179 fi
7274f1c7 30180 fi
3fed1840 30181
a0b9e27f
MB
30182else
30183 if test "$wxUSE_THREADS" = "yes" ; then
30184 case "${host}" in
30185 *-*-mingw32* )
e6cc62c6
VS
30186 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30187echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30188if test "${wx_cv_cflags_mthread+set}" = set; then
30189 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30190else
e6cc62c6 30191
ca8e52b3
VZ
30192 CFLAGS_OLD="$CFLAGS"
30193 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30194 cat >conftest.$ac_ext <<_ACEOF
30195#line $LINENO "configure"
30196/* confdefs.h. */
30197_ACEOF
30198cat confdefs.h >>conftest.$ac_ext
30199cat >>conftest.$ac_ext <<_ACEOF
30200/* end confdefs.h. */
30201
30202int
30203main ()
30204{
ca8e52b3 30205
e6cc62c6
VS
30206 ;
30207 return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext
30211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30212 (eval $ac_compile) 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try='test -s conftest.$ac_objext'
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
ca8e52b3
VZ
30222 wx_cv_cflags_mthread=yes
30223else
e6cc62c6
VS
30224 echo "$as_me: failed program was:" >&5
30225sed 's/^/| /' conftest.$ac_ext >&5
30226
30227wx_cv_cflags_mthread=no
30228
ca8e52b3 30229fi
e6cc62c6
VS
30230rm -f conftest.$ac_objext conftest.$ac_ext
30231
ca8e52b3 30232
e6cc62c6
VS
30233fi
30234echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30235echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30236
30237 if test "$wx_cv_cflags_mthread" = "yes"; then
30238 CXXFLAGS="$CXXFLAGS -mthreads"
30239 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30240 LDFLAGS="$LDFLAGS -mthreads"
30241 else
30242 CFLAGS="$CFLAGS_OLD"
30243 fi
a0b9e27f
MB
30244 ;;
30245 esac
30246 fi
4f14bcd8
GD
30247fi
30248
30249if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30250 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30251#define wxUSE_THREADS 1
e6cc62c6 30252_ACEOF
7b6058cd 30253
8284b0c5 30254
4f14bcd8 30255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30256else
4f14bcd8 30257 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30258 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30259echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30260 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30261 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30262 echo "$as_me:$LINENO: result: yes" >&5
30263echo "${ECHO_T}yes" >&6
4f14bcd8 30264 else
e6cc62c6
VS
30265 echo "$as_me:$LINENO: result: no" >&5
30266echo "${ECHO_T}no" >&6
4f14bcd8
GD
30267 fi
30268 fi
30269fi
30270
30271if test "$WXGTK20" = 1 ; then
e6cc62c6 30272 cat >>confdefs.h <<_ACEOF
4f14bcd8 30273#define __WXGTK20__ $WXGTK20
e6cc62c6 30274_ACEOF
4f14bcd8
GD
30275
30276 WXGTK12=1
10f2d63a 30277fi
4f14bcd8
GD
30278
30279if test "$WXGTK12" = 1 ; then
e6cc62c6 30280 cat >>confdefs.h <<_ACEOF
4f14bcd8 30281#define __WXGTK12__ $WXGTK12
e6cc62c6 30282_ACEOF
4f14bcd8 30283
10f2d63a 30284fi
698dcdb6 30285
4f14bcd8 30286if test "$WXGTK127" = 1 ; then
e6cc62c6 30287 cat >>confdefs.h <<_ACEOF
4f14bcd8 30288#define __WXGTK127__ $WXGTK127
e6cc62c6 30289_ACEOF
4f14bcd8 30290
698dcdb6 30291fi
10f2d63a 30292
4f14bcd8
GD
30293WXDEBUG=
30294
30295if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30296 WXDEBUG="-g"
30297 wxUSE_OPTIMISE=no
698dcdb6 30298fi
4f14bcd8
GD
30299
30300if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30301 wxUSE_DEBUG_INFO=yes
30302 WXDEBUG="-ggdb"
10f2d63a
VZ
30303fi
30304
4f14bcd8 30305if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30306 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30307#define WXDEBUG 1
e6cc62c6 30308_ACEOF
4f14bcd8
GD
30309
30310 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30311else
4f14bcd8
GD
30312 if test "$wxUSE_GTK" = 1 ; then
30313 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30314 fi
30315fi
30316
30317if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30318 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30319#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30320_ACEOF
4f14bcd8 30321
e6cc62c6 30322 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30323#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30324_ACEOF
4f14bcd8 30325
e6cc62c6 30326 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30327#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30328_ACEOF
4f14bcd8
GD
30329
30330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30331fi
30332
30333if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30334 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30335fi
30336
30337PROFILE=
30338if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30339 PROFILE=" -pg"
10f2d63a
VZ
30340fi
30341
009fead0
VZ
30342CODE_GEN_FLAGS=
30343CODE_GEN_FLAGS_CXX=
88e30f2b 30344if test "$GCC" = "yes" ; then
4f14bcd8
GD
30345 if test "$wxUSE_NO_RTTI" = "yes" ; then
30346 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30347 fi
4f14bcd8
GD
30348 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30349 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30350 fi
30351 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30352 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30353 fi
1d1b75ac 30354
2b5f62a0 30355 case "${host}" in
1d1b75ac
VZ
30356 powerpc*-*-aix* )
30357 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30358 ;;
2b5f62a0
VZ
30359 *-hppa* )
30360 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30361 ;;
1d1b75ac 30362 esac
4f14bcd8
GD
30363fi
30364
af7b5345 30365OPTIMISE=
4f14bcd8 30366if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30367 if test "$GCC" = yes ; then
30368 OPTIMISE="-O0"
30369 fi
4f14bcd8
GD
30370else
30371 if test "$GCC" = yes ; then
30372 OPTIMISE="-O2"
af7b5345
VZ
30373
30374 case "${host}" in
4f14bcd8
GD
30375 i586-*-*|i686-*-* )
30376 OPTIMISE="${OPTIMISE} "
30377 ;;
30378 esac
30379 else
30380 OPTIMISE="-O"
30381 fi
30382fi
30383
8d90d2f2 30384
4f14bcd8 30385if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 30386 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30387#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 30388_ACEOF
4f14bcd8 30389
8284b0c5 30390
4f14bcd8
GD
30391 WXWIN_COMPATIBILITY_2_2="yes"
30392fi
30393
65d8ef1e 30394if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30395 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30396#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30397_ACEOF
4f14bcd8 30398
8d90d2f2
VZ
30399
30400 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30401fi
30402
65d8ef1e 30403if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30404 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30405#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30406_ACEOF
65d8ef1e
VS
30407
30408fi
30409
8284b0c5 30410
10f2d63a 30411if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30412 cat >>confdefs.h <<\_ACEOF
10f2d63a 30413#define wxUSE_GUI 1
e6cc62c6 30414_ACEOF
10f2d63a 30415
8284b0c5 30416
10f2d63a 30417 else
e6cc62c6 30418 cat >>confdefs.h <<\_ACEOF
10f2d63a 30419#define wxUSE_NOGUI 1
e6cc62c6 30420_ACEOF
10f2d63a
VZ
30421
30422fi
30423
8284b0c5 30424
10f2d63a 30425if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30426 cat >>confdefs.h <<\_ACEOF
10f2d63a 30427#define wxUSE_UNIX 1
e6cc62c6 30428_ACEOF
10f2d63a
VZ
30429
30430fi
30431
8284b0c5 30432
df5168c4
MB
30433if test "$wxUSE_STL" = "yes"; then
30434 cat >>confdefs.h <<\_ACEOF
30435#define wxUSE_STL 1
30436_ACEOF
30437
30438fi
30439
10f2d63a 30440if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30441 cat >>confdefs.h <<\_ACEOF
10f2d63a 30442#define wxUSE_APPLE_IEEE 1
e6cc62c6 30443_ACEOF
10f2d63a
VZ
30444
30445fi
30446
1e6feb95 30447if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30448 cat >>confdefs.h <<\_ACEOF
1e6feb95 30449#define wxUSE_TIMER 1
e6cc62c6 30450_ACEOF
1e6feb95
VZ
30451
30452fi
30453
10f2d63a 30454if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30455 cat >>confdefs.h <<\_ACEOF
10f2d63a 30456#define wxUSE_WAVE 1
e6cc62c6 30457_ACEOF
10f2d63a
VZ
30458
30459fi
30460
1e6feb95 30461if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30462 cat >>confdefs.h <<\_ACEOF
1e6feb95 30463#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30464_ACEOF
1e6feb95
VZ
30465
30466fi
30467
30468if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30469 cat >>confdefs.h <<\_ACEOF
1e6feb95 30470#define wxUSE_STOPWATCH 1
e6cc62c6 30471_ACEOF
1e6feb95
VZ
30472
30473fi
30474
30475if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30476 cat >>confdefs.h <<\_ACEOF
1e6feb95 30477#define wxUSE_DATETIME 1
e6cc62c6 30478_ACEOF
1e6feb95
VZ
30479
30480fi
30481
10f2d63a 30482if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30483 cat >>confdefs.h <<\_ACEOF
10f2d63a 30484#define wxUSE_FILE 1
e6cc62c6 30485_ACEOF
10f2d63a
VZ
30486
30487fi
30488
1e6feb95 30489if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30490 cat >>confdefs.h <<\_ACEOF
1e6feb95 30491#define wxUSE_FFILE 1
e6cc62c6 30492_ACEOF
1e6feb95
VZ
30493
30494fi
30495
24528b0c 30496if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30497 cat >>confdefs.h <<\_ACEOF
24528b0c 30498#define wxUSE_FILESYSTEM 1
e6cc62c6 30499_ACEOF
24528b0c
VS
30500
30501fi
30502
10f2d63a 30503if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30504 cat >>confdefs.h <<\_ACEOF
10f2d63a 30505#define wxUSE_FS_ZIP 1
e6cc62c6 30506_ACEOF
10f2d63a
VZ
30507
30508fi
30509
30510if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30511 cat >>confdefs.h <<\_ACEOF
10f2d63a 30512#define wxUSE_ZIPSTREAM 1
e6cc62c6 30513_ACEOF
10f2d63a
VZ
30514
30515fi
30516
eb4efbdc 30517if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30518 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30519#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30520_ACEOF
eb4efbdc
VZ
30521
30522fi
30523
4f3c5f06 30524if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30525 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30526#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30527_ACEOF
4f3c5f06
VZ
30528
30529fi
30530
10f2d63a 30531if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30532 cat >>confdefs.h <<\_ACEOF
10f2d63a 30533#define wxUSE_BUSYINFO 1
e6cc62c6 30534_ACEOF
10f2d63a
VZ
30535
30536fi
30537
30538if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30539 cat >>confdefs.h <<\_ACEOF
10f2d63a 30540#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30541_ACEOF
10f2d63a
VZ
30542
30543fi
30544
a3a584a7 30545if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30546 cat >>confdefs.h <<\_ACEOF
a3a584a7 30547#define wxUSE_TEXTBUFFER 1
e6cc62c6 30548_ACEOF
a3a584a7
VZ
30549
30550fi
30551
10f2d63a 30552if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30553 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30554 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30555echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30556 else
e6cc62c6 30557 cat >>confdefs.h <<\_ACEOF
10f2d63a 30558#define wxUSE_TEXTFILE 1
e6cc62c6 30559_ACEOF
10f2d63a
VZ
30560
30561 fi
30562fi
30563
30564if test "$wxUSE_CONFIG" = "yes" ; then
30565 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30566 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30567echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30568 else
e6cc62c6 30569 cat >>confdefs.h <<\_ACEOF
10f2d63a 30570#define wxUSE_CONFIG 1
e6cc62c6 30571_ACEOF
10f2d63a
VZ
30572
30573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30574 fi
30575fi
30576
30577if test "$wxUSE_INTL" = "yes" ; then
30578 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30579 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30580echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30581 else
e6cc62c6 30582 cat >>confdefs.h <<\_ACEOF
10f2d63a 30583#define wxUSE_INTL 1
e6cc62c6 30584_ACEOF
10f2d63a
VZ
30585
30586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30587 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30588 fi
30589fi
30590
30591if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30592 cat >>confdefs.h <<\_ACEOF
10f2d63a 30593#define wxUSE_LOG 1
e6cc62c6 30594_ACEOF
10f2d63a 30595
8284b0c5 30596
d73be714 30597 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30598 cat >>confdefs.h <<\_ACEOF
d73be714 30599#define wxUSE_LOGGUI 1
e6cc62c6 30600_ACEOF
d73be714
VZ
30601
30602 fi
30603
30604 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30605 cat >>confdefs.h <<\_ACEOF
d73be714 30606#define wxUSE_LOGWINDOW 1
e6cc62c6 30607_ACEOF
69d27ff7
MB
30608
30609 fi
30610
30611 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30612 cat >>confdefs.h <<\_ACEOF
69d27ff7 30613#define wxUSE_LOG_DIALOG 1
e6cc62c6 30614_ACEOF
d73be714
VZ
30615
30616 fi
10f2d63a
VZ
30617fi
30618
30619if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30620 cat >>confdefs.h <<\_ACEOF
10f2d63a 30621#define wxUSE_LONGLONG 1
e6cc62c6 30622_ACEOF
10f2d63a
VZ
30623
30624fi
30625
e8f65ba6 30626if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30627 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30628#define wxUSE_GEOMETRY 1
e6cc62c6 30629_ACEOF
e8f65ba6
RR
30630
30631fi
30632
10f2d63a 30633if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30634 cat >>confdefs.h <<\_ACEOF
10f2d63a 30635#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30636_ACEOF
10f2d63a 30637
70f7a477 30638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30639fi
30640
30641if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30642 cat >>confdefs.h <<\_ACEOF
10f2d63a 30643#define wxUSE_STREAMS 1
e6cc62c6 30644_ACEOF
10f2d63a
VZ
30645
30646fi
30647
5c6fa7d2 30648
8284b0c5 30649if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30650
30651for ac_func in strptime
83307f33 30652do
e6cc62c6
VS
30653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30654echo "$as_me:$LINENO: checking for $ac_func" >&5
30655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30656if eval "test \"\${$as_ac_var+set}\" = set"; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30658else
30659 cat >conftest.$ac_ext <<_ACEOF
30660#line $LINENO "configure"
30661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
83307f33 30666/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30667 which can conflict with char $ac_func (); below.
30668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30669 <limits.h> exists even on freestanding compilers. */
30670#ifdef __STDC__
30671# include <limits.h>
30672#else
30673# include <assert.h>
30674#endif
83307f33 30675/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30676#ifdef __cplusplus
30677extern "C"
30678{
30679#endif
83307f33 30680/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30681 builtin and then its argument prototype would still apply. */
30682char $ac_func ();
83307f33
VZ
30683/* The GNU C library defines this for functions which it implements
30684 to always fail with ENOSYS. Some functions are actually named
30685 something starting with __ and the normal name is an alias. */
30686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30687choke me
30688#else
e6cc62c6
VS
30689char (*f) () = $ac_func;
30690#endif
30691#ifdef __cplusplus
30692}
83307f33
VZ
30693#endif
30694
e6cc62c6
VS
30695int
30696main ()
30697{
30698return f != $ac_func;
30699 ;
30700 return 0;
30701}
30702_ACEOF
30703rm -f conftest.$ac_objext conftest$ac_exeext
30704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30705 (eval $ac_link) 2>&5
30706 ac_status=$?
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); } &&
30709 { ac_try='test -s conftest$ac_exeext'
30710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711 (eval $ac_try) 2>&5
30712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; }; then
30715 eval "$as_ac_var=yes"
30716else
30717 echo "$as_me: failed program was:" >&5
30718sed 's/^/| /' conftest.$ac_ext >&5
30719
30720eval "$as_ac_var=no"
30721fi
30722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30723fi
30724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30726if test `eval echo '${'$as_ac_var'}'` = yes; then
30727 cat >>confdefs.h <<_ACEOF
30728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30729_ACEOF
83307f33 30730
83307f33
VZ
30731fi
30732done
30733
5c6fa7d2 30734
e6cc62c6
VS
30735 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30736echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30737if test "${wx_cv_var_timezone+set}" = set; then
30738 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30739else
e6cc62c6
VS
30740
30741 cat >conftest.$ac_ext <<_ACEOF
30742#line $LINENO "configure"
30743/* confdefs.h. */
30744_ACEOF
30745cat confdefs.h >>conftest.$ac_ext
30746cat >>conftest.$ac_ext <<_ACEOF
30747/* end confdefs.h. */
360d6699 30748
b4085ce6 30749 #include <time.h>
e6cc62c6
VS
30750
30751int
30752main ()
30753{
360d6699
VZ
30754
30755 int tz;
4f11a343 30756 tz = timezone;
e6cc62c6
VS
30757
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext
30763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30764 (eval $ac_compile) 2>&5
30765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
30768 { ac_try='test -s conftest.$ac_objext'
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; }; then
30774
4f11a343 30775 wx_cv_var_timezone=timezone
e6cc62c6 30776
360d6699 30777else
e6cc62c6
VS
30778 echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
30781
30782 cat >conftest.$ac_ext <<_ACEOF
30783#line $LINENO "configure"
30784/* confdefs.h. */
30785_ACEOF
30786cat confdefs.h >>conftest.$ac_ext
30787cat >>conftest.$ac_ext <<_ACEOF
30788/* end confdefs.h. */
360d6699 30789
b4085ce6 30790 #include <time.h>
e6cc62c6
VS
30791
30792int
30793main ()
30794{
360d6699
VZ
30795
30796 int tz;
30797 tz = _timezone;
e6cc62c6
VS
30798
30799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext
30804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30805 (eval $ac_compile) 2>&5
30806 ac_status=$?
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } &&
30809 { ac_try='test -s conftest.$ac_objext'
30810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811 (eval $ac_try) 2>&5
30812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; }; then
30815
360d6699 30816 wx_cv_var_timezone=_timezone
e6cc62c6 30817
5357c8e8 30818else
e6cc62c6
VS
30819 echo "$as_me: failed program was:" >&5
30820sed 's/^/| /' conftest.$ac_ext >&5
30821
30822
30823 cat >conftest.$ac_ext <<_ACEOF
30824#line $LINENO "configure"
30825/* confdefs.h. */
30826_ACEOF
30827cat confdefs.h >>conftest.$ac_ext
30828cat >>conftest.$ac_ext <<_ACEOF
30829/* end confdefs.h. */
5357c8e8 30830
b4085ce6 30831 #include <time.h>
e6cc62c6
VS
30832
30833int
30834main ()
30835{
5357c8e8
VZ
30836
30837 int tz;
4f11a343 30838 tz = __timezone;
e6cc62c6
VS
30839
30840 ;
30841 return 0;
30842}
30843_ACEOF
30844rm -f conftest.$ac_objext
30845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30846 (eval $ac_compile) 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
30850 { ac_try='test -s conftest.$ac_objext'
30851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30852 (eval $ac_try) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); }; }; then
30856
4f11a343 30857 wx_cv_var_timezone=__timezone
e6cc62c6 30858
360d6699 30859else
e6cc62c6
VS
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863
f9bc1684 30864 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30865 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30866echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30867 fi
e6cc62c6
VS
30868
30869
7b4a847f 30870fi
e6cc62c6
VS
30871rm -f conftest.$ac_objext conftest.$ac_ext
30872
30873
5c6fa7d2 30874fi
e6cc62c6
VS
30875rm -f conftest.$ac_objext conftest.$ac_ext
30876
30877
247f5006 30878fi
e6cc62c6 30879rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30880
e6cc62c6
VS
30881
30882fi
30883echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30884echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30885
f9bc1684 30886 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30887 cat >>confdefs.h <<_ACEOF
360d6699 30888#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30889_ACEOF
360d6699 30890
f9bc1684 30891 fi
698dcdb6 30892
e6cc62c6
VS
30893
30894for ac_func in localtime
afc31813 30895do
e6cc62c6
VS
30896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30897echo "$as_me:$LINENO: checking for $ac_func" >&5
30898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30899if eval "test \"\${$as_ac_var+set}\" = set"; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
30901else
30902 cat >conftest.$ac_ext <<_ACEOF
30903#line $LINENO "configure"
30904/* confdefs.h. */
30905_ACEOF
30906cat confdefs.h >>conftest.$ac_ext
30907cat >>conftest.$ac_ext <<_ACEOF
30908/* end confdefs.h. */
afc31813 30909/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30910 which can conflict with char $ac_func (); below.
30911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912 <limits.h> exists even on freestanding compilers. */
30913#ifdef __STDC__
30914# include <limits.h>
30915#else
30916# include <assert.h>
30917#endif
afc31813 30918/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30919#ifdef __cplusplus
30920extern "C"
30921{
30922#endif
afc31813 30923/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30924 builtin and then its argument prototype would still apply. */
30925char $ac_func ();
afc31813
VZ
30926/* The GNU C library defines this for functions which it implements
30927 to always fail with ENOSYS. Some functions are actually named
30928 something starting with __ and the normal name is an alias. */
30929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30930choke me
30931#else
e6cc62c6
VS
30932char (*f) () = $ac_func;
30933#endif
30934#ifdef __cplusplus
30935}
afc31813
VZ
30936#endif
30937
e6cc62c6
VS
30938int
30939main ()
30940{
30941return f != $ac_func;
30942 ;
30943 return 0;
30944}
30945_ACEOF
30946rm -f conftest.$ac_objext conftest$ac_exeext
30947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948 (eval $ac_link) 2>&5
30949 ac_status=$?
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
30952 { ac_try='test -s conftest$ac_exeext'
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; }; then
30958 eval "$as_ac_var=yes"
30959else
30960 echo "$as_me: failed program was:" >&5
30961sed 's/^/| /' conftest.$ac_ext >&5
30962
30963eval "$as_ac_var=no"
30964fi
30965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30966fi
30967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30969if test `eval echo '${'$as_ac_var'}'` = yes; then
30970 cat >>confdefs.h <<_ACEOF
30971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972_ACEOF
afc31813 30973
afc31813
VZ
30974fi
30975done
30976
5c6fa7d2 30977
8284b0c5 30978 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30979 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30980echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30981if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30983else
e6cc62c6
VS
30984
30985 cat >conftest.$ac_ext <<_ACEOF
30986#line $LINENO "configure"
30987/* confdefs.h. */
30988_ACEOF
30989cat confdefs.h >>conftest.$ac_ext
30990cat >>conftest.$ac_ext <<_ACEOF
30991/* end confdefs.h. */
0470b1e6 30992
b4085ce6 30993 #include <time.h>
e6cc62c6
VS
30994
30995int
30996main ()
30997{
0470b1e6
VZ
30998
30999 struct tm tm;
31000 tm.tm_gmtoff++;
e6cc62c6
VS
31001
31002 ;
31003 return 0;
31004}
31005_ACEOF
31006rm -f conftest.$ac_objext
31007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31008 (eval $ac_compile) 2>&5
31009 ac_status=$?
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); } &&
31012 { ac_try='test -s conftest.$ac_objext'
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31018
f03a98d8 31019 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 31020
0470b1e6 31021else
e6cc62c6
VS
31022 echo "$as_me: failed program was:" >&5
31023sed 's/^/| /' conftest.$ac_ext >&5
31024
31025wx_cv_struct_tm_has_gmtoff=no
31026
247f5006 31027fi
e6cc62c6 31028rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31029
e6cc62c6
VS
31030fi
31031echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
31032echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
31033 fi
31034
31035 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 31036 cat >>confdefs.h <<\_ACEOF
6232543b 31037#define WX_GMTOFF_IN_TM 1
e6cc62c6 31038_ACEOF
0470b1e6 31039
3fcdd07b
VZ
31040 fi
31041
e6cc62c6
VS
31042
31043
31044for ac_func in gettimeofday ftime
3fcdd07b 31045do
e6cc62c6
VS
31046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31047echo "$as_me:$LINENO: checking for $ac_func" >&5
31048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31049if eval "test \"\${$as_ac_var+set}\" = set"; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31051else
31052 cat >conftest.$ac_ext <<_ACEOF
31053#line $LINENO "configure"
31054/* confdefs.h. */
31055_ACEOF
31056cat confdefs.h >>conftest.$ac_ext
31057cat >>conftest.$ac_ext <<_ACEOF
31058/* end confdefs.h. */
3fcdd07b 31059/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31060 which can conflict with char $ac_func (); below.
31061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31062 <limits.h> exists even on freestanding compilers. */
31063#ifdef __STDC__
31064# include <limits.h>
31065#else
31066# include <assert.h>
31067#endif
3fcdd07b 31068/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31069#ifdef __cplusplus
31070extern "C"
31071{
31072#endif
3fcdd07b 31073/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31074 builtin and then its argument prototype would still apply. */
31075char $ac_func ();
3fcdd07b
VZ
31076/* The GNU C library defines this for functions which it implements
31077 to always fail with ENOSYS. Some functions are actually named
31078 something starting with __ and the normal name is an alias. */
31079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31080choke me
31081#else
e6cc62c6
VS
31082char (*f) () = $ac_func;
31083#endif
31084#ifdef __cplusplus
31085}
3fcdd07b
VZ
31086#endif
31087
e6cc62c6
VS
31088int
31089main ()
31090{
31091return f != $ac_func;
31092 ;
31093 return 0;
31094}
31095_ACEOF
31096rm -f conftest.$ac_objext conftest$ac_exeext
31097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31098 (eval $ac_link) 2>&5
31099 ac_status=$?
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); } &&
31102 { ac_try='test -s conftest$ac_exeext'
31103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104 (eval $ac_try) 2>&5
31105 ac_status=$?
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; }; then
31108 eval "$as_ac_var=yes"
31109else
31110 echo "$as_me: failed program was:" >&5
31111sed 's/^/| /' conftest.$ac_ext >&5
31112
31113eval "$as_ac_var=no"
31114fi
31115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31116fi
31117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31119if test `eval echo '${'$as_ac_var'}'` = yes; then
31120 cat >>confdefs.h <<_ACEOF
31121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31122_ACEOF
3fcdd07b 31123 break
3fcdd07b
VZ
31124fi
31125done
31126
698dcdb6 31127
8284b0c5 31128 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31129 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31130echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31131if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31133else
31134
31135
31136
31137 ac_ext=cc
5c6fa7d2 31138ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31142
8284b0c5 31143
e6cc62c6
VS
31144 cat >conftest.$ac_ext <<_ACEOF
31145#line $LINENO "configure"
31146/* confdefs.h. */
31147_ACEOF
31148cat confdefs.h >>conftest.$ac_ext
31149cat >>conftest.$ac_ext <<_ACEOF
31150/* end confdefs.h. */
afc31813
VZ
31151
31152 #include <sys/time.h>
31153 #include <unistd.h>
e6cc62c6
VS
31154
31155int
31156main ()
31157{
afc31813
VZ
31158
31159 struct timeval tv;
776862b4 31160 gettimeofday(&tv, NULL);
e6cc62c6
VS
31161
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166rm -f conftest.$ac_objext
31167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31168 (eval $ac_compile) 2>&5
31169 ac_status=$?
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); } &&
31172 { ac_try='test -s conftest.$ac_objext'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31175 ac_status=$?
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
afc31813 31178 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31179else
e6cc62c6
VS
31180 echo "$as_me: failed program was:" >&5
31181sed 's/^/| /' conftest.$ac_ext >&5
31182
31183cat >conftest.$ac_ext <<_ACEOF
31184#line $LINENO "configure"
31185/* confdefs.h. */
31186_ACEOF
31187cat confdefs.h >>conftest.$ac_ext
31188cat >>conftest.$ac_ext <<_ACEOF
31189/* end confdefs.h. */
afc31813
VZ
31190
31191 #include <sys/time.h>
31192 #include <unistd.h>
e6cc62c6
VS
31193
31194int
31195main ()
31196{
afc31813
VZ
31197
31198 struct timeval tv;
31199 gettimeofday(&tv);
e6cc62c6
VS
31200
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205rm -f conftest.$ac_objext
31206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31207 (eval $ac_compile) 2>&5
31208 ac_status=$?
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
31211 { ac_try='test -s conftest.$ac_objext'
31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213 (eval $ac_try) 2>&5
31214 ac_status=$?
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); }; }; then
afc31813 31217 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31218else
e6cc62c6
VS
31219 echo "$as_me: failed program was:" >&5
31220sed 's/^/| /' conftest.$ac_ext >&5
31221
31222
31223 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31224echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31225 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31226
31227
10f2d63a 31228fi
e6cc62c6
VS
31229rm -f conftest.$ac_objext conftest.$ac_ext
31230
10f2d63a 31231fi
e6cc62c6 31232rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31233 ac_ext=c
10f2d63a 31234ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31238
a0b9e27f 31239
e6cc62c6
VS
31240fi
31241echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31242echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31243
afc31813 31244 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31245 cat >>confdefs.h <<\_ACEOF
afc31813 31246#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31247_ACEOF
afc31813
VZ
31248
31249 fi
31250 fi
31251
afc31813
VZ
31252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31253fi
31254
8284b0c5 31255
52127426 31256if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31257 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31258 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31259echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31260 wxUSE_SOCKETS="no"
31261 fi
3879ecda
VZ
31262 if test "$wxUSE_COCOA" = "1"; then
31263 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31264echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31265 wxUSE_SOCKETS="no"
31266 fi
0feee163 31267fi
b089607b 31268
0feee163
VZ
31269if test "$wxUSE_SOCKETS" = "yes"; then
31270 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31271 echo "$as_me:$LINENO: checking for socket" >&5
31272echo $ECHO_N "checking for socket... $ECHO_C" >&6
31273if test "${ac_cv_func_socket+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
31276 cat >conftest.$ac_ext <<_ACEOF
31277#line $LINENO "configure"
31278/* confdefs.h. */
31279_ACEOF
31280cat confdefs.h >>conftest.$ac_ext
31281cat >>conftest.$ac_ext <<_ACEOF
31282/* end confdefs.h. */
c63c7106 31283/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31284 which can conflict with char socket (); below.
31285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31286 <limits.h> exists even on freestanding compilers. */
31287#ifdef __STDC__
31288# include <limits.h>
31289#else
31290# include <assert.h>
31291#endif
c63c7106 31292/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31293#ifdef __cplusplus
31294extern "C"
31295{
31296#endif
c63c7106 31297/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31298 builtin and then its argument prototype would still apply. */
31299char socket ();
c63c7106
VZ
31300/* The GNU C library defines this for functions which it implements
31301 to always fail with ENOSYS. Some functions are actually named
31302 something starting with __ and the normal name is an alias. */
31303#if defined (__stub_socket) || defined (__stub___socket)
31304choke me
31305#else
e6cc62c6
VS
31306char (*f) () = socket;
31307#endif
31308#ifdef __cplusplus
31309}
c63c7106
VZ
31310#endif
31311
e6cc62c6
VS
31312int
31313main ()
31314{
31315return f != socket;
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
31321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31322 (eval $ac_link) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } &&
31326 { ac_try='test -s conftest$ac_exeext'
31327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328 (eval $ac_try) 2>&5
31329 ac_status=$?
31330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331 (exit $ac_status); }; }; then
31332 ac_cv_func_socket=yes
31333else
31334 echo "$as_me: failed program was:" >&5
31335sed 's/^/| /' conftest.$ac_ext >&5
31336
31337ac_cv_func_socket=no
31338fi
31339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31340fi
31341echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31342echo "${ECHO_T}$ac_cv_func_socket" >&6
31343if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31344 :
31345else
e6cc62c6
VS
31346 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31347echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31348if test "${ac_cv_lib_socket_socket+set}" = set; then
31349 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31350else
e6cc62c6 31351 ac_check_lib_save_LIBS=$LIBS
c63c7106 31352LIBS="-lsocket $LIBS"
e6cc62c6
VS
31353cat >conftest.$ac_ext <<_ACEOF
31354#line $LINENO "configure"
31355/* confdefs.h. */
31356_ACEOF
31357cat confdefs.h >>conftest.$ac_ext
31358cat >>conftest.$ac_ext <<_ACEOF
31359/* end confdefs.h. */
31360
c63c7106 31361/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31362#ifdef __cplusplus
31363extern "C"
31364#endif
c63c7106 31365/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31366 builtin and then its argument prototype would still apply. */
31367char socket ();
31368int
31369main ()
31370{
31371socket ();
31372 ;
31373 return 0;
31374}
31375_ACEOF
31376rm -f conftest.$ac_objext conftest$ac_exeext
31377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31378 (eval $ac_link) 2>&5
31379 ac_status=$?
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
31382 { ac_try='test -s conftest$ac_exeext'
31383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384 (eval $ac_try) 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; }; then
31388 ac_cv_lib_socket_socket=yes
31389else
31390 echo "$as_me: failed program was:" >&5
31391sed 's/^/| /' conftest.$ac_ext >&5
31392
31393ac_cv_lib_socket_socket=no
31394fi
31395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31396LIBS=$ac_check_lib_save_LIBS
31397fi
31398echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31399echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31400if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31401 if test "$INET_LINK" != " -lsocket"; then
31402 INET_LINK="$INET_LINK -lsocket"
31403 fi
c63c7106 31404else
afc31813 31405
e6cc62c6
VS
31406 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31407echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31408 wxUSE_SOCKETS=no
e6cc62c6
VS
31409
31410
6232543b 31411fi
b089607b 31412
e6cc62c6 31413
1e487827 31414fi
afc31813 31415
3a922bb4 31416 fi
0feee163 31417fi
51a9faba 31418
0feee163
VZ
31419if test "$wxUSE_SOCKETS" = "yes" ; then
31420 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31421 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31422echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31423if test "${wx_cv_type_getsockname3+set}" = set; then
31424 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31425else
e6cc62c6
VS
31426
31427 cat >conftest.$ac_ext <<_ACEOF
31428#line $LINENO "configure"
31429/* confdefs.h. */
31430_ACEOF
31431cat confdefs.h >>conftest.$ac_ext
31432cat >>conftest.$ac_ext <<_ACEOF
31433/* end confdefs.h. */
51a9faba 31434
3a922bb4
RL
31435 #include <sys/types.h>
31436 #include <sys/socket.h>
e6cc62c6
VS
31437
31438int
31439main ()
31440{
51a9faba 31441
3a922bb4
RL
31442 socklen_t len;
31443 getsockname(0, 0, &len);
e6cc62c6
VS
31444
31445 ;
31446 return 0;
31447}
31448_ACEOF
31449rm -f conftest.$ac_objext
31450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31451 (eval $ac_compile) 2>&5
31452 ac_status=$?
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } &&
31455 { ac_try='test -s conftest.$ac_objext'
31456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457 (eval $ac_try) 2>&5
31458 ac_status=$?
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; }; then
51a9faba 31461 wx_cv_type_getsockname3=socklen_t
afc31813 31462else
e6cc62c6
VS
31463 echo "$as_me: failed program was:" >&5
31464sed 's/^/| /' conftest.$ac_ext >&5
31465
31466
9711d31e
GD
31467 CFLAGS_OLD="$CFLAGS"
31468 if test "$GCC" = yes ; then
31469 CFLAGS="$CFLAGS -Werror"
31470 fi
31471
e6cc62c6
VS
31472 cat >conftest.$ac_ext <<_ACEOF
31473#line $LINENO "configure"
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
51a9faba 31479
9711d31e
GD
31480 #include <sys/types.h>
31481 #include <sys/socket.h>
e6cc62c6
VS
31482
31483int
31484main ()
31485{
51a9faba 31486
9711d31e
GD
31487 size_t len;
31488 getsockname(0, 0, &len);
e6cc62c6
VS
31489
31490 ;
31491 return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext
31495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31496 (eval $ac_compile) 2>&5
31497 ac_status=$?
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } &&
31500 { ac_try='test -s conftest.$ac_objext'
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; }; then
51a9faba 31506 wx_cv_type_getsockname3=size_t
afc31813 31507else
e6cc62c6
VS
31508 echo "$as_me: failed program was:" >&5
31509sed 's/^/| /' conftest.$ac_ext >&5
31510
31511cat >conftest.$ac_ext <<_ACEOF
31512#line $LINENO "configure"
31513/* confdefs.h. */
31514_ACEOF
31515cat confdefs.h >>conftest.$ac_ext
31516cat >>conftest.$ac_ext <<_ACEOF
31517/* end confdefs.h. */
51a9faba 31518
9711d31e
GD
31519 #include <sys/types.h>
31520 #include <sys/socket.h>
e6cc62c6
VS
31521
31522int
31523main ()
31524{
51a9faba 31525
9711d31e
GD
31526 int len;
31527 getsockname(0, 0, &len);
e6cc62c6
VS
31528
31529 ;
31530 return 0;
31531}
31532_ACEOF
31533rm -f conftest.$ac_objext
31534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31535 (eval $ac_compile) 2>&5
31536 ac_status=$?
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
31539 { ac_try='test -s conftest.$ac_objext'
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
51a9faba 31545 wx_cv_type_getsockname3=int
afc31813 31546else
e6cc62c6
VS
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
31550wx_cv_type_getsockname3=unknown
31551
afc31813 31552fi
e6cc62c6
VS
31553rm -f conftest.$ac_objext conftest.$ac_ext
31554
afc31813 31555fi
e6cc62c6 31556rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31557
31558 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31559
31560
247f5006 31561fi
e6cc62c6 31562rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31563
e6cc62c6
VS
31564fi
31565echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31566echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31567
3a922bb4
RL
31568 if test "$wx_cv_type_getsockname3" = "unknown"; then
31569 wxUSE_SOCKETS=no
e6cc62c6
VS
31570 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31571echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31572 else
e6cc62c6 31573 cat >>confdefs.h <<_ACEOF
51a9faba 31574#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31575_ACEOF
51a9faba 31576
3a922bb4 31577 fi
51a9faba
VZ
31578 fi
31579fi
afc31813 31580
51a9faba 31581if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31582 cat >>confdefs.h <<\_ACEOF
afc31813 31583#define wxUSE_SOCKETS 1
e6cc62c6 31584_ACEOF
afc31813 31585
70f7a477 31586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31587fi
31588
3879ecda
VZ
31589if test "$wxUSE_PROTOCOL" = "yes"; then
31590 if test "$wxUSE_SOCKETS" != "yes"; then
31591 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31592echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31593 wxUSE_PROTOCOL=no
31594 fi
31595fi
31596
31597if test "$wxUSE_PROTOCOL" = "yes"; then
31598 cat >>confdefs.h <<\_ACEOF
31599#define wxUSE_PROTOCOL 1
31600_ACEOF
31601
31602
31603 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31604 cat >>confdefs.h <<\_ACEOF
31605#define wxUSE_PROTOCOL_HTTP 1
31606_ACEOF
31607
31608 fi
31609 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31610 cat >>confdefs.h <<\_ACEOF
31611#define wxUSE_PROTOCOL_FTP 1
31612_ACEOF
31613
31614 fi
31615 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31616 cat >>confdefs.h <<\_ACEOF
31617#define wxUSE_PROTOCOL_FILE 1
31618_ACEOF
31619
31620 fi
31621else
31622 if test "$wxUSE_FS_INET" = "yes"; then
31623 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31624echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31625 wxUSE_FS_INET="no"
31626 fi
31627fi
31628
31629if test "$wxUSE_URL" = "yes"; then
31630 if test "$wxUSE_PROTOCOL" != "yes"; then
31631 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31632echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31633 wxUSE_URL=no
31634 fi
31635 if test "$wxUSE_URL" = "yes"; then
31636 cat >>confdefs.h <<\_ACEOF
31637#define wxUSE_URL 1
31638_ACEOF
31639
31640 fi
31641fi
31642
31643if test "$wxUSE_FS_INET" = "yes"; then
31644 cat >>confdefs.h <<\_ACEOF
31645#define wxUSE_FS_INET 1
31646_ACEOF
31647
31648fi
31649
8284b0c5 31650
dc3d889d
VZ
31651if test "$wxUSE_GUI" = "yes"; then
31652
ac0c4cc3 31653 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31654 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31655echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31656 wxUSE_JOYSTICK=no
156b2523
GD
31657 fi
31658
131f235d 31659 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31660 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31661
31662for ac_header in linux/joystick.h
10f2d63a 31663do
e6cc62c6
VS
31664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31665if eval "test \"\${$as_ac_Header+set}\" = set"; then
31666 echo "$as_me:$LINENO: checking for $ac_header" >&5
31667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31668if eval "test \"\${$as_ac_Header+set}\" = set"; then
31669 echo $ECHO_N "(cached) $ECHO_C" >&6
31670fi
31671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31673else
31674 # Is the header compilable?
31675echo "$as_me:$LINENO: checking $ac_header usability" >&5
31676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31677cat >conftest.$ac_ext <<_ACEOF
31678#line $LINENO "configure"
31679/* confdefs.h. */
31680_ACEOF
31681cat confdefs.h >>conftest.$ac_ext
31682cat >>conftest.$ac_ext <<_ACEOF
31683/* end confdefs.h. */
31684$ac_includes_default
31685#include <$ac_header>
31686_ACEOF
31687rm -f conftest.$ac_objext
31688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31689 (eval $ac_compile) 2>&5
31690 ac_status=$?
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
31693 { ac_try='test -s conftest.$ac_objext'
31694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695 (eval $ac_try) 2>&5
31696 ac_status=$?
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; }; then
31699 ac_header_compiler=yes
31700else
31701 echo "$as_me: failed program was:" >&5
31702sed 's/^/| /' conftest.$ac_ext >&5
31703
31704ac_header_compiler=no
31705fi
31706rm -f conftest.$ac_objext conftest.$ac_ext
31707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31708echo "${ECHO_T}$ac_header_compiler" >&6
31709
31710# Is the header present?
31711echo "$as_me:$LINENO: checking $ac_header presence" >&5
31712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31713cat >conftest.$ac_ext <<_ACEOF
31714#line $LINENO "configure"
31715/* confdefs.h. */
31716_ACEOF
31717cat confdefs.h >>conftest.$ac_ext
31718cat >>conftest.$ac_ext <<_ACEOF
31719/* end confdefs.h. */
31720#include <$ac_header>
31721_ACEOF
31722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31724 ac_status=$?
31725 grep -v '^ *+' conftest.er1 >conftest.err
31726 rm -f conftest.er1
31727 cat conftest.err >&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } >/dev/null; then
31730 if test -s conftest.err; then
31731 ac_cpp_err=$ac_c_preproc_warn_flag
31732 else
31733 ac_cpp_err=
31734 fi
31735else
31736 ac_cpp_err=yes
31737fi
31738if test -z "$ac_cpp_err"; then
31739 ac_header_preproc=yes
31740else
31741 echo "$as_me: failed program was:" >&5
31742sed 's/^/| /' conftest.$ac_ext >&5
31743
31744 ac_header_preproc=no
31745fi
31746rm -f conftest.err conftest.$ac_ext
31747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31748echo "${ECHO_T}$ac_header_preproc" >&6
31749
31750# So? What about this header?
31751case $ac_header_compiler:$ac_header_preproc in
31752 yes:no )
31753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31757 (
31758 cat <<\_ASBOX
31759## ------------------------------------ ##
31760## Report this to bug-autoconf@gnu.org. ##
31761## ------------------------------------ ##
31762_ASBOX
31763 ) |
31764 sed "s/^/$as_me: WARNING: /" >&2
31765 ;;
31766 no:yes )
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31772echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31773 (
31774 cat <<\_ASBOX
31775## ------------------------------------ ##
31776## Report this to bug-autoconf@gnu.org. ##
31777## ------------------------------------ ##
31778_ASBOX
31779 ) |
31780 sed "s/^/$as_me: WARNING: /" >&2
31781 ;;
31782esac
31783echo "$as_me:$LINENO: checking for $ac_header" >&5
31784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31785if eval "test \"\${$as_ac_Header+set}\" = set"; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31787else
31788 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31789fi
e6cc62c6
VS
31790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31792
10f2d63a 31793fi
e6cc62c6
VS
31794if test `eval echo '${'$as_ac_Header'}'` = yes; then
31795 cat >>confdefs.h <<_ACEOF
31796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31797_ACEOF
31798
247f5006 31799fi
e6cc62c6 31800
10f2d63a
VZ
31801done
31802
3a922bb4
RL
31803 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31804 wxUSE_JOYSTICK=no
e6cc62c6
VS
31805 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31806echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31807 fi
31808 fi
31809 fi
b089607b 31810
3a922bb4 31811 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31812 cat >>confdefs.h <<\_ACEOF
10f2d63a 31813#define wxUSE_JOYSTICK 1
e6cc62c6 31814_ACEOF
10f2d63a 31815
3a922bb4
RL
31816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31817 fi
dc3d889d
VZ
31818fi
31819
8284b0c5 31820
b089607b
VZ
31821if test "$TOOLKIT" != "MSW"; then
31822
3a922bb4
RL
31823 HAVE_DL_FUNCS=0
31824 HAVE_SHL_FUNCS=0
0b9ab0bd 31825 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31826 if test "$USE_DARWIN" = 1; then
31827 HAVE_DL_FUNCS=1
31828 else
e6cc62c6
VS
31829
31830for ac_func in dlopen
10f2d63a 31831do
e6cc62c6
VS
31832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833echo "$as_me:$LINENO: checking for $ac_func" >&5
31834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31835if eval "test \"\${$as_ac_var+set}\" = set"; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31837else
31838 cat >conftest.$ac_ext <<_ACEOF
31839#line $LINENO "configure"
31840/* confdefs.h. */
31841_ACEOF
31842cat confdefs.h >>conftest.$ac_ext
31843cat >>conftest.$ac_ext <<_ACEOF
31844/* end confdefs.h. */
10f2d63a 31845/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31846 which can conflict with char $ac_func (); below.
31847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31848 <limits.h> exists even on freestanding compilers. */
31849#ifdef __STDC__
31850# include <limits.h>
31851#else
31852# include <assert.h>
31853#endif
10f2d63a 31854/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31855#ifdef __cplusplus
31856extern "C"
31857{
31858#endif
10f2d63a 31859/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31860 builtin and then its argument prototype would still apply. */
31861char $ac_func ();
10f2d63a
VZ
31862/* The GNU C library defines this for functions which it implements
31863 to always fail with ENOSYS. Some functions are actually named
31864 something starting with __ and the normal name is an alias. */
31865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31866choke me
31867#else
e6cc62c6
VS
31868char (*f) () = $ac_func;
31869#endif
31870#ifdef __cplusplus
31871}
10f2d63a
VZ
31872#endif
31873
e6cc62c6
VS
31874int
31875main ()
31876{
31877return f != $ac_func;
31878 ;
31879 return 0;
31880}
31881_ACEOF
31882rm -f conftest.$ac_objext conftest$ac_exeext
31883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31884 (eval $ac_link) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); } &&
31888 { ac_try='test -s conftest$ac_exeext'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 eval "$as_ac_var=yes"
31895else
31896 echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
31899eval "$as_ac_var=no"
31900fi
31901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31902fi
31903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31905if test `eval echo '${'$as_ac_var'}'` = yes; then
31906 cat >>confdefs.h <<_ACEOF
31907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31908_ACEOF
31909
31910 cat >>confdefs.h <<\_ACEOF
10f2d63a 31911#define HAVE_DLOPEN 1
e6cc62c6 31912_ACEOF
10f2d63a 31913
3a922bb4 31914 HAVE_DL_FUNCS=1
e6cc62c6 31915
10f2d63a 31916else
e6cc62c6
VS
31917
31918 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31919echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31920if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31921 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31922else
e6cc62c6 31923 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31924LIBS="-ldl $LIBS"
e6cc62c6
VS
31925cat >conftest.$ac_ext <<_ACEOF
31926#line $LINENO "configure"
31927/* confdefs.h. */
31928_ACEOF
31929cat confdefs.h >>conftest.$ac_ext
31930cat >>conftest.$ac_ext <<_ACEOF
31931/* end confdefs.h. */
31932
10f2d63a 31933/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31934#ifdef __cplusplus
31935extern "C"
31936#endif
10f2d63a 31937/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31938 builtin and then its argument prototype would still apply. */
31939char dlopen ();
31940int
31941main ()
31942{
31943dlopen ();
31944 ;
31945 return 0;
31946}
31947_ACEOF
31948rm -f conftest.$ac_objext conftest$ac_exeext
31949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31950 (eval $ac_link) 2>&5
31951 ac_status=$?
31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
31954 { ac_try='test -s conftest$ac_exeext'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }; then
31960 ac_cv_lib_dl_dlopen=yes
31961else
31962 echo "$as_me: failed program was:" >&5
31963sed 's/^/| /' conftest.$ac_ext >&5
31964
31965ac_cv_lib_dl_dlopen=no
31966fi
31967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31968LIBS=$ac_check_lib_save_LIBS
31969fi
31970echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31971echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31972if test $ac_cv_lib_dl_dlopen = yes; then
31973
31974 cat >>confdefs.h <<\_ACEOF
10f2d63a 31975#define HAVE_DLOPEN 1
e6cc62c6 31976_ACEOF
10f2d63a 31977
3a922bb4 31978 HAVE_DL_FUNCS=1
3d63bc3a 31979 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31980
10f2d63a 31981else
10f2d63a 31982
e6cc62c6
VS
31983
31984for ac_func in shl_load
10f2d63a 31985do
e6cc62c6
VS
31986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31987echo "$as_me:$LINENO: checking for $ac_func" >&5
31988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31989if eval "test \"\${$as_ac_var+set}\" = set"; then
31990 echo $ECHO_N "(cached) $ECHO_C" >&6
31991else
31992 cat >conftest.$ac_ext <<_ACEOF
31993#line $LINENO "configure"
31994/* confdefs.h. */
31995_ACEOF
31996cat confdefs.h >>conftest.$ac_ext
31997cat >>conftest.$ac_ext <<_ACEOF
31998/* end confdefs.h. */
10f2d63a 31999/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32000 which can conflict with char $ac_func (); below.
32001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32002 <limits.h> exists even on freestanding compilers. */
32003#ifdef __STDC__
32004# include <limits.h>
32005#else
32006# include <assert.h>
32007#endif
10f2d63a 32008/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32009#ifdef __cplusplus
32010extern "C"
32011{
32012#endif
10f2d63a 32013/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32014 builtin and then its argument prototype would still apply. */
32015char $ac_func ();
10f2d63a
VZ
32016/* The GNU C library defines this for functions which it implements
32017 to always fail with ENOSYS. Some functions are actually named
32018 something starting with __ and the normal name is an alias. */
32019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32020choke me
32021#else
e6cc62c6
VS
32022char (*f) () = $ac_func;
32023#endif
32024#ifdef __cplusplus
32025}
10f2d63a
VZ
32026#endif
32027
e6cc62c6
VS
32028int
32029main ()
32030{
32031return f != $ac_func;
32032 ;
32033 return 0;
32034}
32035_ACEOF
32036rm -f conftest.$ac_objext conftest$ac_exeext
32037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32038 (eval $ac_link) 2>&5
32039 ac_status=$?
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } &&
32042 { ac_try='test -s conftest$ac_exeext'
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; }; then
32048 eval "$as_ac_var=yes"
32049else
32050 echo "$as_me: failed program was:" >&5
32051sed 's/^/| /' conftest.$ac_ext >&5
32052
32053eval "$as_ac_var=no"
32054fi
32055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32056fi
32057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32059if test `eval echo '${'$as_ac_var'}'` = yes; then
32060 cat >>confdefs.h <<_ACEOF
32061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32062_ACEOF
32063
32064 cat >>confdefs.h <<\_ACEOF
10f2d63a 32065#define HAVE_SHL_LOAD 1
e6cc62c6 32066_ACEOF
10f2d63a 32067
3a922bb4 32068 HAVE_SHL_FUNCS=1
e6cc62c6 32069
10f2d63a 32070else
e6cc62c6
VS
32071
32072 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32073echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32074if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32076else
e6cc62c6 32077 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32078LIBS="-lshl_load $LIBS"
e6cc62c6
VS
32079cat >conftest.$ac_ext <<_ACEOF
32080#line $LINENO "configure"
32081/* confdefs.h. */
32082_ACEOF
32083cat confdefs.h >>conftest.$ac_ext
32084cat >>conftest.$ac_ext <<_ACEOF
32085/* end confdefs.h. */
32086
8284b0c5 32087/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32088#ifdef __cplusplus
32089extern "C"
32090#endif
f6bcfd97 32091/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32092 builtin and then its argument prototype would still apply. */
32093char dld ();
32094int
32095main ()
32096{
32097dld ();
32098 ;
32099 return 0;
32100}
32101_ACEOF
32102rm -f conftest.$ac_objext conftest$ac_exeext
32103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32104 (eval $ac_link) 2>&5
32105 ac_status=$?
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); } &&
32108 { ac_try='test -s conftest$ac_exeext'
32109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110 (eval $ac_try) 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; }; then
32114 ac_cv_lib_shl_load_dld=yes
32115else
32116 echo "$as_me: failed program was:" >&5
32117sed 's/^/| /' conftest.$ac_ext >&5
32118
32119ac_cv_lib_shl_load_dld=no
32120fi
32121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32122LIBS=$ac_check_lib_save_LIBS
32123fi
32124echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32125echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32126if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32127
3a922bb4 32128 HAVE_SHL_FUNCS=1
3d63bc3a 32129 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32130
f6bcfd97
BP
32131fi
32132
e6cc62c6 32133
10f2d63a
VZ
32134fi
32135done
32136
e6cc62c6 32137
10f2d63a
VZ
32138fi
32139
e6cc62c6 32140
10f2d63a
VZ
32141fi
32142done
32143
5c6fa7d2 32144
8284b0c5 32145 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32146
32147for ac_func in dlerror
f6bcfd97 32148do
e6cc62c6
VS
32149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32150echo "$as_me:$LINENO: checking for $ac_func" >&5
32151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32152if eval "test \"\${$as_ac_var+set}\" = set"; then
32153 echo $ECHO_N "(cached) $ECHO_C" >&6
32154else
32155 cat >conftest.$ac_ext <<_ACEOF
32156#line $LINENO "configure"
32157/* confdefs.h. */
32158_ACEOF
32159cat confdefs.h >>conftest.$ac_ext
32160cat >>conftest.$ac_ext <<_ACEOF
32161/* end confdefs.h. */
f6bcfd97 32162/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32163 which can conflict with char $ac_func (); below.
32164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32165 <limits.h> exists even on freestanding compilers. */
32166#ifdef __STDC__
32167# include <limits.h>
32168#else
32169# include <assert.h>
32170#endif
f6bcfd97 32171/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32172#ifdef __cplusplus
32173extern "C"
32174{
32175#endif
f6bcfd97 32176/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32177 builtin and then its argument prototype would still apply. */
32178char $ac_func ();
f6bcfd97
BP
32179/* The GNU C library defines this for functions which it implements
32180 to always fail with ENOSYS. Some functions are actually named
32181 something starting with __ and the normal name is an alias. */
32182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32183choke me
32184#else
e6cc62c6
VS
32185char (*f) () = $ac_func;
32186#endif
32187#ifdef __cplusplus
32188}
f6bcfd97
BP
32189#endif
32190
e6cc62c6
VS
32191int
32192main ()
32193{
32194return f != $ac_func;
32195 ;
32196 return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext conftest$ac_exeext
32200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32201 (eval $ac_link) 2>&5
32202 ac_status=$?
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } &&
32205 { ac_try='test -s conftest$ac_exeext'
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; }; then
32211 eval "$as_ac_var=yes"
32212else
32213 echo "$as_me: failed program was:" >&5
32214sed 's/^/| /' conftest.$ac_ext >&5
32215
32216eval "$as_ac_var=no"
32217fi
32218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32219fi
32220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32221echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32222if test `eval echo '${'$as_ac_var'}'` = yes; then
32223 cat >>confdefs.h <<_ACEOF
32224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32225_ACEOF
32226 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32227#define HAVE_DLERROR 1
e6cc62c6 32228_ACEOF
f6bcfd97
BP
32229
32230else
e6cc62c6
VS
32231 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32232echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32233if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32234 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32235else
e6cc62c6 32236 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32237LIBS="-ldl $LIBS"
e6cc62c6
VS
32238cat >conftest.$ac_ext <<_ACEOF
32239#line $LINENO "configure"
32240/* confdefs.h. */
32241_ACEOF
32242cat confdefs.h >>conftest.$ac_ext
32243cat >>conftest.$ac_ext <<_ACEOF
32244/* end confdefs.h. */
32245
f6bcfd97 32246/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32247#ifdef __cplusplus
32248extern "C"
32249#endif
f6bcfd97 32250/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32251 builtin and then its argument prototype would still apply. */
32252char dlerror ();
32253int
32254main ()
32255{
32256dlerror ();
32257 ;
32258 return 0;
32259}
32260_ACEOF
32261rm -f conftest.$ac_objext conftest$ac_exeext
32262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32263 (eval $ac_link) 2>&5
32264 ac_status=$?
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); } &&
32267 { ac_try='test -s conftest$ac_exeext'
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ac_cv_lib_dl_dlerror=yes
32274else
32275 echo "$as_me: failed program was:" >&5
32276sed 's/^/| /' conftest.$ac_ext >&5
32277
32278ac_cv_lib_dl_dlerror=no
32279fi
32280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32281LIBS=$ac_check_lib_save_LIBS
32282fi
32283echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32284echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32285if test $ac_cv_lib_dl_dlerror = yes; then
32286 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32287#define HAVE_DLERROR 1
e6cc62c6 32288_ACEOF
f6bcfd97 32289
f6bcfd97
BP
32290fi
32291
32292fi
32293done
32294
3a922bb4
RL
32295 fi
32296 fi
f6bcfd97 32297
3a922bb4
RL
32298 if test "$HAVE_DL_FUNCS" = 0; then
32299 if test "$HAVE_SHL_FUNCS" = 0; then
32300 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32301 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32302echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32303 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32304 wxUSE_DYNLIB_CLASS=no
32305 else
e6cc62c6
VS
32306 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32307echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32308 fi
32309 fi
10f2d63a
VZ
32310 fi
32311 fi
32312fi
32313
0b9ab0bd 32314if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32315 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32316#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32317_ACEOF
0b9ab0bd 32318
1948bb32
VS
32319fi
32320if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32321 cat >>confdefs.h <<\_ACEOF
10f2d63a 32322#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32323_ACEOF
10f2d63a
VZ
32324
32325fi
32326
8284b0c5 32327
1e6feb95 32328if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32329 cat >>confdefs.h <<\_ACEOF
1e6feb95 32330#define wxUSE_FONTMAP 1
e6cc62c6 32331_ACEOF
1e6feb95
VZ
32332
32333fi
32334
10f2d63a 32335if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32336 cat >>confdefs.h <<\_ACEOF
10f2d63a 32337#define wxUSE_UNICODE 1
e6cc62c6 32338_ACEOF
10f2d63a 32339
8284b0c5 32340
eb854003 32341 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32342 wxUSE_UNICODE_MSLU=no
32343 fi
a72a4bfa 32344
eb854003 32345 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32346 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32347echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32348if test "${ac_cv_lib_unicows_main+set}" = set; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32350else
e6cc62c6 32351 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32352LIBS="-lunicows $LIBS"
e6cc62c6
VS
32353cat >conftest.$ac_ext <<_ACEOF
32354#line $LINENO "configure"
32355/* confdefs.h. */
32356_ACEOF
32357cat confdefs.h >>conftest.$ac_ext
32358cat >>conftest.$ac_ext <<_ACEOF
32359/* end confdefs.h. */
a72a4bfa 32360
8284b0c5 32361
e6cc62c6
VS
32362int
32363main ()
32364{
32365main ();
32366 ;
32367 return 0;
32368}
32369_ACEOF
32370rm -f conftest.$ac_objext conftest$ac_exeext
32371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32372 (eval $ac_link) 2>&5
32373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } &&
32376 { ac_try='test -s conftest$ac_exeext'
32377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; }; then
32382 ac_cv_lib_unicows_main=yes
32383else
32384 echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387ac_cv_lib_unicows_main=no
32388fi
32389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32390LIBS=$ac_check_lib_save_LIBS
32391fi
32392echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32393echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32394if test $ac_cv_lib_unicows_main = yes; then
32395
32396 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32397#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32398_ACEOF
32399
a72a4bfa 32400
a72a4bfa 32401else
a72a4bfa 32402
e6cc62c6
VS
32403 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32404 Applications will only run on Windows NT/2000/XP!" >&5
32405echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32406 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32407 wxUSE_UNICODE_MSLU=no
e6cc62c6 32408
a72a4bfa
VS
32409fi
32410
32411 fi
10f2d63a
VZ
32412fi
32413
10f2d63a 32414if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32415 cat >>confdefs.h <<\_ACEOF
10f2d63a 32416#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32417_ACEOF
10f2d63a
VZ
32418
32419fi
32420
8284b0c5 32421
10f2d63a 32422if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32423 cat >>confdefs.h <<\_ACEOF
10f2d63a 32424#define wxUSE_POSTSCRIPT 1
e6cc62c6 32425_ACEOF
10f2d63a
VZ
32426
32427fi
32428
e6cc62c6 32429cat >>confdefs.h <<\_ACEOF
10f2d63a 32430#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32431_ACEOF
10f2d63a 32432
8284b0c5 32433
e6cc62c6 32434cat >>confdefs.h <<\_ACEOF
10f2d63a 32435#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32436_ACEOF
10f2d63a 32437
8284b0c5
MB
32438
32439
10f2d63a 32440if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32441 cat >>confdefs.h <<\_ACEOF
10f2d63a 32442#define wxUSE_CONSTRAINTS 1
e6cc62c6 32443_ACEOF
10f2d63a
VZ
32444
32445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32446fi
32447
3879ecda 32448if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32449 cat >>confdefs.h <<\_ACEOF
10f2d63a 32450#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32451_ACEOF
10f2d63a 32452
1772d20c 32453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32454fi
32455
32456if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32457 cat >>confdefs.h <<\_ACEOF
10f2d63a 32458#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32459_ACEOF
10f2d63a
VZ
32460
32461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32462 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32464 fi
32465fi
32466
32467if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32468 cat >>confdefs.h <<\_ACEOF
10f2d63a 32469#define wxUSE_HELP 1
e6cc62c6 32470_ACEOF
10f2d63a
VZ
32471
32472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32473
77e13408 32474 if test "$wxUSE_MSW" = 1; then
031d8228 32475 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32476 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32477#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32478_ACEOF
29fd3c0c 32479
3e44f09d 32480 fi
3379ed37 32481 fi
031d8228
VS
32482
32483 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32484 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32485 cat >>confdefs.h <<\_ACEOF
031d8228 32486#define wxUSE_WXHTML_HELP 1
e6cc62c6 32487_ACEOF
031d8228
VS
32488
32489 else
e6cc62c6
VS
32490 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32491echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32492 wxUSE_WXHTML_HELP=no
32493 fi
32494 fi
10f2d63a
VZ
32495fi
32496
32497if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32498 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32499 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32500echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32501 else
e6cc62c6 32502 cat >>confdefs.h <<\_ACEOF
10f2d63a 32503#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32504_ACEOF
10f2d63a
VZ
32505
32506 fi
32507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32508fi
32509
e6cc62c6
VS
32510if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32511 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32512echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32513 { (exit 1); exit 1; }; }
32514fi
32515
32516
32517if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32518 -o "$wxUSE_CLIPBOARD" = "yes" \
32519 -o "$wxUSE_OLE" = "yes" \
32520 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32521
32522for ac_header in ole2.h
32523do
32524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32525if eval "test \"\${$as_ac_Header+set}\" = set"; then
32526 echo "$as_me:$LINENO: checking for $ac_header" >&5
32527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32528if eval "test \"\${$as_ac_Header+set}\" = set"; then
32529 echo $ECHO_N "(cached) $ECHO_C" >&6
32530fi
32531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32533else
32534 # Is the header compilable?
32535echo "$as_me:$LINENO: checking $ac_header usability" >&5
32536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32537cat >conftest.$ac_ext <<_ACEOF
32538#line $LINENO "configure"
32539/* confdefs.h. */
32540_ACEOF
32541cat confdefs.h >>conftest.$ac_ext
32542cat >>conftest.$ac_ext <<_ACEOF
32543/* end confdefs.h. */
32544$ac_includes_default
32545#include <$ac_header>
32546_ACEOF
32547rm -f conftest.$ac_objext
32548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32549 (eval $ac_compile) 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } &&
32553 { ac_try='test -s conftest.$ac_objext'
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_header_compiler=yes
32560else
32561 echo "$as_me: failed program was:" >&5
32562sed 's/^/| /' conftest.$ac_ext >&5
32563
32564ac_header_compiler=no
32565fi
32566rm -f conftest.$ac_objext conftest.$ac_ext
32567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32568echo "${ECHO_T}$ac_header_compiler" >&6
32569
32570# Is the header present?
32571echo "$as_me:$LINENO: checking $ac_header presence" >&5
32572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32573cat >conftest.$ac_ext <<_ACEOF
32574#line $LINENO "configure"
32575/* confdefs.h. */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h. */
32580#include <$ac_header>
32581_ACEOF
32582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32584 ac_status=$?
32585 grep -v '^ *+' conftest.er1 >conftest.err
32586 rm -f conftest.er1
32587 cat conftest.err >&5
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); } >/dev/null; then
32590 if test -s conftest.err; then
32591 ac_cpp_err=$ac_c_preproc_warn_flag
32592 else
32593 ac_cpp_err=
32594 fi
32595else
32596 ac_cpp_err=yes
32597fi
32598if test -z "$ac_cpp_err"; then
32599 ac_header_preproc=yes
32600else
32601 echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
32604 ac_header_preproc=no
32605fi
32606rm -f conftest.err conftest.$ac_ext
32607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32608echo "${ECHO_T}$ac_header_preproc" >&6
32609
32610# So? What about this header?
32611case $ac_header_compiler:$ac_header_preproc in
32612 yes:no )
32613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32617 (
32618 cat <<\_ASBOX
32619## ------------------------------------ ##
32620## Report this to bug-autoconf@gnu.org. ##
32621## ------------------------------------ ##
32622_ASBOX
32623 ) |
32624 sed "s/^/$as_me: WARNING: /" >&2
32625 ;;
32626 no:yes )
32627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32633 (
32634 cat <<\_ASBOX
32635## ------------------------------------ ##
32636## Report this to bug-autoconf@gnu.org. ##
32637## ------------------------------------ ##
32638_ASBOX
32639 ) |
32640 sed "s/^/$as_me: WARNING: /" >&2
32641 ;;
32642esac
32643echo "$as_me:$LINENO: checking for $ac_header" >&5
32644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32645if eval "test \"\${$as_ac_Header+set}\" = set"; then
32646 echo $ECHO_N "(cached) $ECHO_C" >&6
32647else
32648 eval "$as_ac_Header=$ac_header_preproc"
32649fi
32650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32652
10f2d63a 32653fi
e6cc62c6
VS
32654if test `eval echo '${'$as_ac_Header'}'` = yes; then
32655 cat >>confdefs.h <<_ACEOF
32656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32657_ACEOF
10f2d63a 32658
10f2d63a 32659fi
e6cc62c6 32660
10f2d63a
VZ
32661done
32662
8284b0c5 32663
2b9bdf71
VZ
32664 if test "$ac_cv_header_ole2_h" = "yes" ; then
32665 if test "$GCC" = yes ; then
8284b0c5
MB
32666
32667
e6cc62c6
VS
32668 ac_ext=cc
32669ac_cpp='$CXXCPP $CPPFLAGS'
32670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32673
32674
32675 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32676echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32677 cat >conftest.$ac_ext <<_ACEOF
32678#line $LINENO "configure"
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
8284b0c5
MB
32684#include <windows.h>
32685 #include <ole2.h>
e6cc62c6
VS
32686int
32687main ()
32688{
8284b0c5 32689
e6cc62c6
VS
32690 ;
32691 return 0;
32692}
32693_ACEOF
32694rm -f conftest.$ac_objext
32695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32696 (eval $ac_compile) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); } &&
32700 { ac_try='test -s conftest.$ac_objext'
32701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702 (eval $ac_try) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 echo "$as_me:$LINENO: result: no" >&5
32707echo "${ECHO_T}no" >&6
32708else
32709 echo "$as_me: failed program was:" >&5
32710sed 's/^/| /' conftest.$ac_ext >&5
32711
32712echo "$as_me:$LINENO: result: yes" >&5
32713echo "${ECHO_T}yes" >&6
8284b0c5
MB
32714 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32715fi
e6cc62c6 32716rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32717 ac_ext=c
8284b0c5 32718ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32721ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32722
2b9bdf71 32723 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32724 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32725 cat >>confdefs.h <<\_ACEOF
4f11a343 32726#define wxUSE_OLE 1
e6cc62c6 32727_ACEOF
4f11a343 32728
8284b0c5 32729
2b9bdf71
VZ
32730 fi
32731
e6cc62c6 32732 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32733#define wxUSE_DATAOBJ 1
e6cc62c6 32734_ACEOF
2b9bdf71
VZ
32735
32736 else
e6cc62c6
VS
32737 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32738echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32739
32740 wxUSE_CLIPBOARD=no
32741 wxUSE_DRAG_AND_DROP=no
32742 wxUSE_DATAOBJ=no
3bce6687
JS
32743 wxUSE_OLE=no
32744 fi
32745
32746 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32747 cat >>confdefs.h <<\_ACEOF
3bce6687 32748#define wxUSE_METAFILE 1
e6cc62c6 32749_ACEOF
3bce6687
JS
32750
32751
e6cc62c6 32752 cat >>confdefs.h <<\_ACEOF
3bce6687 32753#define wxUSE_ENH_METAFILE 1
e6cc62c6 32754_ACEOF
3bce6687
JS
32755
32756 fi
32757fi
32758
2b9bdf71
VZ
32759if test "$wxUSE_IPC" = "yes"; then
32760 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32761 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32762echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32763 fi
32764
e6cc62c6 32765 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32766#define wxUSE_IPC 1
e6cc62c6 32767_ACEOF
2b9bdf71
VZ
32768
32769fi
32770
32771if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32772 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32773 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32774echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32775 wxUSE_CLIPBOARD=no
32776 fi
32777
32778 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32779 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32780#define wxUSE_CLIPBOARD 1
e6cc62c6 32781_ACEOF
2b9bdf71 32782
8284b0c5 32783
e6cc62c6 32784 cat >>confdefs.h <<\_ACEOF
673f4220 32785#define wxUSE_DATAOBJ 1
e6cc62c6 32786_ACEOF
673f4220 32787
6c657b52 32788 fi
2b9bdf71
VZ
32789fi
32790
32791if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32792 if test "$wxUSE_GTK" = 1; then
32793 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32794 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32795echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32796 wxUSE_DRAG_AND_DROP=no
32797 fi
32798 fi
32799
2b9bdf71 32800 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32801 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32802echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32803 wxUSE_DRAG_AND_DROP=no
32804 fi
32805
f79bd02d 32806 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32807 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32808echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32809 wxUSE_DRAG_AND_DROP=no
32810 fi
32811
6c657b52 32812 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32813 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32814echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32815 wxUSE_DRAG_AND_DROP=no
32816 fi
32817
10f2d63a 32818 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32819 cat >>confdefs.h <<\_ACEOF
10f2d63a 32820#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32821_ACEOF
10f2d63a
VZ
32822
32823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32824 fi
32825
32826fi
32827
32828if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32829 cat >>confdefs.h <<\_ACEOF
10f2d63a 32830#define wxUSE_SPLINES 1
e6cc62c6 32831_ACEOF
10f2d63a
VZ
32832
32833fi
32834
8284b0c5 32835
1e6feb95
VZ
32836USES_CONTROLS=0
32837if test "$wxUSE_CONTROLS" = "yes"; then
32838 USES_CONTROLS=1
32839fi
32840
10f2d63a 32841if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32842 cat >>confdefs.h <<\_ACEOF
10f2d63a 32843#define wxUSE_ACCEL 1
e6cc62c6 32844_ACEOF
10f2d63a 32845
1e6feb95
VZ
32846 USES_CONTROLS=1
32847fi
32848
32849if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32850 cat >>confdefs.h <<\_ACEOF
1e6feb95 32851#define wxUSE_BUTTON 1
e6cc62c6 32852_ACEOF
1e6feb95
VZ
32853
32854 USES_CONTROLS=1
32855fi
32856
32857if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32858 cat >>confdefs.h <<\_ACEOF
1e6feb95 32859#define wxUSE_BMPBUTTON 1
e6cc62c6 32860_ACEOF
1e6feb95
VZ
32861
32862 USES_CONTROLS=1
32863fi
32864
32865if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32866 cat >>confdefs.h <<\_ACEOF
1e6feb95 32867#define wxUSE_CALENDARCTRL 1
e6cc62c6 32868_ACEOF
1e6feb95
VZ
32869
32870 USES_CONTROLS=1
32871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32872fi
32873
32874if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32875 cat >>confdefs.h <<\_ACEOF
10f2d63a 32876#define wxUSE_CARET 1
e6cc62c6 32877_ACEOF
10f2d63a 32878
1e6feb95 32879 USES_CONTROLS=1
10f2d63a
VZ
32880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32881fi
32882
32883if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32884 cat >>confdefs.h <<\_ACEOF
10f2d63a 32885#define wxUSE_COMBOBOX 1
e6cc62c6 32886_ACEOF
10f2d63a 32887
1e6feb95 32888 USES_CONTROLS=1
10f2d63a
VZ
32889fi
32890
32891if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32892 cat >>confdefs.h <<\_ACEOF
10f2d63a 32893#define wxUSE_CHOICE 1
e6cc62c6 32894_ACEOF
10f2d63a 32895
1e6feb95 32896 USES_CONTROLS=1
10f2d63a
VZ
32897fi
32898
32899if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32900 cat >>confdefs.h <<\_ACEOF
10f2d63a 32901#define wxUSE_CHECKBOX 1
e6cc62c6 32902_ACEOF
10f2d63a 32903
1e6feb95 32904 USES_CONTROLS=1
10f2d63a
VZ
32905fi
32906
32907if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32908 cat >>confdefs.h <<\_ACEOF
10f2d63a 32909#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32910_ACEOF
10f2d63a 32911
1e6feb95 32912 USES_CONTROLS=1
10f2d63a
VZ
32913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32914fi
32915
da494b40 32916if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32917 cat >>confdefs.h <<\_ACEOF
da494b40 32918#define wxUSE_DISPLAY 1
e6cc62c6 32919_ACEOF
da494b40
MB
32920
32921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32922fi
32923
10f2d63a 32924if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
10f2d63a 32926#define wxUSE_GAUGE 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
1e6feb95 32929 USES_CONTROLS=1
10f2d63a
VZ
32930fi
32931
d6a55c4b 32932if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32934#define wxUSE_GRID 1
e6cc62c6 32935_ACEOF
10f2d63a 32936
1e6feb95 32937 USES_CONTROLS=1
d6a55c4b 32938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32939fi
32940
32941if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32942 cat >>confdefs.h <<\_ACEOF
10f2d63a 32943#define wxUSE_IMAGLIST 1
e6cc62c6 32944_ACEOF
10f2d63a
VZ
32945
32946fi
32947
32948if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32949 cat >>confdefs.h <<\_ACEOF
10f2d63a 32950#define wxUSE_LISTBOX 1
e6cc62c6 32951_ACEOF
10f2d63a 32952
1e6feb95 32953 USES_CONTROLS=1
10f2d63a
VZ
32954fi
32955
32956if test "$wxUSE_LISTCTRL" = "yes"; then
32957 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32958 cat >>confdefs.h <<\_ACEOF
10f2d63a 32959#define wxUSE_LISTCTRL 1
e6cc62c6 32960_ACEOF
10f2d63a 32961
1e6feb95 32962 USES_CONTROLS=1
10f2d63a
VZ
32963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32964 else
e6cc62c6
VS
32965 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32966echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32967 fi
32968fi
32969
32970if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32971 cat >>confdefs.h <<\_ACEOF
10f2d63a 32972#define wxUSE_NOTEBOOK 1
e6cc62c6 32973_ACEOF
10f2d63a 32974
1e6feb95 32975 USES_CONTROLS=1
10f2d63a
VZ
32976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32977fi
32978
24176f2c 32979
10f2d63a 32980if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32981 cat >>confdefs.h <<\_ACEOF
10f2d63a 32982#define wxUSE_RADIOBOX 1
e6cc62c6 32983_ACEOF
10f2d63a 32984
1e6feb95 32985 USES_CONTROLS=1
10f2d63a
VZ
32986fi
32987
32988if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32989 cat >>confdefs.h <<\_ACEOF
10f2d63a 32990#define wxUSE_RADIOBTN 1
e6cc62c6 32991_ACEOF
10f2d63a 32992
1e6feb95 32993 USES_CONTROLS=1
10f2d63a
VZ
32994fi
32995
32996if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32997 cat >>confdefs.h <<\_ACEOF
10f2d63a 32998#define wxUSE_SASH 1
e6cc62c6 32999_ACEOF
10f2d63a
VZ
33000
33001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
33002fi
33003
33004if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 33005 cat >>confdefs.h <<\_ACEOF
10f2d63a 33006#define wxUSE_SCROLLBAR 1
e6cc62c6 33007_ACEOF
10f2d63a 33008
1e6feb95 33009 USES_CONTROLS=1
741a9306 33010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
33011fi
33012
33013if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 33014 cat >>confdefs.h <<\_ACEOF
10f2d63a 33015#define wxUSE_SLIDER 1
e6cc62c6 33016_ACEOF
10f2d63a 33017
1e6feb95 33018 USES_CONTROLS=1
10f2d63a
VZ
33019fi
33020
33021if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
10f2d63a 33023#define wxUSE_SPINBTN 1
e6cc62c6 33024_ACEOF
10f2d63a 33025
1e6feb95 33026 USES_CONTROLS=1
10f2d63a
VZ
33027fi
33028
56cfaa52 33029if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 33030 cat >>confdefs.h <<\_ACEOF
56cfaa52 33031#define wxUSE_SPINCTRL 1
e6cc62c6 33032_ACEOF
56cfaa52 33033
1e6feb95 33034 USES_CONTROLS=1
56cfaa52
RR
33035fi
33036
10f2d63a 33037if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 33038 cat >>confdefs.h <<\_ACEOF
10f2d63a 33039#define wxUSE_SPLITTER 1
e6cc62c6 33040_ACEOF
10f2d63a
VZ
33041
33042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
33043fi
33044
33045if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 33046 cat >>confdefs.h <<\_ACEOF
10f2d63a 33047#define wxUSE_STATBMP 1
e6cc62c6 33048_ACEOF
10f2d63a 33049
1e6feb95 33050 USES_CONTROLS=1
10f2d63a
VZ
33051fi
33052
33053if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 33054 cat >>confdefs.h <<\_ACEOF
10f2d63a 33055#define wxUSE_STATBOX 1
e6cc62c6 33056_ACEOF
10f2d63a 33057
1e6feb95
VZ
33058 USES_CONTROLS=1
33059fi
33060
33061if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 33062 cat >>confdefs.h <<\_ACEOF
1e6feb95 33063#define wxUSE_STATTEXT 1
e6cc62c6 33064_ACEOF
1e6feb95
VZ
33065
33066 USES_CONTROLS=1
10f2d63a
VZ
33067fi
33068
33069if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33070 cat >>confdefs.h <<\_ACEOF
10f2d63a 33071#define wxUSE_STATLINE 1
e6cc62c6 33072_ACEOF
10f2d63a 33073
89e6bf6d 33074 USES_CONTROLS=1
10f2d63a
VZ
33075fi
33076
33077if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33078 cat >>confdefs.h <<\_ACEOF
10f2d63a 33079#define wxUSE_STATUSBAR 1
e6cc62c6 33080_ACEOF
10f2d63a 33081
1e6feb95 33082 USES_CONTROLS=1
698dcdb6 33083
2286341c 33084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33085fi
33086
33087if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33088 cat >>confdefs.h <<\_ACEOF
10f2d63a 33089#define wxUSE_TAB_DIALOG 1
e6cc62c6 33090_ACEOF
10f2d63a
VZ
33091
33092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33093fi
33094
1e6feb95 33095if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33096 cat >>confdefs.h <<\_ACEOF
1e6feb95 33097#define wxUSE_TEXTCTRL 1
e6cc62c6 33098_ACEOF
1e6feb95
VZ
33099
33100 USES_CONTROLS=1
33101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33102fi
33103
1db8dc4a 33104if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33105 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33106 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33107echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33108 wxUSE_TOGGLEBTN=no
33109 fi
33110 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33111 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33112echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33113 wxUSE_TOGGLEBTN=no
33114 fi
33115
33116 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33117 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33118#define wxUSE_TOGGLEBTN 1
e6cc62c6 33119_ACEOF
1db8dc4a 33120
1e6feb95 33121 USES_CONTROLS=1
a45d7ab7 33122 fi
1db8dc4a
VZ
33123fi
33124
360d6699 33125if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33126 cat >>confdefs.h <<\_ACEOF
360d6699 33127#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33128_ACEOF
360d6699
VZ
33129
33130 wxUSE_TOOLBAR="yes"
1e6feb95 33131 USES_CONTROLS=1
360d6699
VZ
33132fi
33133
10f2d63a 33134if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33135 cat >>confdefs.h <<\_ACEOF
10f2d63a 33136#define wxUSE_TOOLBAR 1
e6cc62c6 33137_ACEOF
10f2d63a 33138
1e6feb95 33139 USES_CONTROLS=1
698dcdb6 33140
360d6699
VZ
33141 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33142 wxUSE_TOOLBAR_NATIVE="yes"
33143 fi
33144
1e6feb95 33145 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33146 cat >>confdefs.h <<\_ACEOF
360d6699 33147#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33148_ACEOF
360d6699 33149
1e6feb95
VZ
33150 USES_CONTROLS=1
33151 fi
33152
33153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33154fi
33155
10f2d63a
VZ
33156if test "$wxUSE_TOOLTIPS" = "yes"; then
33157 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33158 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33159echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33160 else
89e6bf6d 33161 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33162 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33163echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33164 else
e6cc62c6 33165 cat >>confdefs.h <<\_ACEOF
10f2d63a 33166#define wxUSE_TOOLTIPS 1
e6cc62c6 33167_ACEOF
10f2d63a
VZ
33168
33169 fi
33170 fi
33171fi
33172
33173if test "$wxUSE_TREECTRL" = "yes"; then
33174 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33175 cat >>confdefs.h <<\_ACEOF
10f2d63a 33176#define wxUSE_TREECTRL 1
e6cc62c6 33177_ACEOF
10f2d63a 33178
1e6feb95 33179 USES_CONTROLS=1
10f2d63a
VZ
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33181 else
e6cc62c6
VS
33182 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33183echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33184 fi
33185fi
33186
9f41d601 33187if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33188 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33189 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33190echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33191 else
485cf710 33192 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33193 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33194echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33195 else
3c011993 33196 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33197 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33198echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33199 else
e6cc62c6 33200 cat >>confdefs.h <<\_ACEOF
9f41d601 33201#define wxUSE_POPUPWIN 1
e6cc62c6 33202_ACEOF
9f41d601 33203
8284b0c5 33204
3c011993
VZ
33205 USES_CONTROLS=1
33206 fi
485cf710 33207 fi
6abe4b65 33208 fi
9f41d601
RR
33209fi
33210
dd964dcc 33211if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33212 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33213 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33214echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33215 else
e6cc62c6 33216 cat >>confdefs.h <<\_ACEOF
dd964dcc 33217#define wxUSE_TIPWINDOW 1
e6cc62c6 33218_ACEOF
dd964dcc 33219
3c011993 33220 fi
dd964dcc
VZ
33221fi
33222
1e6feb95 33223if test "$USES_CONTROLS" = 1; then
e6cc62c6 33224 cat >>confdefs.h <<\_ACEOF
1e6feb95 33225#define wxUSE_CONTROLS 1
e6cc62c6 33226_ACEOF
10f2d63a 33227
10f2d63a
VZ
33228fi
33229
8284b0c5 33230
1e6feb95 33231
24fd6d87 33232if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33233 cat >>confdefs.h <<\_ACEOF
24fd6d87 33234#define wxUSE_DRAGIMAGE 1
e6cc62c6 33235_ACEOF
24fd6d87
VZ
33236
33237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33238fi
33239
7bb2947d 33240if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 33241 cat >>confdefs.h <<\_ACEOF
7bb2947d 33242#define wxUSE_ACCESSIBILITY 1
e6cc62c6 33243_ACEOF
7bb2947d
MB
33244
33245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33246fi
33247
1e6feb95 33248if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33249 cat >>confdefs.h <<\_ACEOF
1e6feb95 33250#define wxUSE_MENUS 1
e6cc62c6 33251_ACEOF
10f2d63a 33252
1e6feb95 33253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33254fi
33255
1e6feb95 33256if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33257 cat >>confdefs.h <<\_ACEOF
1e6feb95 33258#define wxUSE_METAFILE 1
e6cc62c6 33259_ACEOF
10f2d63a 33260
10f2d63a
VZ
33261fi
33262
1e6feb95 33263if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33264 cat >>confdefs.h <<\_ACEOF
1e6feb95 33265#define wxUSE_MIMETYPE 1
e6cc62c6 33266_ACEOF
10f2d63a 33267
10f2d63a
VZ
33268fi
33269
3e44f09d 33270if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33271 cat >>confdefs.h <<\_ACEOF
3e44f09d 33272#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33273_ACEOF
3e44f09d 33274
131f235d
VS
33275if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33276 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
33277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33278fi
33279
3e44f09d
VZ
33280fi
33281
10f2d63a 33282if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33283 cat >>confdefs.h <<\_ACEOF
10f2d63a 33284#define wxUSE_MINIFRAME 1
e6cc62c6 33285_ACEOF
10f2d63a
VZ
33286
33287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33288fi
33289
4d264332 33290USE_HTML=0
10f2d63a 33291if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33292 cat >>confdefs.h <<\_ACEOF
10f2d63a 33293#define wxUSE_HTML 1
e6cc62c6 33294_ACEOF
10f2d63a 33295
4d264332 33296 USE_HTML=1
c74dc163 33297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33298fi
33299
33300if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33301 cat >>confdefs.h <<\_ACEOF
1e487827 33302#define wxUSE_VALIDATORS 1
e6cc62c6 33303_ACEOF
703e0a69 33304
698dcdb6
VZ
33305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33306fi
33307
edae8572 33308if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33309 cat >>confdefs.h <<\_ACEOF
edae8572 33310#define wxUSE_PALETTE 1
e6cc62c6 33311_ACEOF
edae8572
VZ
33312
33313fi
33314
698dcdb6 33315if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33316 cat >>confdefs.h <<\_ACEOF
698dcdb6 33317#define wxUSE_IMAGE 1
e6cc62c6 33318_ACEOF
698dcdb6
VZ
33319
33320fi
33321
33322if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33323 cat >>confdefs.h <<\_ACEOF
698dcdb6 33324#define wxUSE_GIF 1
e6cc62c6 33325_ACEOF
698dcdb6
VZ
33326
33327fi
33328
33329if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33330 cat >>confdefs.h <<\_ACEOF
698dcdb6 33331#define wxUSE_PCX 1
e6cc62c6 33332_ACEOF
698dcdb6
VZ
33333
33334fi
33335
4b6b4dfc 33336if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33337 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33338#define wxUSE_IFF 1
e6cc62c6 33339_ACEOF
4b6b4dfc
RR
33340
33341fi
33342
698dcdb6 33343if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33344 cat >>confdefs.h <<\_ACEOF
698dcdb6 33345#define wxUSE_PNM 1
e6cc62c6 33346_ACEOF
698dcdb6
VZ
33347
33348fi
33349
33350if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33351 cat >>confdefs.h <<\_ACEOF
698dcdb6 33352#define wxUSE_XPM 1
e6cc62c6 33353_ACEOF
698dcdb6
VZ
33354
33355fi
33356
658974ae 33357if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33358 cat >>confdefs.h <<\_ACEOF
658974ae 33359#define wxUSE_ICO_CUR 1
e6cc62c6 33360_ACEOF
658974ae
VS
33361
33362fi
33363
a72a4bfa
VS
33364if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33365 LIBS=" -lunicows $LIBS"
33366fi
33367
8284b0c5 33368
1e6feb95 33369if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33370 cat >>confdefs.h <<\_ACEOF
1e6feb95 33371#define wxUSE_CHOICEDLG 1
e6cc62c6 33372_ACEOF
1e6feb95
VZ
33373
33374fi
33375
33376if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33377 cat >>confdefs.h <<\_ACEOF
1e6feb95 33378#define wxUSE_COLOURDLG 1
e6cc62c6 33379_ACEOF
1e6feb95
VZ
33380
33381fi
33382
33383if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33384 cat >>confdefs.h <<\_ACEOF
1e6feb95 33385#define wxUSE_FILEDLG 1
e6cc62c6 33386_ACEOF
1e6feb95
VZ
33387
33388fi
33389
8db37e06 33390if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33391 cat >>confdefs.h <<\_ACEOF
8db37e06 33392#define wxUSE_FINDREPLDLG 1
e6cc62c6 33393_ACEOF
8db37e06
VZ
33394
33395fi
33396
1e6feb95 33397if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33398 cat >>confdefs.h <<\_ACEOF
1e6feb95 33399#define wxUSE_FONTDLG 1
e6cc62c6 33400_ACEOF
1e6feb95
VZ
33401
33402fi
33403
33404if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33405 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33406 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33407echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33408 else
e6cc62c6 33409 cat >>confdefs.h <<\_ACEOF
1e6feb95 33410#define wxUSE_DIRDLG 1
e6cc62c6 33411_ACEOF
1e6feb95 33412
1e6feb95
VZ
33413 fi
33414fi
33415
33416if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33417 cat >>confdefs.h <<\_ACEOF
1e6feb95 33418#define wxUSE_MSGDLG 1
e6cc62c6 33419_ACEOF
1e6feb95
VZ
33420
33421fi
33422
33423if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33424 cat >>confdefs.h <<\_ACEOF
1e6feb95 33425#define wxUSE_NUMBERDLG 1
e6cc62c6 33426_ACEOF
1e6feb95
VZ
33427
33428fi
33429
33430if test "$wxUSE_PROGRESSDLG" = "yes"; then
33431 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33432 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33433echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33434 else
e6cc62c6 33435 cat >>confdefs.h <<\_ACEOF
1e6feb95 33436#define wxUSE_PROGRESSDLG 1
e6cc62c6 33437_ACEOF
1e6feb95
VZ
33438
33439 fi
33440fi
33441
cbca9943 33442if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33443 cat >>confdefs.h <<\_ACEOF
cbca9943 33444#define wxUSE_SPLASH 1
e6cc62c6 33445_ACEOF
cbca9943
VZ
33446
33447fi
33448
1e6feb95
VZ
33449if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33450 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33451 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33452echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33453 else
e6cc62c6 33454 cat >>confdefs.h <<\_ACEOF
1e6feb95 33455#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33456_ACEOF
1e6feb95 33457
7b4a847f
RR
33458 fi
33459fi
579d8138 33460
8284b0c5 33461if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33462 cat >>confdefs.h <<\_ACEOF
8284b0c5 33463#define wxUSE_TEXTDLG 1
e6cc62c6 33464_ACEOF
8284b0c5
MB
33465
33466fi
33467
33468if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33469 cat >>confdefs.h <<\_ACEOF
8284b0c5 33470#define wxUSE_WIZARDDLG 1
e6cc62c6 33471_ACEOF
8284b0c5
MB
33472
33473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33474fi
33475
33476
33477if test "$cross_compiling" = "yes"; then
33478 OSINFO="\"$host\""
33479else
33480 OSINFO=`uname -s -r -m`
33481 OSINFO="\"$OSINFO\""
33482fi
33483
e6cc62c6 33484cat >>confdefs.h <<_ACEOF
8284b0c5 33485#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33486_ACEOF
8284b0c5
MB
33487
33488
33489
33490if test "x$prefix" != "xNONE"; then
33491 wxPREFIX=$prefix
33492else
33493 wxPREFIX=$ac_default_prefix
33494fi
33495
e6cc62c6 33496cat >>confdefs.h <<_ACEOF
8284b0c5 33497#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33498_ACEOF
8284b0c5
MB
33499
33500
e6cc62c6 33501top_builddir_wxconfig=`pwd`
52c71b80 33502
8284b0c5
MB
33503
33504
edd891e2
VS
33505CORE_BASE_LIBS="net base"
33506CORE_GUI_LIBS="adv core"
33507
33508if test "$wxUSE_XML" = "yes" ; then
33509 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33510fi
45293562
VS
33511if test "$wxUSE_ODBC" != "no" ; then
33512 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33513 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33514fi
33515if test "$wxUSE_HTML" = "yes" ; then
33516 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33517fi
33518
33519
33520
33521
33522
33523
33524
8284b0c5
MB
33525
33526if test "$wxUSE_MAC" = 1 ; then
33527 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33528fi
ac0c4cc3
DE
33529if test "$wxUSE_COCOA" = 1 ; then
33530 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33531fi
8284b0c5
MB
33532
33533
2b5f62a0
VZ
33534LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33535
33536have_cos=0
33537have_floor=0
e6cc62c6 33538
2b5f62a0
VZ
33539for ac_func in cos
33540do
e6cc62c6
VS
33541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33542echo "$as_me:$LINENO: checking for $ac_func" >&5
33543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33544if eval "test \"\${$as_ac_var+set}\" = set"; then
33545 echo $ECHO_N "(cached) $ECHO_C" >&6
33546else
33547 cat >conftest.$ac_ext <<_ACEOF
33548#line $LINENO "configure"
33549/* confdefs.h. */
33550_ACEOF
33551cat confdefs.h >>conftest.$ac_ext
33552cat >>conftest.$ac_ext <<_ACEOF
33553/* end confdefs.h. */
2b5f62a0 33554/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33555 which can conflict with char $ac_func (); below.
33556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33557 <limits.h> exists even on freestanding compilers. */
33558#ifdef __STDC__
33559# include <limits.h>
33560#else
33561# include <assert.h>
33562#endif
2b5f62a0 33563/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33564#ifdef __cplusplus
33565extern "C"
33566{
33567#endif
2b5f62a0 33568/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33569 builtin and then its argument prototype would still apply. */
33570char $ac_func ();
2b5f62a0
VZ
33571/* The GNU C library defines this for functions which it implements
33572 to always fail with ENOSYS. Some functions are actually named
33573 something starting with __ and the normal name is an alias. */
33574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33575choke me
33576#else
e6cc62c6
VS
33577char (*f) () = $ac_func;
33578#endif
33579#ifdef __cplusplus
33580}
2b5f62a0
VZ
33581#endif
33582
e6cc62c6
VS
33583int
33584main ()
33585{
33586return f != $ac_func;
33587 ;
33588 return 0;
33589}
33590_ACEOF
33591rm -f conftest.$ac_objext conftest$ac_exeext
33592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33593 (eval $ac_link) 2>&5
33594 ac_status=$?
33595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596 (exit $ac_status); } &&
33597 { ac_try='test -s conftest$ac_exeext'
33598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599 (eval $ac_try) 2>&5
33600 ac_status=$?
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; }; then
33603 eval "$as_ac_var=yes"
33604else
33605 echo "$as_me: failed program was:" >&5
33606sed 's/^/| /' conftest.$ac_ext >&5
33607
33608eval "$as_ac_var=no"
33609fi
33610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33611fi
33612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33614if test `eval echo '${'$as_ac_var'}'` = yes; then
33615 cat >>confdefs.h <<_ACEOF
33616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33617_ACEOF
2b5f62a0 33618 have_cos=1
2b5f62a0
VZ
33619fi
33620done
33621
e6cc62c6 33622
2b5f62a0
VZ
33623for ac_func in floor
33624do
e6cc62c6
VS
33625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33626echo "$as_me:$LINENO: checking for $ac_func" >&5
33627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33628if eval "test \"\${$as_ac_var+set}\" = set"; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33630else
33631 cat >conftest.$ac_ext <<_ACEOF
33632#line $LINENO "configure"
33633/* confdefs.h. */
33634_ACEOF
33635cat confdefs.h >>conftest.$ac_ext
33636cat >>conftest.$ac_ext <<_ACEOF
33637/* end confdefs.h. */
2b5f62a0 33638/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33639 which can conflict with char $ac_func (); below.
33640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33641 <limits.h> exists even on freestanding compilers. */
33642#ifdef __STDC__
33643# include <limits.h>
33644#else
33645# include <assert.h>
33646#endif
2b5f62a0 33647/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33648#ifdef __cplusplus
33649extern "C"
33650{
33651#endif
2b5f62a0 33652/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33653 builtin and then its argument prototype would still apply. */
33654char $ac_func ();
2b5f62a0
VZ
33655/* The GNU C library defines this for functions which it implements
33656 to always fail with ENOSYS. Some functions are actually named
33657 something starting with __ and the normal name is an alias. */
33658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33659choke me
33660#else
e6cc62c6
VS
33661char (*f) () = $ac_func;
33662#endif
33663#ifdef __cplusplus
33664}
2b5f62a0
VZ
33665#endif
33666
e6cc62c6
VS
33667int
33668main ()
33669{
33670return f != $ac_func;
33671 ;
33672 return 0;
33673}
33674_ACEOF
33675rm -f conftest.$ac_objext conftest$ac_exeext
33676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33677 (eval $ac_link) 2>&5
33678 ac_status=$?
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); } &&
33681 { ac_try='test -s conftest$ac_exeext'
33682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683 (eval $ac_try) 2>&5
33684 ac_status=$?
33685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686 (exit $ac_status); }; }; then
33687 eval "$as_ac_var=yes"
33688else
33689 echo "$as_me: failed program was:" >&5
33690sed 's/^/| /' conftest.$ac_ext >&5
33691
33692eval "$as_ac_var=no"
33693fi
33694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33695fi
33696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33698if test `eval echo '${'$as_ac_var'}'` = yes; then
33699 cat >>confdefs.h <<_ACEOF
33700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33701_ACEOF
2b5f62a0 33702 have_floor=1
2b5f62a0
VZ
33703fi
33704done
33705
e6cc62c6
VS
33706echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33707echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33708if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33709 echo "$as_me:$LINENO: result: yes" >&5
33710echo "${ECHO_T}yes" >&6
2b5f62a0 33711else
e6cc62c6
VS
33712 echo "$as_me:$LINENO: result: no" >&5
33713echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33714 LIBS="$LIBS -lm"
33715 # use different functions to avoid configure caching
33716 have_sin=0
33717 have_ceil=0
e6cc62c6
VS
33718
33719for ac_func in sin
2b5f62a0 33720do
e6cc62c6
VS
33721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33722echo "$as_me:$LINENO: checking for $ac_func" >&5
33723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33724if eval "test \"\${$as_ac_var+set}\" = set"; then
33725 echo $ECHO_N "(cached) $ECHO_C" >&6
33726else
33727 cat >conftest.$ac_ext <<_ACEOF
33728#line $LINENO "configure"
33729/* confdefs.h. */
33730_ACEOF
33731cat confdefs.h >>conftest.$ac_ext
33732cat >>conftest.$ac_ext <<_ACEOF
33733/* end confdefs.h. */
2b5f62a0 33734/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33735 which can conflict with char $ac_func (); below.
33736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33737 <limits.h> exists even on freestanding compilers. */
33738#ifdef __STDC__
33739# include <limits.h>
33740#else
33741# include <assert.h>
33742#endif
2b5f62a0 33743/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33744#ifdef __cplusplus
33745extern "C"
33746{
33747#endif
2b5f62a0 33748/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33749 builtin and then its argument prototype would still apply. */
33750char $ac_func ();
2b5f62a0
VZ
33751/* The GNU C library defines this for functions which it implements
33752 to always fail with ENOSYS. Some functions are actually named
33753 something starting with __ and the normal name is an alias. */
33754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33755choke me
33756#else
e6cc62c6
VS
33757char (*f) () = $ac_func;
33758#endif
33759#ifdef __cplusplus
33760}
2b5f62a0
VZ
33761#endif
33762
e6cc62c6
VS
33763int
33764main ()
33765{
33766return f != $ac_func;
33767 ;
33768 return 0;
33769}
33770_ACEOF
33771rm -f conftest.$ac_objext conftest$ac_exeext
33772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33773 (eval $ac_link) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); } &&
33777 { ac_try='test -s conftest$ac_exeext'
33778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 (eval $ac_try) 2>&5
33780 ac_status=$?
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); }; }; then
33783 eval "$as_ac_var=yes"
33784else
33785 echo "$as_me: failed program was:" >&5
33786sed 's/^/| /' conftest.$ac_ext >&5
33787
33788eval "$as_ac_var=no"
33789fi
33790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33791fi
33792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33794if test `eval echo '${'$as_ac_var'}'` = yes; then
33795 cat >>confdefs.h <<_ACEOF
33796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33797_ACEOF
2b5f62a0 33798 have_sin=1
2b5f62a0
VZ
33799fi
33800done
33801
e6cc62c6
VS
33802
33803for ac_func in ceil
2b5f62a0 33804do
e6cc62c6
VS
33805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33806echo "$as_me:$LINENO: checking for $ac_func" >&5
33807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33808if eval "test \"\${$as_ac_var+set}\" = set"; then
33809 echo $ECHO_N "(cached) $ECHO_C" >&6
33810else
33811 cat >conftest.$ac_ext <<_ACEOF
33812#line $LINENO "configure"
33813/* confdefs.h. */
33814_ACEOF
33815cat confdefs.h >>conftest.$ac_ext
33816cat >>conftest.$ac_ext <<_ACEOF
33817/* end confdefs.h. */
2b5f62a0 33818/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33819 which can conflict with char $ac_func (); below.
33820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33821 <limits.h> exists even on freestanding compilers. */
33822#ifdef __STDC__
33823# include <limits.h>
33824#else
33825# include <assert.h>
33826#endif
2b5f62a0 33827/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33828#ifdef __cplusplus
33829extern "C"
33830{
33831#endif
2b5f62a0 33832/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33833 builtin and then its argument prototype would still apply. */
33834char $ac_func ();
2b5f62a0
VZ
33835/* The GNU C library defines this for functions which it implements
33836 to always fail with ENOSYS. Some functions are actually named
33837 something starting with __ and the normal name is an alias. */
33838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33839choke me
33840#else
e6cc62c6
VS
33841char (*f) () = $ac_func;
33842#endif
33843#ifdef __cplusplus
33844}
2b5f62a0
VZ
33845#endif
33846
e6cc62c6
VS
33847int
33848main ()
33849{
33850return f != $ac_func;
33851 ;
33852 return 0;
33853}
33854_ACEOF
33855rm -f conftest.$ac_objext conftest$ac_exeext
33856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33857 (eval $ac_link) 2>&5
33858 ac_status=$?
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } &&
33861 { ac_try='test -s conftest$ac_exeext'
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; }; then
33867 eval "$as_ac_var=yes"
33868else
33869 echo "$as_me: failed program was:" >&5
33870sed 's/^/| /' conftest.$ac_ext >&5
33871
33872eval "$as_ac_var=no"
33873fi
33874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33875fi
33876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33878if test `eval echo '${'$as_ac_var'}'` = yes; then
33879 cat >>confdefs.h <<_ACEOF
33880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33881_ACEOF
2b5f62a0 33882 have_ceil=1
2b5f62a0
VZ
33883fi
33884done
33885
e6cc62c6
VS
33886 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33887echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33888 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33889 echo "$as_me:$LINENO: result: yes" >&5
33890echo "${ECHO_T}yes" >&6
2b5f62a0 33891 else
e6cc62c6
VS
33892 echo "$as_me:$LINENO: result: no" >&5
33893echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33894 # not sure we should warn the user, crash, etc.
33895 fi
33896fi
8284b0c5
MB
33897
33898if test "$wxUSE_GUI" = "yes"; then
33899
e6cc62c6 33900
8284b0c5
MB
33901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33902 drawing dynamic erase event exec font image \
1dd02ac0 33903 minimal propsize rotate shaped widgets render"
b625909c
VS
33904
33905 if test "$wxUSE_MONOLITHIC" != "yes"; then
33906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33907 fi
8284b0c5
MB
33908else
33909 SAMPLES_SUBDIRS="console"
33910fi
33911
33912
e6cc62c6 33913INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33914-I\${top_srcdir}/include \
33915$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33916$TOOLKIT_INCLUDE"
33917
fddeb06b
VS
33918if test "$GXX" = yes ; then
33919 CXXWARNINGS="-Wall"
33920 fi
33921
33922EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33923
95318f7d 33924CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33925CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33926CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33927
33928
fddeb06b 33929LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33930EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33931EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33932EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33933if test "$wxUSE_GUI" = "yes"; then
33934 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33935fi
34b08d2c
VS
33936if test "$wxUSE_OPENGL" = "yes"; then
33937 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33938fi
fddeb06b
VS
33939
33940LDFLAGS="$LDFLAGS $PROFILE"
33941
8284b0c5
MB
33942if test "$wxUSE_GTK" = 1; then
33943 WXCONFIG_INCLUDE=
33944else
33945 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33946fi
33947
67c13b6c
VS
33948WXCONFIG_EXTRALIBS="$LIBS"
33949
33950if test "$wxUSE_REGEX" = "builtin" ; then
33951 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33952fi
33953if test "$wxUSE_EXPAT" = "builtin" ; then
33954 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33955fi
33956if test "$wxUSE_ODBC" = "builtin" ; then
33957 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33958fi
33959if test "$wxUSE_LIBTIFF" = "builtin" ; then
33960 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33961fi
33962if test "$wxUSE_LIBJPEG" = "builtin" ; then
33963 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33964fi
33965if test "$wxUSE_LIBPNG" = "builtin" ; then
33966 wxconfig_3rdparty="$wxconfig_3rdparty png"
33967fi
33968if test "$wxUSE_ZLIB" = "builtin" ; then
33969 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33970fi
bb41dcbe
VS
33971if test "$wxUSE_ODBC" = "builtin" ; then
33972 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33973fi
67c13b6c
VS
33974
33975for i in $wxconfig_3rdparty ; do
33976 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33977done
33978
33979
fe0895cf
VS
33980if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33981 WXUNIV=1
33982else
33983 WXUNIV=0
8284b0c5
MB
33984fi
33985
8284b0c5
MB
33986
33987
33988
33989
33990
33991
33992
672abd7a 33993
9747f85d
VS
33994if test $wxUSE_MONOLITHIC = "yes" ; then
33995 MONOLITHIC=1
33996else
33997 MONOLITHIC=0
33998fi
8284b0c5 33999
bb41dcbe
VS
34000if test $wxUSE_ODBC != "no" ; then
34001 USE_ODBC=1
34002else
34003 USE_ODBC=0
34004fi
34005
029b47ad
VS
34006if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
34007 OFFICIAL_BUILD=1
34008else
34009 OFFICIAL_BUILD=0
34010fi
34011
8ee2dd05
VS
34012
34013
34014
8284b0c5
MB
34015
34016
34017
34018
34019
34020
c74dc163 34021
34b08d2c 34022
672abd7a 34023
cf615ebb 34024
6c67131a
VS
34025
34026
bb41dcbe 34027
fe0895cf 34028TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
34029
34030
34031
34032
34033
ea66c762 34034
0f1bc9c2 34035
fe0895cf 34036 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
34037
34038 if test -n "$ac_tool_prefix"; then
34039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34041echo "$as_me:$LINENO: checking for $ac_word" >&5
34042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34043if test "${ac_cv_prog_RANLIB+set}" = set; then
34044 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34045else
fe0895cf
VS
34046 if test -n "$RANLIB"; then
34047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 34048else
e6cc62c6
VS
34049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34050for as_dir in $PATH
34051do
34052 IFS=$as_save_IFS
34053 test -z "$as_dir" && as_dir=.
34054 for ac_exec_ext in '' $ac_executable_extensions; do
34055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34058 break 2
34059 fi
34060done
34061done
34062
10f2d63a 34063fi
10f2d63a 34064fi
e6cc62c6 34065RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34066if test -n "$RANLIB"; then
e6cc62c6
VS
34067 echo "$as_me:$LINENO: result: $RANLIB" >&5
34068echo "${ECHO_T}$RANLIB" >&6
34069else
34070 echo "$as_me:$LINENO: result: no" >&5
34071echo "${ECHO_T}no" >&6
34072fi
34073
34074fi
34075if test -z "$ac_cv_prog_RANLIB"; then
34076 ac_ct_RANLIB=$RANLIB
34077 # Extract the first word of "ranlib", so it can be a program name with args.
34078set dummy ranlib; ac_word=$2
34079echo "$as_me:$LINENO: checking for $ac_word" >&5
34080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34081if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34082 echo $ECHO_N "(cached) $ECHO_C" >&6
34083else
34084 if test -n "$ac_ct_RANLIB"; then
34085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34086else
34087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34088for as_dir in $PATH
34089do
34090 IFS=$as_save_IFS
34091 test -z "$as_dir" && as_dir=.
34092 for ac_exec_ext in '' $ac_executable_extensions; do
34093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34094 ac_cv_prog_ac_ct_RANLIB="ranlib"
34095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34096 break 2
34097 fi
34098done
34099done
34100
34101 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34102fi
34103fi
34104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34105if test -n "$ac_ct_RANLIB"; then
34106 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34107echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34108else
e6cc62c6
VS
34109 echo "$as_me:$LINENO: result: no" >&5
34110echo "${ECHO_T}no" >&6
34111fi
34112
34113 RANLIB=$ac_ct_RANLIB
34114else
34115 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34116fi
665bbe97 34117
fe0895cf
VS
34118 # Find a good install program. We prefer a C program (faster),
34119# so one script is as good as another. But avoid the broken or
34120# incompatible versions:
34121# SysV /etc/install, /usr/sbin/install
34122# SunOS /usr/etc/install
34123# IRIX /sbin/install
34124# AIX /bin/install
e6cc62c6 34125# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34129# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34130echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34131echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34132if test -z "$INSTALL"; then
e6cc62c6
VS
34133if test "${ac_cv_path_install+set}" = set; then
34134 echo $ECHO_N "(cached) $ECHO_C" >&6
34135else
34136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34137for as_dir in $PATH
34138do
34139 IFS=$as_save_IFS
34140 test -z "$as_dir" && as_dir=.
34141 # Account for people who put trailing slashes in PATH elements.
34142case $as_dir/ in
34143 ./ | .// | /cC/* | \
34144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34145 /usr/ucb/* ) ;;
34146 *)
34147 # OSF1 and SCO ODT 3.0 have their own names for install.
34148 # Don't use installbsd from OSF since it installs stuff as root
34149 # by default.
34150 for ac_prog in ginstall scoinst install; do
34151 for ac_exec_ext in '' $ac_executable_extensions; do
34152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34153 if test $ac_prog = install &&
34154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34155 # AIX install. It has an incompatible calling convention.
34156 :
34157 elif test $ac_prog = install &&
34158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34159 # program-specific install script used by HP pwplus--don't use.
34160 :
34161 else
34162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34163 break 3
34164 fi
34165 fi
fe0895cf 34166 done
e6cc62c6
VS
34167 done
34168 ;;
34169esac
34170done
34171
fe0895cf
VS
34172
34173fi
34174 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34175 INSTALL=$ac_cv_path_install
fe0895cf
VS
34176 else
34177 # As a last resort, use the slow shell script. We don't cache a
34178 # path for INSTALL within a source directory, because that will
34179 # break other packages using the cache if that directory is
34180 # removed, or if the path is relative.
e6cc62c6 34181 INSTALL=$ac_install_sh
fe0895cf
VS
34182 fi
34183fi
e6cc62c6
VS
34184echo "$as_me:$LINENO: result: $INSTALL" >&5
34185echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34186
34187# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34188# It thinks the first close brace ends the variable substitution.
34189test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34190
e6cc62c6 34191test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34192
34193test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34194
e6cc62c6
VS
34195 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34196echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34197LN_S=$as_ln_s
34198if test "$LN_S" = "ln -s"; then
34199 echo "$as_me:$LINENO: result: yes" >&5
34200echo "${ECHO_T}yes" >&6
fe0895cf 34201else
e6cc62c6
VS
34202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34203echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34204fi
34205
34206
e6cc62c6
VS
34207 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34208echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34209set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34210if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34211 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34212else
e6cc62c6 34213 cat >conftest.make <<\_ACEOF
fe0895cf 34214all:
e6cc62c6
VS
34215 @echo 'ac_maketemp="$(MAKE)"'
34216_ACEOF
fe0895cf 34217# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34218eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34219if test -n "$ac_maketemp"; then
34220 eval ac_cv_prog_make_${ac_make}_set=yes
34221else
34222 eval ac_cv_prog_make_${ac_make}_set=no
34223fi
e6cc62c6 34224rm -f conftest.make
fe0895cf
VS
34225fi
34226if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34227 echo "$as_me:$LINENO: result: yes" >&5
34228echo "${ECHO_T}yes" >&6
fe0895cf
VS
34229 SET_MAKE=
34230else
e6cc62c6
VS
34231 echo "$as_me:$LINENO: result: no" >&5
34232echo "${ECHO_T}no" >&6
fe0895cf
VS
34233 SET_MAKE="MAKE=${MAKE-make}"
34234fi
34235
e6cc62c6
VS
34236
34237
fe0895cf
VS
34238 if test "$build" != "$host" ; then
34239 AR=$host_alias-ar
34240 STRIP=$host_alias-strip
34241 else
34242 # Extract the first word of "ar", so it can be a program name with args.
34243set dummy ar; ac_word=$2
e6cc62c6
VS
34244echo "$as_me:$LINENO: checking for $ac_word" >&5
34245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34246if test "${ac_cv_prog_AR+set}" = set; then
34247 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34248else
34249 if test -n "$AR"; then
34250 ac_cv_prog_AR="$AR" # Let the user override the test.
34251else
e6cc62c6
VS
34252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253for as_dir in $PATH
34254do
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
34257 for ac_exec_ext in '' $ac_executable_extensions; do
34258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34259 ac_cv_prog_AR="ar"
34260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34261 break 2
34262 fi
34263done
34264done
34265
fe0895cf
VS
34266 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34267fi
34268fi
e6cc62c6 34269AR=$ac_cv_prog_AR
fe0895cf 34270if test -n "$AR"; then
e6cc62c6
VS
34271 echo "$as_me:$LINENO: result: $AR" >&5
34272echo "${ECHO_T}$AR" >&6
fe0895cf 34273else
e6cc62c6
VS
34274 echo "$as_me:$LINENO: result: no" >&5
34275echo "${ECHO_T}no" >&6
fe0895cf
VS
34276fi
34277
34278 # Extract the first word of "strip", so it can be a program name with args.
34279set dummy strip; ac_word=$2
e6cc62c6
VS
34280echo "$as_me:$LINENO: checking for $ac_word" >&5
34281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34282if test "${ac_cv_prog_STRIP+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34284else
34285 if test -n "$STRIP"; then
34286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34287else
e6cc62c6
VS
34288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291 IFS=$as_save_IFS
34292 test -z "$as_dir" && as_dir=.
34293 for ac_exec_ext in '' $ac_executable_extensions; do
34294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34295 ac_cv_prog_STRIP="strip"
34296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34297 break 2
34298 fi
34299done
34300done
34301
fe0895cf
VS
34302 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34303fi
34304fi
e6cc62c6 34305STRIP=$ac_cv_prog_STRIP
fe0895cf 34306if test -n "$STRIP"; then
e6cc62c6
VS
34307 echo "$as_me:$LINENO: result: $STRIP" >&5
34308echo "${ECHO_T}$STRIP" >&6
fe0895cf 34309else
e6cc62c6
VS
34310 echo "$as_me:$LINENO: result: no" >&5
34311echo "${ECHO_T}no" >&6
fe0895cf
VS
34312fi
34313
34314 fi
34315
34316 case ${host} in
34317 *-hp-hpux* )
34318 INSTALL_DIR="mkdir"
34319 ;;
34320 *) INSTALL_DIR="$INSTALL -d"
34321 ;;
34322 esac
e6cc62c6 34323
fe0895cf 34324
6b9d41a5
VS
34325 LDFLAGS_GUI=
34326 case ${host} in
34327 *-*-cygwin* | *-*-mingw32* )
34328 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34329 esac
34330
34331
fe0895cf 34332 fi
e6cc62c6
VS
34333
34334 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34335echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34336if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34337 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34338else
e6cc62c6 34339
fe0895cf
VS
34340 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34341 egrep -s GNU > /dev/null); then
34342 bakefile_cv_prog_makeisgnu="yes"
34343 else
34344 bakefile_cv_prog_makeisgnu="no"
34345 fi
fe0895cf 34346
e6cc62c6 34347fi
49b0a3aa
VS
34348echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34349echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34350
34351 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34352 IF_GNU_MAKE=""
34353 else
34354 IF_GNU_MAKE="#"
34355 fi
fe0895cf 34356
e6cc62c6
VS
34357
34358
fe0895cf
VS
34359 PLATFORM_UNIX=0
34360 PLATFORM_WIN32=0
34361 PLATFORM_MSDOS=0
34362 PLATFORM_MAC=0
34363 PLATFORM_MACOSX=0
e6cc62c6 34364
fe0895cf
VS
34365 case "${host}" in
34366 *-*-cygwin* | *-*-mingw32* )
34367 PLATFORM_WIN32=1
34368 ;;
34369 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34370 PLATFORM_MSDOS=1
34371 ;;
34372 powerpc-*-darwin* )
34373 PLATFORM_MAC=1
34374 PLATFORM_MACOSX=1
34375 ;;
34376 * )
34377 PLATFORM_UNIX=1
34378 ;;
34379 esac
34380
fe0895cf 34381
e6cc62c6
VS
34382
34383
34384
34385
34386
34387
fe0895cf 34388 SO_SUFFIX="so"
131f235d 34389 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34390 EXEEXT=""
34391 DLLPREFIX=lib
131f235d 34392 DLLPREFIX_MODULE=
e6cc62c6 34393
fe0895cf
VS
34394 case "${host}" in
34395 *-hp-hpux* )
34396 SO_SUFFIX="sl"
131f235d 34397 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34398 ;;
34399 *-*-aix* )
34400 SO_SUFFIX="a"
131f235d 34401 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34402 ;;
34403 *-*-cygwin* | *-*-mingw32* )
34404 SO_SUFFIX="dll"
131f235d 34405 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34406 EXEEXT=".exe"
34407 DLLPREFIX=""
34408 ;;
34409 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34410 EXEEXT=".exe"
34411 DLLPREFIX=""
34412 ;;
34413 powerpc-*-darwin* )
34414 SO_SUFFIX="dylib"
131f235d 34415 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34416 ;;
34417 esac
34418
fe0895cf 34419
e6cc62c6
VS
34420
34421
34422
34423
131f235d
VS
34424
34425
fe0895cf
VS
34426 SHARED_LD_CC="\$(CC) -shared -o"
34427 SHARED_LD_CXX="\$(CXX) -shared -o"
34428
34429 if test "x$GCC" = "xyes"; then
34430 PIC_FLAG="-fPIC"
34431 fi
34432
34433 case "${host}" in
34434 *-hp-hpux* )
34435 if test "x$GCC" = "xyes"; then
34436 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34437 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34438 else
34439 LDFLAGS="$LDFLAGS -L/usr/lib"
34440
34441 SHARED_LD_CC="${CC} -b -o"
34442 SHARED_LD_CXX="${CXX} -b -o"
34443 PIC_FLAG="+Z"
34444 fi
34445 ;;
34446
34447 *-*-linux* )
34448 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34449 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34450echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34451if test "${bakefile_cv_prog_icc+set}" = set; then
34452 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34453else
fe0895cf 34454
e6cc62c6
VS
34455 cat >conftest.$ac_ext <<_ACEOF
34456#line $LINENO "configure"
34457/* confdefs.h. */
34458_ACEOF
34459cat confdefs.h >>conftest.$ac_ext
34460cat >>conftest.$ac_ext <<_ACEOF
34461/* end confdefs.h. */
34462
34463int
34464main ()
34465{
fe0895cf
VS
34466
34467 #ifndef __INTEL_COMPILER
34468 #error Not icc
34469 #endif
e6cc62c6
VS
34470
34471 ;
34472 return 0;
34473}
34474_ACEOF
34475rm -f conftest.$ac_objext
34476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34477 (eval $ac_compile) 2>&5
34478 ac_status=$?
34479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480 (exit $ac_status); } &&
34481 { ac_try='test -s conftest.$ac_objext'
34482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483 (eval $ac_try) 2>&5
34484 ac_status=$?
34485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486 (exit $ac_status); }; }; then
fe0895cf
VS
34487 bakefile_cv_prog_icc=yes
34488else
e6cc62c6
VS
34489 echo "$as_me: failed program was:" >&5
34490sed 's/^/| /' conftest.$ac_ext >&5
34491
34492bakefile_cv_prog_icc=no
34493
fe0895cf 34494fi
e6cc62c6 34495rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34496
e6cc62c6
VS
34497fi
34498echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34499echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34500 if test "$bakefile_cv_prog_icc" = "yes"; then
34501 PIC_FLAG="-KPIC"
34502 fi
34503 fi
34504 ;;
34505
34506 *-*-solaris2* )
34507 if test "x$GCC" != xyes ; then
34508 SHARED_LD_CC="${CC} -G -o"
34509 SHARED_LD_CXX="${CXX} -G -o"
34510 PIC_FLAG="-KPIC"
34511 fi
34512 ;;
34513
34514 *-*-darwin* )
34515 CFLAGS="$CFLAGS -fno-common"
34516 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34517
34518
fe0895cf
VS
34519 cat <<EOF >shared-ld-sh
34520#!/bin/sh
34521#-----------------------------------------------------------------------------
34522#-- Name: distrib/mac/shared-ld-sh
34523#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34524#-- Author: Gilles Depeyrot
34525#-- Copyright: (c) 2002 Gilles Depeyrot
34526#-- Licence: any use permitted
34527#-----------------------------------------------------------------------------
34528
34529verbose=0
34530args=""
34531objects=""
131f235d 34532linking_flag="-dynamiclib"
fe0895cf
VS
34533
34534while test \${#} -gt 0; do
34535 case \${1} in
34536
34537 -v)
34538 verbose=1
34539 ;;
34540
34541 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34542 # collect these options and values
34543 args="\${args} \${1} \${2}"
34544 shift
34545 ;;
34546
34547 -l*|-L*|-flat_namespace)
34548 # collect these options
34549 args="\${args} \${1}"
34550 ;;
34551
131f235d
VS
34552 -dynamiclib|-bundle)
34553 linking_flag="\${1}"
fe0895cf
VS
34554 ;;
34555
34556 -*)
34557 echo "shared-ld: unhandled option '\${1}'"
34558 exit 1
34559 ;;
34560
4d264332 34561 *.o | *.a | *.dylib)
fe0895cf
VS
34562 # collect object files
34563 objects="\${objects} \${1}"
34564 ;;
34565
34566 *)
34567 echo "shared-ld: unhandled argument '\${1}'"
34568 exit 1
34569 ;;
34570
34571 esac
34572 shift
34573done
34574
34575#
34576# Link one module containing all the others
34577#
34578if test \${verbose} = 1; then
34579 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34580fi
34581c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34582status=\$?
34583if test \${status} != 0; then
34584 exit \${status}
34585fi
34586
34587#
34588# Link the shared library from the single module created
34589#
34590if test \${verbose} = 1; then
131f235d 34591 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34592fi
131f235d 34593c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34594status=\$?
34595if test \${status} != 0; then
34596 exit \${status}
34597fi
34598
34599#
34600# Remove intermediate module
34601#
34602rm -f master.\$\$.o
34603
34604exit 0
34605EOF
34606 chmod +x shared-ld-sh
34607
131f235d
VS
34608 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34609 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34610 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34611 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34612 PIC_FLAG="-dynamic -fPIC"
34613 ;;
34614
34615 *-*-aix* )
34616 if test "x$GCC" != "xyes"; then
34617 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34618set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34619echo "$as_me:$LINENO: checking for $ac_word" >&5
34620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34621if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34622 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34623else
34624 if test -n "$AIX_CXX_LD"; then
34625 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34626else
e6cc62c6
VS
34627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34628for as_dir in $PATH
34629do
34630 IFS=$as_save_IFS
34631 test -z "$as_dir" && as_dir=.
34632 for ac_exec_ext in '' $ac_executable_extensions; do
34633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34634 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34636 break 2
34637 fi
34638done
34639done
34640
fe0895cf
VS
34641 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34642fi
34643fi
e6cc62c6 34644AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34645if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34646 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34647echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34648else
e6cc62c6
VS
34649 echo "$as_me:$LINENO: result: no" >&5
34650echo "${ECHO_T}no" >&6
fe0895cf
VS
34651fi
34652
34653 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34654 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34655 fi
34656 ;;
34657
34658 *-*-beos* )
34659 SHARED_LD_CC="${LD} -shared -o"
34660 SHARED_LD_CXX="${LD} -shared -o"
34661 ;;
34662
34663 *-*-irix* )
34664 if test "x$GCC" != "xyes"; then
34665 PIC_FLAG="-KPIC"
34666 fi
34667 ;;
e6cc62c6 34668
fe0895cf
VS
34669 *-*-cygwin* | *-*-mingw32* )
34670 PIC_FLAG=""
34671 ;;
e6cc62c6 34672
fe0895cf
VS
34673 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34674 *-*-sunos4* | \
34675 *-*-osf* | \
34676 *-*-dgux5* | \
34677 *-*-sysv5* )
34678 ;;
34679
34680 *)
e6cc62c6
VS
34681 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34682echo "$as_me: error: unknown system type $host." >&2;}
34683 { (exit 1); exit 1; }; }
fe0895cf
VS
34684 esac
34685
131f235d
VS
34686 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34687 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34688 fi
34689 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34690 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34691 fi
34692
34693
34694
fe0895cf 34695
e6cc62c6
VS
34696
34697
34698
34699
fe0895cf
VS
34700 USE_SOVERSION=0
34701 USE_SOVERLINUX=0
34702 USE_SOVERSOLARIS=0
34703 USE_SOSYMLINKS=0
34704 USE_MACVERSION=0
34705 SONAME_FLAG=
34706
34707 case "${host}" in
34708 *-*-linux* )
34709 SONAME_FLAG="-Wl,-soname,"
34710 USE_SOVERSION=1
34711 USE_SOVERLINUX=1
34712 USE_SOSYMLINKS=1
34713 ;;
34714
34715 *-*-solaris2* )
34716 SONAME_FLAG="-h "
34717 USE_SOVERSION=1
34718 USE_SOVERSOLARIS=1
34719 USE_SOSYMLINKS=1
34720 ;;
34721
34722 *-*-darwin* )
34723 USE_MACVERSION=1
34724 USE_SOVERSION=1
34725 USE_SOSYMLINKS=1
e6cc62c6 34726 ;;
fe0895cf
VS
34727 esac
34728
fe0895cf 34729
e6cc62c6
VS
34730
34731
34732
34733
34734
34735
34736
49b0a3aa
VS
34737 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34738echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34739 DEPS_TRACKING=0
34740
fe0895cf 34741 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34742 DEPSMODE=gcc
34743 DEPS_TRACKING=1
3e5c3c83
VS
34744 case "${host}" in
34745 powerpc-*-darwin* )
34746 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34747 ;;
34748 * )
34749 DEPSFLAG_GCC="-MMD"
34750 ;;
34751 esac
49b0a3aa
VS
34752 echo "$as_me:$LINENO: result: gcc" >&5
34753echo "${ECHO_T}gcc" >&6
34754 else
34755 echo "$as_me:$LINENO: result: none" >&5
34756echo "${ECHO_T}none" >&6
34757 fi
34758
34759 if test $DEPS_TRACKING = 1 ; then
34760 cat <<EOF >bk-deps
34761#!/bin/sh
34762
45842500
VS
34763# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34764# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34765#
34766# Permission is given to use this file in any way.
34767
34768DEPSMODE=$DEPSMODE
34769DEPSDIR=.deps
3e5c3c83 34770DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34771
34772mkdir -p \$DEPSDIR
34773
34774if test \$DEPSMODE = gcc ; then
3e5c3c83 34775 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34776 status=\${?}
34777 if test \${status} != 0 ; then
34778 exit \${status}
34779 fi
34780 # move created file to the location we want it in:
34781 while test \${#} -gt 0; do
34782 case "\${1}" in
34783 -o )
34784 shift
34785 objfile=\${1}
34786 ;;
34787 -* )
34788 ;;
34789 * )
34790 srcfile=\${1}
34791 ;;
34792 esac
34793 shift
34794 done
34795 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34796 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34797 if test -f \$depfile ; then
34798 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34799 rm -f \$depfile
34800 else
34801 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34802 if test -f \$depfile ; then
4c8b7f4b 34803 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34804 rm -f \$depfile
34805 fi
34806 fi
49b0a3aa
VS
34807 exit 0
34808else
34809 \${*}
34810 exit \${?}
34811fi
34812EOF
34813 chmod +x bk-deps
fe0895cf 34814 fi
fe0895cf 34815
e6cc62c6
VS
34816
34817
34818
fe0895cf
VS
34819 RESCOMP=
34820 SETFILE=
34821
e6cc62c6 34822 case ${host} in
fe0895cf
VS
34823 *-*-cygwin* | *-*-mingw32* )
34824 if test "$build" != "$host" ; then
34825 RESCOMP=$host_alias-windres
34826 else
34827 # Extract the first word of "windres", so it can be a program name with args.
34828set dummy windres; ac_word=$2
e6cc62c6
VS
34829echo "$as_me:$LINENO: checking for $ac_word" >&5
34830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34831if test "${ac_cv_prog_RESCOMP+set}" = set; then
34832 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34833else
34834 if test -n "$RESCOMP"; then
34835 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34836else
e6cc62c6
VS
34837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34838for as_dir in $PATH
34839do
34840 IFS=$as_save_IFS
34841 test -z "$as_dir" && as_dir=.
34842 for ac_exec_ext in '' $ac_executable_extensions; do
34843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34844 ac_cv_prog_RESCOMP="windres"
34845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34846 break 2
34847 fi
34848done
34849done
34850
fe0895cf
VS
34851 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34852fi
34853fi
e6cc62c6 34854RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34855if test -n "$RESCOMP"; then
e6cc62c6
VS
34856 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34857echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34858else
e6cc62c6
VS
34859 echo "$as_me:$LINENO: result: no" >&5
34860echo "${ECHO_T}no" >&6
fe0895cf
VS
34861fi
34862
34863 fi
34864 ;;
e6cc62c6 34865
fe0895cf
VS
34866 *-*-darwin* )
34867 # Extract the first word of "Rez", so it can be a program name with args.
34868set dummy Rez; ac_word=$2
e6cc62c6
VS
34869echo "$as_me:$LINENO: checking for $ac_word" >&5
34870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34871if test "${ac_cv_prog_RESCOMP+set}" = set; then
34872 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34873else
34874 if test -n "$RESCOMP"; then
34875 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34876else
e6cc62c6
VS
34877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34878for as_dir in $PATH
34879do
34880 IFS=$as_save_IFS
34881 test -z "$as_dir" && as_dir=.
34882 for ac_exec_ext in '' $ac_executable_extensions; do
34883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34884 ac_cv_prog_RESCOMP="Rez"
34885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34886 break 2
34887 fi
34888done
34889done
34890
fe0895cf
VS
34891 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34892fi
34893fi
e6cc62c6 34894RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34895if test -n "$RESCOMP"; then
e6cc62c6
VS
34896 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34897echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34898else
e6cc62c6
VS
34899 echo "$as_me:$LINENO: result: no" >&5
34900echo "${ECHO_T}no" >&6
fe0895cf
VS
34901fi
34902
34903 # Extract the first word of "SetFile", so it can be a program name with args.
34904set dummy SetFile; ac_word=$2
e6cc62c6
VS
34905echo "$as_me:$LINENO: checking for $ac_word" >&5
34906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34907if test "${ac_cv_prog_SETFILE+set}" = set; then
34908 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34909else
34910 if test -n "$SETFILE"; then
34911 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34912else
e6cc62c6
VS
34913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34914for as_dir in $PATH
34915do
34916 IFS=$as_save_IFS
34917 test -z "$as_dir" && as_dir=.
34918 for ac_exec_ext in '' $ac_executable_extensions; do
34919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34920 ac_cv_prog_SETFILE="SetFile"
34921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34922 break 2
34923 fi
34924done
34925done
34926
fe0895cf
VS
34927 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34928fi
34929fi
e6cc62c6 34930SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34931if test -n "$SETFILE"; then
e6cc62c6
VS
34932 echo "$as_me:$LINENO: result: $SETFILE" >&5
34933echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34934else
e6cc62c6
VS
34935 echo "$as_me:$LINENO: result: no" >&5
34936echo "${ECHO_T}no" >&6
fe0895cf
VS
34937fi
34938
34939 ;;
34940 esac
34941
fe0895cf
VS
34942
34943
e6cc62c6
VS
34944
34945
34946
34947
45842500 34948
45842500
VS
34949 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34950if test "${enable_precomp_headers+set}" = set; then
34951 enableval="$enable_precomp_headers"
34952 bk_use_pch="$enableval"
34953fi;
34954
34955 GCC_PCH=0
34956
34957 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34958 if test "x$GCC" = "xyes"; then
34959 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34960echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34961 cat >conftest.$ac_ext <<_ACEOF
34962#line $LINENO "configure"
34963/* confdefs.h. */
34964_ACEOF
34965cat confdefs.h >>conftest.$ac_ext
34966cat >>conftest.$ac_ext <<_ACEOF
34967/* end confdefs.h. */
34968
34969int
34970main ()
34971{
34972
8bcf2d20
VS
34973 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34974 #error "no pch support"
34975 #endif
34976 #if (__GNUC__ < 3)
34977 #error "no pch support"
34978 #endif
34979 #if (__GNUC__ == 3) && \
34980 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34981 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34982 #error "no pch support"
45842500
VS
34983 #endif
34984
34985 ;
34986 return 0;
34987}
34988_ACEOF
34989rm -f conftest.$ac_objext
34990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34991 (eval $ac_compile) 2>&5
34992 ac_status=$?
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); } &&
34995 { ac_try='test -s conftest.$ac_objext'
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34998 ac_status=$?
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; }; then
35001
35002 echo "$as_me:$LINENO: result: yes" >&5
35003echo "${ECHO_T}yes" >&6
35004 CPPFLAGS="-fpch-deps $CPPFLAGS"
35005 GCC_PCH=1
35006
35007else
35008 echo "$as_me: failed program was:" >&5
35009sed 's/^/| /' conftest.$ac_ext >&5
35010
35011
35012 echo "$as_me:$LINENO: result: no" >&5
35013echo "${ECHO_T}no" >&6
35014
35015fi
35016rm -f conftest.$ac_objext conftest.$ac_ext
35017 if test $GCC_PCH = 1 ; then
35018 cat <<EOF >bk-make-pch
35019#!/bin/sh
35020
35021# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35022# script. It is used to generated precompiled headers.
35023#
35024# Permission is given to use this file in any way.
35025
35026outfile="\${1}"
35027header="\${2}"
35028shift
35029shift
35030
35031compiler=
35032headerfile=
35033while test \${#} -gt 0; do
35034 case "\${1}" in
35035 -I* )
35036 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35037 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35038 headerfile="\${incdir}/\${header}"
35039 fi
35040 ;;
35041 esac
35042 compiler="\${compiler} \${1}"
35043 shift
35044done
35045
35046if test "x\${headerfile}" = "x" ; then
35047 echo "error: can't find header \${header} in include paths" >2
35048else
35049 if test -f \${outfile} ; then
35050 rm -f \${outfile}
35051 else
35052 mkdir -p \`dirname \${outfile}\`
35053 fi
35054 depsfile=".deps/\`basename \${outfile}\`.d"
35055 mkdir -p .deps
35056 # can do this because gcc is >= 3.4:
35057 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35058 exit \${?}
35059fi
35060EOF
35061 chmod +x bk-make-pch
35062 fi
35063 fi
35064 fi
35065
35066
35067
35068
35069
d78c94f2 35070 COND_BUILD_DEBUG="#"
6f628073 35071 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35072 COND_BUILD_DEBUG=""
6f628073
VS
35073 fi
35074
6c67131a
VS
35075 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35076 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35077 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35078 fi
35079
35080 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35081 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35082 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35083 fi
35084
d78c94f2 35085 COND_BUILD_RELEASE="#"
6f628073 35086 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35087 COND_BUILD_RELEASE=""
6b9d41a5
VS
35088 fi
35089
6c67131a
VS
35090 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35091 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35092 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35093 fi
35094
35095 COND_DEBUG_FLAG_1="#"
35096 if test "x$DEBUG_FLAG" = "x1" ; then
35097 COND_DEBUG_FLAG_1=""
35098 fi
35099
35100 COND_DEBUG_INFO_0="#"
35101 if test "x$DEBUG_INFO" = "x0" ; then
35102 COND_DEBUG_INFO_0=""
35103 fi
35104
35105 COND_DEBUG_INFO_1="#"
35106 if test "x$DEBUG_INFO" = "x1" ; then
35107 COND_DEBUG_INFO_1=""
35108 fi
35109
f95cd8fa
VS
35110 COND_DEPS_TRACKING_0="#"
35111 if test "x$DEPS_TRACKING" = "x0" ; then
35112 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35113 fi
35114
8ee2dd05
VS
35115 COND_DEPS_TRACKING_1="#"
35116 if test "x$DEPS_TRACKING" = "x1" ; then
35117 COND_DEPS_TRACKING_1=""
35118 fi
35119
45842500
VS
35120 COND_GCC_PCH_1="#"
35121 if test "x$GCC_PCH" = "x1" ; then
35122 COND_GCC_PCH_1=""
35123 fi
35124
6f628073
VS
35125 COND_MONOLITHIC_0="#"
35126 if test "x$MONOLITHIC" = "x0" ; then
35127 COND_MONOLITHIC_0=""
6b9d41a5
VS
35128 fi
35129
6f628073
VS
35130 COND_MONOLITHIC_0_SHARED_0="#"
35131 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35132 COND_MONOLITHIC_0_SHARED_0=""
35133 fi
35134
35135 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35136 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35137 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35138 fi
e6cc62c6 35139
8772a1a7
VS
35140 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35142 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35143 fi
35144
250700e4
RD
35145 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35147 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35148 fi
35149
eb69fda5
VS
35150 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35152 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35153 fi
35154
8ee2dd05
VS
35155 COND_MONOLITHIC_0_SHARED_1="#"
35156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35157 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35158 fi
e6cc62c6 35159
6f628073
VS
35160 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35162 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35163 fi
35164
8772a1a7
VS
35165 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35166 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35167 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35168 fi
35169
250700e4
RD
35170 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35171 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35172 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35173 fi
35174
eb69fda5
VS
35175 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35176 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35177 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35178 fi
35179
3af038c0
VS
35180 COND_MONOLITHIC_1="#"
35181 if test "x$MONOLITHIC" = "x1" ; then
35182 COND_MONOLITHIC_1=""
35183 fi
35184
6f628073
VS
35185 COND_MONOLITHIC_1_SHARED_0="#"
35186 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35187 COND_MONOLITHIC_1_SHARED_0=""
35188 fi
35189
35190 COND_MONOLITHIC_1_SHARED_1="#"
35191 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35192 COND_MONOLITHIC_1_SHARED_1=""
35193 fi
35194
3af038c0
VS
35195 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35196 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35197 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35198 fi
35199
35200 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35201 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35202 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35203 fi
35204
6f628073
VS
35205 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35206 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35207 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35208 fi
35209
3af038c0
VS
35210 COND_PLATFORM_MACOSX_1="#"
35211 if test "x$PLATFORM_MACOSX" = "x1" ; then
35212 COND_PLATFORM_MACOSX_1=""
35213 fi
35214
250700e4
RD
35215 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35216 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35217 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35218 fi
35219
35220 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35221 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35222 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35223 fi
35224
35225 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35226 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35227 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35228 fi
35229
8ee2dd05
VS
35230 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35231 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35232 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35233 fi
35234
45842500
VS
35235 COND_PLATFORM_MAC_1="#"
35236 if test "x$PLATFORM_MAC" = "x1" ; then
35237 COND_PLATFORM_MAC_1=""
35238 fi
35239
8772a1a7
VS
35240 COND_PLATFORM_UNIX_0="#"
35241 if test "x$PLATFORM_UNIX" = "x0" ; then
35242 COND_PLATFORM_UNIX_0=""
35243 fi
35244
3af038c0
VS
35245 COND_PLATFORM_UNIX_1="#"
35246 if test "x$PLATFORM_UNIX" = "x1" ; then
35247 COND_PLATFORM_UNIX_1=""
35248 fi
35249
35250 COND_PLATFORM_WIN32_0="#"
35251 if test "x$PLATFORM_WIN32" = "x0" ; then
35252 COND_PLATFORM_WIN32_0=""
35253 fi
35254
35255 COND_PLATFORM_WIN32_1="#"
35256 if test "x$PLATFORM_WIN32" = "x1" ; then
35257 COND_PLATFORM_WIN32_1=""
35258 fi
35259
45842500
VS
35260 COND_SHARED_0="#"
35261 if test "x$SHARED" = "x0" ; then
35262 COND_SHARED_0=""
35263 fi
35264
250700e4
RD
35265 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35266 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35267 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35268 fi
35269
52a5a009
VS
35270 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35271 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35272 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35273 fi
35274
35275 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35276 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35277 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35278 fi
35279
35280 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35281 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35282 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35283 fi
35284
35285 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35286 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35287 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35288 fi
35289
35290 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35291 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35292 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35293 fi
35294
35295 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35296 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35297 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35298 fi
35299
35300 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35301 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35302 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35303 fi
35304
45842500
VS
35305 COND_SHARED_1="#"
35306 if test "x$SHARED" = "x1" ; then
35307 COND_SHARED_1=""
35308 fi
35309
250700e4
RD
35310 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35311 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35312 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35313 fi
35314
6f628073
VS
35315 COND_TOOLKIT_COCOA="#"
35316 if test "x$TOOLKIT" = "xCOCOA" ; then
35317 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35318 fi
35319
6f628073
VS
35320 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35321 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35322 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35323 fi
35324
6f628073
VS
35325 COND_TOOLKIT_GTK="#"
35326 if test "x$TOOLKIT" = "xGTK" ; then
35327 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35328 fi
35329
6f628073
VS
35330 COND_TOOLKIT_GTK_USE_GUI_1="#"
35331 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35332 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35333 fi
35334
6f628073
VS
35335 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35336 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35337 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35338 fi
35339
3af038c0
VS
35340 COND_TOOLKIT_MAC="#"
35341 if test "x$TOOLKIT" = "xMAC" ; then
35342 COND_TOOLKIT_MAC=""
35343 fi
35344
8772a1a7
VS
35345 COND_TOOLKIT_MAC_USE_GUI_1="#"
35346 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35347 COND_TOOLKIT_MAC_USE_GUI_1=""
35348 fi
35349
6f628073
VS
35350 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35351 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35352 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35353 fi
35354
6f628073
VS
35355 COND_TOOLKIT_MGL="#"
35356 if test "x$TOOLKIT" = "xMGL" ; then
35357 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35358 fi
35359
6f628073
VS
35360 COND_TOOLKIT_MGL_USE_GUI_1="#"
35361 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35362 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35363 fi
35364
6f628073
VS
35365 COND_TOOLKIT_MOTIF="#"
35366 if test "x$TOOLKIT" = "xMOTIF" ; then
35367 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35368 fi
35369
6f628073
VS
35370 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35371 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35372 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35373 fi
e6cc62c6 35374
6f628073
VS
35375 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35376 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35377 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35378 fi
35379
6f628073
VS
35380 COND_TOOLKIT_MSW="#"
35381 if test "x$TOOLKIT" = "xMSW" ; then
35382 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35383 fi
35384
6f628073
VS
35385 COND_TOOLKIT_MSW_USE_GUI_1="#"
35386 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35387 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35388 fi
e6cc62c6 35389
6f628073
VS
35390 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35391 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35392 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35393 fi
e6cc62c6 35394
6f628073
VS
35395 COND_TOOLKIT_OS2="#"
35396 if test "x$TOOLKIT" = "xOS2" ; then
35397 COND_TOOLKIT_OS2=""
9747f85d
VS
35398 fi
35399
8772a1a7
VS
35400 COND_TOOLKIT_OS2_USE_GUI_1="#"
35401 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35402 COND_TOOLKIT_OS2_USE_GUI_1=""
35403 fi
35404
6f628073
VS
35405 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35406 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35407 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35408 fi
35409
6f628073
VS
35410 COND_TOOLKIT_X11="#"
35411 if test "x$TOOLKIT" = "xX11" ; then
35412 COND_TOOLKIT_X11=""
9747f85d
VS
35413 fi
35414
6f628073
VS
35415 COND_TOOLKIT_X11_USE_GUI_1="#"
35416 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35417 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35418 fi
35419
3af038c0
VS
35420 COND_UNICODE_1="#"
35421 if test "x$UNICODE" = "x1" ; then
35422 COND_UNICODE_1=""
35423 fi
35424
35425 COND_USE_GUI_0="#"
35426 if test "x$USE_GUI" = "x0" ; then
35427 COND_USE_GUI_0=""
35428 fi
35429
35430 COND_USE_GUI_1="#"
35431 if test "x$USE_GUI" = "x1" ; then
35432 COND_USE_GUI_1=""
35433 fi
35434
e6cc62c6 35435 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35436 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35437 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35438 fi
e6cc62c6
VS
35439
35440 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35441 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35442 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35443 fi
35444
66a96744
VS
35445 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35446 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35447 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35448 fi
35449
35450 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35451 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35452 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35453 fi
35454
35455 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35456 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35457 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35458 fi
35459
6f628073
VS
35460 COND_USE_SOSYMLINKS_1="#"
35461 if test "x$USE_SOSYMLINKS" = "x1" ; then
35462 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35463 fi
35464
6f628073
VS
35465 COND_USE_SOVERLINUX_1="#"
35466 if test "x$USE_SOVERLINUX" = "x1" ; then
35467 COND_USE_SOVERLINUX_1=""
b625909c
VS
35468 fi
35469
6f628073
VS
35470 COND_USE_SOVERSION_0="#"
35471 if test "x$USE_SOVERSION" = "x0" ; then
35472 COND_USE_SOVERSION_0=""
fddeb06b 35473 fi
fe0895cf 35474
6f628073
VS
35475 COND_USE_SOVERSOLARIS_1="#"
35476 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35477 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35478 fi
fe0895cf 35479
3af038c0
VS
35480 COND_WXUNIV_1="#"
35481 if test "x$WXUNIV" = "x1" ; then
35482 COND_WXUNIV_1=""
35483 fi
35484
66a96744
VS
35485 COND_WXUSE_EXPAT_BUILTIN="#"
35486 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35487 COND_WXUSE_EXPAT_BUILTIN=""
35488 fi
35489
02980527
VS
35490 COND_WXUSE_LIBJPEG_BUILTIN="#"
35491 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35492 COND_WXUSE_LIBJPEG_BUILTIN=""
35493 fi
35494
35495 COND_WXUSE_LIBPNG_BUILTIN="#"
35496 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35497 COND_WXUSE_LIBPNG_BUILTIN=""
35498 fi
35499
35500 COND_WXUSE_LIBTIFF_BUILTIN="#"
35501 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35502 COND_WXUSE_LIBTIFF_BUILTIN=""
35503 fi
35504
35505 COND_WXUSE_ODBC_BUILTIN="#"
35506 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35507 COND_WXUSE_ODBC_BUILTIN=""
35508 fi
35509
35510 COND_WXUSE_REGEX_BUILTIN="#"
35511 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35512 COND_WXUSE_REGEX_BUILTIN=""
35513 fi
35514
35515 COND_WXUSE_ZLIB_BUILTIN="#"
35516 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35517 COND_WXUSE_ZLIB_BUILTIN=""
35518 fi
35519
1772d20c 35520
fe0895cf 35521
fe0895cf 35522
fe0895cf 35523
45842500
VS
35524if test $GCC_PCH = 1 ; then
35525 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35526else
35527 case "${host}" in
35528 powerpc-*-darwin* )
35529 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35530 ;;
45842500
VS
35531 esac
35532fi
2c6f14e1
VS
35533case "${host}" in
35534 powerpc-*-darwin* )
35535 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35536 ;;
35537esac
fe0895cf
VS
35538
35539
fddeb06b 35540SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
fe0895cf 35635
f0290fca
VS
35636
35637
67c13b6c 35638
ffef10f6 35639
e6cc62c6
VS
35640
35641
35642echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35643echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35644set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35645if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35646 echo $ECHO_N "(cached) $ECHO_C" >&6
35647else
35648 cat >conftest.make <<\_ACEOF
35649all:
35650 @echo 'ac_maketemp="$(MAKE)"'
35651_ACEOF
35652# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35653eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35654if test -n "$ac_maketemp"; then
35655 eval ac_cv_prog_make_${ac_make}_set=yes
35656else
35657 eval ac_cv_prog_make_${ac_make}_set=no
35658fi
35659rm -f conftest.make
35660fi
35661if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35662 echo "$as_me:$LINENO: result: yes" >&5
35663echo "${ECHO_T}yes" >&6
35664 SET_MAKE=
35665else
35666 echo "$as_me:$LINENO: result: no" >&5
35667echo "${ECHO_T}no" >&6
35668 SET_MAKE="MAKE=${MAKE-make}"
35669fi
35670
35671
35672if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35673 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35674fi
35675
35676 ac_config_headers="$ac_config_headers setup.h"
35677
35678
81345eef 35679 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35680
35681
35682 ac_config_commands="$ac_config_commands default"
35683
35684
9de9b8f0 35685
6c3e36af
VZ
35686if test "$wxUSE_GUI" = "yes"; then
35687 SUBDIRS="samples demos utils contrib"
35688else SUBDIRS="samples utils"
35689fi
e6cc62c6 35690
166263e6 35691for subdir in `echo $SUBDIRS`; do
9747f85d 35692 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35693 if test "$wxUSE_GUI" = "yes"; then
166263e6 35694 if test ${subdir} = "samples"; then
8772a1a7
VS
35695 makefiles="samples/Makefile.in $makefiles"
35696 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35697 if test -d $srcdir/samples/$sample; then
35698 makefiles="samples/$sample/Makefile.in $makefiles"
35699 fi
35700 done
35701 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35702 fi
6c3e36af 35703 else if test ${subdir} = "samples"; then
8772a1a7 35704 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35705 else makefiles="utils/HelpGen/Makefile.in \
35706 utils/HelpGen/src/Makefile.in \
35707 utils/makegen/Makefile.in"
35708 fi
35709 fi
35710
9747f85d
VS
35711 for mkin in $makefiles ; do
35712 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35713 ac_config_files="$ac_config_files $mk"
e6cc62c6 35714
9747f85d
VS
35715 done
35716 fi
35717done
e6cc62c6 35718
9de9b8f0 35719
e6cc62c6
VS
35720cat >confcache <<\_ACEOF
35721# This file is a shell script that caches the results of configure
35722# tests run on this system so they can be shared between configure
35723# scripts and configure runs, see configure's option --config-cache.
35724# It is not useful on other systems. If it contains results you don't
35725# want to keep, you may remove or edit it.
35726#
35727# config.status only pays attention to the cache file if you give it
35728# the --recheck option to rerun configure.
35729#
35730# `ac_cv_env_foo' variables (set or unset) will be overridden when
35731# loading this file, other *unset* `ac_cv_foo' will be assigned the
35732# following values.
35733
35734_ACEOF
35735
35736# The following way of writing the cache mishandles newlines in values,
35737# but we know of no workaround that is simple, portable, and efficient.
35738# So, don't put newlines in cache variables' values.
35739# Ultrix sh set writes to stderr and can't be redirected directly,
35740# and sets the high bit in the cache file unless we assign to the vars.
35741{
35742 (set) 2>&1 |
35743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35744 *ac_space=\ *)
35745 # `set' does not quote correctly, so add quotes (double-quote
35746 # substitution turns \\\\ into \\, and sed turns \\ into \).
35747 sed -n \
35748 "s/'/'\\\\''/g;
35749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35750 ;;
35751 *)
35752 # `set' quotes correctly as required by POSIX, so do not add quotes.
35753 sed -n \
35754 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35755 ;;
35756 esac;
35757} |
35758 sed '
35759 t clear
35760 : clear
35761 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35762 t end
35763 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35764 : end' >>confcache
35765if diff $cache_file confcache >/dev/null 2>&1; then :; else
35766 if test -w $cache_file; then
35767 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35768 cat confcache >$cache_file
35769 else
35770 echo "not updating unwritable cache $cache_file"
35771 fi
35772fi
35773rm -f confcache
35774
35775test "x$prefix" = xNONE && prefix=$ac_default_prefix
35776# Let make expand exec_prefix.
35777test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35778
35779# VPATH may cause trouble with some makes, so we remove $(srcdir),
35780# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35781# trailing colons and then remove the whole line if VPATH becomes empty
35782# (actually we leave an empty line to preserve line numbers).
35783if test "x$srcdir" = x.; then
35784 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35785s/:*\$(srcdir):*/:/;
35786s/:*\${srcdir}:*/:/;
35787s/:*@srcdir@:*/:/;
35788s/^\([^=]*=[ ]*\):*/\1/;
35789s/:*$//;
35790s/^[^=]*=[ ]*$//;
35791}'
35792fi
35793
35794DEFS=-DHAVE_CONFIG_H
35795
35796ac_libobjs=
35797ac_ltlibobjs=
35798for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35799 # 1. Remove the extension, and $U if already installed.
35800 ac_i=`echo "$ac_i" |
35801 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35802 # 2. Add them.
35803 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35804 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35805done
35806LIBOBJS=$ac_libobjs
35807
35808LTLIBOBJS=$ac_ltlibobjs
35809
35810
35811
35812: ${CONFIG_STATUS=./config.status}
35813ac_clean_files_save=$ac_clean_files
35814ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35815{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35816echo "$as_me: creating $CONFIG_STATUS" >&6;}
35817cat >$CONFIG_STATUS <<_ACEOF
35818#! $SHELL
35819# Generated by $as_me.
35820# Run this file to recreate the current configuration.
35821# Compiler output produced by configure, useful for debugging
35822# configure, is in config.log if it exists.
35823
35824debug=false
35825ac_cs_recheck=false
35826ac_cs_silent=false
35827SHELL=\${CONFIG_SHELL-$SHELL}
35828_ACEOF
35829
35830cat >>$CONFIG_STATUS <<\_ACEOF
35831## --------------------- ##
35832## M4sh Initialization. ##
35833## --------------------- ##
35834
35835# Be Bourne compatible
35836if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35837 emulate sh
35838 NULLCMD=:
35839 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35840 # is contrary to our usage. Disable this feature.
35841 alias -g '${1+"$@"}'='"$@"'
35842elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35843 set -o posix
35844fi
35845
35846# Support unset when possible.
35847if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35848 as_unset=unset
35849else
35850 as_unset=false
35851fi
35852
35853
35854# Work around bugs in pre-3.0 UWIN ksh.
35855$as_unset ENV MAIL MAILPATH
35856PS1='$ '
35857PS2='> '
35858PS4='+ '
35859
35860# NLS nuisances.
35861for as_var in \
35862 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35863 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35864 LC_TELEPHONE LC_TIME
35865do
35866 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35867 eval $as_var=C; export $as_var
35868 else
35869 $as_unset $as_var
35870 fi
35871done
35872
35873# Required to use basename.
35874if expr a : '\(a\)' >/dev/null 2>&1; then
35875 as_expr=expr
35876else
35877 as_expr=false
35878fi
35879
35880if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35881 as_basename=basename
35882else
35883 as_basename=false
35884fi
35885
35886
35887# Name of the executable.
35888as_me=`$as_basename "$0" ||
35889$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35890 X"$0" : 'X\(//\)$' \| \
35891 X"$0" : 'X\(/\)$' \| \
35892 . : '\(.\)' 2>/dev/null ||
35893echo X/"$0" |
35894 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35895 /^X\/\(\/\/\)$/{ s//\1/; q; }
35896 /^X\/\(\/\).*/{ s//\1/; q; }
35897 s/.*/./; q'`
35898
35899
35900# PATH needs CR, and LINENO needs CR and PATH.
35901# Avoid depending upon Character Ranges.
35902as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35903as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35904as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35905as_cr_digits='0123456789'
35906as_cr_alnum=$as_cr_Letters$as_cr_digits
35907
35908# The user is always right.
35909if test "${PATH_SEPARATOR+set}" != set; then
35910 echo "#! /bin/sh" >conf$$.sh
35911 echo "exit 0" >>conf$$.sh
35912 chmod +x conf$$.sh
35913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35914 PATH_SEPARATOR=';'
35915 else
35916 PATH_SEPARATOR=:
35917 fi
35918 rm -f conf$$.sh
35919fi
35920
35921
35922 as_lineno_1=$LINENO
35923 as_lineno_2=$LINENO
35924 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35925 test "x$as_lineno_1" != "x$as_lineno_2" &&
35926 test "x$as_lineno_3" = "x$as_lineno_2" || {
35927 # Find who we are. Look in the path if we contain no path at all
35928 # relative or not.
35929 case $0 in
35930 *[\\/]* ) as_myself=$0 ;;
35931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35932for as_dir in $PATH
35933do
35934 IFS=$as_save_IFS
35935 test -z "$as_dir" && as_dir=.
35936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35937done
35938
35939 ;;
35940 esac
35941 # We did not find ourselves, most probably we were run as `sh COMMAND'
35942 # in which case we are not to be found in the path.
35943 if test "x$as_myself" = x; then
35944 as_myself=$0
35945 fi
35946 if test ! -f "$as_myself"; then
35947 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35948echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35949 { (exit 1); exit 1; }; }
35950 fi
35951 case $CONFIG_SHELL in
35952 '')
35953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35954for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35955do
35956 IFS=$as_save_IFS
35957 test -z "$as_dir" && as_dir=.
35958 for as_base in sh bash ksh sh5; do
35959 case $as_dir in
35960 /*)
35961 if ("$as_dir/$as_base" -c '
35962 as_lineno_1=$LINENO
35963 as_lineno_2=$LINENO
35964 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35965 test "x$as_lineno_1" != "x$as_lineno_2" &&
35966 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35967 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35968 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35969 CONFIG_SHELL=$as_dir/$as_base
35970 export CONFIG_SHELL
35971 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35972 fi;;
35973 esac
35974 done
35975done
35976;;
35977 esac
35978
35979 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35980 # uniformly replaced by the line number. The first 'sed' inserts a
35981 # line-number line before each line; the second 'sed' does the real
35982 # work. The second script uses 'N' to pair each line-number line
35983 # with the numbered line, and appends trailing '-' during
35984 # substitution so that $LINENO is not a special case at line end.
35985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35986 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35987 sed '=' <$as_myself |
35988 sed '
35989 N
35990 s,$,-,
35991 : loop
35992 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35993 t loop
35994 s,-$,,
35995 s,^['$as_cr_digits']*\n,,
35996 ' >$as_me.lineno &&
35997 chmod +x $as_me.lineno ||
35998 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35999echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36000 { (exit 1); exit 1; }; }
36001
36002 # Don't try to exec as it changes $[0], causing all sort of problems
36003 # (the dirname of $[0] is not the place where we might find the
36004 # original and so on. Autoconf is especially sensible to this).
36005 . ./$as_me.lineno
36006 # Exit status is that of the last command.
36007 exit
36008}
36009
36010
36011case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36012 *c*,-n*) ECHO_N= ECHO_C='
36013' ECHO_T=' ' ;;
36014 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36015 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36016esac
36017
36018if expr a : '\(a\)' >/dev/null 2>&1; then
36019 as_expr=expr
36020else
36021 as_expr=false
36022fi
36023
36024rm -f conf$$ conf$$.exe conf$$.file
36025echo >conf$$.file
36026if ln -s conf$$.file conf$$ 2>/dev/null; then
36027 # We could just check for DJGPP; but this test a) works b) is more generic
36028 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36029 if test -f conf$$.exe; then
36030 # Don't use ln at all; we don't have any links
36031 as_ln_s='cp -p'
36032 else
36033 as_ln_s='ln -s'
36034 fi
36035elif ln conf$$.file conf$$ 2>/dev/null; then
36036 as_ln_s=ln
36037else
36038 as_ln_s='cp -p'
36039fi
36040rm -f conf$$ conf$$.exe conf$$.file
36041
36042if mkdir -p . 2>/dev/null; then
36043 as_mkdir_p=:
36044else
36045 as_mkdir_p=false
36046fi
36047
36048as_executable_p="test -f"
36049
36050# Sed expression to map a string onto a valid CPP name.
36051as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36052
36053# Sed expression to map a string onto a valid variable name.
36054as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36055
36056
36057# IFS
36058# We need space, tab and new line, in precisely that order.
36059as_nl='
36060'
36061IFS=" $as_nl"
36062
36063# CDPATH.
36064$as_unset CDPATH
36065
36066exec 6>&1
36067
36068# Open the log real soon, to keep \$[0] and so on meaningful, and to
36069# report actual input values of CONFIG_FILES etc. instead of their
36070# values after options handling. Logging --version etc. is OK.
36071exec 5>>config.log
36072{
36073 echo
36074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36075## Running $as_me. ##
36076_ASBOX
36077} >&5
36078cat >&5 <<_CSEOF
36079
36080This file was extended by wxWindows $as_me 2.5.0, which was
36081generated by GNU Autoconf 2.57. Invocation command line was
36082
36083 CONFIG_FILES = $CONFIG_FILES
36084 CONFIG_HEADERS = $CONFIG_HEADERS
36085 CONFIG_LINKS = $CONFIG_LINKS
36086 CONFIG_COMMANDS = $CONFIG_COMMANDS
36087 $ $0 $@
36088
36089_CSEOF
36090echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36091echo >&5
36092_ACEOF
36093
36094# Files that config.status was made for.
36095if test -n "$ac_config_files"; then
36096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36097fi
36098
36099if test -n "$ac_config_headers"; then
36100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36101fi
36102
36103if test -n "$ac_config_links"; then
36104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36105fi
36106
36107if test -n "$ac_config_commands"; then
36108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36109fi
36110
36111cat >>$CONFIG_STATUS <<\_ACEOF
36112
36113ac_cs_usage="\
36114\`$as_me' instantiates files from templates according to the
36115current configuration.
36116
36117Usage: $0 [OPTIONS] [FILE]...
36118
36119 -h, --help print this help, then exit
36120 -V, --version print version number, then exit
36121 -q, --quiet do not print progress messages
36122 -d, --debug don't remove temporary files
36123 --recheck update $as_me by reconfiguring in the same conditions
36124 --file=FILE[:TEMPLATE]
36125 instantiate the configuration file FILE
36126 --header=FILE[:TEMPLATE]
36127 instantiate the configuration header FILE
36128
36129Configuration files:
36130$config_files
36131
36132Configuration headers:
36133$config_headers
36134
36135Configuration commands:
36136$config_commands
36137
36138Report bugs to <bug-autoconf@gnu.org>."
36139_ACEOF
36140
36141cat >>$CONFIG_STATUS <<_ACEOF
36142ac_cs_version="\\
36143wxWindows config.status 2.5.0
36144configured by $0, generated by GNU Autoconf 2.57,
36145 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36146
36147Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36148Free Software Foundation, Inc.
36149This config.status script is free software; the Free Software Foundation
36150gives unlimited permission to copy, distribute and modify it."
36151srcdir=$srcdir
36152INSTALL="$INSTALL"
36153_ACEOF
36154
36155cat >>$CONFIG_STATUS <<\_ACEOF
36156# If no file are specified by the user, then we need to provide default
36157# value. By we need to know if files were specified by the user.
36158ac_need_defaults=:
36159while test $# != 0
36160do
36161 case $1 in
36162 --*=*)
36163 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36164 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36165 ac_shift=:
36166 ;;
36167 -*)
36168 ac_option=$1
36169 ac_optarg=$2
36170 ac_shift=shift
36171 ;;
36172 *) # This is not an option, so the user has probably given explicit
36173 # arguments.
36174 ac_option=$1
36175 ac_need_defaults=false;;
36176 esac
36177
36178 case $ac_option in
36179 # Handling of the options.
36180_ACEOF
36181cat >>$CONFIG_STATUS <<\_ACEOF
36182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36183 ac_cs_recheck=: ;;
36184 --version | --vers* | -V )
36185 echo "$ac_cs_version"; exit 0 ;;
36186 --he | --h)
36187 # Conflict between --help and --header
36188 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36189Try \`$0 --help' for more information." >&5
36190echo "$as_me: error: ambiguous option: $1
36191Try \`$0 --help' for more information." >&2;}
36192 { (exit 1); exit 1; }; };;
36193 --help | --hel | -h )
36194 echo "$ac_cs_usage"; exit 0 ;;
36195 --debug | --d* | -d )
36196 debug=: ;;
36197 --file | --fil | --fi | --f )
36198 $ac_shift
36199 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36200 ac_need_defaults=false;;
36201 --header | --heade | --head | --hea )
36202 $ac_shift
36203 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36204 ac_need_defaults=false;;
36205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36207 ac_cs_silent=: ;;
36208
36209 # This is an error.
36210 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36211Try \`$0 --help' for more information." >&5
36212echo "$as_me: error: unrecognized option: $1
36213Try \`$0 --help' for more information." >&2;}
36214 { (exit 1); exit 1; }; } ;;
36215
36216 *) ac_config_targets="$ac_config_targets $1" ;;
36217
36218 esac
36219 shift
36220done
36221
36222ac_configure_extra_args=
36223
36224if $ac_cs_silent; then
36225 exec 6>/dev/null
36226 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36227fi
36228
e6cc62c6
VS
36229_ACEOF
36230cat >>$CONFIG_STATUS <<_ACEOF
36231if \$ac_cs_recheck; then
36232 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36233 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36234fi
36235
e6cc62c6 36236_ACEOF
fe0895cf 36237
e6cc62c6 36238cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36239#
e6cc62c6 36240# INIT-COMMANDS section.
10f2d63a 36241#
10f2d63a 36242
a0b9e27f 36243
e6cc62c6
VS
36244 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36245 LN_S="${LN_S}"
10f2d63a 36246
10f2d63a 36247
10f2d63a 36248
e6cc62c6 36249_ACEOF
8284b0c5 36250
52127426 36251
247f5006 36252
e6cc62c6
VS
36253cat >>$CONFIG_STATUS <<\_ACEOF
36254for ac_config_target in $ac_config_targets
247f5006 36255do
e6cc62c6
VS
36256 case "$ac_config_target" in
36257 # Handling of arguments.
81345eef
VZ
36258 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36259 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36260 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36261 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36262 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36263 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36265echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36266 { (exit 1); exit 1; }; };;
247f5006
VZ
36267 esac
36268done
36269
e6cc62c6
VS
36270# If the user did not use the arguments to specify the items to instantiate,
36271# then the envvar interface is used. Set only those that are not.
36272# We use the long form for the default assignment because of an extremely
36273# bizarre bug on SunOS 4.1.3.
36274if $ac_need_defaults; then
36275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36278fi
36279
36280# Have a temporary directory for convenience. Make it in the build tree
36281# simply because there is no reason to put it here, and in addition,
36282# creating and moving files from /tmp can sometimes cause problems.
36283# Create a temporary directory, and hook for its removal unless debugging.
36284$debug ||
36285{
36286 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36287 trap '{ (exit 1); exit 1; }' 1 2 13 15
36288}
247f5006 36289
e6cc62c6 36290# Create a (secure) tmp directory for tmp files.
247f5006 36291
e6cc62c6
VS
36292{
36293 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36294 test -n "$tmp" && test -d "$tmp"
36295} ||
36296{
36297 tmp=./confstat$$-$RANDOM
36298 (umask 077 && mkdir $tmp)
36299} ||
36300{
36301 echo "$me: cannot create a temporary directory in ." >&2
36302 { (exit 1); exit 1; }
36303}
36304
36305_ACEOF
36306
36307cat >>$CONFIG_STATUS <<_ACEOF
36308
36309#
36310# CONFIG_FILES section.
36311#
247f5006 36312
e6cc62c6
VS
36313# No need to generate the scripts if there are no CONFIG_FILES.
36314# This happens for instance when ./config.status config.h
36315if test -n "\$CONFIG_FILES"; then
36316 # Protect against being on the right side of a sed subst in config.status.
36317 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36318 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36319s,@SHELL@,$SHELL,;t t
36320s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36321s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36322s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36323s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36324s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36325s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36326s,@exec_prefix@,$exec_prefix,;t t
36327s,@prefix@,$prefix,;t t
36328s,@program_transform_name@,$program_transform_name,;t t
36329s,@bindir@,$bindir,;t t
36330s,@sbindir@,$sbindir,;t t
36331s,@libexecdir@,$libexecdir,;t t
36332s,@datadir@,$datadir,;t t
36333s,@sysconfdir@,$sysconfdir,;t t
36334s,@sharedstatedir@,$sharedstatedir,;t t
36335s,@localstatedir@,$localstatedir,;t t
36336s,@libdir@,$libdir,;t t
36337s,@includedir@,$includedir,;t t
36338s,@oldincludedir@,$oldincludedir,;t t
36339s,@infodir@,$infodir,;t t
36340s,@mandir@,$mandir,;t t
36341s,@build_alias@,$build_alias,;t t
36342s,@host_alias@,$host_alias,;t t
36343s,@target_alias@,$target_alias,;t t
36344s,@DEFS@,$DEFS,;t t
36345s,@ECHO_C@,$ECHO_C,;t t
36346s,@ECHO_N@,$ECHO_N,;t t
36347s,@ECHO_T@,$ECHO_T,;t t
36348s,@LIBS@,$LIBS,;t t
36349s,@build@,$build,;t t
36350s,@build_cpu@,$build_cpu,;t t
36351s,@build_vendor@,$build_vendor,;t t
36352s,@build_os@,$build_os,;t t
36353s,@host@,$host,;t t
36354s,@host_cpu@,$host_cpu,;t t
36355s,@host_vendor@,$host_vendor,;t t
36356s,@host_os@,$host_os,;t t
36357s,@target@,$target,;t t
36358s,@target_cpu@,$target_cpu,;t t
36359s,@target_vendor@,$target_vendor,;t t
36360s,@target_os@,$target_os,;t t
36361s,@CC@,$CC,;t t
36362s,@CFLAGS@,$CFLAGS,;t t
36363s,@LDFLAGS@,$LDFLAGS,;t t
36364s,@CPPFLAGS@,$CPPFLAGS,;t t
36365s,@ac_ct_CC@,$ac_ct_CC,;t t
36366s,@EXEEXT@,$EXEEXT,;t t
36367s,@OBJEXT@,$OBJEXT,;t t
36368s,@CPP@,$CPP,;t t
36369s,@EGREP@,$EGREP,;t t
36370s,@CXX@,$CXX,;t t
36371s,@CXXFLAGS@,$CXXFLAGS,;t t
36372s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36373s,@RANLIB@,$RANLIB,;t t
36374s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36375s,@AR@,$AR,;t t
36376s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36377s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36378s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36379s,@STRIP@,$STRIP,;t t
36380s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36381s,@YACC@,$YACC,;t t
36382s,@LEX@,$LEX,;t t
36383s,@LEXLIB@,$LEXLIB,;t t
36384s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36385s,@LN_S@,$LN_S,;t t
36386s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36387s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36388s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36389s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36390s,@GTK_LIBS@,$GTK_LIBS,;t t
36391s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36392s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36393s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36394s,@X_CFLAGS@,$X_CFLAGS,;t t
36395s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36396s,@X_LIBS@,$X_LIBS,;t t
36397s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36398s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36399s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36400s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36401s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36402s,@RESCOMP@,$RESCOMP,;t t
36403s,@DEREZ@,$DEREZ,;t t
36404s,@SETFILE@,$SETFILE,;t t
36405s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36406s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36407s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36408s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36409s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36410s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36411s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36412s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36413s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36414s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36415s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36416s,@VENDOR@,$VENDOR,;t t
36417s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36418s,@WXUNIV@,$WXUNIV,;t t
36419s,@MONOLITHIC@,$MONOLITHIC,;t t
36420s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36421s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36422s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36423s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36424s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36425s,@UNICODE@,$UNICODE,;t t
36426s,@BUILD@,$BUILD,;t t
6c67131a
VS
36427s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36428s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36429s,@SHARED@,$SHARED,;t t
36430s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36431s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36432s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36433s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36434s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36435s,@SET_MAKE@,$SET_MAKE,;t t
36436s,@MAKE_SET@,$MAKE_SET,;t t
36437s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36438s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36439s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36440s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36441s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36442s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36443s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36444s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36445s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36446s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36447s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36448s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36449s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36450s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36451s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36452s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36453s,@PIC_FLAG@,$PIC_FLAG,;t t
36454s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36455s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36456s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36457s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36458s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36459s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36460s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36461s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36462s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36463s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36464s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36465s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36466s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36467s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36468s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36469s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36470s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36471s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36472s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36473s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36474s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36475s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36476s,@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 36477s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36478s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36479s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36480s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36481s,@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 36482s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36483s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36484s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36485s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36486s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36487s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36488s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36489s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36490s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36491s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36492s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36493s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36494s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36495s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36496s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36497s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36498s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36499s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36500s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36501s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36502s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36503s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36504s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36505s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36506s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36507s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36508s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36509s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36510s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36511s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36512s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36513s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36514s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36515s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36516s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36517s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36518s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36519s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36520s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36521s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36522s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36523s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36524s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36525s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36526s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36527s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36528s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36529s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36530s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36531s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36532s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36533s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36534s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36535s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36536s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36537s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36538s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36539s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36540s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36541s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36542s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36543s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36544s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36545s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36546s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36547s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36548s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36549s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36550s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36551s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36552s,@LEX_STEM@,$LEX_STEM,;t t
36553s,@PATH_IFS@,$PATH_IFS,;t t
36554s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36555s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36556s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36557s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36558s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36559s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36560s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36561s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36562s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36563s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36564s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36565s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36566s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36567s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36568s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36569s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36570s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36571s,@WX_ALL@,$WX_ALL,;t t
36572s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36573s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36574s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36575s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36576s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36577s,@USE_GUI@,$USE_GUI,;t t
36578s,@AFMINSTALL@,$AFMINSTALL,;t t
36579s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36580s,@TOOLKIT@,$TOOLKIT,;t t
36581s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36582s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36583s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36584s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36585s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36586s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36587s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36588s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36589s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36590s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36591s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36592s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36593s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36594s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36595s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36596s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36597s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36598s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36599s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36600s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36601s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36602s,@GUIDIST@,$GUIDIST,;t t
36603s,@PORT_FILES@,$PORT_FILES,;t t
36604s,@DISTDIR@,$DISTDIR,;t t
36605s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36606s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36607s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36608s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36609s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36610s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36611s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36612s,@RESFLAGS@,$RESFLAGS,;t t
36613s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36614s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36615s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36616s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36617s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36618s,@MACRESCOMP@,$MACRESCOMP,;t t
36619s,@MACSETFILE@,$MACSETFILE,;t t
36620s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36621s,@GCC@,$GCC,;t t
36622s,@DLLTOOL@,$DLLTOOL,;t t
36623s,@AS@,$AS,;t t
36624s,@NM@,$NM,;t t
36625s,@LD@,$LD,;t t
36626s,@MAKEINFO@,$MAKEINFO,;t t
36627s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36628s,@LIBOBJS@,$LIBOBJS,;t t
36629s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36630CEOF
36631
e6cc62c6
VS
36632_ACEOF
36633
36634 cat >>$CONFIG_STATUS <<\_ACEOF
36635 # Split the substitutions into bite-sized pieces for seds with
36636 # small command number limits, like on Digital OSF/1 and HP-UX.
36637 ac_max_sed_lines=48
36638 ac_sed_frag=1 # Number of current file.
36639 ac_beg=1 # First line for current file.
36640 ac_end=$ac_max_sed_lines # Line after last line for current file.
36641 ac_more_lines=:
36642 ac_sed_cmds=
36643 while $ac_more_lines; do
36644 if test $ac_beg -gt 1; then
36645 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36646 else
e6cc62c6
VS
36647 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36648 fi
36649 if test ! -s $tmp/subs.frag; then
36650 ac_more_lines=false
36651 else
36652 # The purpose of the label and of the branching condition is to
36653 # speed up the sed processing (if there are no `@' at all, there
36654 # is no need to browse any of the substitutions).
36655 # These are the two extra sed commands mentioned above.
36656 (echo ':t
36657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36658 if test -z "$ac_sed_cmds"; then
36659 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36660 else
36661 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36662 fi
36663 ac_sed_frag=`expr $ac_sed_frag + 1`
36664 ac_beg=$ac_end
36665 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36666 fi
e6cc62c6
VS
36667 done
36668 if test -z "$ac_sed_cmds"; then
36669 ac_sed_cmds=cat
10f2d63a 36670 fi
e6cc62c6 36671fi # test -n "$CONFIG_FILES"
10f2d63a 36672
e6cc62c6
VS
36673_ACEOF
36674cat >>$CONFIG_STATUS <<\_ACEOF
36675for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36677 case $ac_file in
36678 - | *:- | *:-:* ) # input from stdin
36679 cat >$tmp/stdin
36680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36684 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36685 esac
247f5006 36686
e6cc62c6
VS
36687 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36688 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36690 X"$ac_file" : 'X\(//\)[^/]' \| \
36691 X"$ac_file" : 'X\(//\)$' \| \
36692 X"$ac_file" : 'X\(/\)' \| \
36693 . : '\(.\)' 2>/dev/null ||
36694echo X"$ac_file" |
36695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36697 /^X\(\/\/\)$/{ s//\1/; q; }
36698 /^X\(\/\).*/{ s//\1/; q; }
36699 s/.*/./; q'`
36700 { if $as_mkdir_p; then
36701 mkdir -p "$ac_dir"
a0b9e27f 36702 else
e6cc62c6
VS
36703 as_dir="$ac_dir"
36704 as_dirs=
36705 while test ! -d "$as_dir"; do
36706 as_dirs="$as_dir $as_dirs"
36707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36709 X"$as_dir" : 'X\(//\)[^/]' \| \
36710 X"$as_dir" : 'X\(//\)$' \| \
36711 X"$as_dir" : 'X\(/\)' \| \
36712 . : '\(.\)' 2>/dev/null ||
36713echo X"$as_dir" |
36714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36716 /^X\(\/\/\)$/{ s//\1/; q; }
36717 /^X\(\/\).*/{ s//\1/; q; }
36718 s/.*/./; q'`
36719 done
36720 test ! -n "$as_dirs" || mkdir $as_dirs
36721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36722echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36723 { (exit 1); exit 1; }; }; }
36724
36725 ac_builddir=.
36726
36727if test "$ac_dir" != .; then
36728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36729 # A "../" for each directory in $ac_dir_suffix.
36730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36731else
36732 ac_dir_suffix= ac_top_builddir=
36733fi
247f5006 36734
e6cc62c6
VS
36735case $srcdir in
36736 .) # No --srcdir option. We are building in place.
36737 ac_srcdir=.
36738 if test -z "$ac_top_builddir"; then
36739 ac_top_srcdir=.
36740 else
36741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36742 fi ;;
36743 [\\/]* | ?:[\\/]* ) # Absolute path.
36744 ac_srcdir=$srcdir$ac_dir_suffix;
36745 ac_top_srcdir=$srcdir ;;
247f5006 36746 *) # Relative path.
e6cc62c6
VS
36747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36749esac
36750# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36751# absolute.
36752ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36753ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36754ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36755ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36756
247f5006 36757
e6cc62c6
VS
36758 case $INSTALL in
36759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36760 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36761 esac
247f5006 36762
e6cc62c6
VS
36763 if test x"$ac_file" != x-; then
36764 { echo "$as_me:$LINENO: creating $ac_file" >&5
36765echo "$as_me: creating $ac_file" >&6;}
36766 rm -f "$ac_file"
36767 fi
36768 # Let's still pretend it is `configure' which instantiates (i.e., don't
36769 # use $as_me), people would be surprised to read:
36770 # /* config.h. Generated by config.status. */
36771 if test x"$ac_file" = x-; then
36772 configure_input=
36773 else
36774 configure_input="$ac_file. "
36775 fi
36776 configure_input=$configure_input"Generated from `echo $ac_file_in |
36777 sed 's,.*/,,'` by configure."
36778
36779 # First look for the input files in the build tree, otherwise in the
36780 # src tree.
36781 ac_file_inputs=`IFS=:
36782 for f in $ac_file_in; do
36783 case $f in
36784 -) echo $tmp/stdin ;;
36785 [\\/$]*)
36786 # Absolute (can't be DOS-style, as IFS=:)
36787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36788echo "$as_me: error: cannot find input file: $f" >&2;}
36789 { (exit 1); exit 1; }; }
36790 echo $f;;
36791 *) # Relative
36792 if test -f "$f"; then
36793 # Build tree
36794 echo $f
36795 elif test -f "$srcdir/$f"; then
36796 # Source tree
36797 echo $srcdir/$f
36798 else
36799 # /dev/null tree
36800 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36801echo "$as_me: error: cannot find input file: $f" >&2;}
36802 { (exit 1); exit 1; }; }
36803 fi;;
36804 esac
36805 done` || { (exit 1); exit 1; }
36806_ACEOF
36807cat >>$CONFIG_STATUS <<_ACEOF
36808 sed "$ac_vpsub
36809$extrasub
36810_ACEOF
36811cat >>$CONFIG_STATUS <<\_ACEOF
36812:t
36813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36814s,@configure_input@,$configure_input,;t t
36815s,@srcdir@,$ac_srcdir,;t t
36816s,@abs_srcdir@,$ac_abs_srcdir,;t t
36817s,@top_srcdir@,$ac_top_srcdir,;t t
36818s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36819s,@builddir@,$ac_builddir,;t t
36820s,@abs_builddir@,$ac_abs_builddir,;t t
36821s,@top_builddir@,$ac_top_builddir,;t t
36822s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36823s,@INSTALL@,$ac_INSTALL,;t t
36824" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36825 rm -f $tmp/stdin
36826 if test x"$ac_file" != x-; then
36827 mv $tmp/out $ac_file
36828 else
36829 cat $tmp/out
36830 rm -f $tmp/out
36831 fi
36832
36833done
36834_ACEOF
36835cat >>$CONFIG_STATUS <<\_ACEOF
36836
36837#
36838# CONFIG_HEADER section.
36839#
10f2d63a
VZ
36840
36841# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36842# NAME is the cpp macro being defined and VALUE is the value it is being given.
36843#
36844# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36845ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36846ac_dB='[ ].*$,\1#\2'
36847ac_dC=' '
36848ac_dD=',;t'
36849# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36850ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36851ac_uB='$,\1#\2define\3'
10f2d63a 36852ac_uC=' '
e6cc62c6
VS
36853ac_uD=',;t'
36854
36855for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36857 case $ac_file in
36858 - | *:- | *:-:* ) # input from stdin
36859 cat >$tmp/stdin
36860 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36862 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36864 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36865 esac
36866
e6cc62c6
VS
36867 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36868echo "$as_me: creating $ac_file" >&6;}
36869
36870 # First look for the input files in the build tree, otherwise in the
36871 # src tree.
36872 ac_file_inputs=`IFS=:
36873 for f in $ac_file_in; do
36874 case $f in
36875 -) echo $tmp/stdin ;;
36876 [\\/$]*)
36877 # Absolute (can't be DOS-style, as IFS=:)
36878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36879echo "$as_me: error: cannot find input file: $f" >&2;}
36880 { (exit 1); exit 1; }; }
36881 echo $f;;
36882 *) # Relative
36883 if test -f "$f"; then
36884 # Build tree
36885 echo $f
36886 elif test -f "$srcdir/$f"; then
36887 # Source tree
36888 echo $srcdir/$f
36889 else
36890 # /dev/null tree
36891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36892echo "$as_me: error: cannot find input file: $f" >&2;}
36893 { (exit 1); exit 1; }; }
36894 fi;;
36895 esac
36896 done` || { (exit 1); exit 1; }
36897 # Remove the trailing spaces.
36898 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36899
36900_ACEOF
36901
36902# Transform confdefs.h into two sed scripts, `conftest.defines' and
36903# `conftest.undefs', that substitutes the proper values into
36904# config.h.in to produce config.h. The first handles `#define'
36905# templates, and the second `#undef' templates.
36906# And first: Protect against being on the right side of a sed subst in
36907# config.status. Protect against being in an unquoted here document
36908# in config.status.
36909rm -f conftest.defines conftest.undefs
36910# Using a here document instead of a string reduces the quoting nightmare.
36911# Putting comments in sed scripts is not portable.
36912#
36913# `end' is used to avoid that the second main sed command (meant for
36914# 0-ary CPP macros) applies to n-ary macro definitions.
36915# See the Autoconf documentation for `clear'.
36916cat >confdef2sed.sed <<\_ACEOF
36917s/[\\&,]/\\&/g
36918s,[\\$`],\\&,g
36919t clear
36920: clear
36921s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36922t end
36923s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36924: end
36925_ACEOF
36926# If some macros were called several times there might be several times
36927# the same #defines, which is useless. Nevertheless, we may not want to
36928# sort them, since we want the *last* AC-DEFINE to be honored.
36929uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36930sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36931rm -f confdef2sed.sed
10f2d63a
VZ
36932
36933# This sed command replaces #undef with comments. This is necessary, for
36934# example, in the case of _POSIX_SOURCE, which is predefined and required
36935# on some systems where configure will not decide to define it.
e6cc62c6
VS
36936cat >>conftest.undefs <<\_ACEOF
36937s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36938_ACEOF
36939
36940# Break up conftest.defines because some shells have a limit on the size
36941# of here documents, and old seds have small limits too (100 cmds).
36942echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36943echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36944echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36945echo ' :' >>$CONFIG_STATUS
36946rm -f conftest.tail
36947while grep . conftest.defines >/dev/null
36948do
36949 # Write a limited-size here document to $tmp/defines.sed.
36950 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36951 # Speed up: don't consider the non `#define' lines.
36952 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36953 # Work around the forget-to-reset-the-flag bug.
36954 echo 't clr' >>$CONFIG_STATUS
36955 echo ': clr' >>$CONFIG_STATUS
36956 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36957 echo 'CEOF
36958 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36959 rm -f $tmp/in
36960 mv $tmp/out $tmp/in
36961' >>$CONFIG_STATUS
36962 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36963 rm -f conftest.defines
36964 mv conftest.tail conftest.defines
36965done
36966rm -f conftest.defines
36967echo ' fi # grep' >>$CONFIG_STATUS
36968echo >>$CONFIG_STATUS
10f2d63a 36969
e6cc62c6
VS
36970# Break up conftest.undefs because some shells have a limit on the size
36971# of here documents, and old seds have small limits too (100 cmds).
36972echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36973rm -f conftest.tail
e6cc62c6 36974while grep . conftest.undefs >/dev/null
10f2d63a 36975do
e6cc62c6
VS
36976 # Write a limited-size here document to $tmp/undefs.sed.
36977 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36978 # Speed up: don't consider the non `#undef'
36979 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36980 # Work around the forget-to-reset-the-flag bug.
36981 echo 't clr' >>$CONFIG_STATUS
36982 echo ': clr' >>$CONFIG_STATUS
36983 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36984 echo 'CEOF
e6cc62c6
VS
36985 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36986 rm -f $tmp/in
36987 mv $tmp/out $tmp/in
36988' >>$CONFIG_STATUS
36989 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36990 rm -f conftest.undefs
36991 mv conftest.tail conftest.undefs
10f2d63a 36992done
e6cc62c6
VS
36993rm -f conftest.undefs
36994
36995cat >>$CONFIG_STATUS <<\_ACEOF
36996 # Let's still pretend it is `configure' which instantiates (i.e., don't
36997 # use $as_me), people would be surprised to read:
36998 # /* config.h. Generated by config.status. */
36999 if test x"$ac_file" = x-; then
37000 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37001 else
e6cc62c6 37002 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37003 fi
e6cc62c6
VS
37004 cat $tmp/in >>$tmp/config.h
37005 rm -f $tmp/in
37006 if test x"$ac_file" != x-; then
37007 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37008 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37009echo "$as_me: $ac_file is unchanged" >&6;}
37010 else
37011 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37012$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37013 X"$ac_file" : 'X\(//\)[^/]' \| \
37014 X"$ac_file" : 'X\(//\)$' \| \
37015 X"$ac_file" : 'X\(/\)' \| \
37016 . : '\(.\)' 2>/dev/null ||
37017echo X"$ac_file" |
37018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37020 /^X\(\/\/\)$/{ s//\1/; q; }
37021 /^X\(\/\).*/{ s//\1/; q; }
37022 s/.*/./; q'`
37023 { if $as_mkdir_p; then
37024 mkdir -p "$ac_dir"
37025 else
37026 as_dir="$ac_dir"
37027 as_dirs=
37028 while test ! -d "$as_dir"; do
37029 as_dirs="$as_dir $as_dirs"
37030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37032 X"$as_dir" : 'X\(//\)[^/]' \| \
37033 X"$as_dir" : 'X\(//\)$' \| \
37034 X"$as_dir" : 'X\(/\)' \| \
37035 . : '\(.\)' 2>/dev/null ||
37036echo X"$as_dir" |
37037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37039 /^X\(\/\/\)$/{ s//\1/; q; }
37040 /^X\(\/\).*/{ s//\1/; q; }
37041 s/.*/./; q'`
37042 done
37043 test ! -n "$as_dirs" || mkdir $as_dirs
37044 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37045echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37046 { (exit 1); exit 1; }; }; }
a0b9e27f 37047
e6cc62c6
VS
37048 rm -f $ac_file
37049 mv $tmp/config.h $ac_file
37050 fi
37051 else
37052 cat $tmp/config.h
37053 rm -f $tmp/config.h
37054 fi
37055done
37056_ACEOF
37057cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37058
e6cc62c6
VS
37059#
37060# CONFIG_COMMANDS section.
37061#
37062for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37063 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37064 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37065 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37066$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37067 X"$ac_dest" : 'X\(//\)[^/]' \| \
37068 X"$ac_dest" : 'X\(//\)$' \| \
37069 X"$ac_dest" : 'X\(/\)' \| \
37070 . : '\(.\)' 2>/dev/null ||
37071echo X"$ac_dest" |
37072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37074 /^X\(\/\/\)$/{ s//\1/; q; }
37075 /^X\(\/\).*/{ s//\1/; q; }
37076 s/.*/./; q'`
37077 ac_builddir=.
37078
37079if test "$ac_dir" != .; then
37080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37081 # A "../" for each directory in $ac_dir_suffix.
37082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37083else
37084 ac_dir_suffix= ac_top_builddir=
37085fi
37086
37087case $srcdir in
37088 .) # No --srcdir option. We are building in place.
37089 ac_srcdir=.
37090 if test -z "$ac_top_builddir"; then
37091 ac_top_srcdir=.
37092 else
37093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37094 fi ;;
37095 [\\/]* | ?:[\\/]* ) # Absolute path.
37096 ac_srcdir=$srcdir$ac_dir_suffix;
37097 ac_top_srcdir=$srcdir ;;
37098 *) # Relative path.
37099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37101esac
37102# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37103# absolute.
37104ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37105ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37106ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37107ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37108
37109
37110 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37111echo "$as_me: executing $ac_dest commands" >&6;}
37112 case $ac_dest in
37113 default )
652d930d 37114 if test ! -h wx-config; then
991a5759 37115 chmod +x wx-config
3a922bb4
RL
37116 mv wx-config wx${TOOLCHAIN_NAME}-config
37117 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37118 fi
665bbe97 37119
00cf1208
RR
37120 if test ! -d lib; then
37121 mkdir lib
37122 fi
37123 if test ! -d lib/wx; then
37124 mkdir lib/wx
37125 fi
37126 if test ! -d lib/wx/include; then
37127 mkdir lib/wx/include
37128 fi
3a922bb4
RL
37129 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37130 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37131 fi
3a922bb4
RL
37132 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37133 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37134 fi
37135 if test -f setup.h; then
3a922bb4 37136 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37137 fi
e6cc62c6
VS
37138 ;;
37139 esac
37140done
37141_ACEOF
2224580a 37142
e6cc62c6 37143cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37144
e6cc62c6
VS
37145{ (exit 0); exit 0; }
37146_ACEOF
37147chmod +x $CONFIG_STATUS
37148ac_clean_files=$ac_clean_files_save
37149
37150
37151# configure is writing to config.log, and then calls config.status.
37152# config.status does its own redirection, appending to config.log.
37153# Unfortunately, on DOS this fails, as config.log is still kept open
37154# by configure, so config.status won't be able to write to it; its
37155# output is simply discarded. So we exec the FD to /dev/null,
37156# effectively closing config.log, so it can be properly (re)opened and
37157# appended to by config.status. When coming back to configure, we
37158# need to make the FD available again.
37159if test "$no_create" != yes; then
37160 ac_cs_success=:
37161 ac_config_status_args=
37162 test "$silent" = yes &&
37163 ac_config_status_args="$ac_config_status_args --quiet"
37164 exec 5>/dev/null
37165 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37166 exec 5>>config.log
37167 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37168 # would make configure fail if this is the last instruction.
37169 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37170fi
37171
672abd7a
VS
37172#
37173# CONFIG_SUBDIRS section.
37174#
37175if test "$no_recursion" != yes; then
37176
37177 # Remove --cache-file and --srcdir arguments so they do not pile up.
37178 ac_sub_configure_args=
37179 ac_prev=
37180 for ac_arg in $ac_configure_args; do
37181 if test -n "$ac_prev"; then
37182 ac_prev=
37183 continue
37184 fi
37185 case $ac_arg in
37186 -cache-file | --cache-file | --cache-fil | --cache-fi \
37187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37188 ac_prev=cache_file ;;
37189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37191 | --c=*)
37192 ;;
37193 --config-cache | -C)
37194 ;;
37195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37196 ac_prev=srcdir ;;
37197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37198 ;;
37199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37200 ac_prev=prefix ;;
37201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37202 ;;
37203 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37204 esac
37205 done
37206
37207 # Always prepend --prefix to ensure using the same prefix
37208 # in subdir configurations.
37209 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37210
37211 ac_popdir=`pwd`
37212 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37213
37214 # Do not complain, so a configure script can configure whichever
37215 # parts of a large source tree are present.
37216 test -d $srcdir/$ac_dir || continue
37217
37218 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37219echo "$as_me: configuring in $ac_dir" >&6;}
37220 { if $as_mkdir_p; then
37221 mkdir -p "$ac_dir"
37222 else
37223 as_dir="$ac_dir"
37224 as_dirs=
37225 while test ! -d "$as_dir"; do
37226 as_dirs="$as_dir $as_dirs"
37227 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37229 X"$as_dir" : 'X\(//\)[^/]' \| \
37230 X"$as_dir" : 'X\(//\)$' \| \
37231 X"$as_dir" : 'X\(/\)' \| \
37232 . : '\(.\)' 2>/dev/null ||
37233echo X"$as_dir" |
37234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37236 /^X\(\/\/\)$/{ s//\1/; q; }
37237 /^X\(\/\).*/{ s//\1/; q; }
37238 s/.*/./; q'`
37239 done
37240 test ! -n "$as_dirs" || mkdir $as_dirs
37241 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37242echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37243 { (exit 1); exit 1; }; }; }
37244
37245 ac_builddir=.
37246
37247if test "$ac_dir" != .; then
37248 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37249 # A "../" for each directory in $ac_dir_suffix.
37250 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37251else
37252 ac_dir_suffix= ac_top_builddir=
37253fi
37254
37255case $srcdir in
37256 .) # No --srcdir option. We are building in place.
37257 ac_srcdir=.
37258 if test -z "$ac_top_builddir"; then
37259 ac_top_srcdir=.
37260 else
37261 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37262 fi ;;
37263 [\\/]* | ?:[\\/]* ) # Absolute path.
37264 ac_srcdir=$srcdir$ac_dir_suffix;
37265 ac_top_srcdir=$srcdir ;;
37266 *) # Relative path.
37267 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37268 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37269esac
37270# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37271# absolute.
37272ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37273ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37274ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37275ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37276
37277
37278 cd $ac_dir
37279
37280 # Check for guested configure; otherwise get Cygnus style configure.
37281 if test -f $ac_srcdir/configure.gnu; then
37282 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37283 elif test -f $ac_srcdir/configure; then
37284 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37285 elif test -f $ac_srcdir/configure.in; then
37286 ac_sub_configure=$ac_configure
37287 else
37288 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37289echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37290 ac_sub_configure=
37291 fi
37292
37293 # The recursion is here.
37294 if test -n "$ac_sub_configure"; then
37295 # Make the cache file name correct relative to the subdirectory.
37296 case $cache_file in
37297 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37298 *) # Relative path.
37299 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37300 esac
37301
37302 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37303echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37304 # The eval makes quoting arguments work.
37305 eval $ac_sub_configure $ac_sub_configure_args \
37306 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37307 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37308echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37309 { (exit 1); exit 1; }; }
37310 fi
37311
37312 cd $ac_popdir
37313 done
37314fi
37315
8284b0c5 37316
2b5f62a0
VZ
37317echo
37318echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37319echo ""
37320echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37321echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37322
37323echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37324echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37325echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37326
0c98a14e
GD
37327echo " What level of wxWindows compatibility should be enabled?"
37328echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
37329echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37330echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37331
2b5f62a0
VZ
37332echo " Which libraries should wxWindows use?"
37333echo " jpeg ${wxUSE_LIBJPEG-none}"
37334echo " png ${wxUSE_LIBPNG-none}"
37335echo " regex ${wxUSE_REGEX}"
37336echo " tiff ${wxUSE_LIBTIFF-none}"
37337echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37338echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37339echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37340
37341echo ""
37342