]> git.saurik.com Git - wxWidgets.git/blame - configure
* Removed CocoaInternalIdle()
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
e46d2a18 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
3527f29c 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
e46d2a18 796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
e6cc62c6
VS
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
e46d2a18 898 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
901 --enable-apple_ieee use the Apple IEEE codec
902 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
903 --enable-cmdline use wxCmdLineParser class
904 --enable-datetime use wxDateTime class
e6cc62c6 905 --enable-dialupman use dialup network classes
e6cc62c6
VS
906 --enable-dynlib use wxLibrary class for DLL loading
907 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
908 --enable-exceptions build exception-safe library
909 --enable-ffile use wxFFile class
910 --enable-file use wxFile class
911 --enable-filesystem use virtual file systems classes
912 --enable-fontmap use font encodings conversion classes
913 --enable-fs_inet use virtual HTTP/FTP filesystems
914 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
915 --enable-geometry use geometry class
916 --enable-log use logging system
e46d2a18
VS
917 --enable-longlong use wxLongLong class
918 --enable-mimetype use wxMimeTypesManager
919 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
920 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 921 --enable-streams use wxStream etc classes
e46d2a18
VS
922 --enable-std_iostreams use standard C++ stream classes
923 --enable-stopwatch use wxStopWatch class
924 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
925 --enable-textbuf use wxTextBuffer class
926 --enable-textfile use wxTextFile class
e46d2a18 927 --enable-timer use wxTimer class
e6cc62c6 928 --enable-unicode compile wxString with Unicode support
e46d2a18 929 --enable-wave use wxWave class
e6cc62c6 930 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 931 --enable-zipstream use wxZipInputStream
7015ef3a 932 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
0e012a93 970 --enable-listbook use wxListbook class
e6cc62c6
VS
971 --enable-listbox use wxListBox class
972 --enable-listctrl use wxListCtrl class
973 --enable-notebook use wxNotebook class
974 --enable-radiobox use wxRadioBox class
975 --enable-radiobtn use wxRadioButton class
976 --enable-sash use wxSashWindow class
977 --enable-scrollbar use wxScrollBar class and scrollable windows
978 --enable-slider use wxSlider class
979 --enable-spinbtn use wxSpinButton class
980 --enable-spinctrl use wxSpinCtrl class
981 --enable-splitter use wxSplitterWindow class
982 --enable-statbmp use wxStaticBitmap class
983 --enable-statbox use wxStaticBox class
984 --enable-statline use wxStaticLine class
985 --enable-stattext use wxStaticText class
986 --enable-statusbar use wxStatusBar class
987 --enable-tabdialog use wxTabControl class
988 --enable-textctrl use wxTextCtrl class
989 --enable-togglebtn use wxToggleButton class
990 --enable-toolbar use wxToolBar class
991 --enable-tbarnative use native wxToolBar class
992 --enable-tbarsmpl use wxToolBarSimple class
993 --enable-treectrl use wxTreeCtrl class
994 --enable-tipwindow use wxTipWindow class
995 --enable-popupwin use wxPopUpWindow class
996 --enable-commondlg use all common dialogs
997 --enable-choicedlg use wxChoiceDialog
998 --enable-coldlg use wxColourDialog
999 --enable-filedlg use wxFileDialog
1000 --enable-finddlg use wxFindReplaceDialog
1001 --enable-fontdlg use wxFontDialog
1002 --enable-dirdlg use wxDirDialog
1003 --enable-msgdlg use wxMessageDialog
1004 --enable-numberdlg use wxNumberEntryDialog
1005 --enable-splash use wxSplashScreen
1006 --enable-textdlg use wxTextDialog
1007 --enable-tipdlg use startup tips
1008 --enable-progressdlg use wxProgressDialog
1009 --enable-wizarddlg use wxWizard
1010 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1011 --enable-miniframe use wxMiniFrame class
1012 --enable-tooltips use wxToolTip class
1013 --enable-splines use spline drawing code
1014 --enable-validators use wxValidator and derived classes
1015 --enable-busyinfo use wxBusyInfo
1016 --enable-joystick use wxJoystick (Linux only)
1017 --enable-metafiles use wxMetaFile (Windows only)
1018 --enable-dragimage use wxDragImage
1019 --enable-accessibility enable accessibility support
1020 --enable-palette use wxPalette class
1021 --enable-image use wxImage class
1022 --enable-gif use gif images (GIF file format)
1023 --enable-pcx use pcx images (PCX file format)
1024 --enable-iff use iff images (IFF file format)
1025 --enable-pnm use pnm images (PNM file format)
1026 --enable-xpm use xpm images (XPM file format)
1027 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1028 --enable-official_build official build of wxWindows (win32 DLL only)
1029 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1030 --disable-largefile omit support for large files
1031 --disable-gtktest do not try to compile and run a test GTK+ program
1032 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1033 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1034
1035Optional Packages:
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gtk use GTK+
1039 --with-motif use Motif/Lesstif
1040 --with-mac use Mac OS X
1041 --with-cocoa use Cocoa
1042 --with-wine use Wine
1043 --with-msw use MS-Windows
1044 --with-pm use OS/2 Presentation Manager
1045 --with-mgl use SciTech MGL
1046 --with-microwin use MicroWindows
1047 --with-x11 use X11
1048 --with-libpng use libpng (PNG image format)
1049 --with-libjpeg use libjpeg (JPEG file format)
1050 --with-libtiff use libtiff (TIFF file format)
3527f29c 1051 --with-libmspack use libmspack (CHM help files loading)
e6cc62c6
VS
1052 --with-opengl use OpenGL (or Mesa)
1053 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1054 --with-regex enable support for wxRegEx class
1055 --with-zlib use zlib for LZW compression
1056 --with-odbc use the IODBC and wxODBC classes
672abd7a 1057 --with-expat enable XML support using expat parser
e6cc62c6
VS
1058 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1059 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1060 --with-x use the X Window System
1061 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1062
1063Some influential environment variables:
1064 CC C compiler command
1065 CFLAGS C compiler flags
1066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1067 nonstandard directory <lib dir>
1068 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069 headers in a nonstandard directory <include dir>
1070 CPP C preprocessor
1071 CXX C++ compiler command
1072 CXXFLAGS C++ compiler flags
1073 CXXCPP C++ preprocessor
1074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <wx-dev@lists.wxwindows.org>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094 ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
1112# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1113# absolute.
1114ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1115ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1116ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1117ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1118
1119 cd $ac_dir
1120 # Check for guested configure; otherwise get Cygnus style configure.
1121 if test -f $ac_srcdir/configure.gnu; then
1122 echo
1123 $SHELL $ac_srcdir/configure.gnu --help=recursive
1124 elif test -f $ac_srcdir/configure; then
1125 echo
1126 $SHELL $ac_srcdir/configure --help=recursive
1127 elif test -f $ac_srcdir/configure.ac ||
1128 test -f $ac_srcdir/configure.in; then
1129 echo
1130 $ac_configure --help
1131 else
1132 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1133 fi
1134 cd $ac_popdir
1135 done
1136fi
8284b0c5 1137
e6cc62c6
VS
1138test -n "$ac_init_help" && exit 0
1139if $ac_init_version; then
1140 cat <<\_ACEOF
e46d2a18 1141wxWindows configure 2.5.1
e6cc62c6 1142generated by GNU Autoconf 2.57
10f2d63a 1143
e6cc62c6
VS
1144Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1145Free Software Foundation, Inc.
1146This configure script is free software; the Free Software Foundation
1147gives unlimited permission to copy, distribute and modify it.
1148_ACEOF
1149 exit 0
7c66a493 1150fi
e6cc62c6
VS
1151exec 5>config.log
1152cat >&5 <<_ACEOF
1153This file contains any messages produced by compilers while
1154running configure, to aid debugging if configure makes a mistake.
1155
e46d2a18 1156It was created by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
1157generated by GNU Autoconf 2.57. Invocation command line was
1158
1159 $ $0 $@
1160
1161_ACEOF
1162{
1163cat <<_ASUNAME
1164## --------- ##
1165## Platform. ##
1166## --------- ##
1167
1168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
1174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176
1177/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1178/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1181/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1182/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1183/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184
1185_ASUNAME
1186
1187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188for as_dir in $PATH
1189do
1190 IFS=$as_save_IFS
1191 test -z "$as_dir" && as_dir=.
1192 echo "PATH: $as_dir"
1193done
1194
1195} >&5
1196
1197cat >&5 <<_ACEOF
1198
1199
1200## ----------- ##
1201## Core tests. ##
1202## ----------- ##
1203
1204_ACEOF
1205
1206
1207# Keep a trace of the command line.
1208# Strip out --no-create and --no-recursion so they do not pile up.
1209# Strip out --silent because we don't want to record it for future runs.
1210# Also quote any args containing shell meta-characters.
1211# Make two passes to allow for proper duplicate-argument suppression.
1212ac_configure_args=
1213ac_configure_args0=
1214ac_configure_args1=
1215ac_sep=
1216ac_must_keep_next=false
1217for ac_pass in 1 2
1218do
1219 for ac_arg
1220 do
1221 case $ac_arg in
1222 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 continue ;;
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 esac
1229 case $ac_pass in
1230 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 2)
1232 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233 if test $ac_must_keep_next = true; then
1234 ac_must_keep_next=false # Got value, back to normal.
1235 else
1236 case $ac_arg in
1237 *=* | --config-cache | -C | -disable-* | --disable-* \
1238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240 | -with-* | --with-* | -without-* | --without-* | --x)
1241 case "$ac_configure_args0 " in
1242 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 esac
1244 ;;
1245 -* ) ac_must_keep_next=true ;;
1246 esac
1247 fi
1248 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249 # Get rid of the leading space.
1250 ac_sep=" "
1251 ;;
1252 esac
1253 done
1254done
1255$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
1258# When interrupted or exit'd, cleanup temporary files, and complete
1259# config.log. We remove comments because anyway the quotes in there
1260# would cause problems or look ugly.
1261# WARNING: Be sure not to use single quotes in there, as some shells,
1262# such as our DU 5.0 friend, will then `close' the trap.
1263trap 'exit_status=$?
1264 # Save into config.log some information that might help in debugging.
1265 {
1266 echo
1267
1268 cat <<\_ASBOX
1269## ---------------- ##
1270## Cache variables. ##
1271## ---------------- ##
1272_ASBOX
1273 echo
1274 # The following way of writing the cache mishandles newlines in values,
1275{
1276 (set) 2>&1 |
1277 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 *ac_space=\ *)
1279 sed -n \
1280 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282 ;;
1283 *)
1284 sed -n \
1285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ;;
1287 esac;
1288}
1289 echo
1290
1291 cat <<\_ASBOX
1292## ----------------- ##
1293## Output variables. ##
1294## ----------------- ##
1295_ASBOX
1296 echo
1297 for ac_var in $ac_subst_vars
1298 do
1299 eval ac_val=$`echo $ac_var`
1300 echo "$ac_var='"'"'$ac_val'"'"'"
1301 done | sort
1302 echo
1303
1304 if test -n "$ac_subst_files"; then
1305 cat <<\_ASBOX
1306## ------------- ##
1307## Output files. ##
1308## ------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_files
1312 do
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1315 done | sort
1316 echo
1317 fi
1318
1319 if test -s confdefs.h; then
1320 cat <<\_ASBOX
1321## ----------- ##
1322## confdefs.h. ##
1323## ----------- ##
1324_ASBOX
1325 echo
1326 sed "/^$/d" confdefs.h | sort
1327 echo
1328 fi
1329 test "$ac_signal" != 0 &&
1330 echo "$as_me: caught signal $ac_signal"
1331 echo "$as_me: exit $exit_status"
1332 } >&5
1333 rm -f core core.* *.core &&
1334 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 exit $exit_status
1336 ' 0
1337for ac_signal in 1 2 13 15; do
1338 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339done
1340ac_signal=0
1341
1342# confdefs.h avoids OS command line length limits that DEFS can exceed.
1343rm -rf conftest* confdefs.h
1344# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345echo >confdefs.h
1346
1347# Predefined preprocessor variables.
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_NAME "$PACKAGE_NAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_VERSION "$PACKAGE_VERSION"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_STRING "$PACKAGE_STRING"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371_ACEOF
1372
1373
1374# Let the site file select an alternate cache file if it wants to.
1375# Prefer explicitly selected file to automatically selected ones.
1376if test -z "$CONFIG_SITE"; then
1377 if test "x$prefix" != xNONE; then
1378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379 else
1380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 fi
1382fi
1383for ac_site_file in $CONFIG_SITE; do
1384 if test -r "$ac_site_file"; then
1385 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386echo "$as_me: loading site script $ac_site_file" >&6;}
1387 sed 's/^/| /' "$ac_site_file" >&5
1388 . "$ac_site_file"
1389 fi
1390done
1391
1392if test -r "$cache_file"; then
1393 # Some versions of bash will fail to source /dev/null (special
1394 # files actually), so we avoid doing that.
1395 if test -f "$cache_file"; then
1396 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397echo "$as_me: loading cache $cache_file" >&6;}
1398 case $cache_file in
1399 [\\/]* | ?:[\\/]* ) . $cache_file;;
1400 *) . ./$cache_file;;
1401 esac
1402 fi
1403else
1404 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405echo "$as_me: creating cache $cache_file" >&6;}
1406 >$cache_file
1407fi
1408
1409# Check that the precious variables saved in the cache have kept the same
1410# value.
1411ac_cache_corrupted=false
1412for ac_var in `(set) 2>&1 |
1413 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415 eval ac_new_set=\$ac_env_${ac_var}_set
1416 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417 eval ac_new_val="\$ac_env_${ac_var}_value"
1418 case $ac_old_set,$ac_new_set in
1419 set,)
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1423 ,set)
1424 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426 ac_cache_corrupted=: ;;
1427 ,);;
1428 *)
1429 if test "x$ac_old_val" != "x$ac_new_val"; then
1430 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1431echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1432 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1433echo "$as_me: former value: $ac_old_val" >&2;}
1434 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1435echo "$as_me: current value: $ac_new_val" >&2;}
1436 ac_cache_corrupted=:
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457 { (exit 1); exit 1; }; }
1458fi
1459
1460ac_ext=c
1461ac_cpp='$CPP $CPPFLAGS'
1462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
698dcdb6 1482
8284b0c5 1483
7c66a493 1484
a0b9e27f
MB
1485
1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
a0b9e27f 1491
a0b9e27f 1492
e6cc62c6
VS
1493
1494
1495ac_aux_dir=
1496for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510done
1511if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520# Make sure we can run config.sub.
1521$ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526echo "$as_me:$LINENO: checking build system type" >&5
1527echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 ac_cv_build_alias=$build_alias
1532test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545echo "${ECHO_T}$ac_cv_build" >&6
1546build=$ac_cv_build
1547build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking host system type" >&5
1553echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 ac_cv_host_alias=$host_alias
1558test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567echo "${ECHO_T}$ac_cv_host" >&6
1568host=$ac_cv_host
1569host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking target system type" >&5
1575echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_target_alias=$target_alias
1580test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589echo "${ECHO_T}$ac_cv_target" >&6
1590target=$ac_cv_target
1591target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596# The aliases save the names the user supplied, while $host etc.
1597# will get canonicalized.
1598test -n "$target_alias" &&
7c66a493
VZ
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
8284b0c5
MB
1602
1603
a0b9e27f 1604
10f2d63a 1605WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1606WX_MINOR_VERSION_NUMBER=5
e46d2a18 1607WX_RELEASE_NUMBER=1
10f2d63a 1608
10f2d63a 1609WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1610WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1611
978f1259
RL
1612WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1613
7015ef3a 1614WX_CURRENT=1
6426998c
RL
1615WX_REVISION=0
1616WX_AGE=0
1617
8284b0c5
MB
1618
1619
10f2d63a 1620USE_UNIX=1
73d617c9 1621USE_OS2=0
10f2d63a 1622USE_WIN32=0
f9bc1684 1623USE_DOS=0
b12915c1 1624USE_BEOS=0
1216f52d 1625USE_MAC=0
b12915c1 1626
10f2d63a 1627USE_AIX=
fe0895cf
VS
1628USE_BSD= USE_DARWIN= USE_FREEBSD=
1629USE_GNU= USE_HPUX=
89e3b3e4 1630USE_LINUX=
f6bcfd97 1631USE_NETBSD=
89e3b3e4 1632USE_OPENBSD=
fe0895cf
VS
1633USE_OSF= USE_SGI=
1634USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1635USE_ULTRIX=
89e3b3e4
VZ
1636USE_UNIXWARE=
1637
1638USE_ALPHA=
10f2d63a 1639
ab9b9eab
VZ
1640NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1641
ac0c4cc3 1642ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1643
ac0c4cc3 1644DEFAULT_wxUSE_COCOA=0
10f2d63a 1645DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1646DEFAULT_wxUSE_MAC=0
1647DEFAULT_wxUSE_MGL=0
1725144d 1648DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1649DEFAULT_wxUSE_MOTIF=0
1650DEFAULT_wxUSE_MSW=0
e07802fc 1651DEFAULT_wxUSE_PM=0
f79bd02d 1652DEFAULT_wxUSE_X11=0
10f2d63a 1653
ac0c4cc3 1654DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1655DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1656DEFAULT_DEFAULT_wxUSE_MAC=0
1657DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1658DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1659DEFAULT_DEFAULT_wxUSE_MOTIF=0
1660DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1661DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1662DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1663
d6a55c4b 1664PROGRAM_EXT=
3a922bb4 1665SO_SUFFIX=so
fe0895cf 1666SAMPLES_RPATH_FLAG=
0f1bc9c2 1667SAMPLES_RPATH_POSTLINK=
d6a55c4b 1668
10f2d63a
VZ
1669case "${host}" in
1670 *-hp-hpux* )
1671 USE_HPUX=1
1672 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1673 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1674 SO_SUFFIX=sl
e6cc62c6 1675 cat >>confdefs.h <<\_ACEOF
10f2d63a 1676#define __HPUX__ 1
e6cc62c6 1677_ACEOF
10f2d63a
VZ
1678
1679 ;;
1680 *-*-linux* )
1681 USE_LINUX=1
e6cc62c6 1682 cat >>confdefs.h <<\_ACEOF
10f2d63a 1683#define __LINUX__ 1
e6cc62c6 1684_ACEOF
10f2d63a
VZ
1685
1686 TMP=`uname -m`
1687 if test "x$TMP" = "xalpha"; then
1688 USE_ALPHA=1
e6cc62c6 1689 cat >>confdefs.h <<\_ACEOF
10f2d63a 1690#define __ALPHA__ 1
e6cc62c6 1691_ACEOF
fe0895cf
VS
1692
1693 fi
1694 DEFAULT_DEFAULT_wxUSE_GTK=1
1695 ;;
1696 *-*-gnu* )
1697 USE_GNU=1
e6cc62c6 1698 cat >>confdefs.h <<\_ACEOF
fe0895cf 1699#define __GNU__ 1
e6cc62c6 1700_ACEOF
fe0895cf
VS
1701
1702 TMP=`uname -m`
1703 if test "x$TMP" = "xalpha"; then
1704 USE_ALPHA=1
e6cc62c6 1705 cat >>confdefs.h <<\_ACEOF
fe0895cf 1706#define __ALPHA__ 1
e6cc62c6 1707_ACEOF
10f2d63a
VZ
1708
1709 fi
1710 DEFAULT_DEFAULT_wxUSE_GTK=1
1711 ;;
1712 *-*-irix5* | *-*-irix6* )
1713 USE_SGI=1
1714 USE_SVR4=1
e6cc62c6 1715 cat >>confdefs.h <<\_ACEOF
10f2d63a 1716#define __SGI__ 1
e6cc62c6 1717_ACEOF
10f2d63a 1718
e6cc62c6 1719 cat >>confdefs.h <<\_ACEOF
10f2d63a 1720#define __SVR4__ 1
e6cc62c6 1721_ACEOF
10f2d63a
VZ
1722
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 ;;
1725 *-*-solaris2* )
1726 USE_SUN=1
1727 USE_SOLARIS=1
1728 USE_SVR4=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __SUN__ 1
e6cc62c6 1731_ACEOF
10f2d63a 1732
e6cc62c6 1733 cat >>confdefs.h <<\_ACEOF
10f2d63a 1734#define __SOLARIS__ 1
e6cc62c6 1735_ACEOF
10f2d63a 1736
e6cc62c6 1737 cat >>confdefs.h <<\_ACEOF
10f2d63a 1738#define __SVR4__ 1
e6cc62c6 1739_ACEOF
10f2d63a
VZ
1740
1741 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1742 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1743 ;;
1744 *-*-sunos4* )
1745 USE_SUN=1
1746 USE_SUNOS=1
1747 USE_BSD=1
e6cc62c6 1748 cat >>confdefs.h <<\_ACEOF
10f2d63a 1749#define __SUN__ 1
e6cc62c6 1750_ACEOF
10f2d63a 1751
e6cc62c6 1752 cat >>confdefs.h <<\_ACEOF
10f2d63a 1753#define __SUNOS__ 1
e6cc62c6 1754_ACEOF
10f2d63a 1755
e6cc62c6 1756 cat >>confdefs.h <<\_ACEOF
10f2d63a 1757#define __BSD__ 1
e6cc62c6 1758_ACEOF
10f2d63a
VZ
1759
1760 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1761 ;;
f6bcfd97 1762 *-*-freebsd*)
10f2d63a
VZ
1763 USE_BSD=1
1764 USE_FREEBSD=1
e6cc62c6 1765 cat >>confdefs.h <<\_ACEOF
10f2d63a 1766#define __FREEBSD__ 1
e6cc62c6 1767_ACEOF
10f2d63a 1768
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
10f2d63a 1770#define __BSD__ 1
e6cc62c6 1771_ACEOF
95c8801c
VS
1772
1773 DEFAULT_DEFAULT_wxUSE_GTK=1
1774 ;;
1775 *-*-openbsd*)
1776 USE_BSD=1
1777 USE_OPENBSD=1
e6cc62c6 1778 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1779#define __OPENBSD__ 1
e6cc62c6 1780_ACEOF
95c8801c 1781
e6cc62c6 1782 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1783#define __BSD__ 1
e6cc62c6 1784_ACEOF
f6bcfd97
BP
1785
1786 DEFAULT_DEFAULT_wxUSE_GTK=1
1787 ;;
1788 *-*-netbsd*)
1789 USE_BSD=1
1790 USE_NETBSD=1
e6cc62c6 1791 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1792#define __NETBSD__ 1
e6cc62c6 1793_ACEOF
f6bcfd97 1794
e6cc62c6 1795 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1796#define __BSD__ 1
e6cc62c6 1797_ACEOF
10f2d63a
VZ
1798
1799 DEFAULT_DEFAULT_wxUSE_GTK=1
1800 ;;
1801 *-*-osf* )
1802 USE_ALPHA=1
1803 USE_OSF=1
e6cc62c6 1804 cat >>confdefs.h <<\_ACEOF
10f2d63a 1805#define __ALPHA__ 1
e6cc62c6 1806_ACEOF
10f2d63a 1807
e6cc62c6 1808 cat >>confdefs.h <<\_ACEOF
10f2d63a 1809#define __OSF__ 1
e6cc62c6 1810_ACEOF
10f2d63a
VZ
1811
1812 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1813 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1814 ;;
1815 *-*-dgux5* )
1816 USE_ALPHA=1
1817 USE_SVR4=1
e6cc62c6 1818 cat >>confdefs.h <<\_ACEOF
10f2d63a 1819#define __ALPHA__ 1
e6cc62c6 1820_ACEOF
10f2d63a 1821
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
10f2d63a 1823#define __SVR4__ 1
e6cc62c6 1824_ACEOF
10f2d63a
VZ
1825
1826 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1827 ;;
1828 *-*-sysv5* )
1829 USE_SYSV=1
1830 USE_SVR4=1
e6cc62c6 1831 cat >>confdefs.h <<\_ACEOF
10f2d63a 1832#define __SYSV__ 1
e6cc62c6 1833_ACEOF
10f2d63a 1834
e6cc62c6 1835 cat >>confdefs.h <<\_ACEOF
10f2d63a 1836#define __SVR4__ 1
e6cc62c6 1837_ACEOF
10f2d63a
VZ
1838
1839 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1840 ;;
1841 *-*-aix* )
1842 USE_AIX=1
1843 USE_SYSV=1
1844 USE_SVR4=1
2b5f62a0 1845 SO_SUFFIX=a
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __AIX__ 1
e6cc62c6 1848_ACEOF
10f2d63a 1849
e6cc62c6 1850 cat >>confdefs.h <<\_ACEOF
10f2d63a 1851#define __SYSV__ 1
e6cc62c6 1852_ACEOF
10f2d63a 1853
e6cc62c6 1854 cat >>confdefs.h <<\_ACEOF
10f2d63a 1855#define __SVR4__ 1
e6cc62c6 1856_ACEOF
10f2d63a
VZ
1857
1858 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1859 ;;
1860
89e3b3e4
VZ
1861 *-*-*UnixWare*)
1862 USE_SYSV=1
1863 USE_SVR4=1
1864 USE_UNIXWARE=1
e6cc62c6 1865 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1866#define __UNIXWARE__ 1
e6cc62c6 1867_ACEOF
89e3b3e4
VZ
1868
1869 ;;
1870
1c8183e2 1871 *-*-cygwin* | *-*-mingw32* )
17234b26 1872 SO_SUFFIX=dll
cf27ef00 1873 PROGRAM_EXT=".exe"
7b7a7637 1874 RESCOMP=windres
10f2d63a
VZ
1875 DEFAULT_DEFAULT_wxUSE_MSW=1
1876 ;;
1877
f9bc1684
VS
1878 *-pc-msdosdjgpp )
1879 USE_UNIX=0
1880 USE_DOS=1
e6cc62c6 1881 cat >>confdefs.h <<\_ACEOF
f9bc1684 1882#define __DOS__ 1
e6cc62c6 1883_ACEOF
f9bc1684
VS
1884
1885 PROGRAM_EXT=".exe"
1886 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1887 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1888 ;;
1889
6fa882bd 1890 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1891 cat >>confdefs.h <<\_ACEOF
10f2d63a 1892#define __EMX__ 1
e6cc62c6 1893_ACEOF
10f2d63a 1894
73d617c9 1895 USE_OS2=1
7015ef3a
VZ
1896 cat >>confdefs.h <<\_ACEOF
1897#define __OS2__ 1
1898_ACEOF
1899
cf27ef00 1900 PROGRAM_EXT=".exe"
e07802fc 1901 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1902 CXX=gcc
73d617c9 1903 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1904 ac_executable_extensions=".exe"
1905 export ac_executable_extensions
1906 ac_save_IFS="$IFS"
e46d2a18 1907 IFS='\\'
d5fc095c
VS
1908 ac_TEMP_PATH=
1909 for ac_dir in $PATH; do
1910 IFS=$ac_save_IFS
1911 if test -z "$ac_TEMP_PATH"; then
1912 ac_TEMP_PATH="$ac_dir"
1913 else
1914 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1915 fi
1916 done
1917 export PATH="$ac_TEMP_PATH"
1918 unset ac_TEMP_PATH
10f2d63a
VZ
1919 ;;
1920
d08b457b
GD
1921 powerpc-*-darwin* )
1922 USE_BSD=1
f11bdd03 1923 USE_DARWIN=1
3a922bb4 1924 SO_SUFFIX=dylib
e6cc62c6 1925 cat >>confdefs.h <<\_ACEOF
f11bdd03 1926#define __BSD__ 1
e6cc62c6 1927_ACEOF
b4085ce6 1928
e6cc62c6 1929 cat >>confdefs.h <<\_ACEOF
f11bdd03 1930#define __DARWIN__ 1
e6cc62c6 1931_ACEOF
d08b457b 1932
e6cc62c6 1933 cat >>confdefs.h <<\_ACEOF
d08b457b 1934#define __POWERPC__ 1
e6cc62c6 1935_ACEOF
82d43113 1936
e6cc62c6 1937 cat >>confdefs.h <<\_ACEOF
82d43113 1938#define TARGET_CARBON 1
e6cc62c6 1939_ACEOF
b4085ce6
GD
1940
1941 DEFAULT_DEFAULT_wxUSE_MAC=1
1942 ;;
1943
b12915c1
VZ
1944 *-*-beos* )
1945 USE_BEOS=1
e6cc62c6 1946 cat >>confdefs.h <<\_ACEOF
b12915c1 1947#define __BEOS__ 1
e6cc62c6 1948_ACEOF
b12915c1
VZ
1949
1950 ;;
1951
10f2d63a 1952 *)
e6cc62c6
VS
1953 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1954echo "$as_me: error: unknown system type ${host}." >&2;}
1955 { (exit 1); exit 1; }; }
10f2d63a
VZ
1956esac
1957
8284b0c5
MB
1958
1959
1960
1961 wx_arg_cache_file="configarg.cache"
1962 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1963 rm -f ${wx_arg_cache_file}.tmp
1964 touch ${wx_arg_cache_file}.tmp
1965 touch ${wx_arg_cache_file}
e6cc62c6 1966
10f2d63a
VZ
1967
1968DEBUG_CONFIGURE=0
1969if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1970 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1971 DEFAULT_wxUSE_STL=no
1e6feb95 1972
d8356fa3
VZ
1973 DEFAULT_wxUSE_NANOX=no
1974
10f2d63a
VZ
1975 DEFAULT_wxUSE_THREADS=yes
1976
1977 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1978 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1979 DEFAULT_wxUSE_PROFILE=no
1980 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1981 DEFAULT_wxUSE_NO_RTTI=no
1982 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1983 DEFAULT_wxUSE_PERMISSIVE=no
1984 DEFAULT_wxUSE_DEBUG_FLAG=yes
1985 DEFAULT_wxUSE_DEBUG_INFO=yes
1986 DEFAULT_wxUSE_DEBUG_GDB=yes
1987 DEFAULT_wxUSE_MEM_TRACING=no
1988 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1989 DEFAULT_wxUSE_DMALLOC=no
1990 DEFAULT_wxUSE_APPLE_IEEE=no
1991
e46d2a18 1992 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1993 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1994 DEFAULT_wxUSE_LOGWINDOW=no
1995 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1996 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1997
1998 DEFAULT_wxUSE_GUI=yes
1e6feb95 1999 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2000
3e44f09d 2001 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2002 DEFAULT_wxUSE_XML=no
2003 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2004 DEFAULT_wxUSE_ZLIB=no
2005 DEFAULT_wxUSE_LIBPNG=no
2006 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2007 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 2008 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2009 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2010
eb4efbdc 2011 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2012 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2013 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2014 DEFAULT_wxUSE_CMDLINE_PARSER=no
2015 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2016 DEFAULT_wxUSE_TIMER=no
2017 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2018 DEFAULT_wxUSE_FILE=no
1e6feb95 2019 DEFAULT_wxUSE_FFILE=no
a3a584a7 2020 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2021 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2022 DEFAULT_wxUSE_WAVE=no
2023 DEFAULT_wxUSE_INTL=no
2024 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2025 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2026 DEFAULT_wxUSE_STREAMS=no
2027 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2028 DEFAULT_wxUSE_OLE=no
2029 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2030 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2031 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2032 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2033 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2034 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2035 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2036
2037 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2038 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2039 DEFAULT_wxUSE_POSTSCRIPT=no
2040
10f2d63a
VZ
2041 DEFAULT_wxUSE_CLIPBOARD=no
2042 DEFAULT_wxUSE_TOOLTIPS=no
2043 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2044 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2045 DEFAULT_wxUSE_SPLINES=no
2046
2047 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2048 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2049 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2050
10f2d63a
VZ
2051 DEFAULT_wxUSE_RESOURCES=no
2052 DEFAULT_wxUSE_CONSTRAINTS=no
2053 DEFAULT_wxUSE_IPC=no
2054 DEFAULT_wxUSE_HELP=no
29fd3c0c 2055 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2056 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2057 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2058 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2059 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2060 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2061 DEFAULT_wxUSE_PROTOCOL=no
2062 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2063 DEFAULT_wxUSE_PROTOCOL_FTP=no
2064 DEFAULT_wxUSE_PROTOCOL_FILE=no
2065 DEFAULT_wxUSE_URL=no
3bd8fb5f 2066
10f2d63a 2067 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2068 DEFAULT_wxUSE_CHOICEDLG=no
2069 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2070 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2071 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2072 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2073 DEFAULT_wxUSE_FONTDLG=no
2074 DEFAULT_wxUSE_MSGDLG=no
2075 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2076 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2077 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2078 DEFAULT_wxUSE_STARTUP_TIPS=no
2079 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2080 DEFAULT_wxUSE_WIZARDDLG=no
2081
1e6feb95 2082 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2083 DEFAULT_wxUSE_MINIFRAME=no
2084 DEFAULT_wxUSE_HTML=no
24528b0c 2085 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2086 DEFAULT_wxUSE_FS_INET=no
2087 DEFAULT_wxUSE_FS_ZIP=no
2088 DEFAULT_wxUSE_BUSYINFO=no
2089 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2090 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2091 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2092
2093 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2094 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2095 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2096 DEFAULT_wxUSE_CALCTRL=no
2097 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2098 DEFAULT_wxUSE_CHECKBOX=no
2099 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2100 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2101 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2102 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2103 DEFAULT_wxUSE_GAUGE=no
2104 DEFAULT_wxUSE_GRID=no
10f2d63a 2105 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2106 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_LISTBOX=no
2108 DEFAULT_wxUSE_LISTCTRL=no
2109 DEFAULT_wxUSE_NOTEBOOK=no
2110 DEFAULT_wxUSE_RADIOBOX=no
2111 DEFAULT_wxUSE_RADIOBTN=no
2112 DEFAULT_wxUSE_SASH=no
2113 DEFAULT_wxUSE_SCROLLBAR=no
2114 DEFAULT_wxUSE_SLIDER=no
2115 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2116 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2117 DEFAULT_wxUSE_SPLITTER=no
2118 DEFAULT_wxUSE_STATBMP=no
2119 DEFAULT_wxUSE_STATBOX=no
2120 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2121 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2122 DEFAULT_wxUSE_STATUSBAR=yes
2123 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2124 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2125 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2126 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2129 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2130 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2131 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2132
2133 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2134 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_WCSRTOMBS=no
2136
edae8572 2137 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2138 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2139 DEFAULT_wxUSE_GIF=no
2140 DEFAULT_wxUSE_PCX=no
2141 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2142 DEFAULT_wxUSE_IFF=no
0046ff7c 2143 DEFAULT_wxUSE_XPM=no
658974ae 2144 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2145 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2146
e9e0dc15 2147 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2148 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2149else
1e6feb95 2150 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2151 DEFAULT_wxUSE_STL=no
1e6feb95 2152
d8356fa3
VZ
2153 DEFAULT_wxUSE_NANOX=no
2154
10f2d63a
VZ
2155 DEFAULT_wxUSE_THREADS=yes
2156
2157 DEFAULT_wxUSE_SHARED=yes
2158 DEFAULT_wxUSE_OPTIMISE=yes
2159 DEFAULT_wxUSE_PROFILE=no
2160 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2161 DEFAULT_wxUSE_NO_RTTI=no
2162 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2163 DEFAULT_wxUSE_PERMISSIVE=no
2164 DEFAULT_wxUSE_DEBUG_FLAG=no
2165 DEFAULT_wxUSE_DEBUG_INFO=no
2166 DEFAULT_wxUSE_DEBUG_GDB=no
2167 DEFAULT_wxUSE_MEM_TRACING=no
2168 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2169 DEFAULT_wxUSE_DMALLOC=no
2170 DEFAULT_wxUSE_APPLE_IEEE=yes
2171
e46d2a18 2172 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2173 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2174 DEFAULT_wxUSE_LOGWINDOW=yes
2175 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2176 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2177
2178 DEFAULT_wxUSE_GUI=yes
2179
831b3152 2180 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2181 DEFAULT_wxUSE_XML=yes
2182 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2183 DEFAULT_wxUSE_ZLIB=yes
2184 DEFAULT_wxUSE_LIBPNG=yes
2185 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2186 DEFAULT_wxUSE_LIBTIFF=yes
3527f29c 2187 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2188 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2189 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2190
eb4efbdc 2191 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2192 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2193 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2194 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2195 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2196 DEFAULT_wxUSE_TIMER=yes
2197 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2198 DEFAULT_wxUSE_FILE=yes
1e6feb95 2199 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2200 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2201 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2202 DEFAULT_wxUSE_WAVE=no
2203 DEFAULT_wxUSE_INTL=yes
2204 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2205 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2206 DEFAULT_wxUSE_STREAMS=yes
2207 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2208 DEFAULT_wxUSE_OLE=yes
2209 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2210 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2211 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2212 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2213 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2214 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2215 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2216
2217 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2218 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2219 DEFAULT_wxUSE_POSTSCRIPT=yes
2220
10f2d63a
VZ
2221 DEFAULT_wxUSE_CLIPBOARD=yes
2222 DEFAULT_wxUSE_TOOLTIPS=yes
2223 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2224 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_SPLINES=yes
2226
2227 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2228 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2229 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2230
2b5f62a0 2231 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2232 DEFAULT_wxUSE_CONSTRAINTS=yes
2233 DEFAULT_wxUSE_IPC=yes
2234 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2235 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2236 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2237 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2238 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2239 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2240 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2241 DEFAULT_wxUSE_PROTOCOL=yes
2242 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2243 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2244 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2245 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2246
2247 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2248 DEFAULT_wxUSE_CHOICEDLG=yes
2249 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2250 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2251 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2252 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2253 DEFAULT_wxUSE_FONTDLG=yes
2254 DEFAULT_wxUSE_MSGDLG=yes
2255 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2256 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2257 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2258 DEFAULT_wxUSE_STARTUP_TIPS=yes
2259 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2260 DEFAULT_wxUSE_WIZARDDLG=yes
2261
1e6feb95 2262 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2263 DEFAULT_wxUSE_MINIFRAME=yes
2264 DEFAULT_wxUSE_HTML=yes
24528b0c 2265 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2266 DEFAULT_wxUSE_FS_INET=yes
2267 DEFAULT_wxUSE_FS_ZIP=yes
2268 DEFAULT_wxUSE_BUSYINFO=yes
2269 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2270 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2271 DEFAULT_wxUSE_VALIDATORS=yes
2272
2273 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2274 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2275 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2276 DEFAULT_wxUSE_CALCTRL=yes
2277 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_CHECKBOX=yes
2279 DEFAULT_wxUSE_CHECKLST=yes
2280 DEFAULT_wxUSE_CHOICE=yes
2281 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2282 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2283 DEFAULT_wxUSE_GAUGE=yes
2284 DEFAULT_wxUSE_GRID=yes
10f2d63a 2285 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2286 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2287 DEFAULT_wxUSE_LISTBOX=yes
2288 DEFAULT_wxUSE_LISTCTRL=yes
2289 DEFAULT_wxUSE_NOTEBOOK=yes
2290 DEFAULT_wxUSE_RADIOBOX=yes
2291 DEFAULT_wxUSE_RADIOBTN=yes
2292 DEFAULT_wxUSE_SASH=yes
2293 DEFAULT_wxUSE_SCROLLBAR=yes
2294 DEFAULT_wxUSE_SLIDER=yes
2295 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2296 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2297 DEFAULT_wxUSE_SPLITTER=yes
2298 DEFAULT_wxUSE_STATBMP=yes
2299 DEFAULT_wxUSE_STATBOX=yes
2300 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2301 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2302 DEFAULT_wxUSE_STATUSBAR=yes
2303 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2304 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2305 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2306 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2307 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2308 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2309 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2310 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2311 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2312
2313 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2314 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2315 DEFAULT_wxUSE_WCSRTOMBS=no
2316
edae8572 2317 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2318 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2319 DEFAULT_wxUSE_GIF=yes
2320 DEFAULT_wxUSE_PCX=yes
cc0e8480 2321 DEFAULT_wxUSE_IFF=no
10f2d63a 2322 DEFAULT_wxUSE_PNM=yes
0046ff7c 2323 DEFAULT_wxUSE_XPM=yes
658974ae 2324 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2325 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2326
e9e0dc15 2327 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2328 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2329fi
2330
8284b0c5
MB
2331
2332
10f2d63a 2333for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2334 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2335 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2336 has_toolkit_in_cache=1
2337 eval "DEFAULT_$LINE"
2338 eval "CACHE_$toolkit=1"
2339 fi
2340done
2341
8284b0c5
MB
2342
2343
5005acfe 2344 enablestring=
e6cc62c6
VS
2345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2346echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2347 no_cache=0
2348 # Check whether --enable-gui or --disable-gui was given.
2349if test "${enable_gui+set}" = set; then
2350 enableval="$enable_gui"
e6cc62c6 2351
10f2d63a
VZ
2352 if test "$enableval" = yes; then
2353 ac_cv_use_gui='wxUSE_GUI=yes'
2354 else
2355 ac_cv_use_gui='wxUSE_GUI=no'
2356 fi
e6cc62c6 2357
10f2d63a 2358else
e6cc62c6 2359
10f2d63a
VZ
2360 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2368
e6cc62c6 2369fi;
10f2d63a
VZ
2370
2371 eval "$ac_cv_use_gui"
2372 if test "$no_cache" != 1; then
2373 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2374 fi
2375
2376 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2377 echo "$as_me:$LINENO: result: yes" >&5
2378echo "${ECHO_T}yes" >&6
10f2d63a 2379 else
e6cc62c6
VS
2380 echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6
10f2d63a 2382 fi
e6cc62c6 2383
10f2d63a 2384
9747f85d
VS
2385 enablestring=
2386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2387echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2388 no_cache=0
2389 # Check whether --enable-monolithic or --disable-monolithic was given.
2390if test "${enable_monolithic+set}" = set; then
2391 enableval="$enable_monolithic"
2392
2393 if test "$enableval" = yes; then
2394 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2395 else
2396 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2397 fi
2398
2399else
2400
2401 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2402 if test "x$LINE" != x ; then
2403 eval "DEFAULT_$LINE"
2404 else
2405 no_cache=1
2406 fi
2407
2408 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2409
2410fi;
2411
2412 eval "$ac_cv_use_monolithic"
2413 if test "$no_cache" != 1; then
2414 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2415 fi
2416
2417 if test "$wxUSE_MONOLITHIC" = yes; then
2418 echo "$as_me:$LINENO: result: yes" >&5
2419echo "${ECHO_T}yes" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6
2423 fi
2424
2425
b12915c1 2426if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2427
8284b0c5 2428
5005acfe 2429 enablestring=
e6cc62c6
VS
2430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2431echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2432 no_cache=0
2433 # Check whether --enable-universal or --disable-universal was given.
2434if test "${enable_universal+set}" = set; then
2435 enableval="$enable_universal"
e6cc62c6 2436
1e6feb95
VZ
2437 if test "$enableval" = yes; then
2438 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2439 else
2440 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2441 fi
e6cc62c6 2442
1e6feb95 2443else
e6cc62c6 2444
1e6feb95
VZ
2445 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2453
e6cc62c6 2454fi;
1e6feb95
VZ
2455
2456 eval "$ac_cv_use_universal"
2457 if test "$no_cache" != 1; then
2458 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2459 fi
2460
2461 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2462 echo "$as_me:$LINENO: result: yes" >&5
2463echo "${ECHO_T}yes" >&6
1e6feb95 2464 else
e6cc62c6
VS
2465 echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6
1e6feb95 2467 fi
e6cc62c6
VS
2468
2469
10f2d63a
VZ
2470# Check whether --with-gtk or --without-gtk was given.
2471if test "${with_gtk+set}" = set; then
2472 withval="$with_gtk"
2473 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2474fi;
10f2d63a
VZ
2475
2476# Check whether --with-motif or --without-motif was given.
2477if test "${with_motif+set}" = set; then
2478 withval="$with_motif"
2479 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2480fi;
10f2d63a 2481
b4085ce6
GD
2482# Check whether --with-mac or --without-mac was given.
2483if test "${with_mac+set}" = set; then
2484 withval="$with_mac"
2485 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2486fi;
b4085ce6 2487
ac0c4cc3
DE
2488# Check whether --with-cocoa or --without-cocoa was given.
2489if test "${with_cocoa+set}" = set; then
2490 withval="$with_cocoa"
2491 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2492fi;
ac0c4cc3 2493
10f2d63a
VZ
2494# Check whether --with-wine or --without-wine was given.
2495if test "${with_wine+set}" = set; then
2496 withval="$with_wine"
89e6bf6d 2497 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2498fi;
10f2d63a 2499
77e13408
RL
2500# Check whether --with-msw or --without-msw was given.
2501if test "${with_msw+set}" = set; then
2502 withval="$with_msw"
b4efce5e 2503 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2504fi;
10f2d63a 2505
e07802fc
VZ
2506# Check whether --with-pm or --without-pm was given.
2507if test "${with_pm+set}" = set; then
2508 withval="$with_pm"
2509 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2510fi;
698dcdb6 2511
1e6feb95
VZ
2512# Check whether --with-mgl or --without-mgl was given.
2513if test "${with_mgl+set}" = set; then
2514 withval="$with_mgl"
6c657b52 2515 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2516fi;
1e6feb95 2517
1725144d
RR
2518# Check whether --with-microwin or --without-microwin was given.
2519if test "${with_microwin+set}" = set; then
2520 withval="$with_microwin"
2521 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2522fi;
1725144d 2523
f79bd02d
JS
2524# Check whether --with-x11 or --without-x11 was given.
2525if test "${with_x11+set}" = set; then
2526 withval="$with_x11"
3c011993 2527 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2528fi;
a0b9e27f 2529
5005acfe 2530 enablestring=
e6cc62c6
VS
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2533 no_cache=0
ba875e66
VZ
2534 # Check whether --enable-nanox or --disable-nanox was given.
2535if test "${enable_nanox+set}" = set; then
2536 enableval="$enable_nanox"
e6cc62c6 2537
d8356fa3 2538 if test "$enableval" = yes; then
ba875e66 2539 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2540 else
ba875e66 2541 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2542 fi
e6cc62c6 2543
d8356fa3 2544else
e6cc62c6 2545
d8356fa3
VZ
2546 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
ba875e66 2553 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2554
e6cc62c6 2555fi;
d8356fa3 2556
ba875e66 2557 eval "$ac_cv_use_nanox"
d8356fa3 2558 if test "$no_cache" != 1; then
ba875e66 2559 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2560 fi
2561
2562 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
d8356fa3 2565 else
e6cc62c6
VS
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
d8356fa3 2568 fi
e6cc62c6 2569
8284b0c5 2570
d74f4b5a 2571
5005acfe 2572 enablestring=
e6cc62c6
VS
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2575 no_cache=0
2576 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2577if test "${enable_gtk2+set}" = set; then
2578 enableval="$enable_gtk2"
e6cc62c6 2579
d74f4b5a
VZ
2580 if test "$enableval" = yes; then
2581 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2582 else
2583 ac_cv_use_gtk2='wxUSE_GTK2=no'
2584 fi
e6cc62c6 2585
10f2d63a 2586else
e6cc62c6 2587
d74f4b5a
VZ
2588 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2596
e6cc62c6 2597fi;
328a083c 2598
d74f4b5a
VZ
2599 eval "$ac_cv_use_gtk2"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
d74f4b5a 2607 else
e6cc62c6
VS
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
d74f4b5a 2610 fi
d74f4b5a 2611
5c6fa7d2 2612
e6cc62c6
VS
2613
2614 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2615echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2616 no_cache=0
e6cc62c6
VS
2617
2618# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2619if test "${with_libpng+set}" = set; then
2620 withval="$with_libpng"
e6cc62c6 2621
10f2d63a 2622 if test "$withval" = yes; then
b12915c1 2623 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2624 elif test "$withval" = no; then
b12915c1 2625 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2626 elif test "$withval" = sys; then
2627 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2628 elif test "$withval" = builtin; then
2629 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2630 else
e6cc62c6
VS
2631 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2632echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2633 { (exit 1); exit 1; }; }
10f2d63a 2634 fi
e6cc62c6 2635
10f2d63a 2636else
e6cc62c6 2637
b12915c1 2638 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
b12915c1 2645 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2646
e6cc62c6 2647fi;
10f2d63a 2648
b12915c1 2649 eval "$ac_cv_use_libpng"
10f2d63a 2650 if test "$no_cache" != 1; then
b12915c1 2651 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2652 fi
2653
b12915c1 2654 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2655 echo "$as_me:$LINENO: result: yes" >&5
2656echo "${ECHO_T}yes" >&6
422107f9 2657 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2658 echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6
422107f9 2660 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2661 echo "$as_me:$LINENO: result: system version" >&5
2662echo "${ECHO_T}system version" >&6
4f14bcd8 2663 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2664 echo "$as_me:$LINENO: result: builtin version" >&5
2665echo "${ECHO_T}builtin version" >&6
422107f9 2666 else
e6cc62c6
VS
2667 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2668echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2669 { (exit 1); exit 1; }; }
10f2d63a 2670 fi
10f2d63a 2671
e6cc62c6
VS
2672
2673 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2674echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2675 no_cache=0
e6cc62c6
VS
2676
2677# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2678if test "${with_libjpeg+set}" = set; then
2679 withval="$with_libjpeg"
e6cc62c6 2680
10f2d63a 2681 if test "$withval" = yes; then
b12915c1 2682 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2683 elif test "$withval" = no; then
b12915c1 2684 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2685 elif test "$withval" = sys; then
2686 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2687 elif test "$withval" = builtin; then
2688 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2689 else
e6cc62c6
VS
2690 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2691echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2692 { (exit 1); exit 1; }; }
10f2d63a 2693 fi
e6cc62c6 2694
10f2d63a 2695else
e6cc62c6 2696
b12915c1 2697 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
b12915c1 2704 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2705
e6cc62c6 2706fi;
10f2d63a 2707
b12915c1 2708 eval "$ac_cv_use_libjpeg"
10f2d63a 2709 if test "$no_cache" != 1; then
b12915c1 2710 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2711 fi
2712
b12915c1 2713 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2714 echo "$as_me:$LINENO: result: yes" >&5
2715echo "${ECHO_T}yes" >&6
422107f9 2716 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2717 echo "$as_me:$LINENO: result: no" >&5
2718echo "${ECHO_T}no" >&6
422107f9 2719 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2720 echo "$as_me:$LINENO: result: system version" >&5
2721echo "${ECHO_T}system version" >&6
4f14bcd8 2722 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2723 echo "$as_me:$LINENO: result: builtin version" >&5
2724echo "${ECHO_T}builtin version" >&6
422107f9 2725 else
e6cc62c6
VS
2726 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2727echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2728 { (exit 1); exit 1; }; }
10f2d63a 2729 fi
10f2d63a 2730
e6cc62c6
VS
2731
2732 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2733echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2734 no_cache=0
e6cc62c6
VS
2735
2736# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2737if test "${with_libtiff+set}" = set; then
2738 withval="$with_libtiff"
e6cc62c6 2739
10f2d63a 2740 if test "$withval" = yes; then
b12915c1 2741 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2742 elif test "$withval" = no; then
b12915c1 2743 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2744 elif test "$withval" = sys; then
2745 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2746 elif test "$withval" = builtin; then
2747 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2748 else
e6cc62c6
VS
2749 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2750echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2751 { (exit 1); exit 1; }; }
10f2d63a 2752 fi
e6cc62c6 2753
10f2d63a 2754else
e6cc62c6 2755
b12915c1 2756 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2757 if test "x$LINE" != x ; then
2758 eval "DEFAULT_$LINE"
2759 else
2760 no_cache=1
2761 fi
2762
b12915c1 2763 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2764
e6cc62c6 2765fi;
10f2d63a 2766
b12915c1 2767 eval "$ac_cv_use_libtiff"
10f2d63a 2768 if test "$no_cache" != 1; then
b12915c1 2769 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2770 fi
2771
b12915c1 2772 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2773 echo "$as_me:$LINENO: result: yes" >&5
2774echo "${ECHO_T}yes" >&6
0dcf9893 2775 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2776 echo "$as_me:$LINENO: result: no" >&5
2777echo "${ECHO_T}no" >&6
0dcf9893 2778 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2779 echo "$as_me:$LINENO: result: system version" >&5
2780echo "${ECHO_T}system version" >&6
4f14bcd8 2781 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2782 echo "$as_me:$LINENO: result: builtin version" >&5
2783echo "${ECHO_T}builtin version" >&6
0dcf9893 2784 else
e6cc62c6
VS
2785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2786echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2787 { (exit 1); exit 1; }; }
10f2d63a 2788 fi
10f2d63a 2789
e6cc62c6 2790
3527f29c
VS
2791 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2792echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2793 no_cache=0
2794
2795# Check whether --with-libmspack or --without-libmspack was given.
2796if test "${with_libmspack+set}" = set; then
2797 withval="$with_libmspack"
2798
2799 if test "$withval" = yes; then
2800 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2801 else
2802 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2803 fi
2804
2805else
2806
2807 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2815
2816fi;
2817
2818 eval "$ac_cv_use_libmspack"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_LIBMSPACK" = yes; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
2829 fi
2830
2831
e6cc62c6
VS
2832 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2833echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2834 no_cache=0
e6cc62c6
VS
2835
2836# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2837if test "${with_opengl+set}" = set; then
2838 withval="$with_opengl"
e6cc62c6 2839
10f2d63a 2840 if test "$withval" = yes; then
b12915c1 2841 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2842 else
b12915c1 2843 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2844 fi
e6cc62c6 2845
10f2d63a 2846else
e6cc62c6 2847
b12915c1 2848 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2849 if test "x$LINE" != x ; then
2850 eval "DEFAULT_$LINE"
2851 else
2852 no_cache=1
2853 fi
2854
b12915c1 2855 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2856
e6cc62c6 2857fi;
10f2d63a 2858
b12915c1 2859 eval "$ac_cv_use_opengl"
10f2d63a 2860 if test "$no_cache" != 1; then
b12915c1 2861 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2862 fi
2863
b12915c1 2864 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
10f2d63a 2867 else
e6cc62c6
VS
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
10f2d63a 2870 fi
e6cc62c6 2871
10f2d63a 2872
b12915c1
VZ
2873fi
2874
5c6fa7d2 2875
e6cc62c6
VS
2876 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2877echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2878 no_cache=0
e6cc62c6
VS
2879
2880# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2881if test "${with_dmalloc+set}" = set; then
2882 withval="$with_dmalloc"
e6cc62c6 2883
c7a2bf27 2884 if test "$withval" = yes; then
b12915c1 2885 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2886 else
b12915c1 2887 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2888 fi
e6cc62c6 2889
c7a2bf27 2890else
e6cc62c6 2891
b12915c1 2892 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
b12915c1 2899 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2900
e6cc62c6 2901fi;
c7a2bf27 2902
b12915c1 2903 eval "$ac_cv_use_dmalloc"
c7a2bf27 2904 if test "$no_cache" != 1; then
b12915c1 2905 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2906 fi
2907
b12915c1 2908 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
c7a2bf27 2911 else
e6cc62c6
VS
2912 echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
c7a2bf27 2914 fi
c7a2bf27 2915
e6cc62c6
VS
2916
2917 echo "$as_me:$LINENO: checking for --with-regex" >&5
2918echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2919 no_cache=0
e6cc62c6
VS
2920
2921# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2922if test "${with_regex+set}" = set; then
2923 withval="$with_regex"
e6cc62c6 2924
3e44f09d
VZ
2925 if test "$withval" = yes; then
2926 ac_cv_use_regex='wxUSE_REGEX=yes'
2927 elif test "$withval" = no; then
2928 ac_cv_use_regex='wxUSE_REGEX=no'
2929 elif test "$withval" = sys; then
2930 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2931 elif test "$withval" = builtin; then
2932 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2933 else
e6cc62c6
VS
2934 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2935echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2936 { (exit 1); exit 1; }; }
3e44f09d 2937 fi
e6cc62c6 2938
3e44f09d 2939else
e6cc62c6 2940
3e44f09d
VZ
2941 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2949
e6cc62c6 2950fi;
3e44f09d
VZ
2951
2952 eval "$ac_cv_use_regex"
2953 if test "$no_cache" != 1; then
2954 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2955 fi
2956
2957 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2958 echo "$as_me:$LINENO: result: yes" >&5
2959echo "${ECHO_T}yes" >&6
3e44f09d 2960 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
3e44f09d 2963 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2964 echo "$as_me:$LINENO: result: system version" >&5
2965echo "${ECHO_T}system version" >&6
4f14bcd8 2966 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2967 echo "$as_me:$LINENO: result: builtin version" >&5
2968echo "${ECHO_T}builtin version" >&6
3e44f09d 2969 else
e6cc62c6
VS
2970 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2971echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2972 { (exit 1); exit 1; }; }
3e44f09d 2973 fi
3e44f09d 2974
e6cc62c6
VS
2975
2976 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2977echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2978 no_cache=0
e6cc62c6
VS
2979
2980# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2981if test "${with_zlib+set}" = set; then
2982 withval="$with_zlib"
e6cc62c6 2983
10f2d63a 2984 if test "$withval" = yes; then
b12915c1 2985 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2986 elif test "$withval" = no; then
b12915c1 2987 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2988 elif test "$withval" = sys; then
2989 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2990 elif test "$withval" = builtin; then
2991 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2992 else
e6cc62c6
VS
2993 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2994echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2995 { (exit 1); exit 1; }; }
10f2d63a 2996 fi
e6cc62c6 2997
10f2d63a 2998else
e6cc62c6 2999
b12915c1 3000 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
b12915c1 3007 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3008
e6cc62c6 3009fi;
10f2d63a 3010
b12915c1 3011 eval "$ac_cv_use_zlib"
10f2d63a 3012 if test "$no_cache" != 1; then
b12915c1 3013 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3014 fi
3015
b12915c1 3016 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3017 echo "$as_me:$LINENO: result: yes" >&5
3018echo "${ECHO_T}yes" >&6
422107f9 3019 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
422107f9 3022 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3023 echo "$as_me:$LINENO: result: system version" >&5
3024echo "${ECHO_T}system version" >&6
4f14bcd8 3025 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3026 echo "$as_me:$LINENO: result: builtin version" >&5
3027echo "${ECHO_T}builtin version" >&6
422107f9 3028 else
e6cc62c6
VS
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3030echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
10f2d63a 3032 fi
10f2d63a 3033
e6cc62c6
VS
3034
3035 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3036echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3037 no_cache=0
e6cc62c6
VS
3038
3039# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3040if test "${with_odbc+set}" = set; then
3041 withval="$with_odbc"
e6cc62c6 3042
10f2d63a
VZ
3043 if test "$withval" = yes; then
3044 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3045 elif test "$withval" = no; then
10f2d63a 3046 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3047 elif test "$withval" = sys; then
3048 ac_cv_use_odbc='wxUSE_ODBC=sys'
3049 elif test "$withval" = builtin; then
3050 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3051 else
e6cc62c6
VS
3052 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3053echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3054 { (exit 1); exit 1; }; }
10f2d63a 3055 fi
e6cc62c6 3056
10f2d63a 3057else
e6cc62c6 3058
10f2d63a
VZ
3059 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3067
e6cc62c6 3068fi;
10f2d63a
VZ
3069
3070 eval "$ac_cv_use_odbc"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
8647bec6 3078 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
8647bec6 3081 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3082 echo "$as_me:$LINENO: result: system version" >&5
3083echo "${ECHO_T}system version" >&6
8647bec6 3084 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3085 echo "$as_me:$LINENO: result: builtin version" >&5
3086echo "${ECHO_T}builtin version" >&6
8647bec6 3087 else
e6cc62c6
VS
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
10f2d63a 3091 fi
e6cc62c6 3092
52127426 3093
672abd7a
VS
3094 echo "$as_me:$LINENO: checking for --with-expat" >&5
3095echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3096 no_cache=0
3097
3098# Check whether --with-expat or --without-expat was given.
3099if test "${with_expat+set}" = set; then
3100 withval="$with_expat"
3101
3102 if test "$withval" = yes; then
3103 ac_cv_use_expat='wxUSE_EXPAT=yes'
3104 elif test "$withval" = no; then
3105 ac_cv_use_expat='wxUSE_EXPAT=no'
3106 elif test "$withval" = sys; then
3107 ac_cv_use_expat='wxUSE_EXPAT=sys'
3108 elif test "$withval" = builtin; then
3109 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3110 else
3111 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3112echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3113 { (exit 1); exit 1; }; }
3114 fi
3115
3116else
3117
3118 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3119 if test "x$LINE" != x ; then
3120 eval "DEFAULT_$LINE"
3121 else
3122 no_cache=1
3123 fi
3124
3125 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3126
3127fi;
3128
3129 eval "$ac_cv_use_expat"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_EXPAT" = yes; then
3135 echo "$as_me:$LINENO: result: yes" >&5
3136echo "${ECHO_T}yes" >&6
3137 elif test "$wxUSE_EXPAT" = no; then
3138 echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
3140 elif test "$wxUSE_EXPAT" = sys; then
3141 echo "$as_me:$LINENO: result: system version" >&5
3142echo "${ECHO_T}system version" >&6
3143 elif test "$wxUSE_EXPAT" = builtin; then
3144 echo "$as_me:$LINENO: result: builtin version" >&5
3145echo "${ECHO_T}builtin version" >&6
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152
8284b0c5
MB
3153
3154
5005acfe 3155 enablestring=
e6cc62c6
VS
3156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3157echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3158 no_cache=0
3159 # Check whether --enable-shared or --disable-shared was given.
3160if test "${enable_shared+set}" = set; then
3161 enableval="$enable_shared"
e6cc62c6 3162
10f2d63a
VZ
3163 if test "$enableval" = yes; then
3164 ac_cv_use_shared='wxUSE_SHARED=yes'
3165 else
3166 ac_cv_use_shared='wxUSE_SHARED=no'
3167 fi
e6cc62c6 3168
10f2d63a 3169else
e6cc62c6 3170
10f2d63a
VZ
3171 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3179
e6cc62c6 3180fi;
10f2d63a
VZ
3181
3182 eval "$ac_cv_use_shared"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3188 echo "$as_me:$LINENO: result: yes" >&5
3189echo "${ECHO_T}yes" >&6
10f2d63a 3190 else
e6cc62c6
VS
3191 echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
10f2d63a 3193 fi
e6cc62c6 3194
10f2d63a 3195
5005acfe 3196 enablestring=
e6cc62c6
VS
3197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3198echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3199 no_cache=0
3200 # Check whether --enable-optimise or --disable-optimise was given.
3201if test "${enable_optimise+set}" = set; then
3202 enableval="$enable_optimise"
e6cc62c6 3203
10f2d63a
VZ
3204 if test "$enableval" = yes; then
3205 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3206 else
3207 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3208 fi
e6cc62c6 3209
10f2d63a 3210else
e6cc62c6 3211
10f2d63a
VZ
3212 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3220
e6cc62c6 3221fi;
10f2d63a
VZ
3222
3223 eval "$ac_cv_use_optimise"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3229 echo "$as_me:$LINENO: result: yes" >&5
3230echo "${ECHO_T}yes" >&6
10f2d63a 3231 else
e6cc62c6
VS
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
10f2d63a 3234 fi
e6cc62c6 3235
10f2d63a 3236
5005acfe 3237 enablestring=
e6cc62c6
VS
3238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3239echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3240 no_cache=0
3241 # Check whether --enable-debug or --disable-debug was given.
3242if test "${enable_debug+set}" = set; then
3243 enableval="$enable_debug"
e6cc62c6 3244
10f2d63a
VZ
3245 if test "$enableval" = yes; then
3246 ac_cv_use_debug='wxUSE_DEBUG=yes'
3247 else
3248 ac_cv_use_debug='wxUSE_DEBUG=no'
3249 fi
e6cc62c6 3250
10f2d63a 3251else
e6cc62c6 3252
10f2d63a
VZ
3253 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3261
e6cc62c6 3262fi;
10f2d63a
VZ
3263
3264 eval "$ac_cv_use_debug"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
10f2d63a 3272 else
e6cc62c6
VS
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
10f2d63a 3275 fi
e6cc62c6 3276
52127426 3277
df5168c4
MB
3278 enablestring=
3279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3280echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3281 no_cache=0
3282 # Check whether --enable-stl or --disable-stl was given.
3283if test "${enable_stl+set}" = set; then
3284 enableval="$enable_stl"
3285
3286 if test "$enableval" = yes; then
3287 ac_cv_use_stl='wxUSE_STL=yes'
3288 else
3289 ac_cv_use_stl='wxUSE_STL=no'
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3302
3303fi;
3304
3305 eval "$ac_cv_use_stl"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_STL" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 else
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 fi
3317
3318
10f2d63a
VZ
3319if test "$wxUSE_DEBUG" = "yes"; then
3320 DEFAULT_wxUSE_DEBUG_FLAG=yes
3321 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3322 BUILD=debug
10f2d63a
VZ
3323elif test "$wxUSE_DEBUG" = "no"; then
3324 DEFAULT_wxUSE_DEBUG_FLAG=no
3325 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3326 BUILD=release
10f2d63a
VZ
3327fi
3328
8284b0c5 3329
5005acfe 3330 enablestring=
e6cc62c6
VS
3331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3332echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3333 no_cache=0
3334 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3335if test "${enable_debug_flag+set}" = set; then
3336 enableval="$enable_debug_flag"
e6cc62c6 3337
10f2d63a
VZ
3338 if test "$enableval" = yes; then
3339 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3340 else
3341 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3342 fi
e6cc62c6 3343
10f2d63a 3344else
e6cc62c6 3345
10f2d63a
VZ
3346 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3354
e6cc62c6 3355fi;
10f2d63a
VZ
3356
3357 eval "$ac_cv_use_debug_flag"
3358 if test "$no_cache" != 1; then
3359 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3360 fi
3361
3362 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3363 echo "$as_me:$LINENO: result: yes" >&5
3364echo "${ECHO_T}yes" >&6
10f2d63a 3365 else
e6cc62c6
VS
3366 echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6
10f2d63a 3368 fi
e6cc62c6 3369
10f2d63a 3370
5005acfe 3371 enablestring=
e6cc62c6
VS
3372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3373echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3374 no_cache=0
3375 # Check whether --enable-debug_info or --disable-debug_info was given.
3376if test "${enable_debug_info+set}" = set; then
3377 enableval="$enable_debug_info"
e6cc62c6 3378
10f2d63a
VZ
3379 if test "$enableval" = yes; then
3380 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3381 else
3382 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3383 fi
e6cc62c6 3384
10f2d63a 3385else
e6cc62c6 3386
10f2d63a
VZ
3387 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3388 if test "x$LINE" != x ; then
3389 eval "DEFAULT_$LINE"
3390 else
3391 no_cache=1
3392 fi
3393
3394 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3395
e6cc62c6 3396fi;
10f2d63a
VZ
3397
3398 eval "$ac_cv_use_debug_info"
3399 if test "$no_cache" != 1; then
3400 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3401 fi
3402
3403 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3404 echo "$as_me:$LINENO: result: yes" >&5
3405echo "${ECHO_T}yes" >&6
10f2d63a 3406 else
e6cc62c6
VS
3407 echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
10f2d63a 3409 fi
e6cc62c6 3410
10f2d63a 3411
5005acfe 3412 enablestring=
e6cc62c6
VS
3413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3414echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3415 no_cache=0
3416 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3417if test "${enable_debug_gdb+set}" = set; then
3418 enableval="$enable_debug_gdb"
e6cc62c6 3419
10f2d63a
VZ
3420 if test "$enableval" = yes; then
3421 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3422 else
3423 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3424 fi
e6cc62c6 3425
10f2d63a 3426else
e6cc62c6 3427
10f2d63a
VZ
3428 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3429 if test "x$LINE" != x ; then
3430 eval "DEFAULT_$LINE"
3431 else
3432 no_cache=1
3433 fi
3434
3435 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3436
e6cc62c6 3437fi;
10f2d63a
VZ
3438
3439 eval "$ac_cv_use_debug_gdb"
3440 if test "$no_cache" != 1; then
3441 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3442 fi
3443
3444 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3445 echo "$as_me:$LINENO: result: yes" >&5
3446echo "${ECHO_T}yes" >&6
10f2d63a 3447 else
e6cc62c6
VS
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
10f2d63a 3450 fi
e6cc62c6 3451
10f2d63a 3452
5005acfe 3453 enablestring=
e6cc62c6
VS
3454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3455echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3456 no_cache=0
3457 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3458if test "${enable_debug_cntxt+set}" = set; then
3459 enableval="$enable_debug_cntxt"
e6cc62c6 3460
10f2d63a
VZ
3461 if test "$enableval" = yes; then
3462 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3463 else
3464 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3465 fi
e6cc62c6 3466
10f2d63a 3467else
e6cc62c6 3468
10f2d63a
VZ
3469 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3477
e6cc62c6 3478fi;
10f2d63a
VZ
3479
3480 eval "$ac_cv_use_debug_cntxt"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3486 echo "$as_me:$LINENO: result: yes" >&5
3487echo "${ECHO_T}yes" >&6
10f2d63a 3488 else
e6cc62c6
VS
3489 echo "$as_me:$LINENO: result: no" >&5
3490echo "${ECHO_T}no" >&6
10f2d63a 3491 fi
e6cc62c6 3492
10f2d63a 3493
5005acfe 3494 enablestring=
e6cc62c6
VS
3495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3496echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3497 no_cache=0
3498 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3499if test "${enable_mem_tracing+set}" = set; then
3500 enableval="$enable_mem_tracing"
e6cc62c6 3501
10f2d63a
VZ
3502 if test "$enableval" = yes; then
3503 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3504 else
3505 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3506 fi
e6cc62c6 3507
10f2d63a 3508else
e6cc62c6 3509
10f2d63a
VZ
3510 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3518
e6cc62c6 3519fi;
10f2d63a
VZ
3520
3521 eval "$ac_cv_use_mem_tracing"
3522 if test "$no_cache" != 1; then
3523 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3524 fi
3525
3526 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3527 echo "$as_me:$LINENO: result: yes" >&5
3528echo "${ECHO_T}yes" >&6
10f2d63a 3529 else
e6cc62c6
VS
3530 echo "$as_me:$LINENO: result: no" >&5
3531echo "${ECHO_T}no" >&6
10f2d63a 3532 fi
e6cc62c6 3533
10f2d63a 3534
5005acfe 3535 enablestring=
e6cc62c6
VS
3536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3537echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3538 no_cache=0
3539 # Check whether --enable-profile or --disable-profile was given.
3540if test "${enable_profile+set}" = set; then
3541 enableval="$enable_profile"
e6cc62c6 3542
10f2d63a
VZ
3543 if test "$enableval" = yes; then
3544 ac_cv_use_profile='wxUSE_PROFILE=yes'
3545 else
3546 ac_cv_use_profile='wxUSE_PROFILE=no'
3547 fi
e6cc62c6 3548
10f2d63a 3549else
e6cc62c6 3550
10f2d63a
VZ
3551 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3559
e6cc62c6 3560fi;
10f2d63a
VZ
3561
3562 eval "$ac_cv_use_profile"
3563 if test "$no_cache" != 1; then
3564 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3565 fi
3566
3567 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3568 echo "$as_me:$LINENO: result: yes" >&5
3569echo "${ECHO_T}yes" >&6
10f2d63a 3570 else
e6cc62c6
VS
3571 echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6
10f2d63a 3573 fi
e6cc62c6 3574
10f2d63a 3575
5005acfe 3576 enablestring=
e6cc62c6
VS
3577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3578echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3579 no_cache=0
3580 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3581if test "${enable_no_rtti+set}" = set; then
3582 enableval="$enable_no_rtti"
e6cc62c6 3583
10f2d63a
VZ
3584 if test "$enableval" = yes; then
3585 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3586 else
3587 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3588 fi
e6cc62c6 3589
10f2d63a 3590else
e6cc62c6 3591
10f2d63a
VZ
3592 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3593 if test "x$LINE" != x ; then
3594 eval "DEFAULT_$LINE"
3595 else
3596 no_cache=1
3597 fi
3598
3599 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3600
e6cc62c6 3601fi;
10f2d63a
VZ
3602
3603 eval "$ac_cv_use_no_rtti"
3604 if test "$no_cache" != 1; then
3605 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3606 fi
3607
3608 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3609 echo "$as_me:$LINENO: result: yes" >&5
3610echo "${ECHO_T}yes" >&6
10f2d63a 3611 else
e6cc62c6
VS
3612 echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6
10f2d63a 3614 fi
e6cc62c6 3615
10f2d63a 3616
5005acfe 3617 enablestring=
e6cc62c6
VS
3618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3619echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3620 no_cache=0
3621 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3622if test "${enable_no_exceptions+set}" = set; then
3623 enableval="$enable_no_exceptions"
e6cc62c6 3624
10f2d63a
VZ
3625 if test "$enableval" = yes; then
3626 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3627 else
3628 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3629 fi
e6cc62c6 3630
10f2d63a 3631else
e6cc62c6 3632
10f2d63a
VZ
3633 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3641
e6cc62c6 3642fi;
10f2d63a
VZ
3643
3644 eval "$ac_cv_use_no_exceptions"
3645 if test "$no_cache" != 1; then
3646 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3647 fi
3648
3649 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3650 echo "$as_me:$LINENO: result: yes" >&5
3651echo "${ECHO_T}yes" >&6
10f2d63a 3652 else
e6cc62c6
VS
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
10f2d63a 3655 fi
e6cc62c6 3656
10f2d63a 3657
5005acfe 3658 enablestring=
e6cc62c6
VS
3659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3660echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3661 no_cache=0
3662 # Check whether --enable-permissive or --disable-permissive was given.
3663if test "${enable_permissive+set}" = set; then
3664 enableval="$enable_permissive"
e6cc62c6 3665
10f2d63a
VZ
3666 if test "$enableval" = yes; then
3667 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3668 else
3669 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3670 fi
e6cc62c6 3671
10f2d63a 3672else
e6cc62c6 3673
10f2d63a
VZ
3674 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3682
e6cc62c6 3683fi;
10f2d63a
VZ
3684
3685 eval "$ac_cv_use_permissive"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3691 echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
10f2d63a 3693 else
e6cc62c6
VS
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
10f2d63a 3696 fi
e6cc62c6 3697
10f2d63a 3698
5005acfe 3699 enablestring=
e6cc62c6
VS
3700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3701echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3702 no_cache=0
3703 # Check whether --enable-no_deps or --disable-no_deps was given.
3704if test "${enable_no_deps+set}" = set; then
3705 enableval="$enable_no_deps"
e6cc62c6 3706
10f2d63a
VZ
3707 if test "$enableval" = yes; then
3708 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3709 else
3710 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3711 fi
e6cc62c6 3712
10f2d63a 3713else
e6cc62c6 3714
10f2d63a
VZ
3715 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3723
e6cc62c6 3724fi;
10f2d63a
VZ
3725
3726 eval "$ac_cv_use_no_deps"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
10f2d63a 3734 else
e6cc62c6
VS
3735 echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
10f2d63a 3737 fi
e6cc62c6 3738
52127426 3739
8284b0c5 3740
65d8ef1e 3741 enablestring=
e6cc62c6
VS
3742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3743echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3744 no_cache=0
3745 # Check whether --enable-compat22 or --disable-compat22 was given.
3746if test "${enable_compat22+set}" = set; then
3747 enableval="$enable_compat22"
e6cc62c6 3748
54276ccf
VZ
3749 if test "$enableval" = yes; then
3750 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3751 else
3752 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3753 fi
e6cc62c6 3754
54276ccf 3755else
e6cc62c6 3756
54276ccf
VZ
3757 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3758 if test "x$LINE" != x ; then
3759 eval "DEFAULT_$LINE"
3760 else
3761 no_cache=1
3762 fi
3763
3764 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3765
e6cc62c6 3766fi;
54276ccf
VZ
3767
3768 eval "$ac_cv_use_compat22"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3774 echo "$as_me:$LINENO: result: yes" >&5
3775echo "${ECHO_T}yes" >&6
54276ccf 3776 else
e6cc62c6
VS
3777 echo "$as_me:$LINENO: result: no" >&5
3778echo "${ECHO_T}no" >&6
54276ccf 3779 fi
e6cc62c6 3780
54276ccf 3781
65d8ef1e 3782 enablestring=disable
e6cc62c6
VS
3783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3784echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3785 no_cache=0
3786 # Check whether --enable-compat24 or --disable-compat24 was given.
3787if test "${enable_compat24+set}" = set; then
3788 enableval="$enable_compat24"
e6cc62c6 3789
65d8ef1e
VS
3790 if test "$enableval" = yes; then
3791 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3792 else
3793 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3794 fi
e6cc62c6 3795
65d8ef1e 3796else
e6cc62c6 3797
65d8ef1e
VS
3798 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3806
e6cc62c6 3807fi;
65d8ef1e
VS
3808
3809 eval "$ac_cv_use_compat24"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3815 echo "$as_me:$LINENO: result: yes" >&5
3816echo "${ECHO_T}yes" >&6
65d8ef1e 3817 else
e6cc62c6
VS
3818 echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6
65d8ef1e 3820 fi
e6cc62c6 3821
65d8ef1e 3822
3bd8fb5f
RD
3823# Check whether --enable-rpath or --disable-rpath was given.
3824if test "${enable_rpath+set}" = set; then
3825 enableval="$enable_rpath"
3826 wxRPATH_DIR="$enableval"
e6cc62c6 3827fi;
3bd8fb5f
RD
3828
3829if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3830 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3831fi
3832
8284b0c5
MB
3833
3834
3835
5005acfe 3836 enablestring=
e6cc62c6
VS
3837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3838echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3839 no_cache=0
3840 # Check whether --enable-intl or --disable-intl was given.
3841if test "${enable_intl+set}" = set; then
3842 enableval="$enable_intl"
e6cc62c6 3843
10f2d63a
VZ
3844 if test "$enableval" = yes; then
3845 ac_cv_use_intl='wxUSE_INTL=yes'
3846 else
3847 ac_cv_use_intl='wxUSE_INTL=no'
3848 fi
e6cc62c6 3849
10f2d63a 3850else
e6cc62c6 3851
10f2d63a
VZ
3852 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3860
e6cc62c6 3861fi;
10f2d63a
VZ
3862
3863 eval "$ac_cv_use_intl"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3869 echo "$as_me:$LINENO: result: yes" >&5
3870echo "${ECHO_T}yes" >&6
10f2d63a 3871 else
e6cc62c6
VS
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
10f2d63a 3874 fi
e6cc62c6 3875
10f2d63a 3876
5005acfe 3877 enablestring=
e6cc62c6
VS
3878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3879echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3880 no_cache=0
3881 # Check whether --enable-config or --disable-config was given.
3882if test "${enable_config+set}" = set; then
3883 enableval="$enable_config"
e6cc62c6 3884
10f2d63a
VZ
3885 if test "$enableval" = yes; then
3886 ac_cv_use_config='wxUSE_CONFIG=yes'
3887 else
3888 ac_cv_use_config='wxUSE_CONFIG=no'
3889 fi
e6cc62c6 3890
10f2d63a 3891else
e6cc62c6 3892
10f2d63a
VZ
3893 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3894 if test "x$LINE" != x ; then
3895 eval "DEFAULT_$LINE"
3896 else
3897 no_cache=1
3898 fi
3899
3900 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3901
e6cc62c6 3902fi;
10f2d63a
VZ
3903
3904 eval "$ac_cv_use_config"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3910 echo "$as_me:$LINENO: result: yes" >&5
3911echo "${ECHO_T}yes" >&6
10f2d63a 3912 else
e6cc62c6
VS
3913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
10f2d63a 3915 fi
e6cc62c6 3916
52127426 3917
8284b0c5 3918
5005acfe 3919 enablestring=
e6cc62c6
VS
3920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3921echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3922 no_cache=0
3923 # Check whether --enable-protocols or --disable-protocols was given.
3924if test "${enable_protocols+set}" = set; then
3925 enableval="$enable_protocols"
e6cc62c6 3926
a1622950
VZ
3927 if test "$enableval" = yes; then
3928 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3929 else
3930 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3931 fi
e6cc62c6 3932
a1622950 3933else
e6cc62c6 3934
a1622950
VZ
3935 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3936 if test "x$LINE" != x ; then
3937 eval "DEFAULT_$LINE"
3938 else
3939 no_cache=1
3940 fi
3941
3942 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3943
e6cc62c6 3944fi;
a1622950
VZ
3945
3946 eval "$ac_cv_use_protocols"
3947 if test "$no_cache" != 1; then
3948 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3949 fi
3950
3951 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3952 echo "$as_me:$LINENO: result: yes" >&5
3953echo "${ECHO_T}yes" >&6
a1622950 3954 else
e6cc62c6
VS
3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
a1622950 3957 fi
e6cc62c6 3958
a1622950 3959
5005acfe 3960 enablestring=
e6cc62c6
VS
3961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3962echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3963 no_cache=0
3964 # Check whether --enable-ftp or --disable-ftp was given.
3965if test "${enable_ftp+set}" = set; then
3966 enableval="$enable_ftp"
e6cc62c6 3967
a1622950
VZ
3968 if test "$enableval" = yes; then
3969 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3970 else
3971 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3972 fi
e6cc62c6 3973
a1622950 3974else
e6cc62c6 3975
a1622950
VZ
3976 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3977 if test "x$LINE" != x ; then
3978 eval "DEFAULT_$LINE"
3979 else
3980 no_cache=1
3981 fi
3982
3983 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3984
e6cc62c6 3985fi;
a1622950
VZ
3986
3987 eval "$ac_cv_use_ftp"
3988 if test "$no_cache" != 1; then
3989 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3990 fi
3991
3992 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3993 echo "$as_me:$LINENO: result: yes" >&5
3994echo "${ECHO_T}yes" >&6
a1622950 3995 else
e6cc62c6
VS
3996 echo "$as_me:$LINENO: result: no" >&5
3997echo "${ECHO_T}no" >&6
a1622950 3998 fi
e6cc62c6 3999
a1622950 4000
5005acfe 4001 enablestring=
e6cc62c6
VS
4002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4003echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4004 no_cache=0
4005 # Check whether --enable-http or --disable-http was given.
4006if test "${enable_http+set}" = set; then
4007 enableval="$enable_http"
e6cc62c6 4008
a1622950
VZ
4009 if test "$enableval" = yes; then
4010 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4011 else
4012 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4013 fi
e6cc62c6 4014
a1622950 4015else
e6cc62c6 4016
a1622950
VZ
4017 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4025
e6cc62c6 4026fi;
a1622950
VZ
4027
4028 eval "$ac_cv_use_http"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4034 echo "$as_me:$LINENO: result: yes" >&5
4035echo "${ECHO_T}yes" >&6
a1622950 4036 else
e6cc62c6
VS
4037 echo "$as_me:$LINENO: result: no" >&5
4038echo "${ECHO_T}no" >&6
a1622950 4039 fi
e6cc62c6 4040
a1622950 4041
5005acfe 4042 enablestring=
e6cc62c6
VS
4043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4044echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4045 no_cache=0
4046 # Check whether --enable-fileproto or --disable-fileproto was given.
4047if test "${enable_fileproto+set}" = set; then
4048 enableval="$enable_fileproto"
e6cc62c6 4049
a1622950
VZ
4050 if test "$enableval" = yes; then
4051 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4052 else
4053 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4054 fi
e6cc62c6 4055
a1622950 4056else
e6cc62c6 4057
a1622950
VZ
4058 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4059 if test "x$LINE" != x ; then
4060 eval "DEFAULT_$LINE"
4061 else
4062 no_cache=1
4063 fi
4064
4065 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4066
e6cc62c6 4067fi;
a1622950
VZ
4068
4069 eval "$ac_cv_use_fileproto"
4070 if test "$no_cache" != 1; then
4071 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4072 fi
4073
4074 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4075 echo "$as_me:$LINENO: result: yes" >&5
4076echo "${ECHO_T}yes" >&6
a1622950 4077 else
e6cc62c6
VS
4078 echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
a1622950 4080 fi
e6cc62c6 4081
a1622950 4082
5005acfe 4083 enablestring=
e6cc62c6
VS
4084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4085echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4086 no_cache=0
4087 # Check whether --enable-sockets or --disable-sockets was given.
4088if test "${enable_sockets+set}" = set; then
4089 enableval="$enable_sockets"
e6cc62c6 4090
10f2d63a
VZ
4091 if test "$enableval" = yes; then
4092 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4093 else
4094 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4095 fi
e6cc62c6 4096
10f2d63a 4097else
e6cc62c6 4098
10f2d63a
VZ
4099 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4100 if test "x$LINE" != x ; then
4101 eval "DEFAULT_$LINE"
4102 else
4103 no_cache=1
4104 fi
4105
4106 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4107
e6cc62c6 4108fi;
10f2d63a
VZ
4109
4110 eval "$ac_cv_use_sockets"
4111 if test "$no_cache" != 1; then
4112 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4113 fi
4114
4115 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4116 echo "$as_me:$LINENO: result: yes" >&5
4117echo "${ECHO_T}yes" >&6
10f2d63a 4118 else
e6cc62c6
VS
4119 echo "$as_me:$LINENO: result: no" >&5
4120echo "${ECHO_T}no" >&6
10f2d63a 4121 fi
e6cc62c6 4122
8284b0c5 4123
5005acfe 4124 enablestring=
e6cc62c6
VS
4125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4126echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4127 no_cache=0
4128 # Check whether --enable-ole or --disable-ole was given.
4129if test "${enable_ole+set}" = set; then
4130 enableval="$enable_ole"
e6cc62c6 4131
3bce6687
JS
4132 if test "$enableval" = yes; then
4133 ac_cv_use_ole='wxUSE_OLE=yes'
4134 else
4135 ac_cv_use_ole='wxUSE_OLE=no'
4136 fi
e6cc62c6 4137
3bce6687 4138else
e6cc62c6 4139
3bce6687
JS
4140 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4141 if test "x$LINE" != x ; then
4142 eval "DEFAULT_$LINE"
4143 else
4144 no_cache=1
4145 fi
4146
4147 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4148
e6cc62c6 4149fi;
3bce6687
JS
4150
4151 eval "$ac_cv_use_ole"
4152 if test "$no_cache" != 1; then
4153 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4154 fi
4155
4156 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4157 echo "$as_me:$LINENO: result: yes" >&5
4158echo "${ECHO_T}yes" >&6
3bce6687 4159 else
e6cc62c6
VS
4160 echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6
3bce6687 4162 fi
e6cc62c6 4163
3bce6687 4164
5005acfe 4165 enablestring=
e6cc62c6
VS
4166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4167echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4168 no_cache=0
4169 # Check whether --enable-dataobj or --disable-dataobj was given.
4170if test "${enable_dataobj+set}" = set; then
4171 enableval="$enable_dataobj"
e6cc62c6 4172
3bce6687
JS
4173 if test "$enableval" = yes; then
4174 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4175 else
4176 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4177 fi
e6cc62c6 4178
3bce6687 4179else
e6cc62c6 4180
3bce6687
JS
4181 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
4188 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4189
e6cc62c6 4190fi;
3bce6687
JS
4191
4192 eval "$ac_cv_use_dataobj"
4193 if test "$no_cache" != 1; then
4194 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4195 fi
4196
4197 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4198 echo "$as_me:$LINENO: result: yes" >&5
4199echo "${ECHO_T}yes" >&6
3bce6687 4200 else
e6cc62c6
VS
4201 echo "$as_me:$LINENO: result: no" >&5
4202echo "${ECHO_T}no" >&6
3bce6687 4203 fi
e6cc62c6 4204
3bce6687 4205
52127426 4206
5005acfe 4207 enablestring=
e6cc62c6
VS
4208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4209echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4210 no_cache=0
eb4efbdc
VZ
4211 # Check whether --enable-ipc or --disable-ipc was given.
4212if test "${enable_ipc+set}" = set; then
4213 enableval="$enable_ipc"
e6cc62c6 4214
10f2d63a 4215 if test "$enableval" = yes; then
eb4efbdc 4216 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4217 else
eb4efbdc 4218 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4219 fi
e6cc62c6 4220
10f2d63a 4221else
e6cc62c6 4222
eb4efbdc 4223 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4224 if test "x$LINE" != x ; then
4225 eval "DEFAULT_$LINE"
4226 else
4227 no_cache=1
4228 fi
4229
eb4efbdc 4230 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4231
e6cc62c6 4232fi;
10f2d63a 4233
eb4efbdc 4234 eval "$ac_cv_use_ipc"
10f2d63a 4235 if test "$no_cache" != 1; then
eb4efbdc 4236 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4237 fi
4238
eb4efbdc 4239 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4240 echo "$as_me:$LINENO: result: yes" >&5
4241echo "${ECHO_T}yes" >&6
10f2d63a 4242 else
e6cc62c6
VS
4243 echo "$as_me:$LINENO: result: no" >&5
4244echo "${ECHO_T}no" >&6
10f2d63a 4245 fi
e6cc62c6 4246
52127426 4247
8284b0c5 4248
5005acfe 4249 enablestring=
e46d2a18
VS
4250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4251echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4252 no_cache=0
e46d2a18
VS
4253 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4254if test "${enable_apple_ieee+set}" = set; then
4255 enableval="$enable_apple_ieee"
e6cc62c6 4256
10f2d63a 4257 if test "$enableval" = yes; then
e46d2a18 4258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4259 else
e46d2a18 4260 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4261 fi
e6cc62c6 4262
10f2d63a 4263else
e6cc62c6 4264
e46d2a18 4265 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4266 if test "x$LINE" != x ; then
4267 eval "DEFAULT_$LINE"
4268 else
4269 no_cache=1
4270 fi
4271
e46d2a18 4272 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4273
e6cc62c6 4274fi;
10f2d63a 4275
e46d2a18 4276 eval "$ac_cv_use_apple_ieee"
10f2d63a 4277 if test "$no_cache" != 1; then
e46d2a18 4278 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4279 fi
4280
e46d2a18 4281 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4282 echo "$as_me:$LINENO: result: yes" >&5
4283echo "${ECHO_T}yes" >&6
10f2d63a 4284 else
e6cc62c6
VS
4285 echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6
10f2d63a 4287 fi
e6cc62c6 4288
10f2d63a 4289
5005acfe 4290 enablestring=
e46d2a18
VS
4291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4292echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4293 no_cache=0
e46d2a18
VS
4294 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4295if test "${enable_catch_segvs+set}" = set; then
4296 enableval="$enable_catch_segvs"
e6cc62c6 4297
10f2d63a 4298 if test "$enableval" = yes; then
e46d2a18 4299 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4300 else
e46d2a18 4301 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4302 fi
e6cc62c6 4303
10f2d63a 4304else
e6cc62c6 4305
e46d2a18 4306 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
e46d2a18 4313 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4314
e6cc62c6 4315fi;
10f2d63a 4316
e46d2a18 4317 eval "$ac_cv_use_catch_segvs"
10f2d63a 4318 if test "$no_cache" != 1; then
e46d2a18 4319 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4320 fi
4321
e46d2a18 4322 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4323 echo "$as_me:$LINENO: result: yes" >&5
4324echo "${ECHO_T}yes" >&6
10f2d63a 4325 else
e6cc62c6
VS
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
10f2d63a 4328 fi
e6cc62c6 4329
10f2d63a 4330
5005acfe 4331 enablestring=
e46d2a18
VS
4332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4333echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4334 no_cache=0
e46d2a18
VS
4335 # Check whether --enable-cmdline or --disable-cmdline was given.
4336if test "${enable_cmdline+set}" = set; then
4337 enableval="$enable_cmdline"
e6cc62c6 4338
10f2d63a 4339 if test "$enableval" = yes; then
e46d2a18 4340 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4341 else
e46d2a18 4342 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4343 fi
e6cc62c6 4344
10f2d63a 4345else
e6cc62c6 4346
e46d2a18 4347 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4348 if test "x$LINE" != x ; then
4349 eval "DEFAULT_$LINE"
4350 else
4351 no_cache=1
4352 fi
4353
e46d2a18 4354 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4355
e6cc62c6 4356fi;
10f2d63a 4357
e46d2a18 4358 eval "$ac_cv_use_cmdline"
10f2d63a 4359 if test "$no_cache" != 1; then
e46d2a18 4360 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4361 fi
4362
e46d2a18 4363 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4364 echo "$as_me:$LINENO: result: yes" >&5
4365echo "${ECHO_T}yes" >&6
10f2d63a 4366 else
e6cc62c6
VS
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
10f2d63a 4369 fi
e6cc62c6 4370
10f2d63a 4371
5005acfe 4372 enablestring=
e46d2a18
VS
4373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4374echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4375 no_cache=0
e46d2a18
VS
4376 # Check whether --enable-datetime or --disable-datetime was given.
4377if test "${enable_datetime+set}" = set; then
4378 enableval="$enable_datetime"
e6cc62c6 4379
10f2d63a 4380 if test "$enableval" = yes; then
e46d2a18 4381 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4382 else
e46d2a18 4383 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4384 fi
e6cc62c6 4385
10f2d63a 4386else
e6cc62c6 4387
e46d2a18 4388 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
e46d2a18 4395 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4396
e6cc62c6 4397fi;
10f2d63a 4398
e46d2a18 4399 eval "$ac_cv_use_datetime"
10f2d63a 4400 if test "$no_cache" != 1; then
e46d2a18 4401 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4402 fi
4403
e46d2a18 4404 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4405 echo "$as_me:$LINENO: result: yes" >&5
4406echo "${ECHO_T}yes" >&6
10f2d63a 4407 else
e6cc62c6
VS
4408 echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
10f2d63a 4410 fi
e6cc62c6 4411
10f2d63a 4412
5005acfe 4413 enablestring=
e46d2a18
VS
4414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4415echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4416 no_cache=0
e46d2a18
VS
4417 # Check whether --enable-dialupman or --disable-dialupman was given.
4418if test "${enable_dialupman+set}" = set; then
4419 enableval="$enable_dialupman"
e6cc62c6 4420
10f2d63a 4421 if test "$enableval" = yes; then
e46d2a18 4422 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4423 else
e46d2a18 4424 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4425 fi
e6cc62c6 4426
10f2d63a 4427else
e6cc62c6 4428
e46d2a18 4429 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
e46d2a18 4436 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4437
e6cc62c6 4438fi;
10f2d63a 4439
e46d2a18 4440 eval "$ac_cv_use_dialupman"
10f2d63a 4441 if test "$no_cache" != 1; then
e46d2a18 4442 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4443 fi
4444
e46d2a18 4445 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4446 echo "$as_me:$LINENO: result: yes" >&5
4447echo "${ECHO_T}yes" >&6
10f2d63a 4448 else
e6cc62c6
VS
4449 echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6
10f2d63a 4451 fi
e6cc62c6 4452
10f2d63a 4453
5005acfe 4454 enablestring=
e6cc62c6
VS
4455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4456echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4457 no_cache=0
4458 # Check whether --enable-dynlib or --disable-dynlib was given.
4459if test "${enable_dynlib+set}" = set; then
4460 enableval="$enable_dynlib"
e6cc62c6 4461
10f2d63a
VZ
4462 if test "$enableval" = yes; then
4463 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4464 else
4465 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4466 fi
e6cc62c6 4467
10f2d63a 4468else
e6cc62c6 4469
10f2d63a
VZ
4470 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4471 if test "x$LINE" != x ; then
4472 eval "DEFAULT_$LINE"
4473 else
4474 no_cache=1
4475 fi
4476
4477 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4478
e6cc62c6 4479fi;
10f2d63a
VZ
4480
4481 eval "$ac_cv_use_dynlib"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4487 echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
10f2d63a 4489 else
e6cc62c6
VS
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
10f2d63a 4492 fi
e6cc62c6 4493
10f2d63a 4494
5005acfe 4495 enablestring=
e6cc62c6
VS
4496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4497echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4498 no_cache=0
4499 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4500if test "${enable_dynamicloader+set}" = set; then
4501 enableval="$enable_dynamicloader"
e6cc62c6 4502
0b9ab0bd
RL
4503 if test "$enableval" = yes; then
4504 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4505 else
4506 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4507 fi
e6cc62c6 4508
0b9ab0bd 4509else
e6cc62c6 4510
0b9ab0bd
RL
4511 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4519
e6cc62c6 4520fi;
0b9ab0bd
RL
4521
4522 eval "$ac_cv_use_dynamicloader"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
0b9ab0bd 4530 else
e6cc62c6
VS
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
0b9ab0bd 4533 fi
e6cc62c6 4534
0b9ab0bd 4535
5005acfe 4536 enablestring=
e46d2a18
VS
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4539 no_cache=0
e46d2a18
VS
4540 # Check whether --enable-exceptions or --disable-exceptions was given.
4541if test "${enable_exceptions+set}" = set; then
4542 enableval="$enable_exceptions"
e6cc62c6 4543
10f2d63a 4544 if test "$enableval" = yes; then
e46d2a18 4545 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4546 else
e46d2a18 4547 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4548 fi
e6cc62c6 4549
10f2d63a 4550else
e6cc62c6 4551
e46d2a18 4552 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
e46d2a18 4559 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4560
e6cc62c6 4561fi;
10f2d63a 4562
e46d2a18 4563 eval "$ac_cv_use_exceptions"
10f2d63a 4564 if test "$no_cache" != 1; then
e46d2a18 4565 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4566 fi
4567
e46d2a18 4568 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
10f2d63a 4571 else
e6cc62c6
VS
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
10f2d63a 4574 fi
e6cc62c6 4575
10f2d63a 4576
5005acfe 4577 enablestring=
e46d2a18
VS
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4580 no_cache=0
e46d2a18
VS
4581 # Check whether --enable-ffile or --disable-ffile was given.
4582if test "${enable_ffile+set}" = set; then
4583 enableval="$enable_ffile"
e6cc62c6 4584
e8f65ba6 4585 if test "$enableval" = yes; then
e46d2a18 4586 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4587 else
e46d2a18 4588 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4589 fi
e6cc62c6 4590
e8f65ba6 4591else
e6cc62c6 4592
e46d2a18 4593 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
e46d2a18 4600 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4601
e6cc62c6 4602fi;
e8f65ba6 4603
e46d2a18 4604 eval "$ac_cv_use_ffile"
e8f65ba6 4605 if test "$no_cache" != 1; then
e46d2a18 4606 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4607 fi
4608
e46d2a18 4609 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
e8f65ba6 4612 else
e6cc62c6
VS
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
e8f65ba6 4615 fi
e6cc62c6 4616
e8f65ba6 4617
5005acfe 4618 enablestring=
e46d2a18
VS
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4621 no_cache=0
e46d2a18
VS
4622 # Check whether --enable-file or --disable-file was given.
4623if test "${enable_file+set}" = set; then
4624 enableval="$enable_file"
e6cc62c6 4625
10f2d63a 4626 if test "$enableval" = yes; then
e46d2a18 4627 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4628 else
e46d2a18 4629 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4630 fi
e6cc62c6 4631
10f2d63a 4632else
e6cc62c6 4633
e46d2a18 4634 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
e46d2a18 4641 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4642
e6cc62c6 4643fi;
10f2d63a 4644
e46d2a18 4645 eval "$ac_cv_use_file"
10f2d63a 4646 if test "$no_cache" != 1; then
e46d2a18 4647 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4648 fi
4649
e46d2a18 4650 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
10f2d63a 4653 else
e6cc62c6
VS
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
10f2d63a 4656 fi
e6cc62c6 4657
10f2d63a 4658
5005acfe 4659 enablestring=
e46d2a18
VS
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4662 no_cache=0
e46d2a18
VS
4663 # Check whether --enable-filesystem or --disable-filesystem was given.
4664if test "${enable_filesystem+set}" = set; then
4665 enableval="$enable_filesystem"
e6cc62c6 4666
10f2d63a 4667 if test "$enableval" = yes; then
e46d2a18 4668 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4669 else
e46d2a18 4670 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4671 fi
e6cc62c6 4672
10f2d63a 4673else
e6cc62c6 4674
e46d2a18 4675 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
e46d2a18 4682 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4683
e6cc62c6 4684fi;
10f2d63a 4685
e46d2a18 4686 eval "$ac_cv_use_filesystem"
10f2d63a 4687 if test "$no_cache" != 1; then
e46d2a18 4688 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4689 fi
4690
e46d2a18 4691 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
10f2d63a 4694 else
e6cc62c6
VS
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
10f2d63a 4697 fi
e6cc62c6 4698
10f2d63a 4699
5005acfe 4700 enablestring=
e46d2a18
VS
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4703 no_cache=0
e46d2a18
VS
4704 # Check whether --enable-fontmap or --disable-fontmap was given.
4705if test "${enable_fontmap+set}" = set; then
4706 enableval="$enable_fontmap"
e6cc62c6 4707
10f2d63a 4708 if test "$enableval" = yes; then
e46d2a18 4709 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4710 else
e46d2a18 4711 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4712 fi
e6cc62c6 4713
10f2d63a 4714else
e6cc62c6 4715
e46d2a18 4716 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
e46d2a18 4723 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4724
e6cc62c6 4725fi;
10f2d63a 4726
e46d2a18 4727 eval "$ac_cv_use_fontmap"
10f2d63a 4728 if test "$no_cache" != 1; then
e46d2a18 4729 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4730 fi
4731
e46d2a18 4732 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
10f2d63a 4735 else
e6cc62c6
VS
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
10f2d63a 4738 fi
e6cc62c6 4739
10f2d63a 4740
5005acfe 4741 enablestring=
e46d2a18
VS
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4744 no_cache=0
e46d2a18
VS
4745 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4746if test "${enable_fs_inet+set}" = set; then
4747 enableval="$enable_fs_inet"
e6cc62c6 4748
10f2d63a 4749 if test "$enableval" = yes; then
e46d2a18 4750 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4751 else
e46d2a18 4752 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4753 fi
e6cc62c6 4754
10f2d63a 4755else
e6cc62c6 4756
e46d2a18 4757 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
e46d2a18 4764 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4765
e6cc62c6 4766fi;
10f2d63a 4767
e46d2a18 4768 eval "$ac_cv_use_fs_inet"
10f2d63a 4769 if test "$no_cache" != 1; then
e46d2a18 4770 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4771 fi
4772
e46d2a18 4773 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
10f2d63a 4776 else
e6cc62c6
VS
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
10f2d63a 4779 fi
e6cc62c6 4780
10f2d63a 4781
5005acfe 4782 enablestring=
e46d2a18
VS
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4785 no_cache=0
e46d2a18
VS
4786 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4787if test "${enable_fs_zip+set}" = set; then
4788 enableval="$enable_fs_zip"
e6cc62c6 4789
a3a584a7 4790 if test "$enableval" = yes; then
e46d2a18 4791 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4792 else
e46d2a18 4793 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4794 fi
e6cc62c6 4795
a3a584a7 4796else
e6cc62c6 4797
e46d2a18 4798 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
e46d2a18 4805 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4806
e6cc62c6 4807fi;
a3a584a7 4808
e46d2a18 4809 eval "$ac_cv_use_fs_zip"
a3a584a7 4810 if test "$no_cache" != 1; then
e46d2a18 4811 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4812 fi
4813
e46d2a18 4814 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
a3a584a7 4817 else
e6cc62c6
VS
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
a3a584a7 4820 fi
e6cc62c6 4821
a3a584a7 4822
5005acfe 4823 enablestring=
e46d2a18
VS
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4826 no_cache=0
e46d2a18
VS
4827 # Check whether --enable-geometry or --disable-geometry was given.
4828if test "${enable_geometry+set}" = set; then
4829 enableval="$enable_geometry"
e6cc62c6 4830
10f2d63a 4831 if test "$enableval" = yes; then
e46d2a18 4832 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4833 else
e46d2a18 4834 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4835 fi
e6cc62c6 4836
10f2d63a 4837else
e6cc62c6 4838
e46d2a18 4839 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
e46d2a18 4846 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4847
e6cc62c6 4848fi;
10f2d63a 4849
e46d2a18 4850 eval "$ac_cv_use_geometry"
10f2d63a 4851 if test "$no_cache" != 1; then
e46d2a18 4852 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4853 fi
4854
e46d2a18 4855 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
10f2d63a 4858 else
e6cc62c6
VS
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
10f2d63a 4861 fi
e6cc62c6 4862
10f2d63a 4863
5005acfe 4864 enablestring=
e46d2a18
VS
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4867 no_cache=0
e46d2a18
VS
4868 # Check whether --enable-log or --disable-log was given.
4869if test "${enable_log+set}" = set; then
4870 enableval="$enable_log"
e6cc62c6 4871
10f2d63a 4872 if test "$enableval" = yes; then
e46d2a18 4873 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4874 else
e46d2a18 4875 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4876 fi
e6cc62c6 4877
10f2d63a 4878else
e6cc62c6 4879
e46d2a18 4880 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
e46d2a18 4887 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4888
e6cc62c6 4889fi;
10f2d63a 4890
e46d2a18 4891 eval "$ac_cv_use_log"
10f2d63a 4892 if test "$no_cache" != 1; then
e46d2a18 4893 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4894 fi
4895
e46d2a18 4896 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
10f2d63a 4899 else
e6cc62c6
VS
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
10f2d63a 4902 fi
e6cc62c6 4903
10f2d63a 4904
5005acfe 4905 enablestring=
e46d2a18
VS
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 4908 no_cache=0
e46d2a18
VS
4909 # Check whether --enable-longlong or --disable-longlong was given.
4910if test "${enable_longlong+set}" = set; then
4911 enableval="$enable_longlong"
e6cc62c6 4912
1e6feb95 4913 if test "$enableval" = yes; then
e46d2a18 4914 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 4915 else
e46d2a18 4916 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 4917 fi
e6cc62c6 4918
1e6feb95 4919else
e6cc62c6 4920
e46d2a18 4921 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
e46d2a18 4928 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 4929
e6cc62c6 4930fi;
1e6feb95 4931
e46d2a18 4932 eval "$ac_cv_use_longlong"
1e6feb95 4933 if test "$no_cache" != 1; then
e46d2a18 4934 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
4935 fi
4936
e46d2a18
VS
4937 if test "$wxUSE_LONGLONG" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-mimetype or --disable-mimetype was given.
4951if test "${enable_mimetype+set}" = set; then
4952 enableval="$enable_mimetype"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4956 else
4957 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4970
4971fi;
4972
4973 eval "$ac_cv_use_mimetype"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
1e6feb95 4981 else
e6cc62c6
VS
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
1e6feb95 4984 fi
e6cc62c6 4985
1e6feb95 4986
5005acfe 4987 enablestring=
e6cc62c6
VS
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4990 no_cache=0
4991 # Check whether --enable-mslu or --disable-mslu was given.
4992if test "${enable_mslu+set}" = set; then
4993 enableval="$enable_mslu"
e6cc62c6 4994
a72a4bfa
VS
4995 if test "$enableval" = yes; then
4996 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4997 else
4998 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4999 fi
e6cc62c6 5000
a72a4bfa 5001else
e6cc62c6 5002
a72a4bfa
VS
5003 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5011
e6cc62c6 5012fi;
a72a4bfa
VS
5013
5014 eval "$ac_cv_use_mslu"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
a72a4bfa 5022 else
e6cc62c6
VS
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
a72a4bfa 5025 fi
e6cc62c6 5026
a72a4bfa 5027
5005acfe 5028 enablestring=
e46d2a18
VS
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5031 no_cache=0
e46d2a18
VS
5032 # Check whether --enable-snglinst or --disable-snglinst was given.
5033if test "${enable_snglinst+set}" = set; then
5034 enableval="$enable_snglinst"
e6cc62c6 5035
1e6feb95 5036 if test "$enableval" = yes; then
e46d2a18 5037 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5038 else
e46d2a18 5039 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5040 fi
e6cc62c6 5041
10f2d63a 5042else
e6cc62c6 5043
e46d2a18 5044 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
e46d2a18 5051 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5052
e6cc62c6 5053fi;
10f2d63a 5054
e46d2a18 5055 eval "$ac_cv_use_snglinst"
10f2d63a 5056 if test "$no_cache" != 1; then
e46d2a18 5057 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5058 fi
5059
e46d2a18
VS
5060 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-streams or --disable-streams was given.
5074if test "${enable_streams+set}" = set; then
5075 enableval="$enable_streams"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_streams='wxUSE_STREAMS=yes'
5079 else
5080 ac_cv_use_streams='wxUSE_STREAMS=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5093
5094fi;
5095
5096 eval "$ac_cv_use_streams"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
10f2d63a 5104 else
e6cc62c6
VS
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
10f2d63a 5107 fi
e6cc62c6 5108
10f2d63a 5109
5005acfe 5110 enablestring=
e6cc62c6
VS
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5113 no_cache=0
5114 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5115if test "${enable_std_iostreams+set}" = set; then
5116 enableval="$enable_std_iostreams"
e6cc62c6 5117
10f2d63a
VZ
5118 if test "$enableval" = yes; then
5119 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5120 else
5121 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5122 fi
e6cc62c6 5123
10f2d63a 5124else
e6cc62c6 5125
10f2d63a
VZ
5126 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5134
e6cc62c6 5135fi;
10f2d63a
VZ
5136
5137 eval "$ac_cv_use_std_iostreams"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
10f2d63a 5145 else
e6cc62c6
VS
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
10f2d63a 5148 fi
e6cc62c6 5149
10f2d63a 5150
5005acfe 5151 enablestring=
e46d2a18
VS
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5154 no_cache=0
e46d2a18
VS
5155 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5156if test "${enable_stopwatch+set}" = set; then
5157 enableval="$enable_stopwatch"
e6cc62c6 5158
24528b0c 5159 if test "$enableval" = yes; then
e46d2a18 5160 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5161 else
e46d2a18 5162 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5163 fi
e6cc62c6 5164
24528b0c 5165else
e6cc62c6 5166
e46d2a18 5167 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
e46d2a18 5174 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5175
e6cc62c6 5176fi;
24528b0c 5177
e46d2a18 5178 eval "$ac_cv_use_stopwatch"
24528b0c 5179 if test "$no_cache" != 1; then
e46d2a18 5180 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5181 fi
5182
e46d2a18 5183 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
24528b0c 5186 else
e6cc62c6
VS
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
24528b0c 5189 fi
e6cc62c6 5190
24528b0c 5191
5005acfe 5192 enablestring=
e46d2a18
VS
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5195 no_cache=0
e46d2a18
VS
5196 # Check whether --enable-system_options or --disable-system_options was given.
5197if test "${enable_system_options+set}" = set; then
5198 enableval="$enable_system_options"
e6cc62c6 5199
10f2d63a 5200 if test "$enableval" = yes; then
e46d2a18 5201 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5202 else
e46d2a18 5203 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5204 fi
e6cc62c6 5205
10f2d63a 5206else
e6cc62c6 5207
e46d2a18 5208 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
e46d2a18 5215 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5216
e6cc62c6 5217fi;
10f2d63a 5218
e46d2a18 5219 eval "$ac_cv_use_system_options"
10f2d63a 5220 if test "$no_cache" != 1; then
e46d2a18 5221 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5222 fi
5223
e46d2a18 5224 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
10f2d63a 5227 else
e6cc62c6
VS
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
10f2d63a 5230 fi
e6cc62c6 5231
10f2d63a 5232
5005acfe 5233 enablestring=
e46d2a18
VS
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5236 no_cache=0
e46d2a18
VS
5237 # Check whether --enable-textbuf or --disable-textbuf was given.
5238if test "${enable_textbuf+set}" = set; then
5239 enableval="$enable_textbuf"
e6cc62c6 5240
10f2d63a 5241 if test "$enableval" = yes; then
e46d2a18 5242 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5243 else
e46d2a18 5244 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5245 fi
e6cc62c6 5246
10f2d63a 5247else
e6cc62c6 5248
e46d2a18 5249 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
e46d2a18 5256 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5257
e6cc62c6 5258fi;
10f2d63a 5259
e46d2a18 5260 eval "$ac_cv_use_textbuf"
10f2d63a 5261 if test "$no_cache" != 1; then
e46d2a18 5262 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5263 fi
5264
e46d2a18 5265 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
10f2d63a 5268 else
e6cc62c6
VS
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
10f2d63a 5271 fi
e6cc62c6 5272
10f2d63a 5273
5005acfe 5274 enablestring=
e46d2a18
VS
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5277 no_cache=0
e46d2a18
VS
5278 # Check whether --enable-textfile or --disable-textfile was given.
5279if test "${enable_textfile+set}" = set; then
5280 enableval="$enable_textfile"
e6cc62c6 5281
10f2d63a 5282 if test "$enableval" = yes; then
e46d2a18 5283 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5284 else
e46d2a18 5285 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5286 fi
e6cc62c6 5287
10f2d63a 5288else
e6cc62c6 5289
e46d2a18 5290 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
e46d2a18 5297 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5298
e6cc62c6 5299fi;
10f2d63a 5300
e46d2a18 5301 eval "$ac_cv_use_textfile"
10f2d63a 5302 if test "$no_cache" != 1; then
e46d2a18 5303 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5304 fi
5305
e46d2a18 5306 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
10f2d63a 5309 else
e6cc62c6
VS
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
10f2d63a 5312 fi
e6cc62c6 5313
8284b0c5 5314
5005acfe 5315 enablestring=
e46d2a18
VS
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5318 no_cache=0
e46d2a18
VS
5319 # Check whether --enable-timer or --disable-timer was given.
5320if test "${enable_timer+set}" = set; then
5321 enableval="$enable_timer"
e6cc62c6 5322
eb4efbdc 5323 if test "$enableval" = yes; then
e46d2a18 5324 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5325 else
e46d2a18 5326 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5327 fi
e6cc62c6 5328
eb4efbdc 5329else
e6cc62c6 5330
e46d2a18 5331 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
e46d2a18 5338 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5339
e6cc62c6 5340fi;
eb4efbdc 5341
e46d2a18 5342 eval "$ac_cv_use_timer"
eb4efbdc 5343 if test "$no_cache" != 1; then
e46d2a18 5344 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5345 fi
5346
e46d2a18 5347 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
eb4efbdc 5350 else
e6cc62c6
VS
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
eb4efbdc 5353 fi
e6cc62c6 5354
eb4efbdc 5355
5005acfe 5356 enablestring=
e46d2a18
VS
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5359 no_cache=0
e46d2a18
VS
5360 # Check whether --enable-unicode or --disable-unicode was given.
5361if test "${enable_unicode+set}" = set; then
5362 enableval="$enable_unicode"
e6cc62c6 5363
4f3c5f06 5364 if test "$enableval" = yes; then
e46d2a18 5365 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5366 else
e46d2a18 5367 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5368 fi
e6cc62c6 5369
4f3c5f06 5370else
e6cc62c6 5371
e46d2a18 5372 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
e46d2a18 5379 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5380
e6cc62c6 5381fi;
4f3c5f06 5382
e46d2a18 5383 eval "$ac_cv_use_unicode"
4f3c5f06 5384 if test "$no_cache" != 1; then
e46d2a18 5385 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5386 fi
5387
e46d2a18 5388 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
4f3c5f06 5391 else
e6cc62c6
VS
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
4f3c5f06 5394 fi
e6cc62c6 5395
52127426 5396
e46d2a18
VS
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-wave or --disable-wave was given.
5402if test "${enable_wave+set}" = set; then
5403 enableval="$enable_wave"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_wave='wxUSE_WAVE=yes'
5407 else
5408 ac_cv_use_wave='wxUSE_WAVE=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5421
5422fi;
5423
5424 eval "$ac_cv_use_wave"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_WAVE" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
8284b0c5 5437
5005acfe 5438 enablestring=
e46d2a18
VS
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5441 no_cache=0
e46d2a18
VS
5442 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5443if test "${enable_wxprintfv+set}" = set; then
5444 enableval="$enable_wxprintfv"
e6cc62c6 5445
1e6feb95 5446 if test "$enableval" = yes; then
e46d2a18 5447 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5448 else
e46d2a18 5449 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5450 fi
e6cc62c6 5451
1e6feb95 5452else
e6cc62c6 5453
e46d2a18 5454 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
e46d2a18 5461 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5462
e6cc62c6 5463fi;
1e6feb95 5464
e46d2a18 5465 eval "$ac_cv_use_wxprintfv"
1e6feb95 5466 if test "$no_cache" != 1; then
e46d2a18 5467 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5468 fi
5469
e46d2a18 5470 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
1e6feb95 5473 else
e6cc62c6
VS
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
1e6feb95 5476 fi
e6cc62c6 5477
1e6feb95 5478
5005acfe 5479 enablestring=
e46d2a18
VS
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5482 no_cache=0
e46d2a18
VS
5483 # Check whether --enable-zipstream or --disable-zipstream was given.
5484if test "${enable_zipstream+set}" = set; then
5485 enableval="$enable_zipstream"
e6cc62c6 5486
3e44f09d 5487 if test "$enableval" = yes; then
e46d2a18 5488 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5489 else
e46d2a18 5490 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5491 fi
e6cc62c6 5492
3e44f09d 5493else
e6cc62c6 5494
e46d2a18 5495 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
e46d2a18 5502 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5503
e6cc62c6 5504fi;
3e44f09d 5505
e46d2a18 5506 eval "$ac_cv_use_zipstream"
3e44f09d 5507 if test "$no_cache" != 1; then
e46d2a18 5508 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5509 fi
5510
e46d2a18 5511 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
3e44f09d 5514 else
e6cc62c6
VS
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
3e44f09d 5517 fi
e6cc62c6 5518
8284b0c5 5519
7015ef3a
VZ
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-gzstream or --disable-gzstream was given.
5525if test "${enable_gzstream+set}" = set; then
5526 enableval="$enable_gzstream"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5530 else
5531 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5544
5545fi;
5546
5547 eval "$ac_cv_use_gzstream"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_GZSTREAM" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
52127426 5561
5005acfe 5562 enablestring=
e6cc62c6
VS
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5565 no_cache=0
5566 # Check whether --enable-url or --disable-url was given.
5567if test "${enable_url+set}" = set; then
5568 enableval="$enable_url"
e6cc62c6 5569
4cdb0ab0
VS
5570 if test "$enableval" = yes; then
5571 ac_cv_use_url='wxUSE_URL=yes'
5572 else
5573 ac_cv_use_url='wxUSE_URL=no'
5574 fi
e6cc62c6 5575
4cdb0ab0 5576else
e6cc62c6 5577
4cdb0ab0
VS
5578 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5586
e6cc62c6 5587fi;
4cdb0ab0
VS
5588
5589 eval "$ac_cv_use_url"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
4cdb0ab0 5597 else
e6cc62c6
VS
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
4cdb0ab0 5600 fi
e6cc62c6 5601
4cdb0ab0 5602
5005acfe 5603 enablestring=
e6cc62c6
VS
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5606 no_cache=0
5607 # Check whether --enable-protocol or --disable-protocol was given.
5608if test "${enable_protocol+set}" = set; then
5609 enableval="$enable_protocol"
e6cc62c6 5610
4cdb0ab0
VS
5611 if test "$enableval" = yes; then
5612 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5613 else
5614 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5615 fi
e6cc62c6 5616
4cdb0ab0 5617else
e6cc62c6 5618
4cdb0ab0
VS
5619 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5627
e6cc62c6 5628fi;
4cdb0ab0
VS
5629
5630 eval "$ac_cv_use_protocol"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
4cdb0ab0 5638 else
e6cc62c6
VS
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
4cdb0ab0 5641 fi
e6cc62c6 5642
4cdb0ab0 5643
5005acfe 5644 enablestring=
e6cc62c6
VS
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5647 no_cache=0
5648 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5649if test "${enable_protocol_http+set}" = set; then
5650 enableval="$enable_protocol_http"
e6cc62c6 5651
4cdb0ab0
VS
5652 if test "$enableval" = yes; then
5653 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5654 else
5655 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5656 fi
e6cc62c6 5657
4cdb0ab0 5658else
e6cc62c6 5659
4cdb0ab0
VS
5660 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5668
e6cc62c6 5669fi;
4cdb0ab0
VS
5670
5671 eval "$ac_cv_use_protocol_http"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
4cdb0ab0 5679 else
e6cc62c6
VS
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
4cdb0ab0 5682 fi
e6cc62c6 5683
4cdb0ab0 5684
5005acfe 5685 enablestring=
e6cc62c6
VS
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5688 no_cache=0
5689 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5690if test "${enable_protocol_ftp+set}" = set; then
5691 enableval="$enable_protocol_ftp"
e6cc62c6 5692
4cdb0ab0
VS
5693 if test "$enableval" = yes; then
5694 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5695 else
5696 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5697 fi
e6cc62c6 5698
4cdb0ab0 5699else
e6cc62c6 5700
4cdb0ab0
VS
5701 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5709
e6cc62c6 5710fi;
4cdb0ab0
VS
5711
5712 eval "$ac_cv_use_protocol_ftp"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
4cdb0ab0 5720 else
e6cc62c6
VS
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
4cdb0ab0 5723 fi
e6cc62c6 5724
4cdb0ab0 5725
5005acfe 5726 enablestring=
e6cc62c6
VS
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5729 no_cache=0
5730 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5731if test "${enable_protocol_file+set}" = set; then
5732 enableval="$enable_protocol_file"
e6cc62c6 5733
4cdb0ab0
VS
5734 if test "$enableval" = yes; then
5735 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5736 else
5737 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5738 fi
e6cc62c6 5739
4cdb0ab0 5740else
e6cc62c6 5741
4cdb0ab0
VS
5742 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5750
e6cc62c6 5751fi;
4cdb0ab0
VS
5752
5753 eval "$ac_cv_use_protocol_file"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
4cdb0ab0 5761 else
e6cc62c6
VS
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
4cdb0ab0 5764 fi
e6cc62c6 5765
52127426 5766
8284b0c5
MB
5767
5768
5769
5005acfe 5770 enablestring=
e6cc62c6
VS
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5772echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5773 no_cache=0
5774 # Check whether --enable-threads or --disable-threads was given.
5775if test "${enable_threads+set}" = set; then
5776 enableval="$enable_threads"
e6cc62c6 5777
10f2d63a
VZ
5778 if test "$enableval" = yes; then
5779 ac_cv_use_threads='wxUSE_THREADS=yes'
5780 else
5781 ac_cv_use_threads='wxUSE_THREADS=no'
5782 fi
e6cc62c6 5783
10f2d63a 5784else
e6cc62c6 5785
10f2d63a
VZ
5786 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5794
e6cc62c6 5795fi;
10f2d63a
VZ
5796
5797 eval "$ac_cv_use_threads"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5803 echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6
10f2d63a 5805 else
e6cc62c6
VS
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
10f2d63a 5808 fi
e6cc62c6 5809
10f2d63a 5810
b12915c1
VZ
5811if test "$wxUSE_GUI" = "yes"; then
5812
8284b0c5
MB
5813
5814
5005acfe 5815 enablestring=
e6cc62c6
VS
5816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5817echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5818 no_cache=0
5819 # Check whether --enable-docview or --disable-docview was given.
5820if test "${enable_docview+set}" = set; then
5821 enableval="$enable_docview"
e6cc62c6 5822
10f2d63a
VZ
5823 if test "$enableval" = yes; then
5824 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5825 else
5826 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5827 fi
e6cc62c6 5828
10f2d63a 5829else
e6cc62c6 5830
10f2d63a
VZ
5831 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5832 if test "x$LINE" != x ; then
5833 eval "DEFAULT_$LINE"
5834 else
5835 no_cache=1
5836 fi
5837
5838 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5839
e6cc62c6 5840fi;
10f2d63a
VZ
5841
5842 eval "$ac_cv_use_docview"
5843 if test "$no_cache" != 1; then
5844 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5845 fi
5846
5847 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5848 echo "$as_me:$LINENO: result: yes" >&5
5849echo "${ECHO_T}yes" >&6
10f2d63a 5850 else
e6cc62c6
VS
5851 echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
10f2d63a 5853 fi
e6cc62c6 5854
10f2d63a 5855
5005acfe 5856 enablestring=
e6cc62c6
VS
5857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5858echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5859 no_cache=0
5860 # Check whether --enable-help or --disable-help was given.
5861if test "${enable_help+set}" = set; then
5862 enableval="$enable_help"
e6cc62c6 5863
10f2d63a
VZ
5864 if test "$enableval" = yes; then
5865 ac_cv_use_help='wxUSE_HELP=yes'
5866 else
5867 ac_cv_use_help='wxUSE_HELP=no'
5868 fi
e6cc62c6 5869
10f2d63a 5870else
e6cc62c6 5871
10f2d63a
VZ
5872 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5873 if test "x$LINE" != x ; then
5874 eval "DEFAULT_$LINE"
5875 else
5876 no_cache=1
5877 fi
5878
5879 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5880
e6cc62c6 5881fi;
10f2d63a
VZ
5882
5883 eval "$ac_cv_use_help"
5884 if test "$no_cache" != 1; then
5885 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5886 fi
5887
5888 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5889 echo "$as_me:$LINENO: result: yes" >&5
5890echo "${ECHO_T}yes" >&6
10f2d63a 5891 else
e6cc62c6
VS
5892 echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
10f2d63a 5894 fi
e6cc62c6 5895
10f2d63a 5896
5005acfe 5897 enablestring=
e6cc62c6
VS
5898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5899echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5900 no_cache=0
5901 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5902if test "${enable_mshtmlhelp+set}" = set; then
5903 enableval="$enable_mshtmlhelp"
e6cc62c6 5904
29fd3c0c
VS
5905 if test "$enableval" = yes; then
5906 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5907 else
5908 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5909 fi
e6cc62c6 5910
29fd3c0c 5911else
e6cc62c6 5912
29fd3c0c
VS
5913 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5914 if test "x$LINE" != x ; then
5915 eval "DEFAULT_$LINE"
5916 else
5917 no_cache=1
5918 fi
5919
5920 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5921
e6cc62c6 5922fi;
29fd3c0c
VS
5923
5924 eval "$ac_cv_use_mshtmlhelp"
5925 if test "$no_cache" != 1; then
5926 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5927 fi
5928
5929 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5930 echo "$as_me:$LINENO: result: yes" >&5
5931echo "${ECHO_T}yes" >&6
29fd3c0c 5932 else
e6cc62c6
VS
5933 echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6
29fd3c0c 5935 fi
e6cc62c6 5936
29fd3c0c 5937
5005acfe 5938 enablestring=
e6cc62c6
VS
5939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5940echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5941 no_cache=0
5942 # Check whether --enable-html or --disable-html was given.
5943if test "${enable_html+set}" = set; then
5944 enableval="$enable_html"
e6cc62c6 5945
3379ed37
VZ
5946 if test "$enableval" = yes; then
5947 ac_cv_use_html='wxUSE_HTML=yes'
5948 else
5949 ac_cv_use_html='wxUSE_HTML=no'
5950 fi
e6cc62c6 5951
3379ed37 5952else
e6cc62c6 5953
3379ed37
VZ
5954 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5955 if test "x$LINE" != x ; then
5956 eval "DEFAULT_$LINE"
5957 else
5958 no_cache=1
5959 fi
5960
5961 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5962
e6cc62c6 5963fi;
3379ed37
VZ
5964
5965 eval "$ac_cv_use_html"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5971 echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
3379ed37 5973 else
e6cc62c6
VS
5974 echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
3379ed37 5976 fi
e6cc62c6 5977
3379ed37 5978
5005acfe 5979 enablestring=
e6cc62c6
VS
5980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5981echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5982 no_cache=0
5983 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5984if test "${enable_htmlhelp+set}" = set; then
5985 enableval="$enable_htmlhelp"
e6cc62c6 5986
3379ed37
VZ
5987 if test "$enableval" = yes; then
5988 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5989 else
5990 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5991 fi
e6cc62c6 5992
3379ed37 5993else
e6cc62c6 5994
3379ed37
VZ
5995 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6003
e6cc62c6 6004fi;
3379ed37
VZ
6005
6006 eval "$ac_cv_use_htmlhelp"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6012 echo "$as_me:$LINENO: result: yes" >&5
6013echo "${ECHO_T}yes" >&6
3379ed37 6014 else
e6cc62c6
VS
6015 echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
3379ed37 6017 fi
e6cc62c6 6018
3379ed37 6019
5005acfe 6020 enablestring=
e6cc62c6
VS
6021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6022echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6023 no_cache=0
6024 # Check whether --enable-constraints or --disable-constraints was given.
6025if test "${enable_constraints+set}" = set; then
6026 enableval="$enable_constraints"
e6cc62c6 6027
10f2d63a
VZ
6028 if test "$enableval" = yes; then
6029 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6030 else
6031 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6032 fi
e6cc62c6 6033
10f2d63a 6034else
e6cc62c6 6035
10f2d63a
VZ
6036 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6044
e6cc62c6 6045fi;
10f2d63a
VZ
6046
6047 eval "$ac_cv_use_constraints"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6053 echo "$as_me:$LINENO: result: yes" >&5
6054echo "${ECHO_T}yes" >&6
10f2d63a 6055 else
e6cc62c6
VS
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
10f2d63a 6058 fi
e6cc62c6 6059
10f2d63a 6060
5005acfe 6061 enablestring=
e6cc62c6
VS
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6064 no_cache=0
6065 # Check whether --enable-printarch or --disable-printarch was given.
6066if test "${enable_printarch+set}" = set; then
6067 enableval="$enable_printarch"
e6cc62c6 6068
10f2d63a
VZ
6069 if test "$enableval" = yes; then
6070 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6071 else
6072 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6073 fi
e6cc62c6 6074
10f2d63a 6075else
e6cc62c6 6076
10f2d63a
VZ
6077 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6085
e6cc62c6 6086fi;
10f2d63a
VZ
6087
6088 eval "$ac_cv_use_printarch"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
10f2d63a 6096 else
e6cc62c6
VS
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
10f2d63a 6099 fi
e6cc62c6 6100
10f2d63a 6101
5005acfe 6102 enablestring=
e6cc62c6
VS
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6105 no_cache=0
6106 # Check whether --enable-mdi or --disable-mdi was given.
6107if test "${enable_mdi+set}" = set; then
6108 enableval="$enable_mdi"
e6cc62c6 6109
10f2d63a
VZ
6110 if test "$enableval" = yes; then
6111 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6112 else
6113 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6114 fi
e6cc62c6 6115
10f2d63a 6116else
e6cc62c6 6117
10f2d63a
VZ
6118 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6126
e6cc62c6 6127fi;
10f2d63a
VZ
6128
6129 eval "$ac_cv_use_mdi"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
10f2d63a 6137 else
e6cc62c6
VS
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
10f2d63a 6140 fi
e6cc62c6 6141
698dcdb6 6142
5005acfe 6143 enablestring=
e6cc62c6
VS
6144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6145echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6146 no_cache=0
6147 # Check whether --enable-loggui or --disable-loggui was given.
6148if test "${enable_loggui+set}" = set; then
6149 enableval="$enable_loggui"
e6cc62c6 6150
1e6feb95
VZ
6151 if test "$enableval" = yes; then
6152 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6153 else
6154 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6155 fi
e6cc62c6 6156
1e6feb95 6157else
e6cc62c6 6158
1e6feb95
VZ
6159 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6167
e6cc62c6 6168fi;
1e6feb95
VZ
6169
6170 eval "$ac_cv_use_loggui"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6176 echo "$as_me:$LINENO: result: yes" >&5
6177echo "${ECHO_T}yes" >&6
1e6feb95 6178 else
e6cc62c6
VS
6179 echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6
1e6feb95 6181 fi
e6cc62c6 6182
1e6feb95 6183
5005acfe 6184 enablestring=
e6cc62c6
VS
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6187 no_cache=0
6188 # Check whether --enable-logwin or --disable-logwin was given.
6189if test "${enable_logwin+set}" = set; then
6190 enableval="$enable_logwin"
e6cc62c6 6191
1e6feb95
VZ
6192 if test "$enableval" = yes; then
6193 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6194 else
6195 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6196 fi
e6cc62c6 6197
1e6feb95 6198else
e6cc62c6 6199
1e6feb95
VZ
6200 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6208
e6cc62c6 6209fi;
1e6feb95
VZ
6210
6211 eval "$ac_cv_use_logwin"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
1e6feb95 6219 else
e6cc62c6
VS
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
1e6feb95 6222 fi
e6cc62c6 6223
1e6feb95 6224
5005acfe 6225 enablestring=
e6cc62c6
VS
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6228 no_cache=0
6229 # Check whether --enable-logdialog or --disable-logdialog was given.
6230if test "${enable_logdialog+set}" = set; then
6231 enableval="$enable_logdialog"
e6cc62c6 6232
69d27ff7
MB
6233 if test "$enableval" = yes; then
6234 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6235 else
6236 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6237 fi
e6cc62c6 6238
69d27ff7 6239else
e6cc62c6 6240
69d27ff7
MB
6241 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6249
e6cc62c6 6250fi;
69d27ff7
MB
6251
6252 eval "$ac_cv_use_logdialog"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
69d27ff7 6260 else
e6cc62c6
VS
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
69d27ff7 6263 fi
e6cc62c6 6264
8284b0c5 6265
52127426 6266
5005acfe 6267 enablestring=
e6cc62c6
VS
6268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6269echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6270 no_cache=0
6271 # Check whether --enable-postscript or --disable-postscript was given.
6272if test "${enable_postscript+set}" = set; then
6273 enableval="$enable_postscript"
e6cc62c6 6274
10f2d63a
VZ
6275 if test "$enableval" = yes; then
6276 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6277 else
6278 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6279 fi
e6cc62c6 6280
10f2d63a 6281else
e6cc62c6 6282
10f2d63a
VZ
6283 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6291
e6cc62c6 6292fi;
10f2d63a
VZ
6293
6294 eval "$ac_cv_use_postscript"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6300 echo "$as_me:$LINENO: result: yes" >&5
6301echo "${ECHO_T}yes" >&6
10f2d63a 6302 else
e6cc62c6
VS
6303 echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6
10f2d63a 6305 fi
e6cc62c6 6306
8284b0c5
MB
6307
6308
52127426 6309
8284b0c5 6310
5005acfe 6311 enablestring=
e6cc62c6
VS
6312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6313echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6314 no_cache=0
3c907f20
VZ
6315 # Check whether --enable-prologio or --disable-prologio was given.
6316if test "${enable_prologio+set}" = set; then
6317 enableval="$enable_prologio"
e6cc62c6 6318
10f2d63a 6319 if test "$enableval" = yes; then
3c907f20 6320 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6321 else
3c907f20 6322 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6323 fi
e6cc62c6 6324
10f2d63a 6325else
e6cc62c6 6326
3c907f20 6327 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
3c907f20 6334 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6335
e6cc62c6 6336fi;
10f2d63a 6337
3c907f20 6338 eval "$ac_cv_use_prologio"
10f2d63a 6339 if test "$no_cache" != 1; then
3c907f20 6340 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6341 fi
6342
3c907f20 6343 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6344 echo "$as_me:$LINENO: result: yes" >&5
6345echo "${ECHO_T}yes" >&6
10f2d63a 6346 else
e6cc62c6
VS
6347 echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6
10f2d63a 6349 fi
e6cc62c6 6350
8284b0c5 6351
5005acfe 6352 enablestring=
e6cc62c6
VS
6353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6354echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6355 no_cache=0
3c907f20
VZ
6356 # Check whether --enable-resources or --disable-resources was given.
6357if test "${enable_resources+set}" = set; then
6358 enableval="$enable_resources"
e6cc62c6 6359
10f2d63a 6360 if test "$enableval" = yes; then
3c907f20 6361 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6362 else
3c907f20 6363 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6364 fi
e6cc62c6 6365
10f2d63a 6366else
e6cc62c6 6367
3c907f20 6368 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
3c907f20 6375 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6376
e6cc62c6 6377fi;
10f2d63a 6378
3c907f20 6379 eval "$ac_cv_use_resources"
10f2d63a 6380 if test "$no_cache" != 1; then
3c907f20 6381 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6382 fi
6383
3c907f20 6384 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6385 echo "$as_me:$LINENO: result: yes" >&5
6386echo "${ECHO_T}yes" >&6
10f2d63a 6387 else
e6cc62c6
VS
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
10f2d63a 6390 fi
e6cc62c6 6391
8284b0c5
MB
6392
6393
52127426 6394
5005acfe 6395 enablestring=
e6cc62c6
VS
6396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6397echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6398 no_cache=0
6399 # Check whether --enable-clipboard or --disable-clipboard was given.
6400if test "${enable_clipboard+set}" = set; then
6401 enableval="$enable_clipboard"
e6cc62c6 6402
10f2d63a
VZ
6403 if test "$enableval" = yes; then
6404 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6405 else
6406 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6407 fi
e6cc62c6 6408
10f2d63a 6409else
e6cc62c6 6410
10f2d63a
VZ
6411 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6419
e6cc62c6 6420fi;
10f2d63a
VZ
6421
6422 eval "$ac_cv_use_clipboard"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6428 echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6
10f2d63a 6430 else
e6cc62c6
VS
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
10f2d63a 6433 fi
e6cc62c6 6434
10f2d63a 6435
5005acfe 6436 enablestring=
e6cc62c6
VS
6437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6438echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6439 no_cache=0
6440 # Check whether --enable-dnd or --disable-dnd was given.
6441if test "${enable_dnd+set}" = set; then
6442 enableval="$enable_dnd"
e6cc62c6 6443
10f2d63a
VZ
6444 if test "$enableval" = yes; then
6445 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6446 else
6447 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6448 fi
e6cc62c6 6449
10f2d63a 6450else
e6cc62c6 6451
10f2d63a
VZ
6452 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6453 if test "x$LINE" != x ; then
6454 eval "DEFAULT_$LINE"
6455 else
6456 no_cache=1
6457 fi
6458
6459 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6460
e6cc62c6 6461fi;
10f2d63a
VZ
6462
6463 eval "$ac_cv_use_dnd"
6464 if test "$no_cache" != 1; then
6465 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6466 fi
6467
6468 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6469 echo "$as_me:$LINENO: result: yes" >&5
6470echo "${ECHO_T}yes" >&6
10f2d63a 6471 else
e6cc62c6
VS
6472 echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
10f2d63a 6474 fi
e6cc62c6 6475
10f2d63a 6476
5005acfe 6477 enablestring=
e6cc62c6
VS
6478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6479echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6480 no_cache=0
6481 # Check whether --enable-metafile or --disable-metafile was given.
6482if test "${enable_metafile+set}" = set; then
6483 enableval="$enable_metafile"
e6cc62c6 6484
b64f0a5f
RL
6485 if test "$enableval" = yes; then
6486 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6487 else
6488 ac_cv_use_metafile='wxUSE_METAFILE=no'
6489 fi
e6cc62c6 6490
b64f0a5f 6491else
e6cc62c6 6492
b64f0a5f
RL
6493 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6494 if test "x$LINE" != x ; then
6495 eval "DEFAULT_$LINE"
6496 else
6497 no_cache=1
6498 fi
6499
6500 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6501
e6cc62c6 6502fi;
b64f0a5f
RL
6503
6504 eval "$ac_cv_use_metafile"
6505 if test "$no_cache" != 1; then
6506 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6507 fi
6508
6509 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6510 echo "$as_me:$LINENO: result: yes" >&5
6511echo "${ECHO_T}yes" >&6
b64f0a5f 6512 else
e6cc62c6
VS
6513 echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6
b64f0a5f 6515 fi
e6cc62c6 6516
52127426 6517
8284b0c5 6518
52127426 6519
8284b0c5 6520
5005acfe 6521 enablestring=
e6cc62c6
VS
6522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6523echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6524 no_cache=0
6525 # Check whether --enable-controls or --disable-controls was given.
6526if test "${enable_controls+set}" = set; then
6527 enableval="$enable_controls"
e6cc62c6 6528
10f2d63a
VZ
6529 if test "$enableval" = yes; then
6530 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6531 else
6532 ac_cv_use_controls='wxUSE_CONTROLS=no'
6533 fi
e6cc62c6 6534
10f2d63a 6535else
e6cc62c6 6536
10f2d63a
VZ
6537 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6545
e6cc62c6 6546fi;
10f2d63a
VZ
6547
6548 eval "$ac_cv_use_controls"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6554 echo "$as_me:$LINENO: result: yes" >&5
6555echo "${ECHO_T}yes" >&6
10f2d63a 6556 else
e6cc62c6
VS
6557 echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
10f2d63a 6559 fi
e6cc62c6 6560
10f2d63a
VZ
6561
6562if test "$wxUSE_CONTROLS" = "yes"; then
6563 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6564 DEFAULT_wxUSE_BMPBUTTON=yes
6565 DEFAULT_wxUSE_BUTTON=yes
6566 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6567 DEFAULT_wxUSE_CARET=yes
6568 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6569 DEFAULT_wxUSE_CHECKBOX=yes
6570 DEFAULT_wxUSE_CHECKLISTBOX=yes
6571 DEFAULT_wxUSE_CHOICE=yes
6572 DEFAULT_wxUSE_GAUGE=yes
6573 DEFAULT_wxUSE_GRID=yes
10f2d63a 6574 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6575 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6576 DEFAULT_wxUSE_LISTBOX=yes
6577 DEFAULT_wxUSE_LISTCTRL=yes
6578 DEFAULT_wxUSE_NOTEBOOK=yes
6579 DEFAULT_wxUSE_RADIOBOX=yes
6580 DEFAULT_wxUSE_RADIOBTN=yes
6581 DEFAULT_wxUSE_SASH=yes
6582 DEFAULT_wxUSE_SCROLLBAR=yes
6583 DEFAULT_wxUSE_SLIDER=yes
6584 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6585 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6586 DEFAULT_wxUSE_SPLITTER=yes
6587 DEFAULT_wxUSE_STATBMP=yes
6588 DEFAULT_wxUSE_STATBOX=yes
6589 DEFAULT_wxUSE_STATLINE=yes
6590 DEFAULT_wxUSE_STATUSBAR=yes
6591 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6592 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6593 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6594 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6595 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6596 DEFAULT_wxUSE_TOOLTIPS=yes
6597 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6598 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6599 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6600elif test "$wxUSE_CONTROLS" = "no"; then
6601 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6602 DEFAULT_wxUSE_BMPBUTTON=no
6603 DEFAULT_wxUSE_BUTTON=no
6604 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6605 DEFAULT_wxUSE_CARET=no
6606 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6607 DEFAULT_wxUSE_CHECKBOX=no
6608 DEFAULT_wxUSE_CHECKLISTBOX=no
6609 DEFAULT_wxUSE_CHOICE=no
6610 DEFAULT_wxUSE_GAUGE=no
6611 DEFAULT_wxUSE_GRID=no
10f2d63a 6612 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6613 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6614 DEFAULT_wxUSE_LISTBOX=no
6615 DEFAULT_wxUSE_LISTCTRL=no
6616 DEFAULT_wxUSE_NOTEBOOK=no
6617 DEFAULT_wxUSE_RADIOBOX=no
6618 DEFAULT_wxUSE_RADIOBTN=no
6619 DEFAULT_wxUSE_SASH=no
6620 DEFAULT_wxUSE_SCROLLBAR=no
6621 DEFAULT_wxUSE_SLIDER=no
6622 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6623 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6624 DEFAULT_wxUSE_SPLITTER=no
6625 DEFAULT_wxUSE_STATBMP=no
6626 DEFAULT_wxUSE_STATBOX=no
6627 DEFAULT_wxUSE_STATLINE=no
6628 DEFAULT_wxUSE_STATUSBAR=no
6629 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6630 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6631 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6632 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6633 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6634 DEFAULT_wxUSE_TOOLTIPS=no
6635 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6636 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6637 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6638fi
6639
ac0c4cc3
DE
6640## FIXME: This is a blatant hack
6641if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6642 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6643 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6644 # Generic notebook requires tab dialog
6645 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6646 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6647 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6648 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6649 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6650fi
6651
8284b0c5 6652
5005acfe 6653 enablestring=
e6cc62c6
VS
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6656 no_cache=0
6657 # Check whether --enable-accel or --disable-accel was given.
6658if test "${enable_accel+set}" = set; then
6659 enableval="$enable_accel"
e6cc62c6 6660
10f2d63a
VZ
6661 if test "$enableval" = yes; then
6662 ac_cv_use_accel='wxUSE_ACCEL=yes'
6663 else
6664 ac_cv_use_accel='wxUSE_ACCEL=no'
6665 fi
e6cc62c6 6666
10f2d63a 6667else
e6cc62c6 6668
10f2d63a
VZ
6669 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6677
e6cc62c6 6678fi;
10f2d63a
VZ
6679
6680 eval "$ac_cv_use_accel"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
10f2d63a 6688 else
e6cc62c6
VS
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
10f2d63a 6691 fi
e6cc62c6 6692
10f2d63a 6693
5005acfe 6694 enablestring=
e6cc62c6
VS
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6697 no_cache=0
1e6feb95
VZ
6698 # Check whether --enable-button or --disable-button was given.
6699if test "${enable_button+set}" = set; then
6700 enableval="$enable_button"
e6cc62c6 6701
10f2d63a 6702 if test "$enableval" = yes; then
1e6feb95 6703 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6704 else
1e6feb95 6705 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6706 fi
e6cc62c6 6707
10f2d63a 6708else
e6cc62c6 6709
1e6feb95 6710 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
1e6feb95 6717 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6718
e6cc62c6 6719fi;
10f2d63a 6720
1e6feb95 6721 eval "$ac_cv_use_button"
10f2d63a 6722 if test "$no_cache" != 1; then
1e6feb95 6723 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6724 fi
6725
1e6feb95 6726 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
10f2d63a 6729 else
e6cc62c6
VS
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
10f2d63a 6732 fi
e6cc62c6 6733
10f2d63a 6734
5005acfe 6735 enablestring=
e6cc62c6
VS
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6738 no_cache=0
6739 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6740if test "${enable_bmpbutton+set}" = set; then
6741 enableval="$enable_bmpbutton"
e6cc62c6 6742
10f2d63a
VZ
6743 if test "$enableval" = yes; then
6744 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6745 else
6746 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6747 fi
e6cc62c6 6748
10f2d63a 6749else
e6cc62c6 6750
10f2d63a
VZ
6751 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6759
e6cc62c6 6760fi;
10f2d63a
VZ
6761
6762 eval "$ac_cv_use_bmpbutton"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6765 fi
6766
6767 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
10f2d63a 6770 else
e6cc62c6
VS
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
10f2d63a 6773 fi
e6cc62c6 6774
10f2d63a 6775
5005acfe 6776 enablestring=
e6cc62c6
VS
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6779 no_cache=0
6780 # Check whether --enable-calendar or --disable-calendar was given.
6781if test "${enable_calendar+set}" = set; then
6782 enableval="$enable_calendar"
e6cc62c6 6783
1e6feb95
VZ
6784 if test "$enableval" = yes; then
6785 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6786 else
6787 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6788 fi
e6cc62c6 6789
1e6feb95 6790else
e6cc62c6 6791
1e6feb95
VZ
6792 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6800
e6cc62c6 6801fi;
1e6feb95
VZ
6802
6803 eval "$ac_cv_use_calendar"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
1e6feb95 6811 else
e6cc62c6
VS
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
1e6feb95 6814 fi
e6cc62c6 6815
1e6feb95 6816
5005acfe 6817 enablestring=
e6cc62c6
VS
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6820 no_cache=0
6821 # Check whether --enable-caret or --disable-caret was given.
6822if test "${enable_caret+set}" = set; then
6823 enableval="$enable_caret"
e6cc62c6 6824
1e6feb95
VZ
6825 if test "$enableval" = yes; then
6826 ac_cv_use_caret='wxUSE_CARET=yes'
6827 else
6828 ac_cv_use_caret='wxUSE_CARET=no'
6829 fi
e6cc62c6 6830
1e6feb95 6831else
e6cc62c6 6832
1e6feb95
VZ
6833 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6841
e6cc62c6 6842fi;
1e6feb95
VZ
6843
6844 eval "$ac_cv_use_caret"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
1e6feb95 6852 else
e6cc62c6
VS
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
1e6feb95 6855 fi
e6cc62c6 6856
1e6feb95 6857
5005acfe 6858 enablestring=
e6cc62c6
VS
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6861 no_cache=0
6862 # Check whether --enable-checkbox or --disable-checkbox was given.
6863if test "${enable_checkbox+set}" = set; then
6864 enableval="$enable_checkbox"
e6cc62c6 6865
10f2d63a
VZ
6866 if test "$enableval" = yes; then
6867 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6868 else
6869 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6870 fi
e6cc62c6 6871
10f2d63a 6872else
e6cc62c6 6873
10f2d63a
VZ
6874 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6882
e6cc62c6 6883fi;
10f2d63a
VZ
6884
6885 eval "$ac_cv_use_checkbox"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
10f2d63a 6893 else
e6cc62c6
VS
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
10f2d63a 6896 fi
e6cc62c6 6897
10f2d63a 6898
5005acfe 6899 enablestring=
e6cc62c6
VS
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6902 no_cache=0
6903 # Check whether --enable-checklst or --disable-checklst was given.
6904if test "${enable_checklst+set}" = set; then
6905 enableval="$enable_checklst"
e6cc62c6 6906
10f2d63a
VZ
6907 if test "$enableval" = yes; then
6908 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6909 else
6910 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6911 fi
e6cc62c6 6912
10f2d63a 6913else
e6cc62c6 6914
10f2d63a
VZ
6915 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6923
e6cc62c6 6924fi;
10f2d63a
VZ
6925
6926 eval "$ac_cv_use_checklst"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
10f2d63a 6934 else
e6cc62c6
VS
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
10f2d63a 6937 fi
e6cc62c6 6938
10f2d63a 6939
5005acfe 6940 enablestring=
e6cc62c6
VS
6941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6942echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6943 no_cache=0
6944 # Check whether --enable-choice or --disable-choice was given.
6945if test "${enable_choice+set}" = set; then
6946 enableval="$enable_choice"
e6cc62c6 6947
10f2d63a
VZ
6948 if test "$enableval" = yes; then
6949 ac_cv_use_choice='wxUSE_CHOICE=yes'
6950 else
6951 ac_cv_use_choice='wxUSE_CHOICE=no'
6952 fi
e6cc62c6 6953
10f2d63a 6954else
e6cc62c6 6955
10f2d63a
VZ
6956 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6957 if test "x$LINE" != x ; then
6958 eval "DEFAULT_$LINE"
6959 else
6960 no_cache=1
6961 fi
6962
6963 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6964
e6cc62c6 6965fi;
10f2d63a
VZ
6966
6967 eval "$ac_cv_use_choice"
6968 if test "$no_cache" != 1; then
6969 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6970 fi
6971
6972 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6973 echo "$as_me:$LINENO: result: yes" >&5
6974echo "${ECHO_T}yes" >&6
10f2d63a 6975 else
e6cc62c6
VS
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
10f2d63a 6978 fi
e6cc62c6 6979
10f2d63a 6980
5005acfe 6981 enablestring=
e6cc62c6
VS
6982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6983echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6984 no_cache=0
6985 # Check whether --enable-combobox or --disable-combobox was given.
6986if test "${enable_combobox+set}" = set; then
6987 enableval="$enable_combobox"
e6cc62c6 6988
10f2d63a
VZ
6989 if test "$enableval" = yes; then
6990 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6991 else
6992 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6993 fi
e6cc62c6 6994
10f2d63a 6995else
e6cc62c6 6996
10f2d63a
VZ
6997 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7005
e6cc62c6 7006fi;
10f2d63a
VZ
7007
7008 eval "$ac_cv_use_combobox"
7009 if test "$no_cache" != 1; then
7010 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7011 fi
7012
7013 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
10f2d63a 7016 else
e6cc62c6
VS
7017 echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6
10f2d63a 7019 fi
e6cc62c6 7020
10f2d63a 7021
da494b40 7022 enablestring=
e6cc62c6
VS
7023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7024echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7025 no_cache=0
7026 # Check whether --enable-display or --disable-display was given.
7027if test "${enable_display+set}" = set; then
7028 enableval="$enable_display"
e6cc62c6 7029
da494b40
MB
7030 if test "$enableval" = yes; then
7031 ac_cv_use_display='wxUSE_DISPLAY=yes'
7032 else
7033 ac_cv_use_display='wxUSE_DISPLAY=no'
7034 fi
e6cc62c6 7035
da494b40 7036else
e6cc62c6 7037
da494b40
MB
7038 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7046
e6cc62c6 7047fi;
da494b40
MB
7048
7049 eval "$ac_cv_use_display"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7055 echo "$as_me:$LINENO: result: yes" >&5
7056echo "${ECHO_T}yes" >&6
da494b40 7057 else
e6cc62c6
VS
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
da494b40 7060 fi
e6cc62c6 7061
da494b40 7062
5005acfe 7063 enablestring=
e6cc62c6
VS
7064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7065echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7066 no_cache=0
7067 # Check whether --enable-gauge or --disable-gauge was given.
7068if test "${enable_gauge+set}" = set; then
7069 enableval="$enable_gauge"
e6cc62c6 7070
10f2d63a
VZ
7071 if test "$enableval" = yes; then
7072 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7073 else
7074 ac_cv_use_gauge='wxUSE_GAUGE=no'
7075 fi
e6cc62c6 7076
10f2d63a 7077else
e6cc62c6 7078
10f2d63a
VZ
7079 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7080 if test "x$LINE" != x ; then
7081 eval "DEFAULT_$LINE"
7082 else
7083 no_cache=1
7084 fi
7085
7086 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7087
e6cc62c6 7088fi;
10f2d63a
VZ
7089
7090 eval "$ac_cv_use_gauge"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7096 echo "$as_me:$LINENO: result: yes" >&5
7097echo "${ECHO_T}yes" >&6
10f2d63a 7098 else
e6cc62c6
VS
7099 echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6
10f2d63a 7101 fi
e6cc62c6 7102
10f2d63a 7103
5005acfe 7104 enablestring=
e6cc62c6
VS
7105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7106echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7107 no_cache=0
7108 # Check whether --enable-grid or --disable-grid was given.
7109if test "${enable_grid+set}" = set; then
7110 enableval="$enable_grid"
e6cc62c6 7111
10f2d63a
VZ
7112 if test "$enableval" = yes; then
7113 ac_cv_use_grid='wxUSE_GRID=yes'
7114 else
7115 ac_cv_use_grid='wxUSE_GRID=no'
7116 fi
e6cc62c6 7117
10f2d63a 7118else
e6cc62c6 7119
10f2d63a
VZ
7120 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7121 if test "x$LINE" != x ; then
7122 eval "DEFAULT_$LINE"
7123 else
7124 no_cache=1
7125 fi
7126
7127 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7128
e6cc62c6 7129fi;
10f2d63a
VZ
7130
7131 eval "$ac_cv_use_grid"
7132 if test "$no_cache" != 1; then
7133 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7134 fi
7135
7136 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7137 echo "$as_me:$LINENO: result: yes" >&5
7138echo "${ECHO_T}yes" >&6
10f2d63a 7139 else
e6cc62c6
VS
7140 echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6
10f2d63a 7142 fi
e6cc62c6 7143
10f2d63a 7144
5005acfe 7145 enablestring=
e6cc62c6
VS
7146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7147echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7148 no_cache=0
7149 # Check whether --enable-imaglist or --disable-imaglist was given.
7150if test "${enable_imaglist+set}" = set; then
7151 enableval="$enable_imaglist"
e6cc62c6 7152
10f2d63a
VZ
7153 if test "$enableval" = yes; then
7154 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7155 else
7156 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7157 fi
e6cc62c6 7158
10f2d63a 7159else
e6cc62c6 7160
10f2d63a
VZ
7161 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7162 if test "x$LINE" != x ; then
7163 eval "DEFAULT_$LINE"
7164 else
7165 no_cache=1
7166 fi
7167
7168 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7169
e6cc62c6 7170fi;
10f2d63a
VZ
7171
7172 eval "$ac_cv_use_imaglist"
7173 if test "$no_cache" != 1; then
7174 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7175 fi
7176
7177 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7178 echo "$as_me:$LINENO: result: yes" >&5
7179echo "${ECHO_T}yes" >&6
10f2d63a 7180 else
e6cc62c6
VS
7181 echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6
10f2d63a 7183 fi
e6cc62c6 7184
10f2d63a 7185
0e012a93
VZ
7186 enablestring=
7187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7188echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7189 no_cache=0
7190 # Check whether --enable-listbook or --disable-listbook was given.
7191if test "${enable_listbook+set}" = set; then
7192 enableval="$enable_listbook"
7193
7194 if test "$enableval" = yes; then
7195 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7196 else
7197 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7198 fi
7199
7200else
7201
7202 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7203 if test "x$LINE" != x ; then
7204 eval "DEFAULT_$LINE"
7205 else
7206 no_cache=1
7207 fi
7208
7209 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7210
7211fi;
7212
7213 eval "$ac_cv_use_listbook"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_LISTBOOK" = yes; then
7219 echo "$as_me:$LINENO: result: yes" >&5
7220echo "${ECHO_T}yes" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224 fi
7225
7226
5005acfe 7227 enablestring=
e6cc62c6
VS
7228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7229echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7230 no_cache=0
7231 # Check whether --enable-listbox or --disable-listbox was given.
7232if test "${enable_listbox+set}" = set; then
7233 enableval="$enable_listbox"
e6cc62c6 7234
10f2d63a
VZ
7235 if test "$enableval" = yes; then
7236 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7237 else
7238 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7239 fi
e6cc62c6 7240
10f2d63a 7241else
e6cc62c6 7242
10f2d63a
VZ
7243 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7244 if test "x$LINE" != x ; then
7245 eval "DEFAULT_$LINE"
7246 else
7247 no_cache=1
7248 fi
7249
7250 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7251
e6cc62c6 7252fi;
10f2d63a
VZ
7253
7254 eval "$ac_cv_use_listbox"
7255 if test "$no_cache" != 1; then
7256 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7257 fi
7258
7259 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7260 echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6
10f2d63a 7262 else
e6cc62c6
VS
7263 echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
10f2d63a 7265 fi
e6cc62c6 7266
10f2d63a 7267
5005acfe 7268 enablestring=
e6cc62c6
VS
7269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7270echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7271 no_cache=0
7272 # Check whether --enable-listctrl or --disable-listctrl was given.
7273if test "${enable_listctrl+set}" = set; then
7274 enableval="$enable_listctrl"
e6cc62c6 7275
10f2d63a
VZ
7276 if test "$enableval" = yes; then
7277 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7278 else
7279 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7280 fi
e6cc62c6 7281
10f2d63a 7282else
e6cc62c6 7283
10f2d63a
VZ
7284 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7285 if test "x$LINE" != x ; then
7286 eval "DEFAULT_$LINE"
7287 else
7288 no_cache=1
7289 fi
7290
7291 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7292
e6cc62c6 7293fi;
10f2d63a
VZ
7294
7295 eval "$ac_cv_use_listctrl"
7296 if test "$no_cache" != 1; then
7297 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7298 fi
7299
7300 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7301 echo "$as_me:$LINENO: result: yes" >&5
7302echo "${ECHO_T}yes" >&6
10f2d63a 7303 else
e6cc62c6
VS
7304 echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
10f2d63a 7306 fi
e6cc62c6 7307
10f2d63a 7308
5005acfe 7309 enablestring=
e6cc62c6
VS
7310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7311echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7312 no_cache=0
7313 # Check whether --enable-notebook or --disable-notebook was given.
7314if test "${enable_notebook+set}" = set; then
7315 enableval="$enable_notebook"
e6cc62c6 7316
10f2d63a
VZ
7317 if test "$enableval" = yes; then
7318 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7319 else
7320 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7321 fi
e6cc62c6 7322
10f2d63a 7323else
e6cc62c6 7324
10f2d63a
VZ
7325 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7326 if test "x$LINE" != x ; then
7327 eval "DEFAULT_$LINE"
7328 else
7329 no_cache=1
7330 fi
7331
7332 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7333
e6cc62c6 7334fi;
10f2d63a
VZ
7335
7336 eval "$ac_cv_use_notebook"
7337 if test "$no_cache" != 1; then
7338 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7339 fi
7340
7341 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7342 echo "$as_me:$LINENO: result: yes" >&5
7343echo "${ECHO_T}yes" >&6
10f2d63a 7344 else
e6cc62c6
VS
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
10f2d63a 7347 fi
e6cc62c6 7348
10f2d63a 7349
5005acfe 7350 enablestring=
e6cc62c6
VS
7351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7352echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7353 no_cache=0
7354 # Check whether --enable-radiobox or --disable-radiobox was given.
7355if test "${enable_radiobox+set}" = set; then
7356 enableval="$enable_radiobox"
e6cc62c6 7357
10f2d63a
VZ
7358 if test "$enableval" = yes; then
7359 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7360 else
7361 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7362 fi
e6cc62c6 7363
10f2d63a 7364else
e6cc62c6 7365
10f2d63a
VZ
7366 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7374
e6cc62c6 7375fi;
10f2d63a
VZ
7376
7377 eval "$ac_cv_use_radiobox"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7383 echo "$as_me:$LINENO: result: yes" >&5
7384echo "${ECHO_T}yes" >&6
10f2d63a 7385 else
e6cc62c6
VS
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
10f2d63a 7388 fi
e6cc62c6 7389
10f2d63a 7390
5005acfe 7391 enablestring=
e6cc62c6
VS
7392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7393echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7394 no_cache=0
7395 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7396if test "${enable_radiobtn+set}" = set; then
7397 enableval="$enable_radiobtn"
e6cc62c6 7398
10f2d63a
VZ
7399 if test "$enableval" = yes; then
7400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7401 else
7402 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7403 fi
e6cc62c6 7404
10f2d63a 7405else
e6cc62c6 7406
10f2d63a
VZ
7407 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7415
e6cc62c6 7416fi;
10f2d63a
VZ
7417
7418 eval "$ac_cv_use_radiobtn"
7419 if test "$no_cache" != 1; then
7420 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7421 fi
7422
7423 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7424 echo "$as_me:$LINENO: result: yes" >&5
7425echo "${ECHO_T}yes" >&6
10f2d63a 7426 else
e6cc62c6
VS
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
10f2d63a 7429 fi
e6cc62c6 7430
10f2d63a 7431
5005acfe 7432 enablestring=
e6cc62c6
VS
7433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7434echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7435 no_cache=0
7436 # Check whether --enable-sash or --disable-sash was given.
7437if test "${enable_sash+set}" = set; then
7438 enableval="$enable_sash"
e6cc62c6 7439
10f2d63a
VZ
7440 if test "$enableval" = yes; then
7441 ac_cv_use_sash='wxUSE_SASH=yes'
7442 else
7443 ac_cv_use_sash='wxUSE_SASH=no'
7444 fi
e6cc62c6 7445
10f2d63a 7446else
e6cc62c6 7447
10f2d63a
VZ
7448 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7456
e6cc62c6 7457fi;
10f2d63a
VZ
7458
7459 eval "$ac_cv_use_sash"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7465 echo "$as_me:$LINENO: result: yes" >&5
7466echo "${ECHO_T}yes" >&6
10f2d63a 7467 else
e6cc62c6
VS
7468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
10f2d63a 7470 fi
e6cc62c6 7471
10f2d63a 7472
5005acfe 7473 enablestring=
e6cc62c6
VS
7474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7475echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7476 no_cache=0
7477 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7478if test "${enable_scrollbar+set}" = set; then
7479 enableval="$enable_scrollbar"
e6cc62c6 7480
10f2d63a
VZ
7481 if test "$enableval" = yes; then
7482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7483 else
7484 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7485 fi
e6cc62c6 7486
10f2d63a 7487else
e6cc62c6 7488
10f2d63a
VZ
7489 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7497
e6cc62c6 7498fi;
10f2d63a
VZ
7499
7500 eval "$ac_cv_use_scrollbar"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
10f2d63a 7508 else
e6cc62c6
VS
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
10f2d63a 7511 fi
e6cc62c6 7512
10f2d63a 7513
5005acfe 7514 enablestring=
e6cc62c6
VS
7515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7516echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7517 no_cache=0
7518 # Check whether --enable-slider or --disable-slider was given.
7519if test "${enable_slider+set}" = set; then
7520 enableval="$enable_slider"
e6cc62c6 7521
10f2d63a
VZ
7522 if test "$enableval" = yes; then
7523 ac_cv_use_slider='wxUSE_SLIDER=yes'
7524 else
7525 ac_cv_use_slider='wxUSE_SLIDER=no'
7526 fi
e6cc62c6 7527
10f2d63a 7528else
e6cc62c6 7529
10f2d63a
VZ
7530 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7538
e6cc62c6 7539fi;
10f2d63a
VZ
7540
7541 eval "$ac_cv_use_slider"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7547 echo "$as_me:$LINENO: result: yes" >&5
7548echo "${ECHO_T}yes" >&6
10f2d63a 7549 else
e6cc62c6
VS
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
10f2d63a 7552 fi
e6cc62c6 7553
10f2d63a 7554
5005acfe 7555 enablestring=
e6cc62c6
VS
7556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7557echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7558 no_cache=0
7559 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7560if test "${enable_spinbtn+set}" = set; then
7561 enableval="$enable_spinbtn"
e6cc62c6 7562
10f2d63a
VZ
7563 if test "$enableval" = yes; then
7564 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7565 else
7566 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7567 fi
e6cc62c6 7568
10f2d63a 7569else
e6cc62c6 7570
10f2d63a
VZ
7571 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7579
e6cc62c6 7580fi;
10f2d63a
VZ
7581
7582 eval "$ac_cv_use_spinbtn"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7588 echo "$as_me:$LINENO: result: yes" >&5
7589echo "${ECHO_T}yes" >&6
10f2d63a 7590 else
e6cc62c6
VS
7591 echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
10f2d63a 7593 fi
e6cc62c6 7594
10f2d63a 7595
5005acfe 7596 enablestring=
e6cc62c6
VS
7597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7598echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7599 no_cache=0
7600 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7601if test "${enable_spinctrl+set}" = set; then
7602 enableval="$enable_spinctrl"
e6cc62c6 7603
56cfaa52
RR
7604 if test "$enableval" = yes; then
7605 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7606 else
7607 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7608 fi
e6cc62c6 7609
56cfaa52 7610else
e6cc62c6 7611
56cfaa52
RR
7612 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7620
e6cc62c6 7621fi;
56cfaa52
RR
7622
7623 eval "$ac_cv_use_spinctrl"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7629 echo "$as_me:$LINENO: result: yes" >&5
7630echo "${ECHO_T}yes" >&6
56cfaa52 7631 else
e6cc62c6
VS
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
56cfaa52 7634 fi
e6cc62c6 7635
56cfaa52 7636
5005acfe 7637 enablestring=
e6cc62c6
VS
7638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7639echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7640 no_cache=0
7641 # Check whether --enable-splitter or --disable-splitter was given.
7642if test "${enable_splitter+set}" = set; then
7643 enableval="$enable_splitter"
e6cc62c6 7644
10f2d63a
VZ
7645 if test "$enableval" = yes; then
7646 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7647 else
7648 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7649 fi
e6cc62c6 7650
10f2d63a 7651else
e6cc62c6 7652
10f2d63a
VZ
7653 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7661
e6cc62c6 7662fi;
10f2d63a
VZ
7663
7664 eval "$ac_cv_use_splitter"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7670 echo "$as_me:$LINENO: result: yes" >&5
7671echo "${ECHO_T}yes" >&6
10f2d63a 7672 else
e6cc62c6
VS
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
10f2d63a 7675 fi
e6cc62c6 7676
10f2d63a 7677
5005acfe 7678 enablestring=
e6cc62c6
VS
7679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7680echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7681 no_cache=0
7682 # Check whether --enable-statbmp or --disable-statbmp was given.
7683if test "${enable_statbmp+set}" = set; then
7684 enableval="$enable_statbmp"
e6cc62c6 7685
10f2d63a
VZ
7686 if test "$enableval" = yes; then
7687 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7688 else
7689 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7690 fi
e6cc62c6 7691
10f2d63a 7692else
e6cc62c6 7693
10f2d63a
VZ
7694 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7702
e6cc62c6 7703fi;
10f2d63a
VZ
7704
7705 eval "$ac_cv_use_statbmp"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7711 echo "$as_me:$LINENO: result: yes" >&5
7712echo "${ECHO_T}yes" >&6
10f2d63a 7713 else
e6cc62c6
VS
7714 echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
10f2d63a 7716 fi
e6cc62c6 7717
10f2d63a 7718
5005acfe 7719 enablestring=
e6cc62c6
VS
7720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7721echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7722 no_cache=0
7723 # Check whether --enable-statbox or --disable-statbox was given.
7724if test "${enable_statbox+set}" = set; then
7725 enableval="$enable_statbox"
e6cc62c6 7726
10f2d63a
VZ
7727 if test "$enableval" = yes; then
7728 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7729 else
7730 ac_cv_use_statbox='wxUSE_STATBOX=no'
7731 fi
e6cc62c6 7732
10f2d63a 7733else
e6cc62c6 7734
10f2d63a
VZ
7735 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7743
e6cc62c6 7744fi;
10f2d63a
VZ
7745
7746 eval "$ac_cv_use_statbox"
7747 if test "$no_cache" != 1; then
7748 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7749 fi
7750
7751 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7752 echo "$as_me:$LINENO: result: yes" >&5
7753echo "${ECHO_T}yes" >&6
10f2d63a 7754 else
e6cc62c6
VS
7755 echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
10f2d63a 7757 fi
e6cc62c6 7758
10f2d63a 7759
5005acfe 7760 enablestring=
e6cc62c6
VS
7761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7762echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7763 no_cache=0
7764 # Check whether --enable-statline or --disable-statline was given.
7765if test "${enable_statline+set}" = set; then
7766 enableval="$enable_statline"
e6cc62c6 7767
10f2d63a
VZ
7768 if test "$enableval" = yes; then
7769 ac_cv_use_statline='wxUSE_STATLINE=yes'
7770 else
7771 ac_cv_use_statline='wxUSE_STATLINE=no'
7772 fi
e6cc62c6 7773
10f2d63a 7774else
e6cc62c6 7775
10f2d63a
VZ
7776 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7784
e6cc62c6 7785fi;
10f2d63a
VZ
7786
7787 eval "$ac_cv_use_statline"
7788 if test "$no_cache" != 1; then
7789 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7790 fi
7791
7792 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7793 echo "$as_me:$LINENO: result: yes" >&5
7794echo "${ECHO_T}yes" >&6
10f2d63a 7795 else
e6cc62c6
VS
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
10f2d63a 7798 fi
e6cc62c6 7799
10f2d63a 7800
5005acfe 7801 enablestring=
e6cc62c6
VS
7802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7803echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7804 no_cache=0
7805 # Check whether --enable-stattext or --disable-stattext was given.
7806if test "${enable_stattext+set}" = set; then
7807 enableval="$enable_stattext"
e6cc62c6 7808
1e6feb95
VZ
7809 if test "$enableval" = yes; then
7810 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7811 else
7812 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7813 fi
e6cc62c6 7814
1e6feb95 7815else
e6cc62c6 7816
1e6feb95
VZ
7817 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7818 if test "x$LINE" != x ; then
7819 eval "DEFAULT_$LINE"
7820 else
7821 no_cache=1
7822 fi
7823
7824 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7825
e6cc62c6 7826fi;
1e6feb95
VZ
7827
7828 eval "$ac_cv_use_stattext"
7829 if test "$no_cache" != 1; then
7830 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7831 fi
7832
7833 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7834 echo "$as_me:$LINENO: result: yes" >&5
7835echo "${ECHO_T}yes" >&6
1e6feb95 7836 else
e6cc62c6
VS
7837 echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
1e6feb95 7839 fi
e6cc62c6 7840
1e6feb95 7841
5005acfe 7842 enablestring=
e6cc62c6
VS
7843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7844echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7845 no_cache=0
7846 # Check whether --enable-statusbar or --disable-statusbar was given.
7847if test "${enable_statusbar+set}" = set; then
7848 enableval="$enable_statusbar"
e6cc62c6 7849
10f2d63a
VZ
7850 if test "$enableval" = yes; then
7851 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7852 else
7853 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7854 fi
e6cc62c6 7855
10f2d63a 7856else
e6cc62c6 7857
10f2d63a
VZ
7858 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7866
e6cc62c6 7867fi;
10f2d63a
VZ
7868
7869 eval "$ac_cv_use_statusbar"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7875 echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6
10f2d63a 7877 else
e6cc62c6
VS
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
10f2d63a 7880 fi
e6cc62c6 7881
10f2d63a 7882
5005acfe 7883 enablestring=
e6cc62c6
VS
7884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7885echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7886 no_cache=0
7887 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7888if test "${enable_tabdialog+set}" = set; then
7889 enableval="$enable_tabdialog"
e6cc62c6 7890
10f2d63a
VZ
7891 if test "$enableval" = yes; then
7892 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7893 else
7894 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7895 fi
e6cc62c6 7896
10f2d63a 7897else
e6cc62c6 7898
10f2d63a
VZ
7899 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7907
e6cc62c6 7908fi;
10f2d63a
VZ
7909
7910 eval "$ac_cv_use_tabdialog"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7916 echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
10f2d63a 7918 else
e6cc62c6
VS
7919 echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
10f2d63a 7921 fi
e6cc62c6 7922
10f2d63a 7923
5005acfe 7924 enablestring=
e6cc62c6
VS
7925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7926echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7927 no_cache=0
7928 # Check whether --enable-textctrl or --disable-textctrl was given.
7929if test "${enable_textctrl+set}" = set; then
7930 enableval="$enable_textctrl"
e6cc62c6 7931
1e6feb95
VZ
7932 if test "$enableval" = yes; then
7933 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7934 else
7935 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7936 fi
e6cc62c6 7937
1e6feb95 7938else
e6cc62c6 7939
1e6feb95
VZ
7940 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7948
e6cc62c6 7949fi;
1e6feb95
VZ
7950
7951 eval "$ac_cv_use_textctrl"
7952 if test "$no_cache" != 1; then
7953 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7954 fi
7955
7956 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7957 echo "$as_me:$LINENO: result: yes" >&5
7958echo "${ECHO_T}yes" >&6
1e6feb95 7959 else
e6cc62c6
VS
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
1e6feb95 7962 fi
e6cc62c6 7963
1e6feb95 7964
5005acfe 7965 enablestring=
e6cc62c6
VS
7966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7967echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7968 no_cache=0
7969 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7970if test "${enable_togglebtn+set}" = set; then
7971 enableval="$enable_togglebtn"
e6cc62c6 7972
1db8dc4a
VZ
7973 if test "$enableval" = yes; then
7974 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7975 else
7976 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7977 fi
e6cc62c6 7978
1db8dc4a 7979else
e6cc62c6 7980
1db8dc4a
VZ
7981 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7982 if test "x$LINE" != x ; then
7983 eval "DEFAULT_$LINE"
7984 else
7985 no_cache=1
7986 fi
7987
7988 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7989
e6cc62c6 7990fi;
1db8dc4a
VZ
7991
7992 eval "$ac_cv_use_togglebtn"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7998 echo "$as_me:$LINENO: result: yes" >&5
7999echo "${ECHO_T}yes" >&6
1db8dc4a 8000 else
e6cc62c6
VS
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
1db8dc4a 8003 fi
e6cc62c6 8004
1db8dc4a 8005
5005acfe 8006 enablestring=
e6cc62c6
VS
8007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8008echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8009 no_cache=0
8010 # Check whether --enable-toolbar or --disable-toolbar was given.
8011if test "${enable_toolbar+set}" = set; then
8012 enableval="$enable_toolbar"
e6cc62c6 8013
10f2d63a
VZ
8014 if test "$enableval" = yes; then
8015 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8016 else
8017 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8018 fi
e6cc62c6 8019
10f2d63a 8020else
e6cc62c6 8021
10f2d63a
VZ
8022 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8023 if test "x$LINE" != x ; then
8024 eval "DEFAULT_$LINE"
8025 else
8026 no_cache=1
8027 fi
8028
8029 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8030
e6cc62c6 8031fi;
10f2d63a
VZ
8032
8033 eval "$ac_cv_use_toolbar"
8034 if test "$no_cache" != 1; then
8035 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8036 fi
8037
8038 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8039 echo "$as_me:$LINENO: result: yes" >&5
8040echo "${ECHO_T}yes" >&6
10f2d63a 8041 else
e6cc62c6
VS
8042 echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
10f2d63a 8044 fi
e6cc62c6 8045
10f2d63a 8046
5005acfe 8047 enablestring=
e6cc62c6
VS
8048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8049echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8050 no_cache=0
8051 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8052if test "${enable_tbarnative+set}" = set; then
8053 enableval="$enable_tbarnative"
e6cc62c6 8054
360d6699
VZ
8055 if test "$enableval" = yes; then
8056 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8057 else
8058 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8059 fi
e6cc62c6 8060
360d6699 8061else
e6cc62c6 8062
360d6699
VZ
8063 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8071
e6cc62c6 8072fi;
360d6699
VZ
8073
8074 eval "$ac_cv_use_tbarnative"
8075 if test "$no_cache" != 1; then
8076 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8077 fi
8078
8079 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6
360d6699 8082 else
e6cc62c6
VS
8083 echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
360d6699 8085 fi
e6cc62c6 8086
360d6699 8087
5005acfe 8088 enablestring=
e6cc62c6
VS
8089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8090echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8091 no_cache=0
8092 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8093if test "${enable_tbarsmpl+set}" = set; then
8094 enableval="$enable_tbarsmpl"
e6cc62c6 8095
360d6699
VZ
8096 if test "$enableval" = yes; then
8097 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8098 else
8099 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8100 fi
e6cc62c6 8101
360d6699 8102else
e6cc62c6 8103
360d6699
VZ
8104 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8105 if test "x$LINE" != x ; then
8106 eval "DEFAULT_$LINE"
8107 else
8108 no_cache=1
8109 fi
8110
8111 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8112
e6cc62c6 8113fi;
360d6699
VZ
8114
8115 eval "$ac_cv_use_tbarsmpl"
8116 if test "$no_cache" != 1; then
8117 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8118 fi
8119
8120 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8121 echo "$as_me:$LINENO: result: yes" >&5
8122echo "${ECHO_T}yes" >&6
360d6699 8123 else
e6cc62c6
VS
8124 echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
360d6699 8126 fi
e6cc62c6 8127
360d6699 8128
5005acfe 8129 enablestring=
e6cc62c6
VS
8130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8131echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8132 no_cache=0
8133 # Check whether --enable-treectrl or --disable-treectrl was given.
8134if test "${enable_treectrl+set}" = set; then
8135 enableval="$enable_treectrl"
e6cc62c6 8136
10f2d63a
VZ
8137 if test "$enableval" = yes; then
8138 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8139 else
8140 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8141 fi
e6cc62c6 8142
10f2d63a 8143else
e6cc62c6 8144
10f2d63a
VZ
8145 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8153
e6cc62c6 8154fi;
10f2d63a 8155
1e6feb95
VZ
8156 eval "$ac_cv_use_treectrl"
8157 if test "$no_cache" != 1; then
8158 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8159 fi
8160
8161 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
1e6feb95 8164 else
e6cc62c6
VS
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
1e6feb95 8167 fi
e6cc62c6 8168
1e6feb95 8169
5005acfe 8170 enablestring=
e6cc62c6
VS
8171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8172echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8173 no_cache=0
8174 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8175if test "${enable_tipwindow+set}" = set; then
8176 enableval="$enable_tipwindow"
e6cc62c6 8177
9926e4a4
VZ
8178 if test "$enableval" = yes; then
8179 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8180 else
8181 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8182 fi
e6cc62c6 8183
9926e4a4 8184else
e6cc62c6 8185
9926e4a4
VZ
8186 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8187 if test "x$LINE" != x ; then
8188 eval "DEFAULT_$LINE"
8189 else
8190 no_cache=1
8191 fi
8192
8193 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8194
e6cc62c6 8195fi;
9926e4a4
VZ
8196
8197 eval "$ac_cv_use_tipwindow"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8203 echo "$as_me:$LINENO: result: yes" >&5
8204echo "${ECHO_T}yes" >&6
9926e4a4 8205 else
e6cc62c6
VS
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
9926e4a4 8208 fi
e6cc62c6 8209
9926e4a4 8210
5005acfe 8211 enablestring=
e6cc62c6
VS
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8214 no_cache=0
8215 # Check whether --enable-popupwin or --disable-popupwin was given.
8216if test "${enable_popupwin+set}" = set; then
8217 enableval="$enable_popupwin"
e6cc62c6 8218
9f41d601
RR
8219 if test "$enableval" = yes; then
8220 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8221 else
8222 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8223 fi
e6cc62c6 8224
9f41d601 8225else
e6cc62c6 8226
9f41d601
RR
8227 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8235
e6cc62c6 8236fi;
9f41d601
RR
8237
8238 eval "$ac_cv_use_popupwin"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
9f41d601 8246 else
e6cc62c6
VS
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
9f41d601 8249 fi
e6cc62c6 8250
52127426 8251
8284b0c5
MB
8252
8253
5005acfe 8254 enablestring=
e6cc62c6
VS
8255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8256echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8257 no_cache=0
8258 # Check whether --enable-commondlg or --disable-commondlg was given.
8259if test "${enable_commondlg+set}" = set; then
8260 enableval="$enable_commondlg"
e6cc62c6 8261
1e6feb95
VZ
8262 if test "$enableval" = yes; then
8263 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8264 else
8265 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8266 fi
e6cc62c6 8267
1e6feb95 8268else
e6cc62c6 8269
1e6feb95
VZ
8270 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8271 if test "x$LINE" != x ; then
8272 eval "DEFAULT_$LINE"
8273 else
8274 no_cache=1
8275 fi
8276
8277 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8278
e6cc62c6 8279fi;
1e6feb95
VZ
8280
8281 eval "$ac_cv_use_commondlg"
8282 if test "$no_cache" != 1; then
8283 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8284 fi
8285
8286 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8287 echo "$as_me:$LINENO: result: yes" >&5
8288echo "${ECHO_T}yes" >&6
1e6feb95 8289 else
e6cc62c6
VS
8290 echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6
1e6feb95 8292 fi
e6cc62c6 8293
1e6feb95 8294
5005acfe 8295 enablestring=
e6cc62c6
VS
8296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8297echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8298 no_cache=0
8299 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8300if test "${enable_choicedlg+set}" = set; then
8301 enableval="$enable_choicedlg"
e6cc62c6 8302
1e6feb95
VZ
8303 if test "$enableval" = yes; then
8304 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8305 else
8306 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8307 fi
e6cc62c6 8308
1e6feb95 8309else
e6cc62c6 8310
1e6feb95
VZ
8311 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8312 if test "x$LINE" != x ; then
8313 eval "DEFAULT_$LINE"
8314 else
8315 no_cache=1
8316 fi
8317
8318 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8319
e6cc62c6 8320fi;
1e6feb95
VZ
8321
8322 eval "$ac_cv_use_choicedlg"
8323 if test "$no_cache" != 1; then
8324 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8325 fi
8326
8327 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8328 echo "$as_me:$LINENO: result: yes" >&5
8329echo "${ECHO_T}yes" >&6
1e6feb95 8330 else
e6cc62c6
VS
8331 echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6
1e6feb95 8333 fi
e6cc62c6 8334
1e6feb95 8335
5005acfe 8336 enablestring=
e6cc62c6
VS
8337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8338echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8339 no_cache=0
8340 # Check whether --enable-coldlg or --disable-coldlg was given.
8341if test "${enable_coldlg+set}" = set; then
8342 enableval="$enable_coldlg"
e6cc62c6 8343
1e6feb95
VZ
8344 if test "$enableval" = yes; then
8345 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8346 else
8347 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8348 fi
e6cc62c6 8349
1e6feb95 8350else
e6cc62c6 8351
1e6feb95
VZ
8352 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8360
e6cc62c6 8361fi;
1e6feb95
VZ
8362
8363 eval "$ac_cv_use_coldlg"
8364 if test "$no_cache" != 1; then
8365 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8366 fi
8367
8368 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8369 echo "$as_me:$LINENO: result: yes" >&5
8370echo "${ECHO_T}yes" >&6
1e6feb95 8371 else
e6cc62c6
VS
8372 echo "$as_me:$LINENO: result: no" >&5
8373echo "${ECHO_T}no" >&6
1e6feb95 8374 fi
e6cc62c6 8375
1e6feb95 8376
5005acfe 8377 enablestring=
e6cc62c6
VS
8378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8379echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8380 no_cache=0
8381 # Check whether --enable-filedlg or --disable-filedlg was given.
8382if test "${enable_filedlg+set}" = set; then
8383 enableval="$enable_filedlg"
e6cc62c6 8384
1e6feb95
VZ
8385 if test "$enableval" = yes; then
8386 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8387 else
8388 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8389 fi
e6cc62c6 8390
1e6feb95 8391else
e6cc62c6 8392
1e6feb95
VZ
8393 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8394 if test "x$LINE" != x ; then
8395 eval "DEFAULT_$LINE"
8396 else
8397 no_cache=1
8398 fi
8399
8400 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8401
e6cc62c6 8402fi;
1e6feb95
VZ
8403
8404 eval "$ac_cv_use_filedlg"
8405 if test "$no_cache" != 1; then
8406 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8407 fi
8408
8409 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8410 echo "$as_me:$LINENO: result: yes" >&5
8411echo "${ECHO_T}yes" >&6
1e6feb95 8412 else
e6cc62c6
VS
8413 echo "$as_me:$LINENO: result: no" >&5
8414echo "${ECHO_T}no" >&6
1e6feb95 8415 fi
e6cc62c6 8416
1e6feb95 8417
5005acfe 8418 enablestring=
e6cc62c6
VS
8419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8420echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8421 no_cache=0
69d27ff7
MB
8422 # Check whether --enable-finddlg or --disable-finddlg was given.
8423if test "${enable_finddlg+set}" = set; then
8424 enableval="$enable_finddlg"
e6cc62c6 8425
8db37e06 8426 if test "$enableval" = yes; then
69d27ff7 8427 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8428 else
69d27ff7 8429 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8430 fi
e6cc62c6 8431
8db37e06 8432else
e6cc62c6 8433
8db37e06
VZ
8434 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8435 if test "x$LINE" != x ; then
8436 eval "DEFAULT_$LINE"
8437 else
8438 no_cache=1
8439 fi
8440
69d27ff7 8441 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8442
e6cc62c6 8443fi;
8db37e06 8444
69d27ff7 8445 eval "$ac_cv_use_finddlg"
8db37e06 8446 if test "$no_cache" != 1; then
69d27ff7 8447 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8448 fi
8449
8450 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8451 echo "$as_me:$LINENO: result: yes" >&5
8452echo "${ECHO_T}yes" >&6
8db37e06 8453 else
e6cc62c6
VS
8454 echo "$as_me:$LINENO: result: no" >&5
8455echo "${ECHO_T}no" >&6
8db37e06 8456 fi
e6cc62c6 8457
8db37e06 8458
5005acfe 8459 enablestring=
e6cc62c6
VS
8460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8461echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8462 no_cache=0
8463 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8464if test "${enable_fontdlg+set}" = set; then
8465 enableval="$enable_fontdlg"
e6cc62c6 8466
1e6feb95
VZ
8467 if test "$enableval" = yes; then
8468 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8469 else
8470 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8471 fi
e6cc62c6 8472
1e6feb95 8473else
e6cc62c6 8474
1e6feb95
VZ
8475 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8476 if test "x$LINE" != x ; then
8477 eval "DEFAULT_$LINE"
8478 else
8479 no_cache=1
8480 fi
8481
8482 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8483
e6cc62c6 8484fi;
1e6feb95
VZ
8485
8486 eval "$ac_cv_use_fontdlg"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8492 echo "$as_me:$LINENO: result: yes" >&5
8493echo "${ECHO_T}yes" >&6
1e6feb95 8494 else
e6cc62c6
VS
8495 echo "$as_me:$LINENO: result: no" >&5
8496echo "${ECHO_T}no" >&6
1e6feb95 8497 fi
e6cc62c6 8498
1e6feb95 8499
5005acfe 8500 enablestring=
e6cc62c6
VS
8501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8502echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8503 no_cache=0
8504 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8505if test "${enable_dirdlg+set}" = set; then
8506 enableval="$enable_dirdlg"
e6cc62c6 8507
1e6feb95
VZ
8508 if test "$enableval" = yes; then
8509 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8510 else
8511 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8512 fi
e6cc62c6 8513
1e6feb95 8514else
e6cc62c6 8515
1e6feb95
VZ
8516 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8517 if test "x$LINE" != x ; then
8518 eval "DEFAULT_$LINE"
8519 else
8520 no_cache=1
8521 fi
8522
8523 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8524
e6cc62c6 8525fi;
1e6feb95
VZ
8526
8527 eval "$ac_cv_use_dirdlg"
10f2d63a 8528 if test "$no_cache" != 1; then
1e6feb95 8529 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8530 fi
8531
1e6feb95 8532 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8533 echo "$as_me:$LINENO: result: yes" >&5
8534echo "${ECHO_T}yes" >&6
10f2d63a 8535 else
e6cc62c6
VS
8536 echo "$as_me:$LINENO: result: no" >&5
8537echo "${ECHO_T}no" >&6
10f2d63a 8538 fi
e6cc62c6 8539
698dcdb6 8540
5005acfe 8541 enablestring=
e6cc62c6
VS
8542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8543echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8544 no_cache=0
1e6feb95
VZ
8545 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8546if test "${enable_msgdlg+set}" = set; then
8547 enableval="$enable_msgdlg"
e6cc62c6 8548
10f2d63a 8549 if test "$enableval" = yes; then
1e6feb95 8550 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8551 else
1e6feb95 8552 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8553 fi
e6cc62c6 8554
10f2d63a 8555else
e6cc62c6 8556
1e6feb95 8557 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8558 if test "x$LINE" != x ; then
8559 eval "DEFAULT_$LINE"
8560 else
8561 no_cache=1
8562 fi
8563
1e6feb95 8564 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8565
e6cc62c6 8566fi;
10f2d63a 8567
1e6feb95 8568 eval "$ac_cv_use_msgdlg"
10f2d63a 8569 if test "$no_cache" != 1; then
1e6feb95 8570 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8571 fi
8572
1e6feb95 8573 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8574 echo "$as_me:$LINENO: result: yes" >&5
8575echo "${ECHO_T}yes" >&6
10f2d63a 8576 else
e6cc62c6
VS
8577 echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6
10f2d63a 8579 fi
e6cc62c6 8580
10f2d63a 8581
5005acfe 8582 enablestring=
e6cc62c6
VS
8583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8584echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8585 no_cache=0
1e6feb95
VZ
8586 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8587if test "${enable_numberdlg+set}" = set; then
8588 enableval="$enable_numberdlg"
e6cc62c6 8589
10f2d63a 8590 if test "$enableval" = yes; then
1e6feb95 8591 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8592 else
1e6feb95 8593 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8594 fi
e6cc62c6 8595
10f2d63a 8596else
e6cc62c6 8597
1e6feb95 8598 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8599 if test "x$LINE" != x ; then
8600 eval "DEFAULT_$LINE"
8601 else
8602 no_cache=1
8603 fi
8604
1e6feb95 8605 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8606
e6cc62c6 8607fi;
10f2d63a 8608
1e6feb95 8609 eval "$ac_cv_use_numberdlg"
10f2d63a 8610 if test "$no_cache" != 1; then
1e6feb95 8611 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8612 fi
8613
1e6feb95 8614 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8615 echo "$as_me:$LINENO: result: yes" >&5
8616echo "${ECHO_T}yes" >&6
10f2d63a 8617 else
e6cc62c6
VS
8618 echo "$as_me:$LINENO: result: no" >&5
8619echo "${ECHO_T}no" >&6
10f2d63a 8620 fi
e6cc62c6 8621
10f2d63a 8622
5005acfe 8623 enablestring=
e6cc62c6
VS
8624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8625echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8626 no_cache=0
8627 # Check whether --enable-splash or --disable-splash was given.
8628if test "${enable_splash+set}" = set; then
8629 enableval="$enable_splash"
e6cc62c6 8630
cbca9943
VZ
8631 if test "$enableval" = yes; then
8632 ac_cv_use_splash='wxUSE_SPLASH=yes'
8633 else
8634 ac_cv_use_splash='wxUSE_SPLASH=no'
8635 fi
e6cc62c6 8636
cbca9943 8637else
e6cc62c6 8638
cbca9943
VZ
8639 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8640 if test "x$LINE" != x ; then
8641 eval "DEFAULT_$LINE"
8642 else
8643 no_cache=1
8644 fi
8645
8646 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8647
e6cc62c6 8648fi;
cbca9943
VZ
8649
8650 eval "$ac_cv_use_splash"
8651 if test "$no_cache" != 1; then
8652 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8653 fi
8654
8655 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8656 echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6
cbca9943 8658 else
e6cc62c6
VS
8659 echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6
cbca9943 8661 fi
e6cc62c6 8662
cbca9943 8663
5005acfe 8664 enablestring=
e6cc62c6
VS
8665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8666echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8667 no_cache=0
8668 # Check whether --enable-textdlg or --disable-textdlg was given.
8669if test "${enable_textdlg+set}" = set; then
8670 enableval="$enable_textdlg"
e6cc62c6 8671
10f2d63a
VZ
8672 if test "$enableval" = yes; then
8673 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8674 else
8675 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8676 fi
e6cc62c6 8677
10f2d63a 8678else
e6cc62c6 8679
10f2d63a
VZ
8680 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8681 if test "x$LINE" != x ; then
8682 eval "DEFAULT_$LINE"
8683 else
8684 no_cache=1
8685 fi
8686
8687 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8688
e6cc62c6 8689fi;
10f2d63a
VZ
8690
8691 eval "$ac_cv_use_textdlg"
8692 if test "$no_cache" != 1; then
8693 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8694 fi
8695
8696 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8697 echo "$as_me:$LINENO: result: yes" >&5
8698echo "${ECHO_T}yes" >&6
10f2d63a 8699 else
e6cc62c6
VS
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
10f2d63a 8702 fi
e6cc62c6 8703
10f2d63a 8704
5005acfe 8705 enablestring=
e6cc62c6
VS
8706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8707echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8708 no_cache=0
8709 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8710if test "${enable_tipdlg+set}" = set; then
8711 enableval="$enable_tipdlg"
e6cc62c6 8712
10f2d63a
VZ
8713 if test "$enableval" = yes; then
8714 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8715 else
8716 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8717 fi
e6cc62c6 8718
10f2d63a 8719else
e6cc62c6 8720
10f2d63a
VZ
8721 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8722 if test "x$LINE" != x ; then
8723 eval "DEFAULT_$LINE"
8724 else
8725 no_cache=1
8726 fi
8727
8728 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8729
e6cc62c6 8730fi;
10f2d63a
VZ
8731
8732 eval "$ac_cv_use_tipdlg"
8733 if test "$no_cache" != 1; then
8734 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8735 fi
8736
8737 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8738 echo "$as_me:$LINENO: result: yes" >&5
8739echo "${ECHO_T}yes" >&6
10f2d63a 8740 else
e6cc62c6
VS
8741 echo "$as_me:$LINENO: result: no" >&5
8742echo "${ECHO_T}no" >&6
10f2d63a 8743 fi
e6cc62c6 8744
10f2d63a 8745
5005acfe 8746 enablestring=
e6cc62c6
VS
8747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8748echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8749 no_cache=0
8750 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8751if test "${enable_progressdlg+set}" = set; then
8752 enableval="$enable_progressdlg"
e6cc62c6 8753
10f2d63a
VZ
8754 if test "$enableval" = yes; then
8755 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8756 else
8757 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8758 fi
e6cc62c6 8759
10f2d63a 8760else
e6cc62c6 8761
10f2d63a
VZ
8762 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8763 if test "x$LINE" != x ; then
8764 eval "DEFAULT_$LINE"
8765 else
8766 no_cache=1
8767 fi
8768
8769 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8770
e6cc62c6 8771fi;
10f2d63a
VZ
8772
8773 eval "$ac_cv_use_progressdlg"
8774 if test "$no_cache" != 1; then
8775 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8776 fi
8777
8778 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8779 echo "$as_me:$LINENO: result: yes" >&5
8780echo "${ECHO_T}yes" >&6
10f2d63a 8781 else
e6cc62c6
VS
8782 echo "$as_me:$LINENO: result: no" >&5
8783echo "${ECHO_T}no" >&6
10f2d63a 8784 fi
e6cc62c6 8785
10f2d63a 8786
5005acfe 8787 enablestring=
e6cc62c6
VS
8788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8789echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8790 no_cache=0
8791 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8792if test "${enable_wizarddlg+set}" = set; then
8793 enableval="$enable_wizarddlg"
e6cc62c6 8794
b1f5d087
VZ
8795 if test "$enableval" = yes; then
8796 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8797 else
8798 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8799 fi
e6cc62c6 8800
b1f5d087 8801else
e6cc62c6 8802
b1f5d087
VZ
8803 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8804 if test "x$LINE" != x ; then
8805 eval "DEFAULT_$LINE"
8806 else
8807 no_cache=1
8808 fi
8809
8810 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8811
e6cc62c6 8812fi;
b1f5d087
VZ
8813
8814 eval "$ac_cv_use_wizarddlg"
8815 if test "$no_cache" != 1; then
8816 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8817 fi
8818
8819 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8820 echo "$as_me:$LINENO: result: yes" >&5
8821echo "${ECHO_T}yes" >&6
b1f5d087 8822 else
e6cc62c6
VS
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
b1f5d087 8825 fi
e6cc62c6 8826
8284b0c5
MB
8827
8828
52127426 8829
5005acfe 8830 enablestring=
e6cc62c6
VS
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8833 no_cache=0
8834 # Check whether --enable-menus or --disable-menus was given.
8835if test "${enable_menus+set}" = set; then
8836 enableval="$enable_menus"
e6cc62c6 8837
1e6feb95
VZ
8838 if test "$enableval" = yes; then
8839 ac_cv_use_menus='wxUSE_MENUS=yes'
8840 else
8841 ac_cv_use_menus='wxUSE_MENUS=no'
8842 fi
e6cc62c6 8843
1e6feb95 8844else
e6cc62c6 8845
1e6feb95
VZ
8846 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8854
e6cc62c6 8855fi;
1e6feb95
VZ
8856
8857 eval "$ac_cv_use_menus"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
1e6feb95 8865 else
e6cc62c6
VS
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
1e6feb95 8868 fi
e6cc62c6 8869
1e6feb95 8870
5005acfe 8871 enablestring=
e6cc62c6
VS
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8874 no_cache=0
8875 # Check whether --enable-miniframe or --disable-miniframe was given.
8876if test "${enable_miniframe+set}" = set; then
8877 enableval="$enable_miniframe"
e6cc62c6 8878
10f2d63a
VZ
8879 if test "$enableval" = yes; then
8880 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8881 else
8882 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8883 fi
e6cc62c6 8884
10f2d63a 8885else
e6cc62c6 8886
10f2d63a
VZ
8887 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8895
e6cc62c6 8896fi;
10f2d63a
VZ
8897
8898 eval "$ac_cv_use_miniframe"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
10f2d63a 8906 else
e6cc62c6
VS
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
10f2d63a 8909 fi
e6cc62c6 8910
10f2d63a 8911
5005acfe 8912 enablestring=
e6cc62c6
VS
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8914echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8915 no_cache=0
8916 # Check whether --enable-tooltips or --disable-tooltips was given.
8917if test "${enable_tooltips+set}" = set; then
8918 enableval="$enable_tooltips"
e6cc62c6 8919
10f2d63a
VZ
8920 if test "$enableval" = yes; then
8921 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8922 else
8923 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8924 fi
e6cc62c6 8925
10f2d63a 8926else
e6cc62c6 8927
10f2d63a
VZ
8928 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8936
e6cc62c6 8937fi;
10f2d63a
VZ
8938
8939 eval "$ac_cv_use_tooltips"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
10f2d63a 8947 else
e6cc62c6
VS
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
10f2d63a 8950 fi
e6cc62c6 8951
10f2d63a 8952
5005acfe 8953 enablestring=
e6cc62c6
VS
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8955echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8956 no_cache=0
8957 # Check whether --enable-splines or --disable-splines was given.
8958if test "${enable_splines+set}" = set; then
8959 enableval="$enable_splines"
e6cc62c6 8960
10f2d63a
VZ
8961 if test "$enableval" = yes; then
8962 ac_cv_use_splines='wxUSE_SPLINES=yes'
8963 else
8964 ac_cv_use_splines='wxUSE_SPLINES=no'
8965 fi
e6cc62c6 8966
10f2d63a 8967else
e6cc62c6 8968
10f2d63a
VZ
8969 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8977
e6cc62c6 8978fi;
10f2d63a
VZ
8979
8980 eval "$ac_cv_use_splines"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8986 echo "$as_me:$LINENO: result: yes" >&5
8987echo "${ECHO_T}yes" >&6
10f2d63a 8988 else
e6cc62c6
VS
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
10f2d63a 8991 fi
e6cc62c6 8992
10f2d63a 8993
5005acfe 8994 enablestring=
e6cc62c6
VS
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8996echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8997 no_cache=0
8998 # Check whether --enable-validators or --disable-validators was given.
8999if test "${enable_validators+set}" = set; then
9000 enableval="$enable_validators"
e6cc62c6 9001
10f2d63a
VZ
9002 if test "$enableval" = yes; then
9003 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9004 else
9005 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9006 fi
e6cc62c6 9007
10f2d63a 9008else
e6cc62c6 9009
10f2d63a
VZ
9010 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9018
e6cc62c6 9019fi;
10f2d63a
VZ
9020
9021 eval "$ac_cv_use_validators"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9027 echo "$as_me:$LINENO: result: yes" >&5
9028echo "${ECHO_T}yes" >&6
10f2d63a 9029 else
e6cc62c6
VS
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
10f2d63a 9032 fi
e6cc62c6 9033
10f2d63a 9034
5005acfe 9035 enablestring=
e6cc62c6
VS
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9037echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9038 no_cache=0
9039 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9040if test "${enable_busyinfo+set}" = set; then
9041 enableval="$enable_busyinfo"
e6cc62c6 9042
10f2d63a
VZ
9043 if test "$enableval" = yes; then
9044 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9045 else
9046 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9047 fi
e6cc62c6 9048
10f2d63a 9049else
e6cc62c6 9050
10f2d63a
VZ
9051 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9059
e6cc62c6 9060fi;
10f2d63a
VZ
9061
9062 eval "$ac_cv_use_busyinfo"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
10f2d63a 9070 else
e6cc62c6
VS
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
10f2d63a 9073 fi
e6cc62c6 9074
10f2d63a 9075
5005acfe 9076 enablestring=
e6cc62c6
VS
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9078echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9079 no_cache=0
9080 # Check whether --enable-joystick or --disable-joystick was given.
9081if test "${enable_joystick+set}" = set; then
9082 enableval="$enable_joystick"
e6cc62c6 9083
f6bcfd97
BP
9084 if test "$enableval" = yes; then
9085 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9086 else
9087 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9088 fi
e6cc62c6 9089
f6bcfd97 9090else
e6cc62c6 9091
f6bcfd97
BP
9092 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9100
e6cc62c6 9101fi;
f6bcfd97
BP
9102
9103 eval "$ac_cv_use_joystick"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9109 echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6
f6bcfd97 9111 else
e6cc62c6
VS
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
f6bcfd97 9114 fi
e6cc62c6 9115
698dcdb6 9116
5005acfe 9117 enablestring=
e6cc62c6
VS
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9120 no_cache=0
9121 # Check whether --enable-metafile or --disable-metafile was given.
9122if test "${enable_metafile+set}" = set; then
9123 enableval="$enable_metafile"
e6cc62c6 9124
1e6feb95
VZ
9125 if test "$enableval" = yes; then
9126 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9127 else
9128 ac_cv_use_metafile='wxUSE_METAFILE=no'
9129 fi
e6cc62c6 9130
1e6feb95 9131else
e6cc62c6 9132
1e6feb95
VZ
9133 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9141
e6cc62c6 9142fi;
1e6feb95
VZ
9143
9144 eval "$ac_cv_use_metafile"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
1e6feb95 9152 else
e6cc62c6
VS
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
1e6feb95 9155 fi
e6cc62c6 9156
1e6feb95 9157
5005acfe 9158 enablestring=
e6cc62c6
VS
9159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9160echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9161 no_cache=0
9162 # Check whether --enable-dragimage or --disable-dragimage was given.
9163if test "${enable_dragimage+set}" = set; then
9164 enableval="$enable_dragimage"
e6cc62c6 9165
24fd6d87
VZ
9166 if test "$enableval" = yes; then
9167 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9168 else
9169 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9170 fi
e6cc62c6 9171
24fd6d87 9172else
e6cc62c6 9173
24fd6d87
VZ
9174 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9175 if test "x$LINE" != x ; then
9176 eval "DEFAULT_$LINE"
9177 else
9178 no_cache=1
9179 fi
9180
9181 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9182
e6cc62c6 9183fi;
24fd6d87
VZ
9184
9185 eval "$ac_cv_use_dragimage"
9186 if test "$no_cache" != 1; then
9187 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9188 fi
9189
9190 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9191 echo "$as_me:$LINENO: result: yes" >&5
9192echo "${ECHO_T}yes" >&6
24fd6d87 9193 else
e6cc62c6
VS
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
24fd6d87 9196 fi
e6cc62c6 9197
52127426 9198
7bb2947d 9199 enablestring=
e6cc62c6
VS
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9201echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9202 no_cache=0
9203 # Check whether --enable-accessibility or --disable-accessibility was given.
9204if test "${enable_accessibility+set}" = set; then
9205 enableval="$enable_accessibility"
e6cc62c6 9206
7bb2947d
MB
9207 if test "$enableval" = yes; then
9208 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9209 else
9210 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9211 fi
e6cc62c6 9212
7bb2947d 9213else
e6cc62c6 9214
7bb2947d
MB
9215 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9223
e6cc62c6 9224fi;
7bb2947d
MB
9225
9226 eval "$ac_cv_use_accessibility"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9232 echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
7bb2947d 9234 else
e6cc62c6
VS
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
7bb2947d 9237 fi
e6cc62c6 9238
7bb2947d 9239
8284b0c5
MB
9240
9241
5005acfe 9242 enablestring=
e6cc62c6
VS
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9245 no_cache=0
9246 # Check whether --enable-palette or --disable-palette was given.
9247if test "${enable_palette+set}" = set; then
9248 enableval="$enable_palette"
e6cc62c6 9249
edae8572
VZ
9250 if test "$enableval" = yes; then
9251 ac_cv_use_palette='wxUSE_PALETTE=yes'
9252 else
9253 ac_cv_use_palette='wxUSE_PALETTE=no'
9254 fi
e6cc62c6 9255
edae8572 9256else
e6cc62c6 9257
edae8572
VZ
9258 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9266
e6cc62c6 9267fi;
edae8572
VZ
9268
9269 eval "$ac_cv_use_palette"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
edae8572 9277 else
e6cc62c6
VS
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
edae8572 9280 fi
e6cc62c6 9281
edae8572 9282
5005acfe 9283 enablestring=
e6cc62c6
VS
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9286 no_cache=0
9287 # Check whether --enable-image or --disable-image was given.
9288if test "${enable_image+set}" = set; then
9289 enableval="$enable_image"
e6cc62c6 9290
0046ff7c
VS
9291 if test "$enableval" = yes; then
9292 ac_cv_use_image='wxUSE_IMAGE=yes'
9293 else
9294 ac_cv_use_image='wxUSE_IMAGE=no'
9295 fi
e6cc62c6 9296
0046ff7c 9297else
e6cc62c6 9298
0046ff7c
VS
9299 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9307
e6cc62c6 9308fi;
0046ff7c
VS
9309
9310 eval "$ac_cv_use_image"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
0046ff7c 9318 else
e6cc62c6
VS
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
0046ff7c 9321 fi
e6cc62c6 9322
0046ff7c 9323
5005acfe 9324 enablestring=
e6cc62c6
VS
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9327 no_cache=0
9328 # Check whether --enable-gif or --disable-gif was given.
9329if test "${enable_gif+set}" = set; then
9330 enableval="$enable_gif"
e6cc62c6 9331
10f2d63a
VZ
9332 if test "$enableval" = yes; then
9333 ac_cv_use_gif='wxUSE_GIF=yes'
9334 else
9335 ac_cv_use_gif='wxUSE_GIF=no'
9336 fi
e6cc62c6 9337
10f2d63a 9338else
e6cc62c6 9339
10f2d63a
VZ
9340 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9348
e6cc62c6 9349fi;
10f2d63a
VZ
9350
9351 eval "$ac_cv_use_gif"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
10f2d63a 9359 else
e6cc62c6
VS
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
10f2d63a 9362 fi
e6cc62c6 9363
10f2d63a 9364
5005acfe 9365 enablestring=
e6cc62c6
VS
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9368 no_cache=0
9369 # Check whether --enable-pcx or --disable-pcx was given.
9370if test "${enable_pcx+set}" = set; then
9371 enableval="$enable_pcx"
e6cc62c6 9372
10f2d63a
VZ
9373 if test "$enableval" = yes; then
9374 ac_cv_use_pcx='wxUSE_PCX=yes'
9375 else
9376 ac_cv_use_pcx='wxUSE_PCX=no'
9377 fi
e6cc62c6 9378
10f2d63a 9379else
e6cc62c6 9380
10f2d63a
VZ
9381 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9389
e6cc62c6 9390fi;
10f2d63a
VZ
9391
9392 eval "$ac_cv_use_pcx"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
10f2d63a 9400 else
e6cc62c6
VS
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
10f2d63a 9403 fi
e6cc62c6 9404
10f2d63a 9405
5005acfe 9406 enablestring=
e6cc62c6
VS
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9409 no_cache=0
9410 # Check whether --enable-iff or --disable-iff was given.
9411if test "${enable_iff+set}" = set; then
9412 enableval="$enable_iff"
e6cc62c6 9413
4b6b4dfc
RR
9414 if test "$enableval" = yes; then
9415 ac_cv_use_iff='wxUSE_IFF=yes'
9416 else
9417 ac_cv_use_iff='wxUSE_IFF=no'
9418 fi
e6cc62c6 9419
4b6b4dfc 9420else
e6cc62c6 9421
4b6b4dfc
RR
9422 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9430
e6cc62c6 9431fi;
4b6b4dfc
RR
9432
9433 eval "$ac_cv_use_iff"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
4b6b4dfc 9441 else
e6cc62c6
VS
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
4b6b4dfc 9444 fi
e6cc62c6 9445
4b6b4dfc 9446
5005acfe 9447 enablestring=
e6cc62c6
VS
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9450 no_cache=0
9451 # Check whether --enable-pnm or --disable-pnm was given.
9452if test "${enable_pnm+set}" = set; then
9453 enableval="$enable_pnm"
e6cc62c6 9454
10f2d63a
VZ
9455 if test "$enableval" = yes; then
9456 ac_cv_use_pnm='wxUSE_PNM=yes'
9457 else
9458 ac_cv_use_pnm='wxUSE_PNM=no'
9459 fi
e6cc62c6 9460
10f2d63a 9461else
e6cc62c6 9462
10f2d63a
VZ
9463 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9471
e6cc62c6 9472fi;
10f2d63a
VZ
9473
9474 eval "$ac_cv_use_pnm"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
10f2d63a 9482 else
e6cc62c6
VS
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
10f2d63a 9485 fi
e6cc62c6 9486
10f2d63a 9487
5005acfe 9488 enablestring=
e6cc62c6
VS
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9491 no_cache=0
69d27ff7
MB
9492 # Check whether --enable-xpm or --disable-xpm was given.
9493if test "${enable_xpm+set}" = set; then
9494 enableval="$enable_xpm"
e6cc62c6 9495
0046ff7c 9496 if test "$enableval" = yes; then
69d27ff7 9497 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9498 else
69d27ff7 9499 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9500 fi
e6cc62c6 9501
0046ff7c 9502else
e6cc62c6 9503
0046ff7c
VS
9504 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
69d27ff7 9511 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9512
e6cc62c6 9513fi;
0046ff7c 9514
69d27ff7 9515 eval "$ac_cv_use_xpm"
0046ff7c 9516 if test "$no_cache" != 1; then
69d27ff7 9517 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9518 fi
9519
9520 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
0046ff7c 9523 else
e6cc62c6
VS
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
0046ff7c 9526 fi
e6cc62c6 9527
0046ff7c 9528
5005acfe 9529 enablestring=
e6cc62c6
VS
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9532 no_cache=0
c7206e64
VS
9533 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9534if test "${enable_ico_cur+set}" = set; then
9535 enableval="$enable_ico_cur"
e6cc62c6 9536
658974ae 9537 if test "$enableval" = yes; then
c7206e64 9538 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9539 else
c7206e64 9540 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9541 fi
e6cc62c6 9542
658974ae 9543else
e6cc62c6 9544
658974ae
VS
9545 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
c7206e64 9552 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9553
e6cc62c6 9554fi;
658974ae 9555
c7206e64 9556 eval "$ac_cv_use_ico_cur"
658974ae 9557 if test "$no_cache" != 1; then
c7206e64 9558 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9559 fi
9560
9561 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
658974ae 9564 else
e6cc62c6
VS
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
658974ae 9567 fi
e6cc62c6 9568
658974ae 9569
b12915c1
VZ
9570fi
9571
029b47ad
VS
9572
9573
9574 enablestring=
9575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9576echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9577 no_cache=0
9578 # Check whether --enable-official_build or --disable-official_build was given.
9579if test "${enable_official_build+set}" = set; then
9580 enableval="$enable_official_build"
9581
9582 if test "$enableval" = yes; then
9583 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9584 else
9585 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9586 fi
9587
9588else
9589
9590 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9591 if test "x$LINE" != x ; then
9592 eval "DEFAULT_$LINE"
9593 else
9594 no_cache=1
9595 fi
9596
9597 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9598
9599fi;
9600
9601 eval "$ac_cv_use_official_build"
9602 if test "$no_cache" != 1; then
9603 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9604 fi
9605
9606 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9607 echo "$as_me:$LINENO: result: yes" >&5
9608echo "${ECHO_T}yes" >&6
9609 else
9610 echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612 fi
9613
9614# Check whether --enable-vendor or --disable-vendor was given.
9615if test "${enable_vendor+set}" = set; then
9616 enableval="$enable_vendor"
9617 VENDOR="$enableval"
9618fi;
9619if test "x$VENDOR" = "x"; then
9620 VENDOR="custom"
9621fi
9622
d558c907
VS
9623case "${host}" in
9624 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9625 PATH_IFS=';'
d558c907
VS
9626 ;;
9627 *)
9628 PATH_IFS=':'
d558c907
VS
9629 ;;
9630esac
9631
8284b0c5
MB
9632
9633
10f2d63a
VZ
9634 echo "saving argument cache $wx_arg_cache_file"
9635 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9636
8284b0c5 9637
e6cc62c6
VS
9638
9639echo "$as_me:$LINENO: checking for toolkit" >&5
9640echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9641
9642# In Wine, we need to default to MSW, not GTK or MOTIF
9643if test "$wxUSE_WINE" = "yes"; then
9644 DEFAULT_DEFAULT_wxUSE_GTK=0
9645 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9646 DEFAULT_DEFAULT_wxUSE_MSW=1
9647fi
10f2d63a
VZ
9648
9649if test "$wxUSE_GUI" = "yes"; then
9650
3a922bb4 9651 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9652 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9653echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9654 { (exit 1); exit 1; }; }
3a922bb4 9655 fi
b12915c1 9656
3a922bb4
RL
9657 if test "$TOOLKIT_GIVEN" = 1; then
9658 for toolkit in `echo $ALL_TOOLKITS`; do
9659 var=wxUSE_$toolkit
9660 eval "value=\$${var}"
9661 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9662 done
10f2d63a 9663 else
3a922bb4
RL
9664 for toolkit in `echo $ALL_TOOLKITS`; do
9665 if test "$has_toolkit_in_cache" != 1; then
9666 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9667 else
9668 var=DEFAULT_wxUSE_$toolkit
9669 fi
9670 eval "wxUSE_$toolkit=\$${var}"
9671 done
10f2d63a 9672 fi
10f2d63a 9673
ac0c4cc3
DE
9674 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9675 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9676 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9677
d558c907 9678 case "${host}" in
6fa882bd 9679 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9680 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9681 esac
10f2d63a 9682
3a922bb4
RL
9683 case "$NUM_TOOLKITS" in
9684 1)
9685 ;;
9686 0)
e6cc62c6
VS
9687 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9688echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9689 { (exit 1); exit 1; }; }
3a922bb4
RL
9690 ;;
9691 *)
e6cc62c6
VS
9692 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9693echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9694 { (exit 1); exit 1; }; }
3a922bb4 9695 esac
10f2d63a 9696
3a922bb4
RL
9697 for toolkit in `echo $ALL_TOOLKITS`; do
9698 var=wxUSE_$toolkit
9699 eval "value=\$${var}"
9700 if test "x$value" != x; then
9701 cache_var=CACHE_$toolkit
9702 eval "cache=\$${cache_var}"
9703 if test "$cache" = 1; then
9704 echo "$var=$value" >> ${wx_arg_cache_file}
9705 fi
9706 if test "$value" = 1; then
9707 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9708 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9709echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9710 fi
9711 fi
9712 done
10f2d63a 9713else
9de9b8f0
VZ
9714 if test "x$host_alias" != "x"; then
9715 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9716echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9717 else
9718 echo "$as_me:$LINENO: result: base only" >&5
9719echo "${ECHO_T}base only" >&6
9720 fi
10f2d63a
VZ
9721fi
9722
43d99b6d
VS
9723wants_win32=0
9724doesnt_want_win32=0
17234b26
MB
9725case "${host}" in
9726 *-*-cygwin*)
9727 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9728 wants_win32=1
9729 else
9730 doesnt_want_win32=1
17234b26
MB
9731 fi
9732 ;;
9733 *-*-mingw*)
43d99b6d 9734 wants_win32=1
17234b26
MB
9735 ;;
9736esac
9737
89e6bf6d
VZ
9738if test "$wxUSE_WINE" = "yes"; then
9739 wants_win32=1
9740 CC=winegcc
9741 CXX=wineg++
9742 RESCOMP=wrc
9743fi
9744
43d99b6d 9745if test "$wants_win32" = 1 ; then
17234b26
MB
9746 USE_UNIX=0
9747 USE_WIN32=1
e6cc62c6 9748 cat >>confdefs.h <<\_ACEOF
17234b26 9749#define __WIN32__ 1
e6cc62c6 9750_ACEOF
17234b26 9751
e6cc62c6 9752 cat >>confdefs.h <<\_ACEOF
17234b26 9753#define __WIN95__ 1
e6cc62c6 9754_ACEOF
17234b26 9755
e6cc62c6 9756 cat >>confdefs.h <<\_ACEOF
17234b26 9757#define __WINDOWS__ 1
e6cc62c6 9758_ACEOF
17234b26 9759
e6cc62c6 9760 cat >>confdefs.h <<\_ACEOF
17234b26 9761#define __GNUWIN32__ 1
e6cc62c6 9762_ACEOF
17234b26 9763
e6cc62c6 9764 cat >>confdefs.h <<\_ACEOF
17234b26 9765#define STRICT 1
e6cc62c6 9766_ACEOF
17234b26 9767
e6cc62c6 9768 cat >>confdefs.h <<\_ACEOF
17234b26 9769#define WINVER 0x0400
e6cc62c6 9770_ACEOF
17234b26 9771
43d99b6d
VS
9772fi
9773if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9774 USE_UNIX=1
9775 USE_WIN32=0
9776fi
9777
9778if test "$USE_UNIX" = 1 ; then
9779 wxUSE_UNIX=yes
e6cc62c6 9780 cat >>confdefs.h <<\_ACEOF
17234b26 9781#define __UNIX__ 1
e6cc62c6 9782_ACEOF
17234b26
MB
9783
9784fi
9785
8284b0c5 9786
e6cc62c6 9787cat >confcache <<\_ACEOF
10f2d63a
VZ
9788# This file is a shell script that caches the results of configure
9789# tests run on this system so they can be shared between configure
e6cc62c6
VS
9790# scripts and configure runs, see configure's option --config-cache.
9791# It is not useful on other systems. If it contains results you don't
9792# want to keep, you may remove or edit it.
10f2d63a 9793#
e6cc62c6
VS
9794# config.status only pays attention to the cache file if you give it
9795# the --recheck option to rerun configure.
10f2d63a 9796#
e6cc62c6
VS
9797# `ac_cv_env_foo' variables (set or unset) will be overridden when
9798# loading this file, other *unset* `ac_cv_foo' will be assigned the
9799# following values.
9800
9801_ACEOF
9802
10f2d63a
VZ
9803# The following way of writing the cache mishandles newlines in values,
9804# but we know of no workaround that is simple, portable, and efficient.
9805# So, don't put newlines in cache variables' values.
9806# Ultrix sh set writes to stderr and can't be redirected directly,
9807# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9808{
9809 (set) 2>&1 |
9810 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9811 *ac_space=\ *)
9812 # `set' does not quote correctly, so add quotes (double-quote
9813 # substitution turns \\\\ into \\, and sed turns \\ into \).
9814 sed -n \
9815 "s/'/'\\\\''/g;
9816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9817 ;;
9818 *)
9819 # `set' quotes correctly as required by POSIX, so do not add quotes.
9820 sed -n \
9821 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9822 ;;
9823 esac;
9824} |
9825 sed '
9826 t clear
9827 : clear
9828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9829 t end
9830 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9831 : end' >>confcache
9832if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9833 if test -w $cache_file; then
e6cc62c6
VS
9834 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9835 cat confcache >$cache_file
10f2d63a
VZ
9836 else
9837 echo "not updating unwritable cache $cache_file"
9838 fi
9839fi
9840rm -f confcache
9841
e59890c3 9842if test "$build" != "$host" ; then
9d353d4a 9843 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9844 CC=$host_alias-gcc
9845 CXX=$host_alias-c++
9846 AR=$host_alias-ar
9847 RANLIB=$host_alias-ranlib
9848 DLLTOOL=$host_alias-dlltool
9849 RESCOMP=$host_alias-windres
9850 LD=$host_alias-ld
9851 NM=$host_alias-nm
9852 STRIP=$host_alias-strip
9853 else
e6cc62c6
VS
9854 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9855echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9856 { (exit 1); exit 1; }; }
3a922bb4 9857 fi
10f2d63a
VZ
9858fi
9859
ec603395 9860CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9861ac_ext=c
9862ac_cpp='$CPP $CPPFLAGS'
9863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9865ac_compiler_gnu=$ac_cv_c_compiler_gnu
9866if test -n "$ac_tool_prefix"; then
9867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9868set dummy ${ac_tool_prefix}gcc; ac_word=$2
9869echo "$as_me:$LINENO: checking for $ac_word" >&5
9870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9871if test "${ac_cv_prog_CC+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873else
9874 if test -n "$CC"; then
9875 ac_cv_prog_CC="$CC" # Let the user override the test.
9876else
9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9887 fi
9888done
9889done
9890
9891fi
9892fi
9893CC=$ac_cv_prog_CC
9894if test -n "$CC"; then
9895 echo "$as_me:$LINENO: result: $CC" >&5
9896echo "${ECHO_T}$CC" >&6
9897else
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
9900fi
9901
9902fi
9903if test -z "$ac_cv_prog_CC"; then
9904 ac_ct_CC=$CC
9905 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9906set dummy gcc; ac_word=$2
e6cc62c6
VS
9907echo "$as_me:$LINENO: checking for $ac_word" >&5
9908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912 if test -n "$ac_ct_CC"; then
9913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9914else
9915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $PATH
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_prog_ac_ct_CC="gcc"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
9929fi
9930fi
9931ac_ct_CC=$ac_cv_prog_ac_ct_CC
9932if test -n "$ac_ct_CC"; then
9933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9934echo "${ECHO_T}$ac_ct_CC" >&6
9935else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938fi
9939
9940 CC=$ac_ct_CC
9941else
9942 CC="$ac_cv_prog_CC"
9943fi
9944
9945if test -z "$CC"; then
9946 if test -n "$ac_tool_prefix"; then
9947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9948set dummy ${ac_tool_prefix}cc; ac_word=$2
9949echo "$as_me:$LINENO: checking for $ac_word" >&5
9950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9951if test "${ac_cv_prog_CC+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9953else
9954 if test -n "$CC"; then
9955 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9956else
e6cc62c6
VS
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_CC="${ac_tool_prefix}cc"
9965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969done
9970
10f2d63a 9971fi
6232543b 9972fi
e6cc62c6 9973CC=$ac_cv_prog_CC
6232543b 9974if test -n "$CC"; then
e6cc62c6
VS
9975 echo "$as_me:$LINENO: result: $CC" >&5
9976echo "${ECHO_T}$CC" >&6
9977else
9978 echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
9980fi
9981
9982fi
9983if test -z "$ac_cv_prog_CC"; then
9984 ac_ct_CC=$CC
9985 # Extract the first word of "cc", so it can be a program name with args.
9986set dummy cc; ac_word=$2
9987echo "$as_me:$LINENO: checking for $ac_word" >&5
9988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992 if test -n "$ac_ct_CC"; then
9993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9994else
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 ac_cv_prog_ac_ct_CC="cc"
10003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006done
10007done
10008
10009fi
10010fi
10011ac_ct_CC=$ac_cv_prog_ac_ct_CC
10012if test -n "$ac_ct_CC"; then
10013 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10014echo "${ECHO_T}$ac_ct_CC" >&6
10015else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018fi
10019
10020 CC=$ac_ct_CC
247f5006 10021else
e6cc62c6 10022 CC="$ac_cv_prog_CC"
247f5006
VZ
10023fi
10024
e6cc62c6 10025fi
5c6fa7d2
RR
10026if test -z "$CC"; then
10027 # Extract the first word of "cc", so it can be a program name with args.
10028set dummy cc; ac_word=$2
e6cc62c6
VS
10029echo "$as_me:$LINENO: checking for $ac_word" >&5
10030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10031if test "${ac_cv_prog_CC+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10033else
10034 if test -n "$CC"; then
10035 ac_cv_prog_CC="$CC" # Let the user override the test.
10036else
10037 ac_prog_rejected=no
e6cc62c6
VS
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10046 ac_prog_rejected=yes
10047 continue
10048 fi
10049 ac_cv_prog_CC="cc"
10050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10052 fi
10053done
10054done
10055
328a083c
RR
10056if test $ac_prog_rejected = yes; then
10057 # We found a bogon in the path, so make sure we never use it.
10058 set dummy $ac_cv_prog_CC
10059 shift
e6cc62c6 10060 if test $# != 0; then
328a083c 10061 # We chose a different compiler from the bogus one.
1e487827
VS
10062 # However, it has the same basename, so the bogon will be chosen
10063 # first if we set CC to just the basename; use the full file name.
10064 shift
e6cc62c6 10065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10066 fi
1e487827
VS
10067fi
10068fi
10069fi
e6cc62c6 10070CC=$ac_cv_prog_CC
1e487827 10071if test -n "$CC"; then
e6cc62c6
VS
10072 echo "$as_me:$LINENO: result: $CC" >&5
10073echo "${ECHO_T}$CC" >&6
703e0a69 10074else
e6cc62c6
VS
10075 echo "$as_me:$LINENO: result: no" >&5
10076echo "${ECHO_T}no" >&6
703e0a69 10077fi
1e487827 10078
e6cc62c6
VS
10079fi
10080if test -z "$CC"; then
10081 if test -n "$ac_tool_prefix"; then
10082 for ac_prog in cl
10083 do
10084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10085set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10086echo "$as_me:$LINENO: checking for $ac_word" >&5
10087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10088if test "${ac_cv_prog_CC+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10090else
10091 if test -n "$CC"; then
10092 ac_cv_prog_CC="$CC" # Let the user override the test.
10093else
e6cc62c6
VS
10094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095for as_dir in $PATH
10096do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105done
10106done
10107
f09359cf
VS
10108fi
10109fi
e6cc62c6 10110CC=$ac_cv_prog_CC
f09359cf 10111if test -n "$CC"; then
e6cc62c6
VS
10112 echo "$as_me:$LINENO: result: $CC" >&5
10113echo "${ECHO_T}$CC" >&6
f09359cf 10114else
e6cc62c6
VS
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
5c6fa7d2 10117fi
1e487827 10118
e6cc62c6
VS
10119 test -n "$CC" && break
10120 done
10121fi
10122if test -z "$CC"; then
10123 ac_ct_CC=$CC
10124 for ac_prog in cl
10125do
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127set dummy $ac_prog; ac_word=$2
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 if test -n "$ac_ct_CC"; then
10134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_ac_ct_CC="$ac_prog"
10144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147done
10148done
f09359cf 10149
e6cc62c6
VS
10150fi
10151fi
10152ac_ct_CC=$ac_cv_prog_ac_ct_CC
10153if test -n "$ac_ct_CC"; then
10154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10155echo "${ECHO_T}$ac_ct_CC" >&6
10156else
10157 echo "$as_me:$LINENO: result: no" >&5
10158echo "${ECHO_T}no" >&6
10159fi
f09359cf 10160
e6cc62c6
VS
10161 test -n "$ac_ct_CC" && break
10162done
247f5006 10163
e6cc62c6
VS
10164 CC=$ac_ct_CC
10165fi
10166
10167fi
10168
10169
10170test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10171See \`config.log' for more details." >&5
10172echo "$as_me: error: no acceptable C compiler found in \$PATH
10173See \`config.log' for more details." >&2;}
10174 { (exit 1); exit 1; }; }
10175
10176# Provide some information about the compiler.
10177echo "$as_me:$LINENO:" \
10178 "checking for C compiler version" >&5
10179ac_compiler=`set X $ac_compile; echo $2`
10180{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10181 (eval $ac_compiler --version </dev/null >&5) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }
10185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10186 (eval $ac_compiler -v </dev/null >&5) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }
10190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10191 (eval $ac_compiler -V </dev/null >&5) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }
10195
10196cat >conftest.$ac_ext <<_ACEOF
10197#line $LINENO "configure"
10198/* confdefs.h. */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h. */
10203
10204int
10205main ()
10206{
247f5006 10207
e6cc62c6
VS
10208 ;
10209 return 0;
10210}
10211_ACEOF
10212ac_clean_files_save=$ac_clean_files
10213ac_clean_files="$ac_clean_files a.out a.exe b.out"
10214# Try to create an executable without -o first, disregard a.out.
10215# It will help us diagnose broken compilers, and finding out an intuition
10216# of exeext.
10217echo "$as_me:$LINENO: checking for C compiler default output" >&5
10218echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10219ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10220if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10221 (eval $ac_link_default) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; then
10225 # Find the output, starting from the most likely. This scheme is
10226# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10227# resort.
10228
10229# Be careful to initialize this variable, since it used to be cached.
10230# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10231ac_cv_exeext=
10232# b.out is created by i960 compilers.
10233for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10234do
10235 test -f "$ac_file" || continue
10236 case $ac_file in
10237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10238 ;;
10239 conftest.$ac_ext )
10240 # This is the source file.
10241 ;;
10242 [ab].out )
10243 # We found the default executable, but exeext='' is most
10244 # certainly right.
10245 break;;
10246 *.* )
10247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10248 # FIXME: I believe we export ac_cv_exeext for Libtool,
10249 # but it would be cool to find out if it's true. Does anybody
10250 # maintain Libtool? --akim.
10251 export ac_cv_exeext
10252 break;;
10253 * )
10254 break;;
10255 esac
10256done
10257else
10258 echo "$as_me: failed program was:" >&5
10259sed 's/^/| /' conftest.$ac_ext >&5
10260
10261{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10262See \`config.log' for more details." >&5
10263echo "$as_me: error: C compiler cannot create executables
10264See \`config.log' for more details." >&2;}
10265 { (exit 77); exit 77; }; }
10266fi
10267
10268ac_exeext=$ac_cv_exeext
10269echo "$as_me:$LINENO: result: $ac_file" >&5
10270echo "${ECHO_T}$ac_file" >&6
10271
10272# Check the compiler produces executables we can run. If not, either
10273# the compiler is broken, or we cross compile.
10274echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10275echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10276# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10277# If not cross compiling, check that we can run a simple program.
10278if test "$cross_compiling" != yes; then
10279 if { ac_try='./$ac_file'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 cross_compiling=no
698dcdb6 10286 else
e6cc62c6
VS
10287 if test "$cross_compiling" = maybe; then
10288 cross_compiling=yes
10289 else
10290 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10291If you meant to cross compile, use \`--host'.
10292See \`config.log' for more details." >&5
10293echo "$as_me: error: cannot run C compiled programs.
10294If you meant to cross compile, use \`--host'.
10295See \`config.log' for more details." >&2;}
10296 { (exit 1); exit 1; }; }
10297 fi
698dcdb6 10298 fi
52127426 10299fi
e6cc62c6
VS
10300echo "$as_me:$LINENO: result: yes" >&5
10301echo "${ECHO_T}yes" >&6
10302
10303rm -f a.out a.exe conftest$ac_cv_exeext b.out
10304ac_clean_files=$ac_clean_files_save
10305# Check the compiler produces executables we can run. If not, either
10306# the compiler is broken, or we cross compile.
10307echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10308echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10309echo "$as_me:$LINENO: result: $cross_compiling" >&5
10310echo "${ECHO_T}$cross_compiling" >&6
10311
10312echo "$as_me:$LINENO: checking for suffix of executables" >&5
10313echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; then
10319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10321# work properly (i.e., refer to `conftest.exe'), while it won't with
10322# `rm'.
10323for ac_file in conftest.exe conftest conftest.*; do
10324 test -f "$ac_file" || continue
10325 case $ac_file in
10326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10328 export ac_cv_exeext
10329 break;;
10330 * ) break;;
10331 esac
10332done
5c6fa7d2 10333else
e6cc62c6
VS
10334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10335See \`config.log' for more details." >&5
10336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10337See \`config.log' for more details." >&2;}
10338 { (exit 1); exit 1; }; }
10339fi
10340
10341rm -f conftest$ac_cv_exeext
10342echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10343echo "${ECHO_T}$ac_cv_exeext" >&6
10344
10345rm -f conftest.$ac_ext
10346EXEEXT=$ac_cv_exeext
10347ac_exeext=$EXEEXT
10348echo "$as_me:$LINENO: checking for suffix of object files" >&5
10349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10350if test "${ac_cv_objext+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 cat >conftest.$ac_ext <<_ACEOF
10354#line $LINENO "configure"
10355/* confdefs.h. */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h. */
10360
10361int
10362main ()
10363{
f09359cf 10364
e6cc62c6
VS
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.o conftest.obj
10370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10371 (eval $ac_compile) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; then
10375 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10376 case $ac_file in
10377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10379 break;;
10380 esac
10381done
a0b9e27f 10382else
e6cc62c6
VS
10383 echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10387See \`config.log' for more details." >&5
10388echo "$as_me: error: cannot compute suffix of object files: cannot compile
10389See \`config.log' for more details." >&2;}
10390 { (exit 1); exit 1; }; }
a0b9e27f 10391fi
247f5006 10392
e6cc62c6
VS
10393rm -f conftest.$ac_cv_objext conftest.$ac_ext
10394fi
10395echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10396echo "${ECHO_T}$ac_cv_objext" >&6
10397OBJEXT=$ac_cv_objext
10398ac_objext=$OBJEXT
10399echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10400echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10401if test "${ac_cv_c_compiler_gnu+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10403else
e6cc62c6
VS
10404 cat >conftest.$ac_ext <<_ACEOF
10405#line $LINENO "configure"
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411
10412int
10413main ()
10414{
10415#ifndef __GNUC__
10416 choke me
10417#endif
10418
10419 ;
10420 return 0;
10421}
10422_ACEOF
10423rm -f conftest.$ac_objext
10424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_compiler_gnu=yes
10436else
10437 echo "$as_me: failed program was:" >&5
10438sed 's/^/| /' conftest.$ac_ext >&5
10439
10440ac_compiler_gnu=no
10441fi
10442rm -f conftest.$ac_objext conftest.$ac_ext
10443ac_cv_c_compiler_gnu=$ac_compiler_gnu
10444
10445fi
10446echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10447echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10448GCC=`test $ac_compiler_gnu = yes && echo yes`
10449ac_test_CFLAGS=${CFLAGS+set}
10450ac_save_CFLAGS=$CFLAGS
10451CFLAGS="-g"
10452echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10453echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10454if test "${ac_cv_prog_cc_g+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456else
10457 cat >conftest.$ac_ext <<_ACEOF
10458#line $LINENO "configure"
10459/* confdefs.h. */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h. */
10464
10465int
10466main ()
10467{
10468
10469 ;
10470 return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext
10474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10f2d63a
VZ
10485 ac_cv_prog_cc_g=yes
10486else
e6cc62c6
VS
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10489
e6cc62c6 10490ac_cv_prog_cc_g=no
10f2d63a 10491fi
e6cc62c6
VS
10492rm -f conftest.$ac_objext conftest.$ac_ext
10493fi
10494echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10495echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10496if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10497 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10498elif test $ac_cv_prog_cc_g = yes; then
10499 if test "$GCC" = yes; then
10f2d63a
VZ
10500 CFLAGS="-g -O2"
10501 else
f09359cf 10502 CFLAGS="-g"
10f2d63a 10503 fi
5c0a20c3 10504else
f09359cf
VS
10505 if test "$GCC" = yes; then
10506 CFLAGS="-O2"
10507 else
10508 CFLAGS=
10509 fi
10f2d63a 10510fi
e6cc62c6
VS
10511echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10512echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10513if test "${ac_cv_prog_cc_stdc+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 ac_cv_prog_cc_stdc=no
10517ac_save_CC=$CC
10518cat >conftest.$ac_ext <<_ACEOF
10519#line $LINENO "configure"
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525#include <stdarg.h>
10526#include <stdio.h>
10527#include <sys/types.h>
10528#include <sys/stat.h>
10529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10530struct buf { int x; };
10531FILE * (*rcsopen) (struct buf *, struct stat *, int);
10532static char *e (p, i)
10533 char **p;
10534 int i;
10535{
10536 return p[i];
10537}
10538static char *f (char * (*g) (char **, int), char **p, ...)
10539{
10540 char *s;
10541 va_list v;
10542 va_start (v,p);
10543 s = g (p, va_arg (v,int));
10544 va_end (v);
10545 return s;
10546}
10547int test (int i, double x);
10548struct s1 {int (*f) (int a);};
10549struct s2 {int (*f) (double a);};
10550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10551int argc;
10552char **argv;
10553int
10554main ()
10555{
10556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10557 ;
10558 return 0;
10559}
10560_ACEOF
10561# Don't try gcc -ansi; that turns off useful extensions and
10562# breaks some systems' header files.
10563# AIX -qlanglvl=ansi
10564# Ultrix and OSF/1 -std1
10565# HP-UX 10.20 and later -Ae
10566# HP-UX older versions -Aa -D_HPUX_SOURCE
10567# SVR4 -Xc -D__EXTENSIONS__
10568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10569do
10570 CC="$ac_save_CC $ac_arg"
10571 rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -s conftest.$ac_objext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_prog_cc_stdc=$ac_arg
10584break
10585else
10586 echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589fi
10590rm -f conftest.$ac_objext
10591done
10592rm -f conftest.$ac_ext conftest.$ac_objext
10593CC=$ac_save_CC
10594
10595fi
10596
10597case "x$ac_cv_prog_cc_stdc" in
10598 x|xno)
10599 echo "$as_me:$LINENO: result: none needed" >&5
10600echo "${ECHO_T}none needed" >&6 ;;
10601 *)
10602 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10603echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10604 CC="$CC $ac_cv_prog_cc_stdc" ;;
10605esac
10606
10607# Some people use a C++ compiler to compile C. Since we use `exit',
10608# in C++ we need to declare it. In case someone uses the same compiler
10609# for both compiling C and C++ we need to have the C++ compiler decide
10610# the declaration of exit, since it's the most demanding environment.
10611cat >conftest.$ac_ext <<_ACEOF
10612#ifndef __cplusplus
10613 choke me
10614#endif
10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 for ac_declaration in \
57e7d4ac
VS
10629 ''\
10630 '#include <stdlib.h>' \
e6cc62c6
VS
10631 'extern "C" void std::exit (int) throw (); using std::exit;' \
10632 'extern "C" void std::exit (int); using std::exit;' \
10633 'extern "C" void exit (int) throw ();' \
10634 'extern "C" void exit (int);' \
10635 'void exit (int);'
10636do
10637 cat >conftest.$ac_ext <<_ACEOF
10638#line $LINENO "configure"
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
7015ef3a 10644#include <stdlib.h>
57e7d4ac 10645$ac_declaration
e6cc62c6
VS
10646int
10647main ()
10648{
10649exit (42);
10650 ;
10651 return 0;
10652}
10653_ACEOF
10654rm -f conftest.$ac_objext
10655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 :
10667else
10668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671continue
10672fi
10673rm -f conftest.$ac_objext conftest.$ac_ext
10674 cat >conftest.$ac_ext <<_ACEOF
10675#line $LINENO "configure"
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681$ac_declaration
10682int
10683main ()
10684{
10685exit (42);
10686 ;
10687 return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext
10691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -s conftest.$ac_objext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 break
10703else
10704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707fi
10708rm -f conftest.$ac_objext conftest.$ac_ext
10709done
10710rm -f conftest*
10711if test -n "$ac_declaration"; then
10712 echo '#ifdef __cplusplus' >>confdefs.h
10713 echo $ac_declaration >>confdefs.h
10714 echo '#endif' >>confdefs.h
10715fi
10716
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721fi
10722rm -f conftest.$ac_objext conftest.$ac_ext
10723ac_ext=c
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10728
10729
e6cc62c6
VS
10730
10731ac_ext=c
10732ac_cpp='$CPP $CPPFLAGS'
10733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10737echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10738# On Suns, sometimes $CPP names a directory.
10739if test -n "$CPP" && test -d "$CPP"; then
10740 CPP=
10741fi
10742if test -z "$CPP"; then
e6cc62c6
VS
10743 if test "${ac_cv_prog_CPP+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 # Double quotes because CPP needs to be expanded
10747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10748 do
10749 ac_preproc_ok=false
10750for ac_c_preproc_warn_flag in '' yes
10751do
10752 # Use a header file that comes with gcc, so configuring glibc
10753 # with a fresh cross-compiler works.
10754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 # <limits.h> exists even on freestanding compilers.
10f2d63a 10756 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10757 # not just through cpp. "Syntax error" is here to catch this case.
10758 cat >conftest.$ac_ext <<_ACEOF
10759#line $LINENO "configure"
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#ifdef __STDC__
10766# include <limits.h>
10767#else
10768# include <assert.h>
10769#endif
10770 Syntax error
10771_ACEOF
10772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } >/dev/null; then
10780 if test -s conftest.err; then
10781 ac_cpp_err=$ac_c_preproc_warn_flag
10782 else
10783 ac_cpp_err=
10784 fi
10f2d63a 10785else
e6cc62c6
VS
10786 ac_cpp_err=yes
10787fi
10788if test -z "$ac_cpp_err"; then
a0b9e27f 10789 :
247f5006 10790else
e6cc62c6
VS
10791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 # Broken: fails on valid input.
10795continue
10796fi
10797rm -f conftest.err conftest.$ac_ext
10798
10799 # OK, works on sane cases. Now check whether non-existent headers
10800 # can be detected and how.
10801 cat >conftest.$ac_ext <<_ACEOF
10802#line $LINENO "configure"
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808#include <ac_nonexistent.h>
10809_ACEOF
10810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10820 else
10821 ac_cpp_err=
10822 fi
10f2d63a 10823else
e6cc62c6 10824 ac_cpp_err=yes
579d8138 10825fi
e6cc62c6
VS
10826if test -z "$ac_cpp_err"; then
10827 # Broken: success on invalid input.
10828continue
10829else
10830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 # Passes both tests.
10834ac_preproc_ok=:
10835break
52127426 10836fi
e6cc62c6
VS
10837rm -f conftest.err conftest.$ac_ext
10838
10839done
10840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10841rm -f conftest.err conftest.$ac_ext
10842if $ac_preproc_ok; then
10843 break
8284b0c5 10844fi
e6cc62c6
VS
10845
10846 done
10847 ac_cv_prog_CPP=$CPP
10848
10849fi
10850 CPP=$ac_cv_prog_CPP
10851else
10852 ac_cv_prog_CPP=$CPP
10853fi
10854echo "$as_me:$LINENO: result: $CPP" >&5
10855echo "${ECHO_T}$CPP" >&6
10856ac_preproc_ok=false
10857for ac_c_preproc_warn_flag in '' yes
10858do
10859 # Use a header file that comes with gcc, so configuring glibc
10860 # with a fresh cross-compiler works.
10861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10862 # <limits.h> exists even on freestanding compilers.
10863 # On the NeXT, cc -E runs the code through the compiler's parser,
10864 # not just through cpp. "Syntax error" is here to catch this case.
10865 cat >conftest.$ac_ext <<_ACEOF
10866#line $LINENO "configure"
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872#ifdef __STDC__
10873# include <limits.h>
10874#else
10875# include <assert.h>
10876#endif
10877 Syntax error
10878_ACEOF
10879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev/null; then
10887 if test -s conftest.err; then
10888 ac_cpp_err=$ac_c_preproc_warn_flag
10889 else
10890 ac_cpp_err=
10891 fi
10892else
10893 ac_cpp_err=yes
10894fi
10895if test -z "$ac_cpp_err"; then
10896 :
10897else
10898 echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 # Broken: fails on valid input.
10902continue
10903fi
10904rm -f conftest.err conftest.$ac_ext
10905
10906 # OK, works on sane cases. Now check whether non-existent headers
10907 # can be detected and how.
10908 cat >conftest.$ac_ext <<_ACEOF
10909#line $LINENO "configure"
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
10915#include <ac_nonexistent.h>
10916_ACEOF
10917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } >/dev/null; then
10925 if test -s conftest.err; then
10926 ac_cpp_err=$ac_c_preproc_warn_flag
10927 else
10928 ac_cpp_err=
10929 fi
10930else
10931 ac_cpp_err=yes
10932fi
10933if test -z "$ac_cpp_err"; then
10934 # Broken: success on invalid input.
10935continue
10936else
10937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 # Passes both tests.
10941ac_preproc_ok=:
10942break
a0b9e27f 10943fi
e6cc62c6
VS
10944rm -f conftest.err conftest.$ac_ext
10945
10946done
10947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10948rm -f conftest.err conftest.$ac_ext
10949if $ac_preproc_ok; then
10950 :
10951else
10952 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10953See \`config.log' for more details." >&5
10954echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10955See \`config.log' for more details." >&2;}
10956 { (exit 1); exit 1; }; }
10957fi
10958
10959ac_ext=c
10960ac_cpp='$CPP $CPPFLAGS'
10961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963ac_compiler_gnu=$ac_cv_c_compiler_gnu
10964
10965
10966echo "$as_me:$LINENO: checking for egrep" >&5
10967echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10968if test "${ac_cv_prog_egrep+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10970else
e6cc62c6
VS
10971 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10972 then ac_cv_prog_egrep='grep -E'
10973 else ac_cv_prog_egrep='egrep'
10974 fi
10f2d63a 10975fi
e6cc62c6
VS
10976echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10977echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10978 EGREP=$ac_cv_prog_egrep
10979
10f2d63a 10980
e6cc62c6
VS
10981if test $ac_cv_c_compiler_gnu = yes; then
10982 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10983echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10984if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10986else
10987 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10988 cat >conftest.$ac_ext <<_ACEOF
10989#line $LINENO "configure"
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h. */
10f2d63a
VZ
10995#include <sgtty.h>
10996Autoconf TIOCGETP
e6cc62c6 10997_ACEOF
10f2d63a 10998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10999 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11000 ac_cv_prog_gcc_traditional=yes
11001else
10f2d63a
VZ
11002 ac_cv_prog_gcc_traditional=no
11003fi
11004rm -f conftest*
11005
8284b0c5 11006
10f2d63a 11007 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
11008 cat >conftest.$ac_ext <<_ACEOF
11009#line $LINENO "configure"
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
10f2d63a
VZ
11015#include <termio.h>
11016Autoconf TCGETA
e6cc62c6 11017_ACEOF
10f2d63a 11018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11020 ac_cv_prog_gcc_traditional=yes
11021fi
11022rm -f conftest*
11023
11024 fi
11025fi
e6cc62c6
VS
11026echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11027echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11028 if test $ac_cv_prog_gcc_traditional = yes; then
11029 CC="$CC -traditional"
11030 fi
11031fi
11032
8284b0c5
MB
11033
11034
e6cc62c6
VS
11035
11036ac_ext=cc
1e487827 11037ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11041
698dcdb6 11042
ec603395 11043CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11044ac_ext=cc
11045ac_cpp='$CXXCPP $CPPFLAGS'
11046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11049if test -n "$ac_tool_prefix"; then
11050 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11051 do
11052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11053set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11054echo "$as_me:$LINENO: checking for $ac_word" >&5
11055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11056if test "${ac_cv_prog_CXX+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11058else
11059 if test -n "$CXX"; then
11060 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11061else
e6cc62c6
VS
11062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11072 fi
11073done
11074done
11075
10f2d63a
VZ
11076fi
11077fi
e6cc62c6 11078CXX=$ac_cv_prog_CXX
10f2d63a 11079if test -n "$CXX"; then
e6cc62c6
VS
11080 echo "$as_me:$LINENO: result: $CXX" >&5
11081echo "${ECHO_T}$CXX" >&6
10f2d63a 11082else
e6cc62c6
VS
11083 echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
10f2d63a
VZ
11085fi
11086
e6cc62c6
VS
11087 test -n "$CXX" && break
11088 done
11089fi
11090if test -z "$CXX"; then
11091 ac_ct_CXX=$CXX
11092 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11093do
11094 # Extract the first word of "$ac_prog", so it can be a program name with args.
11095set dummy $ac_prog; ac_word=$2
11096echo "$as_me:$LINENO: checking for $ac_word" >&5
11097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11098if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 if test -n "$ac_ct_CXX"; then
11102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111 ac_cv_prog_ac_ct_CXX="$ac_prog"
11112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115done
10f2d63a 11116done
a0b9e27f 11117
8284b0c5 11118fi
a0b9e27f 11119fi
e6cc62c6
VS
11120ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11121if test -n "$ac_ct_CXX"; then
11122 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11123echo "${ECHO_T}$ac_ct_CXX" >&6
11124else
11125 echo "$as_me:$LINENO: result: no" >&5
11126echo "${ECHO_T}no" >&6
a0b9e27f 11127fi
10f2d63a 11128
e6cc62c6
VS
11129 test -n "$ac_ct_CXX" && break
11130done
11131test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11132
11133 CXX=$ac_ct_CXX
11134fi
11135
11136
11137# Provide some information about the compiler.
11138echo "$as_me:$LINENO:" \
11139 "checking for C++ compiler version" >&5
11140ac_compiler=`set X $ac_compile; echo $2`
11141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11142 (eval $ac_compiler --version </dev/null >&5) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }
11146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11147 (eval $ac_compiler -v </dev/null >&5) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }
11151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11152 (eval $ac_compiler -V </dev/null >&5) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }
11156
11157echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11158echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11159if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 cat >conftest.$ac_ext <<_ACEOF
11163#line $LINENO "configure"
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
11169
11170int
11171main ()
11172{
11173#ifndef __GNUC__
11174 choke me
11175#endif
10f2d63a 11176
e6cc62c6
VS
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181rm -f conftest.$ac_objext
11182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 ac_compiler_gnu=yes
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198ac_compiler_gnu=no
11199fi
11200rm -f conftest.$ac_objext conftest.$ac_ext
11201ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11202
11203fi
11204echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11205echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11206GXX=`test $ac_compiler_gnu = yes && echo yes`
11207ac_test_CXXFLAGS=${CXXFLAGS+set}
11208ac_save_CXXFLAGS=$CXXFLAGS
11209CXXFLAGS="-g"
11210echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11211echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11212if test "${ac_cv_prog_cxx_g+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 cat >conftest.$ac_ext <<_ACEOF
11216#line $LINENO "configure"
11217/* confdefs.h. */
11218_ACEOF
11219cat confdefs.h >>conftest.$ac_ext
11220cat >>conftest.$ac_ext <<_ACEOF
11221/* end confdefs.h. */
11222
11223int
11224main ()
11225{
f09359cf 11226
e6cc62c6
VS
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext
11232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
10f2d63a
VZ
11243 ac_cv_prog_cxx_g=yes
11244else
e6cc62c6
VS
11245 echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11247
e6cc62c6 11248ac_cv_prog_cxx_g=no
10f2d63a 11249fi
e6cc62c6
VS
11250rm -f conftest.$ac_objext conftest.$ac_ext
11251fi
11252echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11253echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11254if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11255 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11256elif test $ac_cv_prog_cxx_g = yes; then
11257 if test "$GXX" = yes; then
10f2d63a
VZ
11258 CXXFLAGS="-g -O2"
11259 else
f09359cf 11260 CXXFLAGS="-g"
10f2d63a 11261 fi
5c0a20c3 11262else
f09359cf
VS
11263 if test "$GXX" = yes; then
11264 CXXFLAGS="-O2"
11265 else
11266 CXXFLAGS=
11267 fi
10f2d63a 11268fi
e6cc62c6 11269for ac_declaration in \
57e7d4ac
VS
11270 ''\
11271 '#include <stdlib.h>' \
e6cc62c6
VS
11272 'extern "C" void std::exit (int) throw (); using std::exit;' \
11273 'extern "C" void std::exit (int); using std::exit;' \
11274 'extern "C" void exit (int) throw ();' \
11275 'extern "C" void exit (int);' \
11276 'void exit (int);'
11277do
11278 cat >conftest.$ac_ext <<_ACEOF
11279#line $LINENO "configure"
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
7015ef3a 11285#include <stdlib.h>
57e7d4ac 11286$ac_declaration
e6cc62c6
VS
11287int
11288main ()
11289{
11290exit (42);
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try='test -s conftest.$ac_objext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 :
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312continue
11313fi
11314rm -f conftest.$ac_objext conftest.$ac_ext
11315 cat >conftest.$ac_ext <<_ACEOF
11316#line $LINENO "configure"
11317/* confdefs.h. */
11318_ACEOF
11319cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h. */
11322$ac_declaration
11323int
11324main ()
11325{
11326exit (42);
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext
11332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest.$ac_objext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 break
11344else
11345 echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348fi
11349rm -f conftest.$ac_objext conftest.$ac_ext
11350done
11351rm -f conftest*
11352if test -n "$ac_declaration"; then
11353 echo '#ifdef __cplusplus' >>confdefs.h
11354 echo $ac_declaration >>confdefs.h
11355 echo '#endif' >>confdefs.h
11356fi
11357
11358ac_ext=cc
11359ac_cpp='$CXXCPP $CPPFLAGS'
11360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11363
11364
10f2d63a 11365ac_ext=c
10f2d63a 11366ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11369ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11370
11371
e6cc62c6
VS
11372if test -n "$ac_tool_prefix"; then
11373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11375echo "$as_me:$LINENO: checking for $ac_word" >&5
11376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377if test "${ac_cv_prog_RANLIB+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11379else
11380 if test -n "$RANLIB"; then
11381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11382else
e6cc62c6
VS
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395done
11396
10f2d63a
VZ
11397fi
11398fi
e6cc62c6 11399RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11400if test -n "$RANLIB"; then
e6cc62c6
VS
11401 echo "$as_me:$LINENO: result: $RANLIB" >&5
11402echo "${ECHO_T}$RANLIB" >&6
11403else
11404 echo "$as_me:$LINENO: result: no" >&5
11405echo "${ECHO_T}no" >&6
11406fi
11407
11408fi
11409if test -z "$ac_cv_prog_RANLIB"; then
11410 ac_ct_RANLIB=$RANLIB
11411 # Extract the first word of "ranlib", so it can be a program name with args.
11412set dummy ranlib; ac_word=$2
11413echo "$as_me:$LINENO: checking for $ac_word" >&5
11414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11415if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11417else
e6cc62c6
VS
11418 if test -n "$ac_ct_RANLIB"; then
11419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11420else
11421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11422for as_dir in $PATH
11423do
11424 IFS=$as_save_IFS
11425 test -z "$as_dir" && as_dir=.
11426 for ac_exec_ext in '' $ac_executable_extensions; do
11427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11428 ac_cv_prog_ac_ct_RANLIB="ranlib"
11429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 break 2
11431 fi
11432done
11433done
11434
11435 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11436fi
11437fi
11438ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11439if test -n "$ac_ct_RANLIB"; then
11440 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11441echo "${ECHO_T}$ac_ct_RANLIB" >&6
11442else
11443 echo "$as_me:$LINENO: result: no" >&5
11444echo "${ECHO_T}no" >&6
11445fi
11446
11447 RANLIB=$ac_ct_RANLIB
11448else
11449 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11450fi
11451
10f2d63a
VZ
11452
11453# Extract the first word of "ar", so it can be a program name with args.
11454set dummy ar; ac_word=$2
e6cc62c6
VS
11455echo "$as_me:$LINENO: checking for $ac_word" >&5
11456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11457if test "${ac_cv_prog_AR+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11459else
11460 if test -n "$AR"; then
11461 ac_cv_prog_AR="$AR" # Let the user override the test.
11462else
e6cc62c6
VS
11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464for as_dir in $PATH
11465do
11466 IFS=$as_save_IFS
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_AR="ar"
11471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 break 2
11473 fi
11474done
11475done
11476
10f2d63a
VZ
11477fi
11478fi
e6cc62c6 11479AR=$ac_cv_prog_AR
10f2d63a 11480if test -n "$AR"; then
e6cc62c6
VS
11481 echo "$as_me:$LINENO: result: $AR" >&5
11482echo "${ECHO_T}$AR" >&6
10f2d63a 11483else
e6cc62c6
VS
11484 echo "$as_me:$LINENO: result: no" >&5
11485echo "${ECHO_T}no" >&6
10f2d63a
VZ
11486fi
11487
911740e7
VS
11488if test "x$AR" = "x" ; then
11489 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11490echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11491 { (exit 1); exit 1; }; }
11492fi
8284b0c5 11493
6054113a 11494# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11495# so one script is as good as another. But avoid the broken or
11496# incompatible versions:
11497# SysV /etc/install, /usr/sbin/install
11498# SunOS /usr/etc/install
11499# IRIX /sbin/install
11500# AIX /bin/install
e6cc62c6 11501# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11505# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11508if test -z "$INSTALL"; then
e6cc62c6
VS
11509if test "${ac_cv_path_install+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
11517 # Account for people who put trailing slashes in PATH elements.
11518case $as_dir/ in
11519 ./ | .// | /cC/* | \
11520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11521 /usr/ucb/* ) ;;
11522 *)
11523 # OSF1 and SCO ODT 3.0 have their own names for install.
11524 # Don't use installbsd from OSF since it installs stuff as root
11525 # by default.
11526 for ac_prog in ginstall scoinst install; do
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11529 if test $ac_prog = install &&
11530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11531 # AIX install. It has an incompatible calling convention.
11532 :
11533 elif test $ac_prog = install &&
11534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11535 # program-specific install script used by HP pwplus--don't use.
11536 :
11537 else
11538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11539 break 3
11540 fi
11541 fi
10f2d63a 11542 done
e6cc62c6
VS
11543 done
11544 ;;
11545esac
11546done
11547
10f2d63a
VZ
11548
11549fi
11550 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11551 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11552 else
11553 # As a last resort, use the slow shell script. We don't cache a
11554 # path for INSTALL within a source directory, because that will
11555 # break other packages using the cache if that directory is
11556 # removed, or if the path is relative.
e6cc62c6 11557 INSTALL=$ac_install_sh
10f2d63a
VZ
11558 fi
11559fi
e6cc62c6
VS
11560echo "$as_me:$LINENO: result: $INSTALL" >&5
11561echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11562
11563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11564# It thinks the first close brace ends the variable substitution.
11565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11566
e6cc62c6 11567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11568
10f2d63a
VZ
11569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11570
8284b0c5 11571
1d1b75ac
VZ
11572case ${INSTALL} in
11573 /* ) # Absolute
11574 ;;
4f5a7f74
VZ
11575 ?:* ) # Drive letter, considered as absolute.
11576 ;;
3bd8fb5f 11577 *)
1d1b75ac
VZ
11578 INSTALL=`pwd`/${INSTALL} ;;
11579esac
11580
4f5a7f74
VZ
11581case ${host} in
11582 *-hp-hpux* )
11583 INSTALL_DIR="mkdir"
11584 ;;
11585
11586 *) INSTALL_DIR="$INSTALL -d"
11587 ;;
11588esac
11589
8284b0c5 11590
6054113a
GD
11591case "${host}" in
11592
b5853384 11593 powerpc-*-darwin* )
eb99ae0b
GD
11594 INSTALL_PROGRAM="cp -fp"
11595 INSTALL_DATA="cp -fp"
6054113a
GD
11596 ;;
11597 *)
11598 ;;
d6853540 11599esac
698dcdb6 11600
10f2d63a
VZ
11601# Extract the first word of "strip", so it can be a program name with args.
11602set dummy strip; ac_word=$2
e6cc62c6
VS
11603echo "$as_me:$LINENO: checking for $ac_word" >&5
11604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11605if test "${ac_cv_prog_STRIP+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11607else
11608 if test -n "$STRIP"; then
11609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11610else
e6cc62c6
VS
11611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612for as_dir in $PATH
11613do
11614 IFS=$as_save_IFS
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11618 ac_cv_prog_STRIP="strip"
11619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 break 2
11621 fi
11622done
11623done
11624
10f2d63a
VZ
11625 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11626fi
11627fi
e6cc62c6 11628STRIP=$ac_cv_prog_STRIP
10f2d63a 11629if test -n "$STRIP"; then
e6cc62c6
VS
11630 echo "$as_me:$LINENO: result: $STRIP" >&5
11631echo "${ECHO_T}$STRIP" >&6
10f2d63a 11632else
e6cc62c6
VS
11633 echo "$as_me:$LINENO: result: no" >&5
11634echo "${ECHO_T}no" >&6
10f2d63a
VZ
11635fi
11636
5c6fa7d2 11637
e6cc62c6
VS
11638echo "$as_me:$LINENO: checking if make is GNU make" >&5
11639echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11640if test "${wx_cv_prog_makeisgnu+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11642else
e6cc62c6 11643
414eab6d 11644 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11645 egrep -s GNU > /dev/null); then
414eab6d
VZ
11646 wx_cv_prog_makeisgnu="yes"
11647 else
11648 wx_cv_prog_makeisgnu="no"
11649 fi
11650
11651fi
e6cc62c6
VS
11652echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11653echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11654
11655if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11656 IF_GNU_MAKE=""
11657else
11658 IF_GNU_MAKE="#"
11659fi
11660
8284b0c5
MB
11661
11662
414eab6d 11663if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11664echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11665echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11666if test "${wx_cv_prog_makevpath+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11668else
e6cc62c6 11669
10f2d63a
VZ
11670cat - << EOF > confMake
11671check : file
11672 cp \$? \$@
11673 cp \$? final_file
11674EOF
11675
11676if test ! -d sub ; then
11677 mkdir sub
11678fi
11679echo dummy > sub/file
f6bcfd97 11680${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11681RESULT=$?
11682rm -f sub/file check final_file confMake
11683rmdir sub
11684if test "$RESULT" = 0; then
04e7a216 11685 wx_cv_prog_makevpath="yes"
10f2d63a 11686else
04e7a216
VZ
11687 wx_cv_prog_makevpath="no"
11688fi
11689
11690fi
e6cc62c6
VS
11691echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11692echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11693
11694if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11695{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11696You need a make-utility that is able to use the variable
11697VPATH correctly.
11698If your version of make does not support VPATH correctly,
11699please install GNU-make (possibly as gmake), and start
11700configure with the following command:
11701export MAKE=gmake; ./configure for sh-type shells
11702setenv MAKE gmake; ./configure for csh-type shells
11703Also please do remember to use gmake in this case every time
11704you are trying to compile.
e6cc62c6
VS
11705" >&5
11706echo "$as_me: error:
11707You need a make-utility that is able to use the variable
11708VPATH correctly.
11709If your version of make does not support VPATH correctly,
11710please install GNU-make (possibly as gmake), and start
11711configure with the following command:
11712export MAKE=gmake; ./configure for sh-type shells
11713setenv MAKE gmake; ./configure for csh-type shells
11714Also please do remember to use gmake in this case every time
11715you are trying to compile.
11716" >&2;}
11717 { (exit 1); exit 1; }; }
11718fi fi
e6cc62c6
VS
11719echo "$as_me:$LINENO: checking whether ln -s works" >&5
11720echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11721LN_S=$as_ln_s
11722if test "$LN_S" = "ln -s"; then
11723 echo "$as_me:$LINENO: result: yes" >&5
11724echo "${ECHO_T}yes" >&6
10f2d63a 11725else
e6cc62c6
VS
11726 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11727echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11728fi
5c6fa7d2 11729
247f5006 11730
2b5f62a0
VZ
11731case "${host}" in
11732 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11733 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11734 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11735echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11736if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11738else
e6cc62c6 11739 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11740LIBS="-lcExt $LIBS"
e6cc62c6
VS
11741cat >conftest.$ac_ext <<_ACEOF
11742#line $LINENO "configure"
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748
2b5f62a0 11749/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11750#ifdef __cplusplus
11751extern "C"
11752#endif
2b5f62a0 11753/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11754 builtin and then its argument prototype would still apply. */
11755char drand48 ();
11756int
11757main ()
11758{
11759drand48 ();
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764rm -f conftest.$ac_objext conftest$ac_exeext
11765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -s conftest$ac_exeext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_cv_lib_cExt_drand48=yes
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
11781ac_cv_lib_cExt_drand48=no
11782fi
11783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11784LIBS=$ac_check_lib_save_LIBS
11785fi
11786echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11787echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11788if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11789 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11790fi
11791
11792 else
11793 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11794 fi
73d617c9
MB
11795 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11796echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11797if test "${wx_cv_gcc3+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799else
11800
11801 cat >conftest.$ac_ext <<_ACEOF
11802#line $LINENO "configure"
11803/* confdefs.h. */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h. */
3527f29c 11808
73d617c9
MB
11809int
11810main ()
11811{
11812
11813 #if (__GNUC__ < 3)
11814 #error old gcc
11815 #endif
11816
11817 ;
11818 return 0;
11819}
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833
11834 wx_cv_gcc3=yes
11835
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840
11841 wx_cv_gcc3=no
11842
11843
11844fi
11845rm -f conftest.$ac_objext conftest.$ac_ext
11846
11847fi
11848echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
11849echo "${ECHO_T}$wx_cv_gcc3" >&6
11850 if test "$wx_cv_gcc3" = "no"; then
11851 LIBS="$LIBS -lstdcpp"
11852 else
11853 LIBS="$LIBS -lstdcxx"
11854 fi
2b5f62a0
VZ
11855 ;;
11856esac
11857
a0b9e27f 11858
01aa5863
VS
11859if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11860 echo "$as_me:$LINENO: checking for strings.h" >&5
11861echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11862if test "${ac_cv_header_strings_h+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865 ac_cv_header_strings_h=no
11866fi
11867echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11868echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11869 if test "$ac_cv_header_strings_h" = "no"; then
11870 echo "$as_me:$LINENO: result: forced no into cache" >&5
11871echo "${ECHO_T}forced no into cache" >&6
11872 else
11873 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11874echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11875 fi
11876fi
11877echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11878echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11879if test "${ac_cv_header_stdc+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 cat >conftest.$ac_ext <<_ACEOF
11883#line $LINENO "configure"
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889#include <stdlib.h>
11890#include <stdarg.h>
11891#include <string.h>
11892#include <float.h>
247f5006 11893
e6cc62c6
VS
11894int
11895main ()
11896{
90dd450c 11897
e6cc62c6
VS
11898 ;
11899 return 0;
11900}
11901_ACEOF
11902rm -f conftest.$ac_objext
11903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try='test -s conftest.$ac_objext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_header_stdc=yes
8284b0c5 11915else
e6cc62c6
VS
11916 echo "$as_me: failed program was:" >&5
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
11919ac_cv_header_stdc=no
21d1c967 11920fi
e6cc62c6 11921rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11922
e6cc62c6
VS
11923if test $ac_cv_header_stdc = yes; then
11924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11925 cat >conftest.$ac_ext <<_ACEOF
11926#line $LINENO "configure"
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932#include <string.h>
11933
11934_ACEOF
11935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11936 $EGREP "memchr" >/dev/null 2>&1; then
11937 :
11938else
11939 ac_cv_header_stdc=no
3a922bb4 11940fi
a0b9e27f 11941rm -f conftest*
e6cc62c6 11942
90dd450c 11943fi
e6cc62c6
VS
11944
11945if test $ac_cv_header_stdc = yes; then
11946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11947 cat >conftest.$ac_ext <<_ACEOF
11948#line $LINENO "configure"
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
11954#include <stdlib.h>
11955
11956_ACEOF
11957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11958 $EGREP "free" >/dev/null 2>&1; then
11959 :
a0b9e27f 11960else
e6cc62c6 11961 ac_cv_header_stdc=no
21d1c967 11962fi
e6cc62c6 11963rm -f conftest*
247f5006
VZ
11964
11965fi
e6cc62c6
VS
11966
11967if test $ac_cv_header_stdc = yes; then
11968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11969 if test "$cross_compiling" = yes; then
11970 :
11971else
11972 cat >conftest.$ac_ext <<_ACEOF
11973#line $LINENO "configure"
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979#include <ctype.h>
11980#if ((' ' & 0x0FF) == 0x020)
11981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11983#else
11984# define ISLOWER(c) \
11985 (('a' <= (c) && (c) <= 'i') \
11986 || ('j' <= (c) && (c) <= 'r') \
11987 || ('s' <= (c) && (c) <= 'z'))
11988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11989#endif
11990
11991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11992int
11993main ()
11994{
11995 int i;
11996 for (i = 0; i < 256; i++)
11997 if (XOR (islower (i), ISLOWER (i))
11998 || toupper (i) != TOUPPER (i))
11999 exit(2);
12000 exit (0);
12001}
12002_ACEOF
12003rm -f conftest$ac_exeext
12004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 :
a0b9e27f 12015else
e6cc62c6
VS
12016 echo "$as_me: program exited with status $ac_status" >&5
12017echo "$as_me: failed program was:" >&5
12018sed 's/^/| /' conftest.$ac_ext >&5
12019
12020( exit $ac_status )
12021ac_cv_header_stdc=no
12022fi
12023rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024fi
12025fi
12026fi
12027echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12028echo "${ECHO_T}$ac_cv_header_stdc" >&6
12029if test $ac_cv_header_stdc = yes; then
12030
12031cat >>confdefs.h <<\_ACEOF
12032#define STDC_HEADERS 1
12033_ACEOF
12034
a0b9e27f 12035fi
e6cc62c6
VS
12036
12037# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12048 inttypes.h stdint.h unistd.h
12049do
12050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051echo "$as_me:$LINENO: checking for $ac_header" >&5
12052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12053if eval "test \"\${$as_ac_Header+set}\" = set"; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055else
12056 cat >conftest.$ac_ext <<_ACEOF
12057#line $LINENO "configure"
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063$ac_includes_default
12064
12065#include <$ac_header>
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 eval "$as_ac_Header=yes"
12080else
12081 echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084eval "$as_ac_Header=no"
12085fi
12086rm -f conftest.$ac_objext conftest.$ac_ext
12087fi
12088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12090if test `eval echo '${'$as_ac_Header'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093_ACEOF
12094
12095fi
12096
a0b9e27f 12097done
90dd450c 12098
e6cc62c6
VS
12099
12100
12101for ac_header in strings.h
21d1c967 12102do
e6cc62c6
VS
12103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105 echo "$as_me:$LINENO: checking for $ac_header" >&5
12106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109fi
12110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12112else
12113 # Is the header compilable?
12114echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12116cat >conftest.$ac_ext <<_ACEOF
12117#line $LINENO "configure"
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123$ac_includes_default
12124#include <$ac_header>
12125_ACEOF
12126rm -f conftest.$ac_objext
12127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12128 (eval $ac_compile) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_header_compiler=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143ac_header_compiler=no
12144fi
12145rm -f conftest.$ac_objext conftest.$ac_ext
12146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12147echo "${ECHO_T}$ac_header_compiler" >&6
12148
12149# Is the header present?
12150echo "$as_me:$LINENO: checking $ac_header presence" >&5
12151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12152cat >conftest.$ac_ext <<_ACEOF
12153#line $LINENO "configure"
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159#include <$ac_header>
12160_ACEOF
12161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 else
12172 ac_cpp_err=
12173 fi
12174else
12175 ac_cpp_err=yes
12176fi
12177if test -z "$ac_cpp_err"; then
12178 ac_header_preproc=yes
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ac_header_preproc=no
12184fi
12185rm -f conftest.err conftest.$ac_ext
12186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187echo "${ECHO_T}$ac_header_preproc" >&6
12188
12189# So? What about this header?
12190case $ac_header_compiler:$ac_header_preproc in
12191 yes:no )
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12196 (
12197 cat <<\_ASBOX
12198## ------------------------------------ ##
12199## Report this to bug-autoconf@gnu.org. ##
12200## ------------------------------------ ##
12201_ASBOX
12202 ) |
12203 sed "s/^/$as_me: WARNING: /" >&2
12204 ;;
12205 no:yes )
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12212 (
12213 cat <<\_ASBOX
12214## ------------------------------------ ##
12215## Report this to bug-autoconf@gnu.org. ##
12216## ------------------------------------ ##
12217_ASBOX
12218 ) |
12219 sed "s/^/$as_me: WARNING: /" >&2
12220 ;;
12221esac
12222echo "$as_me:$LINENO: checking for $ac_header" >&5
12223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12224if eval "test \"\${$as_ac_Header+set}\" = set"; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226else
12227 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12228fi
e6cc62c6
VS
12229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12231
a0b9e27f 12232fi
e6cc62c6
VS
12233if test `eval echo '${'$as_ac_Header'}'` = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12236_ACEOF
12237
12238fi
12239
12240done
12241
e6cc62c6
VS
12242
12243
12244for ac_header in stdlib.h
12245do
12246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12247if eval "test \"\${$as_ac_Header+set}\" = set"; then
12248 echo "$as_me:$LINENO: checking for $ac_header" >&5
12249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12250if eval "test \"\${$as_ac_Header+set}\" = set"; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252fi
12253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12255else
12256 # Is the header compilable?
12257echo "$as_me:$LINENO: checking $ac_header usability" >&5
12258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12259cat >conftest.$ac_ext <<_ACEOF
12260#line $LINENO "configure"
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267#include <$ac_header>
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_header_compiler=yes
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286ac_header_compiler=no
12287fi
12288rm -f conftest.$ac_objext conftest.$ac_ext
12289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12290echo "${ECHO_T}$ac_header_compiler" >&6
12291
12292# Is the header present?
12293echo "$as_me:$LINENO: checking $ac_header presence" >&5
12294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12295cat >conftest.$ac_ext <<_ACEOF
12296#line $LINENO "configure"
12297/* confdefs.h. */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h. */
12302#include <$ac_header>
12303_ACEOF
12304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } >/dev/null; then
12312 if test -s conftest.err; then
12313 ac_cpp_err=$ac_c_preproc_warn_flag
12314 else
12315 ac_cpp_err=
12316 fi
12317else
12318 ac_cpp_err=yes
12319fi
12320if test -z "$ac_cpp_err"; then
12321 ac_header_preproc=yes
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_header_preproc=no
12327fi
12328rm -f conftest.err conftest.$ac_ext
12329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12330echo "${ECHO_T}$ac_header_preproc" >&6
12331
12332# So? What about this header?
12333case $ac_header_compiler:$ac_header_preproc in
12334 yes:no )
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12339 (
12340 cat <<\_ASBOX
12341## ------------------------------------ ##
12342## Report this to bug-autoconf@gnu.org. ##
12343## ------------------------------------ ##
12344_ASBOX
12345 ) |
12346 sed "s/^/$as_me: WARNING: /" >&2
12347 ;;
12348 no:yes )
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12355 (
12356 cat <<\_ASBOX
12357## ------------------------------------ ##
12358## Report this to bug-autoconf@gnu.org. ##
12359## ------------------------------------ ##
12360_ASBOX
12361 ) |
12362 sed "s/^/$as_me: WARNING: /" >&2
12363 ;;
12364esac
12365echo "$as_me:$LINENO: checking for $ac_header" >&5
12366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12367if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12369else
e6cc62c6
VS
12370 eval "$as_ac_Header=$ac_header_preproc"
12371fi
12372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12374
21d1c967 12375fi
e6cc62c6
VS
12376if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12379_ACEOF
12380
12381fi
12382
21d1c967 12383done
4f14bcd8 12384
5c6fa7d2 12385
e6cc62c6 12386for ac_header in malloc.h
21d1c967 12387do
e6cc62c6
VS
12388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390 echo "$as_me:$LINENO: checking for $ac_header" >&5
12391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12392if eval "test \"\${$as_ac_Header+set}\" = set"; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394fi
12395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397else
12398 # Is the header compilable?
12399echo "$as_me:$LINENO: checking $ac_header usability" >&5
12400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12401cat >conftest.$ac_ext <<_ACEOF
12402#line $LINENO "configure"
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408$ac_includes_default
12409#include <$ac_header>
12410_ACEOF
12411rm -f conftest.$ac_objext
12412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_header_compiler=yes
12424else
12425 echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427
12428ac_header_compiler=no
12429fi
12430rm -f conftest.$ac_objext conftest.$ac_ext
12431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12432echo "${ECHO_T}$ac_header_compiler" >&6
12433
12434# Is the header present?
12435echo "$as_me:$LINENO: checking $ac_header presence" >&5
12436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12437cat >conftest.$ac_ext <<_ACEOF
12438#line $LINENO "configure"
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444#include <$ac_header>
12445_ACEOF
12446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } >/dev/null; then
12454 if test -s conftest.err; then
12455 ac_cpp_err=$ac_c_preproc_warn_flag
12456 else
12457 ac_cpp_err=
12458 fi
12459else
12460 ac_cpp_err=yes
12461fi
12462if test -z "$ac_cpp_err"; then
12463 ac_header_preproc=yes
12464else
12465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 ac_header_preproc=no
12469fi
12470rm -f conftest.err conftest.$ac_ext
12471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12472echo "${ECHO_T}$ac_header_preproc" >&6
12473
12474# So? What about this header?
12475case $ac_header_compiler:$ac_header_preproc in
12476 yes:no )
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481 (
12482 cat <<\_ASBOX
12483## ------------------------------------ ##
12484## Report this to bug-autoconf@gnu.org. ##
12485## ------------------------------------ ##
12486_ASBOX
12487 ) |
12488 sed "s/^/$as_me: WARNING: /" >&2
12489 ;;
12490 no:yes )
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12497 (
12498 cat <<\_ASBOX
12499## ------------------------------------ ##
12500## Report this to bug-autoconf@gnu.org. ##
12501## ------------------------------------ ##
12502_ASBOX
12503 ) |
12504 sed "s/^/$as_me: WARNING: /" >&2
12505 ;;
12506esac
12507echo "$as_me:$LINENO: checking for $ac_header" >&5
12508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12509if eval "test \"\${$as_ac_Header+set}\" = set"; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12513fi
e6cc62c6
VS
12514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12516
21d1c967 12517fi
e6cc62c6
VS
12518if test `eval echo '${'$as_ac_Header'}'` = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12521_ACEOF
12522
12523fi
12524
12525done
12526
12527
12528for ac_header in unistd.h
12529do
12530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12531if eval "test \"\${$as_ac_Header+set}\" = set"; then
12532 echo "$as_me:$LINENO: checking for $ac_header" >&5
12533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12534if eval "test \"\${$as_ac_Header+set}\" = set"; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536fi
12537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12539else
12540 # Is the header compilable?
12541echo "$as_me:$LINENO: checking $ac_header usability" >&5
12542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12543cat >conftest.$ac_ext <<_ACEOF
12544#line $LINENO "configure"
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550$ac_includes_default
12551#include <$ac_header>
12552_ACEOF
12553rm -f conftest.$ac_objext
12554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12555 (eval $ac_compile) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_header_compiler=yes
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570ac_header_compiler=no
12571fi
12572rm -f conftest.$ac_objext conftest.$ac_ext
12573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12574echo "${ECHO_T}$ac_header_compiler" >&6
12575
12576# Is the header present?
12577echo "$as_me:$LINENO: checking $ac_header presence" >&5
12578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12579cat >conftest.$ac_ext <<_ACEOF
12580#line $LINENO "configure"
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586#include <$ac_header>
12587_ACEOF
12588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null; then
12596 if test -s conftest.err; then
12597 ac_cpp_err=$ac_c_preproc_warn_flag
12598 else
12599 ac_cpp_err=
12600 fi
a0b9e27f 12601else
e6cc62c6
VS
12602 ac_cpp_err=yes
12603fi
12604if test -z "$ac_cpp_err"; then
12605 ac_header_preproc=yes
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ac_header_preproc=no
12611fi
12612rm -f conftest.err conftest.$ac_ext
12613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12614echo "${ECHO_T}$ac_header_preproc" >&6
12615
12616# So? What about this header?
12617case $ac_header_compiler:$ac_header_preproc in
12618 yes:no )
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12623 (
12624 cat <<\_ASBOX
12625## ------------------------------------ ##
12626## Report this to bug-autoconf@gnu.org. ##
12627## ------------------------------------ ##
12628_ASBOX
12629 ) |
12630 sed "s/^/$as_me: WARNING: /" >&2
12631 ;;
12632 no:yes )
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12639 (
12640 cat <<\_ASBOX
12641## ------------------------------------ ##
12642## Report this to bug-autoconf@gnu.org. ##
12643## ------------------------------------ ##
12644_ASBOX
12645 ) |
12646 sed "s/^/$as_me: WARNING: /" >&2
12647 ;;
12648esac
12649echo "$as_me:$LINENO: checking for $ac_header" >&5
12650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654 eval "$as_ac_Header=$ac_header_preproc"
12655fi
12656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658
12659fi
12660if test `eval echo '${'$as_ac_Header'}'` = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12663_ACEOF
12664
d4158b5d 12665fi
e6cc62c6 12666
21d1c967 12667done
f6bcfd97 12668
e6cc62c6
VS
12669
12670for ac_header in wchar.h
12671do
12672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12673if eval "test \"\${$as_ac_Header+set}\" = set"; then
12674 echo "$as_me:$LINENO: checking for $ac_header" >&5
12675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12676if eval "test \"\${$as_ac_Header+set}\" = set"; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678fi
12679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12681else
12682 # Is the header compilable?
12683echo "$as_me:$LINENO: checking $ac_header usability" >&5
12684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12685cat >conftest.$ac_ext <<_ACEOF
12686#line $LINENO "configure"
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692$ac_includes_default
12693#include <$ac_header>
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -s conftest.$ac_objext'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12707 ac_header_compiler=yes
12708else
12709 echo "$as_me: failed program was:" >&5
12710sed 's/^/| /' conftest.$ac_ext >&5
12711
12712ac_header_compiler=no
12713fi
12714rm -f conftest.$ac_objext conftest.$ac_ext
12715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12716echo "${ECHO_T}$ac_header_compiler" >&6
12717
12718# Is the header present?
12719echo "$as_me:$LINENO: checking $ac_header presence" >&5
12720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12721cat >conftest.$ac_ext <<_ACEOF
12722#line $LINENO "configure"
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728#include <$ac_header>
12729_ACEOF
12730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } >/dev/null; then
12738 if test -s conftest.err; then
12739 ac_cpp_err=$ac_c_preproc_warn_flag
12740 else
12741 ac_cpp_err=
12742 fi
12743else
12744 ac_cpp_err=yes
12745fi
12746if test -z "$ac_cpp_err"; then
12747 ac_header_preproc=yes
12748else
12749 echo "$as_me: failed program was:" >&5
12750sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ac_header_preproc=no
12753fi
12754rm -f conftest.err conftest.$ac_ext
12755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12756echo "${ECHO_T}$ac_header_preproc" >&6
12757
12758# So? What about this header?
12759case $ac_header_compiler:$ac_header_preproc in
12760 yes:no )
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12765 (
12766 cat <<\_ASBOX
12767## ------------------------------------ ##
12768## Report this to bug-autoconf@gnu.org. ##
12769## ------------------------------------ ##
12770_ASBOX
12771 ) |
12772 sed "s/^/$as_me: WARNING: /" >&2
12773 ;;
12774 no:yes )
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12781 (
12782 cat <<\_ASBOX
12783## ------------------------------------ ##
12784## Report this to bug-autoconf@gnu.org. ##
12785## ------------------------------------ ##
12786_ASBOX
12787 ) |
12788 sed "s/^/$as_me: WARNING: /" >&2
12789 ;;
12790esac
12791echo "$as_me:$LINENO: checking for $ac_header" >&5
12792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12793if eval "test \"\${$as_ac_Header+set}\" = set"; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
12796 eval "$as_ac_Header=$ac_header_preproc"
12797fi
12798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12800
90dd450c 12801fi
e6cc62c6
VS
12802if test `eval echo '${'$as_ac_Header'}'` = yes; then
12803 cat >>confdefs.h <<_ACEOF
12804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12805_ACEOF
12806
12807fi
12808
12809done
90dd450c 12810
e6cc62c6
VS
12811
12812if test "$ac_cv_header_wchar_h" != "yes"; then
12813
12814for ac_header in wcstr.h
21d1c967 12815do
e6cc62c6
VS
12816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12817if eval "test \"\${$as_ac_Header+set}\" = set"; then
12818 echo "$as_me:$LINENO: checking for $ac_header" >&5
12819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12820if eval "test \"\${$as_ac_Header+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822fi
12823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12825else
12826 # Is the header compilable?
12827echo "$as_me:$LINENO: checking $ac_header usability" >&5
12828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12829cat >conftest.$ac_ext <<_ACEOF
12830#line $LINENO "configure"
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836$ac_includes_default
12837#include <$ac_header>
12838_ACEOF
12839rm -f conftest.$ac_objext
12840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_header_compiler=yes
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856ac_header_compiler=no
12857fi
12858rm -f conftest.$ac_objext conftest.$ac_ext
12859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12860echo "${ECHO_T}$ac_header_compiler" >&6
12861
12862# Is the header present?
12863echo "$as_me:$LINENO: checking $ac_header presence" >&5
12864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12865cat >conftest.$ac_ext <<_ACEOF
12866#line $LINENO "configure"
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
12872#include <$ac_header>
12873_ACEOF
12874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } >/dev/null; then
12882 if test -s conftest.err; then
12883 ac_cpp_err=$ac_c_preproc_warn_flag
12884 else
12885 ac_cpp_err=
12886 fi
12887else
12888 ac_cpp_err=yes
12889fi
12890if test -z "$ac_cpp_err"; then
12891 ac_header_preproc=yes
12892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896 ac_header_preproc=no
12897fi
12898rm -f conftest.err conftest.$ac_ext
12899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12900echo "${ECHO_T}$ac_header_preproc" >&6
12901
12902# So? What about this header?
12903case $ac_header_compiler:$ac_header_preproc in
12904 yes:no )
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12909 (
12910 cat <<\_ASBOX
12911## ------------------------------------ ##
12912## Report this to bug-autoconf@gnu.org. ##
12913## ------------------------------------ ##
12914_ASBOX
12915 ) |
12916 sed "s/^/$as_me: WARNING: /" >&2
12917 ;;
12918 no:yes )
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12925 (
12926 cat <<\_ASBOX
12927## ------------------------------------ ##
12928## Report this to bug-autoconf@gnu.org. ##
12929## ------------------------------------ ##
12930_ASBOX
12931 ) |
12932 sed "s/^/$as_me: WARNING: /" >&2
12933 ;;
12934esac
12935echo "$as_me:$LINENO: checking for $ac_header" >&5
12936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12937if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12941fi
e6cc62c6
VS
12942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12944
4f14bcd8 12945fi
e6cc62c6
VS
12946if test `eval echo '${'$as_ac_Header'}'` = yes; then
12947 cat >>confdefs.h <<_ACEOF
12948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949_ACEOF
12950
12951fi
12952
12953done
12954
12955fi
12956
12957
12958for ac_header in fnmatch.h
12959do
12960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12961if eval "test \"\${$as_ac_Header+set}\" = set"; then
12962 echo "$as_me:$LINENO: checking for $ac_header" >&5
12963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12964if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966fi
12967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12969else
12970 # Is the header compilable?
12971echo "$as_me:$LINENO: checking $ac_header usability" >&5
12972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12973cat >conftest.$ac_ext <<_ACEOF
12974#line $LINENO "configure"
12975/* confdefs.h. */
12976_ACEOF
12977cat confdefs.h >>conftest.$ac_ext
12978cat >>conftest.$ac_ext <<_ACEOF
12979/* end confdefs.h. */
12980$ac_includes_default
12981#include <$ac_header>
12982_ACEOF
12983rm -f conftest.$ac_objext
12984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -s conftest.$ac_objext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_header_compiler=yes
12996else
12997 echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000ac_header_compiler=no
13001fi
13002rm -f conftest.$ac_objext conftest.$ac_ext
13003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13004echo "${ECHO_T}$ac_header_compiler" >&6
13005
13006# Is the header present?
13007echo "$as_me:$LINENO: checking $ac_header presence" >&5
13008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13009cat >conftest.$ac_ext <<_ACEOF
13010#line $LINENO "configure"
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
13016#include <$ac_header>
13017_ACEOF
13018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null; then
13026 if test -s conftest.err; then
13027 ac_cpp_err=$ac_c_preproc_warn_flag
13028 else
13029 ac_cpp_err=
13030 fi
13031else
13032 ac_cpp_err=yes
13033fi
13034if test -z "$ac_cpp_err"; then
13035 ac_header_preproc=yes
13036else
13037 echo "$as_me: failed program was:" >&5
13038sed 's/^/| /' conftest.$ac_ext >&5
13039
13040 ac_header_preproc=no
13041fi
13042rm -f conftest.err conftest.$ac_ext
13043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13044echo "${ECHO_T}$ac_header_preproc" >&6
13045
13046# So? What about this header?
13047case $ac_header_compiler:$ac_header_preproc in
13048 yes:no )
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13053 (
13054 cat <<\_ASBOX
13055## ------------------------------------ ##
13056## Report this to bug-autoconf@gnu.org. ##
13057## ------------------------------------ ##
13058_ASBOX
13059 ) |
13060 sed "s/^/$as_me: WARNING: /" >&2
13061 ;;
13062 no:yes )
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13069 (
13070 cat <<\_ASBOX
13071## ------------------------------------ ##
13072## Report this to bug-autoconf@gnu.org. ##
13073## ------------------------------------ ##
13074_ASBOX
13075 ) |
13076 sed "s/^/$as_me: WARNING: /" >&2
13077 ;;
13078esac
13079echo "$as_me:$LINENO: checking for $ac_header" >&5
13080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13081if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13083else
e6cc62c6
VS
13084 eval "$as_ac_Header=$ac_header_preproc"
13085fi
13086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13088
21d1c967 13089fi
e6cc62c6
VS
13090if test `eval echo '${'$as_ac_Header'}'` = yes; then
13091 cat >>confdefs.h <<_ACEOF
13092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13093_ACEOF
13094
13095fi
13096
21d1c967 13097done
90dd450c 13098
5c6fa7d2 13099
a0b9e27f 13100if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13101
13102for ac_func in fnmatch
21d1c967 13103do
e6cc62c6
VS
13104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13105echo "$as_me:$LINENO: checking for $ac_func" >&5
13106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13107if eval "test \"\${$as_ac_var+set}\" = set"; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else
13110 cat >conftest.$ac_ext <<_ACEOF
13111#line $LINENO "configure"
13112/* confdefs.h. */
13113_ACEOF
13114cat confdefs.h >>conftest.$ac_ext
13115cat >>conftest.$ac_ext <<_ACEOF
13116/* end confdefs.h. */
a0b9e27f 13117/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13118 which can conflict with char $ac_func (); below.
13119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13120 <limits.h> exists even on freestanding compilers. */
13121#ifdef __STDC__
13122# include <limits.h>
13123#else
13124# include <assert.h>
13125#endif
a0b9e27f 13126/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13127#ifdef __cplusplus
13128extern "C"
13129{
13130#endif
a0b9e27f 13131/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13132 builtin and then its argument prototype would still apply. */
13133char $ac_func ();
a0b9e27f
MB
13134/* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13138choke me
13139#else
e6cc62c6
VS
13140char (*f) () = $ac_func;
13141#endif
13142#ifdef __cplusplus
13143}
a0b9e27f
MB
13144#endif
13145
e6cc62c6
VS
13146int
13147main ()
13148{
13149return f != $ac_func;
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext conftest$ac_exeext
13155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13156 (eval $ac_link) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 eval "$as_ac_var=yes"
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171eval "$as_ac_var=no"
13172fi
13173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13174fi
13175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13177if test `eval echo '${'$as_ac_var'}'` = yes; then
13178 cat >>confdefs.h <<_ACEOF
13179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13180_ACEOF
32832908 13181
21d1c967
GD
13182fi
13183done
90dd450c 13184
a0b9e27f 13185fi
90dd450c 13186
e6cc62c6
VS
13187
13188for ac_header in langinfo.h
21d1c967 13189do
e6cc62c6
VS
13190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo "$as_me:$LINENO: checking for $ac_header" >&5
13193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13194if eval "test \"\${$as_ac_Header+set}\" = set"; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196fi
13197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13199else
13200 # Is the header compilable?
13201echo "$as_me:$LINENO: checking $ac_header usability" >&5
13202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13203cat >conftest.$ac_ext <<_ACEOF
13204#line $LINENO "configure"
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210$ac_includes_default
13211#include <$ac_header>
13212_ACEOF
13213rm -f conftest.$ac_objext
13214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13215 (eval $ac_compile) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -s conftest.$ac_objext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_header_compiler=yes
13226else
13227 echo "$as_me: failed program was:" >&5
13228sed 's/^/| /' conftest.$ac_ext >&5
13229
13230ac_header_compiler=no
13231fi
13232rm -f conftest.$ac_objext conftest.$ac_ext
13233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13234echo "${ECHO_T}$ac_header_compiler" >&6
13235
13236# Is the header present?
13237echo "$as_me:$LINENO: checking $ac_header presence" >&5
13238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13239cat >conftest.$ac_ext <<_ACEOF
13240#line $LINENO "configure"
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246#include <$ac_header>
13247_ACEOF
13248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } >/dev/null; then
13256 if test -s conftest.err; then
13257 ac_cpp_err=$ac_c_preproc_warn_flag
13258 else
13259 ac_cpp_err=
13260 fi
13261else
13262 ac_cpp_err=yes
13263fi
13264if test -z "$ac_cpp_err"; then
13265 ac_header_preproc=yes
13266else
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_header_preproc=no
13271fi
13272rm -f conftest.err conftest.$ac_ext
13273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13274echo "${ECHO_T}$ac_header_preproc" >&6
13275
13276# So? What about this header?
13277case $ac_header_compiler:$ac_header_preproc in
13278 yes:no )
13279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13283 (
13284 cat <<\_ASBOX
13285## ------------------------------------ ##
13286## Report this to bug-autoconf@gnu.org. ##
13287## ------------------------------------ ##
13288_ASBOX
13289 ) |
13290 sed "s/^/$as_me: WARNING: /" >&2
13291 ;;
13292 no:yes )
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13299 (
13300 cat <<\_ASBOX
13301## ------------------------------------ ##
13302## Report this to bug-autoconf@gnu.org. ##
13303## ------------------------------------ ##
13304_ASBOX
13305 ) |
13306 sed "s/^/$as_me: WARNING: /" >&2
13307 ;;
13308esac
13309echo "$as_me:$LINENO: checking for $ac_header" >&5
13310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13311if eval "test \"\${$as_ac_Header+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313else
13314 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13315fi
e6cc62c6
VS
13316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13318
4f14bcd8 13319fi
e6cc62c6
VS
13320if test `eval echo '${'$as_ac_Header'}'` = yes; then
13321 cat >>confdefs.h <<_ACEOF
13322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323_ACEOF
13324
21d1c967 13325fi
e6cc62c6 13326
21d1c967 13327done
3a922bb4 13328
8284b0c5 13329
4f5a7f74
VZ
13330case "${host}" in
13331 *-pc-os2_emx | *-pc-os2-emx )
13332 if test $ac_cv_header_langinfo_h = "yes"; then
13333 LIBS="$LIBS -lintl"
13334 fi
13335 ;;
13336esac
1542ea39 13337
a0b9e27f 13338if test "$wxUSE_GUI" = "yes"; then
73d617c9 13339 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13340
eb69fda5 13341for ac_header in X11/Xlib.h
21d1c967 13342do
e6cc62c6
VS
13343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344if eval "test \"\${$as_ac_Header+set}\" = set"; then
13345 echo "$as_me:$LINENO: checking for $ac_header" >&5
13346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13347if eval "test \"\${$as_ac_Header+set}\" = set"; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349fi
13350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13352else
13353 # Is the header compilable?
13354echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13356cat >conftest.$ac_ext <<_ACEOF
13357#line $LINENO "configure"
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
13363$ac_includes_default
13364#include <$ac_header>
13365_ACEOF
13366rm -f conftest.$ac_objext
13367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368 (eval $ac_compile) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_header_compiler=yes
13379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383ac_header_compiler=no
13384fi
13385rm -f conftest.$ac_objext conftest.$ac_ext
13386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13387echo "${ECHO_T}$ac_header_compiler" >&6
13388
13389# Is the header present?
13390echo "$as_me:$LINENO: checking $ac_header presence" >&5
13391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13392cat >conftest.$ac_ext <<_ACEOF
13393#line $LINENO "configure"
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h. */
13399#include <$ac_header>
13400_ACEOF
13401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } >/dev/null; then
13409 if test -s conftest.err; then
13410 ac_cpp_err=$ac_c_preproc_warn_flag
13411 else
13412 ac_cpp_err=
13413 fi
13414else
13415 ac_cpp_err=yes
13416fi
13417if test -z "$ac_cpp_err"; then
13418 ac_header_preproc=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_header_preproc=no
13424fi
13425rm -f conftest.err conftest.$ac_ext
13426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13427echo "${ECHO_T}$ac_header_preproc" >&6
13428
13429# So? What about this header?
13430case $ac_header_compiler:$ac_header_preproc in
13431 yes:no )
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13436 (
13437 cat <<\_ASBOX
13438## ------------------------------------ ##
13439## Report this to bug-autoconf@gnu.org. ##
13440## ------------------------------------ ##
13441_ASBOX
13442 ) |
13443 sed "s/^/$as_me: WARNING: /" >&2
13444 ;;
13445 no:yes )
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 (
13453 cat <<\_ASBOX
13454## ------------------------------------ ##
13455## Report this to bug-autoconf@gnu.org. ##
13456## ------------------------------------ ##
13457_ASBOX
13458 ) |
13459 sed "s/^/$as_me: WARNING: /" >&2
13460 ;;
13461esac
13462echo "$as_me:$LINENO: checking for $ac_header" >&5
13463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13464if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466else
13467 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13468fi
e6cc62c6
VS
13469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13471
90dd450c 13472fi
e6cc62c6
VS
13473if test `eval echo '${'$as_ac_Header'}'` = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13476_ACEOF
13477
247f5006 13478fi
e6cc62c6 13479
eb69fda5
VS
13480done
13481
13482
13483for ac_header in X11/XKBlib.h
13484do
13485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13486echo "$as_me:$LINENO: checking for $ac_header" >&5
13487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13488if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490else
13491 cat >conftest.$ac_ext <<_ACEOF
13492#line $LINENO "configure"
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498
13499 #if HAVE_X11_XLIB_H
13500 #include <X11/Xlib.h>
13501 #endif
13502
13503
13504#include <$ac_header>
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 eval "$as_ac_Header=yes"
13519else
13520 echo "$as_me: failed program was:" >&5
13521sed 's/^/| /' conftest.$ac_ext >&5
13522
13523eval "$as_ac_Header=no"
13524fi
13525rm -f conftest.$ac_objext conftest.$ac_ext
13526fi
13527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13529if test `eval echo '${'$as_ac_Header'}'` = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13532_ACEOF
13533
13534fi
13535
247f5006
VZ
13536done
13537
a0b9e27f
MB
13538 fi
13539fi
247f5006 13540
247f5006 13541
e6cc62c6
VS
13542echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13543echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13544if test "${ac_cv_c_const+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 cat >conftest.$ac_ext <<_ACEOF
13548#line $LINENO "configure"
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554
13555int
13556main ()
13557{
13558/* FIXME: Include the comments suggested by Paul. */
13559#ifndef __cplusplus
13560 /* Ultrix mips cc rejects this. */
13561 typedef int charset[2];
13562 const charset x;
13563 /* SunOS 4.1.1 cc rejects this. */
13564 char const *const *ccp;
13565 char **p;
13566 /* NEC SVR4.0.2 mips cc rejects this. */
13567 struct point {int x, y;};
13568 static struct point const zero = {0,0};
13569 /* AIX XL C 1.02.0.0 rejects this.
13570 It does not let you subtract one const X* pointer from another in
13571 an arm of an if-expression whose if-part is not a constant
13572 expression */
13573 const char *g = "string";
13574 ccp = &g + (g ? g-g : 0);
13575 /* HPUX 7.0 cc rejects these. */
13576 ++ccp;
13577 p = (char**) ccp;
13578 ccp = (char const *const *) p;
13579 { /* SCO 3.2v4 cc rejects this. */
13580 char *t;
13581 char const *s = 0 ? (char *) 0 : (char const *) 0;
13582
13583 *t++ = 0;
13584 }
13585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13586 int x[] = {25, 17};
13587 const int *foo = &x[0];
13588 ++foo;
13589 }
13590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13591 typedef const int *iptr;
13592 iptr p = 0;
13593 ++p;
13594 }
13595 { /* AIX XL C 1.02.0.0 rejects this saying
13596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13597 struct s { int j; const int *ap[3]; };
13598 struct s *b; b->j = 5;
13599 }
13600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13601 const int foo = 10;
13602 }
13603#endif
13604
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext
13610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
a0b9e27f 13621 ac_cv_c_const=yes
247f5006 13622else
e6cc62c6
VS
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626ac_cv_c_const=no
247f5006 13627fi
e6cc62c6 13628rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13629fi
e6cc62c6
VS
13630echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13631echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13632if test $ac_cv_c_const = no; then
e6cc62c6
VS
13633
13634cat >>confdefs.h <<\_ACEOF
13635#define const
13636_ACEOF
10f2d63a 13637
90dd450c 13638fi
81809c07 13639
e6cc62c6
VS
13640echo "$as_me:$LINENO: checking for inline" >&5
13641echo $ECHO_N "checking for inline... $ECHO_C" >&6
13642if test "${ac_cv_c_inline+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13644else
a0b9e27f
MB
13645 ac_cv_c_inline=no
13646for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13647 cat >conftest.$ac_ext <<_ACEOF
13648#line $LINENO "configure"
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654#ifndef __cplusplus
13655typedef int foo_t;
13656static $ac_kw foo_t static_foo () {return 0; }
13657$ac_kw foo_t foo () {return 0; }
13658#endif
a0b9e27f 13659
e6cc62c6
VS
13660_ACEOF
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
a0b9e27f 13673 ac_cv_c_inline=$ac_kw; break
247f5006 13674else
e6cc62c6
VS
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
247f5006 13678fi
e6cc62c6 13679rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13680done
247f5006
VZ
13681
13682fi
e6cc62c6
VS
13683echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13684echo "${ECHO_T}$ac_cv_c_inline" >&6
13685case $ac_cv_c_inline in
a0b9e27f 13686 inline | yes) ;;
e6cc62c6
VS
13687 no)
13688cat >>confdefs.h <<\_ACEOF
13689#define inline
13690_ACEOF
a0b9e27f 13691 ;;
e6cc62c6 13692 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13693#define inline $ac_cv_c_inline
e6cc62c6 13694_ACEOF
a0b9e27f
MB
13695 ;;
13696esac
247f5006 13697
247f5006 13698
e6cc62c6
VS
13699echo "$as_me:$LINENO: checking for char" >&5
13700echo $ECHO_N "checking for char... $ECHO_C" >&6
13701if test "${ac_cv_type_char+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703else
13704 cat >conftest.$ac_ext <<_ACEOF
13705#line $LINENO "configure"
13706/* confdefs.h. */
13707_ACEOF
13708cat confdefs.h >>conftest.$ac_ext
13709cat >>conftest.$ac_ext <<_ACEOF
13710/* end confdefs.h. */
13711$ac_includes_default
13712int
13713main ()
13714{
13715if ((char *) 0)
13716 return 0;
13717if (sizeof (char))
13718 return 0;
13719 ;
13720 return 0;
13721}
13722_ACEOF
13723rm -f conftest.$ac_objext
13724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_type_char=yes
13736else
13737 echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740ac_cv_type_char=no
13741fi
13742rm -f conftest.$ac_objext conftest.$ac_ext
13743fi
13744echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13745echo "${ECHO_T}$ac_cv_type_char" >&6
13746
13747echo "$as_me:$LINENO: checking size of char" >&5
13748echo $ECHO_N "checking size of char... $ECHO_C" >&6
13749if test "${ac_cv_sizeof_char+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751else
13752 if test "$ac_cv_type_char" = yes; then
13753 # The cast to unsigned long works around a bug in the HP C Compiler
13754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13756 # This bug is HP SR number 8606223364.
a0b9e27f 13757 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13758 # Depending upon the size, compute the lo and hi bounds.
13759cat >conftest.$ac_ext <<_ACEOF
13760#line $LINENO "configure"
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766$ac_includes_default
13767int
13768main ()
13769{
13770static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13771test_array [0] = 0
13772
13773 ;
13774 return 0;
13775}
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
13789 ac_lo=0 ac_mid=0
13790 while :; do
13791 cat >conftest.$ac_ext <<_ACEOF
13792#line $LINENO "configure"
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798$ac_includes_default
13799int
13800main ()
13801{
13802static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13803test_array [0] = 0
13804
13805 ;
13806 return 0;
13807}
13808_ACEOF
13809rm -f conftest.$ac_objext
13810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_hi=$ac_mid; break
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826ac_lo=`expr $ac_mid + 1`
13827 if test $ac_lo -le $ac_mid; then
13828 ac_lo= ac_hi=
13829 break
13830 fi
13831 ac_mid=`expr 2 '*' $ac_mid + 1`
13832fi
13833rm -f conftest.$ac_objext conftest.$ac_ext
13834 done
a0b9e27f 13835else
e6cc62c6
VS
13836 echo "$as_me: failed program was:" >&5
13837sed 's/^/| /' conftest.$ac_ext >&5
13838
13839cat >conftest.$ac_ext <<_ACEOF
13840#line $LINENO "configure"
13841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
13846$ac_includes_default
13847int
13848main ()
13849{
13850static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13851test_array [0] = 0
13852
13853 ;
13854 return 0;
13855}
13856_ACEOF
13857rm -f conftest.$ac_objext
13858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_hi=-1 ac_mid=-1
13870 while :; do
13871 cat >conftest.$ac_ext <<_ACEOF
13872#line $LINENO "configure"
13873/* confdefs.h. */
13874_ACEOF
13875cat confdefs.h >>conftest.$ac_ext
13876cat >>conftest.$ac_ext <<_ACEOF
13877/* end confdefs.h. */
13878$ac_includes_default
13879int
13880main ()
13881{
13882static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13883test_array [0] = 0
13884
13885 ;
13886 return 0;
13887}
13888_ACEOF
13889rm -f conftest.$ac_objext
13890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_lo=$ac_mid; break
13902else
13903 echo "$as_me: failed program was:" >&5
13904sed 's/^/| /' conftest.$ac_ext >&5
13905
13906ac_hi=`expr '(' $ac_mid ')' - 1`
13907 if test $ac_mid -le $ac_hi; then
13908 ac_lo= ac_hi=
13909 break
13910 fi
13911 ac_mid=`expr 2 '*' $ac_mid`
13912fi
13913rm -f conftest.$ac_objext conftest.$ac_ext
13914 done
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919ac_lo= ac_hi=
13920fi
13921rm -f conftest.$ac_objext conftest.$ac_ext
13922fi
13923rm -f conftest.$ac_objext conftest.$ac_ext
13924# Binary search between lo and hi bounds.
13925while test "x$ac_lo" != "x$ac_hi"; do
13926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13927 cat >conftest.$ac_ext <<_ACEOF
13928#line $LINENO "configure"
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934$ac_includes_default
13935int
13936main ()
13937{
13938static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13939test_array [0] = 0
13940
13941 ;
13942 return 0;
13943}
13944_ACEOF
13945rm -f conftest.$ac_objext
13946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947 (eval $ac_compile) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -s conftest.$ac_objext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_hi=$ac_mid
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962ac_lo=`expr '(' $ac_mid ')' + 1`
13963fi
13964rm -f conftest.$ac_objext conftest.$ac_ext
13965done
13966case $ac_lo in
13967?*) ac_cv_sizeof_char=$ac_lo;;
13968'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13969See \`config.log' for more details." >&5
13970echo "$as_me: error: cannot compute sizeof (char), 77
13971See \`config.log' for more details." >&2;}
13972 { (exit 1); exit 1; }; } ;;
13973esac
13974else
13975 if test "$cross_compiling" = yes; then
13976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13977See \`config.log' for more details." >&5
13978echo "$as_me: error: cannot run test program while cross compiling
13979See \`config.log' for more details." >&2;}
13980 { (exit 1); exit 1; }; }
13981else
13982 cat >conftest.$ac_ext <<_ACEOF
13983#line $LINENO "configure"
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989$ac_includes_default
13990long longval () { return (long) (sizeof (char)); }
13991unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13992#include <stdio.h>
e6cc62c6
VS
13993#include <stdlib.h>
13994int
13995main ()
247f5006 13996{
e6cc62c6
VS
13997
13998 FILE *f = fopen ("conftest.val", "w");
13999 if (! f)
14000 exit (1);
14001 if (((long) (sizeof (char))) < 0)
14002 {
14003 long i = longval ();
14004 if (i != ((long) (sizeof (char))))
14005 exit (1);
14006 fprintf (f, "%ld\n", i);
14007 }
14008 else
14009 {
14010 unsigned long i = ulongval ();
14011 if (i != ((long) (sizeof (char))))
14012 exit (1);
14013 fprintf (f, "%lu\n", i);
14014 }
14015 exit (ferror (f) || fclose (f) != 0);
14016
14017 ;
14018 return 0;
52127426 14019}
e6cc62c6
VS
14020_ACEOF
14021rm -f conftest$ac_exeext
14022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_cv_sizeof_char=`cat conftest.val`
14033else
14034 echo "$as_me: program exited with status $ac_status" >&5
14035echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038( exit $ac_status )
14039{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14040See \`config.log' for more details." >&5
14041echo "$as_me: error: cannot compute sizeof (char), 77
14042See \`config.log' for more details." >&2;}
14043 { (exit 1); exit 1; }; }
14044fi
14045rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14046fi
14047fi
14048rm -f conftest.val
247f5006 14049else
a0b9e27f 14050 ac_cv_sizeof_char=0
247f5006 14051fi
247f5006 14052fi
e6cc62c6
VS
14053echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14054echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14055cat >>confdefs.h <<_ACEOF
14056#define SIZEOF_CHAR $ac_cv_sizeof_char
14057_ACEOF
14058
14059
14060echo "$as_me:$LINENO: checking for short" >&5
14061echo $ECHO_N "checking for short... $ECHO_C" >&6
14062if test "${ac_cv_type_short+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 cat >conftest.$ac_ext <<_ACEOF
14066#line $LINENO "configure"
14067/* confdefs.h. */
14068_ACEOF
14069cat confdefs.h >>conftest.$ac_ext
14070cat >>conftest.$ac_ext <<_ACEOF
14071/* end confdefs.h. */
14072$ac_includes_default
14073int
14074main ()
14075{
14076if ((short *) 0)
14077 return 0;
14078if (sizeof (short))
14079 return 0;
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext
14085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14086 (eval $ac_compile) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_type_short=yes
14097else
14098 echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
14101ac_cv_type_short=no
14102fi
14103rm -f conftest.$ac_objext conftest.$ac_ext
14104fi
14105echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14106echo "${ECHO_T}$ac_cv_type_short" >&6
14107
14108echo "$as_me:$LINENO: checking size of short" >&5
14109echo $ECHO_N "checking size of short... $ECHO_C" >&6
14110if test "${ac_cv_sizeof_short+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112else
14113 if test "$ac_cv_type_short" = yes; then
14114 # The cast to unsigned long works around a bug in the HP C Compiler
14115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14117 # This bug is HP SR number 8606223364.
14118 if test "$cross_compiling" = yes; then
14119 # Depending upon the size, compute the lo and hi bounds.
14120cat >conftest.$ac_ext <<_ACEOF
14121#line $LINENO "configure"
14122/* confdefs.h. */
14123_ACEOF
14124cat confdefs.h >>conftest.$ac_ext
14125cat >>conftest.$ac_ext <<_ACEOF
14126/* end confdefs.h. */
14127$ac_includes_default
14128int
14129main ()
14130{
14131static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14132test_array [0] = 0
247f5006 14133
e6cc62c6
VS
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_lo=0 ac_mid=0
14151 while :; do
14152 cat >conftest.$ac_ext <<_ACEOF
14153#line $LINENO "configure"
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h. */
14159$ac_includes_default
14160int
14161main ()
14162{
14163static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14164test_array [0] = 0
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
14170rm -f conftest.$ac_objext
14171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_hi=$ac_mid; break
14183else
14184 echo "$as_me: failed program was:" >&5
14185sed 's/^/| /' conftest.$ac_ext >&5
14186
14187ac_lo=`expr $ac_mid + 1`
14188 if test $ac_lo -le $ac_mid; then
14189 ac_lo= ac_hi=
14190 break
14191 fi
14192 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14193fi
e6cc62c6
VS
14194rm -f conftest.$ac_objext conftest.$ac_ext
14195 done
14196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200cat >conftest.$ac_ext <<_ACEOF
14201#line $LINENO "configure"
14202/* confdefs.h. */
14203_ACEOF
14204cat confdefs.h >>conftest.$ac_ext
14205cat >>conftest.$ac_ext <<_ACEOF
14206/* end confdefs.h. */
14207$ac_includes_default
14208int
14209main ()
14210{
14211static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14212test_array [0] = 0
247f5006 14213
e6cc62c6
VS
14214 ;
14215 return 0;
14216}
14217_ACEOF
14218rm -f conftest.$ac_objext
14219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220 (eval $ac_compile) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 ac_hi=-1 ac_mid=-1
14231 while :; do
14232 cat >conftest.$ac_ext <<_ACEOF
14233#line $LINENO "configure"
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
14239$ac_includes_default
14240int
14241main ()
14242{
14243static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14244test_array [0] = 0
247f5006 14245
e6cc62c6
VS
14246 ;
14247 return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext
14251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_lo=$ac_mid; break
14263else
14264 echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
14267ac_hi=`expr '(' $ac_mid ')' - 1`
14268 if test $ac_mid -le $ac_hi; then
14269 ac_lo= ac_hi=
14270 break
14271 fi
14272 ac_mid=`expr 2 '*' $ac_mid`
14273fi
14274rm -f conftest.$ac_objext conftest.$ac_ext
14275 done
247f5006 14276else
e6cc62c6
VS
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280ac_lo= ac_hi=
14281fi
14282rm -f conftest.$ac_objext conftest.$ac_ext
14283fi
14284rm -f conftest.$ac_objext conftest.$ac_ext
14285# Binary search between lo and hi bounds.
14286while test "x$ac_lo" != "x$ac_hi"; do
14287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14288 cat >conftest.$ac_ext <<_ACEOF
14289#line $LINENO "configure"
14290/* confdefs.h. */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
14294/* end confdefs.h. */
14295$ac_includes_default
14296int
14297main ()
14298{
14299static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14300test_array [0] = 0
14301
14302 ;
14303 return 0;
14304}
14305_ACEOF
14306rm -f conftest.$ac_objext
14307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_hi=$ac_mid
14319else
14320 echo "$as_me: failed program was:" >&5
14321sed 's/^/| /' conftest.$ac_ext >&5
14322
14323ac_lo=`expr '(' $ac_mid ')' + 1`
14324fi
14325rm -f conftest.$ac_objext conftest.$ac_ext
14326done
14327case $ac_lo in
14328?*) ac_cv_sizeof_short=$ac_lo;;
14329'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14330See \`config.log' for more details." >&5
14331echo "$as_me: error: cannot compute sizeof (short), 77
14332See \`config.log' for more details." >&2;}
14333 { (exit 1); exit 1; }; } ;;
14334esac
247f5006 14335else
e6cc62c6
VS
14336 if test "$cross_compiling" = yes; then
14337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14338See \`config.log' for more details." >&5
14339echo "$as_me: error: cannot run test program while cross compiling
14340See \`config.log' for more details." >&2;}
14341 { (exit 1); exit 1; }; }
14342else
14343 cat >conftest.$ac_ext <<_ACEOF
14344#line $LINENO "configure"
14345/* confdefs.h. */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h. */
14350$ac_includes_default
14351long longval () { return (long) (sizeof (short)); }
14352unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14353#include <stdio.h>
e6cc62c6
VS
14354#include <stdlib.h>
14355int
14356main ()
a0b9e27f 14357{
e6cc62c6
VS
14358
14359 FILE *f = fopen ("conftest.val", "w");
14360 if (! f)
14361 exit (1);
14362 if (((long) (sizeof (short))) < 0)
14363 {
14364 long i = longval ();
14365 if (i != ((long) (sizeof (short))))
14366 exit (1);
14367 fprintf (f, "%ld\n", i);
14368 }
14369 else
14370 {
14371 unsigned long i = ulongval ();
14372 if (i != ((long) (sizeof (short))))
14373 exit (1);
14374 fprintf (f, "%lu\n", i);
14375 }
14376 exit (ferror (f) || fclose (f) != 0);
14377
14378 ;
14379 return 0;
a0b9e27f 14380}
e6cc62c6
VS
14381_ACEOF
14382rm -f conftest$ac_exeext
14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_sizeof_short=`cat conftest.val`
14394else
14395 echo "$as_me: program exited with status $ac_status" >&5
14396echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
14399( exit $ac_status )
14400{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14401See \`config.log' for more details." >&5
14402echo "$as_me: error: cannot compute sizeof (short), 77
14403See \`config.log' for more details." >&2;}
14404 { (exit 1); exit 1; }; }
14405fi
14406rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14407fi
14408fi
14409rm -f conftest.val
247f5006 14410else
a0b9e27f 14411 ac_cv_sizeof_short=0
247f5006 14412fi
247f5006 14413fi
e6cc62c6
VS
14414echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14415echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14416cat >>confdefs.h <<_ACEOF
14417#define SIZEOF_SHORT $ac_cv_sizeof_short
14418_ACEOF
14419
14420
14421echo "$as_me:$LINENO: checking for void *" >&5
14422echo $ECHO_N "checking for void *... $ECHO_C" >&6
14423if test "${ac_cv_type_void_p+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 cat >conftest.$ac_ext <<_ACEOF
14427#line $LINENO "configure"
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433$ac_includes_default
14434int
14435main ()
14436{
14437if ((void * *) 0)
14438 return 0;
14439if (sizeof (void *))
14440 return 0;
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14454 ac_status=$?
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_cv_type_void_p=yes
14458else
14459 echo "$as_me: failed program was:" >&5
14460sed 's/^/| /' conftest.$ac_ext >&5
14461
14462ac_cv_type_void_p=no
14463fi
14464rm -f conftest.$ac_objext conftest.$ac_ext
14465fi
14466echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14467echo "${ECHO_T}$ac_cv_type_void_p" >&6
14468
14469echo "$as_me:$LINENO: checking size of void *" >&5
14470echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14471if test "${ac_cv_sizeof_void_p+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474 if test "$ac_cv_type_void_p" = yes; then
14475 # The cast to unsigned long works around a bug in the HP C Compiler
14476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14478 # This bug is HP SR number 8606223364.
14479 if test "$cross_compiling" = yes; then
14480 # Depending upon the size, compute the lo and hi bounds.
14481cat >conftest.$ac_ext <<_ACEOF
14482#line $LINENO "configure"
14483/* confdefs.h. */
14484_ACEOF
14485cat confdefs.h >>conftest.$ac_ext
14486cat >>conftest.$ac_ext <<_ACEOF
14487/* end confdefs.h. */
14488$ac_includes_default
14489int
14490main ()
14491{
14492static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14493test_array [0] = 0
14494
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_lo=0 ac_mid=0
14512 while :; do
14513 cat >conftest.$ac_ext <<_ACEOF
14514#line $LINENO "configure"
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520$ac_includes_default
14521int
14522main ()
14523{
14524static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14525test_array [0] = 0
247f5006 14526
e6cc62c6
VS
14527 ;
14528 return 0;
14529}
14530_ACEOF
14531rm -f conftest.$ac_objext
14532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14533 (eval $ac_compile) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_hi=$ac_mid; break
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548ac_lo=`expr $ac_mid + 1`
14549 if test $ac_lo -le $ac_mid; then
14550 ac_lo= ac_hi=
14551 break
14552 fi
14553 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14554fi
e6cc62c6
VS
14555rm -f conftest.$ac_objext conftest.$ac_ext
14556 done
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561cat >conftest.$ac_ext <<_ACEOF
14562#line $LINENO "configure"
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568$ac_includes_default
14569int
14570main ()
14571{
14572static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14573test_array [0] = 0
247f5006 14574
e6cc62c6
VS
14575 ;
14576 return 0;
14577}
14578_ACEOF
14579rm -f conftest.$ac_objext
14580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -s conftest.$ac_objext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14591 ac_hi=-1 ac_mid=-1
14592 while :; do
14593 cat >conftest.$ac_ext <<_ACEOF
14594#line $LINENO "configure"
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
14600$ac_includes_default
14601int
14602main ()
14603{
14604static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14605test_array [0] = 0
247f5006 14606
e6cc62c6
VS
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611rm -f conftest.$ac_objext
14612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -s conftest.$ac_objext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_lo=$ac_mid; break
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
14628ac_hi=`expr '(' $ac_mid ')' - 1`
14629 if test $ac_mid -le $ac_hi; then
14630 ac_lo= ac_hi=
14631 break
14632 fi
14633 ac_mid=`expr 2 '*' $ac_mid`
14634fi
14635rm -f conftest.$ac_objext conftest.$ac_ext
14636 done
a0b9e27f 14637else
e6cc62c6
VS
14638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641ac_lo= ac_hi=
14642fi
14643rm -f conftest.$ac_objext conftest.$ac_ext
14644fi
14645rm -f conftest.$ac_objext conftest.$ac_ext
14646# Binary search between lo and hi bounds.
14647while test "x$ac_lo" != "x$ac_hi"; do
14648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14649 cat >conftest.$ac_ext <<_ACEOF
14650#line $LINENO "configure"
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656$ac_includes_default
14657int
14658main ()
14659{
14660static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14661test_array [0] = 0
14662
14663 ;
14664 return 0;
14665}
14666_ACEOF
14667rm -f conftest.$ac_objext
14668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14669 (eval $ac_compile) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_hi=$ac_mid
14680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684ac_lo=`expr '(' $ac_mid ')' + 1`
14685fi
14686rm -f conftest.$ac_objext conftest.$ac_ext
14687done
14688case $ac_lo in
14689?*) ac_cv_sizeof_void_p=$ac_lo;;
14690'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14691See \`config.log' for more details." >&5
14692echo "$as_me: error: cannot compute sizeof (void *), 77
14693See \`config.log' for more details." >&2;}
14694 { (exit 1); exit 1; }; } ;;
14695esac
247f5006 14696else
e6cc62c6
VS
14697 if test "$cross_compiling" = yes; then
14698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14699See \`config.log' for more details." >&5
14700echo "$as_me: error: cannot run test program while cross compiling
14701See \`config.log' for more details." >&2;}
14702 { (exit 1); exit 1; }; }
14703else
14704 cat >conftest.$ac_ext <<_ACEOF
14705#line $LINENO "configure"
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712long longval () { return (long) (sizeof (void *)); }
14713unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14714#include <stdio.h>
e6cc62c6
VS
14715#include <stdlib.h>
14716int
14717main ()
247f5006 14718{
e6cc62c6
VS
14719
14720 FILE *f = fopen ("conftest.val", "w");
14721 if (! f)
14722 exit (1);
14723 if (((long) (sizeof (void *))) < 0)
14724 {
14725 long i = longval ();
14726 if (i != ((long) (sizeof (void *))))
14727 exit (1);
14728 fprintf (f, "%ld\n", i);
14729 }
14730 else
14731 {
14732 unsigned long i = ulongval ();
14733 if (i != ((long) (sizeof (void *))))
14734 exit (1);
14735 fprintf (f, "%lu\n", i);
14736 }
14737 exit (ferror (f) || fclose (f) != 0);
14738
14739 ;
14740 return 0;
5c6fa7d2 14741}
e6cc62c6
VS
14742_ACEOF
14743rm -f conftest$ac_exeext
14744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_sizeof_void_p=`cat conftest.val`
14755else
14756 echo "$as_me: program exited with status $ac_status" >&5
14757echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760( exit $ac_status )
14761{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14762See \`config.log' for more details." >&5
14763echo "$as_me: error: cannot compute sizeof (void *), 77
14764See \`config.log' for more details." >&2;}
14765 { (exit 1); exit 1; }; }
14766fi
14767rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14768fi
14769fi
14770rm -f conftest.val
a0b9e27f 14771else
a0b9e27f
MB
14772 ac_cv_sizeof_void_p=0
14773fi
a0b9e27f 14774fi
e6cc62c6
VS
14775echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14776echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14777cat >>confdefs.h <<_ACEOF
14778#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14779_ACEOF
14780
14781
14782echo "$as_me:$LINENO: checking for int" >&5
14783echo $ECHO_N "checking for int... $ECHO_C" >&6
14784if test "${ac_cv_type_int+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787 cat >conftest.$ac_ext <<_ACEOF
14788#line $LINENO "configure"
14789/* confdefs.h. */
14790_ACEOF
14791cat confdefs.h >>conftest.$ac_ext
14792cat >>conftest.$ac_ext <<_ACEOF
14793/* end confdefs.h. */
14794$ac_includes_default
14795int
14796main ()
14797{
14798if ((int *) 0)
14799 return 0;
14800if (sizeof (int))
14801 return 0;
14802 ;
14803 return 0;
14804}
14805_ACEOF
14806rm -f conftest.$ac_objext
14807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -s conftest.$ac_objext'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14818 ac_cv_type_int=yes
14819else
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823ac_cv_type_int=no
14824fi
14825rm -f conftest.$ac_objext conftest.$ac_ext
14826fi
14827echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14828echo "${ECHO_T}$ac_cv_type_int" >&6
14829
14830echo "$as_me:$LINENO: checking size of int" >&5
14831echo $ECHO_N "checking size of int... $ECHO_C" >&6
14832if test "${ac_cv_sizeof_int+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 if test "$ac_cv_type_int" = yes; then
14836 # The cast to unsigned long works around a bug in the HP C Compiler
14837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14839 # This bug is HP SR number 8606223364.
14840 if test "$cross_compiling" = yes; then
14841 # Depending upon the size, compute the lo and hi bounds.
14842cat >conftest.$ac_ext <<_ACEOF
14843#line $LINENO "configure"
14844/* confdefs.h. */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
14848/* end confdefs.h. */
14849$ac_includes_default
14850int
14851main ()
14852{
14853static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14854test_array [0] = 0
8284b0c5 14855
e6cc62c6
VS
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_lo=0 ac_mid=0
14873 while :; do
14874 cat >conftest.$ac_ext <<_ACEOF
14875#line $LINENO "configure"
14876/* confdefs.h. */
14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
14880/* end confdefs.h. */
14881$ac_includes_default
14882int
14883main ()
14884{
14885static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14886test_array [0] = 0
14887
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894 (eval $ac_compile) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -s conftest.$ac_objext'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_hi=$ac_mid; break
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909ac_lo=`expr $ac_mid + 1`
14910 if test $ac_lo -le $ac_mid; then
14911 ac_lo= ac_hi=
14912 break
14913 fi
14914 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14915fi
e6cc62c6
VS
14916rm -f conftest.$ac_objext conftest.$ac_ext
14917 done
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922cat >conftest.$ac_ext <<_ACEOF
14923#line $LINENO "configure"
14924/* confdefs.h. */
14925_ACEOF
14926cat confdefs.h >>conftest.$ac_ext
14927cat >>conftest.$ac_ext <<_ACEOF
14928/* end confdefs.h. */
14929$ac_includes_default
14930int
14931main ()
14932{
14933static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14934test_array [0] = 0
247f5006 14935
e6cc62c6
VS
14936 ;
14937 return 0;
14938}
14939_ACEOF
14940rm -f conftest.$ac_objext
14941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_hi=-1 ac_mid=-1
14953 while :; do
14954 cat >conftest.$ac_ext <<_ACEOF
14955#line $LINENO "configure"
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962int
14963main ()
14964{
14965static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14966test_array [0] = 0
247f5006 14967
e6cc62c6
VS
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_lo=$ac_mid; break
14985else
14986 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989ac_hi=`expr '(' $ac_mid ')' - 1`
14990 if test $ac_mid -le $ac_hi; then
14991 ac_lo= ac_hi=
14992 break
14993 fi
14994 ac_mid=`expr 2 '*' $ac_mid`
14995fi
14996rm -f conftest.$ac_objext conftest.$ac_ext
14997 done
247f5006 14998else
e6cc62c6
VS
14999 echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002ac_lo= ac_hi=
15003fi
15004rm -f conftest.$ac_objext conftest.$ac_ext
15005fi
15006rm -f conftest.$ac_objext conftest.$ac_ext
15007# Binary search between lo and hi bounds.
15008while test "x$ac_lo" != "x$ac_hi"; do
15009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15010 cat >conftest.$ac_ext <<_ACEOF
15011#line $LINENO "configure"
15012/* confdefs.h. */
15013_ACEOF
15014cat confdefs.h >>conftest.$ac_ext
15015cat >>conftest.$ac_ext <<_ACEOF
15016/* end confdefs.h. */
15017$ac_includes_default
15018int
15019main ()
15020{
15021static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15022test_array [0] = 0
15023
15024 ;
15025 return 0;
15026}
15027_ACEOF
15028rm -f conftest.$ac_objext
15029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_hi=$ac_mid
15041else
15042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
15044
15045ac_lo=`expr '(' $ac_mid ')' + 1`
15046fi
15047rm -f conftest.$ac_objext conftest.$ac_ext
15048done
15049case $ac_lo in
15050?*) ac_cv_sizeof_int=$ac_lo;;
15051'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15052See \`config.log' for more details." >&5
15053echo "$as_me: error: cannot compute sizeof (int), 77
15054See \`config.log' for more details." >&2;}
15055 { (exit 1); exit 1; }; } ;;
15056esac
a0b9e27f 15057else
e6cc62c6
VS
15058 if test "$cross_compiling" = yes; then
15059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15060See \`config.log' for more details." >&5
15061echo "$as_me: error: cannot run test program while cross compiling
15062See \`config.log' for more details." >&2;}
15063 { (exit 1); exit 1; }; }
15064else
15065 cat >conftest.$ac_ext <<_ACEOF
15066#line $LINENO "configure"
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072$ac_includes_default
15073long longval () { return (long) (sizeof (int)); }
15074unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15075#include <stdio.h>
e6cc62c6
VS
15076#include <stdlib.h>
15077int
15078main ()
247f5006 15079{
e6cc62c6
VS
15080
15081 FILE *f = fopen ("conftest.val", "w");
15082 if (! f)
15083 exit (1);
15084 if (((long) (sizeof (int))) < 0)
15085 {
15086 long i = longval ();
15087 if (i != ((long) (sizeof (int))))
15088 exit (1);
15089 fprintf (f, "%ld\n", i);
15090 }
15091 else
15092 {
15093 unsigned long i = ulongval ();
15094 if (i != ((long) (sizeof (int))))
15095 exit (1);
15096 fprintf (f, "%lu\n", i);
15097 }
15098 exit (ferror (f) || fclose (f) != 0);
15099
15100 ;
15101 return 0;
247f5006 15102}
e6cc62c6
VS
15103_ACEOF
15104rm -f conftest$ac_exeext
15105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_sizeof_int=`cat conftest.val`
15116else
15117 echo "$as_me: program exited with status $ac_status" >&5
15118echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121( exit $ac_status )
15122{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15123See \`config.log' for more details." >&5
15124echo "$as_me: error: cannot compute sizeof (int), 77
15125See \`config.log' for more details." >&2;}
15126 { (exit 1); exit 1; }; }
15127fi
15128rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15129fi
15130fi
15131rm -f conftest.val
6f72b082 15132else
a0b9e27f 15133 ac_cv_sizeof_int=0
21d1c967 15134fi
698dcdb6 15135fi
e6cc62c6
VS
15136echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15137echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15138cat >>confdefs.h <<_ACEOF
15139#define SIZEOF_INT $ac_cv_sizeof_int
15140_ACEOF
15141
15142
15143echo "$as_me:$LINENO: checking for long" >&5
15144echo $ECHO_N "checking for long... $ECHO_C" >&6
15145if test "${ac_cv_type_long+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 cat >conftest.$ac_ext <<_ACEOF
15149#line $LINENO "configure"
15150/* confdefs.h. */
15151_ACEOF
15152cat confdefs.h >>conftest.$ac_ext
15153cat >>conftest.$ac_ext <<_ACEOF
15154/* end confdefs.h. */
15155$ac_includes_default
15156int
15157main ()
15158{
15159if ((long *) 0)
15160 return 0;
15161if (sizeof (long))
15162 return 0;
15163 ;
15164 return 0;
15165}
15166_ACEOF
15167rm -f conftest.$ac_objext
15168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169 (eval $ac_compile) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_cv_type_long=yes
15180else
15181 echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184ac_cv_type_long=no
15185fi
15186rm -f conftest.$ac_objext conftest.$ac_ext
15187fi
15188echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15189echo "${ECHO_T}$ac_cv_type_long" >&6
15190
15191echo "$as_me:$LINENO: checking size of long" >&5
15192echo $ECHO_N "checking size of long... $ECHO_C" >&6
15193if test "${ac_cv_sizeof_long+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 if test "$ac_cv_type_long" = yes; then
15197 # The cast to unsigned long works around a bug in the HP C Compiler
15198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15200 # This bug is HP SR number 8606223364.
15201 if test "$cross_compiling" = yes; then
15202 # Depending upon the size, compute the lo and hi bounds.
15203cat >conftest.$ac_ext <<_ACEOF
15204#line $LINENO "configure"
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210$ac_includes_default
15211int
15212main ()
15213{
15214static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15215test_array [0] = 0
15216
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_lo=0 ac_mid=0
15234 while :; do
15235 cat >conftest.$ac_ext <<_ACEOF
15236#line $LINENO "configure"
15237/* confdefs.h. */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h. */
15242$ac_includes_default
15243int
15244main ()
15245{
15246static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15247test_array [0] = 0
4f14bcd8 15248
e6cc62c6
VS
15249 ;
15250 return 0;
15251}
15252_ACEOF
15253rm -f conftest.$ac_objext
15254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_hi=$ac_mid; break
15266else
15267 echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270ac_lo=`expr $ac_mid + 1`
15271 if test $ac_lo -le $ac_mid; then
15272 ac_lo= ac_hi=
15273 break
15274 fi
15275 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15276fi
e6cc62c6
VS
15277rm -f conftest.$ac_objext conftest.$ac_ext
15278 done
15279else
15280 echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283cat >conftest.$ac_ext <<_ACEOF
15284#line $LINENO "configure"
15285/* confdefs.h. */
15286_ACEOF
15287cat confdefs.h >>conftest.$ac_ext
15288cat >>conftest.$ac_ext <<_ACEOF
15289/* end confdefs.h. */
15290$ac_includes_default
15291int
15292main ()
15293{
15294static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15295test_array [0] = 0
4f14bcd8 15296
e6cc62c6
VS
15297 ;
15298 return 0;
15299}
15300_ACEOF
15301rm -f conftest.$ac_objext
15302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15303 (eval $ac_compile) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_hi=-1 ac_mid=-1
15314 while :; do
15315 cat >conftest.$ac_ext <<_ACEOF
15316#line $LINENO "configure"
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322$ac_includes_default
15323int
15324main ()
15325{
15326static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15327test_array [0] = 0
5c6fa7d2 15328
e6cc62c6
VS
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext
15334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_lo=$ac_mid; break
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
15350ac_hi=`expr '(' $ac_mid ')' - 1`
15351 if test $ac_mid -le $ac_hi; then
15352 ac_lo= ac_hi=
15353 break
15354 fi
15355 ac_mid=`expr 2 '*' $ac_mid`
15356fi
15357rm -f conftest.$ac_objext conftest.$ac_ext
15358 done
247f5006 15359else
e6cc62c6
VS
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363ac_lo= ac_hi=
15364fi
15365rm -f conftest.$ac_objext conftest.$ac_ext
15366fi
15367rm -f conftest.$ac_objext conftest.$ac_ext
15368# Binary search between lo and hi bounds.
15369while test "x$ac_lo" != "x$ac_hi"; do
15370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15371 cat >conftest.$ac_ext <<_ACEOF
15372#line $LINENO "configure"
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378$ac_includes_default
15379int
15380main ()
15381{
15382static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15383test_array [0] = 0
15384
15385 ;
15386 return 0;
15387}
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15391 (eval $ac_compile) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_hi=$ac_mid
15402else
15403 echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
15406ac_lo=`expr '(' $ac_mid ')' + 1`
15407fi
15408rm -f conftest.$ac_objext conftest.$ac_ext
15409done
15410case $ac_lo in
15411?*) ac_cv_sizeof_long=$ac_lo;;
15412'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15413See \`config.log' for more details." >&5
15414echo "$as_me: error: cannot compute sizeof (long), 77
15415See \`config.log' for more details." >&2;}
15416 { (exit 1); exit 1; }; } ;;
15417esac
247f5006 15418else
e6cc62c6
VS
15419 if test "$cross_compiling" = yes; then
15420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15421See \`config.log' for more details." >&5
15422echo "$as_me: error: cannot run test program while cross compiling
15423See \`config.log' for more details." >&2;}
15424 { (exit 1); exit 1; }; }
15425else
15426 cat >conftest.$ac_ext <<_ACEOF
15427#line $LINENO "configure"
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433$ac_includes_default
15434long longval () { return (long) (sizeof (long)); }
15435unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15436#include <stdio.h>
e6cc62c6
VS
15437#include <stdlib.h>
15438int
15439main ()
247f5006 15440{
e6cc62c6
VS
15441
15442 FILE *f = fopen ("conftest.val", "w");
15443 if (! f)
15444 exit (1);
15445 if (((long) (sizeof (long))) < 0)
15446 {
15447 long i = longval ();
15448 if (i != ((long) (sizeof (long))))
15449 exit (1);
15450 fprintf (f, "%ld\n", i);
15451 }
15452 else
15453 {
15454 unsigned long i = ulongval ();
15455 if (i != ((long) (sizeof (long))))
15456 exit (1);
15457 fprintf (f, "%lu\n", i);
15458 }
15459 exit (ferror (f) || fclose (f) != 0);
15460
15461 ;
15462 return 0;
247f5006 15463}
e6cc62c6
VS
15464_ACEOF
15465rm -f conftest$ac_exeext
15466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_sizeof_long=`cat conftest.val`
15477else
15478 echo "$as_me: program exited with status $ac_status" >&5
15479echo "$as_me: failed program was:" >&5
15480sed 's/^/| /' conftest.$ac_ext >&5
15481
15482( exit $ac_status )
15483{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15484See \`config.log' for more details." >&5
15485echo "$as_me: error: cannot compute sizeof (long), 77
15486See \`config.log' for more details." >&2;}
15487 { (exit 1); exit 1; }; }
15488fi
15489rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15490fi
15491fi
15492rm -f conftest.val
247f5006 15493else
a0b9e27f 15494 ac_cv_sizeof_long=0
247f5006 15495fi
247f5006 15496fi
e6cc62c6
VS
15497echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15498echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15499cat >>confdefs.h <<_ACEOF
a0b9e27f 15500#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15501_ACEOF
247f5006 15502
a0b9e27f
MB
15503
15504
15505case "${host}" in
15506 arm-*-linux* )
e6cc62c6
VS
15507 echo "$as_me:$LINENO: checking for long long" >&5
15508echo $ECHO_N "checking for long long... $ECHO_C" >&6
15509if test "${ac_cv_type_long_long+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511else
15512 cat >conftest.$ac_ext <<_ACEOF
15513#line $LINENO "configure"
15514/* confdefs.h. */
15515_ACEOF
15516cat confdefs.h >>conftest.$ac_ext
15517cat >>conftest.$ac_ext <<_ACEOF
15518/* end confdefs.h. */
15519$ac_includes_default
15520int
15521main ()
15522{
15523if ((long long *) 0)
15524 return 0;
15525if (sizeof (long long))
15526 return 0;
15527 ;
15528 return 0;
15529}
15530_ACEOF
15531rm -f conftest.$ac_objext
15532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15533 (eval $ac_compile) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_type_long_long=yes
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548ac_cv_type_long_long=no
15549fi
15550rm -f conftest.$ac_objext conftest.$ac_ext
15551fi
15552echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15553echo "${ECHO_T}$ac_cv_type_long_long" >&6
15554
15555echo "$as_me:$LINENO: checking size of long long" >&5
15556echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15557if test "${ac_cv_sizeof_long_long+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559else
15560 if test "$ac_cv_type_long_long" = yes; then
15561 # The cast to unsigned long works around a bug in the HP C Compiler
15562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15564 # This bug is HP SR number 8606223364.
a0b9e27f 15565 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15566 # Depending upon the size, compute the lo and hi bounds.
15567cat >conftest.$ac_ext <<_ACEOF
15568#line $LINENO "configure"
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574$ac_includes_default
15575int
15576main ()
15577{
15578static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15579test_array [0] = 0
15580
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_lo=0 ac_mid=0
15598 while :; do
15599 cat >conftest.$ac_ext <<_ACEOF
15600#line $LINENO "configure"
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606$ac_includes_default
15607int
15608main ()
15609{
15610static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15611test_array [0] = 0
15612
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15619 (eval $ac_compile) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_hi=$ac_mid; break
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634ac_lo=`expr $ac_mid + 1`
15635 if test $ac_lo -le $ac_mid; then
15636 ac_lo= ac_hi=
15637 break
15638 fi
15639 ac_mid=`expr 2 '*' $ac_mid + 1`
15640fi
15641rm -f conftest.$ac_objext conftest.$ac_ext
15642 done
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647cat >conftest.$ac_ext <<_ACEOF
15648#line $LINENO "configure"
15649/* confdefs.h. */
15650_ACEOF
15651cat confdefs.h >>conftest.$ac_ext
15652cat >>conftest.$ac_ext <<_ACEOF
15653/* end confdefs.h. */
15654$ac_includes_default
15655int
15656main ()
15657{
15658static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15659test_array [0] = 0
15660
15661 ;
15662 return 0;
15663}
15664_ACEOF
15665rm -f conftest.$ac_objext
15666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_hi=-1 ac_mid=-1
15678 while :; do
15679 cat >conftest.$ac_ext <<_ACEOF
15680#line $LINENO "configure"
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686$ac_includes_default
15687int
15688main ()
15689{
15690static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15691test_array [0] = 0
15692
15693 ;
15694 return 0;
15695}
15696_ACEOF
15697rm -f conftest.$ac_objext
15698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15699 (eval $ac_compile) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_lo=$ac_mid; break
15710else
15711 echo "$as_me: failed program was:" >&5
15712sed 's/^/| /' conftest.$ac_ext >&5
15713
15714ac_hi=`expr '(' $ac_mid ')' - 1`
15715 if test $ac_mid -le $ac_hi; then
15716 ac_lo= ac_hi=
15717 break
15718 fi
15719 ac_mid=`expr 2 '*' $ac_mid`
15720fi
15721rm -f conftest.$ac_objext conftest.$ac_ext
15722 done
15723else
15724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727ac_lo= ac_hi=
15728fi
15729rm -f conftest.$ac_objext conftest.$ac_ext
15730fi
15731rm -f conftest.$ac_objext conftest.$ac_ext
15732# Binary search between lo and hi bounds.
15733while test "x$ac_lo" != "x$ac_hi"; do
15734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15735 cat >conftest.$ac_ext <<_ACEOF
15736#line $LINENO "configure"
15737/* confdefs.h. */
15738_ACEOF
15739cat confdefs.h >>conftest.$ac_ext
15740cat >>conftest.$ac_ext <<_ACEOF
15741/* end confdefs.h. */
15742$ac_includes_default
15743int
15744main ()
15745{
15746static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15747test_array [0] = 0
15748
15749 ;
15750 return 0;
15751}
15752_ACEOF
15753rm -f conftest.$ac_objext
15754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755 (eval $ac_compile) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_hi=$ac_mid
15766else
15767 echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770ac_lo=`expr '(' $ac_mid ')' + 1`
15771fi
15772rm -f conftest.$ac_objext conftest.$ac_ext
15773done
15774case $ac_lo in
15775?*) ac_cv_sizeof_long_long=$ac_lo;;
15776'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15777See \`config.log' for more details." >&5
15778echo "$as_me: error: cannot compute sizeof (long long), 77
15779See \`config.log' for more details." >&2;}
15780 { (exit 1); exit 1; }; } ;;
15781esac
a0b9e27f 15782else
e6cc62c6
VS
15783 if test "$cross_compiling" = yes; then
15784 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15785See \`config.log' for more details." >&5
15786echo "$as_me: error: cannot run test program while cross compiling
15787See \`config.log' for more details." >&2;}
15788 { (exit 1); exit 1; }; }
15789else
15790 cat >conftest.$ac_ext <<_ACEOF
15791#line $LINENO "configure"
15792/* confdefs.h. */
15793_ACEOF
15794cat confdefs.h >>conftest.$ac_ext
15795cat >>conftest.$ac_ext <<_ACEOF
15796/* end confdefs.h. */
15797$ac_includes_default
15798long longval () { return (long) (sizeof (long long)); }
15799unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15800#include <stdio.h>
e6cc62c6
VS
15801#include <stdlib.h>
15802int
15803main ()
247f5006 15804{
e6cc62c6
VS
15805
15806 FILE *f = fopen ("conftest.val", "w");
15807 if (! f)
15808 exit (1);
15809 if (((long) (sizeof (long long))) < 0)
15810 {
15811 long i = longval ();
15812 if (i != ((long) (sizeof (long long))))
15813 exit (1);
15814 fprintf (f, "%ld\n", i);
15815 }
15816 else
15817 {
15818 unsigned long i = ulongval ();
15819 if (i != ((long) (sizeof (long long))))
15820 exit (1);
15821 fprintf (f, "%lu\n", i);
15822 }
15823 exit (ferror (f) || fclose (f) != 0);
15824
15825 ;
15826 return 0;
247f5006 15827}
e6cc62c6
VS
15828_ACEOF
15829rm -f conftest$ac_exeext
15830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_sizeof_long_long=`cat conftest.val`
15841else
15842 echo "$as_me: program exited with status $ac_status" >&5
15843echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846( exit $ac_status )
15847{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15848See \`config.log' for more details." >&5
15849echo "$as_me: error: cannot compute sizeof (long long), 77
15850See \`config.log' for more details." >&2;}
15851 { (exit 1); exit 1; }; }
15852fi
15853rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15854fi
15855fi
15856rm -f conftest.val
7b4a847f 15857else
a0b9e27f 15858 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15859fi
15860fi
e6cc62c6
VS
15861echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15862echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15863cat >>confdefs.h <<_ACEOF
15864#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15865_ACEOF
15866
15867
15868 ;;
15869 *-hp-hpux* )
15870 echo "$as_me:$LINENO: checking for long long" >&5
15871echo $ECHO_N "checking for long long... $ECHO_C" >&6
15872if test "${ac_cv_type_long_long+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874else
15875 cat >conftest.$ac_ext <<_ACEOF
15876#line $LINENO "configure"
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883int
15884main ()
15885{
15886if ((long long *) 0)
15887 return 0;
15888if (sizeof (long long))
15889 return 0;
15890 ;
15891 return 0;
15892}
15893_ACEOF
15894rm -f conftest.$ac_objext
15895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_cv_type_long_long=yes
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911ac_cv_type_long_long=no
15912fi
15913rm -f conftest.$ac_objext conftest.$ac_ext
15914fi
15915echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15916echo "${ECHO_T}$ac_cv_type_long_long" >&6
15917
15918echo "$as_me:$LINENO: checking size of long long" >&5
15919echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15920if test "${ac_cv_sizeof_long_long+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15922else
15923 if test "$ac_cv_type_long_long" = yes; then
15924 # The cast to unsigned long works around a bug in the HP C Compiler
15925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15927 # This bug is HP SR number 8606223364.
15928 if test "$cross_compiling" = yes; then
15929 # Depending upon the size, compute the lo and hi bounds.
15930cat >conftest.$ac_ext <<_ACEOF
15931#line $LINENO "configure"
15932/* confdefs.h. */
15933_ACEOF
15934cat confdefs.h >>conftest.$ac_ext
15935cat >>conftest.$ac_ext <<_ACEOF
15936/* end confdefs.h. */
15937$ac_includes_default
15938int
15939main ()
15940{
15941static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15942test_array [0] = 0
15943
15944 ;
15945 return 0;
15946}
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15950 (eval $ac_compile) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_lo=0 ac_mid=0
15961 while :; do
15962 cat >conftest.$ac_ext <<_ACEOF
15963#line $LINENO "configure"
15964/* confdefs.h. */
15965_ACEOF
15966cat confdefs.h >>conftest.$ac_ext
15967cat >>conftest.$ac_ext <<_ACEOF
15968/* end confdefs.h. */
15969$ac_includes_default
15970int
15971main ()
15972{
15973static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15974test_array [0] = 0
8284b0c5 15975
e6cc62c6
VS
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext
15981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15982 (eval $ac_compile) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_hi=$ac_mid; break
15993else
15994 echo "$as_me: failed program was:" >&5
15995sed 's/^/| /' conftest.$ac_ext >&5
15996
15997ac_lo=`expr $ac_mid + 1`
15998 if test $ac_lo -le $ac_mid; then
15999 ac_lo= ac_hi=
16000 break
16001 fi
16002 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16003fi
e6cc62c6
VS
16004rm -f conftest.$ac_objext conftest.$ac_ext
16005 done
16006else
16007 echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010cat >conftest.$ac_ext <<_ACEOF
16011#line $LINENO "configure"
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017$ac_includes_default
16018int
16019main ()
16020{
16021static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16022test_array [0] = 0
a0b9e27f 16023
e6cc62c6
VS
16024 ;
16025 return 0;
16026}
16027_ACEOF
16028rm -f conftest.$ac_objext
16029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16030 (eval $ac_compile) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_hi=-1 ac_mid=-1
16041 while :; do
16042 cat >conftest.$ac_ext <<_ACEOF
16043#line $LINENO "configure"
16044/* confdefs.h. */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h. */
16049$ac_includes_default
16050int
16051main ()
16052{
16053static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16054test_array [0] = 0
a0b9e27f 16055
e6cc62c6
VS
16056 ;
16057 return 0;
16058}
16059_ACEOF
16060rm -f conftest.$ac_objext
16061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062 (eval $ac_compile) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_lo=$ac_mid; break
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077ac_hi=`expr '(' $ac_mid ')' - 1`
16078 if test $ac_mid -le $ac_hi; then
16079 ac_lo= ac_hi=
16080 break
16081 fi
16082 ac_mid=`expr 2 '*' $ac_mid`
16083fi
16084rm -f conftest.$ac_objext conftest.$ac_ext
16085 done
8284b0c5 16086else
e6cc62c6
VS
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090ac_lo= ac_hi=
16091fi
16092rm -f conftest.$ac_objext conftest.$ac_ext
16093fi
16094rm -f conftest.$ac_objext conftest.$ac_ext
16095# Binary search between lo and hi bounds.
16096while test "x$ac_lo" != "x$ac_hi"; do
16097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16098 cat >conftest.$ac_ext <<_ACEOF
16099#line $LINENO "configure"
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h. */
16105$ac_includes_default
16106int
16107main ()
16108{
16109static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16110test_array [0] = 0
16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_hi=$ac_mid
16129else
16130 echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132
16133ac_lo=`expr '(' $ac_mid ')' + 1`
16134fi
16135rm -f conftest.$ac_objext conftest.$ac_ext
16136done
16137case $ac_lo in
16138?*) ac_cv_sizeof_long_long=$ac_lo;;
16139'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16140See \`config.log' for more details." >&5
16141echo "$as_me: error: cannot compute sizeof (long long), 77
16142See \`config.log' for more details." >&2;}
16143 { (exit 1); exit 1; }; } ;;
16144esac
8284b0c5 16145else
e6cc62c6
VS
16146 if test "$cross_compiling" = yes; then
16147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16148See \`config.log' for more details." >&5
16149echo "$as_me: error: cannot run test program while cross compiling
16150See \`config.log' for more details." >&2;}
16151 { (exit 1); exit 1; }; }
16152else
16153 cat >conftest.$ac_ext <<_ACEOF
16154#line $LINENO "configure"
16155/* confdefs.h. */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h. */
16160$ac_includes_default
16161long longval () { return (long) (sizeof (long long)); }
16162unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16163#include <stdio.h>
e6cc62c6
VS
16164#include <stdlib.h>
16165int
16166main ()
8284b0c5 16167{
e6cc62c6
VS
16168
16169 FILE *f = fopen ("conftest.val", "w");
16170 if (! f)
16171 exit (1);
16172 if (((long) (sizeof (long long))) < 0)
16173 {
16174 long i = longval ();
16175 if (i != ((long) (sizeof (long long))))
16176 exit (1);
16177 fprintf (f, "%ld\n", i);
16178 }
16179 else
16180 {
16181 unsigned long i = ulongval ();
16182 if (i != ((long) (sizeof (long long))))
16183 exit (1);
16184 fprintf (f, "%lu\n", i);
16185 }
16186 exit (ferror (f) || fclose (f) != 0);
16187
16188 ;
16189 return 0;
8284b0c5 16190}
e6cc62c6
VS
16191_ACEOF
16192rm -f conftest$ac_exeext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_sizeof_long_long=`cat conftest.val`
16204else
16205 echo "$as_me: program exited with status $ac_status" >&5
16206echo "$as_me: failed program was:" >&5
16207sed 's/^/| /' conftest.$ac_ext >&5
16208
16209( exit $ac_status )
16210{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16211See \`config.log' for more details." >&5
16212echo "$as_me: error: cannot compute sizeof (long long), 77
16213See \`config.log' for more details." >&2;}
16214 { (exit 1); exit 1; }; }
16215fi
16216rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16217fi
16218fi
16219rm -f conftest.val
5c6fa7d2
RR
16220else
16221 ac_cv_sizeof_long_long=0
52127426 16222fi
4f57cf11 16223fi
e6cc62c6
VS
16224echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16225echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16226cat >>confdefs.h <<_ACEOF
4f57cf11 16227#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16228_ACEOF
4f57cf11
GD
16229
16230
16231 if test "$ac_cv_sizeof_long_long" != "0"; then
16232 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16233 fi
16234 ;;
16235 * )
e6cc62c6
VS
16236 echo "$as_me:$LINENO: checking for long long" >&5
16237echo $ECHO_N "checking for long long... $ECHO_C" >&6
16238if test "${ac_cv_type_long_long+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240else
16241 cat >conftest.$ac_ext <<_ACEOF
16242#line $LINENO "configure"
16243/* confdefs.h. */
16244_ACEOF
16245cat confdefs.h >>conftest.$ac_ext
16246cat >>conftest.$ac_ext <<_ACEOF
16247/* end confdefs.h. */
16248$ac_includes_default
16249int
16250main ()
16251{
16252if ((long long *) 0)
16253 return 0;
16254if (sizeof (long long))
16255 return 0;
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260rm -f conftest.$ac_objext
16261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_type_long_long=yes
16273else
16274 echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277ac_cv_type_long_long=no
16278fi
16279rm -f conftest.$ac_objext conftest.$ac_ext
16280fi
16281echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16282echo "${ECHO_T}$ac_cv_type_long_long" >&6
16283
16284echo "$as_me:$LINENO: checking size of long long" >&5
16285echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16286if test "${ac_cv_sizeof_long_long+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288else
16289 if test "$ac_cv_type_long_long" = yes; then
16290 # The cast to unsigned long works around a bug in the HP C Compiler
16291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16293 # This bug is HP SR number 8606223364.
4f57cf11 16294 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16295 # Depending upon the size, compute the lo and hi bounds.
16296cat >conftest.$ac_ext <<_ACEOF
16297#line $LINENO "configure"
16298/* confdefs.h. */
16299_ACEOF
16300cat confdefs.h >>conftest.$ac_ext
16301cat >>conftest.$ac_ext <<_ACEOF
16302/* end confdefs.h. */
16303$ac_includes_default
16304int
16305main ()
16306{
16307static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16308test_array [0] = 0
16309
16310 ;
16311 return 0;
16312}
16313_ACEOF
16314rm -f conftest.$ac_objext
16315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_lo=0 ac_mid=0
16327 while :; do
16328 cat >conftest.$ac_ext <<_ACEOF
16329#line $LINENO "configure"
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336int
16337main ()
16338{
16339static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16340test_array [0] = 0
16341
16342 ;
16343 return 0;
16344}
16345_ACEOF
16346rm -f conftest.$ac_objext
16347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348 (eval $ac_compile) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_hi=$ac_mid; break
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_lo=`expr $ac_mid + 1`
16364 if test $ac_lo -le $ac_mid; then
16365 ac_lo= ac_hi=
16366 break
16367 fi
16368 ac_mid=`expr 2 '*' $ac_mid + 1`
16369fi
16370rm -f conftest.$ac_objext conftest.$ac_ext
16371 done
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376cat >conftest.$ac_ext <<_ACEOF
16377#line $LINENO "configure"
16378/* confdefs.h. */
16379_ACEOF
16380cat confdefs.h >>conftest.$ac_ext
16381cat >>conftest.$ac_ext <<_ACEOF
16382/* end confdefs.h. */
16383$ac_includes_default
16384int
16385main ()
16386{
16387static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16388test_array [0] = 0
16389
16390 ;
16391 return 0;
16392}
16393_ACEOF
16394rm -f conftest.$ac_objext
16395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16396 (eval $ac_compile) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_hi=-1 ac_mid=-1
16407 while :; do
16408 cat >conftest.$ac_ext <<_ACEOF
16409#line $LINENO "configure"
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415$ac_includes_default
16416int
16417main ()
16418{
16419static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16420test_array [0] = 0
16421
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16428 (eval $ac_compile) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_lo=$ac_mid; break
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443ac_hi=`expr '(' $ac_mid ')' - 1`
16444 if test $ac_mid -le $ac_hi; then
16445 ac_lo= ac_hi=
16446 break
16447 fi
16448 ac_mid=`expr 2 '*' $ac_mid`
16449fi
16450rm -f conftest.$ac_objext conftest.$ac_ext
16451 done
4f57cf11 16452else
e6cc62c6
VS
16453 echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456ac_lo= ac_hi=
16457fi
16458rm -f conftest.$ac_objext conftest.$ac_ext
16459fi
16460rm -f conftest.$ac_objext conftest.$ac_ext
16461# Binary search between lo and hi bounds.
16462while test "x$ac_lo" != "x$ac_hi"; do
16463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16464 cat >conftest.$ac_ext <<_ACEOF
16465#line $LINENO "configure"
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472int
16473main ()
16474{
16475static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16476test_array [0] = 0
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_hi=$ac_mid
16495else
16496 echo "$as_me: failed program was:" >&5
16497sed 's/^/| /' conftest.$ac_ext >&5
16498
16499ac_lo=`expr '(' $ac_mid ')' + 1`
16500fi
16501rm -f conftest.$ac_objext conftest.$ac_ext
16502done
16503case $ac_lo in
16504?*) ac_cv_sizeof_long_long=$ac_lo;;
16505'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16506See \`config.log' for more details." >&5
16507echo "$as_me: error: cannot compute sizeof (long long), 77
16508See \`config.log' for more details." >&2;}
16509 { (exit 1); exit 1; }; } ;;
16510esac
16511else
16512 if test "$cross_compiling" = yes; then
16513 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16514See \`config.log' for more details." >&5
16515echo "$as_me: error: cannot run test program while cross compiling
16516See \`config.log' for more details." >&2;}
16517 { (exit 1); exit 1; }; }
16518else
16519 cat >conftest.$ac_ext <<_ACEOF
16520#line $LINENO "configure"
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527long longval () { return (long) (sizeof (long long)); }
16528unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16529#include <stdio.h>
e6cc62c6
VS
16530#include <stdlib.h>
16531int
16532main ()
4f57cf11 16533{
e6cc62c6
VS
16534
16535 FILE *f = fopen ("conftest.val", "w");
16536 if (! f)
16537 exit (1);
16538 if (((long) (sizeof (long long))) < 0)
16539 {
16540 long i = longval ();
16541 if (i != ((long) (sizeof (long long))))
16542 exit (1);
16543 fprintf (f, "%ld\n", i);
16544 }
16545 else
16546 {
16547 unsigned long i = ulongval ();
16548 if (i != ((long) (sizeof (long long))))
16549 exit (1);
16550 fprintf (f, "%lu\n", i);
16551 }
16552 exit (ferror (f) || fclose (f) != 0);
16553
16554 ;
16555 return 0;
4f57cf11 16556}
e6cc62c6
VS
16557_ACEOF
16558rm -f conftest$ac_exeext
16559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_cv_sizeof_long_long=`cat conftest.val`
16570else
16571 echo "$as_me: program exited with status $ac_status" >&5
16572echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575( exit $ac_status )
16576{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16577See \`config.log' for more details." >&5
16578echo "$as_me: error: cannot compute sizeof (long long), 77
16579See \`config.log' for more details." >&2;}
16580 { (exit 1); exit 1; }; }
16581fi
16582rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16583fi
16584fi
16585rm -f conftest.val
4f57cf11 16586else
4f57cf11
GD
16587 ac_cv_sizeof_long_long=0
16588fi
7b4a847f 16589fi
e6cc62c6
VS
16590echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16591echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16592cat >>confdefs.h <<_ACEOF
21d1c967 16593#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16594_ACEOF
9e691f46 16595
8284b0c5 16596
21d1c967
GD
16597esac
16598
e6cc62c6
VS
16599echo "$as_me:$LINENO: checking size of wchar_t" >&5
16600echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16601if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16603else
e6cc62c6 16604
21d1c967 16605 if test "$cross_compiling" = yes; then
e6cc62c6 16606
2b5f62a0
VZ
16607 case "${host}" in
16608 *-pc-msdosdjgpp )
16609 wx_cv_sizeof_wchar_t=0
16610 ;;
16611 * )
16612 wx_cv_sizeof_wchar_t=4
16613 ;;
16614 esac
e6cc62c6
VS
16615
16616
6f72b082 16617else
e6cc62c6
VS
16618 cat >conftest.$ac_ext <<_ACEOF
16619#line $LINENO "configure"
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
21d1c967 16625
2b5f62a0
VZ
16626 /* DJGPP only has fake wchar_t: */
16627 #ifdef __DJGPP__
16628 # error "fake wchar_t"
16629 #endif
21d1c967
GD
16630 #ifdef HAVE_WCHAR_H
16631 # ifdef __CYGWIN__
16632 # include <stddef.h>
16633 # endif
16634 # include <wchar.h>
16635 #endif
16636 #ifdef HAVE_STDLIB_H
16637 # include <stdlib.h>
16638 #endif
16639 #include <stdio.h>
16640 int main()
16641 {
16642 FILE *f=fopen("conftestval", "w");
16643 if (!f) exit(1);
16644 fprintf(f, "%i", sizeof(wchar_t));
16645 exit(0);
16646 }
e6cc62c6
VS
16647
16648_ACEOF
16649rm -f conftest$ac_exeext
16650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
21d1c967 16660 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16661else
e6cc62c6
VS
16662 echo "$as_me: program exited with status $ac_status" >&5
16663echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666( exit $ac_status )
16667wx_cv_sizeof_wchar_t=0
6f72b082 16668fi
e6cc62c6 16669rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16670fi
6f72b082 16671
3f345b47 16672fi
e6cc62c6
VS
16673echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16674echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16675
e6cc62c6 16676cat >>confdefs.h <<_ACEOF
21d1c967 16677#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16678_ACEOF
90dd450c 16679
8284b0c5 16680
21d1c967
GD
16681# Check whether --enable-largefile or --disable-largefile was given.
16682if test "${enable_largefile+set}" = set; then
16683 enableval="$enable_largefile"
3f345b47 16684
e6cc62c6 16685fi;
21d1c967
GD
16686if test "$enable_largefile" != no; then
16687 wx_largefile=no
e6cc62c6
VS
16688
16689 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16690echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16691if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694
16695 cat >conftest.$ac_ext <<_ACEOF
16696#line $LINENO "configure"
16697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h. */
21d1c967
GD
16702#define _FILE_OFFSET_BITS 64
16703 #include <sys/types.h>
e6cc62c6
VS
16704int
16705main ()
16706{
21d1c967
GD
16707typedef struct {
16708 unsigned int field: sizeof(off_t) == 8;
16709} wxlf;
16710
e6cc62c6
VS
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
21d1c967 16727 ac_cv_sys_file_offset_bits=64
f6bcfd97 16728else
e6cc62c6
VS
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732ac_cv_sys_file_offset_bits=no
247f5006 16733fi
e6cc62c6
VS
16734rm -f conftest.$ac_objext conftest.$ac_ext
16735
a0b9e27f 16736
e6cc62c6
VS
16737fi
16738echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16739echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16740
16741 if test "$ac_cv_sys_file_offset_bits" != no; then
16742 wx_largefile=yes
e6cc62c6 16743 cat >>confdefs.h <<_ACEOF
21d1c967 16744#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16745_ACEOF
21d1c967
GD
16746
16747 fi
16748
16749 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16750
16751 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16752echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16753if test "${ac_cv_sys_large_files+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756
16757 cat >conftest.$ac_ext <<_ACEOF
16758#line $LINENO "configure"
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
21d1c967
GD
16764#define _LARGE_FILES 1
16765 #include <sys/types.h>
e6cc62c6
VS
16766int
16767main ()
16768{
21d1c967
GD
16769typedef struct {
16770 unsigned int field: sizeof(off_t) == 8;
16771} wxlf;
16772
e6cc62c6
VS
16773 ;
16774 return 0;
16775}
16776_ACEOF
16777rm -f conftest.$ac_objext
16778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779 (eval $ac_compile) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
21d1c967 16789 ac_cv_sys_large_files=1
f6bcfd97 16790else
e6cc62c6
VS
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794ac_cv_sys_large_files=no
247f5006 16795fi
e6cc62c6 16796rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16797
e6cc62c6
VS
16798
16799fi
16800echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16801echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16802
21d1c967
GD
16803 if test "$ac_cv_sys_large_files" != no; then
16804 wx_largefile=yes
e6cc62c6 16805 cat >>confdefs.h <<_ACEOF
21d1c967 16806#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16807_ACEOF
90dd450c 16808
90dd450c
VZ
16809 fi
16810
90dd450c 16811 fi
90dd450c 16812
e6cc62c6
VS
16813 echo "$as_me:$LINENO: checking if large file support is available" >&5
16814echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16815 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16816 cat >>confdefs.h <<\_ACEOF
21d1c967 16817#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16818_ACEOF
90dd450c 16819
90dd450c 16820 fi
e6cc62c6
VS
16821 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16822echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16823fi
90dd450c 16824
8284b0c5 16825
f02444d0 16826if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16827 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16828 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16829 else
e26c13cf 16830 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16831 fi
e26c13cf 16832 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16833fi
16834
e6cc62c6
VS
16835echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16836echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16837if test "${ac_cv_c_bigendian+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16839else
21d1c967
GD
16840 ac_cv_c_bigendian=unknown
16841# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16842cat >conftest.$ac_ext <<_ACEOF
16843#line $LINENO "configure"
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
21d1c967
GD
16849#include <sys/types.h>
16850#include <sys/param.h>
e6cc62c6
VS
16851int
16852main ()
16853{
21d1c967
GD
16854
16855#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16856 bogus endian macros
16857#endif
e6cc62c6
VS
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862rm -f conftest.$ac_objext
16863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
21d1c967 16874 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16875cat >conftest.$ac_ext <<_ACEOF
16876#line $LINENO "configure"
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
21d1c967
GD
16882#include <sys/types.h>
16883#include <sys/param.h>
e6cc62c6
VS
16884int
16885main ()
16886{
21d1c967
GD
16887
16888#if BYTE_ORDER != BIG_ENDIAN
16889 not big endian
16890#endif
e6cc62c6
VS
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext
16896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897 (eval $ac_compile) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
21d1c967 16907 ac_cv_c_bigendian=yes
3f345b47 16908else
e6cc62c6
VS
16909 echo "$as_me: failed program was:" >&5
16910sed 's/^/| /' conftest.$ac_ext >&5
16911
16912ac_cv_c_bigendian=no
3f345b47 16913fi
e6cc62c6 16914rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16915else
e6cc62c6
VS
16916 echo "$as_me: failed program was:" >&5
16917sed 's/^/| /' conftest.$ac_ext >&5
16918
3f345b47 16919fi
e6cc62c6 16920rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16921if test $ac_cv_c_bigendian = unknown; then
16922if test "$cross_compiling" = yes; then
16923 ac_cv_c_bigendian=unknown
10f2d63a 16924else
e6cc62c6
VS
16925 cat >conftest.$ac_ext <<_ACEOF
16926#line $LINENO "configure"
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
21d1c967
GD
16932main () {
16933 /* Are we little or big endian? From Harbison&Steele. */
16934 union
16935 {
16936 long l;
16937 char c[sizeof (long)];
16938 } u;
16939 u.l = 1;
16940 exit (u.c[sizeof (long) - 1] == 1);
16941}
e6cc62c6
VS
16942_ACEOF
16943rm -f conftest$ac_exeext
16944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16945 (eval $ac_link) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
21d1c967 16954 ac_cv_c_bigendian=no
3f345b47 16955else
e6cc62c6
VS
16956 echo "$as_me: program exited with status $ac_status" >&5
16957echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
16960( exit $ac_status )
16961ac_cv_c_bigendian=yes
247f5006 16962fi
e6cc62c6 16963rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16964fi
3f345b47 16965fi
8168de4c 16966fi
e6cc62c6
VS
16967echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16968echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16969if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16970 { 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
16971echo "$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
16972fi
16973if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16974 cat >>confdefs.h <<\_ACEOF
247f5006 16975#define WORDS_BIGENDIAN 1
e6cc62c6 16976_ACEOF
247f5006
VZ
16977
16978fi
16979
16980
e6cc62c6
VS
16981
16982ac_ext=cc
16983ac_cpp='$CXXCPP $CPPFLAGS'
16984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16987echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16988echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16989if test -z "$CXXCPP"; then
e6cc62c6
VS
16990 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 # Double quotes because CXXCPP needs to be expanded
16994 for CXXCPP in "$CXX -E" "/lib/cpp"
16995 do
16996 ac_preproc_ok=false
16997for ac_cxx_preproc_warn_flag in '' yes
16998do
16999 # Use a header file that comes with gcc, so configuring glibc
17000 # with a fresh cross-compiler works.
17001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 # <limits.h> exists even on freestanding compilers.
17003 # On the NeXT, cc -E runs the code through the compiler's parser,
17004 # not just through cpp. "Syntax error" is here to catch this case.
17005 cat >conftest.$ac_ext <<_ACEOF
17006#line $LINENO "configure"
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012#ifdef __STDC__
17013# include <limits.h>
17014#else
17015# include <assert.h>
17016#endif
17017 Syntax error
17018_ACEOF
17019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } >/dev/null; then
17027 if test -s conftest.err; then
17028 ac_cpp_err=$ac_cxx_preproc_warn_flag
17029 else
17030 ac_cpp_err=
17031 fi
247f5006 17032else
e6cc62c6
VS
17033 ac_cpp_err=yes
17034fi
17035if test -z "$ac_cpp_err"; then
17036 :
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 # Broken: fails on valid input.
17042continue
17043fi
17044rm -f conftest.err conftest.$ac_ext
17045
17046 # OK, works on sane cases. Now check whether non-existent headers
17047 # can be detected and how.
17048 cat >conftest.$ac_ext <<_ACEOF
17049#line $LINENO "configure"
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055#include <ac_nonexistent.h>
17056_ACEOF
17057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } >/dev/null; then
17065 if test -s conftest.err; then
17066 ac_cpp_err=$ac_cxx_preproc_warn_flag
17067 else
17068 ac_cpp_err=
17069 fi
17070else
17071 ac_cpp_err=yes
17072fi
17073if test -z "$ac_cpp_err"; then
17074 # Broken: success on invalid input.
17075continue
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080 # Passes both tests.
17081ac_preproc_ok=:
17082break
17083fi
17084rm -f conftest.err conftest.$ac_ext
17085
17086done
17087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17088rm -f conftest.err conftest.$ac_ext
17089if $ac_preproc_ok; then
17090 break
17091fi
17092
17093 done
17094 ac_cv_prog_CXXCPP=$CXXCPP
17095
17096fi
17097 CXXCPP=$ac_cv_prog_CXXCPP
17098else
17099 ac_cv_prog_CXXCPP=$CXXCPP
17100fi
17101echo "$as_me:$LINENO: result: $CXXCPP" >&5
17102echo "${ECHO_T}$CXXCPP" >&6
17103ac_preproc_ok=false
17104for ac_cxx_preproc_warn_flag in '' yes
17105do
17106 # Use a header file that comes with gcc, so configuring glibc
17107 # with a fresh cross-compiler works.
17108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 # <limits.h> exists even on freestanding compilers.
17110 # On the NeXT, cc -E runs the code through the compiler's parser,
17111 # not just through cpp. "Syntax error" is here to catch this case.
17112 cat >conftest.$ac_ext <<_ACEOF
17113#line $LINENO "configure"
17114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
17119#ifdef __STDC__
17120# include <limits.h>
17121#else
17122# include <assert.h>
17123#endif
17124 Syntax error
17125_ACEOF
17126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } >/dev/null; then
17134 if test -s conftest.err; then
17135 ac_cpp_err=$ac_cxx_preproc_warn_flag
17136 else
17137 ac_cpp_err=
17138 fi
17139else
17140 ac_cpp_err=yes
17141fi
17142if test -z "$ac_cpp_err"; then
21d1c967 17143 :
698dcdb6 17144else
e6cc62c6
VS
17145 echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 # Broken: fails on valid input.
17149continue
17150fi
17151rm -f conftest.err conftest.$ac_ext
17152
17153 # OK, works on sane cases. Now check whether non-existent headers
17154 # can be detected and how.
17155 cat >conftest.$ac_ext <<_ACEOF
17156#line $LINENO "configure"
17157/* confdefs.h. */
17158_ACEOF
17159cat confdefs.h >>conftest.$ac_ext
17160cat >>conftest.$ac_ext <<_ACEOF
17161/* end confdefs.h. */
17162#include <ac_nonexistent.h>
17163_ACEOF
17164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev/null; then
17172 if test -s conftest.err; then
17173 ac_cpp_err=$ac_cxx_preproc_warn_flag
17174 else
17175 ac_cpp_err=
17176 fi
17177else
17178 ac_cpp_err=yes
247f5006 17179fi
e6cc62c6
VS
17180if test -z "$ac_cpp_err"; then
17181 # Broken: success on invalid input.
17182continue
17183else
17184 echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 # Passes both tests.
17188ac_preproc_ok=:
17189break
328a083c 17190fi
e6cc62c6
VS
17191rm -f conftest.err conftest.$ac_ext
17192
17193done
17194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17195rm -f conftest.err conftest.$ac_ext
17196if $ac_preproc_ok; then
17197 :
17198else
17199 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17200See \`config.log' for more details." >&5
17201echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17202See \`config.log' for more details." >&2;}
17203 { (exit 1); exit 1; }; }
90dd450c 17204fi
e6cc62c6
VS
17205
17206ac_ext=cc
17207ac_cpp='$CXXCPP $CPPFLAGS'
17208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17211
1e6feb95 17212
1725144d 17213
21d1c967 17214 if test "$cross_compiling" = "yes"; then
e6cc62c6 17215 cat >>confdefs.h <<\_ACEOF
21d1c967 17216#define wxUSE_IOSTREAMH 1
e6cc62c6 17217_ACEOF
ab9b9eab 17218
21d1c967 17219 else
e6cc62c6
VS
17220
17221
17222 ac_ext=cc
5c6fa7d2 17223ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17227
52127426 17228
247f5006 17229
e6cc62c6 17230for ac_header in iostream
21d1c967 17231do
e6cc62c6
VS
17232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17233if eval "test \"\${$as_ac_Header+set}\" = set"; then
17234 echo "$as_me:$LINENO: checking for $ac_header" >&5
17235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17236if eval "test \"\${$as_ac_Header+set}\" = set"; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238fi
17239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17241else
17242 # Is the header compilable?
17243echo "$as_me:$LINENO: checking $ac_header usability" >&5
17244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17245cat >conftest.$ac_ext <<_ACEOF
17246#line $LINENO "configure"
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252$ac_includes_default
17253#include <$ac_header>
17254_ACEOF
17255rm -f conftest.$ac_objext
17256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17257 (eval $ac_compile) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_header_compiler=yes
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272ac_header_compiler=no
17273fi
17274rm -f conftest.$ac_objext conftest.$ac_ext
17275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276echo "${ECHO_T}$ac_header_compiler" >&6
17277
17278# Is the header present?
17279echo "$as_me:$LINENO: checking $ac_header presence" >&5
17280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17281cat >conftest.$ac_ext <<_ACEOF
17282#line $LINENO "configure"
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288#include <$ac_header>
17289_ACEOF
17290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17292 ac_status=$?
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } >/dev/null; then
17298 if test -s conftest.err; then
17299 ac_cpp_err=$ac_cxx_preproc_warn_flag
17300 else
17301 ac_cpp_err=
17302 fi
17303else
17304 ac_cpp_err=yes
17305fi
17306if test -z "$ac_cpp_err"; then
17307 ac_header_preproc=yes
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_header_preproc=no
17313fi
17314rm -f conftest.err conftest.$ac_ext
17315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316echo "${ECHO_T}$ac_header_preproc" >&6
17317
17318# So? What about this header?
17319case $ac_header_compiler:$ac_header_preproc in
17320 yes:no )
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17325 (
17326 cat <<\_ASBOX
17327## ------------------------------------ ##
17328## Report this to bug-autoconf@gnu.org. ##
17329## ------------------------------------ ##
17330_ASBOX
17331 ) |
17332 sed "s/^/$as_me: WARNING: /" >&2
17333 ;;
17334 no:yes )
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17341 (
17342 cat <<\_ASBOX
17343## ------------------------------------ ##
17344## Report this to bug-autoconf@gnu.org. ##
17345## ------------------------------------ ##
17346_ASBOX
17347 ) |
17348 sed "s/^/$as_me: WARNING: /" >&2
17349 ;;
17350esac
17351echo "$as_me:$LINENO: checking for $ac_header" >&5
17352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17353if eval "test \"\${$as_ac_Header+set}\" = set"; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355else
17356 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17357fi
e6cc62c6
VS
17358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17360
90dd450c 17361fi
e6cc62c6
VS
17362if test `eval echo '${'$as_ac_Header'}'` = yes; then
17363 cat >>confdefs.h <<_ACEOF
17364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17365_ACEOF
17366
90dd450c 17367fi
e6cc62c6 17368
21d1c967 17369done
10f2d63a 17370
8284b0c5 17371
21d1c967
GD
17372 if test "$ac_cv_header_iostream" = "yes" ; then
17373 :
17374 else
e6cc62c6 17375 cat >>confdefs.h <<\_ACEOF
21d1c967 17376#define wxUSE_IOSTREAMH 1
e6cc62c6 17377_ACEOF
788deba1 17378
90dd450c 17379 fi
ab9b9eab 17380
21d1c967 17381 ac_ext=c
21d1c967 17382ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17386
21d1c967 17387 fi
ab9b9eab 17388
52127426 17389
8284b0c5 17390
e6cc62c6
VS
17391 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17392echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17393if test "${wx_cv_cpp_bool+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17395else
e6cc62c6
VS
17396
17397
17398
17399 ac_ext=cc
5c6fa7d2 17400ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17404
8284b0c5 17405
e6cc62c6
VS
17406 cat >conftest.$ac_ext <<_ACEOF
17407#line $LINENO "configure"
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
21d1c967 17413
e6cc62c6
VS
17414
17415int
17416main ()
17417{
21d1c967
GD
17418
17419 bool b = true;
17420
17421 return 0;
e6cc62c6
VS
17422
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427rm -f conftest.$ac_objext
17428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -s conftest.$ac_objext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439
21d1c967 17440 wx_cv_cpp_bool=yes
e6cc62c6 17441
698dcdb6 17442else
e6cc62c6
VS
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446
21d1c967 17447 wx_cv_cpp_bool=no
e6cc62c6
VS
17448
17449
698dcdb6 17450fi
e6cc62c6 17451rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17452
17453 ac_ext=c
21d1c967 17454ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17458
a0b9e27f 17459
e6cc62c6
VS
17460fi
17461echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17462echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17463
17464 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17465 cat >>confdefs.h <<\_ACEOF
21d1c967 17466#define HAVE_BOOL 1
e6cc62c6 17467_ACEOF
ab9b9eab 17468
21d1c967
GD
17469 fi
17470
52127426 17471
8284b0c5 17472
e6cc62c6
VS
17473 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17474echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17475if test "${wx_cv_explicit+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17477else
e6cc62c6
VS
17478
17479
17480
17481 ac_ext=cc
5c6fa7d2 17482ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17486
8284b0c5 17487
e6cc62c6
VS
17488 cat >conftest.$ac_ext <<_ACEOF
17489#line $LINENO "configure"
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
986ecc86
VZ
17495
17496 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17497
17498int
17499main ()
17500{
986ecc86
VZ
17501
17502 return 0;
e6cc62c6
VS
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -s conftest.$ac_objext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520
17521 cat >conftest.$ac_ext <<_ACEOF
17522#line $LINENO "configure"
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
986ecc86
VZ
17528
17529 class Foo { public: explicit Foo(int) {} };
17530 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17531
17532int
17533main ()
17534{
986ecc86
VZ
17535
17536 TakeFoo(17);
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
986ecc86
VZ
17555 wx_cv_explicit=no
17556else
e6cc62c6
VS
17557 echo "$as_me: failed program was:" >&5
17558sed 's/^/| /' conftest.$ac_ext >&5
17559
17560wx_cv_explicit=yes
17561
986ecc86 17562fi
e6cc62c6
VS
17563rm -f conftest.$ac_objext conftest.$ac_ext
17564
986ecc86 17565else
e6cc62c6
VS
17566 echo "$as_me: failed program was:" >&5
17567sed 's/^/| /' conftest.$ac_ext >&5
17568
17569wx_cv_explicit=no
17570
986ecc86 17571fi
e6cc62c6 17572rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17573
17574 ac_ext=c
986ecc86 17575ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17579
a0b9e27f 17580
e6cc62c6
VS
17581fi
17582echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17583echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17584
17585 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17586 cat >>confdefs.h <<\_ACEOF
986ecc86 17587#define HAVE_EXPLICIT 1
e6cc62c6 17588_ACEOF
986ecc86
VZ
17589
17590 fi
17591
8284b0c5 17592
e6cc62c6
VS
17593echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17594echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17595if test "${ac_cv_cxx_const_cast+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17597else
521196a2 17598
521196a2 17599
e6cc62c6
VS
17600 ac_ext=cc
17601ac_cpp='$CXXCPP $CPPFLAGS'
17602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605
17606 cat >conftest.$ac_ext <<_ACEOF
17607#line $LINENO "configure"
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613
17614int
17615main ()
17616{
521196a2 17617int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17618 ;
17619 return 0;
17620}
17621_ACEOF
17622rm -f conftest.$ac_objext
17623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
521196a2
MB
17634 ac_cv_cxx_const_cast=yes
17635else
e6cc62c6
VS
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639ac_cv_cxx_const_cast=no
521196a2 17640fi
e6cc62c6 17641rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17642 ac_ext=c
521196a2 17643ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17647
17648
17649fi
e6cc62c6
VS
17650echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17651echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17652if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17653
17654cat >>confdefs.h <<\_ACEOF
17655#define HAVE_CONST_CAST
17656_ACEOF
521196a2
MB
17657
17658fi
17659
17660
e87b7833
MB
17661if test "$wxUSE_STL" = "yes"; then
17662 ac_ext=cc
17663ac_cpp='$CXXCPP $CPPFLAGS'
17664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17667
17668
17669 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17670echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17671 cat >conftest.$ac_ext <<_ACEOF
17672#line $LINENO "configure"
17673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
17678#include <string>
17679 #include <functional>
17680 #include <algorithm>
17681 #include <vector>
17682 #include <list>
17683int
17684main ()
17685{
17686std::vector<int> moo;
17687 std::list<int> foo;
17688 std::vector<int>::iterator it =
17689 std::find_if(moo.begin(), moo.end(),
17690 std::bind2nd(std::less<int>(), 3));
17691 ;
17692 return 0;
17693}
17694_ACEOF
17695rm -f conftest.$ac_objext
17696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17697 (eval $ac_compile) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
17701 { ac_try='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 echo "$as_me:$LINENO: result: yes" >&5
17708echo "${ECHO_T}yes" >&6
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713echo "$as_me:$LINENO: result: no" >&5
17714echo "${ECHO_T}no" >&6
17715 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17716echo "$as_me: error: Basic STL functionality missing" >&2;}
17717 { (exit 1); exit 1; }; }
17718fi
17719rm -f conftest.$ac_objext conftest.$ac_ext
17720
17721 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17722echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17724#line $LINENO "configure"
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730#include <string>
17731int
17732main ()
17733{
17734std::wstring foo;
17735 ;
17736 return 0;
17737}
17738_ACEOF
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -s conftest.$ac_objext'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 echo "$as_me:$LINENO: result: yes" >&5
17752echo "${ECHO_T}yes" >&6
17753 cat >>confdefs.h <<\_ACEOF
17754#define HAVE_STD_WSTRING 1
17755_ACEOF
17756
17757else
17758 echo "$as_me: failed program was:" >&5
17759sed 's/^/| /' conftest.$ac_ext >&5
17760
17761echo "$as_me:$LINENO: result: no" >&5
17762echo "${ECHO_T}no" >&6
17763fi
17764rm -f conftest.$ac_objext conftest.$ac_ext
17765
17766 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17767echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17769#line $LINENO "configure"
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775#include <string>
17776int
17777main ()
17778{
17779std::string foo, bar;
17780 foo.compare(bar);
17781 foo.compare(1, 1, bar);
17782 foo.compare(1, 1, bar, 1, 1);
17783 foo.compare("");
17784 foo.compare(1, 1, "");
17785 foo.compare(1, 1, "", 2);
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext
17791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17792 (eval $ac_compile) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 echo "$as_me:$LINENO: result: yes" >&5
17803echo "${ECHO_T}yes" >&6
17804 cat >>confdefs.h <<\_ACEOF
17805#define HAVE_STD_STRING_COMPARE 1
17806_ACEOF
17807
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812echo "$as_me:$LINENO: result: no" >&5
17813echo "${ECHO_T}no" >&6
17814fi
17815rm -f conftest.$ac_objext conftest.$ac_ext
17816
17817 ac_ext=c
17818ac_cpp='$CPP $CPPFLAGS'
17819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17821ac_compiler_gnu=$ac_cv_c_compiler_gnu
17822
17823fi
17824
8284b0c5 17825
21d1c967
GD
17826SEARCH_INCLUDE="\
17827 /usr/local/include \
17828 \
17829 /usr/Motif-1.2/include \
17830 /usr/Motif-2.1/include \
17831 \
17832 /usr/include/Motif1.2 \
17833 /opt/xpm/include/X11 \
17834 /opt/GBxpm/include/ \
17835 /opt/GBxpm/X11/include/ \
17836 \
17837 /usr/Motif1.2/include \
17838 /usr/dt/include \
17839 /usr/openwin/include \
17840 \
17841 /usr/include/Xm \
17842 \
17843 /usr/X11R6/include \
17844 /usr/X11R6.4/include \
17845 /usr/X11R5/include \
17846 /usr/X11R4/include \
17847 \
17848 /usr/include/X11R6 \
17849 /usr/include/X11R5 \
17850 /usr/include/X11R4 \
17851 \
17852 /usr/local/X11R6/include \
17853 /usr/local/X11R5/include \
17854 /usr/local/X11R4/include \
17855 \
17856 /usr/local/include/X11R6 \
17857 /usr/local/include/X11R5 \
17858 /usr/local/include/X11R4 \
17859 \
17860 /usr/X11/include \
17861 /usr/include/X11 \
17862 /usr/local/X11/include \
17863 /usr/local/include/X11 \
17864 \
17865 /usr/X386/include \
17866 /usr/x386/include \
17867 /usr/XFree86/include/X11 \
17868 \
17869 X:/XFree86/include \
17870 X:/XFree86/include/X11 \
17871 \
17872 /usr/include/gtk \
17873 /usr/local/include/gtk \
17874 /usr/include/glib \
17875 /usr/local/include/glib \
17876 \
17877 /usr/include/qt \
17878 /usr/local/include/qt \
17879 \
17880 /usr/include/windows \
17881 /usr/include/wine \
17882 /usr/local/include/wine \
17883 \
17884 /usr/unsupported/include \
17885 /usr/athena/include \
17886 /usr/local/x11r5/include \
17887 /usr/lpp/Xamples/include \
17888 \
2b5f62a0 17889 /usr/openwin/share/include"
21d1c967
GD
17890
17891SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17892
8284b0c5 17893
e6cc62c6 17894cat >confcache <<\_ACEOF
21d1c967
GD
17895# This file is a shell script that caches the results of configure
17896# tests run on this system so they can be shared between configure
e6cc62c6
VS
17897# scripts and configure runs, see configure's option --config-cache.
17898# It is not useful on other systems. If it contains results you don't
17899# want to keep, you may remove or edit it.
21d1c967 17900#
e6cc62c6
VS
17901# config.status only pays attention to the cache file if you give it
17902# the --recheck option to rerun configure.
21d1c967 17903#
e6cc62c6
VS
17904# `ac_cv_env_foo' variables (set or unset) will be overridden when
17905# loading this file, other *unset* `ac_cv_foo' will be assigned the
17906# following values.
17907
17908_ACEOF
17909
21d1c967
GD
17910# The following way of writing the cache mishandles newlines in values,
17911# but we know of no workaround that is simple, portable, and efficient.
17912# So, don't put newlines in cache variables' values.
17913# Ultrix sh set writes to stderr and can't be redirected directly,
17914# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17915{
17916 (set) 2>&1 |
17917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17918 *ac_space=\ *)
17919 # `set' does not quote correctly, so add quotes (double-quote
17920 # substitution turns \\\\ into \\, and sed turns \\ into \).
17921 sed -n \
17922 "s/'/'\\\\''/g;
17923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17924 ;;
17925 *)
17926 # `set' quotes correctly as required by POSIX, so do not add quotes.
17927 sed -n \
17928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17929 ;;
17930 esac;
17931} |
17932 sed '
17933 t clear
17934 : clear
17935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17936 t end
17937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17938 : end' >>confcache
17939if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17940 if test -w $cache_file; then
e6cc62c6
VS
17941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17942 cat confcache >$cache_file
21d1c967
GD
17943 else
17944 echo "not updating unwritable cache $cache_file"
17945 fi
ab9b9eab 17946fi
21d1c967 17947rm -f confcache
ab9b9eab 17948
fe0895cf 17949if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17950 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17951echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17952if test "${wx_cv_lib_glibc21+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955
17956 cat >conftest.$ac_ext <<_ACEOF
17957#line $LINENO "configure"
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
21d1c967 17963#include <features.h>
e6cc62c6
VS
17964int
17965main ()
17966{
ab9b9eab 17967
21d1c967
GD
17968 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17969 #error not glibc2.1
17970 #endif
e6cc62c6
VS
17971
17972 ;
17973 return 0;
17974}
17975_ACEOF
17976rm -f conftest.$ac_objext
17977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17978 (eval $ac_compile) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -s conftest.$ac_objext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17988
21d1c967 17989 wx_cv_lib_glibc21=yes
e6cc62c6 17990
698dcdb6 17991else
e6cc62c6
VS
17992 echo "$as_me: failed program was:" >&5
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
17995
21d1c967 17996 wx_cv_lib_glibc21=no
e6cc62c6
VS
17997
17998
247f5006 17999fi
e6cc62c6 18000rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18001
e6cc62c6
VS
18002fi
18003echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18004echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18005 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18006 cat >>confdefs.h <<\_ACEOF
21d1c967 18007#define wxHAVE_GLIBC2 1
e6cc62c6 18008_ACEOF
1e487827 18009
90dd450c 18010 fi
ab9b9eab
VZ
18011fi
18012
5c0a20c3
VZ
18013if test "x$wx_cv_lib_glibc21" = "xyes"; then
18014 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18015 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18016#define _GNU_SOURCE 1
e6cc62c6 18017_ACEOF
5c0a20c3
VZ
18018
18019 fi
18020fi
18021
8284b0c5
MB
18022
18023
21d1c967
GD
18024REGEX_INCLUDE=
18025if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18026 cat >>confdefs.h <<\_ACEOF
21d1c967 18027#define wxUSE_REGEX 1
e6cc62c6 18028_ACEOF
698dcdb6 18029
8284b0c5 18030
21d1c967 18031 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18032 if test "${ac_cv_header_regex_h+set}" = set; then
18033 echo "$as_me:$LINENO: checking for regex.h" >&5
18034echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18035if test "${ac_cv_header_regex_h+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037fi
18038echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18039echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18040else
18041 # Is the header compilable?
18042echo "$as_me:$LINENO: checking regex.h usability" >&5
18043echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18044cat >conftest.$ac_ext <<_ACEOF
18045#line $LINENO "configure"
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051$ac_includes_default
247f5006 18052#include <regex.h>
e6cc62c6
VS
18053_ACEOF
18054rm -f conftest.$ac_objext
18055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18056 (eval $ac_compile) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_header_compiler=yes
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071ac_header_compiler=no
18072fi
18073rm -f conftest.$ac_objext conftest.$ac_ext
18074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18075echo "${ECHO_T}$ac_header_compiler" >&6
18076
18077# Is the header present?
18078echo "$as_me:$LINENO: checking regex.h presence" >&5
18079echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18080cat >conftest.$ac_ext <<_ACEOF
18081#line $LINENO "configure"
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087#include <regex.h>
18088_ACEOF
18089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } >/dev/null; then
18097 if test -s conftest.err; then
18098 ac_cpp_err=$ac_c_preproc_warn_flag
18099 else
18100 ac_cpp_err=
18101 fi
18102else
18103 ac_cpp_err=yes
18104fi
18105if test -z "$ac_cpp_err"; then
18106 ac_header_preproc=yes
18107else
18108 echo "$as_me: failed program was:" >&5
18109sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 ac_header_preproc=no
18112fi
18113rm -f conftest.err conftest.$ac_ext
18114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18115echo "${ECHO_T}$ac_header_preproc" >&6
18116
18117# So? What about this header?
18118case $ac_header_compiler:$ac_header_preproc in
18119 yes:no )
18120 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18121echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18122 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18123echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18124 (
18125 cat <<\_ASBOX
18126## ------------------------------------ ##
18127## Report this to bug-autoconf@gnu.org. ##
18128## ------------------------------------ ##
18129_ASBOX
18130 ) |
18131 sed "s/^/$as_me: WARNING: /" >&2
18132 ;;
18133 no:yes )
18134 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18135echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18137echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18139echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18140 (
18141 cat <<\_ASBOX
18142## ------------------------------------ ##
18143## Report this to bug-autoconf@gnu.org. ##
18144## ------------------------------------ ##
18145_ASBOX
18146 ) |
18147 sed "s/^/$as_me: WARNING: /" >&2
18148 ;;
18149esac
18150echo "$as_me:$LINENO: checking for regex.h" >&5
18151echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18152if test "${ac_cv_header_regex_h+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154else
18155 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18156fi
e6cc62c6
VS
18157echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18158echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18159
698dcdb6 18160fi
e6cc62c6
VS
18161if test $ac_cv_header_regex_h = yes; then
18162
18163for ac_func in regcomp
21d1c967 18164do
e6cc62c6
VS
18165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18166echo "$as_me:$LINENO: checking for $ac_func" >&5
18167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18168if eval "test \"\${$as_ac_var+set}\" = set"; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170else
18171 cat >conftest.$ac_ext <<_ACEOF
18172#line $LINENO "configure"
18173/* confdefs.h. */
18174_ACEOF
18175cat confdefs.h >>conftest.$ac_ext
18176cat >>conftest.$ac_ext <<_ACEOF
18177/* end confdefs.h. */
a0b9e27f 18178/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18179 which can conflict with char $ac_func (); below.
18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181 <limits.h> exists even on freestanding compilers. */
18182#ifdef __STDC__
18183# include <limits.h>
18184#else
18185# include <assert.h>
18186#endif
21d1c967 18187/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18188#ifdef __cplusplus
18189extern "C"
18190{
18191#endif
21d1c967 18192/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18193 builtin and then its argument prototype would still apply. */
18194char $ac_func ();
21d1c967
GD
18195/* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18199choke me
18200#else
e6cc62c6
VS
18201char (*f) () = $ac_func;
18202#endif
18203#ifdef __cplusplus
18204}
21d1c967 18205#endif
90dd450c 18206
e6cc62c6
VS
18207int
18208main ()
18209{
18210return f != $ac_func;
18211 ;
18212 return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext conftest$ac_exeext
18216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 eval "$as_ac_var=yes"
18228else
18229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232eval "$as_ac_var=no"
18233fi
18234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18235fi
18236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18237echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18238if test `eval echo '${'$as_ac_var'}'` = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18241_ACEOF
5c6fa7d2 18242
698dcdb6 18243fi
21d1c967
GD
18244done
18245
ab9b9eab
VZ
18246fi
18247
8284b0c5 18248
e6cc62c6 18249
21d1c967
GD
18250 if test "x$ac_cv_func_regcomp" != "xyes"; then
18251 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18252 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18253echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18254 { (exit 1); exit 1; }; }
21d1c967 18255 else
e6cc62c6
VS
18256 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18257echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18258 wxUSE_REGEX=builtin
18259 fi
18260 else
18261 wxUSE_REGEX=sys
18262 fi
ab9b9eab 18263 fi
90dd450c 18264
21d1c967
GD
18265 if test "$wxUSE_REGEX" = "builtin" ; then
18266 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18267 fi
21d1c967 18268fi
90dd450c 18269
8284b0c5 18270
21d1c967
GD
18271ZLIB_INCLUDE=
18272ZLIB_LINK=
18273if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18274 cat >>confdefs.h <<\_ACEOF
21d1c967 18275#define wxUSE_ZLIB 1
e6cc62c6 18276_ACEOF
21d1c967 18277
8284b0c5 18278
21d1c967 18279 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18280 if test "$USE_DARWIN" = 1; then
18281 system_zlib_h_ok="yes"
18282 else
e6cc62c6
VS
18283 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18284echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18285if test "${ac_cv_header_zlib_h+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18287else
18288 if test "$cross_compiling" = yes; then
89e6bf6d 18289 unset ac_cv_header_zlib_h
e6cc62c6 18290
d643b80e 18291else
e6cc62c6
VS
18292 cat >conftest.$ac_ext <<_ACEOF
18293#line $LINENO "configure"
18294/* confdefs.h. */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h. */
18299
ef33c576 18300 #include <zlib.h>
d775acfa 18301 #include <stdio.h>
d643b80e 18302
d775acfa
VZ
18303 int main()
18304 {
18305 FILE *f=fopen("conftestval", "w");
18306 if (!f) exit(1);
18307 fprintf(f, "%s",
18308 ZLIB_VERSION[0] == '1' &&
18309 (ZLIB_VERSION[2] > '1' ||
18310 (ZLIB_VERSION[2] == '1' &&
18311 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18312 exit(0);
18313 }
e6cc62c6
VS
18314
18315_ACEOF
18316rm -f conftest$ac_exeext
18317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 (eval $ac_link) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
d643b80e
VZ
18327 ac_cv_header_zlib_h=`cat conftestval`
18328else
e6cc62c6
VS
18329 echo "$as_me: program exited with status $ac_status" >&5
18330echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333( exit $ac_status )
18334ac_cv_header_zlib_h=no
d643b80e 18335fi
e6cc62c6 18336rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18337fi
18338
d643b80e 18339fi
e6cc62c6
VS
18340echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18341echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18342 if test "${ac_cv_header_zlib_h+set}" = set; then
18343 echo "$as_me:$LINENO: checking for zlib.h" >&5
18344echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18345if test "${ac_cv_header_zlib_h+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347fi
18348echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18349echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18350else
e6cc62c6
VS
18351 # Is the header compilable?
18352echo "$as_me:$LINENO: checking zlib.h usability" >&5
18353echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18354cat >conftest.$ac_ext <<_ACEOF
18355#line $LINENO "configure"
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361$ac_includes_default
89e6bf6d 18362#include <zlib.h>
e6cc62c6
VS
18363_ACEOF
18364rm -f conftest.$ac_objext
18365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18366 (eval $ac_compile) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -s conftest.$ac_objext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_header_compiler=yes
18377else
18378 echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381ac_header_compiler=no
18382fi
18383rm -f conftest.$ac_objext conftest.$ac_ext
18384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18385echo "${ECHO_T}$ac_header_compiler" >&6
18386
18387# Is the header present?
18388echo "$as_me:$LINENO: checking zlib.h presence" >&5
18389echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18390cat >conftest.$ac_ext <<_ACEOF
18391#line $LINENO "configure"
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397#include <zlib.h>
18398_ACEOF
18399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev/null; then
18407 if test -s conftest.err; then
18408 ac_cpp_err=$ac_c_preproc_warn_flag
18409 else
18410 ac_cpp_err=
18411 fi
18412else
18413 ac_cpp_err=yes
18414fi
18415if test -z "$ac_cpp_err"; then
18416 ac_header_preproc=yes
18417else
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 ac_header_preproc=no
18422fi
18423rm -f conftest.err conftest.$ac_ext
18424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18425echo "${ECHO_T}$ac_header_preproc" >&6
18426
18427# So? What about this header?
18428case $ac_header_compiler:$ac_header_preproc in
18429 yes:no )
18430 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18431echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18433echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18434 (
18435 cat <<\_ASBOX
18436## ------------------------------------ ##
18437## Report this to bug-autoconf@gnu.org. ##
18438## ------------------------------------ ##
18439_ASBOX
18440 ) |
18441 sed "s/^/$as_me: WARNING: /" >&2
18442 ;;
18443 no:yes )
18444 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18445echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18447echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18449echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18450 (
18451 cat <<\_ASBOX
18452## ------------------------------------ ##
18453## Report this to bug-autoconf@gnu.org. ##
18454## ------------------------------------ ##
18455_ASBOX
18456 ) |
18457 sed "s/^/$as_me: WARNING: /" >&2
18458 ;;
18459esac
18460echo "$as_me:$LINENO: checking for zlib.h" >&5
18461echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18462if test "${ac_cv_header_zlib_h+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18464else
e6cc62c6
VS
18465 ac_cv_header_zlib_h=$ac_header_preproc
18466fi
18467echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18468echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18469
89e6bf6d
VZ
18470fi
18471
d643b80e 18472
e6cc62c6 18473
d775acfa
VZ
18474 system_zlib_h_ok=$ac_cv_header_zlib_h
18475 fi
18476
18477 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18478 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18479echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18480if test "${ac_cv_lib_z_deflate+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18482else
e6cc62c6 18483 ac_check_lib_save_LIBS=$LIBS
21d1c967 18484LIBS="-lz $LIBS"
e6cc62c6
VS
18485cat >conftest.$ac_ext <<_ACEOF
18486#line $LINENO "configure"
18487/* confdefs.h. */
18488_ACEOF
18489cat confdefs.h >>conftest.$ac_ext
18490cat >>conftest.$ac_ext <<_ACEOF
18491/* end confdefs.h. */
18492
21d1c967 18493/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18494#ifdef __cplusplus
18495extern "C"
18496#endif
21d1c967 18497/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18498 builtin and then its argument prototype would still apply. */
18499char deflate ();
18500int
18501main ()
18502{
18503deflate ();
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext conftest$ac_exeext
18509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18510 (eval $ac_link) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
18514 { ac_try='test -s conftest$ac_exeext'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_lib_z_deflate=yes
18521else
18522 echo "$as_me: failed program was:" >&5
18523sed 's/^/| /' conftest.$ac_ext >&5
18524
18525ac_cv_lib_z_deflate=no
18526fi
18527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18528LIBS=$ac_check_lib_save_LIBS
18529fi
18530echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18531echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18532if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18533 ZLIB_LINK=" -lz"
a0b9e27f 18534fi
698dcdb6 18535
d643b80e 18536 fi
247f5006 18537
21d1c967
GD
18538 if test "x$ZLIB_LINK" = "x" ; then
18539 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18540 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18541echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18542 { (exit 1); exit 1; }; }
21d1c967 18543 else
e6cc62c6
VS
18544 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18545echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18546 wxUSE_ZLIB=builtin
18547 fi
18548 else
18549 wxUSE_ZLIB=sys
18550 fi
18551 fi
18552
18553 if test "$wxUSE_ZLIB" = "builtin" ; then
18554 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18555 fi
ab9b9eab
VZ
18556fi
18557
8284b0c5 18558
21d1c967
GD
18559PNG_INCLUDE=
18560PNG_LINK=
18561if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18562 cat >>confdefs.h <<\_ACEOF
21d1c967 18563#define wxUSE_LIBPNG 1
e6cc62c6 18564_ACEOF
90dd450c 18565
8284b0c5 18566
21d1c967 18567 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18568 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18569echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18570 wxUSE_LIBPNG=sys
18571 fi
90dd450c 18572
21d1c967 18573 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18574 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18575echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18576 wxUSE_LIBPNG=builtin
18577 fi
18578
18579 if test "$wxUSE_MGL" != 1 ; then
18580 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18581 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18582echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18583if test "${ac_cv_header_png_h+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18585else
18586 if test "$cross_compiling" = yes; then
89e6bf6d 18587 unset ac_cv_header_png_h
e6cc62c6 18588
5d3f766d 18589else
e6cc62c6
VS
18590 cat >conftest.$ac_ext <<_ACEOF
18591#line $LINENO "configure"
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597
ef33c576 18598 #include <png.h>
5d3f766d
VZ
18599 #include <stdio.h>
18600
18601 int main()
18602 {
18603 FILE *f=fopen("conftestval", "w");
18604 if (!f) exit(1);
18605 fprintf(f, "%s",
18606 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18607 exit(0);
18608 }
e6cc62c6
VS
18609
18610_ACEOF
18611rm -f conftest$ac_exeext
18612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
5d3f766d
VZ
18622 ac_cv_header_png_h=`cat conftestval`
18623else
e6cc62c6
VS
18624 echo "$as_me: program exited with status $ac_status" >&5
18625echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628( exit $ac_status )
18629ac_cv_header_png_h=no
5d3f766d 18630fi
e6cc62c6 18631rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18632fi
18633
5d3f766d 18634fi
e6cc62c6
VS
18635echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18636echo "${ECHO_T}$ac_cv_header_png_h" >&6
18637 if test "${ac_cv_header_png_h+set}" = set; then
18638 echo "$as_me:$LINENO: checking for png.h" >&5
18639echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18640if test "${ac_cv_header_png_h+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642fi
18643echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18644echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18645else
e6cc62c6
VS
18646 # Is the header compilable?
18647echo "$as_me:$LINENO: checking png.h usability" >&5
18648echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18649cat >conftest.$ac_ext <<_ACEOF
18650#line $LINENO "configure"
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656$ac_includes_default
89e6bf6d 18657#include <png.h>
e6cc62c6
VS
18658_ACEOF
18659rm -f conftest.$ac_objext
18660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
18665 { ac_try='test -s conftest.$ac_objext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_header_compiler=yes
18672else
18673 echo "$as_me: failed program was:" >&5
18674sed 's/^/| /' conftest.$ac_ext >&5
18675
18676ac_header_compiler=no
18677fi
18678rm -f conftest.$ac_objext conftest.$ac_ext
18679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680echo "${ECHO_T}$ac_header_compiler" >&6
18681
18682# Is the header present?
18683echo "$as_me:$LINENO: checking png.h presence" >&5
18684echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18685cat >conftest.$ac_ext <<_ACEOF
18686#line $LINENO "configure"
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
18692#include <png.h>
18693_ACEOF
18694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } >/dev/null; then
18702 if test -s conftest.err; then
18703 ac_cpp_err=$ac_c_preproc_warn_flag
18704 else
18705 ac_cpp_err=
18706 fi
18707else
18708 ac_cpp_err=yes
18709fi
18710if test -z "$ac_cpp_err"; then
18711 ac_header_preproc=yes
18712else
18713 echo "$as_me: failed program was:" >&5
18714sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_header_preproc=no
18717fi
18718rm -f conftest.err conftest.$ac_ext
18719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720echo "${ECHO_T}$ac_header_preproc" >&6
18721
18722# So? What about this header?
18723case $ac_header_compiler:$ac_header_preproc in
18724 yes:no )
18725 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18726echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18728echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18729 (
18730 cat <<\_ASBOX
18731## ------------------------------------ ##
18732## Report this to bug-autoconf@gnu.org. ##
18733## ------------------------------------ ##
18734_ASBOX
18735 ) |
18736 sed "s/^/$as_me: WARNING: /" >&2
18737 ;;
18738 no:yes )
18739 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18740echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18742echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18744echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18745 (
18746 cat <<\_ASBOX
18747## ------------------------------------ ##
18748## Report this to bug-autoconf@gnu.org. ##
18749## ------------------------------------ ##
18750_ASBOX
18751 ) |
18752 sed "s/^/$as_me: WARNING: /" >&2
18753 ;;
18754esac
18755echo "$as_me:$LINENO: checking for png.h" >&5
18756echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18757if test "${ac_cv_header_png_h+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18759else
e6cc62c6
VS
18760 ac_cv_header_png_h=$ac_header_preproc
18761fi
18762echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18763echo "${ECHO_T}$ac_cv_header_png_h" >&6
18764
89e6bf6d
VZ
18765fi
18766
5d3f766d 18767
e6cc62c6 18768
5d3f766d 18769 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18770 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18771echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18772if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18774else
e6cc62c6 18775 ac_check_lib_save_LIBS=$LIBS
21d1c967 18776LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18777cat >conftest.$ac_ext <<_ACEOF
18778#line $LINENO "configure"
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784
21d1c967 18785/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18786#ifdef __cplusplus
18787extern "C"
18788#endif
21d1c967 18789/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18790 builtin and then its argument prototype would still apply. */
18791char png_check_sig ();
18792int
18793main ()
18794{
18795png_check_sig ();
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest.$ac_objext conftest$ac_exeext
18801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18802 (eval $ac_link) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_png_png_check_sig=yes
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817ac_cv_lib_png_png_check_sig=no
18818fi
18819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18820LIBS=$ac_check_lib_save_LIBS
18821fi
18822echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18823echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18824if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18825 PNG_LINK=" -lpng"
a0b9e27f 18826fi
90dd450c 18827
5d3f766d 18828 fi
247f5006 18829
21d1c967
GD
18830 if test "x$PNG_LINK" = "x" ; then
18831 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18832 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18833echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18834 { (exit 1); exit 1; }; }
21d1c967 18835 else
e6cc62c6
VS
18836 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18837echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18838 wxUSE_LIBPNG=builtin
18839 fi
18840 else
2b5f62a0 18841 wxUSE_LIBPNG=sys
21d1c967
GD
18842 fi
18843 fi
18844 fi
90dd450c 18845
21d1c967
GD
18846 if test "$wxUSE_LIBPNG" = "builtin" ; then
18847 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18848 fi
90dd450c 18849
21d1c967 18850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18851fi
18852
8284b0c5 18853
21d1c967
GD
18854JPEG_INCLUDE=
18855JPEG_LINK=
18856if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18857 cat >>confdefs.h <<\_ACEOF
21d1c967 18858#define wxUSE_LIBJPEG 1
e6cc62c6 18859_ACEOF
90dd450c 18860
8284b0c5 18861
21d1c967 18862 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18863 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18864echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18865 wxUSE_LIBJPEG=sys
18866 fi
90dd450c 18867
21d1c967
GD
18868 if test "$wxUSE_MGL" != 1 ; then
18869 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18870 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18871echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18872 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875 cat >conftest.$ac_ext <<_ACEOF
18876#line $LINENO "configure"
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
90dd450c 18882
21d1c967
GD
18883 #undef HAVE_STDLIB_H
18884 #include <stdio.h>
18885 #include <jpeglib.h>
90dd450c 18886
e6cc62c6
VS
18887int
18888main ()
18889{
18890
18891
18892 ;
18893 return 0;
18894}
18895_ACEOF
18896rm -f conftest.$ac_objext
18897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898 (eval $ac_compile) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try='test -s conftest.$ac_objext'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; }; then
21d1c967 18908 ac_cv_header_jpeglib_h=yes
90dd450c 18909else
e6cc62c6
VS
18910 echo "$as_me: failed program was:" >&5
18911sed 's/^/| /' conftest.$ac_ext >&5
18912
18913ac_cv_header_jpeglib_h=no
18914
90dd450c 18915fi
e6cc62c6
VS
18916rm -f conftest.$ac_objext conftest.$ac_ext
18917
90dd450c
VZ
18918fi
18919
e6cc62c6
VS
18920 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18921echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18922
21d1c967 18923 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18924 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18925echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18926if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18928else
e6cc62c6 18929 ac_check_lib_save_LIBS=$LIBS
21d1c967 18930LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18931cat >conftest.$ac_ext <<_ACEOF
18932#line $LINENO "configure"
18933/* confdefs.h. */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h. */
18938
21d1c967 18939/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18940#ifdef __cplusplus
18941extern "C"
18942#endif
21d1c967 18943/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18944 builtin and then its argument prototype would still apply. */
18945char jpeg_read_header ();
18946int
18947main ()
18948{
18949jpeg_read_header ();
18950 ;
18951 return 0;
18952}
18953_ACEOF
18954rm -f conftest.$ac_objext conftest$ac_exeext
18955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_jpeg_jpeg_read_header=yes
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971ac_cv_lib_jpeg_jpeg_read_header=no
18972fi
18973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18974LIBS=$ac_check_lib_save_LIBS
18975fi
18976echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18977echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18978if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18979 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18980fi
18981
21d1c967 18982 fi
90dd450c 18983
21d1c967
GD
18984 if test "x$JPEG_LINK" = "x" ; then
18985 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18986 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18987echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18988 { (exit 1); exit 1; }; }
21d1c967 18989 else
e6cc62c6
VS
18990 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18991echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18992 wxUSE_LIBJPEG=builtin
18993 fi
18994 else
18995 wxUSE_LIBJPEG=sys
18996 fi
18997 fi
18998 fi
90dd450c 18999
21d1c967
GD
19000 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19001 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19002 fi
19003fi
90dd450c 19004
8284b0c5 19005
21d1c967
GD
19006TIFF_INCLUDE=
19007TIFF_LINK=
2b5f62a0 19008TIFF_PREREQ_LINKS=-lm
21d1c967 19009if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19010 cat >>confdefs.h <<\_ACEOF
21d1c967 19011#define wxUSE_LIBTIFF 1
e6cc62c6 19012_ACEOF
21d1c967 19013
8284b0c5 19014
21d1c967 19015 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19016 if test "$wxUSE_LIBJPEG" = "sys"; then
19017 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19018 fi
19019 if test "$wxUSE_ZLIB" = "sys"; then
19020 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19021 fi
e6cc62c6
VS
19022 if test "${ac_cv_header_tiffio_h+set}" = set; then
19023 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19024echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19025if test "${ac_cv_header_tiffio_h+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027fi
19028echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19029echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19030else
19031 # Is the header compilable?
19032echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19033echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19034cat >conftest.$ac_ext <<_ACEOF
19035#line $LINENO "configure"
19036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */
19041$ac_includes_default
247f5006 19042#include <tiffio.h>
e6cc62c6
VS
19043_ACEOF
19044rm -f conftest.$ac_objext
19045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19046 (eval $ac_compile) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -s conftest.$ac_objext'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 ac_header_compiler=yes
19057else
19058 echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061ac_header_compiler=no
19062fi
19063rm -f conftest.$ac_objext conftest.$ac_ext
19064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19065echo "${ECHO_T}$ac_header_compiler" >&6
19066
19067# Is the header present?
19068echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19069echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19070cat >conftest.$ac_ext <<_ACEOF
19071#line $LINENO "configure"
19072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
19077#include <tiffio.h>
19078_ACEOF
19079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } >/dev/null; then
19087 if test -s conftest.err; then
19088 ac_cpp_err=$ac_c_preproc_warn_flag
19089 else
19090 ac_cpp_err=
19091 fi
19092else
19093 ac_cpp_err=yes
19094fi
19095if test -z "$ac_cpp_err"; then
19096 ac_header_preproc=yes
19097else
19098 echo "$as_me: failed program was:" >&5
19099sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_header_preproc=no
19102fi
19103rm -f conftest.err conftest.$ac_ext
19104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19105echo "${ECHO_T}$ac_header_preproc" >&6
19106
19107# So? What about this header?
19108case $ac_header_compiler:$ac_header_preproc in
19109 yes:no )
19110 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19111echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19113echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19114 (
19115 cat <<\_ASBOX
19116## ------------------------------------ ##
19117## Report this to bug-autoconf@gnu.org. ##
19118## ------------------------------------ ##
19119_ASBOX
19120 ) |
19121 sed "s/^/$as_me: WARNING: /" >&2
19122 ;;
19123 no:yes )
19124 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19125echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19127echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19128 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19129echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19130 (
19131 cat <<\_ASBOX
19132## ------------------------------------ ##
19133## Report this to bug-autoconf@gnu.org. ##
19134## ------------------------------------ ##
19135_ASBOX
19136 ) |
19137 sed "s/^/$as_me: WARNING: /" >&2
19138 ;;
19139esac
19140echo "$as_me:$LINENO: checking for tiffio.h" >&5
19141echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19142if test "${ac_cv_header_tiffio_h+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19144else
19145 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19146fi
e6cc62c6
VS
19147echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19148echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19149
21d1c967 19150fi
e6cc62c6 19151if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19152
19153 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19154echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19155if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19157else
e6cc62c6 19158 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19159LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19160cat >conftest.$ac_ext <<_ACEOF
19161#line $LINENO "configure"
19162/* confdefs.h. */
19163_ACEOF
19164cat confdefs.h >>conftest.$ac_ext
19165cat >>conftest.$ac_ext <<_ACEOF
19166/* end confdefs.h. */
19167
ab9b9eab 19168/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19169#ifdef __cplusplus
19170extern "C"
19171#endif
ab9b9eab 19172/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19173 builtin and then its argument prototype would still apply. */
19174char TIFFError ();
19175int
19176main ()
19177{
19178TIFFError ();
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext conftest$ac_exeext
19184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_lib_tiff_TIFFError=yes
19196else
19197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200ac_cv_lib_tiff_TIFFError=no
19201fi
19202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19203LIBS=$ac_check_lib_save_LIBS
19204fi
19205echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19206echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19207if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19208 TIFF_LINK=" -ltiff"
a0b9e27f 19209fi
cd6d6d5b 19210
e6cc62c6 19211
0e012a93 19212
a0b9e27f 19213fi
8284b0c5 19214
247f5006 19215
e6cc62c6 19216
21d1c967
GD
19217 if test "x$TIFF_LINK" = "x" ; then
19218 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19219 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19220echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19221 { (exit 1); exit 1; }; }
90dd450c 19222 else
e6cc62c6
VS
19223 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19224echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19225 wxUSE_LIBTIFF=builtin
d8356fa3 19226 fi
d8356fa3 19227 else
21d1c967 19228 wxUSE_LIBTIFF=sys
d8356fa3 19229 fi
21d1c967 19230 fi
d8356fa3 19231
21d1c967
GD
19232 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19233 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19234 fi
21d1c967 19235fi
10f2d63a 19236
8284b0c5 19237
672abd7a 19238if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19239 wxUSE_XML=yes
672abd7a
VS
19240 cat >>confdefs.h <<\_ACEOF
19241#define wxUSE_EXPAT 1
19242_ACEOF
19243
19244 cat >>confdefs.h <<\_ACEOF
19245#define wxUSE_XML 1
19246_ACEOF
19247
19248
19249 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19250 if test "${ac_cv_header_expat_h+set}" = set; then
19251 echo "$as_me:$LINENO: checking for expat.h" >&5
19252echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19253if test "${ac_cv_header_expat_h+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255fi
19256echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19257echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19258else
19259 # Is the header compilable?
19260echo "$as_me:$LINENO: checking expat.h usability" >&5
19261echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19262cat >conftest.$ac_ext <<_ACEOF
19263#line $LINENO "configure"
19264/* confdefs.h. */
19265_ACEOF
19266cat confdefs.h >>conftest.$ac_ext
19267cat >>conftest.$ac_ext <<_ACEOF
19268/* end confdefs.h. */
19269$ac_includes_default
19270#include <expat.h>
19271_ACEOF
19272rm -f conftest.$ac_objext
19273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_header_compiler=yes
19285else
19286 echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289ac_header_compiler=no
19290fi
19291rm -f conftest.$ac_objext conftest.$ac_ext
19292echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19293echo "${ECHO_T}$ac_header_compiler" >&6
19294
19295# Is the header present?
19296echo "$as_me:$LINENO: checking expat.h presence" >&5
19297echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19298cat >conftest.$ac_ext <<_ACEOF
19299#line $LINENO "configure"
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305#include <expat.h>
19306_ACEOF
19307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev/null; then
19315 if test -s conftest.err; then
19316 ac_cpp_err=$ac_c_preproc_warn_flag
19317 else
19318 ac_cpp_err=
19319 fi
19320else
19321 ac_cpp_err=yes
19322fi
19323if test -z "$ac_cpp_err"; then
19324 ac_header_preproc=yes
19325else
19326 echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 ac_header_preproc=no
19330fi
19331rm -f conftest.err conftest.$ac_ext
19332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19333echo "${ECHO_T}$ac_header_preproc" >&6
19334
19335# So? What about this header?
19336case $ac_header_compiler:$ac_header_preproc in
19337 yes:no )
19338 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19339echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19341echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19342 (
19343 cat <<\_ASBOX
19344## ------------------------------------ ##
19345## Report this to bug-autoconf@gnu.org. ##
19346## ------------------------------------ ##
19347_ASBOX
19348 ) |
19349 sed "s/^/$as_me: WARNING: /" >&2
19350 ;;
19351 no:yes )
19352 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19353echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19355echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19357echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19358 (
19359 cat <<\_ASBOX
19360## ------------------------------------ ##
19361## Report this to bug-autoconf@gnu.org. ##
19362## ------------------------------------ ##
19363_ASBOX
19364 ) |
19365 sed "s/^/$as_me: WARNING: /" >&2
19366 ;;
19367esac
19368echo "$as_me:$LINENO: checking for expat.h" >&5
19369echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19370if test "${ac_cv_header_expat_h+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 ac_cv_header_expat_h=$ac_header_preproc
19374fi
19375echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19376echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19377
19378fi
5f0b6dff
VS
19379if test $ac_cv_header_expat_h = yes; then
19380 found_expat_h=1
19381fi
19382
19383
19384 if test "x$found_expat_h" = "x1"; then
19385 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19386echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19387if test "${wx_cv_expat_is_not_broken+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389else
19390
19391
672abd7a 19392
5f0b6dff
VS
19393 ac_ext=cc
19394ac_cpp='$CXXCPP $CPPFLAGS'
19395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19398
19399 cat >conftest.$ac_ext <<_ACEOF
19400#line $LINENO "configure"
19401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
19406#include <expat.h>
19407int
19408main ()
19409{
672abd7a 19410
5f0b6dff
VS
19411 ;
19412 return 0;
19413}
19414_ACEOF
19415rm -f conftest.$ac_objext
19416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 wx_cv_expat_is_not_broken=yes
19428else
19429 echo "$as_me: failed program was:" >&5
19430sed 's/^/| /' conftest.$ac_ext >&5
19431
19432wx_cv_expat_is_not_broken=no
19433
19434fi
19435rm -f conftest.$ac_objext conftest.$ac_ext
19436 ac_ext=c
19437ac_cpp='$CPP $CPPFLAGS'
19438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440ac_compiler_gnu=$ac_cv_c_compiler_gnu
19441
19442
19443
19444fi
19445echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19446echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19447 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19448 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19449echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19450if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452else
19453 ac_check_lib_save_LIBS=$LIBS
19454LIBS="-lexpat $LIBS"
19455cat >conftest.$ac_ext <<_ACEOF
19456#line $LINENO "configure"
19457/* confdefs.h. */
19458_ACEOF
19459cat confdefs.h >>conftest.$ac_ext
19460cat >>conftest.$ac_ext <<_ACEOF
19461/* end confdefs.h. */
19462
19463/* Override any gcc2 internal prototype to avoid an error. */
19464#ifdef __cplusplus
19465extern "C"
19466#endif
19467/* We use char because int might match the return type of a gcc2
19468 builtin and then its argument prototype would still apply. */
19469char XML_ParserCreate ();
19470int
19471main ()
19472{
19473XML_ParserCreate ();
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext conftest$ac_exeext
19479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19480 (eval $ac_link) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -s conftest$ac_exeext'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ac_cv_lib_expat_XML_ParserCreate=yes
19491else
19492 echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495ac_cv_lib_expat_XML_ParserCreate=no
19496fi
19497rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19498LIBS=$ac_check_lib_save_LIBS
19499fi
19500echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19501echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19502if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19503 EXPAT_LINK=" -lexpat"
19504fi
19505
5f0b6dff 19506 fi
672abd7a
VS
19507 fi
19508 if test "x$EXPAT_LINK" = "x" ; then
19509 if test "$wxUSE_EXPAT" = "sys" ; then
19510 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19511echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19512 { (exit 1); exit 1; }; }
19513 else
19514 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19515echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19516 wxUSE_EXPAT=builtin
19517 fi
19518 else
19519 wxUSE_EXPAT=sys
19520 fi
19521 fi
19522 if test "$wxUSE_EXPAT" = "builtin" ; then
19523
19524
19525subdirs="$subdirs src/expat"
19526
19527 fi
19528fi
19529
19530
19531
3527f29c
VS
19532if test "$wxUSE_LIBMSPACK" != "no"; then
19533
19534 if test "${ac_cv_header_mspack_h+set}" = set; then
19535 echo "$as_me:$LINENO: checking for mspack.h" >&5
19536echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19537if test "${ac_cv_header_mspack_h+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539fi
19540echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19541echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19542else
19543 # Is the header compilable?
19544echo "$as_me:$LINENO: checking mspack.h usability" >&5
19545echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
19546cat >conftest.$ac_ext <<_ACEOF
19547#line $LINENO "configure"
19548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
19553$ac_includes_default
19554#include <mspack.h>
19555_ACEOF
19556rm -f conftest.$ac_objext
19557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_header_compiler=yes
19569else
19570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573ac_header_compiler=no
19574fi
19575rm -f conftest.$ac_objext conftest.$ac_ext
19576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577echo "${ECHO_T}$ac_header_compiler" >&6
19578
19579# Is the header present?
19580echo "$as_me:$LINENO: checking mspack.h presence" >&5
19581echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
19582cat >conftest.$ac_ext <<_ACEOF
19583#line $LINENO "configure"
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589#include <mspack.h>
19590_ACEOF
19591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } >/dev/null; then
19599 if test -s conftest.err; then
19600 ac_cpp_err=$ac_c_preproc_warn_flag
19601 else
19602 ac_cpp_err=
19603 fi
19604else
19605 ac_cpp_err=yes
19606fi
19607if test -z "$ac_cpp_err"; then
19608 ac_header_preproc=yes
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_preproc=no
19614fi
19615rm -f conftest.err conftest.$ac_ext
19616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617echo "${ECHO_T}$ac_header_preproc" >&6
19618
19619# So? What about this header?
19620case $ac_header_compiler:$ac_header_preproc in
19621 yes:no )
19622 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
19623echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19625echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19626 (
19627 cat <<\_ASBOX
19628## ------------------------------------ ##
19629## Report this to bug-autoconf@gnu.org. ##
19630## ------------------------------------ ##
19631_ASBOX
19632 ) |
19633 sed "s/^/$as_me: WARNING: /" >&2
19634 ;;
19635 no:yes )
19636 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
19637echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
19639echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
19641echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
19642 (
19643 cat <<\_ASBOX
19644## ------------------------------------ ##
19645## Report this to bug-autoconf@gnu.org. ##
19646## ------------------------------------ ##
19647_ASBOX
19648 ) |
19649 sed "s/^/$as_me: WARNING: /" >&2
19650 ;;
19651esac
19652echo "$as_me:$LINENO: checking for mspack.h" >&5
19653echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
19654if test "${ac_cv_header_mspack_h+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656else
19657 ac_cv_header_mspack_h=$ac_header_preproc
19658fi
19659echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
19660echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
19661
19662fi
19663if test $ac_cv_header_mspack_h = yes; then
19664 found_mspack_h=1
19665fi
19666
19667
19668 if test "x$found_mspack_h" = "x1"; then
19669 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
19670echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
19671if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673else
19674 ac_check_lib_save_LIBS=$LIBS
19675LIBS="-lmspack $LIBS"
19676cat >conftest.$ac_ext <<_ACEOF
19677#line $LINENO "configure"
19678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
19683
19684/* Override any gcc2 internal prototype to avoid an error. */
19685#ifdef __cplusplus
19686extern "C"
19687#endif
19688/* We use char because int might match the return type of a gcc2
19689 builtin and then its argument prototype would still apply. */
19690char mspack_create_chm_decompressor ();
19691int
19692main ()
19693{
19694mspack_create_chm_decompressor ();
19695 ;
19696 return 0;
19697}
19698_ACEOF
19699rm -f conftest.$ac_objext conftest$ac_exeext
19700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19701 (eval $ac_link) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -s conftest$ac_exeext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716ac_cv_lib_mspack_mspack_create_chm_decompressor=no
19717fi
19718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19719LIBS=$ac_check_lib_save_LIBS
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
19722echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
19723if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
19724 MSPACK_LINK=" -lmspack"
19725fi
19726
19727 fi
19728 if test "x$MSPACK_LINK" = "x" ; then
19729 wxUSE_LIBMSPACK=no
19730 else
19731 cat >>confdefs.h <<\_ACEOF
19732#define wxUSE_LIBMSPACK 1
19733_ACEOF
19734
19735 fi
19736fi
19737
19738
19739
21d1c967 19740AFMINSTALL=
2b5f62a0 19741WIN32INSTALL=
90dd450c 19742
21d1c967
GD
19743TOOLKIT=
19744TOOLKIT_INCLUDE=
19745WIDGET_SET=
19746
19747if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19748
19749for ac_header in w32api.h
21d1c967 19750do
e6cc62c6
VS
19751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19752if eval "test \"\${$as_ac_Header+set}\" = set"; then
19753 echo "$as_me:$LINENO: checking for $ac_header" >&5
19754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19755if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757fi
19758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19760else
19761 # Is the header compilable?
19762echo "$as_me:$LINENO: checking $ac_header usability" >&5
19763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19764cat >conftest.$ac_ext <<_ACEOF
19765#line $LINENO "configure"
19766/* confdefs.h. */
19767_ACEOF
19768cat confdefs.h >>conftest.$ac_ext
19769cat >>conftest.$ac_ext <<_ACEOF
19770/* end confdefs.h. */
19771$ac_includes_default
19772#include <$ac_header>
19773_ACEOF
19774rm -f conftest.$ac_objext
19775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19776 (eval $ac_compile) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_header_compiler=yes
19787else
19788 echo "$as_me: failed program was:" >&5
19789sed 's/^/| /' conftest.$ac_ext >&5
19790
19791ac_header_compiler=no
19792fi
19793rm -f conftest.$ac_objext conftest.$ac_ext
19794echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19795echo "${ECHO_T}$ac_header_compiler" >&6
19796
19797# Is the header present?
19798echo "$as_me:$LINENO: checking $ac_header presence" >&5
19799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19800cat >conftest.$ac_ext <<_ACEOF
19801#line $LINENO "configure"
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
19807#include <$ac_header>
19808_ACEOF
19809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } >/dev/null; then
19817 if test -s conftest.err; then
19818 ac_cpp_err=$ac_c_preproc_warn_flag
19819 else
19820 ac_cpp_err=
19821 fi
19822else
19823 ac_cpp_err=yes
19824fi
19825if test -z "$ac_cpp_err"; then
19826 ac_header_preproc=yes
19827else
19828 echo "$as_me: failed program was:" >&5
19829sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 ac_header_preproc=no
19832fi
19833rm -f conftest.err conftest.$ac_ext
19834echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835echo "${ECHO_T}$ac_header_preproc" >&6
19836
19837# So? What about this header?
19838case $ac_header_compiler:$ac_header_preproc in
19839 yes:no )
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19844 (
19845 cat <<\_ASBOX
19846## ------------------------------------ ##
19847## Report this to bug-autoconf@gnu.org. ##
19848## ------------------------------------ ##
19849_ASBOX
19850 ) |
19851 sed "s/^/$as_me: WARNING: /" >&2
19852 ;;
19853 no:yes )
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19860 (
19861 cat <<\_ASBOX
19862## ------------------------------------ ##
19863## Report this to bug-autoconf@gnu.org. ##
19864## ------------------------------------ ##
19865_ASBOX
19866 ) |
19867 sed "s/^/$as_me: WARNING: /" >&2
19868 ;;
19869esac
19870echo "$as_me:$LINENO: checking for $ac_header" >&5
19871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19872if eval "test \"\${$as_ac_Header+set}\" = set"; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874else
19875 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19876fi
e6cc62c6
VS
19877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19879
21d1c967 19880fi
e6cc62c6
VS
19881if test `eval echo '${'$as_ac_Header'}'` = yes; then
19882 cat >>confdefs.h <<_ACEOF
19883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19884_ACEOF
19885
21d1c967 19886fi
e6cc62c6 19887
21d1c967 19888done
f79bd02d 19889
e6cc62c6
VS
19890 if test "${ac_cv_header_windows_h+set}" = set; then
19891 echo "$as_me:$LINENO: checking for windows.h" >&5
19892echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19893if test "${ac_cv_header_windows_h+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895fi
19896echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19897echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19898else
19899 # Is the header compilable?
19900echo "$as_me:$LINENO: checking windows.h usability" >&5
19901echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19902cat >conftest.$ac_ext <<_ACEOF
19903#line $LINENO "configure"
19904/* confdefs.h. */
19905_ACEOF
19906cat confdefs.h >>conftest.$ac_ext
19907cat >>conftest.$ac_ext <<_ACEOF
19908/* end confdefs.h. */
19909$ac_includes_default
247f5006 19910#include <windows.h>
e6cc62c6
VS
19911_ACEOF
19912rm -f conftest.$ac_objext
19913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914 (eval $ac_compile) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_header_compiler=yes
19925else
19926 echo "$as_me: failed program was:" >&5
19927sed 's/^/| /' conftest.$ac_ext >&5
19928
19929ac_header_compiler=no
19930fi
19931rm -f conftest.$ac_objext conftest.$ac_ext
19932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19933echo "${ECHO_T}$ac_header_compiler" >&6
19934
19935# Is the header present?
19936echo "$as_me:$LINENO: checking windows.h presence" >&5
19937echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19938cat >conftest.$ac_ext <<_ACEOF
19939#line $LINENO "configure"
19940/* confdefs.h. */
19941_ACEOF
19942cat confdefs.h >>conftest.$ac_ext
19943cat >>conftest.$ac_ext <<_ACEOF
19944/* end confdefs.h. */
19945#include <windows.h>
19946_ACEOF
19947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } >/dev/null; then
19955 if test -s conftest.err; then
19956 ac_cpp_err=$ac_c_preproc_warn_flag
19957 else
19958 ac_cpp_err=
19959 fi
19960else
19961 ac_cpp_err=yes
19962fi
19963if test -z "$ac_cpp_err"; then
19964 ac_header_preproc=yes
19965else
19966 echo "$as_me: failed program was:" >&5
19967sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 ac_header_preproc=no
19970fi
19971rm -f conftest.err conftest.$ac_ext
19972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19973echo "${ECHO_T}$ac_header_preproc" >&6
19974
19975# So? What about this header?
19976case $ac_header_compiler:$ac_header_preproc in
19977 yes:no )
19978 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19979echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19981echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19982 (
19983 cat <<\_ASBOX
19984## ------------------------------------ ##
19985## Report this to bug-autoconf@gnu.org. ##
19986## ------------------------------------ ##
19987_ASBOX
19988 ) |
19989 sed "s/^/$as_me: WARNING: /" >&2
19990 ;;
19991 no:yes )
19992 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19993echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19995echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19997echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19998 (
19999 cat <<\_ASBOX
20000## ------------------------------------ ##
20001## Report this to bug-autoconf@gnu.org. ##
20002## ------------------------------------ ##
20003_ASBOX
20004 ) |
20005 sed "s/^/$as_me: WARNING: /" >&2
20006 ;;
20007esac
20008echo "$as_me:$LINENO: checking for windows.h" >&5
20009echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20010if test "${ac_cv_header_windows_h+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 20014fi
e6cc62c6
VS
20015echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20016echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20017
90dd450c 20018fi
e6cc62c6 20019if test $ac_cv_header_windows_h = yes; then
21d1c967 20020 :
90dd450c 20021else
21d1c967 20022
e6cc62c6
VS
20023 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20024echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20025 { (exit 1); exit 1; }; }
20026
5c6fa7d2 20027fi
7b4a847f 20028
5c6fa7d2 20029
e6cc62c6 20030
b3dfbbc9 20031 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 20032
7bb2947d
MB
20033 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20034 LIBS="$LIBS -loleacc"
20035 fi
20036
21d1c967
GD
20037 case "${host}" in
20038 *-*-cygwin* )
b3dfbbc9 20039 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 20040 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 20041 esac
f79bd02d 20042
8647bec6
RG
20043 if test "$wxUSE_ODBC" = "sys" ; then
20044 wxUSE_ODBC = "yes"
21d1c967 20045 fi
8647bec6
RG
20046 if test "$wxUSE_ODBC" = "yes" ; then
20047 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 20048 cat >>confdefs.h <<\_ACEOF
8647bec6 20049#define wxUSE_ODBC 1
e6cc62c6 20050_ACEOF
f79bd02d 20051
8647bec6 20052 fi
e6cc62c6 20053
21d1c967
GD
20054 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20055 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
20056
20057 WIN32INSTALL=win32install
f79bd02d 20058fi
f79bd02d 20059
21d1c967
GD
20060if test "$wxUSE_GUI" = "yes"; then
20061 USE_GUI=1
f79bd02d 20062
21d1c967 20063 GUI_TK_LIBRARY=
f79bd02d 20064
21d1c967
GD
20065 WXGTK12=
20066 WXGTK127=
20067 WXGTK20=
f79bd02d 20068
21d1c967
GD
20069 if test "$wxUSE_MSW" = 1 ; then
20070 TOOLKIT=MSW
20071 GUIDIST=MSW_DIST
ffef10f6
VS
20072
20073 case "${host}" in
20074 *-*-mingw32* )
20075 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20076 esac
f79bd02d
JS
20077 fi
20078
21d1c967 20079 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
20080 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20081echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
20082
20083 gtk_version_cached=1
e6cc62c6
VS
20084 if test "${wx_cv_lib_gtk+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 20086else
e6cc62c6 20087
21d1c967 20088 gtk_version_cached=0
e6cc62c6
VS
20089 echo "$as_me:$LINENO: result: " >&5
20090echo "${ECHO_T}" >&6
f79bd02d 20091
21d1c967
GD
20092 GTK_MODULES=
20093 if test "$wxUSE_THREADS" = "yes"; then
20094 GTK_MODULES=gthread
20095 fi
f79bd02d 20096
2b5f62a0 20097 wx_cv_lib_gtk=
21d1c967
GD
20098 if test "x$wxUSE_GTK2" = "xyes"; then
20099 # Check whether --enable-gtktest or --disable-gtktest was given.
20100if test "${enable_gtktest+set}" = set; then
20101 enableval="$enable_gtktest"
e6cc62c6 20102
f79bd02d 20103else
21d1c967 20104 enable_gtktest=yes
e6cc62c6 20105fi;
f79bd02d 20106
21d1c967
GD
20107 pkg_config_args=gtk+-2.0
20108 for module in . $GTK_MODULES
20109 do
20110 case "$module" in
e6cc62c6 20111 gthread)
21d1c967
GD
20112 pkg_config_args="$pkg_config_args gthread-2.0"
20113 ;;
20114 esac
20115 done
20116
20117 no_gtk=""
f79bd02d 20118
21d1c967
GD
20119 # Extract the first word of "pkg-config", so it can be a program name with args.
20120set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20121echo "$as_me:$LINENO: checking for $ac_word" >&5
20122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20123if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20125else
e6cc62c6
VS
20126 case $PKG_CONFIG in
20127 [\\/]* | ?:[\\/]*)
21d1c967
GD
20128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20129 ;;
21d1c967 20130 *)
e6cc62c6
VS
20131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20132for as_dir in $PATH
20133do
20134 IFS=$as_save_IFS
20135 test -z "$as_dir" && as_dir=.
20136 for ac_exec_ext in '' $ac_executable_extensions; do
20137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20140 break 2
20141 fi
20142done
20143done
20144
21d1c967
GD
20145 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20146 ;;
20147esac
f79bd02d 20148fi
e6cc62c6
VS
20149PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20150
21d1c967 20151if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20152 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20153echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20154else
e6cc62c6
VS
20155 echo "$as_me:$LINENO: result: no" >&5
20156echo "${ECHO_T}no" >&6
f79bd02d
JS
20157fi
20158
8284b0c5 20159
21d1c967
GD
20160 if test x$PKG_CONFIG != xno ; then
20161 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20162 :
20163 else
20164 echo *** pkg-config too old; version 0.7 or better required.
20165 no_gtk=yes
20166 PKG_CONFIG=no
20167 fi
20168 else
20169 no_gtk=yes
20170 fi
f79bd02d 20171
21d1c967 20172 min_gtk_version=2.0.0
e6cc62c6
VS
20173 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20174echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20175
21d1c967
GD
20176 if test x$PKG_CONFIG != xno ; then
20177 ## don't try to run the test against uninstalled libtool libs
20178 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20179 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20180 enable_gtktest=no
20181 fi
f79bd02d 20182
21d1c967
GD
20183 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20184 :
20185 else
20186 no_gtk=yes
20187 fi
20188 fi
f79bd02d 20189
21d1c967
GD
20190 if test x"$no_gtk" = x ; then
20191 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20192 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20193 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20194 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20195 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20196 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20197 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20199 if test "x$enable_gtktest" = "xyes" ; then
20200 ac_save_CFLAGS="$CFLAGS"
20201 ac_save_LIBS="$LIBS"
20202 CFLAGS="$CFLAGS $GTK_CFLAGS"
20203 LIBS="$GTK_LIBS $LIBS"
20204 rm -f conf.gtktest
20205 if test "$cross_compiling" = yes; then
20206 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20207else
e6cc62c6
VS
20208 cat >conftest.$ac_ext <<_ACEOF
20209#line $LINENO "configure"
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
f79bd02d 20215
21d1c967
GD
20216#include <gtk/gtk.h>
20217#include <stdio.h>
20218#include <stdlib.h>
f79bd02d 20219
e6cc62c6 20220int
21d1c967
GD
20221main ()
20222{
20223 int major, minor, micro;
20224 char *tmp_version;
f79bd02d 20225
21d1c967 20226 system ("touch conf.gtktest");
f79bd02d 20227
21d1c967
GD
20228 /* HP/UX 9 (%@#!) writes to sscanf strings */
20229 tmp_version = g_strdup("$min_gtk_version");
20230 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20231 printf("%s, bad version string\n", "$min_gtk_version");
20232 exit(1);
20233 }
f79bd02d 20234
21d1c967
GD
20235 if ((gtk_major_version != $gtk_config_major_version) ||
20236 (gtk_minor_version != $gtk_config_minor_version) ||
20237 (gtk_micro_version != $gtk_config_micro_version))
20238 {
e6cc62c6 20239 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20240 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20241 gtk_major_version, gtk_minor_version, gtk_micro_version);
20242 printf ("*** was found! If pkg-config was correct, then it is best\n");
20243 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20244 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20245 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20246 printf("*** required on your system.\n");
20247 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20248 printf("*** to point to the correct configuration files\n");
e6cc62c6 20249 }
21d1c967
GD
20250 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20251 (gtk_minor_version != GTK_MINOR_VERSION) ||
20252 (gtk_micro_version != GTK_MICRO_VERSION))
20253 {
20254 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20255 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20256 printf("*** library (version %d.%d.%d)\n",
20257 gtk_major_version, gtk_minor_version, gtk_micro_version);
20258 }
20259 else
20260 {
20261 if ((gtk_major_version > major) ||
20262 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20263 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20264 {
20265 return 0;
20266 }
20267 else
20268 {
20269 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20270 gtk_major_version, gtk_minor_version, gtk_micro_version);
20271 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20272 major, minor, micro);
20273 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20274 printf("***\n");
20275 printf("*** If you have already installed a sufficiently new version, this error\n");
20276 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20277 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20278 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20279 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20280 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20281 printf("*** so that the correct libraries are found at run-time))\n");
20282 }
20283 }
20284 return 1;
20285}
f79bd02d 20286
e6cc62c6
VS
20287_ACEOF
20288rm -f conftest$ac_exeext
20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290 (eval $ac_link) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
21d1c967 20299 :
f79bd02d 20300else
e6cc62c6
VS
20301 echo "$as_me: program exited with status $ac_status" >&5
20302echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305( exit $ac_status )
20306no_gtk=yes
f79bd02d 20307fi
e6cc62c6 20308rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20309fi
21d1c967
GD
20310 CFLAGS="$ac_save_CFLAGS"
20311 LIBS="$ac_save_LIBS"
20312 fi
20313 fi
20314 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20315 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20316echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20317 wx_cv_lib_gtk=2.0
21d1c967 20318 else
e6cc62c6
VS
20319 echo "$as_me:$LINENO: result: no" >&5
20320echo "${ECHO_T}no" >&6
21d1c967
GD
20321 if test "$PKG_CONFIG" = "no" ; then
20322 echo "*** A new enough version of pkg-config was not found."
20323 echo "*** See http://pkgconfig.sourceforge.net"
20324 else
20325 if test -f conf.gtktest ; then
20326 :
20327 else
20328 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20329 ac_save_CFLAGS="$CFLAGS"
20330 ac_save_LIBS="$LIBS"
21d1c967
GD
20331 CFLAGS="$CFLAGS $GTK_CFLAGS"
20332 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20333 cat >conftest.$ac_ext <<_ACEOF
20334#line $LINENO "configure"
20335/* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
21d1c967
GD
20340
20341#include <gtk/gtk.h>
20342#include <stdio.h>
f79bd02d 20343
e6cc62c6
VS
20344int
20345main ()
20346{
20347 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20348 ;
20349 return 0;
20350}
20351_ACEOF
20352rm -f conftest.$ac_objext conftest$ac_exeext
20353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -s conftest$ac_exeext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
21d1c967
GD
20364 echo "*** The test program compiled, but did not run. This usually means"
20365 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20366 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20367 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20368 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20369 echo "*** is required on your system"
20370 echo "***"
20371 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20372 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20373else
e6cc62c6
VS
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20378 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20379fi
e6cc62c6 20380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20381 CFLAGS="$ac_save_CFLAGS"
20382 LIBS="$ac_save_LIBS"
20383 fi
20384 fi
20385 GTK_CFLAGS=""
20386 GTK_LIBS=""
20387 :
20388 fi
e6cc62c6
VS
20389
20390
21d1c967 20391 rm -f conf.gtktest
f79bd02d 20392
2b5f62a0 20393 else
e6cc62c6
VS
20394
20395# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20396if test "${with_gtk_prefix+set}" = set; then
20397 withval="$with_gtk_prefix"
20398 gtk_config_prefix="$withval"
20399else
20400 gtk_config_prefix=""
e6cc62c6 20401fi;
f79bd02d 20402
21d1c967
GD
20403# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20404if test "${with_gtk_exec_prefix+set}" = set; then
20405 withval="$with_gtk_exec_prefix"
20406 gtk_config_exec_prefix="$withval"
20407else
20408 gtk_config_exec_prefix=""
e6cc62c6 20409fi;
21d1c967
GD
20410# Check whether --enable-gtktest or --disable-gtktest was given.
20411if test "${enable_gtktest+set}" = set; then
20412 enableval="$enable_gtktest"
e6cc62c6 20413
21d1c967
GD
20414else
20415 enable_gtktest=yes
e6cc62c6 20416fi;
21d1c967
GD
20417
20418 for module in . $GTK_MODULES
20419 do
20420 case "$module" in
e6cc62c6 20421 gthread)
21d1c967
GD
20422 gtk_config_args="$gtk_config_args gthread"
20423 ;;
20424 esac
20425 done
20426
20427 if test x$gtk_config_exec_prefix != x ; then
20428 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20429 if test x${GTK_CONFIG+set} != xset ; then
20430 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20431 fi
20432 fi
20433 if test x$gtk_config_prefix != x ; then
20434 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20435 if test x${GTK_CONFIG+set} != xset ; then
20436 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20437 fi
20438 fi
20439
20440 # Extract the first word of "gtk-config", so it can be a program name with args.
20441set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20442echo "$as_me:$LINENO: checking for $ac_word" >&5
20443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20444if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20446else
e6cc62c6
VS
20447 case $GTK_CONFIG in
20448 [\\/]* | ?:[\\/]*)
21d1c967
GD
20449 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20450 ;;
21d1c967 20451 *)
e6cc62c6
VS
20452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20453for as_dir in $PATH
20454do
20455 IFS=$as_save_IFS
20456 test -z "$as_dir" && as_dir=.
20457 for ac_exec_ext in '' $ac_executable_extensions; do
20458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20459 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20461 break 2
20462 fi
20463done
20464done
20465
21d1c967
GD
20466 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20467 ;;
20468esac
20469fi
e6cc62c6
VS
20470GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20471
21d1c967 20472if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20473 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20474echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20475else
e6cc62c6
VS
20476 echo "$as_me:$LINENO: result: no" >&5
20477echo "${ECHO_T}no" >&6
21d1c967
GD
20478fi
20479
20480 min_gtk_version=1.2.7
e6cc62c6
VS
20481 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20482echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20483 no_gtk=""
20484 if test "$GTK_CONFIG" = "no" ; then
20485 no_gtk=yes
20486 else
20487 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20488 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20489 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20490 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20491 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20492 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20493 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20494 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20495 if test "x$enable_gtktest" = "xyes" ; then
20496 ac_save_CFLAGS="$CFLAGS"
20497 ac_save_LIBS="$LIBS"
20498 CFLAGS="$CFLAGS $GTK_CFLAGS"
20499 LIBS="$GTK_LIBS $LIBS"
20500 rm -f conf.gtktest
20501 if test "$cross_compiling" = yes; then
20502 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20503else
e6cc62c6
VS
20504 cat >conftest.$ac_ext <<_ACEOF
20505#line $LINENO "configure"
20506/* confdefs.h. */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h. */
f79bd02d 20511
21d1c967
GD
20512#include <gtk/gtk.h>
20513#include <stdio.h>
20514#include <stdlib.h>
f79bd02d 20515
e6cc62c6 20516int
21d1c967
GD
20517main ()
20518{
20519 int major, minor, micro;
20520 char *tmp_version;
20521
20522 system ("touch conf.gtktest");
20523
20524 /* HP/UX 9 (%@#!) writes to sscanf strings */
20525 tmp_version = g_strdup("$min_gtk_version");
20526 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20527 printf("%s, bad version string\n", "$min_gtk_version");
20528 exit(1);
20529 }
90dd450c 20530
21d1c967
GD
20531 if ((gtk_major_version != $gtk_config_major_version) ||
20532 (gtk_minor_version != $gtk_config_minor_version) ||
20533 (gtk_micro_version != $gtk_config_micro_version))
20534 {
e6cc62c6 20535 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20536 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20537 gtk_major_version, gtk_minor_version, gtk_micro_version);
20538 printf ("*** was found! If gtk-config was correct, then it is best\n");
20539 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20540 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20541 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20542 printf("*** required on your system.\n");
20543 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20544 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20545 printf("*** before re-running configure\n");
e6cc62c6 20546 }
21d1c967
GD
20547#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20548 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20549 (gtk_minor_version != GTK_MINOR_VERSION) ||
20550 (gtk_micro_version != GTK_MICRO_VERSION))
20551 {
20552 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20553 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20554 printf("*** library (version %d.%d.%d)\n",
20555 gtk_major_version, gtk_minor_version, gtk_micro_version);
20556 }
20557#endif /* defined (GTK_MAJOR_VERSION) ... */
20558 else
20559 {
20560 if ((gtk_major_version > major) ||
20561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20563 {
20564 return 0;
20565 }
20566 else
20567 {
20568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20569 gtk_major_version, gtk_minor_version, gtk_micro_version);
20570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20571 major, minor, micro);
20572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20573 printf("***\n");
20574 printf("*** If you have already installed a sufficiently new version, this error\n");
20575 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20577 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20578 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20580 printf("*** so that the correct libraries are found at run-time))\n");
20581 }
20582 }
20583 return 1;
20584}
20585
e6cc62c6
VS
20586_ACEOF
20587rm -f conftest$ac_exeext
20588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20589 (eval $ac_link) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
21d1c967
GD
20598 :
20599else
e6cc62c6
VS
20600 echo "$as_me: program exited with status $ac_status" >&5
20601echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604( exit $ac_status )
20605no_gtk=yes
21d1c967 20606fi
e6cc62c6 20607rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20608fi
21d1c967
GD
20609 CFLAGS="$ac_save_CFLAGS"
20610 LIBS="$ac_save_LIBS"
20611 fi
20612 fi
20613 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20614 echo "$as_me:$LINENO: result: yes" >&5
20615echo "${ECHO_T}yes" >&6
20616 wx_cv_lib_gtk=1.2.7
21d1c967 20617 else
e6cc62c6
VS
20618 echo "$as_me:$LINENO: result: no" >&5
20619echo "${ECHO_T}no" >&6
21d1c967
GD
20620 if test "$GTK_CONFIG" = "no" ; then
20621 echo "*** The gtk-config script installed by GTK could not be found"
20622 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20623 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20624 echo "*** full path to gtk-config."
20625 else
20626 if test -f conf.gtktest ; then
20627 :
20628 else
20629 echo "*** Could not run GTK test program, checking why..."
20630 CFLAGS="$CFLAGS $GTK_CFLAGS"
20631 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20632 cat >conftest.$ac_ext <<_ACEOF
20633#line $LINENO "configure"
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
21d1c967
GD
20639
20640#include <gtk/gtk.h>
20641#include <stdio.h>
20642
e6cc62c6
VS
20643int
20644main ()
20645{
20646 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651rm -f conftest.$ac_objext conftest$ac_exeext
20652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20653 (eval $ac_link) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -s conftest$ac_exeext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
21d1c967
GD
20663 echo "*** The test program compiled, but did not run. This usually means"
20664 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20665 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20666 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20667 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20668 echo "*** is required on your system"
20669 echo "***"
20670 echo "*** If you have an old version installed, it is best to remove it, although"
20671 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20672 echo "***"
20673 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20674 echo "*** came with the system with the command"
20675 echo "***"
e6cc62c6 20676 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20677else
e6cc62c6
VS
20678 echo "$as_me: failed program was:" >&5
20679sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20682 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20683 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20684 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20685fi
e6cc62c6 20686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20687 CFLAGS="$ac_save_CFLAGS"
20688 LIBS="$ac_save_LIBS"
20689 fi
20690 fi
20691 GTK_CFLAGS=""
20692 GTK_LIBS=""
20693 :
20694 fi
e6cc62c6
VS
20695
20696
21d1c967
GD
20697 rm -f conf.gtktest
20698
21d1c967 20699
2b5f62a0 20700 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20701
20702# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20703if test "${with_gtk_prefix+set}" = set; then
20704 withval="$with_gtk_prefix"
20705 gtk_config_prefix="$withval"
20706else
20707 gtk_config_prefix=""
e6cc62c6 20708fi;
f79bd02d 20709
21d1c967
GD
20710# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20711if test "${with_gtk_exec_prefix+set}" = set; then
20712 withval="$with_gtk_exec_prefix"
20713 gtk_config_exec_prefix="$withval"
20714else
20715 gtk_config_exec_prefix=""
e6cc62c6 20716fi;
21d1c967
GD
20717# Check whether --enable-gtktest or --disable-gtktest was given.
20718if test "${enable_gtktest+set}" = set; then
20719 enableval="$enable_gtktest"
e6cc62c6 20720
90dd450c 20721else
21d1c967 20722 enable_gtktest=yes
e6cc62c6 20723fi;
21d1c967
GD
20724
20725 for module in . $GTK_MODULES
20726 do
20727 case "$module" in
e6cc62c6 20728 gthread)
21d1c967
GD
20729 gtk_config_args="$gtk_config_args gthread"
20730 ;;
20731 esac
20732 done
20733
20734 if test x$gtk_config_exec_prefix != x ; then
20735 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20736 if test x${GTK_CONFIG+set} != xset ; then
20737 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20738 fi
20739 fi
20740 if test x$gtk_config_prefix != x ; then
20741 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20742 if test x${GTK_CONFIG+set} != xset ; then
20743 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20744 fi
20745 fi
20746
20747 # Extract the first word of "gtk-config", so it can be a program name with args.
20748set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20749echo "$as_me:$LINENO: checking for $ac_word" >&5
20750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20751if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20753else
e6cc62c6
VS
20754 case $GTK_CONFIG in
20755 [\\/]* | ?:[\\/]*)
21d1c967
GD
20756 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20757 ;;
21d1c967 20758 *)
e6cc62c6
VS
20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760for as_dir in $PATH
20761do
20762 IFS=$as_save_IFS
20763 test -z "$as_dir" && as_dir=.
20764 for ac_exec_ext in '' $ac_executable_extensions; do
20765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20766 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20768 break 2
20769 fi
20770done
20771done
20772
21d1c967
GD
20773 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20774 ;;
20775esac
20776fi
e6cc62c6
VS
20777GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20778
21d1c967 20779if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20780 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20781echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20782else
e6cc62c6
VS
20783 echo "$as_me:$LINENO: result: no" >&5
20784echo "${ECHO_T}no" >&6
21d1c967
GD
20785fi
20786
20787 min_gtk_version=1.2.3
e6cc62c6
VS
20788 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20789echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20790 no_gtk=""
20791 if test "$GTK_CONFIG" = "no" ; then
20792 no_gtk=yes
20793 else
20794 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20795 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20796 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20797 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20798 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20799 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20800 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20801 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20802 if test "x$enable_gtktest" = "xyes" ; then
20803 ac_save_CFLAGS="$CFLAGS"
20804 ac_save_LIBS="$LIBS"
20805 CFLAGS="$CFLAGS $GTK_CFLAGS"
20806 LIBS="$GTK_LIBS $LIBS"
20807 rm -f conf.gtktest
20808 if test "$cross_compiling" = yes; then
20809 echo $ac_n "cross compiling; assumed OK... $ac_c"
20810else
e6cc62c6
VS
20811 cat >conftest.$ac_ext <<_ACEOF
20812#line $LINENO "configure"
20813/* confdefs.h. */
20814_ACEOF
20815cat confdefs.h >>conftest.$ac_ext
20816cat >>conftest.$ac_ext <<_ACEOF
20817/* end confdefs.h. */
21d1c967
GD
20818
20819#include <gtk/gtk.h>
20820#include <stdio.h>
20821#include <stdlib.h>
20822
e6cc62c6 20823int
21d1c967
GD
20824main ()
20825{
20826 int major, minor, micro;
20827 char *tmp_version;
20828
20829 system ("touch conf.gtktest");
20830
20831 /* HP/UX 9 (%@#!) writes to sscanf strings */
20832 tmp_version = g_strdup("$min_gtk_version");
20833 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20834 printf("%s, bad version string\n", "$min_gtk_version");
20835 exit(1);
20836 }
20837
20838 if ((gtk_major_version != $gtk_config_major_version) ||
20839 (gtk_minor_version != $gtk_config_minor_version) ||
20840 (gtk_micro_version != $gtk_config_micro_version))
20841 {
e6cc62c6 20842 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20843 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20844 gtk_major_version, gtk_minor_version, gtk_micro_version);
20845 printf ("*** was found! If gtk-config was correct, then it is best\n");
20846 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20847 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20848 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20849 printf("*** required on your system.\n");
20850 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20851 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20852 printf("*** before re-running configure\n");
e6cc62c6 20853 }
21d1c967
GD
20854#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20855 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20856 (gtk_minor_version != GTK_MINOR_VERSION) ||
20857 (gtk_micro_version != GTK_MICRO_VERSION))
20858 {
20859 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20860 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20861 printf("*** library (version %d.%d.%d)\n",
20862 gtk_major_version, gtk_minor_version, gtk_micro_version);
20863 }
20864#endif /* defined (GTK_MAJOR_VERSION) ... */
20865 else
20866 {
20867 if ((gtk_major_version > major) ||
20868 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20869 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20870 {
20871 return 0;
20872 }
20873 else
20874 {
20875 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20876 gtk_major_version, gtk_minor_version, gtk_micro_version);
20877 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20878 major, minor, micro);
20879 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20880 printf("***\n");
20881 printf("*** If you have already installed a sufficiently new version, this error\n");
20882 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20883 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20884 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20885 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20886 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20887 printf("*** so that the correct libraries are found at run-time))\n");
20888 }
20889 }
20890 return 1;
20891}
20892
e6cc62c6
VS
20893_ACEOF
20894rm -f conftest$ac_exeext
20895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896 (eval $ac_link) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
21d1c967
GD
20905 :
20906else
e6cc62c6
VS
20907 echo "$as_me: program exited with status $ac_status" >&5
20908echo "$as_me: failed program was:" >&5
20909sed 's/^/| /' conftest.$ac_ext >&5
20910
20911( exit $ac_status )
20912no_gtk=yes
21d1c967 20913fi
e6cc62c6 20914rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20915fi
21d1c967
GD
20916 CFLAGS="$ac_save_CFLAGS"
20917 LIBS="$ac_save_LIBS"
20918 fi
20919 fi
20920 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20921 echo "$as_me:$LINENO: result: yes" >&5
20922echo "${ECHO_T}yes" >&6
20923 wx_cv_lib_gtk=1.2.3
21d1c967 20924 else
e6cc62c6
VS
20925 echo "$as_me:$LINENO: result: no" >&5
20926echo "${ECHO_T}no" >&6
21d1c967
GD
20927 if test "$GTK_CONFIG" = "no" ; then
20928 echo "*** The gtk-config script installed by GTK could not be found"
20929 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20930 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20931 echo "*** full path to gtk-config."
20932 else
20933 if test -f conf.gtktest ; then
20934 :
20935 else
20936 echo "*** Could not run GTK test program, checking why..."
20937 CFLAGS="$CFLAGS $GTK_CFLAGS"
20938 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20939 cat >conftest.$ac_ext <<_ACEOF
20940#line $LINENO "configure"
20941/* confdefs.h. */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h. */
21d1c967
GD
20946
20947#include <gtk/gtk.h>
20948#include <stdio.h>
f79bd02d 20949
e6cc62c6
VS
20950int
20951main ()
20952{
20953 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20954 ;
20955 return 0;
20956}
20957_ACEOF
20958rm -f conftest.$ac_objext conftest$ac_exeext
20959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20960 (eval $ac_link) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -s conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
21d1c967
GD
20970 echo "*** The test program compiled, but did not run. This usually means"
20971 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20972 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20973 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20974 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20975 echo "*** is required on your system"
20976 echo "***"
20977 echo "*** If you have an old version installed, it is best to remove it, although"
20978 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20979 echo "***"
20980 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20981 echo "*** came with the system with the command"
20982 echo "***"
e6cc62c6 20983 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20984else
e6cc62c6
VS
20985 echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20989 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20990 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20991 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20992fi
e6cc62c6 20993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20994 CFLAGS="$ac_save_CFLAGS"
20995 LIBS="$ac_save_LIBS"
20996 fi
20997 fi
20998 GTK_CFLAGS=""
20999 GTK_LIBS=""
21000 :
21001 fi
e6cc62c6
VS
21002
21003
21d1c967 21004 rm -f conf.gtktest
f79bd02d 21005
2b5f62a0 21006 fi
21d1c967
GD
21007 fi
21008
21009 if test -z "$wx_cv_lib_gtk"; then
21010 wx_cv_lib_gtk=none
21011 else
21012 wx_cv_cflags_gtk=$GTK_CFLAGS
21013 wx_cv_libs_gtk=$GTK_LIBS
21014 fi
e6cc62c6
VS
21015
21016
5c6fa7d2 21017fi
52127426 21018
8284b0c5 21019
21d1c967 21020 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
21021 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21022echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
21023 fi
21024
21025 case "$wx_cv_lib_gtk" in
21026 2.0) WXGTK20=1
2b5f62a0 21027 TOOLKIT_VERSION=2
21d1c967
GD
21028 ;;
21029 1.2.7) WXGTK127=1
21030 WXGTK12=1
21031 ;;
21032 1.2.3) WXGTK12=1
21033 ;;
e6cc62c6
VS
21034 *) { { echo "$as_me:$LINENO: error:
21035Please check that gtk-config is in path, the directory
21036where GTK+ libraries are installed (returned by
21037'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21038equivalent variable and GTK+ is version 1.2.3 or above.
21039 " >&5
21040echo "$as_me: error:
247f5006
VZ
21041Please check that gtk-config is in path, the directory
21042where GTK+ libraries are installed (returned by
21043'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21044equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
21045 " >&2;}
21046 { (exit 1); exit 1; }; }
21d1c967
GD
21047 ;;
21048 esac
21049
b13cd66e
VZ
21050 if test "$WXGTK20" = 1; then
21051 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 21052
f09359cf
VS
21053 succeeded=no
21054
21055 if test -z "$PKG_CONFIG"; then
21056 # Extract the first word of "pkg-config", so it can be a program name with args.
21057set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21058echo "$as_me:$LINENO: checking for $ac_word" >&5
21059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21060if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 21062else
e6cc62c6
VS
21063 case $PKG_CONFIG in
21064 [\\/]* | ?:[\\/]*)
f09359cf
VS
21065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21066 ;;
f09359cf 21067 *)
e6cc62c6
VS
21068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21069for as_dir in $PATH
21070do
21071 IFS=$as_save_IFS
21072 test -z "$as_dir" && as_dir=.
21073 for ac_exec_ext in '' $ac_executable_extensions; do
21074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21077 break 2
21078 fi
21079done
21080done
21081
f09359cf
VS
21082 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21083 ;;
21084esac
21085fi
e6cc62c6
VS
21086PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21087
f09359cf 21088if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21089 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21090echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 21091else
e6cc62c6
VS
21092 echo "$as_me:$LINENO: result: no" >&5
21093echo "${ECHO_T}no" >&6
f09359cf
VS
21094fi
21095
21096 fi
21097
21098 if test "$PKG_CONFIG" = "no" ; then
21099 echo "*** The pkg-config script could not be found. Make sure it is"
21100 echo "*** in your path, or set the PKG_CONFIG environment variable"
21101 echo "*** to the full path to pkg-config."
21102 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21103 else
21104 PKG_CONFIG_MIN_VERSION=0.9.0
21105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21106 echo "$as_me:$LINENO: checking for pangoft2" >&5
21107echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21108
21109 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21110 echo "$as_me:$LINENO: result: yes" >&5
21111echo "${ECHO_T}yes" >&6
f09359cf
VS
21112 succeeded=yes
21113
e6cc62c6
VS
21114 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21115echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21116 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21117 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21118echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21119
e6cc62c6
VS
21120 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21121echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21122 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21123 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21124echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21125 else
21126 PANGOFT2_CFLAGS=""
21127 PANGOFT2_LIBS=""
e6cc62c6 21128 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21129 ## do set a variable so people can do so.
21130 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21131
f09359cf
VS
21132 fi
21133
e6cc62c6
VS
21134
21135
f09359cf
VS
21136 else
21137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21139 fi
21140 fi
21141
21142 if test $succeeded = yes; then
e6cc62c6 21143
b13cd66e 21144 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21145 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21146
f09359cf 21147 else
e6cc62c6
VS
21148
21149 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21150echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21151 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21152
21153
f09359cf
VS
21154 fi
21155
b13cd66e 21156 fi
2b5f62a0
VZ
21157 else
21158 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21159 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21160echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21161 wxUSE_UNICODE=no
21162 fi
21163 fi
21164
21165 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21166
21167for ac_func in poll
2b5f62a0 21168do
e6cc62c6
VS
21169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21170echo "$as_me:$LINENO: checking for $ac_func" >&5
21171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21172if eval "test \"\${$as_ac_var+set}\" = set"; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174else
21175 cat >conftest.$ac_ext <<_ACEOF
21176#line $LINENO "configure"
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
2b5f62a0 21182/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21183 which can conflict with char $ac_func (); below.
21184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21185 <limits.h> exists even on freestanding compilers. */
21186#ifdef __STDC__
21187# include <limits.h>
21188#else
21189# include <assert.h>
21190#endif
2b5f62a0 21191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21192#ifdef __cplusplus
21193extern "C"
21194{
21195#endif
2b5f62a0 21196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21197 builtin and then its argument prototype would still apply. */
21198char $ac_func ();
2b5f62a0
VZ
21199/* The GNU C library defines this for functions which it implements
21200 to always fail with ENOSYS. Some functions are actually named
21201 something starting with __ and the normal name is an alias. */
21202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21203choke me
21204#else
e6cc62c6
VS
21205char (*f) () = $ac_func;
21206#endif
21207#ifdef __cplusplus
21208}
2b5f62a0
VZ
21209#endif
21210
e6cc62c6
VS
21211int
21212main ()
21213{
21214return f != $ac_func;
21215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext conftest$ac_exeext
21220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -s conftest$ac_exeext'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 eval "$as_ac_var=yes"
21232else
21233 echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236eval "$as_ac_var=no"
21237fi
21238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21239fi
21240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21242if test `eval echo '${'$as_ac_var'}'` = yes; then
21243 cat >>confdefs.h <<_ACEOF
21244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21245_ACEOF
2b5f62a0 21246
2b5f62a0
VZ
21247fi
21248done
21249
f09359cf
VS
21250 fi
21251
21d1c967 21252 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21253 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21254
21255 AFMINSTALL=afminstall
21256 TOOLKIT=GTK
21257 GUIDIST=GTK_DIST
21258
e6cc62c6
VS
21259 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21260echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21261if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21263else
e6cc62c6 21264 ac_check_lib_save_LIBS=$LIBS
21d1c967 21265LIBS="-lgdk $LIBS"
e6cc62c6
VS
21266cat >conftest.$ac_ext <<_ACEOF
21267#line $LINENO "configure"
21268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h. */
21273
5c6fa7d2 21274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21275#ifdef __cplusplus
21276extern "C"
21277#endif
5c6fa7d2 21278/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21279 builtin and then its argument prototype would still apply. */
21280char gdk_im_open ();
21281int
21282main ()
21283{
21284gdk_im_open ();
21285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext conftest$ac_exeext
21290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21291 (eval $ac_link) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -s conftest$ac_exeext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_cv_lib_gdk_gdk_im_open=yes
21302else
21303 echo "$as_me: failed program was:" >&5
21304sed 's/^/| /' conftest.$ac_ext >&5
21305
21306ac_cv_lib_gdk_gdk_im_open=no
21307fi
21308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21309LIBS=$ac_check_lib_save_LIBS
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21312echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21313if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21314 cat >>confdefs.h <<\_ACEOF
21d1c967 21315#define HAVE_XIM 1
e6cc62c6 21316_ACEOF
21d1c967 21317
90dd450c 21318fi
1e6feb95 21319
21d1c967 21320 fi
1e6feb95 21321
21d1c967 21322 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21323 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21324echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21325 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21326 echo "$as_me:$LINENO: result: not found" >&5
21327echo "${ECHO_T}not found" >&6
21328 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21329echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21330 { (exit 1); exit 1; }; }
21d1c967 21331 else
e6cc62c6
VS
21332 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21333echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21334 fi
21335
e6cc62c6
VS
21336 echo "$as_me:$LINENO: checking for libmgl location" >&5
21337echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21338 case "${host}" in
21d1c967 21339 *-*-linux* )
e46d2a18
VS
21340 if test "x$wxUSE_SHARED" = xyes ; then
21341 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21342 else
e46d2a18 21343 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21344 fi
21d1c967
GD
21345 ;;
21346 *-pc-msdosdjgpp )
63a76696 21347 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21348 ;;
21349 *)
e6cc62c6
VS
21350 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21351echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21352 { (exit 1); exit 1; }; }
21d1c967 21353 esac
1e6feb95 21354
21d1c967 21355 mgl_lib_type=""
63a76696
VS
21356 mgl_os=""
21357
21358 for mgl_os_i in $mgl_os_candidates ; do
21359 if test "x$mgl_os" = x ; then
21360 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21361 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21362 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21363 mgl_lib_type=debug
21364 mgl_os=$mgl_os_i
21365 fi
21366 fi
21367 if test "x$mgl_lib_type" = x ; then
21368 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21369 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21370 mgl_lib_type=release
21371 mgl_os=$mgl_os_i
21372 fi
21373 fi
21d1c967 21374 fi
63a76696 21375 done
2224580a 21376
63a76696 21377 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21378 echo "$as_me:$LINENO: result: not found" >&5
21379echo "${ECHO_T}not found" >&6
21380 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21381echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21382 { (exit 1); exit 1; }; }
63a76696 21383 fi
e6cc62c6
VS
21384 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21385echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21386
1d1b75ac
VZ
21387 wxUSE_UNIVERSAL="yes"
21388
21d1c967
GD
21389 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21390 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21391
90dd450c 21392 AFMINSTALL=afminstall
21d1c967
GD
21393 TOOLKIT=MGL
21394 GUIDIST=MGL_DIST
21395 fi
dad6c0ea 21396
21d1c967 21397 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21398 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21399echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21400 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21401 echo "$as_me:$LINENO: result: not found" >&5
21402echo "${ECHO_T}not found" >&6
21403 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21404echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21405 { (exit 1); exit 1; }; }
21d1c967 21406 else
e6cc62c6
VS
21407 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21408echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21409 fi
f6bcfd97 21410
21d1c967 21411 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21412 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21413echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21414 else
e6cc62c6
VS
21415 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21416echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21417 { (exit 1); exit 1; }; }
90dd450c 21418 fi
0b2effe9 21419
21d1c967
GD
21420 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21421 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21422
1d1b75ac
VZ
21423 wxUSE_UNIVERSAL="yes"
21424
21d1c967
GD
21425 AFMINSTALL=afminstall
21426 TOOLKIT=MICROWIN
21427 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21428
21429 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21430 fi
f6bcfd97 21431
21d1c967 21432 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21433 echo "$as_me:$LINENO: checking for X" >&5
21434echo $ECHO_N "checking for X... $ECHO_C" >&6
21435
d8356fa3 21436
21d1c967
GD
21437# Check whether --with-x or --without-x was given.
21438if test "${with_x+set}" = set; then
21439 withval="$with_x"
2224580a 21440
e6cc62c6 21441fi;
21d1c967
GD
21442# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21443if test "x$with_x" = xno; then
21444 # The user explicitly disabled X.
21445 have_x=disabled
21446else
21447 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21448 # Both variables are already set.
21449 have_x=yes
21450 else
e6cc62c6
VS
21451 if test "${ac_cv_have_x+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21453else
21454 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21455ac_x_includes=no ac_x_libraries=no
21456rm -fr conftest.dir
21457if mkdir conftest.dir; then
21458 cd conftest.dir
21d1c967 21459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21460 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21461acfindx:
21462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21463_ACEOF
21d1c967
GD
21464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21468 for ac_extension in a so sl; do
21469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21470 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21471 ac_im_usrlibdir=$ac_im_libdir; break
21472 fi
21473 done
21474 # Screen out bogus values from the imake configuration. They are
21475 # bogus both because they are the default anyway, and because
21476 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21477 case $ac_im_incroot in
21d1c967 21478 /usr/include) ;;
e6cc62c6 21479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21480 esac
e6cc62c6 21481 case $ac_im_usrlibdir in
21d1c967 21482 /usr/lib | /lib) ;;
e6cc62c6 21483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21484 esac
21485 fi
21486 cd ..
e6cc62c6 21487 rm -fr conftest.dir
21d1c967 21488fi
10f2d63a 21489
e6cc62c6
VS
21490# Standard set of common directories for X headers.
21491# Check X11 before X11Rn because it is often a symlink to the current release.
21492ac_x_header_dirs='
21493/usr/X11/include
21494/usr/X11R6/include
21495/usr/X11R5/include
21496/usr/X11R4/include
21497
21498/usr/include/X11
21499/usr/include/X11R6
21500/usr/include/X11R5
21501/usr/include/X11R4
21502
21503/usr/local/X11/include
21504/usr/local/X11R6/include
21505/usr/local/X11R5/include
21506/usr/local/X11R4/include
21507
21508/usr/local/include/X11
21509/usr/local/include/X11R6
21510/usr/local/include/X11R5
21511/usr/local/include/X11R4
21512
21513/usr/X386/include
21514/usr/x386/include
21515/usr/XFree86/include/X11
21516
21517/usr/include
21518/usr/local/include
21519/usr/unsupported/include
21520/usr/athena/include
21521/usr/local/x11r5/include
21522/usr/lpp/Xamples/include
21523
21524/usr/openwin/include
21525/usr/openwin/share/include'
21526
21527if test "$ac_x_includes" = no; then
21528 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21529 # First, try using that file with no special directory specified.
e6cc62c6
VS
21530 cat >conftest.$ac_ext <<_ACEOF
21531#line $LINENO "configure"
21532/* confdefs.h. */
21533_ACEOF
21534cat confdefs.h >>conftest.$ac_ext
21535cat >>conftest.$ac_ext <<_ACEOF
21536/* end confdefs.h. */
21537#include <X11/Intrinsic.h>
21538_ACEOF
21539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } >/dev/null; then
21547 if test -s conftest.err; then
21548 ac_cpp_err=$ac_c_preproc_warn_flag
21549 else
21550 ac_cpp_err=
21551 fi
21552else
21553 ac_cpp_err=yes
21554fi
21555if test -z "$ac_cpp_err"; then
21d1c967
GD
21556 # We can compile using X headers with no special include directory.
21557ac_x_includes=
90dd450c 21558else
e6cc62c6
VS
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 for ac_dir in $ac_x_header_dirs; do
21563 if test -r "$ac_dir/X11/Intrinsic.h"; then
21564 ac_x_includes=$ac_dir
21565 break
21566 fi
21567done
3a922bb4 21568fi
e6cc62c6
VS
21569rm -f conftest.err conftest.$ac_ext
21570fi # $ac_x_includes = no
10f2d63a 21571
e6cc62c6 21572if test "$ac_x_libraries" = no; then
21d1c967 21573 # Check for the libraries.
21d1c967
GD
21574 # See if we find them without any special options.
21575 # Don't add to $LIBS permanently.
e6cc62c6
VS
21576 ac_save_LIBS=$LIBS
21577 LIBS="-lXt $LIBS"
21578 cat >conftest.$ac_ext <<_ACEOF
21579#line $LINENO "configure"
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585#include <X11/Intrinsic.h>
21586int
21587main ()
21588{
21589XtMalloc (0)
21590 ;
21591 return 0;
21592}
21593_ACEOF
21594rm -f conftest.$ac_objext conftest$ac_exeext
21595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596 (eval $ac_link) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try='test -s conftest$ac_exeext'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 LIBS=$ac_save_LIBS
21d1c967
GD
21607# We can link X programs with no special library path.
21608ac_x_libraries=
3a922bb4 21609else
e6cc62c6
VS
21610 echo "$as_me: failed program was:" >&5
21611sed 's/^/| /' conftest.$ac_ext >&5
21612
21613LIBS=$ac_save_LIBS
21614for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21615do
e6cc62c6 21616 # Don't even attempt the hair of trying to link an X program!
21d1c967 21617 for ac_extension in a so sl; do
e6cc62c6 21618 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21619 ac_x_libraries=$ac_dir
21620 break 2
21621 fi
21622 done
21623done
3a922bb4 21624fi
e6cc62c6
VS
21625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21626fi # $ac_x_libraries = no
90dd450c 21627
e6cc62c6 21628if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21629 # Didn't find X anywhere. Cache the known absence of X.
21630 ac_cv_have_x="have_x=no"
21631else
21632 # Record where we found X for the cache.
21633 ac_cv_have_x="have_x=yes \
21634 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21635fi
21d1c967 21636fi
e6cc62c6 21637
21d1c967
GD
21638 fi
21639 eval "$ac_cv_have_x"
21640fi # $with_x != no
90dd450c 21641
21d1c967 21642if test "$have_x" != yes; then
e6cc62c6
VS
21643 echo "$as_me:$LINENO: result: $have_x" >&5
21644echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21645 no_x=yes
21646else
21647 # If each of the values was on the command line, it overrides each guess.
21648 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21649 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21650 # Update the cache value to reflect the command line values.
21651 ac_cv_have_x="have_x=yes \
21652 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21653 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21654echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21655fi
90dd450c 21656
21d1c967 21657if test "$no_x" = yes; then
90dd450c 21658 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21659
21660cat >>confdefs.h <<\_ACEOF
90dd450c 21661#define X_DISPLAY_MISSING 1
e6cc62c6 21662_ACEOF
90dd450c
VZ
21663
21664 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21665else
21666 if test -n "$x_includes"; then
21667 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21668 fi
3a922bb4 21669
90dd450c
VZ
21670 # It would also be nice to do this for all -L options, not just this one.
21671 if test -n "$x_libraries"; then
21672 X_LIBS="$X_LIBS -L$x_libraries"
21673 # For Solaris; some versions of Sun CC require a space after -R and
21674 # others require no space. Words are not sufficient . . . .
e6cc62c6 21675 case `(uname -sr) 2>/dev/null` in
90dd450c 21676 "SunOS 5"*)
e6cc62c6
VS
21677 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21678echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21679 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21680 cat >conftest.$ac_ext <<_ACEOF
21681#line $LINENO "configure"
21682/* confdefs.h. */
21683_ACEOF
21684cat confdefs.h >>conftest.$ac_ext
21685cat >>conftest.$ac_ext <<_ACEOF
21686/* end confdefs.h. */
21687
21688int
21689main ()
21690{
90dd450c 21691
e6cc62c6
VS
21692 ;
21693 return 0;
21694}
21695_ACEOF
21696rm -f conftest.$ac_objext conftest$ac_exeext
21697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21698 (eval $ac_link) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); } &&
21702 { ac_try='test -s conftest$ac_exeext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
90dd450c 21708 ac_R_nospace=yes
3a922bb4 21709else
e6cc62c6
VS
21710 echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713ac_R_nospace=no
3a922bb4 21714fi
e6cc62c6 21715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21716 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21717 echo "$as_me:$LINENO: result: no" >&5
21718echo "${ECHO_T}no" >&6
90dd450c
VZ
21719 X_LIBS="$X_LIBS -R$x_libraries"
21720 else
21721 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21722 cat >conftest.$ac_ext <<_ACEOF
21723#line $LINENO "configure"
21724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h. */
21729
21730int
21731main ()
21732{
6f754473 21733
e6cc62c6
VS
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext conftest$ac_exeext
21739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -s conftest$ac_exeext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
90dd450c
VZ
21750 ac_R_space=yes
21751else
e6cc62c6
VS
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755ac_R_space=no
90dd450c 21756fi
e6cc62c6 21757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21758 if test $ac_R_space = yes; then
e6cc62c6
VS
21759 echo "$as_me:$LINENO: result: yes" >&5
21760echo "${ECHO_T}yes" >&6
90dd450c
VZ
21761 X_LIBS="$X_LIBS -R $x_libraries"
21762 else
e6cc62c6
VS
21763 echo "$as_me:$LINENO: result: neither works" >&5
21764echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21765 fi
21766 fi
e6cc62c6 21767 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21768 esac
21769 fi
21770
21771 # Check for system-dependent libraries X programs must link with.
21772 # Do this before checking for the system-independent R6 libraries
21773 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21774
90dd450c
VZ
21775 if test "$ISC" = yes; then
21776 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21777 else
e6cc62c6
VS
21778 # Martyn Johnson says this is needed for Ultrix, if the X
21779 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21780 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21781 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21782 cat >conftest.$ac_ext <<_ACEOF
21783#line $LINENO "configure"
21784/* confdefs.h. */
21785_ACEOF
21786cat confdefs.h >>conftest.$ac_ext
21787cat >>conftest.$ac_ext <<_ACEOF
21788/* end confdefs.h. */
21789
247f5006 21790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21791#ifdef __cplusplus
21792extern "C"
21793#endif
247f5006 21794/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21795 builtin and then its argument prototype would still apply. */
21796char XOpenDisplay ();
21797int
21798main ()
21799{
21800XOpenDisplay ();
21801 ;
21802 return 0;
21803}
21804_ACEOF
21805rm -f conftest.$ac_objext conftest$ac_exeext
21806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21807 (eval $ac_link) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -s conftest$ac_exeext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 :
21818else
21819 echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21821
e6cc62c6
VS
21822echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21823echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21824if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21826else
e6cc62c6
VS
21827 ac_check_lib_save_LIBS=$LIBS
21828LIBS="-ldnet $LIBS"
21829cat >conftest.$ac_ext <<_ACEOF
21830#line $LINENO "configure"
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
a0b9e27f 21836
e6cc62c6
VS
21837/* Override any gcc2 internal prototype to avoid an error. */
21838#ifdef __cplusplus
21839extern "C"
21840#endif
21841/* We use char because int might match the return type of a gcc2
21842 builtin and then its argument prototype would still apply. */
21843char dnet_ntoa ();
21844int
21845main ()
21846{
21847dnet_ntoa ();
21848 ;
21849 return 0;
21850}
21851_ACEOF
21852rm -f conftest.$ac_objext conftest$ac_exeext
21853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>&5
21855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
21858 { ac_try='test -s conftest$ac_exeext'
21859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860 (eval $ac_try) 2>&5
21861 ac_status=$?
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; }; then
21864 ac_cv_lib_dnet_dnet_ntoa=yes
21865else
21866 echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869ac_cv_lib_dnet_dnet_ntoa=no
21870fi
21871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21872LIBS=$ac_check_lib_save_LIBS
21873fi
21874echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21875echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21876if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21877 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21878fi
21879
90dd450c 21880 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21881 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21882echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21883if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21885else
e6cc62c6 21886 ac_check_lib_save_LIBS=$LIBS
90dd450c 21887LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21888cat >conftest.$ac_ext <<_ACEOF
21889#line $LINENO "configure"
21890/* confdefs.h. */
21891_ACEOF
21892cat confdefs.h >>conftest.$ac_ext
21893cat >>conftest.$ac_ext <<_ACEOF
21894/* end confdefs.h. */
21895
90dd450c 21896/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21897#ifdef __cplusplus
21898extern "C"
21899#endif
90dd450c 21900/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21901 builtin and then its argument prototype would still apply. */
21902char dnet_ntoa ();
21903int
21904main ()
21905{
21906dnet_ntoa ();
21907 ;
21908 return 0;
21909}
21910_ACEOF
21911rm -f conftest.$ac_objext conftest$ac_exeext
21912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21913 (eval $ac_link) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try='test -s conftest$ac_exeext'
21918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); }; }; then
21923 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21924else
21925 echo "$as_me: failed program was:" >&5
21926sed 's/^/| /' conftest.$ac_ext >&5
21927
21928ac_cv_lib_dnet_stub_dnet_ntoa=no
21929fi
21930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21931LIBS=$ac_check_lib_save_LIBS
21932fi
21933echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21934echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21935if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21937fi
21938
90dd450c 21939 fi
e6cc62c6
VS
21940fi
21941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21942 LIBS="$ac_xsave_LIBS"
978f1259 21943
90dd450c
VZ
21944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21945 # to get the SysV transport functions.
e6cc62c6 21946 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21947 # needs -lnsl.
21948 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21949 # on Irix 5.2, according to T.E. Dickey.
21950 # The functions gethostbyname, getservbyname, and inet_addr are
21951 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21952 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21953echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21954if test "${ac_cv_func_gethostbyname+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
21957 cat >conftest.$ac_ext <<_ACEOF
21958#line $LINENO "configure"
21959/* confdefs.h. */
21960_ACEOF
21961cat confdefs.h >>conftest.$ac_ext
21962cat >>conftest.$ac_ext <<_ACEOF
21963/* end confdefs.h. */
90dd450c 21964/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21965 which can conflict with char gethostbyname (); below.
21966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21967 <limits.h> exists even on freestanding compilers. */
21968#ifdef __STDC__
21969# include <limits.h>
21970#else
21971# include <assert.h>
21972#endif
90dd450c 21973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21974#ifdef __cplusplus
21975extern "C"
21976{
21977#endif
90dd450c 21978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21979 builtin and then its argument prototype would still apply. */
21980char gethostbyname ();
90dd450c
VZ
21981/* The GNU C library defines this for functions which it implements
21982 to always fail with ENOSYS. Some functions are actually named
21983 something starting with __ and the normal name is an alias. */
21984#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21985choke me
21986#else
e6cc62c6
VS
21987char (*f) () = gethostbyname;
21988#endif
21989#ifdef __cplusplus
21990}
90dd450c 21991#endif
978f1259 21992
e6cc62c6
VS
21993int
21994main ()
21995{
21996return f != gethostbyname;
21997 ;
21998 return 0;
21999}
22000_ACEOF
22001rm -f conftest.$ac_objext conftest$ac_exeext
22002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22003 (eval $ac_link) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -s conftest$ac_exeext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ac_cv_func_gethostbyname=yes
22014else
22015 echo "$as_me: failed program was:" >&5
22016sed 's/^/| /' conftest.$ac_ext >&5
22017
22018ac_cv_func_gethostbyname=no
22019fi
22020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22021fi
22022echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22023echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 22024
90dd450c 22025 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22026 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22027echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22028if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22030else
e6cc62c6 22031 ac_check_lib_save_LIBS=$LIBS
90dd450c 22032LIBS="-lnsl $LIBS"
e6cc62c6
VS
22033cat >conftest.$ac_ext <<_ACEOF
22034#line $LINENO "configure"
22035/* confdefs.h. */
22036_ACEOF
22037cat confdefs.h >>conftest.$ac_ext
22038cat >>conftest.$ac_ext <<_ACEOF
22039/* end confdefs.h. */
22040
90dd450c 22041/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22042#ifdef __cplusplus
22043extern "C"
22044#endif
90dd450c 22045/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22046 builtin and then its argument prototype would still apply. */
22047char gethostbyname ();
22048int
22049main ()
22050{
22051gethostbyname ();
22052 ;
22053 return 0;
22054}
22055_ACEOF
22056rm -f conftest.$ac_objext conftest$ac_exeext
22057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22058 (eval $ac_link) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -s conftest$ac_exeext'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_lib_nsl_gethostbyname=yes
22069else
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_cv_lib_nsl_gethostbyname=no
22074fi
22075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22076LIBS=$ac_check_lib_save_LIBS
22077fi
22078echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22079echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22080if test $ac_cv_lib_nsl_gethostbyname = yes; then
22081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22082fi
247f5006 22083
e6cc62c6
VS
22084 if test $ac_cv_lib_nsl_gethostbyname = no; then
22085 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22086echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22087if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22089else
e6cc62c6
VS
22090 ac_check_lib_save_LIBS=$LIBS
22091LIBS="-lbsd $LIBS"
22092cat >conftest.$ac_ext <<_ACEOF
22093#line $LINENO "configure"
22094/* confdefs.h. */
22095_ACEOF
22096cat confdefs.h >>conftest.$ac_ext
22097cat >>conftest.$ac_ext <<_ACEOF
22098/* end confdefs.h. */
22099
22100/* Override any gcc2 internal prototype to avoid an error. */
22101#ifdef __cplusplus
22102extern "C"
22103#endif
22104/* We use char because int might match the return type of a gcc2
22105 builtin and then its argument prototype would still apply. */
22106char gethostbyname ();
22107int
22108main ()
22109{
22110gethostbyname ();
22111 ;
22112 return 0;
22113}
22114_ACEOF
22115rm -f conftest.$ac_objext conftest$ac_exeext
22116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22117 (eval $ac_link) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } &&
22121 { ac_try='test -s conftest$ac_exeext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_cv_lib_bsd_gethostbyname=yes
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132ac_cv_lib_bsd_gethostbyname=no
22133fi
22134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22135LIBS=$ac_check_lib_save_LIBS
22136fi
22137echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22138echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22139if test $ac_cv_lib_bsd_gethostbyname = yes; then
22140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22141fi
b12915c1 22142
e6cc62c6 22143 fi
90dd450c
VZ
22144 fi
22145
22146 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22147 # socket/setsockopt and other routines are undefined under SCO ODT
22148 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22149 # on later versions), says Simon Leinen: it contains gethostby*
22150 # variants that don't use the name server (or something). -lsocket
22151 # must be given before -lnsl if both are needed. We assume that
22152 # if connect needs -lnsl, so does gethostbyname.
22153 echo "$as_me:$LINENO: checking for connect" >&5
22154echo $ECHO_N "checking for connect... $ECHO_C" >&6
22155if test "${ac_cv_func_connect+set}" = set; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22157else
22158 cat >conftest.$ac_ext <<_ACEOF
22159#line $LINENO "configure"
22160/* confdefs.h. */
22161_ACEOF
22162cat confdefs.h >>conftest.$ac_ext
22163cat >>conftest.$ac_ext <<_ACEOF
22164/* end confdefs.h. */
90dd450c 22165/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22166 which can conflict with char connect (); below.
22167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22168 <limits.h> exists even on freestanding compilers. */
22169#ifdef __STDC__
22170# include <limits.h>
22171#else
22172# include <assert.h>
22173#endif
90dd450c 22174/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22175#ifdef __cplusplus
22176extern "C"
22177{
22178#endif
90dd450c 22179/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22180 builtin and then its argument prototype would still apply. */
22181char connect ();
90dd450c
VZ
22182/* The GNU C library defines this for functions which it implements
22183 to always fail with ENOSYS. Some functions are actually named
22184 something starting with __ and the normal name is an alias. */
22185#if defined (__stub_connect) || defined (__stub___connect)
22186choke me
22187#else
e6cc62c6
VS
22188char (*f) () = connect;
22189#endif
22190#ifdef __cplusplus
22191}
90dd450c
VZ
22192#endif
22193
e6cc62c6
VS
22194int
22195main ()
22196{
22197return f != connect;
22198 ;
22199 return 0;
22200}
22201_ACEOF
22202rm -f conftest.$ac_objext conftest$ac_exeext
22203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22204 (eval $ac_link) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } &&
22208 { ac_try='test -s conftest$ac_exeext'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_func_connect=yes
22215else
22216 echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219ac_cv_func_connect=no
22220fi
22221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22222fi
22223echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22224echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22225
90dd450c 22226 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22227 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22228echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22229if test "${ac_cv_lib_socket_connect+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22231else
e6cc62c6 22232 ac_check_lib_save_LIBS=$LIBS
90dd450c 22233LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22234cat >conftest.$ac_ext <<_ACEOF
22235#line $LINENO "configure"
22236/* confdefs.h. */
22237_ACEOF
22238cat confdefs.h >>conftest.$ac_ext
22239cat >>conftest.$ac_ext <<_ACEOF
22240/* end confdefs.h. */
22241
90dd450c 22242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22243#ifdef __cplusplus
22244extern "C"
22245#endif
90dd450c 22246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22247 builtin and then its argument prototype would still apply. */
22248char connect ();
22249int
22250main ()
22251{
22252connect ();
22253 ;
22254 return 0;
22255}
22256_ACEOF
22257rm -f conftest.$ac_objext conftest$ac_exeext
22258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259 (eval $ac_link) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -s conftest$ac_exeext'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22266 ac_status=$?
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 ac_cv_lib_socket_connect=yes
22270else
22271 echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274ac_cv_lib_socket_connect=no
22275fi
22276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22277LIBS=$ac_check_lib_save_LIBS
22278fi
22279echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22280echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22281if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22282 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22283fi
77e13408 22284
90dd450c 22285 fi
25d0687a 22286
e6cc62c6
VS
22287 # Guillermo Gomez says -lposix is necessary on A/UX.
22288 echo "$as_me:$LINENO: checking for remove" >&5
22289echo $ECHO_N "checking for remove... $ECHO_C" >&6
22290if test "${ac_cv_func_remove+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293 cat >conftest.$ac_ext <<_ACEOF
22294#line $LINENO "configure"
22295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
90dd450c 22300/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22301 which can conflict with char remove (); below.
22302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22303 <limits.h> exists even on freestanding compilers. */
22304#ifdef __STDC__
22305# include <limits.h>
22306#else
22307# include <assert.h>
22308#endif
90dd450c 22309/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22310#ifdef __cplusplus
22311extern "C"
22312{
22313#endif
90dd450c 22314/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22315 builtin and then its argument prototype would still apply. */
22316char remove ();
90dd450c
VZ
22317/* The GNU C library defines this for functions which it implements
22318 to always fail with ENOSYS. Some functions are actually named
22319 something starting with __ and the normal name is an alias. */
22320#if defined (__stub_remove) || defined (__stub___remove)
22321choke me
22322#else
e6cc62c6
VS
22323char (*f) () = remove;
22324#endif
22325#ifdef __cplusplus
22326}
90dd450c 22327#endif
55e80573 22328
e6cc62c6
VS
22329int
22330main ()
22331{
22332return f != remove;
22333 ;
22334 return 0;
22335}
22336_ACEOF
22337rm -f conftest.$ac_objext conftest$ac_exeext
22338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22339 (eval $ac_link) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } &&
22343 { ac_try='test -s conftest$ac_exeext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_func_remove=yes
22350else
22351 echo "$as_me: failed program was:" >&5
22352sed 's/^/| /' conftest.$ac_ext >&5
22353
22354ac_cv_func_remove=no
22355fi
22356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22357fi
22358echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22359echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22360
90dd450c 22361 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22362 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22363echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22364if test "${ac_cv_lib_posix_remove+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22366else
e6cc62c6 22367 ac_check_lib_save_LIBS=$LIBS
90dd450c 22368LIBS="-lposix $LIBS"
e6cc62c6
VS
22369cat >conftest.$ac_ext <<_ACEOF
22370#line $LINENO "configure"
22371/* confdefs.h. */
22372_ACEOF
22373cat confdefs.h >>conftest.$ac_ext
22374cat >>conftest.$ac_ext <<_ACEOF
22375/* end confdefs.h. */
22376
90dd450c 22377/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22378#ifdef __cplusplus
22379extern "C"
22380#endif
90dd450c 22381/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22382 builtin and then its argument prototype would still apply. */
22383char remove ();
22384int
22385main ()
22386{
22387remove ();
22388 ;
22389 return 0;
22390}
22391_ACEOF
22392rm -f conftest.$ac_objext conftest$ac_exeext
22393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22394 (eval $ac_link) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } &&
22398 { ac_try='test -s conftest$ac_exeext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ac_cv_lib_posix_remove=yes
22405else
22406 echo "$as_me: failed program was:" >&5
22407sed 's/^/| /' conftest.$ac_ext >&5
22408
22409ac_cv_lib_posix_remove=no
22410fi
22411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22412LIBS=$ac_check_lib_save_LIBS
22413fi
22414echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22415echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22416if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22418fi
f6bcfd97 22419
6fa882bd
RR
22420 fi
22421
90dd450c 22422 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22423 echo "$as_me:$LINENO: checking for shmat" >&5
22424echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22425if test "${ac_cv_func_shmat+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
22429#line $LINENO "configure"
22430/* confdefs.h. */
22431_ACEOF
22432cat confdefs.h >>conftest.$ac_ext
22433cat >>conftest.$ac_ext <<_ACEOF
22434/* end confdefs.h. */
90dd450c 22435/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22436 which can conflict with char shmat (); below.
22437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438 <limits.h> exists even on freestanding compilers. */
22439#ifdef __STDC__
22440# include <limits.h>
22441#else
22442# include <assert.h>
22443#endif
90dd450c 22444/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22445#ifdef __cplusplus
22446extern "C"
22447{
22448#endif
90dd450c 22449/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22450 builtin and then its argument prototype would still apply. */
22451char shmat ();
90dd450c
VZ
22452/* The GNU C library defines this for functions which it implements
22453 to always fail with ENOSYS. Some functions are actually named
22454 something starting with __ and the normal name is an alias. */
22455#if defined (__stub_shmat) || defined (__stub___shmat)
22456choke me
22457#else
e6cc62c6
VS
22458char (*f) () = shmat;
22459#endif
22460#ifdef __cplusplus
22461}
90dd450c 22462#endif
10f2d63a 22463
e6cc62c6
VS
22464int
22465main ()
22466{
22467return f != shmat;
22468 ;
22469 return 0;
22470}
22471_ACEOF
22472rm -f conftest.$ac_objext conftest$ac_exeext
22473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474 (eval $ac_link) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -s conftest$ac_exeext'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_func_shmat=yes
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489ac_cv_func_shmat=no
22490fi
22491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22492fi
22493echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22494echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22495
90dd450c 22496 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22497 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22498echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22499if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22501else
e6cc62c6 22502 ac_check_lib_save_LIBS=$LIBS
90dd450c 22503LIBS="-lipc $LIBS"
e6cc62c6
VS
22504cat >conftest.$ac_ext <<_ACEOF
22505#line $LINENO "configure"
22506/* confdefs.h. */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h. */
22511
8284b0c5 22512/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22513#ifdef __cplusplus
22514extern "C"
22515#endif
90dd450c 22516/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22517 builtin and then its argument prototype would still apply. */
22518char shmat ();
22519int
22520main ()
22521{
22522shmat ();
22523 ;
22524 return 0;
22525}
22526_ACEOF
22527rm -f conftest.$ac_objext conftest$ac_exeext
22528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22529 (eval $ac_link) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } &&
22533 { ac_try='test -s conftest$ac_exeext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_lib_ipc_shmat=yes
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544ac_cv_lib_ipc_shmat=no
22545fi
22546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22547LIBS=$ac_check_lib_save_LIBS
22548fi
22549echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22550echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22551if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22552 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22553fi
22554
d558c907 22555 fi
90dd450c 22556 fi
3a922bb4 22557
90dd450c 22558 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22559 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22560 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22561 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22562 # check for ICE first), but we must link in the order -lSM -lICE or
22563 # we get undefined symbols. So assume we have SM if we have ICE.
22564 # These have to be linked with before -lX11, unlike the other
22565 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22566 # John Interrante, Karl Berry
22567 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22568echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22569if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22571else
22572 ac_check_lib_save_LIBS=$LIBS
f09359cf 22573LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22574cat >conftest.$ac_ext <<_ACEOF
22575#line $LINENO "configure"
22576/* confdefs.h. */
22577_ACEOF
22578cat confdefs.h >>conftest.$ac_ext
22579cat >>conftest.$ac_ext <<_ACEOF
22580/* end confdefs.h. */
22581
90dd450c 22582/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22583#ifdef __cplusplus
22584extern "C"
22585#endif
90dd450c 22586/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22587 builtin and then its argument prototype would still apply. */
22588char IceConnectionNumber ();
22589int
22590main ()
22591{
22592IceConnectionNumber ();
22593 ;
22594 return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext conftest$ac_exeext
22598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -s conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_lib_ICE_IceConnectionNumber=yes
22610else
22611 echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614ac_cv_lib_ICE_IceConnectionNumber=no
22615fi
22616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22617LIBS=$ac_check_lib_save_LIBS
22618fi
22619echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22620echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22621if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22623fi
10f2d63a 22624
e6cc62c6 22625 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22626
22627fi
22628
8284b0c5 22629
90dd450c 22630 if test "$no_x" = "yes"; then
e6cc62c6
VS
22631 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22632echo "$as_me: error: X11 not found" >&2;}
22633 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22634 fi
22635
22636 GUI_TK_LIBRARY="$X_LIBS"
22637 TOOLKIT_INCLUDE="$X_CFLAGS"
22638 AFMINSTALL=afminstall
22639 COMPILED_X_PROGRAM=0
22640
21d1c967 22641 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22642 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22643echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22644 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22645 echo "$as_me:$LINENO: result: not found" >&5
22646echo "${ECHO_T}not found" >&6
22647 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22648echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22649 { (exit 1); exit 1; }; }
90dd450c 22650 else
e6cc62c6
VS
22651 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22652echo "${ECHO_T}$MICROWIN" >&6
22653 cat >>confdefs.h <<\_ACEOF
21d1c967 22654#define wxUSE_NANOX 1
e6cc62c6 22655_ACEOF
21d1c967 22656
90dd450c
VZ
22657 fi
22658 fi
22659
22660 xpm_link=
e6cc62c6
VS
22661 echo "$as_me:$LINENO: checking for Xpm library" >&5
22662echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22663
90dd450c 22664ac_find_libraries=
2b5f62a0 22665for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22666 do
22667 for ac_extension in a so sl dylib; do
22668 if test -f "$ac_dir/libXpm.$ac_extension"; then
22669 ac_find_libraries=$ac_dir
22670 break 2
22671 fi
22672 done
22673 done
22674
22675 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22676
90dd450c
VZ
22677 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22678 result=$?
22679 if test $result = 0; then
22680 ac_path_to_link=""
22681 else
22682 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22683 fi
90dd450c 22684
21d1c967
GD
22685 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22686 xpm_link=" -lXpm"
e6cc62c6 22687 cat >>confdefs.h <<\_ACEOF
21d1c967 22688#define wxHAVE_LIB_XPM 1
e6cc62c6 22689_ACEOF
90dd450c 22690
e6cc62c6
VS
22691 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22692echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22693 else
e6cc62c6
VS
22694 cat >conftest.$ac_ext <<_ACEOF
22695#line $LINENO "configure"
22696/* confdefs.h. */
22697_ACEOF
22698cat confdefs.h >>conftest.$ac_ext
22699cat >>conftest.$ac_ext <<_ACEOF
22700/* end confdefs.h. */
90dd450c 22701
21d1c967 22702 #include <X11/xpm.h>
e6cc62c6
VS
22703
22704int
22705main ()
22706{
6f72b082 22707
21d1c967
GD
22708 int version;
22709 version = XpmLibraryVersion();
e6cc62c6
VS
22710
22711 ;
22712 return 0;
22713}
22714_ACEOF
22715rm -f conftest.$ac_objext
22716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22717 (eval $ac_compile) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -s conftest.$ac_objext'
22722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22723 (eval $ac_try) 2>&5
22724 ac_status=$?
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; }; then
22727
21d1c967 22728 xpm_link=" -lXpm"
e6cc62c6 22729 cat >>confdefs.h <<\_ACEOF
21d1c967 22730#define wxHAVE_LIB_XPM 1
e6cc62c6 22731_ACEOF
90dd450c 22732
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: found in default search path" >&5
22734echo "${ECHO_T}found in default search path" >&6
21d1c967 22735 COMPILED_X_PROGRAM=0
e6cc62c6 22736
21d1c967 22737else
e6cc62c6
VS
22738 echo "$as_me: failed program was:" >&5
22739sed 's/^/| /' conftest.$ac_ext >&5
22740
22741
22742 echo "$as_me:$LINENO: result: no" >&5
22743echo "${ECHO_T}no" >&6
22744 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22745echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22746
22747
6f72b082 22748fi
e6cc62c6 22749rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22750 fi
90dd450c 22751
e6cc62c6
VS
22752 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22753echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22754if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22756else
e6cc62c6 22757 ac_check_lib_save_LIBS=$LIBS
f7f78039 22758LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22759cat >conftest.$ac_ext <<_ACEOF
22760#line $LINENO "configure"
22761/* confdefs.h. */
22762_ACEOF
22763cat confdefs.h >>conftest.$ac_ext
22764cat >>conftest.$ac_ext <<_ACEOF
22765/* end confdefs.h. */
22766
f7f78039 22767/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22768#ifdef __cplusplus
22769extern "C"
22770#endif
f7f78039 22771/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22772 builtin and then its argument prototype would still apply. */
22773char XShapeQueryExtension ();
22774int
22775main ()
22776{
22777XShapeQueryExtension ();
22778 ;
22779 return 0;
22780}
22781_ACEOF
22782rm -f conftest.$ac_objext conftest$ac_exeext
22783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22784 (eval $ac_link) 2>&5
22785 ac_status=$?
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
22788 { ac_try='test -s conftest$ac_exeext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 ac_cv_lib_Xext_XShapeQueryExtension=yes
22795else
22796 echo "$as_me: failed program was:" >&5
22797sed 's/^/| /' conftest.$ac_ext >&5
22798
22799ac_cv_lib_Xext_XShapeQueryExtension=no
22800fi
22801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22802LIBS=$ac_check_lib_save_LIBS
22803fi
22804echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22805echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22806if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22807
f7f78039
MB
22808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22809 wxHAVE_XEXT_LIB=1
e6cc62c6 22810
f7f78039
MB
22811fi
22812
22813
2b5f62a0 22814 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22815
2b5f62a0 22816 succeeded=no
90dd450c 22817
2b5f62a0
VZ
22818 if test -z "$PKG_CONFIG"; then
22819 # Extract the first word of "pkg-config", so it can be a program name with args.
22820set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22821echo "$as_me:$LINENO: checking for $ac_word" >&5
22822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22823if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22825else
e6cc62c6
VS
22826 case $PKG_CONFIG in
22827 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22829 ;;
2b5f62a0 22830 *)
e6cc62c6
VS
22831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22832for as_dir in $PATH
22833do
22834 IFS=$as_save_IFS
22835 test -z "$as_dir" && as_dir=.
22836 for ac_exec_ext in '' $ac_executable_extensions; do
22837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22838 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22840 break 2
22841 fi
22842done
22843done
22844
2b5f62a0
VZ
22845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22846 ;;
22847esac
22848fi
e6cc62c6
VS
22849PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22850
2b5f62a0 22851if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22852 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22853echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22854else
e6cc62c6
VS
22855 echo "$as_me:$LINENO: result: no" >&5
22856echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22857fi
22858
22859 fi
22860
22861 if test "$PKG_CONFIG" = "no" ; then
22862 echo "*** The pkg-config script could not be found. Make sure it is"
22863 echo "*** in your path, or set the PKG_CONFIG environment variable"
22864 echo "*** to the full path to pkg-config."
22865 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22866 else
22867 PKG_CONFIG_MIN_VERSION=0.9.0
22868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22869 echo "$as_me:$LINENO: checking for pangox" >&5
22870echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22871
22872 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22873 echo "$as_me:$LINENO: result: yes" >&5
22874echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22875 succeeded=yes
22876
e6cc62c6
VS
22877 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22878echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22879 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22880 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22881echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22882
e6cc62c6
VS
22883 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22884echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22885 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22886 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22887echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22888 else
22889 PANGOX_CFLAGS=""
22890 PANGOX_LIBS=""
e6cc62c6 22891 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22892 ## do set a variable so people can do so.
22893 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22894
2b5f62a0
VZ
22895 fi
22896
e6cc62c6
VS
22897
22898
2b5f62a0
VZ
22899 else
22900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22902 fi
22903 fi
22904
22905 if test $succeeded = yes; then
e6cc62c6 22906
2b5f62a0 22907 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22908 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22909
2b5f62a0 22910 else
e6cc62c6
VS
22911
22912 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22913echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22914 { (exit 1); exit 1; }; }
22915
22916
2b5f62a0
VZ
22917 fi
22918
e6cc62c6 22919
2b5f62a0
VZ
22920 succeeded=no
22921
22922 if test -z "$PKG_CONFIG"; then
22923 # Extract the first word of "pkg-config", so it can be a program name with args.
22924set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22925echo "$as_me:$LINENO: checking for $ac_word" >&5
22926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22927if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22929else
e6cc62c6
VS
22930 case $PKG_CONFIG in
22931 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22933 ;;
2b5f62a0 22934 *)
e6cc62c6
VS
22935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22936for as_dir in $PATH
22937do
22938 IFS=$as_save_IFS
22939 test -z "$as_dir" && as_dir=.
22940 for ac_exec_ext in '' $ac_executable_extensions; do
22941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22944 break 2
22945 fi
22946done
22947done
22948
2b5f62a0
VZ
22949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22950 ;;
22951esac
22952fi
e6cc62c6
VS
22953PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22954
2b5f62a0 22955if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22956 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22957echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22958else
e6cc62c6
VS
22959 echo "$as_me:$LINENO: result: no" >&5
22960echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22961fi
22962
22963 fi
22964
22965 if test "$PKG_CONFIG" = "no" ; then
22966 echo "*** The pkg-config script could not be found. Make sure it is"
22967 echo "*** in your path, or set the PKG_CONFIG environment variable"
22968 echo "*** to the full path to pkg-config."
22969 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22970 else
22971 PKG_CONFIG_MIN_VERSION=0.9.0
22972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22973 echo "$as_me:$LINENO: checking for pangoft2" >&5
22974echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22975
22976 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22977 echo "$as_me:$LINENO: result: yes" >&5
22978echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22979 succeeded=yes
22980
e6cc62c6
VS
22981 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22982echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22983 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22984 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22985echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22986
e6cc62c6
VS
22987 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22988echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22989 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22990 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22991echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22992 else
22993 PANGOFT2_CFLAGS=""
22994 PANGOFT2_LIBS=""
e6cc62c6 22995 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22996 ## do set a variable so people can do so.
22997 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22998
2b5f62a0
VZ
22999 fi
23000
e6cc62c6
VS
23001
23002
2b5f62a0
VZ
23003 else
23004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23006 fi
23007 fi
23008
23009 if test $succeeded = yes; then
e6cc62c6 23010
2b5f62a0 23011 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 23012 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 23013
2b5f62a0 23014 else
e6cc62c6
VS
23015
23016 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23017echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 23018 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
23019
23020
2b5f62a0
VZ
23021 fi
23022
e6cc62c6 23023
2b5f62a0
VZ
23024 succeeded=no
23025
23026 if test -z "$PKG_CONFIG"; then
23027 # Extract the first word of "pkg-config", so it can be a program name with args.
23028set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23029echo "$as_me:$LINENO: checking for $ac_word" >&5
23030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23031if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23033else
e6cc62c6
VS
23034 case $PKG_CONFIG in
23035 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23037 ;;
2b5f62a0 23038 *)
e6cc62c6
VS
23039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23040for as_dir in $PATH
23041do
23042 IFS=$as_save_IFS
23043 test -z "$as_dir" && as_dir=.
23044 for ac_exec_ext in '' $ac_executable_extensions; do
23045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23048 break 2
23049 fi
23050done
23051done
23052
2b5f62a0
VZ
23053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23054 ;;
23055esac
23056fi
e6cc62c6
VS
23057PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23058
2b5f62a0 23059if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23060 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23061echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23062else
e6cc62c6
VS
23063 echo "$as_me:$LINENO: result: no" >&5
23064echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23065fi
23066
23067 fi
23068
23069 if test "$PKG_CONFIG" = "no" ; then
23070 echo "*** The pkg-config script could not be found. Make sure it is"
23071 echo "*** in your path, or set the PKG_CONFIG environment variable"
23072 echo "*** to the full path to pkg-config."
23073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23074 else
23075 PKG_CONFIG_MIN_VERSION=0.9.0
23076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23077 echo "$as_me:$LINENO: checking for pangoxft" >&5
23078echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
23079
23080 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
23081 echo "$as_me:$LINENO: result: yes" >&5
23082echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23083 succeeded=yes
23084
e6cc62c6
VS
23085 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23086echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 23087 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
23088 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23089echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 23090
e6cc62c6
VS
23091 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23092echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 23093 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
23094 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23095echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
23096 else
23097 PANGOXFT_CFLAGS=""
23098 PANGOXFT_LIBS=""
e6cc62c6 23099 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23100 ## do set a variable so people can do so.
23101 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 23102
2b5f62a0
VZ
23103 fi
23104
e6cc62c6
VS
23105
23106
2b5f62a0
VZ
23107 else
23108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23110 fi
23111 fi
23112
23113 if test $succeeded = yes; then
e6cc62c6 23114
2b5f62a0 23115 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23116 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23117
2b5f62a0 23118 else
e6cc62c6
VS
23119
23120 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23121echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23122
23123
2b5f62a0
VZ
23124 fi
23125
23126 fi
23127
23128 wxUSE_UNIVERSAL="yes"
23129
23130 if test "$wxUSE_NANOX" = "yes"; then
23131 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23132 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
23133 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23134 else
23135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
23136 fi
23137
23138 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23139 TOOLKIT=X11
23140 GUIDIST=X11_DIST
23141 fi
23142
21d1c967
GD
23143 if test "$wxUSE_MOTIF" = 1; then
23144 if test "$no_x" = yes; then
23145 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23146
23147cat >>confdefs.h <<\_ACEOF
21d1c967 23148#define X_DISPLAY_MISSING 1
e6cc62c6 23149_ACEOF
21d1c967
GD
23150
23151 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23152else
23153 if test -n "$x_includes"; then
23154 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23155 fi
23156
21d1c967
GD
23157 # It would also be nice to do this for all -L options, not just this one.
23158 if test -n "$x_libraries"; then
23159 X_LIBS="$X_LIBS -L$x_libraries"
23160 # For Solaris; some versions of Sun CC require a space after -R and
23161 # others require no space. Words are not sufficient . . . .
e6cc62c6 23162 case `(uname -sr) 2>/dev/null` in
21d1c967 23163 "SunOS 5"*)
e6cc62c6
VS
23164 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23165echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23166 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23167 cat >conftest.$ac_ext <<_ACEOF
23168#line $LINENO "configure"
23169/* confdefs.h. */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h. */
23174
23175int
23176main ()
23177{
21d1c967 23178
e6cc62c6
VS
23179 ;
23180 return 0;
23181}
23182_ACEOF
23183rm -f conftest.$ac_objext conftest$ac_exeext
23184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23185 (eval $ac_link) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
23189 { ac_try='test -s conftest$ac_exeext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
21d1c967 23195 ac_R_nospace=yes
698dcdb6 23196else
e6cc62c6
VS
23197 echo "$as_me: failed program was:" >&5
23198sed 's/^/| /' conftest.$ac_ext >&5
23199
23200ac_R_nospace=no
10f2d63a 23201fi
e6cc62c6 23202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23203 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23204 echo "$as_me:$LINENO: result: no" >&5
23205echo "${ECHO_T}no" >&6
21d1c967
GD
23206 X_LIBS="$X_LIBS -R$x_libraries"
23207 else
23208 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23209 cat >conftest.$ac_ext <<_ACEOF
23210#line $LINENO "configure"
23211/* confdefs.h. */
23212_ACEOF
23213cat confdefs.h >>conftest.$ac_ext
23214cat >>conftest.$ac_ext <<_ACEOF
23215/* end confdefs.h. */
23216
23217int
23218main ()
23219{
f0c87536 23220
e6cc62c6
VS
23221 ;
23222 return 0;
23223}
23224_ACEOF
23225rm -f conftest.$ac_objext conftest$ac_exeext
23226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23227 (eval $ac_link) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
21d1c967
GD
23237 ac_R_space=yes
23238else
e6cc62c6
VS
23239 echo "$as_me: failed program was:" >&5
23240sed 's/^/| /' conftest.$ac_ext >&5
23241
23242ac_R_space=no
21d1c967 23243fi
e6cc62c6 23244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23245 if test $ac_R_space = yes; then
e6cc62c6
VS
23246 echo "$as_me:$LINENO: result: yes" >&5
23247echo "${ECHO_T}yes" >&6
21d1c967
GD
23248 X_LIBS="$X_LIBS -R $x_libraries"
23249 else
e6cc62c6
VS
23250 echo "$as_me:$LINENO: result: neither works" >&5
23251echo "${ECHO_T}neither works" >&6
21d1c967
GD
23252 fi
23253 fi
e6cc62c6 23254 LIBS=$ac_xsave_LIBS
21d1c967
GD
23255 esac
23256 fi
90dd450c 23257
21d1c967
GD
23258 # Check for system-dependent libraries X programs must link with.
23259 # Do this before checking for the system-independent R6 libraries
23260 # (-lICE), since we may need -lsocket or whatever for X linking.
23261
23262 if test "$ISC" = yes; then
23263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23264 else
e6cc62c6
VS
23265 # Martyn Johnson says this is needed for Ultrix, if the X
23266 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23267 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23268 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23269 cat >conftest.$ac_ext <<_ACEOF
23270#line $LINENO "configure"
23271/* confdefs.h. */
23272_ACEOF
23273cat confdefs.h >>conftest.$ac_ext
23274cat >>conftest.$ac_ext <<_ACEOF
23275/* end confdefs.h. */
23276
247f5006 23277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23278#ifdef __cplusplus
23279extern "C"
23280#endif
247f5006 23281/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23282 builtin and then its argument prototype would still apply. */
23283char XOpenDisplay ();
23284int
23285main ()
23286{
23287XOpenDisplay ();
23288 ;
23289 return 0;
23290}
23291_ACEOF
23292rm -f conftest.$ac_objext conftest$ac_exeext
23293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23294 (eval $ac_link) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
23298 { ac_try='test -s conftest$ac_exeext'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 :
23305else
23306 echo "$as_me: failed program was:" >&5
23307sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23308
e6cc62c6
VS
23309echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23310echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23311if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23313else
e6cc62c6
VS
23314 ac_check_lib_save_LIBS=$LIBS
23315LIBS="-ldnet $LIBS"
23316cat >conftest.$ac_ext <<_ACEOF
23317#line $LINENO "configure"
23318/* confdefs.h. */
23319_ACEOF
23320cat confdefs.h >>conftest.$ac_ext
23321cat >>conftest.$ac_ext <<_ACEOF
23322/* end confdefs.h. */
a0b9e27f 23323
e6cc62c6
VS
23324/* Override any gcc2 internal prototype to avoid an error. */
23325#ifdef __cplusplus
23326extern "C"
23327#endif
23328/* We use char because int might match the return type of a gcc2
23329 builtin and then its argument prototype would still apply. */
23330char dnet_ntoa ();
23331int
23332main ()
23333{
23334dnet_ntoa ();
23335 ;
23336 return 0;
23337}
23338_ACEOF
23339rm -f conftest.$ac_objext conftest$ac_exeext
23340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23341 (eval $ac_link) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 ac_cv_lib_dnet_dnet_ntoa=yes
23352else
23353 echo "$as_me: failed program was:" >&5
23354sed 's/^/| /' conftest.$ac_ext >&5
23355
23356ac_cv_lib_dnet_dnet_ntoa=no
23357fi
23358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23359LIBS=$ac_check_lib_save_LIBS
23360fi
23361echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23362echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23363if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23364 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23365fi
0fb0dd83 23366
21d1c967 23367 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23368 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23369echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23370if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23372else
e6cc62c6 23373 ac_check_lib_save_LIBS=$LIBS
21d1c967 23374LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23375cat >conftest.$ac_ext <<_ACEOF
23376#line $LINENO "configure"
23377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
23382
21d1c967 23383/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23384#ifdef __cplusplus
23385extern "C"
23386#endif
21d1c967 23387/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23388 builtin and then its argument prototype would still apply. */
23389char dnet_ntoa ();
23390int
23391main ()
23392{
23393dnet_ntoa ();
23394 ;
23395 return 0;
23396}
23397_ACEOF
23398rm -f conftest.$ac_objext conftest$ac_exeext
23399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23400 (eval $ac_link) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } &&
23404 { ac_try='test -s conftest$ac_exeext'
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23411else
23412 echo "$as_me: failed program was:" >&5
23413sed 's/^/| /' conftest.$ac_ext >&5
23414
23415ac_cv_lib_dnet_stub_dnet_ntoa=no
23416fi
23417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23418LIBS=$ac_check_lib_save_LIBS
23419fi
23420echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23421echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23422if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23424fi
23425
21d1c967 23426 fi
e6cc62c6
VS
23427fi
23428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23429 LIBS="$ac_xsave_LIBS"
90dd450c 23430
21d1c967
GD
23431 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23432 # to get the SysV transport functions.
e6cc62c6 23433 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23434 # needs -lnsl.
23435 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23436 # on Irix 5.2, according to T.E. Dickey.
23437 # The functions gethostbyname, getservbyname, and inet_addr are
23438 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23439 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23440echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23441if test "${ac_cv_func_gethostbyname+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
23443else
23444 cat >conftest.$ac_ext <<_ACEOF
23445#line $LINENO "configure"
23446/* confdefs.h. */
23447_ACEOF
23448cat confdefs.h >>conftest.$ac_ext
23449cat >>conftest.$ac_ext <<_ACEOF
23450/* end confdefs.h. */
21d1c967 23451/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23452 which can conflict with char gethostbyname (); below.
23453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23454 <limits.h> exists even on freestanding compilers. */
23455#ifdef __STDC__
23456# include <limits.h>
23457#else
23458# include <assert.h>
23459#endif
21d1c967 23460/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23461#ifdef __cplusplus
23462extern "C"
23463{
23464#endif
21d1c967 23465/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23466 builtin and then its argument prototype would still apply. */
23467char gethostbyname ();
21d1c967
GD
23468/* The GNU C library defines this for functions which it implements
23469 to always fail with ENOSYS. Some functions are actually named
23470 something starting with __ and the normal name is an alias. */
23471#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23472choke me
23473#else
e6cc62c6
VS
23474char (*f) () = gethostbyname;
23475#endif
23476#ifdef __cplusplus
23477}
21d1c967 23478#endif
90dd450c 23479
e6cc62c6
VS
23480int
23481main ()
23482{
23483return f != gethostbyname;
23484 ;
23485 return 0;
23486}
23487_ACEOF
23488rm -f conftest.$ac_objext conftest$ac_exeext
23489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23490 (eval $ac_link) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } &&
23494 { ac_try='test -s conftest$ac_exeext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_func_gethostbyname=yes
23501else
23502 echo "$as_me: failed program was:" >&5
23503sed 's/^/| /' conftest.$ac_ext >&5
23504
23505ac_cv_func_gethostbyname=no
23506fi
23507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23508fi
23509echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23510echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23511
21d1c967 23512 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23513 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23514echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23515if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23516 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23517else
e6cc62c6 23518 ac_check_lib_save_LIBS=$LIBS
21d1c967 23519LIBS="-lnsl $LIBS"
e6cc62c6
VS
23520cat >conftest.$ac_ext <<_ACEOF
23521#line $LINENO "configure"
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527
21d1c967 23528/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23529#ifdef __cplusplus
23530extern "C"
23531#endif
21d1c967 23532/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23533 builtin and then its argument prototype would still apply. */
23534char gethostbyname ();
23535int
23536main ()
23537{
23538gethostbyname ();
23539 ;
23540 return 0;
23541}
23542_ACEOF
23543rm -f conftest.$ac_objext conftest$ac_exeext
23544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } &&
23549 { ac_try='test -s conftest$ac_exeext'
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 ac_cv_lib_nsl_gethostbyname=yes
23556else
23557 echo "$as_me: failed program was:" >&5
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
23560ac_cv_lib_nsl_gethostbyname=no
23561fi
23562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23563LIBS=$ac_check_lib_save_LIBS
23564fi
23565echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23566echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23567if test $ac_cv_lib_nsl_gethostbyname = yes; then
23568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23569fi
247f5006 23570
e6cc62c6
VS
23571 if test $ac_cv_lib_nsl_gethostbyname = no; then
23572 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23573echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23574if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23576else
e6cc62c6
VS
23577 ac_check_lib_save_LIBS=$LIBS
23578LIBS="-lbsd $LIBS"
23579cat >conftest.$ac_ext <<_ACEOF
23580#line $LINENO "configure"
23581/* confdefs.h. */
23582_ACEOF
23583cat confdefs.h >>conftest.$ac_ext
23584cat >>conftest.$ac_ext <<_ACEOF
23585/* end confdefs.h. */
23586
23587/* Override any gcc2 internal prototype to avoid an error. */
23588#ifdef __cplusplus
23589extern "C"
23590#endif
23591/* We use char because int might match the return type of a gcc2
23592 builtin and then its argument prototype would still apply. */
23593char gethostbyname ();
23594int
23595main ()
23596{
23597gethostbyname ();
23598 ;
23599 return 0;
23600}
23601_ACEOF
23602rm -f conftest.$ac_objext conftest$ac_exeext
23603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604 (eval $ac_link) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -s conftest$ac_exeext'
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_cv_lib_bsd_gethostbyname=yes
23615else
23616 echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619ac_cv_lib_bsd_gethostbyname=no
23620fi
23621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23622LIBS=$ac_check_lib_save_LIBS
23623fi
23624echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23625echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23626if test $ac_cv_lib_bsd_gethostbyname = yes; then
23627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23628fi
90dd450c 23629
e6cc62c6 23630 fi
90dd450c
VZ
23631 fi
23632
21d1c967
GD
23633 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23634 # socket/setsockopt and other routines are undefined under SCO ODT
23635 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23636 # on later versions), says Simon Leinen: it contains gethostby*
23637 # variants that don't use the name server (or something). -lsocket
23638 # must be given before -lnsl if both are needed. We assume that
23639 # if connect needs -lnsl, so does gethostbyname.
23640 echo "$as_me:$LINENO: checking for connect" >&5
23641echo $ECHO_N "checking for connect... $ECHO_C" >&6
23642if test "${ac_cv_func_connect+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23644else
23645 cat >conftest.$ac_ext <<_ACEOF
23646#line $LINENO "configure"
23647/* confdefs.h. */
23648_ACEOF
23649cat confdefs.h >>conftest.$ac_ext
23650cat >>conftest.$ac_ext <<_ACEOF
23651/* end confdefs.h. */
21d1c967 23652/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23653 which can conflict with char connect (); below.
23654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23655 <limits.h> exists even on freestanding compilers. */
23656#ifdef __STDC__
23657# include <limits.h>
23658#else
23659# include <assert.h>
23660#endif
21d1c967 23661/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23662#ifdef __cplusplus
23663extern "C"
23664{
23665#endif
21d1c967 23666/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23667 builtin and then its argument prototype would still apply. */
23668char connect ();
21d1c967
GD
23669/* The GNU C library defines this for functions which it implements
23670 to always fail with ENOSYS. Some functions are actually named
23671 something starting with __ and the normal name is an alias. */
23672#if defined (__stub_connect) || defined (__stub___connect)
23673choke me
23674#else
e6cc62c6
VS
23675char (*f) () = connect;
23676#endif
23677#ifdef __cplusplus
23678}
21d1c967 23679#endif
90dd450c 23680
e6cc62c6
VS
23681int
23682main ()
23683{
23684return f != connect;
23685 ;
23686 return 0;
23687}
23688_ACEOF
23689rm -f conftest.$ac_objext conftest$ac_exeext
23690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23691 (eval $ac_link) 2>&5
23692 ac_status=$?
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
23695 { ac_try='test -s conftest$ac_exeext'
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; }; then
23701 ac_cv_func_connect=yes
23702else
23703 echo "$as_me: failed program was:" >&5
23704sed 's/^/| /' conftest.$ac_ext >&5
23705
23706ac_cv_func_connect=no
23707fi
23708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23709fi
23710echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23711echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23712
21d1c967 23713 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23714 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23715echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23716if test "${ac_cv_lib_socket_connect+set}" = set; then
23717 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23718else
e6cc62c6 23719 ac_check_lib_save_LIBS=$LIBS
21d1c967 23720LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23721cat >conftest.$ac_ext <<_ACEOF
23722#line $LINENO "configure"
23723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
23728
21d1c967 23729/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23730#ifdef __cplusplus
23731extern "C"
23732#endif
21d1c967 23733/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23734 builtin and then its argument prototype would still apply. */
23735char connect ();
23736int
23737main ()
23738{
23739connect ();
23740 ;
23741 return 0;
23742}
23743_ACEOF
23744rm -f conftest.$ac_objext conftest$ac_exeext
23745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23746 (eval $ac_link) 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } &&
23750 { ac_try='test -s conftest$ac_exeext'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23753 ac_status=$?
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 ac_cv_lib_socket_connect=yes
23757else
23758 echo "$as_me: failed program was:" >&5
23759sed 's/^/| /' conftest.$ac_ext >&5
23760
23761ac_cv_lib_socket_connect=no
23762fi
23763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23764LIBS=$ac_check_lib_save_LIBS
23765fi
23766echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23767echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23768if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23769 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23770fi
90dd450c 23771
21d1c967 23772 fi
90dd450c 23773
e6cc62c6
VS
23774 # Guillermo Gomez says -lposix is necessary on A/UX.
23775 echo "$as_me:$LINENO: checking for remove" >&5
23776echo $ECHO_N "checking for remove... $ECHO_C" >&6
23777if test "${ac_cv_func_remove+set}" = set; then
23778 echo $ECHO_N "(cached) $ECHO_C" >&6
23779else
23780 cat >conftest.$ac_ext <<_ACEOF
23781#line $LINENO "configure"
23782/* confdefs.h. */
23783_ACEOF
23784cat confdefs.h >>conftest.$ac_ext
23785cat >>conftest.$ac_ext <<_ACEOF
23786/* end confdefs.h. */
21d1c967 23787/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23788 which can conflict with char remove (); below.
23789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23790 <limits.h> exists even on freestanding compilers. */
23791#ifdef __STDC__
23792# include <limits.h>
23793#else
23794# include <assert.h>
23795#endif
21d1c967 23796/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23797#ifdef __cplusplus
23798extern "C"
23799{
23800#endif
21d1c967 23801/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23802 builtin and then its argument prototype would still apply. */
23803char remove ();
21d1c967
GD
23804/* The GNU C library defines this for functions which it implements
23805 to always fail with ENOSYS. Some functions are actually named
23806 something starting with __ and the normal name is an alias. */
23807#if defined (__stub_remove) || defined (__stub___remove)
23808choke me
23809#else
e6cc62c6
VS
23810char (*f) () = remove;
23811#endif
23812#ifdef __cplusplus
23813}
21d1c967 23814#endif
90dd450c 23815
e6cc62c6
VS
23816int
23817main ()
23818{
23819return f != remove;
23820 ;
23821 return 0;
23822}
23823_ACEOF
23824rm -f conftest.$ac_objext conftest$ac_exeext
23825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23826 (eval $ac_link) 2>&5
23827 ac_status=$?
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } &&
23830 { ac_try='test -s conftest$ac_exeext'
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; }; then
23836 ac_cv_func_remove=yes
23837else
23838 echo "$as_me: failed program was:" >&5
23839sed 's/^/| /' conftest.$ac_ext >&5
23840
23841ac_cv_func_remove=no
23842fi
23843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23844fi
23845echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23846echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23847
21d1c967 23848 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23849 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23850echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23851if test "${ac_cv_lib_posix_remove+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23853else
e6cc62c6 23854 ac_check_lib_save_LIBS=$LIBS
21d1c967 23855LIBS="-lposix $LIBS"
e6cc62c6
VS
23856cat >conftest.$ac_ext <<_ACEOF
23857#line $LINENO "configure"
23858/* confdefs.h. */
23859_ACEOF
23860cat confdefs.h >>conftest.$ac_ext
23861cat >>conftest.$ac_ext <<_ACEOF
23862/* end confdefs.h. */
23863
21d1c967 23864/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23865#ifdef __cplusplus
23866extern "C"
23867#endif
21d1c967 23868/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23869 builtin and then its argument prototype would still apply. */
23870char remove ();
23871int
23872main ()
23873{
23874remove ();
23875 ;
23876 return 0;
23877}
23878_ACEOF
23879rm -f conftest.$ac_objext conftest$ac_exeext
23880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23881 (eval $ac_link) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } &&
23885 { ac_try='test -s conftest$ac_exeext'
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; }; then
23891 ac_cv_lib_posix_remove=yes
23892else
23893 echo "$as_me: failed program was:" >&5
23894sed 's/^/| /' conftest.$ac_ext >&5
23895
23896ac_cv_lib_posix_remove=no
23897fi
23898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23899LIBS=$ac_check_lib_save_LIBS
23900fi
23901echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23902echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23903if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23905fi
19bc6aad 23906
90dd450c 23907 fi
19bc6aad 23908
21d1c967 23909 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23910 echo "$as_me:$LINENO: checking for shmat" >&5
23911echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23912if test "${ac_cv_func_shmat+set}" = set; then
23913 echo $ECHO_N "(cached) $ECHO_C" >&6
23914else
23915 cat >conftest.$ac_ext <<_ACEOF
23916#line $LINENO "configure"
23917/* confdefs.h. */
23918_ACEOF
23919cat confdefs.h >>conftest.$ac_ext
23920cat >>conftest.$ac_ext <<_ACEOF
23921/* end confdefs.h. */
21d1c967 23922/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23923 which can conflict with char shmat (); below.
23924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23925 <limits.h> exists even on freestanding compilers. */
23926#ifdef __STDC__
23927# include <limits.h>
23928#else
23929# include <assert.h>
23930#endif
21d1c967 23931/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23932#ifdef __cplusplus
23933extern "C"
23934{
23935#endif
21d1c967 23936/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23937 builtin and then its argument prototype would still apply. */
23938char shmat ();
21d1c967
GD
23939/* The GNU C library defines this for functions which it implements
23940 to always fail with ENOSYS. Some functions are actually named
23941 something starting with __ and the normal name is an alias. */
23942#if defined (__stub_shmat) || defined (__stub___shmat)
23943choke me
23944#else
e6cc62c6
VS
23945char (*f) () = shmat;
23946#endif
23947#ifdef __cplusplus
23948}
21d1c967 23949#endif
90dd450c 23950
e6cc62c6
VS
23951int
23952main ()
23953{
23954return f != shmat;
23955 ;
23956 return 0;
23957}
23958_ACEOF
23959rm -f conftest.$ac_objext conftest$ac_exeext
23960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23961 (eval $ac_link) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
23965 { ac_try='test -s conftest$ac_exeext'
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; }; then
23971 ac_cv_func_shmat=yes
23972else
23973 echo "$as_me: failed program was:" >&5
23974sed 's/^/| /' conftest.$ac_ext >&5
23975
23976ac_cv_func_shmat=no
23977fi
23978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23979fi
23980echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23981echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23982
21d1c967 23983 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23984 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23985echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23986if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23988else
e6cc62c6 23989 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23990LIBS="-lipc $LIBS"
e6cc62c6
VS
23991cat >conftest.$ac_ext <<_ACEOF
23992#line $LINENO "configure"
23993/* confdefs.h. */
23994_ACEOF
23995cat confdefs.h >>conftest.$ac_ext
23996cat >>conftest.$ac_ext <<_ACEOF
23997/* end confdefs.h. */
23998
5c6fa7d2 23999/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24000#ifdef __cplusplus
24001extern "C"
24002#endif
5c6fa7d2 24003/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24004 builtin and then its argument prototype would still apply. */
24005char shmat ();
24006int
24007main ()
24008{
24009shmat ();
24010 ;
24011 return 0;
24012}
24013_ACEOF
24014rm -f conftest.$ac_objext conftest$ac_exeext
24015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016 (eval $ac_link) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } &&
24020 { ac_try='test -s conftest$ac_exeext'
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ac_cv_lib_ipc_shmat=yes
24027else
24028 echo "$as_me: failed program was:" >&5
24029sed 's/^/| /' conftest.$ac_ext >&5
24030
24031ac_cv_lib_ipc_shmat=no
24032fi
24033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24034LIBS=$ac_check_lib_save_LIBS
24035fi
24036echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24037echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24038if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 24039 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 24040fi
90dd450c 24041
90dd450c 24042 fi
21d1c967 24043 fi
10f2d63a 24044
21d1c967 24045 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24046 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
24047 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24048 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24049 # check for ICE first), but we must link in the order -lSM -lICE or
24050 # we get undefined symbols. So assume we have SM if we have ICE.
24051 # These have to be linked with before -lX11, unlike the other
24052 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24053 # John Interrante, Karl Berry
24054 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24055echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24056if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058else
24059 ac_check_lib_save_LIBS=$LIBS
f09359cf 24060LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
24061cat >conftest.$ac_ext <<_ACEOF
24062#line $LINENO "configure"
24063/* confdefs.h. */
24064_ACEOF
24065cat confdefs.h >>conftest.$ac_ext
24066cat >>conftest.$ac_ext <<_ACEOF
24067/* end confdefs.h. */
24068
21d1c967 24069/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24070#ifdef __cplusplus
24071extern "C"
24072#endif
21d1c967 24073/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24074 builtin and then its argument prototype would still apply. */
24075char IceConnectionNumber ();
24076int
24077main ()
24078{
24079IceConnectionNumber ();
24080 ;
24081 return 0;
24082}
24083_ACEOF
24084rm -f conftest.$ac_objext conftest$ac_exeext
24085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24086 (eval $ac_link) 2>&5
24087 ac_status=$?
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } &&
24090 { ac_try='test -s conftest$ac_exeext'
24091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); }; }; then
24096 ac_cv_lib_ICE_IceConnectionNumber=yes
24097else
24098 echo "$as_me: failed program was:" >&5
24099sed 's/^/| /' conftest.$ac_ext >&5
24100
24101ac_cv_lib_ICE_IceConnectionNumber=no
24102fi
24103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24104LIBS=$ac_check_lib_save_LIBS
24105fi
24106echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24107echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24108if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 24109 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24110fi
21d1c967 24111
e6cc62c6 24112 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24113
10f2d63a
VZ
24114fi
24115
8284b0c5 24116
21d1c967 24117 if test "$no_x" = "yes"; then
e6cc62c6
VS
24118 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24119echo "$as_me: error: X11 not found" >&2;}
24120 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24121 fi
24122
2b5f62a0
VZ
24123 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24124 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24125 AFMINSTALL=afminstall
24126 COMPILED_X_PROGRAM=0
24127
e6cc62c6
VS
24128 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24129echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24130
21d1c967 24131ac_find_includes=
2b5f62a0 24132for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24133 do
24134 if test -f "$ac_dir/Xm/Xm.h"; then
24135 ac_find_includes=$ac_dir
24136 break
24137 fi
24138 done
24139
24140 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24141 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24142echo "${ECHO_T}found in $ac_find_includes" >&6
24143
2b5f62a0 24144 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24145 ac_path_to_include=""
24146 else
2b5f62a0
VZ
24147 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24148 result=$?
24149 if test $result = 0; then
24150 ac_path_to_include=""
24151 else
24152 ac_path_to_include=" -I$ac_find_includes"
24153 fi
dd0e4a90
VZ
24154 fi
24155
24156 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24157 else
e6cc62c6
VS
24158 cat >conftest.$ac_ext <<_ACEOF
24159#line $LINENO "configure"
24160/* confdefs.h. */
24161_ACEOF
24162cat confdefs.h >>conftest.$ac_ext
24163cat >>conftest.$ac_ext <<_ACEOF
24164/* end confdefs.h. */
21d1c967
GD
24165
24166 #include <Xm/Xm.h>
e6cc62c6
VS
24167
24168int
24169main ()
24170{
21d1c967
GD
24171
24172 int version;
24173 version = xmUseVersion;
e6cc62c6
VS
24174
24175 ;
24176 return 0;
24177}
24178_ACEOF
24179rm -f conftest.$ac_objext
24180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24181 (eval $ac_compile) 2>&5
24182 ac_status=$?
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -s conftest.$ac_objext'
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24188 ac_status=$?
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; }; then
24191
24192 echo "$as_me:$LINENO: result: found in default search path" >&5
24193echo "${ECHO_T}found in default search path" >&6
21d1c967 24194 COMPILED_X_PROGRAM=1
e6cc62c6 24195
10f2d63a 24196else
e6cc62c6
VS
24197 echo "$as_me: failed program was:" >&5
24198sed 's/^/| /' conftest.$ac_ext >&5
24199
24200
24201 echo "$as_me:$LINENO: result: no" >&5
24202echo "${ECHO_T}no" >&6
24203 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24204echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24205 { (exit 1); exit 1; }; }
24206
24207
10f2d63a 24208fi
e6cc62c6 24209rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24210 fi
10f2d63a 24211
21d1c967 24212 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24213 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24214echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24215
21d1c967 24216ac_find_libraries=
2b5f62a0 24217for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24218 do
24219 for ac_extension in a so sl dylib; do
24220 if test -f "$ac_dir/libXm.$ac_extension"; then
24221 ac_find_libraries=$ac_dir
24222 break 2
24223 fi
24224 done
24225 done
24226
24227 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24228 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24229echo "${ECHO_T}found at $ac_find_libraries" >&6
24230
21d1c967 24231
21d1c967
GD
24232 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24233 result=$?
24234 if test $result = 0; then
24235 ac_path_to_link=""
24236 else
24237 ac_path_to_link=" -L$ac_find_libraries"
24238 fi
24239
21d1c967 24240 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24241 else
dd0e4a90
VZ
24242 save_CFLAGS=$CFLAGS
24243 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24244
e6cc62c6
VS
24245 cat >conftest.$ac_ext <<_ACEOF
24246#line $LINENO "configure"
24247/* confdefs.h. */
24248_ACEOF
24249cat confdefs.h >>conftest.$ac_ext
24250cat >>conftest.$ac_ext <<_ACEOF
24251/* end confdefs.h. */
21d1c967
GD
24252
24253 #include <Xm/Xm.h>
e6cc62c6
VS
24254
24255int
24256main ()
24257{
21d1c967
GD
24258
24259 int version;
24260 version = xmUseVersion;
e6cc62c6
VS
24261
24262 ;
24263 return 0;
24264}
24265_ACEOF
24266rm -f conftest.$ac_objext
24267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24268 (eval $ac_compile) 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
24272 { ac_try='test -s conftest.$ac_objext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278
24279 echo "$as_me:$LINENO: result: found in default search path" >&5
24280echo "${ECHO_T}found in default search path" >&6
21d1c967 24281 COMPILED_X_PROGRAM=1
e6cc62c6 24282
d836ee96 24283else
e6cc62c6
VS
24284 echo "$as_me: failed program was:" >&5
24285sed 's/^/| /' conftest.$ac_ext >&5
24286
24287
24288 echo "$as_me:$LINENO: result: no" >&5
24289echo "${ECHO_T}no" >&6
24290 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24291echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24292 { (exit 1); exit 1; }; }
24293
24294
d836ee96 24295fi
e6cc62c6 24296rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24297
24298 CFLAGS=$save_CFLAGS
21d1c967
GD
24299 fi
24300 fi
24301
24302 xpm_link=
e6cc62c6
VS
24303 echo "$as_me:$LINENO: checking for Xpm library" >&5
24304echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24305
21d1c967 24306ac_find_libraries=
2b5f62a0 24307for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24308 do
24309 for ac_extension in a so sl dylib; do
24310 if test -f "$ac_dir/libXpm.$ac_extension"; then
24311 ac_find_libraries=$ac_dir
24312 break 2
24313 fi
24314 done
24315 done
24316
24317 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24318
21d1c967
GD
24319 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24320 result=$?
24321 if test $result = 0; then
24322 ac_path_to_link=""
24323 else
24324 ac_path_to_link=" -L$ac_find_libraries"
24325 fi
24326
24327 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24328
21d1c967 24329 xpm_link=" -lXpm"
e6cc62c6 24330 cat >>confdefs.h <<\_ACEOF
21d1c967 24331#define wxHAVE_LIB_XPM 1
e6cc62c6 24332_ACEOF
90dd450c 24333
e6cc62c6
VS
24334 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24335echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24336 else
dd0e4a90
VZ
24337 save_CFLAGS=$CFLAGS
24338 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24339
e6cc62c6
VS
24340 cat >conftest.$ac_ext <<_ACEOF
24341#line $LINENO "configure"
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
21d1c967
GD
24347
24348 #include <X11/xpm.h>
e6cc62c6
VS
24349
24350int
24351main ()
24352{
21d1c967
GD
24353
24354 int version;
24355 version = XpmLibraryVersion();
e6cc62c6
VS
24356
24357 ;
24358 return 0;
24359}
24360_ACEOF
24361rm -f conftest.$ac_objext
24362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24363 (eval $ac_compile) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373
21d1c967 24374 xpm_link=" -lXpm"
e6cc62c6 24375 cat >>confdefs.h <<\_ACEOF
21d1c967 24376#define wxHAVE_LIB_XPM 1
e6cc62c6 24377_ACEOF
21d1c967 24378
e6cc62c6
VS
24379 echo "$as_me:$LINENO: result: found in default search path" >&5
24380echo "${ECHO_T}found in default search path" >&6
21d1c967 24381 COMPILED_X_PROGRAM=0
e6cc62c6 24382
d836ee96 24383else
e6cc62c6
VS
24384 echo "$as_me: failed program was:" >&5
24385sed 's/^/| /' conftest.$ac_ext >&5
24386
24387
24388 echo "$as_me:$LINENO: result: no" >&5
24389echo "${ECHO_T}no" >&6
24390 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24391echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24392
24393
d836ee96 24394fi
e6cc62c6 24395rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24396
24397 CFLAGS=$save_CFLAGS
21d1c967
GD
24398 fi
24399
e6cc62c6
VS
24400 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24401echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24402 libp_link=""
24403 libsm_ice_link=""
24404 libs_found=0
24405 for libp in "" " -lXp"; do
24406 if test "$libs_found" = "0"; then
7015ef3a 24407 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24408 if test "$libs_found" = "0"; then
6a30f1c8
MB
24409 save_LIBS="$LIBS"
24410 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24411 save_CFLAGS=$CFLAGS
24412 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24413
e6cc62c6
VS
24414 cat >conftest.$ac_ext <<_ACEOF
24415#line $LINENO "configure"
24416/* confdefs.h. */
24417_ACEOF
24418cat confdefs.h >>conftest.$ac_ext
24419cat >>conftest.$ac_ext <<_ACEOF
24420/* end confdefs.h. */
17234b26 24421
6a30f1c8
MB
24422 #include <Xm/Xm.h>
24423 #include <Xm/List.h>
e6cc62c6
VS
24424
24425int
24426main ()
24427{
6a30f1c8
MB
24428
24429 XmString string = NULL;
24430 Widget w = NULL;
24431 int position = 0;
24432 XmListAddItem(w, string, position);
e6cc62c6
VS
24433
24434 ;
24435 return 0;
24436}
24437_ACEOF
24438rm -f conftest.$ac_objext conftest$ac_exeext
24439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24440 (eval $ac_link) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } &&
24444 { ac_try='test -s conftest$ac_exeext'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; }; then
24450
6a30f1c8
MB
24451 libp_link="$libp"
24452 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24453 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24454echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24455 libs_found=1
e6cc62c6 24456
6a30f1c8 24457else
e6cc62c6
VS
24458 echo "$as_me: failed program was:" >&5
24459sed 's/^/| /' conftest.$ac_ext >&5
24460
24461
24462
6a30f1c8 24463fi
e6cc62c6 24464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24465
6a30f1c8 24466 LIBS="$save_LIBS"
dd0e4a90 24467 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24468 fi
24469 done
24470 fi
24471 done
24472
24473 if test "$libs_found" = "0"; then
e6cc62c6
VS
24474 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24475echo "${ECHO_T}can't find the right libraries" >&6
24476 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24477echo "$as_me: error: can't link a simple motif program" >&2;}
24478 { (exit 1); exit 1; }; }
6a30f1c8
MB
24479 fi
24480
da494b40
MB
24481 save_CFLAGS=$CFLAGS
24482 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24483 echo "$as_me:$LINENO: checking for Motif 2" >&5
24484echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24485 cat >conftest.$ac_ext <<_ACEOF
24486#line $LINENO "configure"
24487/* confdefs.h. */
24488_ACEOF
24489cat confdefs.h >>conftest.$ac_ext
24490cat >>conftest.$ac_ext <<_ACEOF
24491/* end confdefs.h. */
da494b40
MB
24492
24493 #include <Xm/Xm.h>
e6cc62c6
VS
24494
24495int
24496main ()
24497{
da494b40
MB
24498
24499 #if XmVersion < 2000
24500 #error "Not Motif 2"
24501 #endif
e6cc62c6
VS
24502
24503 ;
24504 return 0;
24505}
24506_ACEOF
24507rm -f conftest.$ac_objext
24508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24509 (eval $ac_compile) 2>&5
24510 ac_status=$?
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } &&
24513 { ac_try='test -s conftest.$ac_objext'
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; }; then
24519
24520 cat >>confdefs.h <<\_ACEOF
da494b40 24521#define __WXMOTIF20__ 1
e6cc62c6
VS
24522_ACEOF
24523
24524 echo "$as_me:$LINENO: result: found" >&5
24525echo "${ECHO_T}found" >&6
da494b40 24526
da494b40 24527else
e6cc62c6
VS
24528 echo "$as_me: failed program was:" >&5
24529sed 's/^/| /' conftest.$ac_ext >&5
24530
24531
24532 cat >>confdefs.h <<\_ACEOF
da494b40 24533#define __WXMOTIF20__ 0
e6cc62c6
VS
24534_ACEOF
24535
24536 echo "$as_me:$LINENO: result: not found" >&5
24537echo "${ECHO_T}not found" >&6
da494b40 24538
da494b40 24539fi
e6cc62c6 24540rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24541 CFLAGS=$save_CFLAGS
24542
6a30f1c8 24543 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24544 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24545 TOOLKIT=MOTIF
24546 GUIDIST=MOTIF_DIST
f7f78039
MB
24547 wxHAVE_XEXT_LIB=1
24548 fi
24549
24550 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24551 test "$wxHAVE_XEXT_LIB" = 1; then
24552 save_CFLAGS="$CFLAGS"
24553 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24554
e6cc62c6
VS
24555 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24556echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24557 cat >conftest.$ac_ext <<_ACEOF
24558#line $LINENO "configure"
24559/* confdefs.h. */
24560_ACEOF
24561cat confdefs.h >>conftest.$ac_ext
24562cat >>conftest.$ac_ext <<_ACEOF
24563/* end confdefs.h. */
24564
24565 #include <X11/Xlib.h>
f7f78039 24566 #include <X11/extensions/shape.h>
e6cc62c6
VS
24567
24568int
24569main ()
24570{
f7f78039
MB
24571
24572 int dummy1, dummy2;
24573 XShapeQueryExtension((Display*)NULL,
24574 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24575
24576 ;
24577 return 0;
24578}
24579_ACEOF
24580rm -f conftest.$ac_objext
24581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24582 (eval $ac_compile) 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } &&
24586 { ac_try='test -s conftest.$ac_objext'
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24589 ac_status=$?
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592
24593 cat >>confdefs.h <<\_ACEOF
f7f78039 24594#define HAVE_XSHAPE 1
e6cc62c6
VS
24595_ACEOF
24596
24597 echo "$as_me:$LINENO: result: found" >&5
24598echo "${ECHO_T}found" >&6
f7f78039 24599
f7f78039 24600else
e6cc62c6
VS
24601 echo "$as_me: failed program was:" >&5
24602sed 's/^/| /' conftest.$ac_ext >&5
24603
24604
24605 echo "$as_me:$LINENO: result: not found" >&5
24606echo "${ECHO_T}not found" >&6
24607
f7f78039 24608fi
e6cc62c6 24609rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24610 CFLAGS="$save_CFLAGS"
21d1c967
GD
24611 fi
24612
24613 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24614 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24615echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24616 if test "$GCC" = yes; then
24617 echo "$as_me:$LINENO: result: gcc" >&5
24618echo "${ECHO_T}gcc" >&6
24619 CPPFLAGS_PASCAL="-fpascal-strings"
24620 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24621 echo "$as_me:$LINENO: result: xlc" >&5
24622echo "${ECHO_T}xlc" >&6
24623 CPPFLAGS_PASCAL="-qmacpstr"
24624 else
24625 echo "$as_me:$LINENO: result: none" >&5
24626echo "${ECHO_T}none" >&6
24627 fi
24628
24629 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24630
0c98a14e 24631 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24632 TOOLKIT=MAC
24633 GUIDIST=MACX_DIST
cf615ebb 24634 WXBASEPORT="_carbon"
21d1c967
GD
24635 fi
24636
ac0c4cc3
DE
24637 if test "$wxUSE_COCOA" = 1; then
24638 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24639 TOOLKIT=COCOA
24640 GUIDIST=COCOA_DIST
24641 fi
24642
21d1c967
GD
24643 if test "$wxUSE_PM" = 1; then
24644 TOOLKIT=PM
24645 GUIDIST=GTK_DIST
24646 fi
24647
24648 if test "$TOOLKIT" = "PM" ; then
24649 TOOLKIT_DIR="os2"
24650 else
24651 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24652 fi
24653
24654 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24655
24656 if test "$wxUSE_UNIVERSAL" = "yes"; then
24657 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24658
24659 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24660 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24661
24662 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24663 if test "$wxUSE_X11" = 1; then
24664 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24665 else
24666 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24667 fi
24668 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24669 WIDGET_SET=univ
24670 else
24671 ALL_OBJECTS="\$(GUIOBJS)"
24672 ALL_SOURCES="\$(ALL_SOURCES)"
24673 ALL_HEADERS="\$(ALL_HEADERS)"
24674 fi
24675
24676 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24677
24678 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24679 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24680 fi
24681
24682 if test "$wxUSE_HTML" = "yes"; then
24683 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24684 fi
24685
24686 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24687 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24688 fi
24689 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24690 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24691 fi
24692 if test "$wxUSE_LIBPNG" = "builtin" ; then
24693 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24694 fi
24695
24696 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24697 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24698else
21d1c967
GD
24699 USE_GUI=0
24700
24701 TOOLKIT_DIR="base"
24702
24703 if test "$USE_WIN32" = 1 ; then
24704 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24705 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24706
24707 TOOLKIT="MSW"
24708 else
24709 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24710 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24711 fi
24712
24713 ALL_SOURCES="\$(ALL_SOURCES)"
24714 ALL_HEADERS="\$(ALL_HEADERS)"
24715
24716 PORT_FILES="\${top_srcdir}/src/files.lst"
24717
24718 GUIDIST="BASE_DIST"
24719 DISTDIR="wxBase"
d836ee96
VZ
24720fi
24721
8284b0c5 24722
8647bec6
RG
24723
24724
24725IODBC_C_SRC=""
24726
24727
24728if test "$TOOLKIT" != "MSW" ; then
24729
bb41dcbe 24730 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24731
bb41dcbe 24732 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24733 echo "$as_me:$LINENO: checking for sql.h" >&5
24734echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24735if test "${ac_cv_header_sql_h+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737fi
24738echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24739echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24740else
24741 # Is the header compilable?
24742echo "$as_me:$LINENO: checking sql.h usability" >&5
24743echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24744cat >conftest.$ac_ext <<_ACEOF
24745#line $LINENO "configure"
24746/* confdefs.h. */
24747_ACEOF
24748cat confdefs.h >>conftest.$ac_ext
24749cat >>conftest.$ac_ext <<_ACEOF
24750/* end confdefs.h. */
24751$ac_includes_default
8647bec6 24752#include <sql.h>
e6cc62c6
VS
24753_ACEOF
24754rm -f conftest.$ac_objext
24755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24756 (eval $ac_compile) 2>&5
24757 ac_status=$?
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -s conftest.$ac_objext'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; }; then
24766 ac_header_compiler=yes
24767else
24768 echo "$as_me: failed program was:" >&5
24769sed 's/^/| /' conftest.$ac_ext >&5
24770
24771ac_header_compiler=no
24772fi
24773rm -f conftest.$ac_objext conftest.$ac_ext
24774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24775echo "${ECHO_T}$ac_header_compiler" >&6
24776
24777# Is the header present?
24778echo "$as_me:$LINENO: checking sql.h presence" >&5
24779echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24780cat >conftest.$ac_ext <<_ACEOF
24781#line $LINENO "configure"
24782/* confdefs.h. */
24783_ACEOF
24784cat confdefs.h >>conftest.$ac_ext
24785cat >>conftest.$ac_ext <<_ACEOF
24786/* end confdefs.h. */
24787#include <sql.h>
24788_ACEOF
24789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24791 ac_status=$?
24792 grep -v '^ *+' conftest.er1 >conftest.err
24793 rm -f conftest.er1
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } >/dev/null; then
24797 if test -s conftest.err; then
24798 ac_cpp_err=$ac_c_preproc_warn_flag
24799 else
24800 ac_cpp_err=
24801 fi
24802else
24803 ac_cpp_err=yes
24804fi
24805if test -z "$ac_cpp_err"; then
24806 ac_header_preproc=yes
24807else
24808 echo "$as_me: failed program was:" >&5
24809sed 's/^/| /' conftest.$ac_ext >&5
24810
24811 ac_header_preproc=no
24812fi
24813rm -f conftest.err conftest.$ac_ext
24814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24815echo "${ECHO_T}$ac_header_preproc" >&6
24816
24817# So? What about this header?
24818case $ac_header_compiler:$ac_header_preproc in
24819 yes:no )
24820 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24821echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24823echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24824 (
24825 cat <<\_ASBOX
24826## ------------------------------------ ##
24827## Report this to bug-autoconf@gnu.org. ##
24828## ------------------------------------ ##
24829_ASBOX
24830 ) |
24831 sed "s/^/$as_me: WARNING: /" >&2
24832 ;;
24833 no:yes )
24834 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24835echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24836 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24837echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24838 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24839echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24840 (
24841 cat <<\_ASBOX
24842## ------------------------------------ ##
24843## Report this to bug-autoconf@gnu.org. ##
24844## ------------------------------------ ##
24845_ASBOX
24846 ) |
24847 sed "s/^/$as_me: WARNING: /" >&2
24848 ;;
24849esac
24850echo "$as_me:$LINENO: checking for sql.h" >&5
24851echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24852if test "${ac_cv_header_sql_h+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24854else
e6cc62c6
VS
24855 ac_cv_header_sql_h=$ac_header_preproc
24856fi
24857echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24858echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24859
bb41dcbe
VS
24860fi
24861if test $ac_cv_header_sql_h = yes; then
24862 found_sql_h=1
8647bec6
RG
24863fi
24864
e6cc62c6 24865
bb41dcbe 24866 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24867 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24868echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24869if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24870 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24871else
bb41dcbe 24872 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24873LIBS="-liodbc $LIBS"
e6cc62c6
VS
24874cat >conftest.$ac_ext <<_ACEOF
24875#line $LINENO "configure"
24876/* confdefs.h. */
24877_ACEOF
24878cat confdefs.h >>conftest.$ac_ext
24879cat >>conftest.$ac_ext <<_ACEOF
24880/* end confdefs.h. */
24881
8647bec6 24882/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24883#ifdef __cplusplus
24884extern "C"
24885#endif
8647bec6 24886/* We use char because int might match the return type of a gcc2
e6cc62c6 24887 builtin and then its argument prototype would still apply. */
e46d2a18 24888char SQLAllocEnv ();
e6cc62c6
VS
24889int
24890main ()
24891{
e46d2a18 24892SQLAllocEnv ();
e6cc62c6
VS
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897rm -f conftest.$ac_objext conftest$ac_exeext
24898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24899 (eval $ac_link) 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } &&
24903 { ac_try='test -s conftest$ac_exeext'
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; }; then
e46d2a18 24909 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24910else
e6cc62c6
VS
24911 echo "$as_me: failed program was:" >&5
24912sed 's/^/| /' conftest.$ac_ext >&5
24913
e46d2a18 24914ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24915fi
e6cc62c6 24916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24917LIBS=$ac_check_lib_save_LIBS
24918fi
e46d2a18
VS
24919echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24920echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24921if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24922 ODBC_LINK=" -liodbc"
24923else
24924
e46d2a18
VS
24925 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24926echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24927if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24929else
24930 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24931LIBS="-lunixodbc $LIBS"
bb41dcbe 24932cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24933#line $LINENO "configure"
24934/* confdefs.h. */
24935_ACEOF
24936cat confdefs.h >>conftest.$ac_ext
24937cat >>conftest.$ac_ext <<_ACEOF
24938/* end confdefs.h. */
24939
8647bec6 24940/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24941#ifdef __cplusplus
24942extern "C"
24943#endif
8647bec6 24944/* We use char because int might match the return type of a gcc2
e6cc62c6 24945 builtin and then its argument prototype would still apply. */
e46d2a18 24946char SQLAllocEnv ();
e6cc62c6
VS
24947int
24948main ()
24949{
e46d2a18 24950SQLAllocEnv ();
e6cc62c6
VS
24951 ;
24952 return 0;
24953}
24954_ACEOF
24955rm -f conftest.$ac_objext conftest$ac_exeext
24956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24957 (eval $ac_link) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } &&
24961 { ac_try='test -s conftest$ac_exeext'
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
e46d2a18 24967 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 24968else
e6cc62c6
VS
24969 echo "$as_me: failed program was:" >&5
24970sed 's/^/| /' conftest.$ac_ext >&5
24971
e46d2a18 24972ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 24973fi
e6cc62c6 24974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24975LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24976fi
e46d2a18
VS
24977echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
24978echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
24979if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24980 ODBC_LINK=" -lunixodbc"
24981else
24982
e46d2a18
VS
24983 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
24984echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
24985if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24987else
24988 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24989LIBS="-lodbc $LIBS"
bb41dcbe
VS
24990cat >conftest.$ac_ext <<_ACEOF
24991#line $LINENO "configure"
24992/* confdefs.h. */
24993_ACEOF
24994cat confdefs.h >>conftest.$ac_ext
24995cat >>conftest.$ac_ext <<_ACEOF
24996/* end confdefs.h. */
e6cc62c6 24997
bb41dcbe
VS
24998/* Override any gcc2 internal prototype to avoid an error. */
24999#ifdef __cplusplus
25000extern "C"
25001#endif
25002/* We use char because int might match the return type of a gcc2
25003 builtin and then its argument prototype would still apply. */
e46d2a18 25004char SQLAllocEnv ();
bb41dcbe
VS
25005int
25006main ()
25007{
e46d2a18 25008SQLAllocEnv ();
bb41dcbe
VS
25009 ;
25010 return 0;
25011}
25012_ACEOF
25013rm -f conftest.$ac_objext conftest$ac_exeext
25014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015 (eval $ac_link) 2>&5
25016 ac_status=$?
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
25019 { ac_try='test -s conftest$ac_exeext'
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; }; then
e46d2a18 25025 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 25026else
bb41dcbe
VS
25027 echo "$as_me: failed program was:" >&5
25028sed 's/^/| /' conftest.$ac_ext >&5
25029
e46d2a18 25030ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe
VS
25031fi
25032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25033LIBS=$ac_check_lib_save_LIBS
25034fi
e46d2a18
VS
25035echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25036echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25037if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25038 ODBC_LINK=" -lodbc"
25039fi
25040
25041
25042fi
e6cc62c6 25043
e6cc62c6 25044
8647bec6 25045fi
e6cc62c6 25046
fd3d7534 25047 fi
bb41dcbe
VS
25048 if test "x$ODBC_LINK" = "x" ; then
25049 if test "$wxUSE_ODBC" = "sys" ; then
25050 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25051echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25052 { (exit 1); exit 1; }; }
25053 else
25054 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25055echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25056 wxUSE_ODBC=builtin
25057 fi
25058 else
25059 wxUSE_ODBC=sys
8647bec6 25060 fi
8647bec6 25061 fi
bb41dcbe
VS
25062 if test "$wxUSE_ODBC" != "no" ; then
25063 cat >>confdefs.h <<\_ACEOF
25064#define wxUSE_ODBC 1
25065_ACEOF
e6cc62c6 25066
0bdb08e7
VS
25067 if test "$wxUSE_ODBC" = "builtin" ; then
25068 cat >>confdefs.h <<\_ACEOF
25069#define wxUSE_BUILTIN_IODBC 1
25070_ACEOF
25071
25072 fi
bb41dcbe
VS
25073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25074
25075 WXODBCFLAG="-D_IODBC_"
25076 fi
6232543b 25077fi
21d1c967
GD
25078
25079if test "$wxUSE_REGEX" = "builtin" ; then
25080 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 25081fi
21d1c967
GD
25082if test "$wxUSE_ZLIB" = "builtin" ; then
25083 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
25084fi
25085
8284b0c5 25086
4d264332 25087USE_OPENGL=0
21d1c967 25088if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 25089 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
25090 OPENGL_LIBS="-framework OpenGL -framework AGL"
25091 elif test "$wxUSE_MSW" = 1; then
25092 OPENGL_LIBS="-lopengl32 -lglu32"
25093 else
01aa5863
VS
25094
25095
25096ac_find_includes=
25097for ac_dir in $SEARCH_INCLUDE /usr/include;
25098 do
25099 if test -f "$ac_dir/GL/gl.h"; then
25100 ac_find_includes=$ac_dir
25101 break
25102 fi
25103 done
25104
25105 if test "$ac_find_includes" != "" ; then
25106 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25107echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
25108
25109 if test "x$ac_find_includes" = "x/usr/include"; then
25110 ac_path_to_include=""
25111 else
25112 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25113 result=$?
25114 if test $result = 0; then
25115 ac_path_to_include=""
25116 else
25117 ac_path_to_include=" -I$ac_find_includes"
25118 fi
25119 fi
25120
25121 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25122 fi
25123
e6cc62c6
VS
25124 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25125 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25126echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25127if test "${ac_cv_header_GL_gl_h+set}" = set; then
25128 echo $ECHO_N "(cached) $ECHO_C" >&6
25129fi
25130echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25131echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25132else
25133 # Is the header compilable?
25134echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25135echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25136cat >conftest.$ac_ext <<_ACEOF
25137#line $LINENO "configure"
25138/* confdefs.h. */
25139_ACEOF
25140cat confdefs.h >>conftest.$ac_ext
25141cat >>conftest.$ac_ext <<_ACEOF
25142/* end confdefs.h. */
25143$ac_includes_default
21d1c967 25144#include <GL/gl.h>
e6cc62c6
VS
25145_ACEOF
25146rm -f conftest.$ac_objext
25147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25148 (eval $ac_compile) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } &&
25152 { ac_try='test -s conftest.$ac_objext'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 ac_header_compiler=yes
25159else
25160 echo "$as_me: failed program was:" >&5
25161sed 's/^/| /' conftest.$ac_ext >&5
25162
25163ac_header_compiler=no
25164fi
25165rm -f conftest.$ac_objext conftest.$ac_ext
25166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25167echo "${ECHO_T}$ac_header_compiler" >&6
25168
25169# Is the header present?
25170echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25171echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25172cat >conftest.$ac_ext <<_ACEOF
25173#line $LINENO "configure"
25174/* confdefs.h. */
25175_ACEOF
25176cat confdefs.h >>conftest.$ac_ext
25177cat >>conftest.$ac_ext <<_ACEOF
25178/* end confdefs.h. */
25179#include <GL/gl.h>
25180_ACEOF
25181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25183 ac_status=$?
25184 grep -v '^ *+' conftest.er1 >conftest.err
25185 rm -f conftest.er1
25186 cat conftest.err >&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } >/dev/null; then
25189 if test -s conftest.err; then
25190 ac_cpp_err=$ac_c_preproc_warn_flag
25191 else
25192 ac_cpp_err=
25193 fi
25194else
25195 ac_cpp_err=yes
25196fi
25197if test -z "$ac_cpp_err"; then
25198 ac_header_preproc=yes
25199else
25200 echo "$as_me: failed program was:" >&5
25201sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 ac_header_preproc=no
25204fi
25205rm -f conftest.err conftest.$ac_ext
25206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25207echo "${ECHO_T}$ac_header_preproc" >&6
25208
25209# So? What about this header?
25210case $ac_header_compiler:$ac_header_preproc in
25211 yes:no )
25212 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25213echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25214 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25215echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25216 (
25217 cat <<\_ASBOX
25218## ------------------------------------ ##
25219## Report this to bug-autoconf@gnu.org. ##
25220## ------------------------------------ ##
25221_ASBOX
25222 ) |
25223 sed "s/^/$as_me: WARNING: /" >&2
25224 ;;
25225 no:yes )
25226 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25227echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25228 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25229echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25230 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25231echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25232 (
25233 cat <<\_ASBOX
25234## ------------------------------------ ##
25235## Report this to bug-autoconf@gnu.org. ##
25236## ------------------------------------ ##
25237_ASBOX
25238 ) |
25239 sed "s/^/$as_me: WARNING: /" >&2
25240 ;;
25241esac
25242echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25243echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25244if test "${ac_cv_header_GL_gl_h+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25246else
25247 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25248fi
e6cc62c6
VS
25249echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25250echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25251
698dcdb6 25252fi
e6cc62c6
VS
25253if test $ac_cv_header_GL_gl_h = yes; then
25254
89e3b3e4
VZ
25255 found_gl=0
25256
e6cc62c6
VS
25257 echo "$as_me:$LINENO: checking for -lGL" >&5
25258echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25259
21d1c967 25260ac_find_libraries=
2b5f62a0 25261for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25262 do
25263 for ac_extension in a so sl dylib; do
25264 if test -f "$ac_dir/libGL.$ac_extension"; then
25265 ac_find_libraries=$ac_dir
25266 break 2
25267 fi
25268 done
25269 done
25270
25271 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25272
21d1c967
GD
25273 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25274 result=$?
25275 if test $result = 0; then
25276 ac_path_to_link=""
25277 else
25278 ac_path_to_link=" -L$ac_find_libraries"
25279 fi
25280
89e3b3e4
VZ
25281 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25282 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25283 fi
89e3b3e4 25284
e6cc62c6 25285
89e3b3e4
VZ
25286ac_find_libraries=
25287for ac_dir in $SEARCH_LIB /usr/lib;
25288 do
25289 for ac_extension in a so sl dylib; do
25290 if test -f "$ac_dir/libGLU.$ac_extension"; then
25291 ac_find_libraries=$ac_dir
25292 break 2
25293 fi
25294 done
25295 done
25296
25297 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25298
89e3b3e4
VZ
25299 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25300 result=$?
25301 if test $result = 0; then
25302 ac_path_to_link=""
25303 else
25304 ac_path_to_link=" -L$ac_find_libraries"
25305 fi
25306
25307 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25308 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25309 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25310 fi
25311
25312 found_gl=1
25313 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25314 echo "$as_me:$LINENO: result: yes" >&5
25315echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25316 fi
25317 fi
25318
bb41dcbe 25319 if test "$found_gl" != 1; then
e6cc62c6
VS
25320 echo "$as_me:$LINENO: result: no" >&5
25321echo "${ECHO_T}no" >&6
25322 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25323echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25324
21d1c967 25325ac_find_libraries=
2b5f62a0 25326for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25327 do
25328 for ac_extension in a so sl dylib; do
25329 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25330 ac_find_libraries=$ac_dir
25331 break 2
25332 fi
25333 done
25334 done
25335
25336 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25337
21d1c967
GD
25338 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25339 result=$?
25340 if test $result = 0; then
25341 ac_path_to_link=""
25342 else
25343 ac_path_to_link=" -L$ac_find_libraries"
25344 fi
25345
25346 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25347 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25348 echo "$as_me:$LINENO: result: yes" >&5
25349echo "${ECHO_T}yes" >&6
21d1c967 25350 else
e6cc62c6
VS
25351 echo "$as_me:$LINENO: result: no" >&5
25352echo "${ECHO_T}no" >&6
21d1c967
GD
25353 fi
25354 fi
e6cc62c6 25355
5c6fa7d2 25356fi
52127426 25357
8284b0c5 25358
e6cc62c6 25359
21d1c967 25360 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25361 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25362echo "$as_me: error: OpenGL libraries not available" >&2;}
25363 { (exit 1); exit 1; }; }
21d1c967
GD
25364 fi
25365 fi
90dd450c 25366
21d1c967 25367 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25368 USE_OPENGL=1
e6cc62c6 25369 cat >>confdefs.h <<\_ACEOF
21d1c967 25370#define wxUSE_OPENGL 1
e6cc62c6 25371_ACEOF
21d1c967 25372
e6cc62c6 25373 cat >>confdefs.h <<\_ACEOF
21d1c967 25374#define wxUSE_GLCANVAS 1
e6cc62c6 25375_ACEOF
21d1c967 25376
520755bb 25377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25378 fi
10f2d63a 25379fi
21d1c967
GD
25380
25381if test -z "$TOOLKIT_VPATH" ; then
25382 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25383fi
21d1c967
GD
25384
25385if test -n "$TOOLKIT" ; then
25386 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25387fi
25388
fe0895cf 25389UNICODE=0
21d1c967
GD
25390lib_unicode_suffix=
25391if test "$wxUSE_UNICODE" = "yes"; then
25392 lib_unicode_suffix=u
fe0895cf 25393 UNICODE=1
90dd450c 25394fi
698dcdb6 25395
21d1c967 25396lib_debug_suffix=
6c67131a 25397DEBUG_FLAG=0
21d1c967
GD
25398if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25399 lib_debug_suffix=d
6c67131a
VS
25400 DEBUG_FLAG=1
25401fi
25402
25403DEBUG_INFO=0
25404if test "$wxUSE_DEBUG_INFO" = "yes"; then
25405 DEBUG_INFO=1
21d1c967 25406fi
698dcdb6 25407
1cbb95a2 25408WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25409
25410TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25411TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25412
25413if test "$cross_compiling" = "yes"; then
25414 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25415 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25416 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25417fi
25418
25419WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25420WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25421WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25422WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25423
25424WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25425WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25426
25427WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25428WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25429WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25430WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25431
25432case "${host}" in
25433 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25434 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25435 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25436 ;;
25437
25438 *-*-darwin* )
e6cc62c6 25439
05159a27
GD
25440 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25441 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25442
25443 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25444 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25445 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25446 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25447
21d1c967 25448 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25449 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25450 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25451 fi
25452 ;;
25453esac
25454
25455WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25456WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25457
25458WXCONFIG_LIBS="-l${WX_LIBRARY}"
25459WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25460
25461if test "$wxUSE_OPENGL" = "yes"; then
25462 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25463 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25464fi
25465
8284b0c5
MB
25466
25467
21d1c967
GD
25468if test "$wxUSE_SHARED" = "yes"; then
25469 case "${host}" in
25470 *-pc-os2_emx | *-pc-os2-emx | \
25471 *-pc-msdosdjgpp )
25472 wxUSE_SHARED=no
e6cc62c6
VS
25473 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25474echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25475 ;;
25476 esac
25477fi
25478
fe0895cf 25479SHARED=0
2b5f62a0 25480if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25481 SHARED=1
2b5f62a0 25482
e6cc62c6 25483
2b5f62a0
VZ
25484 found_versioning=no
25485
e6cc62c6 25486
2b5f62a0 25487 if test $found_versioning = no ; then
e6cc62c6
VS
25488 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25489echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25490if test "${wx_cv_version_script+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25492else
e6cc62c6 25493
2b5f62a0
VZ
25494 echo "VER_1 { *; };" >conftest.sym
25495 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25496
2b5f62a0
VZ
25497 if { ac_try='
25498 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25499 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25505 if test -s conftest.stderr ; then
25506 wx_cv_version_script=no
25507 else
25508 wx_cv_version_script=yes
25509 fi
25510 else
25511 wx_cv_version_script=no
25512 fi
25513 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25514
e6cc62c6
VS
25515fi
25516echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25517echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25518 if test $wx_cv_version_script = yes ; then
e6cc62c6 25519 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25520 fi
25521 fi
21d1c967 25522
21d1c967 25523
21d1c967 25524 case "${host}" in
fe0895cf 25525 *-*-linux* | *-*-gnu* )
e6cc62c6 25526 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25527 ;;
21d1c967
GD
25528
25529 *-*-solaris2* )
25530 if test "$GCC" = yes ; then
25531 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25532
25533 saveLdflags="$LDFLAGS"
25534 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25535 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25536echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25537 cat >conftest.$ac_ext <<_ACEOF
25538#line $LINENO "configure"
25539/* confdefs.h. */
25540_ACEOF
25541cat confdefs.h >>conftest.$ac_ext
25542cat >>conftest.$ac_ext <<_ACEOF
25543/* end confdefs.h. */
25544
25545int
25546main ()
25547{
fe0895cf 25548
e6cc62c6
VS
25549 ;
25550 return 0;
25551}
25552_ACEOF
25553rm -f conftest.$ac_objext conftest$ac_exeext
25554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25555 (eval $ac_link) 2>&5
25556 ac_status=$?
25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } &&
25559 { ac_try='test -s conftest$ac_exeext'
25560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25561 (eval $ac_try) 2>&5
25562 ac_status=$?
25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564 (exit $ac_status); }; }; then
25565
25566 echo "$as_me:$LINENO: result: yes" >&5
25567echo "${ECHO_T}yes" >&6
25568 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25569
25570else
25571 echo "$as_me: failed program was:" >&5
25572sed 's/^/| /' conftest.$ac_ext >&5
25573
25574
25575 echo "$as_me:$LINENO: result: no" >&5
25576echo "${ECHO_T}no" >&6
25577 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25578echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25579 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25580 cat >conftest.$ac_ext <<_ACEOF
25581#line $LINENO "configure"
25582/* confdefs.h. */
25583_ACEOF
25584cat confdefs.h >>conftest.$ac_ext
25585cat >>conftest.$ac_ext <<_ACEOF
25586/* end confdefs.h. */
25587
25588int
25589main ()
25590{
25591
25592 ;
25593 return 0;
25594}
25595_ACEOF
25596rm -f conftest.$ac_objext conftest$ac_exeext
25597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25598 (eval $ac_link) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -s conftest$ac_exeext'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608
25609 echo "$as_me:$LINENO: result: yes" >&5
25610echo "${ECHO_T}yes" >&6
25611 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25612else
25613 echo "$as_me: failed program was:" >&5
25614sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25615
fe0895cf 25616
e6cc62c6
VS
25617 echo "$as_me:$LINENO: result: no" >&5
25618echo "${ECHO_T}no" >&6
25619
fe0895cf 25620fi
e6cc62c6
VS
25621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25622
25623fi
25624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25625 LDFLAGS="$saveLdflags"
21d1c967
GD
25626 else
25627 SHARED_LD="${CXX} -G -o"
25628 PIC_FLAG="-KPIC"
e6cc62c6 25629 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25630 fi
25631 ;;
0f1bc9c2
VS
25632
25633 powerpc-*-darwin* )
ef0add05
VS
25634 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25635 cat <<EOF >change-install-names
25636#!/bin/sh
25637libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25638inst_cmd="install_name_tool "
25639for i in \${libnames} ; do
25640 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25641done
25642\${inst_cmd} \${3}
25643EOF
25644 chmod +x change-install-names
0f1bc9c2
VS
25645 ;;
25646
21d1c967
GD
25647 esac
25648
25649 if test "x$WX_TARGET_LIBRARY" = "x"; then
25650 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25651 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25652 fi
25653
25654 WX_TARGET_LIBRARY_TYPE="so"
25655 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25656fi
10f2d63a 25657
21d1c967
GD
25658if test "$wxUSE_SHARED" = "no"; then
25659
25660 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25661 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25662 fi
25663
ac0c4cc3 25664 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25665 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25666 fi
25667
25668 if test "$wxUSE_OPENGL" = "yes"; then
25669 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25670 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25671 else
25672 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25673 fi
25674
25675 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25676 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25677
25678 WX_TARGET_LIBRARY_TYPE="a"
25679 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25680
25681 STATIC_FLAG="yes"
25682else
25683 STATIC_FLAG="no"
90dd450c 25684fi
1e487827 25685
93fac604
VZ
25686MACRESCOMP="@#"
25687MACSETFILE="@#"
36825681 25688MACRESWXCONFIG="#"
21d1c967 25689if test "$wxUSE_MAC" = 1; then
e6cc62c6 25690 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25691 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25692 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25693 # Extract the first word of "Rez", so it can be a program name with args.
25694set dummy Rez; ac_word=$2
e6cc62c6
VS
25695echo "$as_me:$LINENO: checking for $ac_word" >&5
25696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25697if test "${ac_cv_prog_RESCOMP+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25699else
21d1c967
GD
25700 if test -n "$RESCOMP"; then
25701 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25702else
e6cc62c6
VS
25703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25704for as_dir in $PATH
25705do
25706 IFS=$as_save_IFS
25707 test -z "$as_dir" && as_dir=.
25708 for ac_exec_ext in '' $ac_executable_extensions; do
25709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25710 ac_cv_prog_RESCOMP="Rez"
25711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25712 break 2
25713 fi
25714done
25715done
25716
21d1c967 25717 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25718fi
b93d0d08 25719fi
e6cc62c6 25720RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25721if test -n "$RESCOMP"; then
e6cc62c6
VS
25722 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25723echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25724else
e6cc62c6
VS
25725 echo "$as_me:$LINENO: result: no" >&5
25726echo "${ECHO_T}no" >&6
90dd450c 25727fi
b93d0d08 25728
21d1c967
GD
25729 # Extract the first word of "DeRez", so it can be a program name with args.
25730set dummy DeRez; ac_word=$2
e6cc62c6
VS
25731echo "$as_me:$LINENO: checking for $ac_word" >&5
25732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25733if test "${ac_cv_prog_DEREZ+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25735else
21d1c967
GD
25736 if test -n "$DEREZ"; then
25737 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25738else
e6cc62c6
VS
25739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25740for as_dir in $PATH
25741do
25742 IFS=$as_save_IFS
25743 test -z "$as_dir" && as_dir=.
25744 for ac_exec_ext in '' $ac_executable_extensions; do
25745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25746 ac_cv_prog_DEREZ="DeRez"
25747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25748 break 2
25749 fi
25750done
25751done
25752
21d1c967 25753 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25754fi
90dd450c 25755fi
e6cc62c6 25756DEREZ=$ac_cv_prog_DEREZ
21d1c967 25757if test -n "$DEREZ"; then
e6cc62c6
VS
25758 echo "$as_me:$LINENO: result: $DEREZ" >&5
25759echo "${ECHO_T}$DEREZ" >&6
90dd450c 25760else
e6cc62c6
VS
25761 echo "$as_me:$LINENO: result: no" >&5
25762echo "${ECHO_T}no" >&6
3a922bb4 25763fi
698dcdb6 25764
36825681
GD
25765 # Extract the first word of "SetFile", so it can be a program name with args.
25766set dummy SetFile; ac_word=$2
e6cc62c6
VS
25767echo "$as_me:$LINENO: checking for $ac_word" >&5
25768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25769if test "${ac_cv_prog_SETFILE+set}" = set; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25771else
25772 if test -n "$SETFILE"; then
25773 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25774else
e6cc62c6
VS
25775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25776for as_dir in $PATH
25777do
25778 IFS=$as_save_IFS
25779 test -z "$as_dir" && as_dir=.
25780 for ac_exec_ext in '' $ac_executable_extensions; do
25781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25782 ac_cv_prog_SETFILE="SetFile"
25783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25784 break 2
25785 fi
25786done
25787done
25788
36825681
GD
25789 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25790fi
25791fi
e6cc62c6 25792SETFILE=$ac_cv_prog_SETFILE
36825681 25793if test -n "$SETFILE"; then
e6cc62c6
VS
25794 echo "$as_me:$LINENO: result: $SETFILE" >&5
25795echo "${ECHO_T}$SETFILE" >&6
36825681 25796else
e6cc62c6
VS
25797 echo "$as_me:$LINENO: result: no" >&5
25798echo "${ECHO_T}no" >&6
36825681
GD
25799fi
25800
21d1c967 25801 MACOSX_BUNDLE="bundle"
36825681
GD
25802 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25803 MACSETFILE="\$(SETFILE)"
9711d31e 25804 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25805elif test "$wxUSE_COCOA" = 1; then
25806 # Extract the first word of "Rez", so it can be a program name with args.
25807set dummy Rez; ac_word=$2
e6cc62c6
VS
25808echo "$as_me:$LINENO: checking for $ac_word" >&5
25809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25810if test "${ac_cv_prog_RESCOMP+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25812else
25813 if test -n "$RESCOMP"; then
25814 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25815else
e6cc62c6
VS
25816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817for as_dir in $PATH
25818do
25819 IFS=$as_save_IFS
25820 test -z "$as_dir" && as_dir=.
25821 for ac_exec_ext in '' $ac_executable_extensions; do
25822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25823 ac_cv_prog_RESCOMP="Rez"
25824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25825 break 2
25826 fi
25827done
25828done
25829
64440d77
DE
25830 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25831fi
25832fi
e6cc62c6 25833RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25834if test -n "$RESCOMP"; then
e6cc62c6
VS
25835 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25836echo "${ECHO_T}$RESCOMP" >&6
64440d77 25837else
e6cc62c6
VS
25838 echo "$as_me:$LINENO: result: no" >&5
25839echo "${ECHO_T}no" >&6
64440d77
DE
25840fi
25841
25842 # Extract the first word of "DeRez", so it can be a program name with args.
25843set dummy DeRez; ac_word=$2
e6cc62c6
VS
25844echo "$as_me:$LINENO: checking for $ac_word" >&5
25845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25846if test "${ac_cv_prog_DEREZ+set}" = set; then
25847 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25848else
25849 if test -n "$DEREZ"; then
25850 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25851else
e6cc62c6
VS
25852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25853for as_dir in $PATH
25854do
25855 IFS=$as_save_IFS
25856 test -z "$as_dir" && as_dir=.
25857 for ac_exec_ext in '' $ac_executable_extensions; do
25858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25859 ac_cv_prog_DEREZ="DeRez"
25860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25861 break 2
25862 fi
25863done
25864done
25865
64440d77
DE
25866 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25867fi
25868fi
e6cc62c6 25869DEREZ=$ac_cv_prog_DEREZ
64440d77 25870if test -n "$DEREZ"; then
e6cc62c6
VS
25871 echo "$as_me:$LINENO: result: $DEREZ" >&5
25872echo "${ECHO_T}$DEREZ" >&6
64440d77 25873else
e6cc62c6
VS
25874 echo "$as_me:$LINENO: result: no" >&5
25875echo "${ECHO_T}no" >&6
64440d77
DE
25876fi
25877
25878 # Extract the first word of "SetFile", so it can be a program name with args.
25879set dummy SetFile; ac_word=$2
e6cc62c6
VS
25880echo "$as_me:$LINENO: checking for $ac_word" >&5
25881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25882if test "${ac_cv_prog_SETFILE+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25884else
25885 if test -n "$SETFILE"; then
25886 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25887else
e6cc62c6
VS
25888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25889for as_dir in $PATH
25890do
25891 IFS=$as_save_IFS
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895 ac_cv_prog_SETFILE="SetFile"
25896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25897 break 2
25898 fi
25899done
25900done
25901
64440d77
DE
25902 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25903fi
25904fi
e6cc62c6 25905SETFILE=$ac_cv_prog_SETFILE
64440d77 25906if test -n "$SETFILE"; then
e6cc62c6
VS
25907 echo "$as_me:$LINENO: result: $SETFILE" >&5
25908echo "${ECHO_T}$SETFILE" >&6
64440d77 25909else
e6cc62c6
VS
25910 echo "$as_me:$LINENO: result: no" >&5
25911echo "${ECHO_T}no" >&6
64440d77
DE
25912fi
25913
25914 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25915 MACSETFILE="\$(SETFILE)"
9711d31e 25916 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25917else
25918 if test "$wxUSE_PM" = 1; then
36825681 25919 MACRESCOMP="emxbind -ep"
90dd450c 25920 fi
4f14bcd8 25921fi
10f2d63a 25922
8284b0c5 25923
e6cc62c6
VS
25924echo "$as_me:$LINENO: checking for mode_t" >&5
25925echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25926if test "${ac_cv_type_mode_t+set}" = set; then
25927 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25928else
e6cc62c6
VS
25929 cat >conftest.$ac_ext <<_ACEOF
25930#line $LINENO "configure"
25931/* confdefs.h. */
25932_ACEOF
25933cat confdefs.h >>conftest.$ac_ext
25934cat >>conftest.$ac_ext <<_ACEOF
25935/* end confdefs.h. */
25936$ac_includes_default
25937int
25938main ()
25939{
25940if ((mode_t *) 0)
25941 return 0;
25942if (sizeof (mode_t))
25943 return 0;
25944 ;
25945 return 0;
25946}
25947_ACEOF
25948rm -f conftest.$ac_objext
25949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25950 (eval $ac_compile) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } &&
25954 { ac_try='test -s conftest.$ac_objext'
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 ac_cv_type_mode_t=yes
a0b9e27f 25961else
e6cc62c6
VS
25962 echo "$as_me: failed program was:" >&5
25963sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25964
e6cc62c6 25965ac_cv_type_mode_t=no
a0b9e27f 25966fi
e6cc62c6 25967rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25968fi
e6cc62c6
VS
25969echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25970echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25971if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25972 :
25973else
a0b9e27f 25974
e6cc62c6
VS
25975cat >>confdefs.h <<_ACEOF
25976#define mode_t int
25977_ACEOF
8284b0c5
MB
25978
25979fi
25980
e6cc62c6
VS
25981echo "$as_me:$LINENO: checking for off_t" >&5
25982echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25983if test "${ac_cv_type_off_t+set}" = set; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25985else
e6cc62c6
VS
25986 cat >conftest.$ac_ext <<_ACEOF
25987#line $LINENO "configure"
25988/* confdefs.h. */
25989_ACEOF
25990cat confdefs.h >>conftest.$ac_ext
25991cat >>conftest.$ac_ext <<_ACEOF
25992/* end confdefs.h. */
25993$ac_includes_default
25994int
25995main ()
25996{
25997if ((off_t *) 0)
25998 return 0;
25999if (sizeof (off_t))
26000 return 0;
26001 ;
26002 return 0;
26003}
26004_ACEOF
26005rm -f conftest.$ac_objext
26006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26007 (eval $ac_compile) 2>&5
26008 ac_status=$?
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
26011 { ac_try='test -s conftest.$ac_objext'
26012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); }; }; then
26017 ac_cv_type_off_t=yes
5c6fa7d2 26018else
e6cc62c6
VS
26019 echo "$as_me: failed program was:" >&5
26020sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26021
e6cc62c6 26022ac_cv_type_off_t=no
8284b0c5 26023fi
e6cc62c6 26024rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26025fi
e6cc62c6
VS
26026echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26027echo "${ECHO_T}$ac_cv_type_off_t" >&6
26028if test $ac_cv_type_off_t = yes; then
26029 :
247f5006
VZ
26030else
26031
e6cc62c6 26032cat >>confdefs.h <<_ACEOF
90dd450c 26033#define off_t long
e6cc62c6 26034_ACEOF
10f2d63a 26035
90dd450c 26036fi
10f2d63a 26037
e6cc62c6
VS
26038echo "$as_me:$LINENO: checking for pid_t" >&5
26039echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26040if test "${ac_cv_type_pid_t+set}" = set; then
26041 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26042else
e6cc62c6
VS
26043 cat >conftest.$ac_ext <<_ACEOF
26044#line $LINENO "configure"
26045/* confdefs.h. */
26046_ACEOF
26047cat confdefs.h >>conftest.$ac_ext
26048cat >>conftest.$ac_ext <<_ACEOF
26049/* end confdefs.h. */
26050$ac_includes_default
26051int
26052main ()
26053{
26054if ((pid_t *) 0)
26055 return 0;
26056if (sizeof (pid_t))
26057 return 0;
26058 ;
26059 return 0;
26060}
26061_ACEOF
26062rm -f conftest.$ac_objext
26063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26064 (eval $ac_compile) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); } &&
26068 { ac_try='test -s conftest.$ac_objext'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26071 ac_status=$?
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
90dd450c 26074 ac_cv_type_pid_t=yes
698dcdb6 26075else
e6cc62c6
VS
26076 echo "$as_me: failed program was:" >&5
26077sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26078
e6cc62c6
VS
26079ac_cv_type_pid_t=no
26080fi
26081rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26082fi
e6cc62c6
VS
26083echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26084echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26085if test $ac_cv_type_pid_t = yes; then
26086 :
26087else
26088
26089cat >>confdefs.h <<_ACEOF
90dd450c 26090#define pid_t int
e6cc62c6 26091_ACEOF
10f2d63a 26092
7b4a847f
RR
26093fi
26094
e6cc62c6
VS
26095echo "$as_me:$LINENO: checking for size_t" >&5
26096echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26097if test "${ac_cv_type_size_t+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 26099else
e6cc62c6
VS
26100 cat >conftest.$ac_ext <<_ACEOF
26101#line $LINENO "configure"
26102/* confdefs.h. */
26103_ACEOF
26104cat confdefs.h >>conftest.$ac_ext
26105cat >>conftest.$ac_ext <<_ACEOF
26106/* end confdefs.h. */
26107$ac_includes_default
26108int
26109main ()
26110{
26111if ((size_t *) 0)
26112 return 0;
26113if (sizeof (size_t))
26114 return 0;
26115 ;
26116 return 0;
26117}
26118_ACEOF
26119rm -f conftest.$ac_objext
26120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26121 (eval $ac_compile) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
26125 { ac_try='test -s conftest.$ac_objext'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; }; then
90dd450c 26131 ac_cv_type_size_t=yes
18dbb1f6 26132else
e6cc62c6
VS
26133 echo "$as_me: failed program was:" >&5
26134sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26135
e6cc62c6 26136ac_cv_type_size_t=no
a0b9e27f 26137fi
e6cc62c6
VS
26138rm -f conftest.$ac_objext conftest.$ac_ext
26139fi
26140echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26141echo "${ECHO_T}$ac_cv_type_size_t" >&6
26142if test $ac_cv_type_size_t = yes; then
26143 :
26144else
26145
26146cat >>confdefs.h <<_ACEOF
90dd450c 26147#define size_t unsigned
e6cc62c6 26148_ACEOF
90dd450c
VZ
26149
26150fi
26151
e6cc62c6
VS
26152echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26153echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26154if test "${ac_cv_type_uid_t+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26156else
e6cc62c6
VS
26157 cat >conftest.$ac_ext <<_ACEOF
26158#line $LINENO "configure"
26159/* confdefs.h. */
26160_ACEOF
26161cat confdefs.h >>conftest.$ac_ext
26162cat >>conftest.$ac_ext <<_ACEOF
26163/* end confdefs.h. */
90dd450c 26164#include <sys/types.h>
e6cc62c6
VS
26165
26166_ACEOF
90dd450c 26167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26168 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26169 ac_cv_type_uid_t=yes
b3e8d00a 26170else
90dd450c 26171 ac_cv_type_uid_t=no
b3e8d00a 26172fi
90dd450c 26173rm -f conftest*
b3e8d00a 26174
4f14bcd8 26175fi
e6cc62c6
VS
26176echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26177echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26178if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26179
26180cat >>confdefs.h <<\_ACEOF
90dd450c 26181#define uid_t int
e6cc62c6 26182_ACEOF
247f5006 26183
e6cc62c6
VS
26184
26185cat >>confdefs.h <<\_ACEOF
90dd450c 26186#define gid_t int
e6cc62c6 26187_ACEOF
4f14bcd8 26188
b3e8d00a 26189fi
b3e8d00a 26190
8284b0c5
MB
26191
26192
e6cc62c6
VS
26193
26194ac_ext=cc
4f14bcd8 26195ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26199
26200echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26201echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26202if test "${wx_cv_size_t_is_uint+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26204else
26205
26206 cat >conftest.$ac_ext <<_ACEOF
26207#line $LINENO "configure"
26208/* confdefs.h. */
26209_ACEOF
26210cat confdefs.h >>conftest.$ac_ext
26211cat >>conftest.$ac_ext <<_ACEOF
26212/* end confdefs.h. */
90dd450c 26213#include <stddef.h>
e6cc62c6
VS
26214int
26215main ()
26216{
90dd450c
VZ
26217
26218 return 0; }
26219
26220 struct Foo { void foo(size_t); void foo(unsigned int); };
26221
26222 int bar() {
e6cc62c6
VS
26223
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228rm -f conftest.$ac_objext
26229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26230 (eval $ac_compile) 2>&5
26231 ac_status=$?
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } &&
26234 { ac_try='test -s conftest.$ac_objext'
26235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); }; }; then
90dd450c 26240 wx_cv_size_t_is_uint=no
698dcdb6 26241else
e6cc62c6
VS
26242 echo "$as_me: failed program was:" >&5
26243sed 's/^/| /' conftest.$ac_ext >&5
26244
26245wx_cv_size_t_is_uint=yes
8284b0c5 26246
247f5006 26247fi
e6cc62c6
VS
26248rm -f conftest.$ac_objext conftest.$ac_ext
26249
a0b9e27f 26250
e6cc62c6
VS
26251fi
26252echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26253echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26254
90dd450c 26255if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26256 cat >>confdefs.h <<\_ACEOF
90dd450c 26257#define wxSIZE_T_IS_UINT 1
e6cc62c6 26258_ACEOF
698dcdb6 26259
90dd450c 26260else
e6cc62c6
VS
26261 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26262echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26263if test "${wx_cv_size_t_is_ulong+set}" = set; then
26264 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26265else
e6cc62c6
VS
26266 cat >conftest.$ac_ext <<_ACEOF
26267#line $LINENO "configure"
26268/* confdefs.h. */
26269_ACEOF
26270cat confdefs.h >>conftest.$ac_ext
26271cat >>conftest.$ac_ext <<_ACEOF
26272/* end confdefs.h. */
90dd450c 26273#include <stddef.h>
e6cc62c6
VS
26274int
26275main ()
26276{
90dd450c
VZ
26277
26278 return 0; }
26279
26280 struct Foo { void foo(size_t); void foo(unsigned long); };
26281
26282 int bar() {
e6cc62c6
VS
26283
26284 ;
26285 return 0;
26286}
26287_ACEOF
26288rm -f conftest.$ac_objext
26289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290 (eval $ac_compile) 2>&5
26291 ac_status=$?
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -s conftest.$ac_objext'
26295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299 (exit $ac_status); }; }; then
90dd450c 26300 wx_cv_size_t_is_ulong=no
698dcdb6 26301else
e6cc62c6
VS
26302 echo "$as_me: failed program was:" >&5
26303sed 's/^/| /' conftest.$ac_ext >&5
26304
26305wx_cv_size_t_is_ulong=yes
26306
247f5006 26307fi
e6cc62c6 26308rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26309
e6cc62c6
VS
26310fi
26311echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26312echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26313
90dd450c 26314 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26315 cat >>confdefs.h <<\_ACEOF
90dd450c 26316#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26317_ACEOF
4f14bcd8
GD
26318
26319 fi
90dd450c 26320fi
1e487827 26321
90dd450c 26322ac_ext=c
4f14bcd8 26323ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26326ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26327
5c6fa7d2 26328
8284b0c5 26329
e6cc62c6
VS
26330echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26331echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26332if test "${wx_cv_struct_pw_gecos+set}" = set; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26334else
e6cc62c6
VS
26335
26336 cat >conftest.$ac_ext <<_ACEOF
26337#line $LINENO "configure"
26338/* confdefs.h. */
26339_ACEOF
26340cat confdefs.h >>conftest.$ac_ext
26341cat >>conftest.$ac_ext <<_ACEOF
26342/* end confdefs.h. */
90dd450c 26343#include <pwd.h>
e6cc62c6
VS
26344int
26345main ()
26346{
f6bcfd97 26347
90dd450c
VZ
26348 char *p;
26349 struct passwd *pw;
26350 p = pw->pw_gecos;
e6cc62c6
VS
26351
26352 ;
26353 return 0;
26354}
26355_ACEOF
26356rm -f conftest.$ac_objext
26357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26358 (eval $ac_compile) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } &&
26362 { ac_try='test -s conftest.$ac_objext'
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; }; then
26368
90dd450c 26369 wx_cv_struct_pw_gecos=yes
e6cc62c6 26370
10f2d63a 26371else
e6cc62c6
VS
26372 echo "$as_me: failed program was:" >&5
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
26375
90dd450c 26376 wx_cv_struct_pw_gecos=no
e6cc62c6 26377
247f5006
VZ
26378
26379fi
e6cc62c6 26380rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26381
e6cc62c6
VS
26382
26383fi
26384echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26385echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26386
90dd450c 26387if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26388 cat >>confdefs.h <<\_ACEOF
90dd450c 26389#define HAVE_PW_GECOS 1
e6cc62c6 26390_ACEOF
c521c494 26391
90dd450c 26392fi
4f14bcd8 26393
8284b0c5 26394
d29b553b 26395if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26396 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26397#define wxUSE_WCHAR_T 1
e6cc62c6 26398_ACEOF
d74f4b5a 26399
8284b0c5 26400
d74f4b5a
VZ
26401 WCSLEN_FOUND=0
26402 WCHAR_LINK=
e6cc62c6
VS
26403
26404for ac_func in wcslen
7a30264c 26405do
e6cc62c6
VS
26406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26407echo "$as_me:$LINENO: checking for $ac_func" >&5
26408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26409if eval "test \"\${$as_ac_var+set}\" = set"; then
26410 echo $ECHO_N "(cached) $ECHO_C" >&6
26411else
26412 cat >conftest.$ac_ext <<_ACEOF
26413#line $LINENO "configure"
26414/* confdefs.h. */
26415_ACEOF
26416cat confdefs.h >>conftest.$ac_ext
26417cat >>conftest.$ac_ext <<_ACEOF
26418/* end confdefs.h. */
7a30264c 26419/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26420 which can conflict with char $ac_func (); below.
26421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26422 <limits.h> exists even on freestanding compilers. */
26423#ifdef __STDC__
26424# include <limits.h>
26425#else
26426# include <assert.h>
26427#endif
4f14bcd8 26428/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26429#ifdef __cplusplus
26430extern "C"
26431{
26432#endif
4f14bcd8 26433/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26434 builtin and then its argument prototype would still apply. */
26435char $ac_func ();
7a30264c
VZ
26436/* The GNU C library defines this for functions which it implements
26437 to always fail with ENOSYS. Some functions are actually named
26438 something starting with __ and the normal name is an alias. */
26439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26440choke me
26441#else
e6cc62c6
VS
26442char (*f) () = $ac_func;
26443#endif
26444#ifdef __cplusplus
26445}
7a30264c
VZ
26446#endif
26447
e6cc62c6
VS
26448int
26449main ()
26450{
26451return f != $ac_func;
26452 ;
26453 return 0;
26454}
26455_ACEOF
26456rm -f conftest.$ac_objext conftest$ac_exeext
26457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26458 (eval $ac_link) 2>&5
26459 ac_status=$?
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } &&
26462 { ac_try='test -s conftest$ac_exeext'
26463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); }; }; then
26468 eval "$as_ac_var=yes"
26469else
26470 echo "$as_me: failed program was:" >&5
26471sed 's/^/| /' conftest.$ac_ext >&5
26472
26473eval "$as_ac_var=no"
26474fi
26475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26476fi
26477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26479if test `eval echo '${'$as_ac_var'}'` = yes; then
26480 cat >>confdefs.h <<_ACEOF
26481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26482_ACEOF
d74f4b5a 26483 WCSLEN_FOUND=1
7a30264c
VZ
26484fi
26485done
9d8deca0 26486
8284b0c5 26487
d74f4b5a 26488 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26489 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26490 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26491echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26492if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26494else
e6cc62c6 26495 ac_check_lib_save_LIBS=$LIBS
7a30264c 26496LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26497cat >conftest.$ac_ext <<_ACEOF
26498#line $LINENO "configure"
26499/* confdefs.h. */
26500_ACEOF
26501cat confdefs.h >>conftest.$ac_ext
26502cat >>conftest.$ac_ext <<_ACEOF
26503/* end confdefs.h. */
26504
4f14bcd8 26505/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26506#ifdef __cplusplus
26507extern "C"
26508#endif
4f14bcd8 26509/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26510 builtin and then its argument prototype would still apply. */
26511char wcslen ();
26512int
26513main ()
26514{
26515wcslen ();
26516 ;
26517 return 0;
26518}
26519_ACEOF
26520rm -f conftest.$ac_objext conftest$ac_exeext
26521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26522 (eval $ac_link) 2>&5
26523 ac_status=$?
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -s conftest$ac_exeext'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26532 ac_cv_lib_msvcrt_wcslen=yes
26533else
26534 echo "$as_me: failed program was:" >&5
26535sed 's/^/| /' conftest.$ac_ext >&5
26536
26537ac_cv_lib_msvcrt_wcslen=no
26538fi
26539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26540LIBS=$ac_check_lib_save_LIBS
26541fi
26542echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26543echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26544if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26545 WCHAR_OK=1
d29b553b 26546fi
698dcdb6 26547
7a30264c 26548 else
e6cc62c6
VS
26549 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26550echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26551if test "${ac_cv_lib_w_wcslen+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26553else
e6cc62c6 26554 ac_check_lib_save_LIBS=$LIBS
7a30264c 26555LIBS="-lw $LIBS"
e6cc62c6
VS
26556cat >conftest.$ac_ext <<_ACEOF
26557#line $LINENO "configure"
26558/* confdefs.h. */
26559_ACEOF
26560cat confdefs.h >>conftest.$ac_ext
26561cat >>conftest.$ac_ext <<_ACEOF
26562/* end confdefs.h. */
26563
4f14bcd8 26564/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26565#ifdef __cplusplus
26566extern "C"
26567#endif
4f14bcd8 26568/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26569 builtin and then its argument prototype would still apply. */
26570char wcslen ();
26571int
26572main ()
26573{
26574wcslen ();
26575 ;
26576 return 0;
26577}
26578_ACEOF
26579rm -f conftest.$ac_objext conftest$ac_exeext
26580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26581 (eval $ac_link) 2>&5
26582 ac_status=$?
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
26585 { ac_try='test -s conftest$ac_exeext'
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; }; then
26591 ac_cv_lib_w_wcslen=yes
26592else
26593 echo "$as_me: failed program was:" >&5
26594sed 's/^/| /' conftest.$ac_ext >&5
26595
26596ac_cv_lib_w_wcslen=no
26597fi
26598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26599LIBS=$ac_check_lib_save_LIBS
26600fi
26601echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26602echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26603if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26604
7a30264c 26605 WCHAR_LINK=" -lw"
d74f4b5a 26606 WCSLEN_FOUND=1
e6cc62c6 26607
4f14bcd8 26608fi
10f2d63a 26609
7a30264c 26610 fi
d29b553b 26611 fi
95c8801c 26612
d74f4b5a 26613 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26614 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26615#define HAVE_WCSLEN 1
e6cc62c6 26616_ACEOF
10f2d63a 26617
d74f4b5a 26618 fi
52127426 26619
e6cc62c6
VS
26620
26621for ac_func in wcsrtombs
eb4efbdc 26622do
e6cc62c6
VS
26623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624echo "$as_me:$LINENO: checking for $ac_func" >&5
26625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626if eval "test \"\${$as_ac_var+set}\" = set"; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629 cat >conftest.$ac_ext <<_ACEOF
26630#line $LINENO "configure"
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
eb4efbdc 26636/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26637 which can conflict with char $ac_func (); below.
26638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26639 <limits.h> exists even on freestanding compilers. */
26640#ifdef __STDC__
26641# include <limits.h>
26642#else
26643# include <assert.h>
26644#endif
eb4efbdc 26645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26646#ifdef __cplusplus
26647extern "C"
26648{
26649#endif
4f14bcd8 26650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26651 builtin and then its argument prototype would still apply. */
26652char $ac_func ();
10f2d63a
VZ
26653/* The GNU C library defines this for functions which it implements
26654 to always fail with ENOSYS. Some functions are actually named
26655 something starting with __ and the normal name is an alias. */
247f5006 26656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26657choke me
26658#else
e6cc62c6
VS
26659char (*f) () = $ac_func;
26660#endif
26661#ifdef __cplusplus
26662}
10f2d63a
VZ
26663#endif
26664
e6cc62c6
VS
26665int
26666main ()
26667{
26668return f != $ac_func;
26669 ;
26670 return 0;
26671}
26672_ACEOF
26673rm -f conftest.$ac_objext conftest$ac_exeext
26674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675 (eval $ac_link) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } &&
26679 { ac_try='test -s conftest$ac_exeext'
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; }; then
26685 eval "$as_ac_var=yes"
26686else
26687 echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690eval "$as_ac_var=no"
26691fi
26692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26693fi
26694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26696if test `eval echo '${'$as_ac_var'}'` = yes; then
26697 cat >>confdefs.h <<_ACEOF
26698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26699_ACEOF
270a909e 26700
4f14bcd8 26701fi
247f5006 26702done
1e487827 26703
af15babd 26704else
e6cc62c6
VS
26705 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26706echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26707fi
52127426 26708
8284b0c5 26709
e6cc62c6
VS
26710
26711ac_ext=cc
247f5006 26712ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26716
af15babd 26717
247f5006
VZ
26718
26719for ac_func in vsnprintf
26720do
e6cc62c6
VS
26721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26722echo "$as_me:$LINENO: checking for $ac_func" >&5
26723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26724if eval "test \"\${$as_ac_var+set}\" = set"; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26726else
26727 cat >conftest.$ac_ext <<_ACEOF
26728#line $LINENO "configure"
26729/* confdefs.h. */
26730_ACEOF
26731cat confdefs.h >>conftest.$ac_ext
26732cat >>conftest.$ac_ext <<_ACEOF
26733/* end confdefs.h. */
247f5006 26734/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26735 which can conflict with char $ac_func (); below.
26736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26737 <limits.h> exists even on freestanding compilers. */
26738#ifdef __STDC__
26739# include <limits.h>
26740#else
26741# include <assert.h>
26742#endif
247f5006
VZ
26743/* Override any gcc2 internal prototype to avoid an error. */
26744#ifdef __cplusplus
26745extern "C"
e6cc62c6 26746{
247f5006
VZ
26747#endif
26748/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26749 builtin and then its argument prototype would still apply. */
26750char $ac_func ();
247f5006
VZ
26751/* The GNU C library defines this for functions which it implements
26752 to always fail with ENOSYS. Some functions are actually named
26753 something starting with __ and the normal name is an alias. */
26754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26755choke me
26756#else
e6cc62c6
VS
26757char (*f) () = $ac_func;
26758#endif
26759#ifdef __cplusplus
26760}
247f5006 26761#endif
af15babd 26762
e6cc62c6
VS
26763int
26764main ()
26765{
26766return f != $ac_func;
26767 ;
26768 return 0;
26769}
26770_ACEOF
26771rm -f conftest.$ac_objext conftest$ac_exeext
26772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26773 (eval $ac_link) 2>&5
26774 ac_status=$?
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); } &&
26777 { ac_try='test -s conftest$ac_exeext'
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; }; then
26783 eval "$as_ac_var=yes"
26784else
26785 echo "$as_me: failed program was:" >&5
26786sed 's/^/| /' conftest.$ac_ext >&5
26787
26788eval "$as_ac_var=no"
26789fi
26790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26791fi
26792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26794if test `eval echo '${'$as_ac_var'}'` = yes; then
26795 cat >>confdefs.h <<_ACEOF
26796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26797_ACEOF
52127426 26798
5c6fa7d2 26799fi
247f5006 26800done
8284b0c5 26801
4f14bcd8 26802
8d90d2f2 26803if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26804 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26805echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26806if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26808else
e6cc62c6
VS
26809
26810 cat >conftest.$ac_ext <<_ACEOF
26811#line $LINENO "configure"
26812/* confdefs.h. */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h. */
8d90d2f2
VZ
26817
26818 #include <stdio.h>
26819 #include <stdarg.h>
e6cc62c6
VS
26820
26821int
26822main ()
26823{
8d90d2f2
VZ
26824
26825 char *buf;
26826 va_list ap;
26827 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26828
26829 ;
26830 return 0;
26831}
26832_ACEOF
26833rm -f conftest.$ac_objext
26834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26835 (eval $ac_compile) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
26839 { ac_try='test -s conftest.$ac_objext'
26840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841 (eval $ac_try) 2>&5
26842 ac_status=$?
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); }; }; then
8d90d2f2
VZ
26845 wx_cv_func_vsnprintf_decl=yes
26846else
e6cc62c6
VS
26847 echo "$as_me: failed program was:" >&5
26848sed 's/^/| /' conftest.$ac_ext >&5
26849
26850wx_cv_func_vsnprintf_decl=no
26851
8d90d2f2 26852fi
e6cc62c6
VS
26853rm -f conftest.$ac_objext conftest.$ac_ext
26854
8d90d2f2 26855
e6cc62c6
VS
26856fi
26857echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26858echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26859
26860 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26861 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26862#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26863_ACEOF
8d90d2f2
VZ
26864
26865 fi
26866fi
26867
247f5006 26868if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26869
26870
26871
26872for ac_func in fputwc wprintf vswprintf
d74f4b5a 26873do
e6cc62c6
VS
26874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26875echo "$as_me:$LINENO: checking for $ac_func" >&5
26876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26877if eval "test \"\${$as_ac_var+set}\" = set"; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880 cat >conftest.$ac_ext <<_ACEOF
26881#line $LINENO "configure"
26882/* confdefs.h. */
26883_ACEOF
26884cat confdefs.h >>conftest.$ac_ext
26885cat >>conftest.$ac_ext <<_ACEOF
26886/* end confdefs.h. */
d74f4b5a 26887/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26888 which can conflict with char $ac_func (); below.
26889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26890 <limits.h> exists even on freestanding compilers. */
26891#ifdef __STDC__
26892# include <limits.h>
26893#else
26894# include <assert.h>
26895#endif
d74f4b5a 26896/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26897#ifdef __cplusplus
26898extern "C"
e6cc62c6 26899{
247f5006 26900#endif
d74f4b5a 26901/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26902 builtin and then its argument prototype would still apply. */
26903char $ac_func ();
d74f4b5a
VZ
26904/* The GNU C library defines this for functions which it implements
26905 to always fail with ENOSYS. Some functions are actually named
26906 something starting with __ and the normal name is an alias. */
26907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26908choke me
26909#else
e6cc62c6
VS
26910char (*f) () = $ac_func;
26911#endif
26912#ifdef __cplusplus
26913}
d74f4b5a
VZ
26914#endif
26915
e6cc62c6
VS
26916int
26917main ()
26918{
26919return f != $ac_func;
26920 ;
26921 return 0;
26922}
26923_ACEOF
26924rm -f conftest.$ac_objext conftest$ac_exeext
26925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926 (eval $ac_link) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } &&
26930 { ac_try='test -s conftest$ac_exeext'
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; }; then
26936 eval "$as_ac_var=yes"
26937else
26938 echo "$as_me: failed program was:" >&5
26939sed 's/^/| /' conftest.$ac_ext >&5
26940
26941eval "$as_ac_var=no"
26942fi
26943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26944fi
26945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26947if test `eval echo '${'$as_ac_var'}'` = yes; then
26948 cat >>confdefs.h <<_ACEOF
26949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26950_ACEOF
d74f4b5a 26951
d74f4b5a
VZ
26952fi
26953done
26954
8d90d2f2 26955
e6cc62c6
VS
26956 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26957echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26959#line $LINENO "configure"
26960/* confdefs.h. */
26961_ACEOF
26962cat confdefs.h >>conftest.$ac_ext
26963cat >>conftest.$ac_ext <<_ACEOF
26964/* end confdefs.h. */
79668cae 26965#include <wchar.h>
e6cc62c6
VS
26966int
26967main ()
26968{
79668cae 26969&_vsnwprintf;
e6cc62c6
VS
26970 ;
26971 return 0;
26972}
26973_ACEOF
26974rm -f conftest.$ac_objext
26975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26976 (eval $ac_compile) 2>&5
26977 ac_status=$?
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -s conftest.$ac_objext'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; }; then
26986 echo "$as_me:$LINENO: result: yes" >&5
26987echo "${ECHO_T}yes" >&6
26988 cat >>confdefs.h <<\_ACEOF
79668cae 26989#define HAVE__VSNWPRINTF 1
e6cc62c6 26990_ACEOF
79668cae
MB
26991
26992else
e6cc62c6
VS
26993 echo "$as_me: failed program was:" >&5
26994sed 's/^/| /' conftest.$ac_ext >&5
26995
26996echo "$as_me:$LINENO: result: no" >&5
26997echo "${ECHO_T}no" >&6
79668cae 26998fi
e6cc62c6 26999rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
27000fi
27001
247f5006
VZ
27002ac_ext=c
27003ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
27007
27008
27009
27010
4f14bcd8 27011if test "$TOOLKIT" != "MSW"; then
af15babd 27012
8284b0c5
MB
27013
27014
e6cc62c6
VS
27015
27016ac_ext=cc
4f14bcd8 27017ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 27021
52127426 27022
e6cc62c6
VS
27023
27024
27025# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
27026if test "${with_libiconv_prefix+set}" = set; then
27027 withval="$with_libiconv_prefix"
e6cc62c6 27028
b040e242
VS
27029 for dir in `echo "$withval" | tr : ' '`; do
27030 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27031 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27032 done
b040e242 27033
e6cc62c6 27034fi;
b040e242 27035
e6cc62c6
VS
27036 echo "$as_me:$LINENO: checking for iconv" >&5
27037echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27038if test "${am_cv_func_iconv+set}" = set; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27040else
e6cc62c6 27041
b040e242
VS
27042 am_cv_func_iconv="no, consider installing GNU libiconv"
27043 am_cv_lib_iconv=no
e6cc62c6
VS
27044 cat >conftest.$ac_ext <<_ACEOF
27045#line $LINENO "configure"
27046/* confdefs.h. */
27047_ACEOF
27048cat confdefs.h >>conftest.$ac_ext
27049cat >>conftest.$ac_ext <<_ACEOF
27050/* end confdefs.h. */
b040e242 27051#include <stdlib.h>
4f14bcd8 27052#include <iconv.h>
e6cc62c6
VS
27053int
27054main ()
27055{
b040e242
VS
27056iconv_t cd = iconv_open("","");
27057 iconv(cd,NULL,NULL,NULL,NULL);
27058 iconv_close(cd);
e6cc62c6
VS
27059 ;
27060 return 0;
27061}
27062_ACEOF
27063rm -f conftest.$ac_objext conftest$ac_exeext
27064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27065 (eval $ac_link) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -s conftest$ac_exeext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
b040e242 27075 am_cv_func_iconv=yes
af15babd 27076else
e6cc62c6
VS
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
b040e242 27080fi
e6cc62c6 27081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27082 if test "$am_cv_func_iconv" != yes; then
27083 am_save_LIBS="$LIBS"
27084 LIBS="$LIBS -liconv"
e6cc62c6
VS
27085 cat >conftest.$ac_ext <<_ACEOF
27086#line $LINENO "configure"
27087/* confdefs.h. */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h. */
b040e242
VS
27092#include <stdlib.h>
27093#include <iconv.h>
e6cc62c6
VS
27094int
27095main ()
27096{
b040e242
VS
27097iconv_t cd = iconv_open("","");
27098 iconv(cd,NULL,NULL,NULL,NULL);
27099 iconv_close(cd);
e6cc62c6
VS
27100 ;
27101 return 0;
27102}
27103_ACEOF
27104rm -f conftest.$ac_objext conftest$ac_exeext
27105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27106 (eval $ac_link) 2>&5
27107 ac_status=$?
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } &&
27110 { ac_try='test -s conftest$ac_exeext'
27111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112 (eval $ac_try) 2>&5
27113 ac_status=$?
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); }; }; then
b040e242
VS
27116 am_cv_lib_iconv=yes
27117 am_cv_func_iconv=yes
27118else
e6cc62c6
VS
27119 echo "$as_me: failed program was:" >&5
27120sed 's/^/| /' conftest.$ac_ext >&5
27121
af15babd 27122fi
e6cc62c6 27123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27124 LIBS="$am_save_LIBS"
27125 fi
247f5006 27126
e6cc62c6
VS
27127fi
27128echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27129echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27130 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27131
27132cat >>confdefs.h <<\_ACEOF
b040e242 27133#define HAVE_ICONV 1
e6cc62c6 27134_ACEOF
b040e242 27135
e6cc62c6
VS
27136 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27137echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27138if test "${wx_cv_func_iconv_const+set}" = set; then
27139 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27140else
e6cc62c6
VS
27141 cat >conftest.$ac_ext <<_ACEOF
27142#line $LINENO "configure"
27143/* confdefs.h. */
27144_ACEOF
27145cat confdefs.h >>conftest.$ac_ext
27146cat >>conftest.$ac_ext <<_ACEOF
27147/* end confdefs.h. */
b040e242
VS
27148
27149#include <stdlib.h>
27150#include <iconv.h>
27151extern
27152#ifdef __cplusplus
27153"C"
27154#endif
27155#if defined(__STDC__) || defined(__cplusplus)
27156size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27157#else
27158size_t iconv();
27159#endif
af15babd 27160
e6cc62c6
VS
27161int
27162main ()
27163{
27164
27165 ;
27166 return 0;
27167}
27168_ACEOF
27169rm -f conftest.$ac_objext
27170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27171 (eval $ac_compile) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); } &&
27175 { ac_try='test -s conftest.$ac_objext'
27176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177 (eval $ac_try) 2>&5
27178 ac_status=$?
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
b7043674 27181 wx_cv_func_iconv_const="no"
b040e242 27182else
e6cc62c6
VS
27183 echo "$as_me: failed program was:" >&5
27184sed 's/^/| /' conftest.$ac_ext >&5
27185
27186wx_cv_func_iconv_const="yes"
27187
247f5006 27188fi
e6cc62c6 27189rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27190
e6cc62c6
VS
27191fi
27192echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27193echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27194
27195 iconv_const=
1c405bb5 27196 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27197 iconv_const="const"
27198 fi
27199
e6cc62c6
VS
27200
27201cat >>confdefs.h <<_ACEOF
f09359cf 27202#define ICONV_CONST $iconv_const
e6cc62c6 27203_ACEOF
b040e242
VS
27204
27205 fi
27206 LIBICONV=
27207 if test "$am_cv_lib_iconv" = yes; then
27208 LIBICONV="-liconv"
27209 fi
e6cc62c6 27210
b040e242
VS
27211
27212LIBS="$LIBICONV $LIBS"
4f14bcd8 27213ac_ext=c
4f14bcd8 27214ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27217ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27218
5c6fa7d2 27219
8284b0c5 27220if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27221
27222for ac_func in sigaction
af15babd 27223do
e6cc62c6
VS
27224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27225echo "$as_me:$LINENO: checking for $ac_func" >&5
27226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27227if eval "test \"\${$as_ac_var+set}\" = set"; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
27229else
27230 cat >conftest.$ac_ext <<_ACEOF
27231#line $LINENO "configure"
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
af15babd 27237/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27238 which can conflict with char $ac_func (); below.
27239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27240 <limits.h> exists even on freestanding compilers. */
27241#ifdef __STDC__
27242# include <limits.h>
27243#else
27244# include <assert.h>
27245#endif
af15babd 27246/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27247#ifdef __cplusplus
27248extern "C"
27249{
27250#endif
af15babd 27251/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27252 builtin and then its argument prototype would still apply. */
27253char $ac_func ();
af15babd
VZ
27254/* The GNU C library defines this for functions which it implements
27255 to always fail with ENOSYS. Some functions are actually named
27256 something starting with __ and the normal name is an alias. */
27257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27258choke me
27259#else
e6cc62c6
VS
27260char (*f) () = $ac_func;
27261#endif
27262#ifdef __cplusplus
27263}
af15babd
VZ
27264#endif
27265
e6cc62c6
VS
27266int
27267main ()
27268{
27269return f != $ac_func;
27270 ;
27271 return 0;
27272}
27273_ACEOF
27274rm -f conftest.$ac_objext conftest$ac_exeext
27275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27276 (eval $ac_link) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
27280 { ac_try='test -s conftest$ac_exeext'
27281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); }; }; then
27286 eval "$as_ac_var=yes"
27287else
27288 echo "$as_me: failed program was:" >&5
27289sed 's/^/| /' conftest.$ac_ext >&5
27290
27291eval "$as_ac_var=no"
27292fi
27293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27294fi
27295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27297if test `eval echo '${'$as_ac_var'}'` = yes; then
27298 cat >>confdefs.h <<_ACEOF
27299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27300_ACEOF
7b4a847f 27301
4f14bcd8
GD
27302fi
27303done
27304
8284b0c5 27305
4f14bcd8 27306 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27307 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27308echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27309 wxUSE_ON_FATAL_EXCEPTION=no
27310 fi
27311
27312 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27313
27314
27315 ac_ext=cc
5c6fa7d2 27316ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27320
5c6fa7d2 27321
e6cc62c6
VS
27322 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27323echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27324if test "${wx_cv_type_sa_handler+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27326else
e6cc62c6
VS
27327
27328 cat >conftest.$ac_ext <<_ACEOF
27329#line $LINENO "configure"
27330/* confdefs.h. */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>conftest.$ac_ext <<_ACEOF
27334/* end confdefs.h. */
4f14bcd8 27335#include <signal.h>
e6cc62c6
VS
27336int
27337main ()
27338{
4f14bcd8
GD
27339
27340 extern void testSigHandler(int);
27341
27342 struct sigaction sa;
27343 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27344
27345 ;
27346 return 0;
27347}
27348_ACEOF
27349rm -f conftest.$ac_objext
27350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27351 (eval $ac_compile) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
27355 { ac_try='test -s conftest.$ac_objext'
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27358 ac_status=$?
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; }; then
27361
4f14bcd8 27362 wx_cv_type_sa_handler=int
e6cc62c6 27363
af15babd 27364else
e6cc62c6
VS
27365 echo "$as_me: failed program was:" >&5
27366sed 's/^/| /' conftest.$ac_ext >&5
27367
27368
4f14bcd8 27369 wx_cv_type_sa_handler=void
e6cc62c6 27370
247f5006 27371fi
e6cc62c6 27372rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27373
e6cc62c6
VS
27374fi
27375echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27376echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27377
27378 ac_ext=c
4f14bcd8 27379ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27382ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27383
8284b0c5 27384
e6cc62c6 27385 cat >>confdefs.h <<_ACEOF
4f14bcd8 27386#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27387_ACEOF
af15babd 27388
4f14bcd8
GD
27389 fi
27390fi
af15babd 27391
e6cc62c6
VS
27392
27393
a1d22ad7 27394for ac_func in mkstemp mktemp
af15babd 27395do
e6cc62c6
VS
27396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27397echo "$as_me:$LINENO: checking for $ac_func" >&5
27398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27399if eval "test \"\${$as_ac_var+set}\" = set"; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27401else
27402 cat >conftest.$ac_ext <<_ACEOF
27403#line $LINENO "configure"
27404/* confdefs.h. */
27405_ACEOF
27406cat confdefs.h >>conftest.$ac_ext
27407cat >>conftest.$ac_ext <<_ACEOF
27408/* end confdefs.h. */
af15babd 27409/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27410 which can conflict with char $ac_func (); below.
27411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27412 <limits.h> exists even on freestanding compilers. */
27413#ifdef __STDC__
27414# include <limits.h>
27415#else
27416# include <assert.h>
27417#endif
af15babd 27418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27419#ifdef __cplusplus
27420extern "C"
27421{
27422#endif
af15babd 27423/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27424 builtin and then its argument prototype would still apply. */
27425char $ac_func ();
af15babd
VZ
27426/* The GNU C library defines this for functions which it implements
27427 to always fail with ENOSYS. Some functions are actually named
27428 something starting with __ and the normal name is an alias. */
27429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27430choke me
27431#else
e6cc62c6
VS
27432char (*f) () = $ac_func;
27433#endif
27434#ifdef __cplusplus
27435}
af15babd
VZ
27436#endif
27437
e6cc62c6
VS
27438int
27439main ()
27440{
27441return f != $ac_func;
27442 ;
27443 return 0;
27444}
27445_ACEOF
27446rm -f conftest.$ac_objext conftest$ac_exeext
27447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27448 (eval $ac_link) 2>&5
27449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } &&
27452 { ac_try='test -s conftest$ac_exeext'
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; }; then
27458 eval "$as_ac_var=yes"
27459else
27460 echo "$as_me: failed program was:" >&5
27461sed 's/^/| /' conftest.$ac_ext >&5
27462
27463eval "$as_ac_var=no"
27464fi
27465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27466fi
27467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27469if test `eval echo '${'$as_ac_var'}'` = yes; then
27470 cat >>confdefs.h <<_ACEOF
27471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27472_ACEOF
ade35f11 27473 break
ade35f11
VZ
27474fi
27475done
27476
8284b0c5 27477
e6cc62c6
VS
27478echo "$as_me:$LINENO: checking for statfs" >&5
27479echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27480if test "${wx_cv_func_statfs+set}" = set; then
27481 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27482else
e6cc62c6
VS
27483 cat >conftest.$ac_ext <<_ACEOF
27484#line $LINENO "configure"
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
4f14bcd8
GD
27490
27491 #if defined(__BSD__)
27492 #include <sys/param.h>
27493 #include <sys/mount.h>
27494 #else
27495 #include <sys/vfs.h>
27496 #endif
e6cc62c6
VS
27497
27498int
27499main ()
27500{
4f14bcd8
GD
27501
27502 long l;
27503 struct statfs fs;
27504 statfs("/", &fs);
27505 l = fs.f_bsize;
27506 l += fs.f_blocks;
27507 l += fs.f_bavail;
e6cc62c6
VS
27508
27509 ;
27510 return 0;
27511}
27512_ACEOF
27513rm -f conftest.$ac_objext
27514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27515 (eval $ac_compile) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } &&
27519 { ac_try='test -s conftest.$ac_objext'
27520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; }; then
27525
4f14bcd8 27526 wx_cv_func_statfs=yes
e6cc62c6 27527
4f14bcd8 27528else
e6cc62c6
VS
27529 echo "$as_me: failed program was:" >&5
27530sed 's/^/| /' conftest.$ac_ext >&5
27531
27532
4f14bcd8 27533 wx_cv_func_statfs=no
e6cc62c6 27534
8284b0c5 27535
247f5006 27536fi
e6cc62c6 27537rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27538
e6cc62c6
VS
27539fi
27540echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27541echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27542
27543if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27544 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27545 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27546#define HAVE_STATFS 1
e6cc62c6 27547_ACEOF
4f14bcd8
GD
27548
27549else
e6cc62c6
VS
27550 echo "$as_me:$LINENO: checking for statvfs" >&5
27551echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27552if test "${wx_cv_func_statvfs+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27554else
e6cc62c6
VS
27555 cat >conftest.$ac_ext <<_ACEOF
27556#line $LINENO "configure"
27557/* confdefs.h. */
27558_ACEOF
27559cat confdefs.h >>conftest.$ac_ext
27560cat >>conftest.$ac_ext <<_ACEOF
27561/* end confdefs.h. */
af15babd 27562
54ab82b3
VZ
27563 #include <stddef.h>
27564 #include <sys/statvfs.h>
e6cc62c6
VS
27565
27566int
27567main ()
27568{
af15babd 27569
54ab82b3 27570 statvfs("/", NULL);
e6cc62c6
VS
27571
27572 ;
27573 return 0;
27574}
27575_ACEOF
27576rm -f conftest.$ac_objext
27577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27578 (eval $ac_compile) 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -s conftest.$ac_objext'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
54ab82b3 27588 wx_cv_func_statvfs=yes
af15babd 27589else
e6cc62c6
VS
27590 echo "$as_me: failed program was:" >&5
27591sed 's/^/| /' conftest.$ac_ext >&5
27592
27593wx_cv_func_statvfs=no
27594
247f5006 27595fi
e6cc62c6 27596rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27597
e6cc62c6
VS
27598fi
27599echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27600echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27601
4f14bcd8 27602 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27603
27604
27605 ac_ext=cc
54ab82b3 27606ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27610
27611
e6cc62c6
VS
27612 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27613echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27614if test "${wx_cv_type_statvfs_t+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27616else
e6cc62c6
VS
27617 cat >conftest.$ac_ext <<_ACEOF
27618#line $LINENO "configure"
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
54ab82b3
VZ
27624
27625 #include <sys/statvfs.h>
e6cc62c6
VS
27626
27627int
27628main ()
27629{
54ab82b3
VZ
27630
27631 long l;
27632 statvfs_t fs;
27633 statvfs("/", &fs);
27634 l = fs.f_bsize;
27635 l += fs.f_blocks;
27636 l += fs.f_bavail;
e6cc62c6
VS
27637
27638 ;
27639 return 0;
27640}
27641_ACEOF
27642rm -f conftest.$ac_objext
27643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644 (eval $ac_compile) 2>&5
27645 ac_status=$?
27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } &&
27648 { ac_try='test -s conftest.$ac_objext'
27649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27650 (eval $ac_try) 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; }; then
54ab82b3
VZ
27654 wx_cv_type_statvfs_t=statvfs_t
27655else
e6cc62c6
VS
27656 echo "$as_me: failed program was:" >&5
27657sed 's/^/| /' conftest.$ac_ext >&5
27658
27659
27660 cat >conftest.$ac_ext <<_ACEOF
27661#line $LINENO "configure"
27662/* confdefs.h. */
27663_ACEOF
27664cat confdefs.h >>conftest.$ac_ext
27665cat >>conftest.$ac_ext <<_ACEOF
27666/* end confdefs.h. */
54ab82b3
VZ
27667
27668 #include <sys/statvfs.h>
e6cc62c6
VS
27669
27670int
27671main ()
27672{
54ab82b3
VZ
27673
27674 long l;
65d8ef1e 27675 struct statvfs fs;
54ab82b3
VZ
27676 statvfs("/", &fs);
27677 l = fs.f_bsize;
27678 l += fs.f_blocks;
27679 l += fs.f_bavail;
e6cc62c6
VS
27680
27681 ;
27682 return 0;
27683}
27684_ACEOF
27685rm -f conftest.$ac_objext
27686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27687 (eval $ac_compile) 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } &&
27691 { ac_try='test -s conftest.$ac_objext'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
54ab82b3
VZ
27697 wx_cv_type_statvfs_t="struct statvfs"
27698else
e6cc62c6
VS
27699 echo "$as_me: failed program was:" >&5
27700sed 's/^/| /' conftest.$ac_ext >&5
27701
27702wx_cv_type_statvfs_t="unknown"
27703
54ab82b3 27704fi
e6cc62c6
VS
27705rm -f conftest.$ac_objext conftest.$ac_ext
27706
27707
54ab82b3 27708fi
e6cc62c6 27709rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27710
e6cc62c6
VS
27711fi
27712echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27713echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27714
27715 ac_ext=c
54ab82b3 27716ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27719ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27720
27721
27722 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27723 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27724#define HAVE_STATVFS 1
e6cc62c6 27725_ACEOF
af15babd 27726
54ab82b3 27727 fi
4f14bcd8 27728 else
54ab82b3 27729 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27730 fi
27731fi
af15babd 27732
54ab82b3 27733if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27734 cat >>confdefs.h <<_ACEOF
54ab82b3 27735#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27736_ACEOF
54ab82b3
VZ
27737
27738else
e6cc62c6
VS
27739 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27740echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27741fi
27742
4f14bcd8 27743if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27744
27745
27746for ac_func in fcntl flock
af15babd 27747do
e6cc62c6
VS
27748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27749echo "$as_me:$LINENO: checking for $ac_func" >&5
27750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27751if eval "test \"\${$as_ac_var+set}\" = set"; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27753else
27754 cat >conftest.$ac_ext <<_ACEOF
27755#line $LINENO "configure"
27756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
af15babd 27761/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27762 which can conflict with char $ac_func (); below.
27763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27764 <limits.h> exists even on freestanding compilers. */
27765#ifdef __STDC__
27766# include <limits.h>
27767#else
27768# include <assert.h>
27769#endif
af15babd 27770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27771#ifdef __cplusplus
27772extern "C"
27773{
27774#endif
af15babd 27775/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27776 builtin and then its argument prototype would still apply. */
27777char $ac_func ();
af15babd
VZ
27778/* The GNU C library defines this for functions which it implements
27779 to always fail with ENOSYS. Some functions are actually named
27780 something starting with __ and the normal name is an alias. */
27781#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27782choke me
27783#else
e6cc62c6
VS
27784char (*f) () = $ac_func;
27785#endif
27786#ifdef __cplusplus
27787}
af15babd
VZ
27788#endif
27789
e6cc62c6
VS
27790int
27791main ()
27792{
27793return f != $ac_func;
27794 ;
27795 return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext conftest$ac_exeext
27799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27800 (eval $ac_link) 2>&5
27801 ac_status=$?
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } &&
27804 { ac_try='test -s conftest$ac_exeext'
27805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27806 (eval $ac_try) 2>&5
27807 ac_status=$?
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; }; then
27810 eval "$as_ac_var=yes"
27811else
27812 echo "$as_me: failed program was:" >&5
27813sed 's/^/| /' conftest.$ac_ext >&5
27814
27815eval "$as_ac_var=no"
27816fi
27817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27818fi
27819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27821if test `eval echo '${'$as_ac_var'}'` = yes; then
27822 cat >>confdefs.h <<_ACEOF
27823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27824_ACEOF
4f14bcd8 27825 break
af15babd
VZ
27826fi
27827done
27828
8284b0c5 27829
4f14bcd8 27830 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27831 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27832echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27833 wxUSE_SNGLINST_CHECKER=no
27834 fi
27835fi
af15babd 27836
e6cc62c6 27837
4f14bcd8 27838for ac_func in timegm
af15babd 27839do
e6cc62c6
VS
27840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27841echo "$as_me:$LINENO: checking for $ac_func" >&5
27842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27843if eval "test \"\${$as_ac_var+set}\" = set"; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845else
27846 cat >conftest.$ac_ext <<_ACEOF
27847#line $LINENO "configure"
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
af15babd 27853/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27854 which can conflict with char $ac_func (); below.
27855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27856 <limits.h> exists even on freestanding compilers. */
27857#ifdef __STDC__
27858# include <limits.h>
27859#else
27860# include <assert.h>
27861#endif
af15babd 27862/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27863#ifdef __cplusplus
27864extern "C"
27865{
27866#endif
af15babd 27867/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27868 builtin and then its argument prototype would still apply. */
27869char $ac_func ();
af15babd
VZ
27870/* The GNU C library defines this for functions which it implements
27871 to always fail with ENOSYS. Some functions are actually named
27872 something starting with __ and the normal name is an alias. */
247f5006
VZ
27873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27874choke me
27875#else
e6cc62c6
VS
27876char (*f) () = $ac_func;
27877#endif
27878#ifdef __cplusplus
27879}
247f5006
VZ
27880#endif
27881
e6cc62c6
VS
27882int
27883main ()
27884{
27885return f != $ac_func;
27886 ;
27887 return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892 (eval $ac_link) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } &&
27896 { ac_try='test -s conftest$ac_exeext'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 eval "$as_ac_var=yes"
27903else
27904 echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
27907eval "$as_ac_var=no"
27908fi
27909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27910fi
27911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27913if test `eval echo '${'$as_ac_var'}'` = yes; then
27914 cat >>confdefs.h <<_ACEOF
27915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27916_ACEOF
703e0a69 27917
af15babd
VZ
27918fi
27919done
27920
8284b0c5 27921
e6cc62c6
VS
27922
27923
4f14bcd8 27924for ac_func in putenv setenv
10f2d63a 27925do
e6cc62c6
VS
27926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27927echo "$as_me:$LINENO: checking for $ac_func" >&5
27928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27929if eval "test \"\${$as_ac_var+set}\" = set"; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931else
27932 cat >conftest.$ac_ext <<_ACEOF
27933#line $LINENO "configure"
27934/* confdefs.h. */
27935_ACEOF
27936cat confdefs.h >>conftest.$ac_ext
27937cat >>conftest.$ac_ext <<_ACEOF
27938/* end confdefs.h. */
af15babd 27939/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27940 which can conflict with char $ac_func (); below.
27941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27942 <limits.h> exists even on freestanding compilers. */
27943#ifdef __STDC__
27944# include <limits.h>
27945#else
27946# include <assert.h>
27947#endif
af15babd 27948/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27949#ifdef __cplusplus
27950extern "C"
27951{
27952#endif
af15babd 27953/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27954 builtin and then its argument prototype would still apply. */
27955char $ac_func ();
af15babd
VZ
27956/* The GNU C library defines this for functions which it implements
27957 to always fail with ENOSYS. Some functions are actually named
27958 something starting with __ and the normal name is an alias. */
27959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27960choke me
27961#else
e6cc62c6
VS
27962char (*f) () = $ac_func;
27963#endif
27964#ifdef __cplusplus
27965}
af15babd
VZ
27966#endif
27967
e6cc62c6
VS
27968int
27969main ()
27970{
27971return f != $ac_func;
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext conftest$ac_exeext
27977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978 (eval $ac_link) 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; }; then
27988 eval "$as_ac_var=yes"
27989else
27990 echo "$as_me: failed program was:" >&5
27991sed 's/^/| /' conftest.$ac_ext >&5
27992
27993eval "$as_ac_var=no"
27994fi
27995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27996fi
27997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27998echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27999if test `eval echo '${'$as_ac_var'}'` = yes; then
28000 cat >>confdefs.h <<_ACEOF
28001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28002_ACEOF
4f14bcd8 28003 break
af15babd 28004fi
af15babd
VZ
28005done
28006
8284b0c5 28007
4f14bcd8
GD
28008HAVE_SOME_SLEEP_FUNC=0
28009if test "$USE_BEOS" = 1; then
e6cc62c6 28010 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28011#define HAVE_SLEEP 1
e6cc62c6 28012_ACEOF
af15babd 28013
4f14bcd8 28014 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28015fi
28016
4f14bcd8 28017if test "$USE_DARWIN" = 1; then
e6cc62c6 28018 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28019#define HAVE_USLEEP 1
e6cc62c6 28020_ACEOF
10f2d63a 28021
4f14bcd8 28022 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28023fi
28024
4f14bcd8
GD
28025if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28026 POSIX4_LINK=
e6cc62c6
VS
28027
28028for ac_func in nanosleep
4f14bcd8 28029do
e6cc62c6
VS
28030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28031echo "$as_me:$LINENO: checking for $ac_func" >&5
28032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28033if eval "test \"\${$as_ac_var+set}\" = set"; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28035else
28036 cat >conftest.$ac_ext <<_ACEOF
28037#line $LINENO "configure"
28038/* confdefs.h. */
28039_ACEOF
28040cat confdefs.h >>conftest.$ac_ext
28041cat >>conftest.$ac_ext <<_ACEOF
28042/* end confdefs.h. */
4f14bcd8 28043/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28044 which can conflict with char $ac_func (); below.
28045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28046 <limits.h> exists even on freestanding compilers. */
28047#ifdef __STDC__
28048# include <limits.h>
28049#else
28050# include <assert.h>
28051#endif
10f2d63a 28052/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28053#ifdef __cplusplus
28054extern "C"
28055{
28056#endif
10f2d63a 28057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28058 builtin and then its argument prototype would still apply. */
28059char $ac_func ();
4f14bcd8
GD
28060/* The GNU C library defines this for functions which it implements
28061 to always fail with ENOSYS. Some functions are actually named
28062 something starting with __ and the normal name is an alias. */
28063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28064choke me
28065#else
e6cc62c6
VS
28066char (*f) () = $ac_func;
28067#endif
28068#ifdef __cplusplus
28069}
4f14bcd8
GD
28070#endif
28071
e6cc62c6
VS
28072int
28073main ()
28074{
28075return f != $ac_func;
28076 ;
28077 return 0;
28078}
28079_ACEOF
28080rm -f conftest.$ac_objext conftest$ac_exeext
28081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28082 (eval $ac_link) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -s conftest$ac_exeext'
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 eval "$as_ac_var=yes"
28093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
28097eval "$as_ac_var=no"
28098fi
28099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28100fi
28101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28103if test `eval echo '${'$as_ac_var'}'` = yes; then
28104 cat >>confdefs.h <<_ACEOF
28105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28106_ACEOF
28107 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28108#define HAVE_NANOSLEEP 1
e6cc62c6 28109_ACEOF
4f14bcd8 28110
10f2d63a 28111else
e6cc62c6
VS
28112
28113 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28114echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28115if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28117else
e6cc62c6 28118 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28119LIBS="-lposix4 $LIBS"
e6cc62c6
VS
28120cat >conftest.$ac_ext <<_ACEOF
28121#line $LINENO "configure"
28122/* confdefs.h. */
28123_ACEOF
28124cat confdefs.h >>conftest.$ac_ext
28125cat >>conftest.$ac_ext <<_ACEOF
28126/* end confdefs.h. */
28127
10f2d63a 28128/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28129#ifdef __cplusplus
28130extern "C"
28131#endif
10f2d63a 28132/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28133 builtin and then its argument prototype would still apply. */
28134char nanosleep ();
28135int
28136main ()
28137{
28138nanosleep ();
28139 ;
28140 return 0;
28141}
28142_ACEOF
28143rm -f conftest.$ac_objext conftest$ac_exeext
28144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145 (eval $ac_link) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } &&
28149 { ac_try='test -s conftest$ac_exeext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 ac_cv_lib_posix4_nanosleep=yes
28156else
28157 echo "$as_me: failed program was:" >&5
28158sed 's/^/| /' conftest.$ac_ext >&5
28159
28160ac_cv_lib_posix4_nanosleep=no
28161fi
28162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28163LIBS=$ac_check_lib_save_LIBS
28164fi
28165echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28166echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28167if test $ac_cv_lib_posix4_nanosleep = yes; then
28168
28169 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28170#define HAVE_NANOSLEEP 1
e6cc62c6 28171_ACEOF
4f14bcd8 28172
3d63bc3a 28173 POSIX4_LINK=" -lposix4"
e6cc62c6 28174
10f2d63a 28175else
10f2d63a 28176
e6cc62c6
VS
28177
28178for ac_func in usleep
4f14bcd8 28179do
e6cc62c6
VS
28180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28181echo "$as_me:$LINENO: checking for $ac_func" >&5
28182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28183if eval "test \"\${$as_ac_var+set}\" = set"; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28185else
28186 cat >conftest.$ac_ext <<_ACEOF
28187#line $LINENO "configure"
28188/* confdefs.h. */
28189_ACEOF
28190cat confdefs.h >>conftest.$ac_ext
28191cat >>conftest.$ac_ext <<_ACEOF
28192/* end confdefs.h. */
4f14bcd8 28193/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28194 which can conflict with char $ac_func (); below.
28195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28196 <limits.h> exists even on freestanding compilers. */
28197#ifdef __STDC__
28198# include <limits.h>
28199#else
28200# include <assert.h>
28201#endif
4f14bcd8 28202/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28203#ifdef __cplusplus
28204extern "C"
28205{
28206#endif
4f14bcd8 28207/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28208 builtin and then its argument prototype would still apply. */
28209char $ac_func ();
4f14bcd8
GD
28210/* The GNU C library defines this for functions which it implements
28211 to always fail with ENOSYS. Some functions are actually named
28212 something starting with __ and the normal name is an alias. */
28213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28214choke me
28215#else
e6cc62c6
VS
28216char (*f) () = $ac_func;
28217#endif
28218#ifdef __cplusplus
28219}
4f14bcd8
GD
28220#endif
28221
e6cc62c6
VS
28222int
28223main ()
28224{
28225return f != $ac_func;
28226 ;
28227 return 0;
28228}
28229_ACEOF
28230rm -f conftest.$ac_objext conftest$ac_exeext
28231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28232 (eval $ac_link) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
28236 { ac_try='test -s conftest$ac_exeext'
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 eval "$as_ac_var=yes"
28243else
28244 echo "$as_me: failed program was:" >&5
28245sed 's/^/| /' conftest.$ac_ext >&5
28246
28247eval "$as_ac_var=no"
28248fi
28249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28250fi
28251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28253if test `eval echo '${'$as_ac_var'}'` = yes; then
28254 cat >>confdefs.h <<_ACEOF
28255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28256_ACEOF
28257 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28258#define HAVE_USLEEP 1
e6cc62c6 28259_ACEOF
4f14bcd8 28260
698dcdb6 28261else
e6cc62c6
VS
28262 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28263echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28264
10f2d63a 28265fi
4f14bcd8 28266done
10f2d63a 28267
e6cc62c6
VS
28268
28269
6232543b 28270fi
10f2d63a 28271
e6cc62c6
VS
28272
28273
1e487827 28274fi
4f14bcd8 28275done
703e0a69 28276
10f2d63a
VZ
28277fi
28278
e6cc62c6
VS
28279
28280
4f14bcd8 28281for ac_func in uname gethostname
70846f0a 28282do
e6cc62c6
VS
28283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28284echo "$as_me:$LINENO: checking for $ac_func" >&5
28285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28286if eval "test \"\${$as_ac_var+set}\" = set"; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28288else
28289 cat >conftest.$ac_ext <<_ACEOF
28290#line $LINENO "configure"
28291/* confdefs.h. */
28292_ACEOF
28293cat confdefs.h >>conftest.$ac_ext
28294cat >>conftest.$ac_ext <<_ACEOF
28295/* end confdefs.h. */
70846f0a 28296/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28297 which can conflict with char $ac_func (); below.
28298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28299 <limits.h> exists even on freestanding compilers. */
28300#ifdef __STDC__
28301# include <limits.h>
28302#else
28303# include <assert.h>
28304#endif
70846f0a 28305/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28306#ifdef __cplusplus
28307extern "C"
28308{
28309#endif
70846f0a 28310/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28311 builtin and then its argument prototype would still apply. */
28312char $ac_func ();
70846f0a
VZ
28313/* The GNU C library defines this for functions which it implements
28314 to always fail with ENOSYS. Some functions are actually named
28315 something starting with __ and the normal name is an alias. */
28316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28317choke me
28318#else
e6cc62c6
VS
28319char (*f) () = $ac_func;
28320#endif
28321#ifdef __cplusplus
28322}
70846f0a
VZ
28323#endif
28324
e6cc62c6
VS
28325int
28326main ()
28327{
28328return f != $ac_func;
28329 ;
28330 return 0;
28331}
28332_ACEOF
28333rm -f conftest.$ac_objext conftest$ac_exeext
28334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28335 (eval $ac_link) 2>&5
28336 ac_status=$?
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
28339 { ac_try='test -s conftest$ac_exeext'
28340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; }; then
28345 eval "$as_ac_var=yes"
28346else
28347 echo "$as_me: failed program was:" >&5
28348sed 's/^/| /' conftest.$ac_ext >&5
28349
28350eval "$as_ac_var=no"
28351fi
28352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28353fi
28354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28356if test `eval echo '${'$as_ac_var'}'` = yes; then
28357 cat >>confdefs.h <<_ACEOF
28358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28359_ACEOF
4f14bcd8 28360 break
70846f0a
VZ
28361fi
28362done
28363
8284b0c5
MB
28364
28365
e6cc62c6
VS
28366
28367ac_ext=cc
4f14bcd8 28368ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28372
8284b0c5 28373
4f14bcd8
GD
28374
28375for ac_func in strtok_r
10f2d63a 28376do
e6cc62c6
VS
28377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28378echo "$as_me:$LINENO: checking for $ac_func" >&5
28379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28380if eval "test \"\${$as_ac_var+set}\" = set"; then
28381 echo $ECHO_N "(cached) $ECHO_C" >&6
28382else
28383 cat >conftest.$ac_ext <<_ACEOF
28384#line $LINENO "configure"
28385/* confdefs.h. */
28386_ACEOF
28387cat confdefs.h >>conftest.$ac_ext
28388cat >>conftest.$ac_ext <<_ACEOF
28389/* end confdefs.h. */
4f14bcd8 28390/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28391 which can conflict with char $ac_func (); below.
28392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28393 <limits.h> exists even on freestanding compilers. */
28394#ifdef __STDC__
28395# include <limits.h>
28396#else
28397# include <assert.h>
28398#endif
4f14bcd8
GD
28399/* Override any gcc2 internal prototype to avoid an error. */
28400#ifdef __cplusplus
28401extern "C"
e6cc62c6 28402{
4f14bcd8
GD
28403#endif
28404/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28405 builtin and then its argument prototype would still apply. */
28406char $ac_func ();
4f14bcd8
GD
28407/* The GNU C library defines this for functions which it implements
28408 to always fail with ENOSYS. Some functions are actually named
28409 something starting with __ and the normal name is an alias. */
28410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28411choke me
28412#else
e6cc62c6
VS
28413char (*f) () = $ac_func;
28414#endif
28415#ifdef __cplusplus
28416}
4f14bcd8
GD
28417#endif
28418
e6cc62c6
VS
28419int
28420main ()
28421{
28422return f != $ac_func;
28423 ;
28424 return 0;
28425}
28426_ACEOF
28427rm -f conftest.$ac_objext conftest$ac_exeext
28428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28429 (eval $ac_link) 2>&5
28430 ac_status=$?
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
28433 { ac_try='test -s conftest$ac_exeext'
28434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28435 (eval $ac_try) 2>&5
28436 ac_status=$?
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); }; }; then
28439 eval "$as_ac_var=yes"
28440else
28441 echo "$as_me: failed program was:" >&5
28442sed 's/^/| /' conftest.$ac_ext >&5
28443
28444eval "$as_ac_var=no"
28445fi
28446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28447fi
28448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28450if test `eval echo '${'$as_ac_var'}'` = yes; then
28451 cat >>confdefs.h <<_ACEOF
28452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28453_ACEOF
4f14bcd8 28454
10f2d63a
VZ
28455fi
28456done
28457
8284b0c5 28458
4f14bcd8 28459ac_ext=c
4f14bcd8 28460ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28464
5c6fa7d2 28465
8284b0c5 28466INET_LINK=
e6cc62c6 28467
4f14bcd8
GD
28468for ac_func in inet_addr
28469do
e6cc62c6
VS
28470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28471echo "$as_me:$LINENO: checking for $ac_func" >&5
28472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28473if eval "test \"\${$as_ac_var+set}\" = set"; then
28474 echo $ECHO_N "(cached) $ECHO_C" >&6
28475else
28476 cat >conftest.$ac_ext <<_ACEOF
28477#line $LINENO "configure"
28478/* confdefs.h. */
28479_ACEOF
28480cat confdefs.h >>conftest.$ac_ext
28481cat >>conftest.$ac_ext <<_ACEOF
28482/* end confdefs.h. */
4f14bcd8 28483/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28484 which can conflict with char $ac_func (); below.
28485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28486 <limits.h> exists even on freestanding compilers. */
28487#ifdef __STDC__
28488# include <limits.h>
28489#else
28490# include <assert.h>
28491#endif
10f2d63a 28492/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28493#ifdef __cplusplus
28494extern "C"
28495{
28496#endif
10f2d63a 28497/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28498 builtin and then its argument prototype would still apply. */
28499char $ac_func ();
4f14bcd8
GD
28500/* The GNU C library defines this for functions which it implements
28501 to always fail with ENOSYS. Some functions are actually named
28502 something starting with __ and the normal name is an alias. */
28503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28504choke me
28505#else
e6cc62c6
VS
28506char (*f) () = $ac_func;
28507#endif
28508#ifdef __cplusplus
28509}
4f14bcd8
GD
28510#endif
28511
e6cc62c6
VS
28512int
28513main ()
28514{
28515return f != $ac_func;
28516 ;
28517 return 0;
28518}
28519_ACEOF
28520rm -f conftest.$ac_objext conftest$ac_exeext
28521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28522 (eval $ac_link) 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -s conftest$ac_exeext'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 eval "$as_ac_var=yes"
28533else
28534 echo "$as_me: failed program was:" >&5
28535sed 's/^/| /' conftest.$ac_ext >&5
28536
28537eval "$as_ac_var=no"
28538fi
28539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28540fi
28541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28542echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28543if test `eval echo '${'$as_ac_var'}'` = yes; then
28544 cat >>confdefs.h <<_ACEOF
28545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28546_ACEOF
28547 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28548#define HAVE_INET_ADDR 1
e6cc62c6 28549_ACEOF
10f2d63a
VZ
28550
28551else
e6cc62c6
VS
28552
28553 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28554echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28555if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28556 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28557else
e6cc62c6 28558 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28559LIBS="-lnsl $LIBS"
e6cc62c6
VS
28560cat >conftest.$ac_ext <<_ACEOF
28561#line $LINENO "configure"
28562/* confdefs.h. */
28563_ACEOF
28564cat confdefs.h >>conftest.$ac_ext
28565cat >>conftest.$ac_ext <<_ACEOF
28566/* end confdefs.h. */
28567
10f2d63a 28568/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28569#ifdef __cplusplus
28570extern "C"
28571#endif
10f2d63a 28572/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28573 builtin and then its argument prototype would still apply. */
28574char inet_addr ();
28575int
28576main ()
28577{
28578inet_addr ();
28579 ;
28580 return 0;
28581}
28582_ACEOF
28583rm -f conftest.$ac_objext conftest$ac_exeext
28584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28585 (eval $ac_link) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
28589 { ac_try='test -s conftest$ac_exeext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595 ac_cv_lib_nsl_inet_addr=yes
28596else
28597 echo "$as_me: failed program was:" >&5
28598sed 's/^/| /' conftest.$ac_ext >&5
28599
28600ac_cv_lib_nsl_inet_addr=no
28601fi
28602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28603LIBS=$ac_check_lib_save_LIBS
28604fi
28605echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28606echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28607if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28608 INET_LINK="nsl"
10f2d63a 28609else
0e012a93
VZ
28610
28611 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28612echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28613if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28615else
e6cc62c6 28616 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28617LIBS="-lresolv $LIBS"
e6cc62c6
VS
28618cat >conftest.$ac_ext <<_ACEOF
28619#line $LINENO "configure"
28620/* confdefs.h. */
28621_ACEOF
28622cat confdefs.h >>conftest.$ac_ext
28623cat >>conftest.$ac_ext <<_ACEOF
28624/* end confdefs.h. */
28625
5c6fa7d2 28626/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28627#ifdef __cplusplus
28628extern "C"
28629#endif
5c6fa7d2 28630/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28631 builtin and then its argument prototype would still apply. */
28632char inet_addr ();
28633int
28634main ()
28635{
28636inet_addr ();
28637 ;
28638 return 0;
28639}
28640_ACEOF
28641rm -f conftest.$ac_objext conftest$ac_exeext
28642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28643 (eval $ac_link) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } &&
28647 { ac_try='test -s conftest$ac_exeext'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; }; then
28653 ac_cv_lib_resolv_inet_addr=yes
28654else
28655 echo "$as_me: failed program was:" >&5
28656sed 's/^/| /' conftest.$ac_ext >&5
28657
28658ac_cv_lib_resolv_inet_addr=no
28659fi
28660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28661LIBS=$ac_check_lib_save_LIBS
28662fi
28663echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28664echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28665if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28666 INET_LINK="resolv"
698dcdb6 28667else
0e012a93
VZ
28668
28669 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28670echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28671if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28672 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28673else
e6cc62c6 28674 ac_check_lib_save_LIBS=$LIBS
3c011993 28675LIBS="-lsocket $LIBS"
e6cc62c6
VS
28676cat >conftest.$ac_ext <<_ACEOF
28677#line $LINENO "configure"
28678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h. */
28683
3c011993 28684/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28685#ifdef __cplusplus
28686extern "C"
28687#endif
3c011993 28688/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28689 builtin and then its argument prototype would still apply. */
28690char inet_addr ();
28691int
28692main ()
28693{
28694inet_addr ();
28695 ;
28696 return 0;
28697}
28698_ACEOF
28699rm -f conftest.$ac_objext conftest$ac_exeext
28700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28701 (eval $ac_link) 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } &&
28705 { ac_try='test -s conftest$ac_exeext'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
28711 ac_cv_lib_socket_inet_addr=yes
28712else
28713 echo "$as_me: failed program was:" >&5
28714sed 's/^/| /' conftest.$ac_ext >&5
28715
28716ac_cv_lib_socket_inet_addr=no
28717fi
28718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28719LIBS=$ac_check_lib_save_LIBS
28720fi
28721echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28722echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28723if test $ac_cv_lib_socket_inet_addr = yes; then
28724 INET_LINK="socket"
4f14bcd8 28725
8284b0c5 28726fi
e6cc62c6 28727
698dcdb6 28728
0e012a93 28729
7b4a847f 28730fi
e6cc62c6
VS
28731
28732
0e012a93 28733
a0b9e27f 28734fi
579d8138 28735
e6cc62c6
VS
28736
28737
5c6fa7d2 28738fi
e6cc62c6
VS
28739done
28740
28741
28742
28743for ac_func in inet_aton
28744do
28745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28746echo "$as_me:$LINENO: checking for $ac_func" >&5
28747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28748if eval "test \"\${$as_ac_var+set}\" = set"; then
28749 echo $ECHO_N "(cached) $ECHO_C" >&6
28750else
28751 cat >conftest.$ac_ext <<_ACEOF
28752#line $LINENO "configure"
28753/* confdefs.h. */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h. */
28758/* System header to define __stub macros and hopefully few prototypes,
28759 which can conflict with char $ac_func (); below.
28760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28761 <limits.h> exists even on freestanding compilers. */
28762#ifdef __STDC__
28763# include <limits.h>
28764#else
28765# include <assert.h>
28766#endif
28767/* Override any gcc2 internal prototype to avoid an error. */
28768#ifdef __cplusplus
28769extern "C"
28770{
28771#endif
28772/* We use char because int might match the return type of a gcc2
28773 builtin and then its argument prototype would still apply. */
28774char $ac_func ();
28775/* The GNU C library defines this for functions which it implements
28776 to always fail with ENOSYS. Some functions are actually named
28777 something starting with __ and the normal name is an alias. */
28778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28779choke me
28780#else
28781char (*f) () = $ac_func;
28782#endif
28783#ifdef __cplusplus
28784}
28785#endif
28786
28787int
28788main ()
28789{
28790return f != $ac_func;
28791 ;
28792 return 0;
28793}
28794_ACEOF
28795rm -f conftest.$ac_objext conftest$ac_exeext
28796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797 (eval $ac_link) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } &&
28801 { ac_try='test -s conftest$ac_exeext'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 eval "$as_ac_var=yes"
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
28812eval "$as_ac_var=no"
28813fi
28814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28815fi
28816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28818if test `eval echo '${'$as_ac_var'}'` = yes; then
28819 cat >>confdefs.h <<_ACEOF
28820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28821_ACEOF
28822 cat >>confdefs.h <<\_ACEOF
28823#define HAVE_INET_ATON 1
28824_ACEOF
28825
28826else
28827
28828 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28829echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28830echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28831if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
28833else
28834 ac_check_lib_save_LIBS=$LIBS
28835LIBS="-l$INET_LINK $LIBS"
28836cat >conftest.$ac_ext <<_ACEOF
28837#line $LINENO "configure"
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
28843
28844/* Override any gcc2 internal prototype to avoid an error. */
28845#ifdef __cplusplus
28846extern "C"
28847#endif
28848/* We use char because int might match the return type of a gcc2
28849 builtin and then its argument prototype would still apply. */
28850char inet_aton ();
28851int
28852main ()
28853{
28854inet_aton ();
28855 ;
28856 return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext conftest$ac_exeext
28860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28861 (eval $ac_link) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); } &&
28865 { ac_try='test -s conftest$ac_exeext'
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 eval "$as_ac_Lib=yes"
28872else
28873 echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876eval "$as_ac_Lib=no"
28877fi
28878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28879LIBS=$ac_check_lib_save_LIBS
28880fi
28881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28882echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28883if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28884 cat >>confdefs.h <<\_ACEOF
28885#define HAVE_INET_ATON 1
28886_ACEOF
52127426 28887
a0b9e27f 28888fi
247f5006 28889
8284b0c5 28890
698dcdb6 28891fi
4f14bcd8
GD
28892done
28893
8284b0c5 28894
e6cc62c6
VS
28895if test "x$INET_LINK" != "x"; then
28896 cat >>confdefs.h <<\_ACEOF
28897#define HAVE_INET_ADDR 1
28898_ACEOF
28899
28900 INET_LINK=" -l$INET_LINK"
28901fi
28902
28903fi
a0b9e27f 28904
a0b9e27f 28905
4f14bcd8 28906
edd891e2
VS
28907EXTRALIBS_ESD=
28908echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28909echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28910if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28911 echo $ECHO_N "(cached) $ECHO_C" >&6
28912else
28913 ac_check_lib_save_LIBS=$LIBS
28914LIBS="-lesd $LIBS"
28915cat >conftest.$ac_ext <<_ACEOF
28916#line $LINENO "configure"
28917/* confdefs.h. */
28918_ACEOF
28919cat confdefs.h >>conftest.$ac_ext
28920cat >>conftest.$ac_ext <<_ACEOF
28921/* end confdefs.h. */
28922
28923/* Override any gcc2 internal prototype to avoid an error. */
28924#ifdef __cplusplus
28925extern "C"
28926#endif
28927/* We use char because int might match the return type of a gcc2
28928 builtin and then its argument prototype would still apply. */
28929char esd_close ();
28930int
28931main ()
28932{
28933esd_close ();
28934 ;
28935 return 0;
28936}
28937_ACEOF
28938rm -f conftest.$ac_objext conftest$ac_exeext
28939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28940 (eval $ac_link) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
28944 { ac_try='test -s conftest$ac_exeext'
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; }; then
28950 ac_cv_lib_esd_esd_close=yes
28951else
28952 echo "$as_me: failed program was:" >&5
28953sed 's/^/| /' conftest.$ac_ext >&5
28954
28955ac_cv_lib_esd_esd_close=no
28956fi
28957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28958LIBS=$ac_check_lib_save_LIBS
28959fi
28960echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28961echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28962if test $ac_cv_lib_esd_esd_close = yes; then
28963
28964
28965for ac_header in esd.h
28966do
28967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28968if eval "test \"\${$as_ac_Header+set}\" = set"; then
28969 echo "$as_me:$LINENO: checking for $ac_header" >&5
28970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28971if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28973fi
edd891e2
VS
28974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28976else
28977 # Is the header compilable?
edd891e2
VS
28978echo "$as_me:$LINENO: checking $ac_header usability" >&5
28979echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28980cat >conftest.$ac_ext <<_ACEOF
28981#line $LINENO "configure"
28982/* confdefs.h. */
28983_ACEOF
28984cat confdefs.h >>conftest.$ac_ext
28985cat >>conftest.$ac_ext <<_ACEOF
28986/* end confdefs.h. */
28987$ac_includes_default
edd891e2 28988#include <$ac_header>
e6cc62c6
VS
28989_ACEOF
28990rm -f conftest.$ac_objext
28991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992 (eval $ac_compile) 2>&5
28993 ac_status=$?
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
28996 { ac_try='test -s conftest.$ac_objext'
28997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28998 (eval $ac_try) 2>&5
28999 ac_status=$?
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); }; }; then
29002 ac_header_compiler=yes
29003else
29004 echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
29007ac_header_compiler=no
29008fi
29009rm -f conftest.$ac_objext conftest.$ac_ext
29010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29011echo "${ECHO_T}$ac_header_compiler" >&6
29012
29013# Is the header present?
edd891e2
VS
29014echo "$as_me:$LINENO: checking $ac_header presence" >&5
29015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
29016cat >conftest.$ac_ext <<_ACEOF
29017#line $LINENO "configure"
29018/* confdefs.h. */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h. */
edd891e2 29023#include <$ac_header>
e6cc62c6
VS
29024_ACEOF
29025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29027 ac_status=$?
29028 grep -v '^ *+' conftest.er1 >conftest.err
29029 rm -f conftest.er1
29030 cat conftest.err >&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); } >/dev/null; then
29033 if test -s conftest.err; then
29034 ac_cpp_err=$ac_c_preproc_warn_flag
29035 else
29036 ac_cpp_err=
29037 fi
a0b9e27f 29038else
e6cc62c6
VS
29039 ac_cpp_err=yes
29040fi
29041if test -z "$ac_cpp_err"; then
29042 ac_header_preproc=yes
29043else
29044 echo "$as_me: failed program was:" >&5
29045sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 ac_header_preproc=no
29048fi
29049rm -f conftest.err conftest.$ac_ext
29050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29051echo "${ECHO_T}$ac_header_preproc" >&6
29052
29053# So? What about this header?
29054case $ac_header_compiler:$ac_header_preproc in
29055 yes:no )
edd891e2
VS
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29060 (
29061 cat <<\_ASBOX
29062## ------------------------------------ ##
29063## Report this to bug-autoconf@gnu.org. ##
29064## ------------------------------------ ##
29065_ASBOX
29066 ) |
29067 sed "s/^/$as_me: WARNING: /" >&2
29068 ;;
29069 no:yes )
edd891e2
VS
29070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29076 (
29077 cat <<\_ASBOX
29078## ------------------------------------ ##
29079## Report this to bug-autoconf@gnu.org. ##
29080## ------------------------------------ ##
29081_ASBOX
29082 ) |
29083 sed "s/^/$as_me: WARNING: /" >&2
29084 ;;
29085esac
edd891e2
VS
29086echo "$as_me:$LINENO: checking for $ac_header" >&5
29087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29088if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29089 echo $ECHO_N "(cached) $ECHO_C" >&6
29090else
edd891e2 29091 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 29092fi
edd891e2
VS
29093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 29095
e6cc62c6 29096fi
edd891e2
VS
29097if test `eval echo '${'$as_ac_Header'}'` = yes; then
29098 cat >>confdefs.h <<_ACEOF
29099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 29100_ACEOF
e6cc62c6 29101
edd891e2 29102 EXTRALIBS_ESD="-lesd"
4f14bcd8 29103
a0b9e27f 29104fi
247f5006 29105
edd891e2 29106done
8284b0c5 29107
4f14bcd8 29108
6232543b 29109fi
10f2d63a 29110
703e0a69 29111
8284b0c5 29112
d19d1899
MB
29113echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29114echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29115cat >conftest.$ac_ext <<_ACEOF
29116#line $LINENO "configure"
29117/* confdefs.h. */
29118_ACEOF
29119cat confdefs.h >>conftest.$ac_ext
29120cat >>conftest.$ac_ext <<_ACEOF
29121/* end confdefs.h. */
29122#ifdef __linux__
29123 #include <linux/cdrom.h>
29124 #else
29125 /* For Solaris */
29126 #include <sys/cdio.h>
29127 #endif
29128
29129int
29130main ()
29131{
29132struct cdrom_tocentry entry, old_entry;
29133 ;
29134 return 0;
29135}
29136_ACEOF
29137rm -f conftest.$ac_objext
29138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29139 (eval $ac_compile) 2>&5
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } &&
29143 { ac_try='test -s conftest.$ac_objext'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 echo "$as_me:$LINENO: result: yes" >&5
29150echo "${ECHO_T}yes" >&6
29151 cat >>confdefs.h <<\_ACEOF
29152#define HAVE_KNOWN_CDROM_INTERFACE 1
29153_ACEOF
29154
29155else
29156 echo "$as_me: failed program was:" >&5
29157sed 's/^/| /' conftest.$ac_ext >&5
29158
29159echo "$as_me:$LINENO: result: no" >&5
29160echo "${ECHO_T}no" >&6
29161fi
29162rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29163
29164
29165cat >confcache <<\_ACEOF
4f14bcd8
GD
29166# This file is a shell script that caches the results of configure
29167# tests run on this system so they can be shared between configure
e6cc62c6
VS
29168# scripts and configure runs, see configure's option --config-cache.
29169# It is not useful on other systems. If it contains results you don't
29170# want to keep, you may remove or edit it.
4f14bcd8 29171#
e6cc62c6
VS
29172# config.status only pays attention to the cache file if you give it
29173# the --recheck option to rerun configure.
4f14bcd8 29174#
e6cc62c6
VS
29175# `ac_cv_env_foo' variables (set or unset) will be overridden when
29176# loading this file, other *unset* `ac_cv_foo' will be assigned the
29177# following values.
29178
29179_ACEOF
29180
4f14bcd8
GD
29181# The following way of writing the cache mishandles newlines in values,
29182# but we know of no workaround that is simple, portable, and efficient.
29183# So, don't put newlines in cache variables' values.
29184# Ultrix sh set writes to stderr and can't be redirected directly,
29185# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29186{
29187 (set) 2>&1 |
29188 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29189 *ac_space=\ *)
29190 # `set' does not quote correctly, so add quotes (double-quote
29191 # substitution turns \\\\ into \\, and sed turns \\ into \).
29192 sed -n \
29193 "s/'/'\\\\''/g;
29194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29195 ;;
29196 *)
29197 # `set' quotes correctly as required by POSIX, so do not add quotes.
29198 sed -n \
29199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29200 ;;
29201 esac;
29202} |
29203 sed '
29204 t clear
29205 : clear
29206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29207 t end
29208 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29209 : end' >>confcache
29210if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29211 if test -w $cache_file; then
e6cc62c6
VS
29212 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29213 cat confcache >$cache_file
f6bcfd97 29214 else
4f14bcd8 29215 echo "not updating unwritable cache $cache_file"
f6bcfd97 29216 fi
4f14bcd8
GD
29217fi
29218rm -f confcache
f6bcfd97 29219
8284b0c5 29220
009fead0 29221CPP_MT_FLAG=
73d617c9 29222if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 29223
e6cc62c6 29224
7274f1c7 29225 THREADS_LINK=
009fead0 29226 THREADS_CFLAGS=
7274f1c7
RL
29227
29228 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29229 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29230 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29231echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29232 wxUSE_THREADS="no"
29233 fi
4f14bcd8 29234 fi
4f14bcd8 29235
7274f1c7 29236 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29237
29238
009fead0
VZ
29239 THREAD_OPTS="-pthread"
29240 case "${host}" in
29241 *-*-solaris2* | *-*-sunos4* )
29242 if test "x$GCC" = "xyes"; then
126be6b4 29243 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29244 else
29245 THREAD_OPTS="-mt $THREAD_OPTS"
29246 fi
29247 ;;
29248 *-*-freebsd*)
29249 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29250 ;;
17234b26
MB
29251 *-*-darwin* | *-*-cygwin* )
29252 THREAD_OPTS=""
4101db81 29253 ;;
8f4a9a10 29254 *-*-aix*)
009fead0
VZ
29255 THREAD_OPTS="pthreads"
29256 ;;
4f5a7f74
VZ
29257 *-hp-hpux* )
29258 if test "x$GCC" != "xyes"; then
29259 THREAD_OPTS=""
29260 fi
89e3b3e4
VZ
29261 ;;
29262
29263 *-*-irix* )
29264 if test "x$GCC" = "xyes"; then
29265 THREAD_OPTS=""
29266 fi
29267 ;;
29268
29269 *-*-*UnixWare*)
29270 if test "x$GCC" != "xyes"; then
29271 THREAD_OPTS="-Ethread"
29272 fi
29273 ;;
009fead0 29274 esac
4f14bcd8 29275
02a1dfba 29276 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29277
009fead0
VZ
29278 THREADS_OK=no
29279 for flag in $THREAD_OPTS; do
29280 case $flag in
29281 none)
e6cc62c6
VS
29282 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29283echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29284 ;;
698dcdb6 29285
009fead0 29286 -*)
e6cc62c6
VS
29287 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29288echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29289 THREADS_CFLAGS="$flag"
29290 ;;
698dcdb6 29291
009fead0 29292 *)
e6cc62c6
VS
29293 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29294echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29295 THREADS_LINK="-l$flag"
29296 ;;
29297 esac
10f2d63a 29298
009fead0
VZ
29299 save_LIBS="$LIBS"
29300 save_CFLAGS="$CFLAGS"
29301 LIBS="$THREADS_LINK $LIBS"
04727afd 29302 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29303
e6cc62c6
VS
29304 cat >conftest.$ac_ext <<_ACEOF
29305#line $LINENO "configure"
29306/* confdefs.h. */
29307_ACEOF
29308cat confdefs.h >>conftest.$ac_ext
29309cat >>conftest.$ac_ext <<_ACEOF
29310/* end confdefs.h. */
009fead0 29311#include <pthread.h>
e6cc62c6
VS
29312int
29313main ()
29314{
009fead0 29315pthread_create(0,0,0,0);
e6cc62c6
VS
29316 ;
29317 return 0;
29318}
29319_ACEOF
29320rm -f conftest.$ac_objext conftest$ac_exeext
29321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322 (eval $ac_link) 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -s conftest$ac_exeext'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; }; then
009fead0 29332 THREADS_OK=yes
10f2d63a 29333else
e6cc62c6
VS
29334 echo "$as_me: failed program was:" >&5
29335sed 's/^/| /' conftest.$ac_ext >&5
29336
6232543b 29337fi
e6cc62c6 29338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29339
009fead0
VZ
29340 LIBS="$save_LIBS"
29341 CFLAGS="$save_CFLAGS"
d9b9876f 29342
e6cc62c6
VS
29343 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29344echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29345 if test "x$THREADS_OK" = "xyes"; then
29346 break;
29347 fi
d9b9876f 29348
009fead0
VZ
29349 THREADS_LINK=""
29350 THREADS_CFLAGS=""
29351 done
4f14bcd8 29352
009fead0
VZ
29353 if test "x$THREADS_OK" != "xyes"; then
29354 wxUSE_THREADS=no
e6cc62c6
VS
29355 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29356echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29357 else
db82f09e
VZ
29358 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29359 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29360
e6cc62c6
VS
29361 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29362echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29363 flag=no
29364 case "${host}" in
2b5f62a0
VZ
29365 *-aix*)
29366 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29367 flag="-D_THREAD_SAFE"
29368 ;;
29369 *-freebsd*)
009fead0
VZ
29370 flag="-D_THREAD_SAFE"
29371 ;;
06313569
GD
29372 *-hp-hpux* )
29373 flag="-D_REENTRANT"
4f5a7f74
VZ
29374 if test "x$GCC" != "xyes"; then
29375 flag="$flag -D_RWSTD_MULTI_THREAD"
29376 fi
06313569 29377 ;;
009fead0
VZ
29378 *solaris* | alpha*-osf*)
29379 flag="-D_REENTRANT"
29380 ;;
29381 esac
e6cc62c6
VS
29382 echo "$as_me:$LINENO: result: ${flag}" >&5
29383echo "${ECHO_T}${flag}" >&6
009fead0 29384 if test "x$flag" != xno; then
04727afd 29385 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29386 fi
29387
009fead0 29388 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29389 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29390 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29391 fi
29392 fi
4f14bcd8 29393 fi
4f14bcd8 29394
7274f1c7 29395 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29396
29397for ac_func in thr_setconcurrency
4f14bcd8 29398do
e6cc62c6
VS
29399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29400echo "$as_me:$LINENO: checking for $ac_func" >&5
29401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29402if eval "test \"\${$as_ac_var+set}\" = set"; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29404else
29405 cat >conftest.$ac_ext <<_ACEOF
29406#line $LINENO "configure"
29407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
4f14bcd8 29412/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29413 which can conflict with char $ac_func (); below.
29414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29415 <limits.h> exists even on freestanding compilers. */
29416#ifdef __STDC__
29417# include <limits.h>
29418#else
29419# include <assert.h>
29420#endif
4f14bcd8 29421/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29422#ifdef __cplusplus
29423extern "C"
29424{
29425#endif
4f14bcd8 29426/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29427 builtin and then its argument prototype would still apply. */
29428char $ac_func ();
4f14bcd8
GD
29429/* The GNU C library defines this for functions which it implements
29430 to always fail with ENOSYS. Some functions are actually named
29431 something starting with __ and the normal name is an alias. */
29432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29433choke me
29434#else
e6cc62c6
VS
29435char (*f) () = $ac_func;
29436#endif
29437#ifdef __cplusplus
29438}
4f14bcd8
GD
29439#endif
29440
e6cc62c6
VS
29441int
29442main ()
29443{
29444return f != $ac_func;
29445 ;
29446 return 0;
29447}
29448_ACEOF
29449rm -f conftest.$ac_objext conftest$ac_exeext
29450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29451 (eval $ac_link) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } &&
29455 { ac_try='test -s conftest$ac_exeext'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29458 ac_status=$?
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; }; then
29461 eval "$as_ac_var=yes"
29462else
29463 echo "$as_me: failed program was:" >&5
29464sed 's/^/| /' conftest.$ac_ext >&5
29465
29466eval "$as_ac_var=no"
29467fi
29468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29469fi
29470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29472if test `eval echo '${'$as_ac_var'}'` = yes; then
29473 cat >>confdefs.h <<_ACEOF
29474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29475_ACEOF
698dcdb6 29476
10f2d63a 29477fi
4f14bcd8 29478done
10f2d63a 29479
8284b0c5 29480
e6cc62c6
VS
29481
29482for ac_header in sched.h
4f14bcd8 29483do
e6cc62c6
VS
29484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29485if eval "test \"\${$as_ac_Header+set}\" = set"; then
29486 echo "$as_me:$LINENO: checking for $ac_header" >&5
29487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29488if eval "test \"\${$as_ac_Header+set}\" = set"; then
29489 echo $ECHO_N "(cached) $ECHO_C" >&6
29490fi
29491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29493else
29494 # Is the header compilable?
29495echo "$as_me:$LINENO: checking $ac_header usability" >&5
29496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29497cat >conftest.$ac_ext <<_ACEOF
29498#line $LINENO "configure"
29499/* confdefs.h. */
29500_ACEOF
29501cat confdefs.h >>conftest.$ac_ext
29502cat >>conftest.$ac_ext <<_ACEOF
29503/* end confdefs.h. */
29504$ac_includes_default
29505#include <$ac_header>
29506_ACEOF
29507rm -f conftest.$ac_objext
29508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29509 (eval $ac_compile) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } &&
29513 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
29520else
29521 echo "$as_me: failed program was:" >&5
29522sed 's/^/| /' conftest.$ac_ext >&5
29523
29524ac_header_compiler=no
29525fi
29526rm -f conftest.$ac_objext conftest.$ac_ext
29527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528echo "${ECHO_T}$ac_header_compiler" >&6
29529
29530# Is the header present?
29531echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533cat >conftest.$ac_ext <<_ACEOF
29534#line $LINENO "configure"
29535/* confdefs.h. */
29536_ACEOF
29537cat confdefs.h >>conftest.$ac_ext
29538cat >>conftest.$ac_ext <<_ACEOF
29539/* end confdefs.h. */
29540#include <$ac_header>
29541_ACEOF
29542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29544 ac_status=$?
29545 grep -v '^ *+' conftest.er1 >conftest.err
29546 rm -f conftest.er1
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } >/dev/null; then
29550 if test -s conftest.err; then
29551 ac_cpp_err=$ac_c_preproc_warn_flag
29552 else
29553 ac_cpp_err=
29554 fi
29555else
29556 ac_cpp_err=yes
29557fi
29558if test -z "$ac_cpp_err"; then
29559 ac_header_preproc=yes
29560else
29561 echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
29564 ac_header_preproc=no
29565fi
29566rm -f conftest.err conftest.$ac_ext
29567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568echo "${ECHO_T}$ac_header_preproc" >&6
29569
29570# So? What about this header?
29571case $ac_header_compiler:$ac_header_preproc in
29572 yes:no )
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29577 (
29578 cat <<\_ASBOX
29579## ------------------------------------ ##
29580## Report this to bug-autoconf@gnu.org. ##
29581## ------------------------------------ ##
29582_ASBOX
29583 ) |
29584 sed "s/^/$as_me: WARNING: /" >&2
29585 ;;
29586 no:yes )
29587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29593 (
29594 cat <<\_ASBOX
29595## ------------------------------------ ##
29596## Report this to bug-autoconf@gnu.org. ##
29597## ------------------------------------ ##
29598_ASBOX
29599 ) |
29600 sed "s/^/$as_me: WARNING: /" >&2
29601 ;;
29602esac
29603echo "$as_me:$LINENO: checking for $ac_header" >&5
29604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29605if eval "test \"\${$as_ac_Header+set}\" = set"; then
29606 echo $ECHO_N "(cached) $ECHO_C" >&6
29607else
29608 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29609fi
e6cc62c6
VS
29610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29612
10f2d63a 29613fi
e6cc62c6
VS
29614if test `eval echo '${'$as_ac_Header'}'` = yes; then
29615 cat >>confdefs.h <<_ACEOF
29616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29617_ACEOF
29618
f6bcfd97 29619fi
e6cc62c6 29620
4f14bcd8 29621done
f6bcfd97 29622
009fead0 29623 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29624 echo "$as_me:$LINENO: checking for sched_yield" >&5
29625echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29626if test "${ac_cv_func_sched_yield+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29628else
29629 cat >conftest.$ac_ext <<_ACEOF
29630#line $LINENO "configure"
29631/* confdefs.h. */
29632_ACEOF
29633cat confdefs.h >>conftest.$ac_ext
29634cat >>conftest.$ac_ext <<_ACEOF
29635/* end confdefs.h. */
009fead0 29636/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29637 which can conflict with char sched_yield (); below.
29638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639 <limits.h> exists even on freestanding compilers. */
29640#ifdef __STDC__
29641# include <limits.h>
29642#else
29643# include <assert.h>
29644#endif
4f14bcd8 29645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29646#ifdef __cplusplus
29647extern "C"
29648{
29649#endif
4f14bcd8 29650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29651 builtin and then its argument prototype would still apply. */
29652char sched_yield ();
009fead0
VZ
29653/* The GNU C library defines this for functions which it implements
29654 to always fail with ENOSYS. Some functions are actually named
29655 something starting with __ and the normal name is an alias. */
29656#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29657choke me
29658#else
e6cc62c6
VS
29659char (*f) () = sched_yield;
29660#endif
29661#ifdef __cplusplus
29662}
009fead0
VZ
29663#endif
29664
e6cc62c6
VS
29665int
29666main ()
29667{
29668return f != sched_yield;
29669 ;
29670 return 0;
29671}
29672_ACEOF
29673rm -f conftest.$ac_objext conftest$ac_exeext
29674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29675 (eval $ac_link) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } &&
29679 { ac_try='test -s conftest$ac_exeext'
29680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681 (eval $ac_try) 2>&5
29682 ac_status=$?
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; }; then
29685 ac_cv_func_sched_yield=yes
29686else
29687 echo "$as_me: failed program was:" >&5
29688sed 's/^/| /' conftest.$ac_ext >&5
29689
29690ac_cv_func_sched_yield=no
29691fi
29692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29693fi
29694echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29695echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29696if test $ac_cv_func_sched_yield = yes; then
29697 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29698#define HAVE_SCHED_YIELD 1
e6cc62c6 29699_ACEOF
10f2d63a 29700
4f14bcd8 29701else
009fead0 29702
e6cc62c6
VS
29703 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29704echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29705if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29706 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29707else
e6cc62c6 29708 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29709LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29710cat >conftest.$ac_ext <<_ACEOF
29711#line $LINENO "configure"
29712/* confdefs.h. */
29713_ACEOF
29714cat confdefs.h >>conftest.$ac_ext
29715cat >>conftest.$ac_ext <<_ACEOF
29716/* end confdefs.h. */
29717
4f14bcd8 29718/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29719#ifdef __cplusplus
29720extern "C"
29721#endif
4f14bcd8 29722/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29723 builtin and then its argument prototype would still apply. */
29724char sched_yield ();
29725int
29726main ()
29727{
29728sched_yield ();
29729 ;
29730 return 0;
29731}
29732_ACEOF
29733rm -f conftest.$ac_objext conftest$ac_exeext
29734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29735 (eval $ac_link) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); } &&
29739 { ac_try='test -s conftest$ac_exeext'
29740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741 (eval $ac_try) 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; }; then
29745 ac_cv_lib_posix4_sched_yield=yes
29746else
29747 echo "$as_me: failed program was:" >&5
29748sed 's/^/| /' conftest.$ac_ext >&5
29749
29750ac_cv_lib_posix4_sched_yield=no
29751fi
29752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29753LIBS=$ac_check_lib_save_LIBS
29754fi
29755echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29756echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29757if test $ac_cv_lib_posix4_sched_yield = yes; then
29758 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29759#define HAVE_SCHED_YIELD 1
e6cc62c6 29760_ACEOF
3d63bc3a 29761 POSIX4_LINK=" -lposix4"
4f14bcd8 29762else
e6cc62c6
VS
29763 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29764echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29765
54276ccf
VZ
29766fi
29767
e6cc62c6
VS
29768
29769
4f14bcd8 29770fi
698dcdb6 29771
009fead0 29772 fi
10f2d63a 29773
7274f1c7 29774 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29775 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29776echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29777if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29779else
29780 cat >conftest.$ac_ext <<_ACEOF
29781#line $LINENO "configure"
29782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
009fead0 29787/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29788 which can conflict with char pthread_attr_getschedpolicy (); below.
29789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29790 <limits.h> exists even on freestanding compilers. */
29791#ifdef __STDC__
29792# include <limits.h>
29793#else
29794# include <assert.h>
29795#endif
4f14bcd8 29796/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29797#ifdef __cplusplus
29798extern "C"
29799{
29800#endif
4f14bcd8 29801/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29802 builtin and then its argument prototype would still apply. */
29803char pthread_attr_getschedpolicy ();
009fead0
VZ
29804/* The GNU C library defines this for functions which it implements
29805 to always fail with ENOSYS. Some functions are actually named
29806 something starting with __ and the normal name is an alias. */
29807#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29808choke me
29809#else
e6cc62c6
VS
29810char (*f) () = pthread_attr_getschedpolicy;
29811#endif
29812#ifdef __cplusplus
29813}
009fead0
VZ
29814#endif
29815
e6cc62c6
VS
29816int
29817main ()
29818{
29819return f != pthread_attr_getschedpolicy;
29820 ;
29821 return 0;
29822}
29823_ACEOF
29824rm -f conftest.$ac_objext conftest$ac_exeext
29825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29826 (eval $ac_link) 2>&5
29827 ac_status=$?
29828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829 (exit $ac_status); } &&
29830 { ac_try='test -s conftest$ac_exeext'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }; then
29836 ac_cv_func_pthread_attr_getschedpolicy=yes
29837else
29838 echo "$as_me: failed program was:" >&5
29839sed 's/^/| /' conftest.$ac_ext >&5
29840
29841ac_cv_func_pthread_attr_getschedpolicy=no
29842fi
29843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29844fi
29845echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29846echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29847if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29848 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29849echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29850if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853 cat >conftest.$ac_ext <<_ACEOF
29854#line $LINENO "configure"
29855/* confdefs.h. */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h. */
a0b9e27f 29860/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29861 which can conflict with char pthread_attr_setschedparam (); below.
29862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29863 <limits.h> exists even on freestanding compilers. */
29864#ifdef __STDC__
29865# include <limits.h>
29866#else
29867# include <assert.h>
29868#endif
422107f9 29869/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29870#ifdef __cplusplus
29871extern "C"
29872{
29873#endif
422107f9 29874/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29875 builtin and then its argument prototype would still apply. */
29876char pthread_attr_setschedparam ();
009fead0
VZ
29877/* The GNU C library defines this for functions which it implements
29878 to always fail with ENOSYS. Some functions are actually named
29879 something starting with __ and the normal name is an alias. */
29880#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29881choke me
29882#else
e6cc62c6
VS
29883char (*f) () = pthread_attr_setschedparam;
29884#endif
29885#ifdef __cplusplus
29886}
009fead0
VZ
29887#endif
29888
e6cc62c6
VS
29889int
29890main ()
29891{
29892return f != pthread_attr_setschedparam;
29893 ;
29894 return 0;
29895}
29896_ACEOF
29897rm -f conftest.$ac_objext conftest$ac_exeext
29898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29899 (eval $ac_link) 2>&5
29900 ac_status=$?
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } &&
29903 { ac_try='test -s conftest$ac_exeext'
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909 ac_cv_func_pthread_attr_setschedparam=yes
29910else
29911 echo "$as_me: failed program was:" >&5
29912sed 's/^/| /' conftest.$ac_ext >&5
29913
29914ac_cv_func_pthread_attr_setschedparam=no
29915fi
29916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29917fi
29918echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29919echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29920if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29921 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29922echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29923if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
29926 cat >conftest.$ac_ext <<_ACEOF
29927#line $LINENO "configure"
29928/* confdefs.h. */
29929_ACEOF
29930cat confdefs.h >>conftest.$ac_ext
29931cat >>conftest.$ac_ext <<_ACEOF
29932/* end confdefs.h. */
ef33c576 29933/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29934 which can conflict with char sched_get_priority_max (); below.
29935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29936 <limits.h> exists even on freestanding compilers. */
29937#ifdef __STDC__
29938# include <limits.h>
29939#else
29940# include <assert.h>
29941#endif
4f14bcd8 29942/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29943#ifdef __cplusplus
29944extern "C"
29945{
29946#endif
4f14bcd8 29947/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29948 builtin and then its argument prototype would still apply. */
29949char sched_get_priority_max ();
009fead0
VZ
29950/* The GNU C library defines this for functions which it implements
29951 to always fail with ENOSYS. Some functions are actually named
29952 something starting with __ and the normal name is an alias. */
29953#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29954choke me
29955#else
e6cc62c6
VS
29956char (*f) () = sched_get_priority_max;
29957#endif
29958#ifdef __cplusplus
29959}
009fead0
VZ
29960#endif
29961
e6cc62c6
VS
29962int
29963main ()
29964{
29965return f != sched_get_priority_max;
29966 ;
29967 return 0;
29968}
29969_ACEOF
29970rm -f conftest.$ac_objext conftest$ac_exeext
29971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972 (eval $ac_link) 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
29976 { ac_try='test -s conftest$ac_exeext'
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; }; then
29982 ac_cv_func_sched_get_priority_max=yes
29983else
29984 echo "$as_me: failed program was:" >&5
29985sed 's/^/| /' conftest.$ac_ext >&5
29986
29987ac_cv_func_sched_get_priority_max=no
29988fi
29989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29990fi
29991echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29992echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29993if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29994 HAVE_PRIOR_FUNCS=1
29995else
e6cc62c6
VS
29996 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29997echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29998if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 30000else
e6cc62c6 30001 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30002LIBS="-lposix4 $LIBS"
e6cc62c6
VS
30003cat >conftest.$ac_ext <<_ACEOF
30004#line $LINENO "configure"
30005/* confdefs.h. */
30006_ACEOF
30007cat confdefs.h >>conftest.$ac_ext
30008cat >>conftest.$ac_ext <<_ACEOF
30009/* end confdefs.h. */
30010
422107f9 30011/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30012#ifdef __cplusplus
30013extern "C"
30014#endif
422107f9 30015/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30016 builtin and then its argument prototype would still apply. */
30017char sched_get_priority_max ();
30018int
30019main ()
30020{
30021sched_get_priority_max ();
30022 ;
30023 return 0;
30024}
30025_ACEOF
30026rm -f conftest.$ac_objext conftest$ac_exeext
30027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30028 (eval $ac_link) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); } &&
30032 { ac_try='test -s conftest$ac_exeext'
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; }; then
30038 ac_cv_lib_posix4_sched_get_priority_max=yes
30039else
30040 echo "$as_me: failed program was:" >&5
30041sed 's/^/| /' conftest.$ac_ext >&5
30042
30043ac_cv_lib_posix4_sched_get_priority_max=no
30044fi
30045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30046LIBS=$ac_check_lib_save_LIBS
30047fi
30048echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30049echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30050if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 30051
7274f1c7
RL
30052 HAVE_PRIOR_FUNCS=1
30053 POSIX4_LINK=" -lposix4"
e6cc62c6 30054
4f14bcd8 30055fi
463abc64 30056
e6cc62c6 30057
328a083c 30058fi
463abc64 30059
e6cc62c6 30060
7b4a847f 30061fi
579d8138 30062
e6cc62c6 30063
5c6fa7d2 30064fi
52127426 30065
8284b0c5 30066
7274f1c7 30067 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 30068 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30069#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 30070_ACEOF
463abc64 30071
7274f1c7 30072 else
e6cc62c6
VS
30073 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30074echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 30075 fi
463abc64 30076
e6cc62c6
VS
30077 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30078echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30079if test "${ac_cv_func_pthread_cancel+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083#line $LINENO "configure"
30084/* confdefs.h. */
30085_ACEOF
30086cat confdefs.h >>conftest.$ac_ext
30087cat >>conftest.$ac_ext <<_ACEOF
30088/* end confdefs.h. */
009fead0 30089/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30090 which can conflict with char pthread_cancel (); below.
30091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30092 <limits.h> exists even on freestanding compilers. */
30093#ifdef __STDC__
30094# include <limits.h>
30095#else
30096# include <assert.h>
30097#endif
422107f9 30098/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30099#ifdef __cplusplus
30100extern "C"
30101{
30102#endif
422107f9 30103/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30104 builtin and then its argument prototype would still apply. */
30105char pthread_cancel ();
009fead0
VZ
30106/* The GNU C library defines this for functions which it implements
30107 to always fail with ENOSYS. Some functions are actually named
30108 something starting with __ and the normal name is an alias. */
30109#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30110choke me
30111#else
e6cc62c6
VS
30112char (*f) () = pthread_cancel;
30113#endif
30114#ifdef __cplusplus
30115}
009fead0
VZ
30116#endif
30117
e6cc62c6
VS
30118int
30119main ()
30120{
30121return f != pthread_cancel;
30122 ;
30123 return 0;
30124}
30125_ACEOF
30126rm -f conftest.$ac_objext conftest$ac_exeext
30127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30128 (eval $ac_link) 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
30132 { ac_try='test -s conftest$ac_exeext'
30133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30134 (eval $ac_try) 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; }; then
30138 ac_cv_func_pthread_cancel=yes
30139else
30140 echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143ac_cv_func_pthread_cancel=no
30144fi
30145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30146fi
30147echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30148echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30149if test $ac_cv_func_pthread_cancel = yes; then
30150 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30151#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 30152_ACEOF
4f14bcd8 30153
698dcdb6 30154else
e6cc62c6
VS
30155 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30156echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
30157fi
30158
5c6fa7d2 30159
4f14bcd8 30160
e6cc62c6
VS
30161
30162 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30163echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30164if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30166else
e6cc62c6
VS
30167
30168 cat >conftest.$ac_ext <<_ACEOF
30169#line $LINENO "configure"
30170/* confdefs.h. */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h. */
4f14bcd8 30175#include <pthread.h>
e6cc62c6
VS
30176int
30177main ()
30178{
4f14bcd8 30179
7274f1c7
RL
30180 pthread_mutexattr_t attr;
30181 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30182
30183 ;
30184 return 0;
30185}
30186_ACEOF
30187rm -f conftest.$ac_objext
30188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30189 (eval $ac_compile) 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); } &&
30193 { ac_try='test -s conftest.$ac_objext'
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; }; then
30199
7274f1c7 30200 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30201
3fed1840 30202else
e6cc62c6
VS
30203 echo "$as_me: failed program was:" >&5
30204sed 's/^/| /' conftest.$ac_ext >&5
30205
30206
7274f1c7 30207 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30208
30209
247f5006 30210fi
e6cc62c6 30211rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30212
e6cc62c6
VS
30213fi
30214echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30215echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30216
7274f1c7 30217 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30218 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30219#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30220_ACEOF
4f14bcd8 30221
7274f1c7 30222 else
e6cc62c6
VS
30223 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30224echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30225if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30226 echo $ECHO_N "(cached) $ECHO_C" >&6
30227else
30228
30229 cat >conftest.$ac_ext <<_ACEOF
30230#line $LINENO "configure"
30231/* confdefs.h. */
30232_ACEOF
30233cat confdefs.h >>conftest.$ac_ext
30234cat >>conftest.$ac_ext <<_ACEOF
30235/* end confdefs.h. */
4f14bcd8 30236#include <pthread.h>
e6cc62c6
VS
30237int
30238main ()
30239{
4f14bcd8 30240
7274f1c7 30241 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30242
30243 ;
30244 return 0;
30245}
30246_ACEOF
30247rm -f conftest.$ac_objext
30248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30249 (eval $ac_compile) 2>&5
30250 ac_status=$?
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252 (exit $ac_status); } &&
30253 { ac_try='test -s conftest.$ac_objext'
30254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255 (eval $ac_try) 2>&5
30256 ac_status=$?
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); }; }; then
30259
7274f1c7 30260 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30261
698dcdb6 30262else
e6cc62c6
VS
30263 echo "$as_me: failed program was:" >&5
30264sed 's/^/| /' conftest.$ac_ext >&5
30265
30266
7274f1c7 30267 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30268
30269
247f5006 30270fi
e6cc62c6 30271rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30272
e6cc62c6
VS
30273fi
30274echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30275echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30276 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30277 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30278#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30279_ACEOF
3fed1840 30280
7274f1c7 30281 else
e6cc62c6
VS
30282 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30283echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30284 fi
30285 fi
7274f1c7 30286 fi
3fed1840 30287
a0b9e27f
MB
30288else
30289 if test "$wxUSE_THREADS" = "yes" ; then
30290 case "${host}" in
30291 *-*-mingw32* )
e6cc62c6
VS
30292 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30293echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30294if test "${wx_cv_cflags_mthread+set}" = set; then
30295 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30296else
e6cc62c6 30297
ca8e52b3
VZ
30298 CFLAGS_OLD="$CFLAGS"
30299 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30300 cat >conftest.$ac_ext <<_ACEOF
30301#line $LINENO "configure"
30302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
30307
30308int
30309main ()
30310{
ca8e52b3 30311
e6cc62c6
VS
30312 ;
30313 return 0;
30314}
30315_ACEOF
30316rm -f conftest.$ac_objext
30317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30318 (eval $ac_compile) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } &&
30322 { ac_try='test -s conftest.$ac_objext'
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30325 ac_status=$?
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
ca8e52b3
VZ
30328 wx_cv_cflags_mthread=yes
30329else
e6cc62c6
VS
30330 echo "$as_me: failed program was:" >&5
30331sed 's/^/| /' conftest.$ac_ext >&5
30332
30333wx_cv_cflags_mthread=no
30334
ca8e52b3 30335fi
e6cc62c6
VS
30336rm -f conftest.$ac_objext conftest.$ac_ext
30337
ca8e52b3 30338
e6cc62c6
VS
30339fi
30340echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30341echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30342
30343 if test "$wx_cv_cflags_mthread" = "yes"; then
30344 CXXFLAGS="$CXXFLAGS -mthreads"
30345 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30346 LDFLAGS="$LDFLAGS -mthreads"
30347 else
30348 CFLAGS="$CFLAGS_OLD"
30349 fi
a0b9e27f 30350 ;;
73d617c9
MB
30351 *-pc-os2*emx )
30352 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30353 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30354 LDFLAGS="$LDFLAGS -Zmt"
30355 ;;
a0b9e27f
MB
30356 esac
30357 fi
4f14bcd8
GD
30358fi
30359
30360if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30361 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30362#define wxUSE_THREADS 1
e6cc62c6 30363_ACEOF
7b6058cd 30364
8284b0c5 30365
4f14bcd8 30366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30367else
4f14bcd8 30368 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30369 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30370echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30371 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30372 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30373 echo "$as_me:$LINENO: result: yes" >&5
30374echo "${ECHO_T}yes" >&6
4f14bcd8 30375 else
e6cc62c6
VS
30376 echo "$as_me:$LINENO: result: no" >&5
30377echo "${ECHO_T}no" >&6
4f14bcd8
GD
30378 fi
30379 fi
30380fi
30381
30382if test "$WXGTK20" = 1 ; then
e6cc62c6 30383 cat >>confdefs.h <<_ACEOF
4f14bcd8 30384#define __WXGTK20__ $WXGTK20
e6cc62c6 30385_ACEOF
4f14bcd8
GD
30386
30387 WXGTK12=1
10f2d63a 30388fi
4f14bcd8
GD
30389
30390if test "$WXGTK12" = 1 ; then
e6cc62c6 30391 cat >>confdefs.h <<_ACEOF
4f14bcd8 30392#define __WXGTK12__ $WXGTK12
e6cc62c6 30393_ACEOF
4f14bcd8 30394
10f2d63a 30395fi
698dcdb6 30396
4f14bcd8 30397if test "$WXGTK127" = 1 ; then
e6cc62c6 30398 cat >>confdefs.h <<_ACEOF
4f14bcd8 30399#define __WXGTK127__ $WXGTK127
e6cc62c6 30400_ACEOF
4f14bcd8 30401
698dcdb6 30402fi
10f2d63a 30403
4f14bcd8
GD
30404WXDEBUG=
30405
30406if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30407 WXDEBUG="-g"
30408 wxUSE_OPTIMISE=no
698dcdb6 30409fi
4f14bcd8
GD
30410
30411if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30412 wxUSE_DEBUG_INFO=yes
30413 WXDEBUG="-ggdb"
10f2d63a
VZ
30414fi
30415
4f14bcd8 30416if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30417 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30418#define WXDEBUG 1
e6cc62c6 30419_ACEOF
4f14bcd8
GD
30420
30421 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30422else
4f14bcd8
GD
30423 if test "$wxUSE_GTK" = 1 ; then
30424 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30425 fi
30426fi
30427
30428if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30429 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30430#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30431_ACEOF
4f14bcd8 30432
e6cc62c6 30433 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30434#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30435_ACEOF
4f14bcd8 30436
e6cc62c6 30437 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30438#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30439_ACEOF
4f14bcd8
GD
30440
30441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30442fi
30443
30444if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30445 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30446fi
30447
30448PROFILE=
30449if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30450 PROFILE=" -pg"
10f2d63a
VZ
30451fi
30452
009fead0
VZ
30453CODE_GEN_FLAGS=
30454CODE_GEN_FLAGS_CXX=
88e30f2b 30455if test "$GCC" = "yes" ; then
4f14bcd8
GD
30456 if test "$wxUSE_NO_RTTI" = "yes" ; then
30457 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30458 fi
4f14bcd8
GD
30459 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30460 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30461 fi
30462 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30463 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30464 fi
1d1b75ac 30465
2b5f62a0 30466 case "${host}" in
1d1b75ac
VZ
30467 powerpc*-*-aix* )
30468 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30469 ;;
2b5f62a0
VZ
30470 *-hppa* )
30471 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30472 ;;
1d1b75ac 30473 esac
4f14bcd8
GD
30474fi
30475
af7b5345 30476OPTIMISE=
4f14bcd8 30477if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30478 if test "$GCC" = yes ; then
30479 OPTIMISE="-O0"
30480 fi
4f14bcd8
GD
30481else
30482 if test "$GCC" = yes ; then
30483 OPTIMISE="-O2"
af7b5345
VZ
30484
30485 case "${host}" in
4f14bcd8
GD
30486 i586-*-*|i686-*-* )
30487 OPTIMISE="${OPTIMISE} "
30488 ;;
30489 esac
30490 else
30491 OPTIMISE="-O"
30492 fi
30493fi
30494
8d90d2f2 30495
65d8ef1e 30496if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30497 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30498#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30499_ACEOF
4f14bcd8 30500
8d90d2f2
VZ
30501
30502 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30503fi
30504
65d8ef1e 30505if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30506 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30507#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30508_ACEOF
65d8ef1e
VS
30509
30510fi
30511
8284b0c5 30512
10f2d63a 30513if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30514 cat >>confdefs.h <<\_ACEOF
10f2d63a 30515#define wxUSE_GUI 1
e6cc62c6 30516_ACEOF
10f2d63a 30517
8284b0c5 30518
10f2d63a 30519 else
e6cc62c6 30520 cat >>confdefs.h <<\_ACEOF
10f2d63a 30521#define wxUSE_NOGUI 1
e6cc62c6 30522_ACEOF
10f2d63a
VZ
30523
30524fi
30525
8284b0c5 30526
10f2d63a 30527if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30528 cat >>confdefs.h <<\_ACEOF
10f2d63a 30529#define wxUSE_UNIX 1
e6cc62c6 30530_ACEOF
10f2d63a
VZ
30531
30532fi
30533
8284b0c5 30534
df5168c4
MB
30535if test "$wxUSE_STL" = "yes"; then
30536 cat >>confdefs.h <<\_ACEOF
30537#define wxUSE_STL 1
30538_ACEOF
30539
30540fi
30541
10f2d63a 30542if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30543 cat >>confdefs.h <<\_ACEOF
10f2d63a 30544#define wxUSE_APPLE_IEEE 1
e6cc62c6 30545_ACEOF
10f2d63a
VZ
30546
30547fi
30548
1e6feb95 30549if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30550 cat >>confdefs.h <<\_ACEOF
1e6feb95 30551#define wxUSE_TIMER 1
e6cc62c6 30552_ACEOF
1e6feb95
VZ
30553
30554fi
30555
10f2d63a 30556if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30557 cat >>confdefs.h <<\_ACEOF
10f2d63a 30558#define wxUSE_WAVE 1
e6cc62c6 30559_ACEOF
10f2d63a
VZ
30560
30561fi
30562
1e6feb95 30563if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30564 cat >>confdefs.h <<\_ACEOF
1e6feb95 30565#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30566_ACEOF
1e6feb95
VZ
30567
30568fi
30569
30570if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30571 cat >>confdefs.h <<\_ACEOF
1e6feb95 30572#define wxUSE_STOPWATCH 1
e6cc62c6 30573_ACEOF
1e6feb95
VZ
30574
30575fi
30576
30577if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30578 cat >>confdefs.h <<\_ACEOF
1e6feb95 30579#define wxUSE_DATETIME 1
e6cc62c6 30580_ACEOF
1e6feb95
VZ
30581
30582fi
30583
10f2d63a 30584if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30585 cat >>confdefs.h <<\_ACEOF
10f2d63a 30586#define wxUSE_FILE 1
e6cc62c6 30587_ACEOF
10f2d63a
VZ
30588
30589fi
30590
1e6feb95 30591if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30592 cat >>confdefs.h <<\_ACEOF
1e6feb95 30593#define wxUSE_FFILE 1
e6cc62c6 30594_ACEOF
1e6feb95
VZ
30595
30596fi
30597
24528b0c 30598if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30599 cat >>confdefs.h <<\_ACEOF
24528b0c 30600#define wxUSE_FILESYSTEM 1
e6cc62c6 30601_ACEOF
24528b0c
VS
30602
30603fi
30604
10f2d63a 30605if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30606 cat >>confdefs.h <<\_ACEOF
10f2d63a 30607#define wxUSE_FS_ZIP 1
e6cc62c6 30608_ACEOF
10f2d63a
VZ
30609
30610fi
30611
30612if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30613 cat >>confdefs.h <<\_ACEOF
10f2d63a 30614#define wxUSE_ZIPSTREAM 1
e6cc62c6 30615_ACEOF
10f2d63a
VZ
30616
30617fi
30618
7015ef3a
VZ
30619if test "$wxUSE_GZSTREAM" = "yes"; then
30620 cat >>confdefs.h <<\_ACEOF
30621#define wxUSE_GZSTREAM 1
30622_ACEOF
30623
30624fi
30625
eb4efbdc 30626if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30627 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30628#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30629_ACEOF
eb4efbdc
VZ
30630
30631fi
30632
4f3c5f06 30633if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30634 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30635#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30636_ACEOF
4f3c5f06
VZ
30637
30638fi
30639
10f2d63a 30640if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30641 cat >>confdefs.h <<\_ACEOF
10f2d63a 30642#define wxUSE_BUSYINFO 1
e6cc62c6 30643_ACEOF
10f2d63a
VZ
30644
30645fi
30646
30647if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30648 cat >>confdefs.h <<\_ACEOF
10f2d63a 30649#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30650_ACEOF
10f2d63a
VZ
30651
30652fi
30653
a3a584a7 30654if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30655 cat >>confdefs.h <<\_ACEOF
a3a584a7 30656#define wxUSE_TEXTBUFFER 1
e6cc62c6 30657_ACEOF
a3a584a7
VZ
30658
30659fi
30660
10f2d63a 30661if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30662 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30663 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30664echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30665 else
e6cc62c6 30666 cat >>confdefs.h <<\_ACEOF
10f2d63a 30667#define wxUSE_TEXTFILE 1
e6cc62c6 30668_ACEOF
10f2d63a
VZ
30669
30670 fi
30671fi
30672
30673if test "$wxUSE_CONFIG" = "yes" ; then
30674 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30675 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30676echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30677 else
e6cc62c6 30678 cat >>confdefs.h <<\_ACEOF
10f2d63a 30679#define wxUSE_CONFIG 1
e6cc62c6 30680_ACEOF
10f2d63a
VZ
30681
30682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30683 fi
30684fi
30685
30686if test "$wxUSE_INTL" = "yes" ; then
30687 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30688 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30689echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30690 else
e6cc62c6 30691 cat >>confdefs.h <<\_ACEOF
10f2d63a 30692#define wxUSE_INTL 1
e6cc62c6 30693_ACEOF
10f2d63a
VZ
30694
30695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30696 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30697 fi
30698fi
30699
30700if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30701 cat >>confdefs.h <<\_ACEOF
10f2d63a 30702#define wxUSE_LOG 1
e6cc62c6 30703_ACEOF
10f2d63a 30704
8284b0c5 30705
d73be714 30706 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30707 cat >>confdefs.h <<\_ACEOF
d73be714 30708#define wxUSE_LOGGUI 1
e6cc62c6 30709_ACEOF
d73be714
VZ
30710
30711 fi
30712
30713 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30714 cat >>confdefs.h <<\_ACEOF
d73be714 30715#define wxUSE_LOGWINDOW 1
e6cc62c6 30716_ACEOF
69d27ff7
MB
30717
30718 fi
30719
30720 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30721 cat >>confdefs.h <<\_ACEOF
69d27ff7 30722#define wxUSE_LOG_DIALOG 1
e6cc62c6 30723_ACEOF
d73be714
VZ
30724
30725 fi
10f2d63a
VZ
30726fi
30727
30728if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30729 cat >>confdefs.h <<\_ACEOF
10f2d63a 30730#define wxUSE_LONGLONG 1
e6cc62c6 30731_ACEOF
10f2d63a
VZ
30732
30733fi
30734
e8f65ba6 30735if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30736 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30737#define wxUSE_GEOMETRY 1
e6cc62c6 30738_ACEOF
e8f65ba6
RR
30739
30740fi
30741
10f2d63a 30742if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30743 cat >>confdefs.h <<\_ACEOF
10f2d63a 30744#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30745_ACEOF
10f2d63a 30746
70f7a477 30747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30748fi
30749
30750if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30751 cat >>confdefs.h <<\_ACEOF
10f2d63a 30752#define wxUSE_STREAMS 1
e6cc62c6 30753_ACEOF
10f2d63a
VZ
30754
30755fi
30756
5c6fa7d2 30757
8284b0c5 30758if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30759
30760for ac_func in strptime
83307f33 30761do
e6cc62c6
VS
30762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30763echo "$as_me:$LINENO: checking for $ac_func" >&5
30764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30765if eval "test \"\${$as_ac_var+set}\" = set"; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30767else
30768 cat >conftest.$ac_ext <<_ACEOF
30769#line $LINENO "configure"
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
83307f33 30775/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30776 which can conflict with char $ac_func (); below.
30777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30778 <limits.h> exists even on freestanding compilers. */
30779#ifdef __STDC__
30780# include <limits.h>
30781#else
30782# include <assert.h>
30783#endif
83307f33 30784/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30785#ifdef __cplusplus
30786extern "C"
30787{
30788#endif
83307f33 30789/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30790 builtin and then its argument prototype would still apply. */
30791char $ac_func ();
83307f33
VZ
30792/* The GNU C library defines this for functions which it implements
30793 to always fail with ENOSYS. Some functions are actually named
30794 something starting with __ and the normal name is an alias. */
30795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30796choke me
30797#else
e6cc62c6
VS
30798char (*f) () = $ac_func;
30799#endif
30800#ifdef __cplusplus
30801}
83307f33
VZ
30802#endif
30803
e6cc62c6
VS
30804int
30805main ()
30806{
30807return f != $ac_func;
30808 ;
30809 return 0;
30810}
30811_ACEOF
30812rm -f conftest.$ac_objext conftest$ac_exeext
30813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30814 (eval $ac_link) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
30818 { ac_try='test -s conftest$ac_exeext'
30819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30820 (eval $ac_try) 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; }; then
30824 eval "$as_ac_var=yes"
30825else
30826 echo "$as_me: failed program was:" >&5
30827sed 's/^/| /' conftest.$ac_ext >&5
30828
30829eval "$as_ac_var=no"
30830fi
30831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30832fi
30833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30835if test `eval echo '${'$as_ac_var'}'` = yes; then
30836 cat >>confdefs.h <<_ACEOF
30837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30838_ACEOF
83307f33 30839
83307f33
VZ
30840fi
30841done
30842
5c6fa7d2 30843
e6cc62c6
VS
30844 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30845echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30846if test "${wx_cv_var_timezone+set}" = set; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30848else
e6cc62c6
VS
30849
30850 cat >conftest.$ac_ext <<_ACEOF
30851#line $LINENO "configure"
30852/* confdefs.h. */
30853_ACEOF
30854cat confdefs.h >>conftest.$ac_ext
30855cat >>conftest.$ac_ext <<_ACEOF
30856/* end confdefs.h. */
360d6699 30857
b4085ce6 30858 #include <time.h>
e6cc62c6
VS
30859
30860int
30861main ()
30862{
360d6699
VZ
30863
30864 int tz;
4f11a343 30865 tz = timezone;
e6cc62c6
VS
30866
30867 ;
30868 return 0;
30869}
30870_ACEOF
30871rm -f conftest.$ac_objext
30872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30873 (eval $ac_compile) 2>&5
30874 ac_status=$?
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); } &&
30877 { ac_try='test -s conftest.$ac_objext'
30878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30879 (eval $ac_try) 2>&5
30880 ac_status=$?
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); }; }; then
30883
4f11a343 30884 wx_cv_var_timezone=timezone
e6cc62c6 30885
360d6699 30886else
e6cc62c6
VS
30887 echo "$as_me: failed program was:" >&5
30888sed 's/^/| /' conftest.$ac_ext >&5
30889
30890
30891 cat >conftest.$ac_ext <<_ACEOF
30892#line $LINENO "configure"
30893/* confdefs.h. */
30894_ACEOF
30895cat confdefs.h >>conftest.$ac_ext
30896cat >>conftest.$ac_ext <<_ACEOF
30897/* end confdefs.h. */
360d6699 30898
b4085ce6 30899 #include <time.h>
e6cc62c6
VS
30900
30901int
30902main ()
30903{
360d6699
VZ
30904
30905 int tz;
30906 tz = _timezone;
e6cc62c6
VS
30907
30908 ;
30909 return 0;
30910}
30911_ACEOF
30912rm -f conftest.$ac_objext
30913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30914 (eval $ac_compile) 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); } &&
30918 { ac_try='test -s conftest.$ac_objext'
30919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30920 (eval $ac_try) 2>&5
30921 ac_status=$?
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; }; then
30924
360d6699 30925 wx_cv_var_timezone=_timezone
e6cc62c6 30926
5357c8e8 30927else
e6cc62c6
VS
30928 echo "$as_me: failed program was:" >&5
30929sed 's/^/| /' conftest.$ac_ext >&5
30930
30931
30932 cat >conftest.$ac_ext <<_ACEOF
30933#line $LINENO "configure"
30934/* confdefs.h. */
30935_ACEOF
30936cat confdefs.h >>conftest.$ac_ext
30937cat >>conftest.$ac_ext <<_ACEOF
30938/* end confdefs.h. */
5357c8e8 30939
b4085ce6 30940 #include <time.h>
e6cc62c6
VS
30941
30942int
30943main ()
30944{
5357c8e8
VZ
30945
30946 int tz;
4f11a343 30947 tz = __timezone;
e6cc62c6
VS
30948
30949 ;
30950 return 0;
30951}
30952_ACEOF
30953rm -f conftest.$ac_objext
30954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30955 (eval $ac_compile) 2>&5
30956 ac_status=$?
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } &&
30959 { ac_try='test -s conftest.$ac_objext'
30960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961 (eval $ac_try) 2>&5
30962 ac_status=$?
30963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964 (exit $ac_status); }; }; then
30965
4f11a343 30966 wx_cv_var_timezone=__timezone
e6cc62c6 30967
360d6699 30968else
e6cc62c6
VS
30969 echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
30972
f9bc1684 30973 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30974 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30975echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30976 fi
e6cc62c6
VS
30977
30978
7b4a847f 30979fi
e6cc62c6
VS
30980rm -f conftest.$ac_objext conftest.$ac_ext
30981
30982
5c6fa7d2 30983fi
e6cc62c6
VS
30984rm -f conftest.$ac_objext conftest.$ac_ext
30985
30986
247f5006 30987fi
e6cc62c6 30988rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30989
e6cc62c6
VS
30990
30991fi
30992echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30993echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30994
f9bc1684 30995 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30996 cat >>confdefs.h <<_ACEOF
360d6699 30997#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30998_ACEOF
360d6699 30999
f9bc1684 31000 fi
698dcdb6 31001
e6cc62c6
VS
31002
31003for ac_func in localtime
afc31813 31004do
e6cc62c6
VS
31005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006echo "$as_me:$LINENO: checking for $ac_func" >&5
31007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31008if eval "test \"\${$as_ac_var+set}\" = set"; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
31011 cat >conftest.$ac_ext <<_ACEOF
31012#line $LINENO "configure"
31013/* confdefs.h. */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h. */
afc31813 31018/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31019 which can conflict with char $ac_func (); below.
31020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31021 <limits.h> exists even on freestanding compilers. */
31022#ifdef __STDC__
31023# include <limits.h>
31024#else
31025# include <assert.h>
31026#endif
afc31813 31027/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31028#ifdef __cplusplus
31029extern "C"
31030{
31031#endif
afc31813 31032/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31033 builtin and then its argument prototype would still apply. */
31034char $ac_func ();
afc31813
VZ
31035/* The GNU C library defines this for functions which it implements
31036 to always fail with ENOSYS. Some functions are actually named
31037 something starting with __ and the normal name is an alias. */
31038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31039choke me
31040#else
e6cc62c6
VS
31041char (*f) () = $ac_func;
31042#endif
31043#ifdef __cplusplus
31044}
afc31813
VZ
31045#endif
31046
e6cc62c6
VS
31047int
31048main ()
31049{
31050return f != $ac_func;
31051 ;
31052 return 0;
31053}
31054_ACEOF
31055rm -f conftest.$ac_objext conftest$ac_exeext
31056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31057 (eval $ac_link) 2>&5
31058 ac_status=$?
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
31061 { ac_try='test -s conftest$ac_exeext'
31062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31063 (eval $ac_try) 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; }; then
31067 eval "$as_ac_var=yes"
31068else
31069 echo "$as_me: failed program was:" >&5
31070sed 's/^/| /' conftest.$ac_ext >&5
31071
31072eval "$as_ac_var=no"
31073fi
31074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31075fi
31076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31078if test `eval echo '${'$as_ac_var'}'` = yes; then
31079 cat >>confdefs.h <<_ACEOF
31080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31081_ACEOF
afc31813 31082
afc31813
VZ
31083fi
31084done
31085
5c6fa7d2 31086
8284b0c5 31087 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
31088 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
31089echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
31090if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
31091 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31092else
e6cc62c6
VS
31093
31094 cat >conftest.$ac_ext <<_ACEOF
31095#line $LINENO "configure"
31096/* confdefs.h. */
31097_ACEOF
31098cat confdefs.h >>conftest.$ac_ext
31099cat >>conftest.$ac_ext <<_ACEOF
31100/* end confdefs.h. */
0470b1e6 31101
b4085ce6 31102 #include <time.h>
e6cc62c6
VS
31103
31104int
31105main ()
31106{
0470b1e6
VZ
31107
31108 struct tm tm;
31109 tm.tm_gmtoff++;
e6cc62c6
VS
31110
31111 ;
31112 return 0;
31113}
31114_ACEOF
31115rm -f conftest.$ac_objext
31116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31117 (eval $ac_compile) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); } &&
31121 { ac_try='test -s conftest.$ac_objext'
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31124 ac_status=$?
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31127
f03a98d8 31128 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 31129
0470b1e6 31130else
e6cc62c6
VS
31131 echo "$as_me: failed program was:" >&5
31132sed 's/^/| /' conftest.$ac_ext >&5
31133
31134wx_cv_struct_tm_has_gmtoff=no
31135
247f5006 31136fi
e6cc62c6 31137rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31138
e6cc62c6
VS
31139fi
31140echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
31141echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
31142 fi
31143
31144 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 31145 cat >>confdefs.h <<\_ACEOF
6232543b 31146#define WX_GMTOFF_IN_TM 1
e6cc62c6 31147_ACEOF
0470b1e6 31148
3fcdd07b
VZ
31149 fi
31150
e6cc62c6
VS
31151
31152
31153for ac_func in gettimeofday ftime
3fcdd07b 31154do
e6cc62c6
VS
31155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31156echo "$as_me:$LINENO: checking for $ac_func" >&5
31157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31158if eval "test \"\${$as_ac_var+set}\" = set"; then
31159 echo $ECHO_N "(cached) $ECHO_C" >&6
31160else
31161 cat >conftest.$ac_ext <<_ACEOF
31162#line $LINENO "configure"
31163/* confdefs.h. */
31164_ACEOF
31165cat confdefs.h >>conftest.$ac_ext
31166cat >>conftest.$ac_ext <<_ACEOF
31167/* end confdefs.h. */
3fcdd07b 31168/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31169 which can conflict with char $ac_func (); below.
31170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31171 <limits.h> exists even on freestanding compilers. */
31172#ifdef __STDC__
31173# include <limits.h>
31174#else
31175# include <assert.h>
31176#endif
3fcdd07b 31177/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31178#ifdef __cplusplus
31179extern "C"
31180{
31181#endif
3fcdd07b 31182/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31183 builtin and then its argument prototype would still apply. */
31184char $ac_func ();
3fcdd07b
VZ
31185/* The GNU C library defines this for functions which it implements
31186 to always fail with ENOSYS. Some functions are actually named
31187 something starting with __ and the normal name is an alias. */
31188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31189choke me
31190#else
e6cc62c6
VS
31191char (*f) () = $ac_func;
31192#endif
31193#ifdef __cplusplus
31194}
3fcdd07b
VZ
31195#endif
31196
e6cc62c6
VS
31197int
31198main ()
31199{
31200return f != $ac_func;
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205rm -f conftest.$ac_objext conftest$ac_exeext
31206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31207 (eval $ac_link) 2>&5
31208 ac_status=$?
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
31211 { ac_try='test -s conftest$ac_exeext'
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
31217 eval "$as_ac_var=yes"
31218else
31219 echo "$as_me: failed program was:" >&5
31220sed 's/^/| /' conftest.$ac_ext >&5
31221
31222eval "$as_ac_var=no"
31223fi
31224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31225fi
31226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31228if test `eval echo '${'$as_ac_var'}'` = yes; then
31229 cat >>confdefs.h <<_ACEOF
31230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31231_ACEOF
3fcdd07b 31232 break
3fcdd07b
VZ
31233fi
31234done
31235
698dcdb6 31236
8284b0c5 31237 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31238 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31239echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31240if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31241 echo $ECHO_N "(cached) $ECHO_C" >&6
31242else
31243
31244
31245
31246 ac_ext=cc
5c6fa7d2 31247ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31251
8284b0c5 31252
e6cc62c6
VS
31253 cat >conftest.$ac_ext <<_ACEOF
31254#line $LINENO "configure"
31255/* confdefs.h. */
31256_ACEOF
31257cat confdefs.h >>conftest.$ac_ext
31258cat >>conftest.$ac_ext <<_ACEOF
31259/* end confdefs.h. */
afc31813
VZ
31260
31261 #include <sys/time.h>
31262 #include <unistd.h>
e6cc62c6
VS
31263
31264int
31265main ()
31266{
afc31813
VZ
31267
31268 struct timeval tv;
776862b4 31269 gettimeofday(&tv, NULL);
e6cc62c6
VS
31270
31271 ;
31272 return 0;
31273}
31274_ACEOF
31275rm -f conftest.$ac_objext
31276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31277 (eval $ac_compile) 2>&5
31278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); } &&
31281 { ac_try='test -s conftest.$ac_objext'
31282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31283 (eval $ac_try) 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; }; then
afc31813 31287 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31288else
e6cc62c6
VS
31289 echo "$as_me: failed program was:" >&5
31290sed 's/^/| /' conftest.$ac_ext >&5
31291
31292cat >conftest.$ac_ext <<_ACEOF
31293#line $LINENO "configure"
31294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
afc31813
VZ
31299
31300 #include <sys/time.h>
31301 #include <unistd.h>
e6cc62c6
VS
31302
31303int
31304main ()
31305{
afc31813
VZ
31306
31307 struct timeval tv;
31308 gettimeofday(&tv);
e6cc62c6
VS
31309
31310 ;
31311 return 0;
31312}
31313_ACEOF
31314rm -f conftest.$ac_objext
31315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31316 (eval $ac_compile) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); } &&
31320 { ac_try='test -s conftest.$ac_objext'
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
afc31813 31326 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31327else
e6cc62c6
VS
31328 echo "$as_me: failed program was:" >&5
31329sed 's/^/| /' conftest.$ac_ext >&5
31330
31331
31332 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31333echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31334 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31335
31336
10f2d63a 31337fi
e6cc62c6
VS
31338rm -f conftest.$ac_objext conftest.$ac_ext
31339
10f2d63a 31340fi
e6cc62c6 31341rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31342 ac_ext=c
10f2d63a 31343ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31346ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31347
a0b9e27f 31348
e6cc62c6
VS
31349fi
31350echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31351echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31352
afc31813 31353 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31354 cat >>confdefs.h <<\_ACEOF
afc31813 31355#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31356_ACEOF
afc31813
VZ
31357
31358 fi
31359 fi
31360
afc31813
VZ
31361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31362fi
31363
8284b0c5 31364
52127426 31365if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31366 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31367 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31368echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31369 wxUSE_SOCKETS="no"
31370 fi
3879ecda
VZ
31371 if test "$wxUSE_COCOA" = "1"; then
31372 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31373echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31374 wxUSE_SOCKETS="no"
31375 fi
0feee163 31376fi
b089607b 31377
0feee163
VZ
31378if test "$wxUSE_SOCKETS" = "yes"; then
31379 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31380 echo "$as_me:$LINENO: checking for socket" >&5
31381echo $ECHO_N "checking for socket... $ECHO_C" >&6
31382if test "${ac_cv_func_socket+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385 cat >conftest.$ac_ext <<_ACEOF
31386#line $LINENO "configure"
31387/* confdefs.h. */
31388_ACEOF
31389cat confdefs.h >>conftest.$ac_ext
31390cat >>conftest.$ac_ext <<_ACEOF
31391/* end confdefs.h. */
c63c7106 31392/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31393 which can conflict with char socket (); below.
31394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31395 <limits.h> exists even on freestanding compilers. */
31396#ifdef __STDC__
31397# include <limits.h>
31398#else
31399# include <assert.h>
31400#endif
c63c7106 31401/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31402#ifdef __cplusplus
31403extern "C"
31404{
31405#endif
c63c7106 31406/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31407 builtin and then its argument prototype would still apply. */
31408char socket ();
c63c7106
VZ
31409/* The GNU C library defines this for functions which it implements
31410 to always fail with ENOSYS. Some functions are actually named
31411 something starting with __ and the normal name is an alias. */
31412#if defined (__stub_socket) || defined (__stub___socket)
31413choke me
31414#else
e6cc62c6
VS
31415char (*f) () = socket;
31416#endif
31417#ifdef __cplusplus
31418}
c63c7106
VZ
31419#endif
31420
e6cc62c6
VS
31421int
31422main ()
31423{
31424return f != socket;
31425 ;
31426 return 0;
31427}
31428_ACEOF
31429rm -f conftest.$ac_objext conftest$ac_exeext
31430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31431 (eval $ac_link) 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } &&
31435 { ac_try='test -s conftest$ac_exeext'
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; }; then
31441 ac_cv_func_socket=yes
31442else
31443 echo "$as_me: failed program was:" >&5
31444sed 's/^/| /' conftest.$ac_ext >&5
31445
31446ac_cv_func_socket=no
31447fi
31448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31449fi
31450echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31451echo "${ECHO_T}$ac_cv_func_socket" >&6
31452if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31453 :
31454else
0e012a93
VZ
31455
31456 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31457echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31458if test "${ac_cv_lib_socket_socket+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31460else
e6cc62c6 31461 ac_check_lib_save_LIBS=$LIBS
c63c7106 31462LIBS="-lsocket $LIBS"
e6cc62c6
VS
31463cat >conftest.$ac_ext <<_ACEOF
31464#line $LINENO "configure"
31465/* confdefs.h. */
31466_ACEOF
31467cat confdefs.h >>conftest.$ac_ext
31468cat >>conftest.$ac_ext <<_ACEOF
31469/* end confdefs.h. */
31470
c63c7106 31471/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31472#ifdef __cplusplus
31473extern "C"
31474#endif
c63c7106 31475/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31476 builtin and then its argument prototype would still apply. */
31477char socket ();
31478int
31479main ()
31480{
31481socket ();
31482 ;
31483 return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext conftest$ac_exeext
31487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31488 (eval $ac_link) 2>&5
31489 ac_status=$?
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } &&
31492 { ac_try='test -s conftest$ac_exeext'
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
31498 ac_cv_lib_socket_socket=yes
31499else
31500 echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503ac_cv_lib_socket_socket=no
31504fi
31505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31506LIBS=$ac_check_lib_save_LIBS
31507fi
31508echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31509echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31510if test $ac_cv_lib_socket_socket = yes; then
d558c907 31511 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31512 INET_LINK="$INET_LINK -lsocket"
31513 fi
c63c7106 31514else
afc31813 31515
0e012a93 31516 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31517echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31518 wxUSE_SOCKETS=no
e6cc62c6
VS
31519
31520
6232543b 31521fi
b089607b 31522
e6cc62c6 31523
0e012a93 31524
1e487827 31525fi
afc31813 31526
3a922bb4 31527 fi
0feee163 31528fi
51a9faba 31529
0feee163
VZ
31530if test "$wxUSE_SOCKETS" = "yes" ; then
31531 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31532 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31533echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31534if test "${wx_cv_type_getsockname3+set}" = set; then
31535 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31536else
e6cc62c6
VS
31537
31538 cat >conftest.$ac_ext <<_ACEOF
31539#line $LINENO "configure"
31540/* confdefs.h. */
31541_ACEOF
31542cat confdefs.h >>conftest.$ac_ext
31543cat >>conftest.$ac_ext <<_ACEOF
31544/* end confdefs.h. */
51a9faba 31545
3a922bb4
RL
31546 #include <sys/types.h>
31547 #include <sys/socket.h>
e6cc62c6
VS
31548
31549int
31550main ()
31551{
51a9faba 31552
3a922bb4
RL
31553 socklen_t len;
31554 getsockname(0, 0, &len);
e6cc62c6
VS
31555
31556 ;
31557 return 0;
31558}
31559_ACEOF
31560rm -f conftest.$ac_objext
31561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31562 (eval $ac_compile) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
31566 { ac_try='test -s conftest.$ac_objext'
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; }; then
51a9faba 31572 wx_cv_type_getsockname3=socklen_t
afc31813 31573else
e6cc62c6
VS
31574 echo "$as_me: failed program was:" >&5
31575sed 's/^/| /' conftest.$ac_ext >&5
31576
31577
9711d31e
GD
31578 CFLAGS_OLD="$CFLAGS"
31579 if test "$GCC" = yes ; then
31580 CFLAGS="$CFLAGS -Werror"
31581 fi
31582
e6cc62c6
VS
31583 cat >conftest.$ac_ext <<_ACEOF
31584#line $LINENO "configure"
31585/* confdefs.h. */
31586_ACEOF
31587cat confdefs.h >>conftest.$ac_ext
31588cat >>conftest.$ac_ext <<_ACEOF
31589/* end confdefs.h. */
51a9faba 31590
9711d31e
GD
31591 #include <sys/types.h>
31592 #include <sys/socket.h>
e6cc62c6
VS
31593
31594int
31595main ()
31596{
51a9faba 31597
9711d31e
GD
31598 size_t len;
31599 getsockname(0, 0, &len);
e6cc62c6
VS
31600
31601 ;
31602 return 0;
31603}
31604_ACEOF
31605rm -f conftest.$ac_objext
31606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31607 (eval $ac_compile) 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } &&
31611 { ac_try='test -s conftest.$ac_objext'
31612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613 (eval $ac_try) 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; }; then
51a9faba 31617 wx_cv_type_getsockname3=size_t
afc31813 31618else
e6cc62c6
VS
31619 echo "$as_me: failed program was:" >&5
31620sed 's/^/| /' conftest.$ac_ext >&5
31621
31622cat >conftest.$ac_ext <<_ACEOF
31623#line $LINENO "configure"
31624/* confdefs.h. */
31625_ACEOF
31626cat confdefs.h >>conftest.$ac_ext
31627cat >>conftest.$ac_ext <<_ACEOF
31628/* end confdefs.h. */
51a9faba 31629
9711d31e
GD
31630 #include <sys/types.h>
31631 #include <sys/socket.h>
e6cc62c6
VS
31632
31633int
31634main ()
31635{
51a9faba 31636
9711d31e
GD
31637 int len;
31638 getsockname(0, 0, &len);
e6cc62c6
VS
31639
31640 ;
31641 return 0;
31642}
31643_ACEOF
31644rm -f conftest.$ac_objext
31645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31646 (eval $ac_compile) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); } &&
31650 { ac_try='test -s conftest.$ac_objext'
31651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652 (eval $ac_try) 2>&5
31653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
51a9faba 31656 wx_cv_type_getsockname3=int
afc31813 31657else
e6cc62c6
VS
31658 echo "$as_me: failed program was:" >&5
31659sed 's/^/| /' conftest.$ac_ext >&5
31660
31661wx_cv_type_getsockname3=unknown
31662
afc31813 31663fi
e6cc62c6
VS
31664rm -f conftest.$ac_objext conftest.$ac_ext
31665
afc31813 31666fi
e6cc62c6 31667rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31668
31669 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31670
31671
247f5006 31672fi
e6cc62c6 31673rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31674
e6cc62c6
VS
31675fi
31676echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31677echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31678
3a922bb4
RL
31679 if test "$wx_cv_type_getsockname3" = "unknown"; then
31680 wxUSE_SOCKETS=no
e6cc62c6
VS
31681 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31682echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31683 else
e6cc62c6 31684 cat >>confdefs.h <<_ACEOF
51a9faba 31685#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31686_ACEOF
51a9faba 31687
3a922bb4 31688 fi
51a9faba
VZ
31689 fi
31690fi
afc31813 31691
51a9faba 31692if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31693 cat >>confdefs.h <<\_ACEOF
afc31813 31694#define wxUSE_SOCKETS 1
e6cc62c6 31695_ACEOF
afc31813 31696
70f7a477 31697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31698fi
31699
3879ecda
VZ
31700if test "$wxUSE_PROTOCOL" = "yes"; then
31701 if test "$wxUSE_SOCKETS" != "yes"; then
31702 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31703echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31704 wxUSE_PROTOCOL=no
31705 fi
31706fi
31707
31708if test "$wxUSE_PROTOCOL" = "yes"; then
31709 cat >>confdefs.h <<\_ACEOF
31710#define wxUSE_PROTOCOL 1
31711_ACEOF
31712
31713
31714 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31715 cat >>confdefs.h <<\_ACEOF
31716#define wxUSE_PROTOCOL_HTTP 1
31717_ACEOF
31718
31719 fi
31720 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31721 cat >>confdefs.h <<\_ACEOF
31722#define wxUSE_PROTOCOL_FTP 1
31723_ACEOF
31724
31725 fi
31726 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31727 cat >>confdefs.h <<\_ACEOF
31728#define wxUSE_PROTOCOL_FILE 1
31729_ACEOF
31730
31731 fi
31732else
31733 if test "$wxUSE_FS_INET" = "yes"; then
31734 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31735echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31736 wxUSE_FS_INET="no"
31737 fi
31738fi
31739
31740if test "$wxUSE_URL" = "yes"; then
31741 if test "$wxUSE_PROTOCOL" != "yes"; then
31742 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31743echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31744 wxUSE_URL=no
31745 fi
31746 if test "$wxUSE_URL" = "yes"; then
31747 cat >>confdefs.h <<\_ACEOF
31748#define wxUSE_URL 1
31749_ACEOF
31750
31751 fi
31752fi
31753
31754if test "$wxUSE_FS_INET" = "yes"; then
31755 cat >>confdefs.h <<\_ACEOF
31756#define wxUSE_FS_INET 1
31757_ACEOF
31758
31759fi
31760
8284b0c5 31761
dc3d889d
VZ
31762if test "$wxUSE_GUI" = "yes"; then
31763
ac0c4cc3 31764 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31765 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31766echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31767 wxUSE_JOYSTICK=no
156b2523
GD
31768 fi
31769
131f235d 31770 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31771 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31772
31773for ac_header in linux/joystick.h
10f2d63a 31774do
e6cc62c6
VS
31775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31776if eval "test \"\${$as_ac_Header+set}\" = set"; then
31777 echo "$as_me:$LINENO: checking for $ac_header" >&5
31778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31779if eval "test \"\${$as_ac_Header+set}\" = set"; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31781fi
31782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31784else
31785 # Is the header compilable?
31786echo "$as_me:$LINENO: checking $ac_header usability" >&5
31787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31788cat >conftest.$ac_ext <<_ACEOF
31789#line $LINENO "configure"
31790/* confdefs.h. */
31791_ACEOF
31792cat confdefs.h >>conftest.$ac_ext
31793cat >>conftest.$ac_ext <<_ACEOF
31794/* end confdefs.h. */
31795$ac_includes_default
31796#include <$ac_header>
31797_ACEOF
31798rm -f conftest.$ac_objext
31799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31800 (eval $ac_compile) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); } &&
31804 { ac_try='test -s conftest.$ac_objext'
31805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; }; then
31810 ac_header_compiler=yes
31811else
31812 echo "$as_me: failed program was:" >&5
31813sed 's/^/| /' conftest.$ac_ext >&5
31814
31815ac_header_compiler=no
31816fi
31817rm -f conftest.$ac_objext conftest.$ac_ext
31818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31819echo "${ECHO_T}$ac_header_compiler" >&6
31820
31821# Is the header present?
31822echo "$as_me:$LINENO: checking $ac_header presence" >&5
31823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31824cat >conftest.$ac_ext <<_ACEOF
31825#line $LINENO "configure"
31826/* confdefs.h. */
31827_ACEOF
31828cat confdefs.h >>conftest.$ac_ext
31829cat >>conftest.$ac_ext <<_ACEOF
31830/* end confdefs.h. */
31831#include <$ac_header>
31832_ACEOF
31833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31835 ac_status=$?
31836 grep -v '^ *+' conftest.er1 >conftest.err
31837 rm -f conftest.er1
31838 cat conftest.err >&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } >/dev/null; then
31841 if test -s conftest.err; then
31842 ac_cpp_err=$ac_c_preproc_warn_flag
31843 else
31844 ac_cpp_err=
31845 fi
31846else
31847 ac_cpp_err=yes
31848fi
31849if test -z "$ac_cpp_err"; then
31850 ac_header_preproc=yes
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
31855 ac_header_preproc=no
31856fi
31857rm -f conftest.err conftest.$ac_ext
31858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31859echo "${ECHO_T}$ac_header_preproc" >&6
31860
31861# So? What about this header?
31862case $ac_header_compiler:$ac_header_preproc in
31863 yes:no )
31864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31868 (
31869 cat <<\_ASBOX
31870## ------------------------------------ ##
31871## Report this to bug-autoconf@gnu.org. ##
31872## ------------------------------------ ##
31873_ASBOX
31874 ) |
31875 sed "s/^/$as_me: WARNING: /" >&2
31876 ;;
31877 no:yes )
31878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31884 (
31885 cat <<\_ASBOX
31886## ------------------------------------ ##
31887## Report this to bug-autoconf@gnu.org. ##
31888## ------------------------------------ ##
31889_ASBOX
31890 ) |
31891 sed "s/^/$as_me: WARNING: /" >&2
31892 ;;
31893esac
31894echo "$as_me:$LINENO: checking for $ac_header" >&5
31895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31896if eval "test \"\${$as_ac_Header+set}\" = set"; then
31897 echo $ECHO_N "(cached) $ECHO_C" >&6
31898else
31899 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31900fi
e6cc62c6
VS
31901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31903
10f2d63a 31904fi
e6cc62c6
VS
31905if test `eval echo '${'$as_ac_Header'}'` = yes; then
31906 cat >>confdefs.h <<_ACEOF
31907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31908_ACEOF
31909
247f5006 31910fi
e6cc62c6 31911
10f2d63a
VZ
31912done
31913
3a922bb4
RL
31914 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31915 wxUSE_JOYSTICK=no
e6cc62c6
VS
31916 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31917echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31918 fi
31919 fi
31920 fi
b089607b 31921
3a922bb4 31922 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31923 cat >>confdefs.h <<\_ACEOF
10f2d63a 31924#define wxUSE_JOYSTICK 1
e6cc62c6 31925_ACEOF
10f2d63a 31926
3a922bb4
RL
31927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31928 fi
dc3d889d
VZ
31929fi
31930
8284b0c5 31931
73d617c9 31932if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 31933
3a922bb4
RL
31934 HAVE_DL_FUNCS=0
31935 HAVE_SHL_FUNCS=0
0b9ab0bd 31936 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31937 if test "$USE_DARWIN" = 1; then
31938 HAVE_DL_FUNCS=1
31939 else
e6cc62c6
VS
31940
31941for ac_func in dlopen
10f2d63a 31942do
e6cc62c6
VS
31943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31944echo "$as_me:$LINENO: checking for $ac_func" >&5
31945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31946if eval "test \"\${$as_ac_var+set}\" = set"; then
31947 echo $ECHO_N "(cached) $ECHO_C" >&6
31948else
31949 cat >conftest.$ac_ext <<_ACEOF
31950#line $LINENO "configure"
31951/* confdefs.h. */
31952_ACEOF
31953cat confdefs.h >>conftest.$ac_ext
31954cat >>conftest.$ac_ext <<_ACEOF
31955/* end confdefs.h. */
10f2d63a 31956/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31957 which can conflict with char $ac_func (); below.
31958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31959 <limits.h> exists even on freestanding compilers. */
31960#ifdef __STDC__
31961# include <limits.h>
31962#else
31963# include <assert.h>
31964#endif
10f2d63a 31965/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31966#ifdef __cplusplus
31967extern "C"
31968{
31969#endif
10f2d63a 31970/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31971 builtin and then its argument prototype would still apply. */
31972char $ac_func ();
10f2d63a
VZ
31973/* The GNU C library defines this for functions which it implements
31974 to always fail with ENOSYS. Some functions are actually named
31975 something starting with __ and the normal name is an alias. */
31976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31977choke me
31978#else
e6cc62c6
VS
31979char (*f) () = $ac_func;
31980#endif
31981#ifdef __cplusplus
31982}
10f2d63a
VZ
31983#endif
31984
e6cc62c6
VS
31985int
31986main ()
31987{
31988return f != $ac_func;
31989 ;
31990 return 0;
31991}
31992_ACEOF
31993rm -f conftest.$ac_objext conftest$ac_exeext
31994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31995 (eval $ac_link) 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } &&
31999 { ac_try='test -s conftest$ac_exeext'
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; }; then
32005 eval "$as_ac_var=yes"
32006else
32007 echo "$as_me: failed program was:" >&5
32008sed 's/^/| /' conftest.$ac_ext >&5
32009
32010eval "$as_ac_var=no"
32011fi
32012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32013fi
32014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32016if test `eval echo '${'$as_ac_var'}'` = yes; then
32017 cat >>confdefs.h <<_ACEOF
32018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32019_ACEOF
32020
32021 cat >>confdefs.h <<\_ACEOF
10f2d63a 32022#define HAVE_DLOPEN 1
e6cc62c6 32023_ACEOF
10f2d63a 32024
3a922bb4 32025 HAVE_DL_FUNCS=1
e6cc62c6 32026
10f2d63a 32027else
e6cc62c6
VS
32028
32029 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32030echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32031if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 32033else
e6cc62c6 32034 ac_check_lib_save_LIBS=$LIBS
10f2d63a 32035LIBS="-ldl $LIBS"
e6cc62c6
VS
32036cat >conftest.$ac_ext <<_ACEOF
32037#line $LINENO "configure"
32038/* confdefs.h. */
32039_ACEOF
32040cat confdefs.h >>conftest.$ac_ext
32041cat >>conftest.$ac_ext <<_ACEOF
32042/* end confdefs.h. */
32043
10f2d63a 32044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32045#ifdef __cplusplus
32046extern "C"
32047#endif
10f2d63a 32048/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32049 builtin and then its argument prototype would still apply. */
32050char dlopen ();
32051int
32052main ()
32053{
32054dlopen ();
32055 ;
32056 return 0;
32057}
32058_ACEOF
32059rm -f conftest.$ac_objext conftest$ac_exeext
32060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32061 (eval $ac_link) 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); } &&
32065 { ac_try='test -s conftest$ac_exeext'
32066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32067 (eval $ac_try) 2>&5
32068 ac_status=$?
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; }; then
32071 ac_cv_lib_dl_dlopen=yes
32072else
32073 echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076ac_cv_lib_dl_dlopen=no
32077fi
32078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32079LIBS=$ac_check_lib_save_LIBS
32080fi
32081echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32082echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
32083if test $ac_cv_lib_dl_dlopen = yes; then
32084
32085 cat >>confdefs.h <<\_ACEOF
10f2d63a 32086#define HAVE_DLOPEN 1
e6cc62c6 32087_ACEOF
10f2d63a 32088
3a922bb4 32089 HAVE_DL_FUNCS=1
3d63bc3a 32090 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 32091
10f2d63a 32092else
10f2d63a 32093
e6cc62c6
VS
32094
32095for ac_func in shl_load
10f2d63a 32096do
e6cc62c6
VS
32097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32098echo "$as_me:$LINENO: checking for $ac_func" >&5
32099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32100if eval "test \"\${$as_ac_var+set}\" = set"; then
32101 echo $ECHO_N "(cached) $ECHO_C" >&6
32102else
32103 cat >conftest.$ac_ext <<_ACEOF
32104#line $LINENO "configure"
32105/* confdefs.h. */
32106_ACEOF
32107cat confdefs.h >>conftest.$ac_ext
32108cat >>conftest.$ac_ext <<_ACEOF
32109/* end confdefs.h. */
10f2d63a 32110/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32111 which can conflict with char $ac_func (); below.
32112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32113 <limits.h> exists even on freestanding compilers. */
32114#ifdef __STDC__
32115# include <limits.h>
32116#else
32117# include <assert.h>
32118#endif
10f2d63a 32119/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32120#ifdef __cplusplus
32121extern "C"
32122{
32123#endif
10f2d63a 32124/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32125 builtin and then its argument prototype would still apply. */
32126char $ac_func ();
10f2d63a
VZ
32127/* The GNU C library defines this for functions which it implements
32128 to always fail with ENOSYS. Some functions are actually named
32129 something starting with __ and the normal name is an alias. */
32130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32131choke me
32132#else
e6cc62c6
VS
32133char (*f) () = $ac_func;
32134#endif
32135#ifdef __cplusplus
32136}
10f2d63a
VZ
32137#endif
32138
e6cc62c6
VS
32139int
32140main ()
32141{
32142return f != $ac_func;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext conftest$ac_exeext
32148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32149 (eval $ac_link) 2>&5
32150 ac_status=$?
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } &&
32153 { ac_try='test -s conftest$ac_exeext'
32154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32155 (eval $ac_try) 2>&5
32156 ac_status=$?
32157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32158 (exit $ac_status); }; }; then
32159 eval "$as_ac_var=yes"
32160else
32161 echo "$as_me: failed program was:" >&5
32162sed 's/^/| /' conftest.$ac_ext >&5
32163
32164eval "$as_ac_var=no"
32165fi
32166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32167fi
32168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32170if test `eval echo '${'$as_ac_var'}'` = yes; then
32171 cat >>confdefs.h <<_ACEOF
32172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32173_ACEOF
32174
32175 cat >>confdefs.h <<\_ACEOF
10f2d63a 32176#define HAVE_SHL_LOAD 1
e6cc62c6 32177_ACEOF
10f2d63a 32178
3a922bb4 32179 HAVE_SHL_FUNCS=1
e6cc62c6 32180
10f2d63a 32181else
e6cc62c6
VS
32182
32183 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32184echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32185if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32186 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32187else
e6cc62c6 32188 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32189LIBS="-lshl_load $LIBS"
e6cc62c6
VS
32190cat >conftest.$ac_ext <<_ACEOF
32191#line $LINENO "configure"
32192/* confdefs.h. */
32193_ACEOF
32194cat confdefs.h >>conftest.$ac_ext
32195cat >>conftest.$ac_ext <<_ACEOF
32196/* end confdefs.h. */
32197
8284b0c5 32198/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32199#ifdef __cplusplus
32200extern "C"
32201#endif
f6bcfd97 32202/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32203 builtin and then its argument prototype would still apply. */
32204char dld ();
32205int
32206main ()
32207{
32208dld ();
32209 ;
32210 return 0;
32211}
32212_ACEOF
32213rm -f conftest.$ac_objext conftest$ac_exeext
32214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32215 (eval $ac_link) 2>&5
32216 ac_status=$?
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); } &&
32219 { ac_try='test -s conftest$ac_exeext'
32220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 (eval $ac_try) 2>&5
32222 ac_status=$?
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); }; }; then
32225 ac_cv_lib_shl_load_dld=yes
32226else
32227 echo "$as_me: failed program was:" >&5
32228sed 's/^/| /' conftest.$ac_ext >&5
32229
32230ac_cv_lib_shl_load_dld=no
32231fi
32232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32233LIBS=$ac_check_lib_save_LIBS
32234fi
32235echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32236echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32237if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32238
3a922bb4 32239 HAVE_SHL_FUNCS=1
3d63bc3a 32240 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32241
f6bcfd97
BP
32242fi
32243
e6cc62c6 32244
10f2d63a
VZ
32245fi
32246done
32247
e6cc62c6 32248
10f2d63a
VZ
32249fi
32250
e6cc62c6 32251
10f2d63a
VZ
32252fi
32253done
32254
5c6fa7d2 32255
8284b0c5 32256 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32257
32258for ac_func in dlerror
f6bcfd97 32259do
e6cc62c6
VS
32260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32261echo "$as_me:$LINENO: checking for $ac_func" >&5
32262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32263if eval "test \"\${$as_ac_var+set}\" = set"; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32265else
32266 cat >conftest.$ac_ext <<_ACEOF
32267#line $LINENO "configure"
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h. */
f6bcfd97 32273/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32274 which can conflict with char $ac_func (); below.
32275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32276 <limits.h> exists even on freestanding compilers. */
32277#ifdef __STDC__
32278# include <limits.h>
32279#else
32280# include <assert.h>
32281#endif
f6bcfd97 32282/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32283#ifdef __cplusplus
32284extern "C"
32285{
32286#endif
f6bcfd97 32287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32288 builtin and then its argument prototype would still apply. */
32289char $ac_func ();
f6bcfd97
BP
32290/* The GNU C library defines this for functions which it implements
32291 to always fail with ENOSYS. Some functions are actually named
32292 something starting with __ and the normal name is an alias. */
32293#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32294choke me
32295#else
e6cc62c6
VS
32296char (*f) () = $ac_func;
32297#endif
32298#ifdef __cplusplus
32299}
f6bcfd97
BP
32300#endif
32301
e6cc62c6
VS
32302int
32303main ()
32304{
32305return f != $ac_func;
32306 ;
32307 return 0;
32308}
32309_ACEOF
32310rm -f conftest.$ac_objext conftest$ac_exeext
32311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32312 (eval $ac_link) 2>&5
32313 ac_status=$?
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
32316 { ac_try='test -s conftest$ac_exeext'
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; }; then
32322 eval "$as_ac_var=yes"
32323else
32324 echo "$as_me: failed program was:" >&5
32325sed 's/^/| /' conftest.$ac_ext >&5
32326
32327eval "$as_ac_var=no"
32328fi
32329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32330fi
32331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32333if test `eval echo '${'$as_ac_var'}'` = yes; then
32334 cat >>confdefs.h <<_ACEOF
32335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32336_ACEOF
32337 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32338#define HAVE_DLERROR 1
e6cc62c6 32339_ACEOF
f6bcfd97
BP
32340
32341else
0e012a93
VZ
32342
32343 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
32344echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32345if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32347else
e6cc62c6 32348 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32349LIBS="-ldl $LIBS"
e6cc62c6
VS
32350cat >conftest.$ac_ext <<_ACEOF
32351#line $LINENO "configure"
32352/* confdefs.h. */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h. */
32357
f6bcfd97 32358/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32359#ifdef __cplusplus
32360extern "C"
32361#endif
f6bcfd97 32362/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32363 builtin and then its argument prototype would still apply. */
32364char dlerror ();
32365int
32366main ()
32367{
32368dlerror ();
32369 ;
32370 return 0;
32371}
32372_ACEOF
32373rm -f conftest.$ac_objext conftest$ac_exeext
32374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32375 (eval $ac_link) 2>&5
32376 ac_status=$?
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); } &&
32379 { ac_try='test -s conftest$ac_exeext'
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32382 ac_status=$?
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; }; then
32385 ac_cv_lib_dl_dlerror=yes
32386else
32387 echo "$as_me: failed program was:" >&5
32388sed 's/^/| /' conftest.$ac_ext >&5
32389
32390ac_cv_lib_dl_dlerror=no
32391fi
32392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32393LIBS=$ac_check_lib_save_LIBS
32394fi
32395echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32396echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32397if test $ac_cv_lib_dl_dlerror = yes; then
32398 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32399#define HAVE_DLERROR 1
e6cc62c6 32400_ACEOF
f6bcfd97 32401
f6bcfd97
BP
32402fi
32403
0e012a93
VZ
32404
32405
f6bcfd97
BP
32406fi
32407done
32408
3a922bb4
RL
32409 fi
32410 fi
f6bcfd97 32411
3a922bb4
RL
32412 if test "$HAVE_DL_FUNCS" = 0; then
32413 if test "$HAVE_SHL_FUNCS" = 0; then
32414 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32415 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32416echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32417 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32418 wxUSE_DYNLIB_CLASS=no
32419 else
e6cc62c6
VS
32420 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32421echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32422 fi
32423 fi
10f2d63a
VZ
32424 fi
32425 fi
32426fi
32427
0b9ab0bd 32428if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32429 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32430#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32431_ACEOF
0b9ab0bd 32432
1948bb32
VS
32433fi
32434if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32435 cat >>confdefs.h <<\_ACEOF
10f2d63a 32436#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32437_ACEOF
10f2d63a
VZ
32438
32439fi
32440
8284b0c5 32441
1e6feb95 32442if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32443 cat >>confdefs.h <<\_ACEOF
1e6feb95 32444#define wxUSE_FONTMAP 1
e6cc62c6 32445_ACEOF
1e6feb95
VZ
32446
32447fi
32448
10f2d63a 32449if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32450 cat >>confdefs.h <<\_ACEOF
10f2d63a 32451#define wxUSE_UNICODE 1
e6cc62c6 32452_ACEOF
10f2d63a 32453
8284b0c5 32454
eb854003 32455 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32456 wxUSE_UNICODE_MSLU=no
32457 fi
a72a4bfa 32458
eb854003 32459 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32460 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32461echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32462if test "${ac_cv_lib_unicows_main+set}" = set; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32464else
e6cc62c6 32465 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32466LIBS="-lunicows $LIBS"
e6cc62c6
VS
32467cat >conftest.$ac_ext <<_ACEOF
32468#line $LINENO "configure"
32469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
a72a4bfa 32474
8284b0c5 32475
e6cc62c6
VS
32476int
32477main ()
32478{
32479main ();
32480 ;
32481 return 0;
32482}
32483_ACEOF
32484rm -f conftest.$ac_objext conftest$ac_exeext
32485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32486 (eval $ac_link) 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } &&
32490 { ac_try='test -s conftest$ac_exeext'
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496 ac_cv_lib_unicows_main=yes
32497else
32498 echo "$as_me: failed program was:" >&5
32499sed 's/^/| /' conftest.$ac_ext >&5
32500
32501ac_cv_lib_unicows_main=no
32502fi
32503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32504LIBS=$ac_check_lib_save_LIBS
32505fi
32506echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32507echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32508if test $ac_cv_lib_unicows_main = yes; then
32509
32510 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32511#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32512_ACEOF
32513
a72a4bfa 32514
a72a4bfa 32515else
a72a4bfa 32516
e6cc62c6
VS
32517 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32518 Applications will only run on Windows NT/2000/XP!" >&5
32519echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32520 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32521 wxUSE_UNICODE_MSLU=no
e6cc62c6 32522
a72a4bfa
VS
32523fi
32524
32525 fi
10f2d63a
VZ
32526fi
32527
10f2d63a 32528if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32529 cat >>confdefs.h <<\_ACEOF
10f2d63a 32530#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32531_ACEOF
10f2d63a
VZ
32532
32533fi
32534
8284b0c5 32535
10f2d63a 32536if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32537 cat >>confdefs.h <<\_ACEOF
10f2d63a 32538#define wxUSE_POSTSCRIPT 1
e6cc62c6 32539_ACEOF
10f2d63a
VZ
32540
32541fi
32542
e6cc62c6 32543cat >>confdefs.h <<\_ACEOF
10f2d63a 32544#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32545_ACEOF
10f2d63a 32546
8284b0c5 32547
e6cc62c6 32548cat >>confdefs.h <<\_ACEOF
10f2d63a 32549#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32550_ACEOF
10f2d63a 32551
8284b0c5
MB
32552
32553
10f2d63a 32554if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32555 cat >>confdefs.h <<\_ACEOF
10f2d63a 32556#define wxUSE_CONSTRAINTS 1
e6cc62c6 32557_ACEOF
10f2d63a
VZ
32558
32559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32560fi
32561
3879ecda 32562if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32563 cat >>confdefs.h <<\_ACEOF
10f2d63a 32564#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32565_ACEOF
10f2d63a 32566
1772d20c 32567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32568fi
32569
32570if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32571 cat >>confdefs.h <<\_ACEOF
10f2d63a 32572#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32573_ACEOF
10f2d63a
VZ
32574
32575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32576 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32578 fi
32579fi
32580
32581if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32582 cat >>confdefs.h <<\_ACEOF
10f2d63a 32583#define wxUSE_HELP 1
e6cc62c6 32584_ACEOF
10f2d63a
VZ
32585
32586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32587
77e13408 32588 if test "$wxUSE_MSW" = 1; then
031d8228 32589 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32590 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32591#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32592_ACEOF
29fd3c0c 32593
3e44f09d 32594 fi
3379ed37 32595 fi
031d8228
VS
32596
32597 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32598 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32599 cat >>confdefs.h <<\_ACEOF
031d8228 32600#define wxUSE_WXHTML_HELP 1
e6cc62c6 32601_ACEOF
031d8228
VS
32602
32603 else
e6cc62c6
VS
32604 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32605echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32606 wxUSE_WXHTML_HELP=no
32607 fi
32608 fi
10f2d63a
VZ
32609fi
32610
32611if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32612 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32613 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32614echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32615 else
e6cc62c6 32616 cat >>confdefs.h <<\_ACEOF
10f2d63a 32617#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32618_ACEOF
10f2d63a
VZ
32619
32620 fi
32621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32622fi
32623
e6cc62c6
VS
32624if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32625 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32626echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32627 { (exit 1); exit 1; }; }
32628fi
32629
32630
32631if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32632 -o "$wxUSE_CLIPBOARD" = "yes" \
32633 -o "$wxUSE_OLE" = "yes" \
32634 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32635
32636for ac_header in ole2.h
32637do
32638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32639if eval "test \"\${$as_ac_Header+set}\" = set"; then
32640 echo "$as_me:$LINENO: checking for $ac_header" >&5
32641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32642if eval "test \"\${$as_ac_Header+set}\" = set"; then
32643 echo $ECHO_N "(cached) $ECHO_C" >&6
32644fi
32645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32647else
32648 # Is the header compilable?
32649echo "$as_me:$LINENO: checking $ac_header usability" >&5
32650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32651cat >conftest.$ac_ext <<_ACEOF
32652#line $LINENO "configure"
32653/* confdefs.h. */
32654_ACEOF
32655cat confdefs.h >>conftest.$ac_ext
32656cat >>conftest.$ac_ext <<_ACEOF
32657/* end confdefs.h. */
32658$ac_includes_default
32659#include <$ac_header>
32660_ACEOF
32661rm -f conftest.$ac_objext
32662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32663 (eval $ac_compile) 2>&5
32664 ac_status=$?
32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666 (exit $ac_status); } &&
32667 { ac_try='test -s conftest.$ac_objext'
32668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32669 (eval $ac_try) 2>&5
32670 ac_status=$?
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); }; }; then
32673 ac_header_compiler=yes
32674else
32675 echo "$as_me: failed program was:" >&5
32676sed 's/^/| /' conftest.$ac_ext >&5
32677
32678ac_header_compiler=no
32679fi
32680rm -f conftest.$ac_objext conftest.$ac_ext
32681echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32682echo "${ECHO_T}$ac_header_compiler" >&6
32683
32684# Is the header present?
32685echo "$as_me:$LINENO: checking $ac_header presence" >&5
32686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32687cat >conftest.$ac_ext <<_ACEOF
32688#line $LINENO "configure"
32689/* confdefs.h. */
32690_ACEOF
32691cat confdefs.h >>conftest.$ac_ext
32692cat >>conftest.$ac_ext <<_ACEOF
32693/* end confdefs.h. */
32694#include <$ac_header>
32695_ACEOF
32696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32698 ac_status=$?
32699 grep -v '^ *+' conftest.er1 >conftest.err
32700 rm -f conftest.er1
32701 cat conftest.err >&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } >/dev/null; then
32704 if test -s conftest.err; then
32705 ac_cpp_err=$ac_c_preproc_warn_flag
32706 else
32707 ac_cpp_err=
32708 fi
32709else
32710 ac_cpp_err=yes
32711fi
32712if test -z "$ac_cpp_err"; then
32713 ac_header_preproc=yes
32714else
32715 echo "$as_me: failed program was:" >&5
32716sed 's/^/| /' conftest.$ac_ext >&5
32717
32718 ac_header_preproc=no
32719fi
32720rm -f conftest.err conftest.$ac_ext
32721echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32722echo "${ECHO_T}$ac_header_preproc" >&6
32723
32724# So? What about this header?
32725case $ac_header_compiler:$ac_header_preproc in
32726 yes:no )
32727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32731 (
32732 cat <<\_ASBOX
32733## ------------------------------------ ##
32734## Report this to bug-autoconf@gnu.org. ##
32735## ------------------------------------ ##
32736_ASBOX
32737 ) |
32738 sed "s/^/$as_me: WARNING: /" >&2
32739 ;;
32740 no:yes )
32741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32747 (
32748 cat <<\_ASBOX
32749## ------------------------------------ ##
32750## Report this to bug-autoconf@gnu.org. ##
32751## ------------------------------------ ##
32752_ASBOX
32753 ) |
32754 sed "s/^/$as_me: WARNING: /" >&2
32755 ;;
32756esac
32757echo "$as_me:$LINENO: checking for $ac_header" >&5
32758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32759if eval "test \"\${$as_ac_Header+set}\" = set"; then
32760 echo $ECHO_N "(cached) $ECHO_C" >&6
32761else
32762 eval "$as_ac_Header=$ac_header_preproc"
32763fi
32764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32766
10f2d63a 32767fi
e6cc62c6
VS
32768if test `eval echo '${'$as_ac_Header'}'` = yes; then
32769 cat >>confdefs.h <<_ACEOF
32770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32771_ACEOF
10f2d63a 32772
10f2d63a 32773fi
e6cc62c6 32774
10f2d63a
VZ
32775done
32776
8284b0c5 32777
2b9bdf71
VZ
32778 if test "$ac_cv_header_ole2_h" = "yes" ; then
32779 if test "$GCC" = yes ; then
8284b0c5
MB
32780
32781
e6cc62c6
VS
32782 ac_ext=cc
32783ac_cpp='$CXXCPP $CPPFLAGS'
32784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32787
32788
32789 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32790echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32791 cat >conftest.$ac_ext <<_ACEOF
32792#line $LINENO "configure"
32793/* confdefs.h. */
32794_ACEOF
32795cat confdefs.h >>conftest.$ac_ext
32796cat >>conftest.$ac_ext <<_ACEOF
32797/* end confdefs.h. */
8284b0c5
MB
32798#include <windows.h>
32799 #include <ole2.h>
e6cc62c6
VS
32800int
32801main ()
32802{
8284b0c5 32803
e6cc62c6
VS
32804 ;
32805 return 0;
32806}
32807_ACEOF
32808rm -f conftest.$ac_objext
32809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32810 (eval $ac_compile) 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); } &&
32814 { ac_try='test -s conftest.$ac_objext'
32815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32816 (eval $ac_try) 2>&5
32817 ac_status=$?
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); }; }; then
32820 echo "$as_me:$LINENO: result: no" >&5
32821echo "${ECHO_T}no" >&6
32822else
32823 echo "$as_me: failed program was:" >&5
32824sed 's/^/| /' conftest.$ac_ext >&5
32825
32826echo "$as_me:$LINENO: result: yes" >&5
32827echo "${ECHO_T}yes" >&6
8284b0c5
MB
32828 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32829fi
e6cc62c6 32830rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32831 ac_ext=c
8284b0c5 32832ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32835ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32836
2b9bdf71 32837 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32838 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32839 cat >>confdefs.h <<\_ACEOF
4f11a343 32840#define wxUSE_OLE 1
e6cc62c6 32841_ACEOF
4f11a343 32842
8284b0c5 32843
2b9bdf71
VZ
32844 fi
32845
e6cc62c6 32846 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32847#define wxUSE_DATAOBJ 1
e6cc62c6 32848_ACEOF
2b9bdf71
VZ
32849
32850 else
e6cc62c6
VS
32851 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32852echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32853
32854 wxUSE_CLIPBOARD=no
32855 wxUSE_DRAG_AND_DROP=no
32856 wxUSE_DATAOBJ=no
3bce6687
JS
32857 wxUSE_OLE=no
32858 fi
32859
32860 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32861 cat >>confdefs.h <<\_ACEOF
3bce6687 32862#define wxUSE_METAFILE 1
e6cc62c6 32863_ACEOF
3bce6687
JS
32864
32865
e6cc62c6 32866 cat >>confdefs.h <<\_ACEOF
3bce6687 32867#define wxUSE_ENH_METAFILE 1
e6cc62c6 32868_ACEOF
3bce6687
JS
32869
32870 fi
32871fi
32872
2b9bdf71
VZ
32873if test "$wxUSE_IPC" = "yes"; then
32874 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32875 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32876echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32877 fi
32878
e6cc62c6 32879 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32880#define wxUSE_IPC 1
e6cc62c6 32881_ACEOF
2b9bdf71
VZ
32882
32883fi
32884
32885if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32886 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32887 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32888echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32889 wxUSE_CLIPBOARD=no
32890 fi
32891
32892 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32893 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32894#define wxUSE_CLIPBOARD 1
e6cc62c6 32895_ACEOF
2b9bdf71 32896
8284b0c5 32897
e6cc62c6 32898 cat >>confdefs.h <<\_ACEOF
673f4220 32899#define wxUSE_DATAOBJ 1
e6cc62c6 32900_ACEOF
673f4220 32901
6c657b52 32902 fi
2b9bdf71
VZ
32903fi
32904
32905if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32906 if test "$wxUSE_GTK" = 1; then
32907 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32908 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32909echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32910 wxUSE_DRAG_AND_DROP=no
32911 fi
32912 fi
32913
2b9bdf71 32914 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32915 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32916echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32917 wxUSE_DRAG_AND_DROP=no
32918 fi
32919
f79bd02d 32920 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32921 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32922echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32923 wxUSE_DRAG_AND_DROP=no
32924 fi
32925
6c657b52 32926 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32927 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32928echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32929 wxUSE_DRAG_AND_DROP=no
32930 fi
32931
10f2d63a 32932 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
10f2d63a 32934#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32935_ACEOF
10f2d63a
VZ
32936
32937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32938 fi
32939
32940fi
32941
32942if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32943 cat >>confdefs.h <<\_ACEOF
10f2d63a 32944#define wxUSE_SPLINES 1
e6cc62c6 32945_ACEOF
10f2d63a
VZ
32946
32947fi
32948
8284b0c5 32949
1e6feb95
VZ
32950USES_CONTROLS=0
32951if test "$wxUSE_CONTROLS" = "yes"; then
32952 USES_CONTROLS=1
32953fi
32954
10f2d63a 32955if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32956 cat >>confdefs.h <<\_ACEOF
10f2d63a 32957#define wxUSE_ACCEL 1
e6cc62c6 32958_ACEOF
10f2d63a 32959
1e6feb95
VZ
32960 USES_CONTROLS=1
32961fi
32962
32963if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32964 cat >>confdefs.h <<\_ACEOF
1e6feb95 32965#define wxUSE_BUTTON 1
e6cc62c6 32966_ACEOF
1e6feb95
VZ
32967
32968 USES_CONTROLS=1
32969fi
32970
32971if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32972 cat >>confdefs.h <<\_ACEOF
1e6feb95 32973#define wxUSE_BMPBUTTON 1
e6cc62c6 32974_ACEOF
1e6feb95
VZ
32975
32976 USES_CONTROLS=1
32977fi
32978
32979if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32980 cat >>confdefs.h <<\_ACEOF
1e6feb95 32981#define wxUSE_CALENDARCTRL 1
e6cc62c6 32982_ACEOF
1e6feb95
VZ
32983
32984 USES_CONTROLS=1
32985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32986fi
32987
32988if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32989 cat >>confdefs.h <<\_ACEOF
10f2d63a 32990#define wxUSE_CARET 1
e6cc62c6 32991_ACEOF
10f2d63a 32992
1e6feb95 32993 USES_CONTROLS=1
10f2d63a
VZ
32994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32995fi
32996
32997if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32998 cat >>confdefs.h <<\_ACEOF
10f2d63a 32999#define wxUSE_COMBOBOX 1
e6cc62c6 33000_ACEOF
10f2d63a 33001
1e6feb95 33002 USES_CONTROLS=1
10f2d63a
VZ
33003fi
33004
33005if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
10f2d63a 33007#define wxUSE_CHOICE 1
e6cc62c6 33008_ACEOF
10f2d63a 33009
1e6feb95 33010 USES_CONTROLS=1
10f2d63a
VZ
33011fi
33012
33013if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 33014 cat >>confdefs.h <<\_ACEOF
10f2d63a 33015#define wxUSE_CHECKBOX 1
e6cc62c6 33016_ACEOF
10f2d63a 33017
1e6feb95 33018 USES_CONTROLS=1
10f2d63a
VZ
33019fi
33020
33021if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
10f2d63a 33023#define wxUSE_CHECKLISTBOX 1
e6cc62c6 33024_ACEOF
10f2d63a 33025
1e6feb95 33026 USES_CONTROLS=1
10f2d63a
VZ
33027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33028fi
33029
da494b40 33030if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 33031 cat >>confdefs.h <<\_ACEOF
da494b40 33032#define wxUSE_DISPLAY 1
e6cc62c6 33033_ACEOF
da494b40
MB
33034
33035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
33036fi
33037
10f2d63a 33038if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 33039 cat >>confdefs.h <<\_ACEOF
10f2d63a 33040#define wxUSE_GAUGE 1
e6cc62c6 33041_ACEOF
10f2d63a 33042
1e6feb95 33043 USES_CONTROLS=1
10f2d63a
VZ
33044fi
33045
d6a55c4b 33046if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 33047 cat >>confdefs.h <<\_ACEOF
d6a55c4b 33048#define wxUSE_GRID 1
e6cc62c6 33049_ACEOF
10f2d63a 33050
1e6feb95 33051 USES_CONTROLS=1
d6a55c4b 33052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
33053fi
33054
33055if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33056 cat >>confdefs.h <<\_ACEOF
10f2d63a 33057#define wxUSE_IMAGLIST 1
e6cc62c6 33058_ACEOF
10f2d63a
VZ
33059
33060fi
33061
0e012a93
VZ
33062if test "$wxUSE_LISTBOOK" = "yes"; then
33063 cat >>confdefs.h <<\_ACEOF
33064#define wxUSE_LISTBOOK 1
33065_ACEOF
33066
33067 USES_CONTROLS=1
33068fi
33069
10f2d63a 33070if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 33071 cat >>confdefs.h <<\_ACEOF
10f2d63a 33072#define wxUSE_LISTBOX 1
e6cc62c6 33073_ACEOF
10f2d63a 33074
1e6feb95 33075 USES_CONTROLS=1
10f2d63a
VZ
33076fi
33077
33078if test "$wxUSE_LISTCTRL" = "yes"; then
33079 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33080 cat >>confdefs.h <<\_ACEOF
10f2d63a 33081#define wxUSE_LISTCTRL 1
e6cc62c6 33082_ACEOF
10f2d63a 33083
1e6feb95 33084 USES_CONTROLS=1
10f2d63a
VZ
33085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
33086 else
e6cc62c6
VS
33087 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
33088echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33089 fi
33090fi
33091
33092if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 33093 cat >>confdefs.h <<\_ACEOF
10f2d63a 33094#define wxUSE_NOTEBOOK 1
e6cc62c6 33095_ACEOF
10f2d63a 33096
1e6feb95 33097 USES_CONTROLS=1
10f2d63a
VZ
33098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
33099fi
33100
24176f2c 33101
10f2d63a 33102if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 33103 cat >>confdefs.h <<\_ACEOF
10f2d63a 33104#define wxUSE_RADIOBOX 1
e6cc62c6 33105_ACEOF
10f2d63a 33106
1e6feb95 33107 USES_CONTROLS=1
10f2d63a
VZ
33108fi
33109
33110if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 33111 cat >>confdefs.h <<\_ACEOF
10f2d63a 33112#define wxUSE_RADIOBTN 1
e6cc62c6 33113_ACEOF
10f2d63a 33114
1e6feb95 33115 USES_CONTROLS=1
10f2d63a
VZ
33116fi
33117
33118if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 33119 cat >>confdefs.h <<\_ACEOF
10f2d63a 33120#define wxUSE_SASH 1
e6cc62c6 33121_ACEOF
10f2d63a
VZ
33122
33123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
33124fi
33125
33126if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 33127 cat >>confdefs.h <<\_ACEOF
10f2d63a 33128#define wxUSE_SCROLLBAR 1
e6cc62c6 33129_ACEOF
10f2d63a 33130
1e6feb95 33131 USES_CONTROLS=1
741a9306 33132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
33133fi
33134
33135if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 33136 cat >>confdefs.h <<\_ACEOF
10f2d63a 33137#define wxUSE_SLIDER 1
e6cc62c6 33138_ACEOF
10f2d63a 33139
1e6feb95 33140 USES_CONTROLS=1
10f2d63a
VZ
33141fi
33142
33143if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 33144 cat >>confdefs.h <<\_ACEOF
10f2d63a 33145#define wxUSE_SPINBTN 1
e6cc62c6 33146_ACEOF
10f2d63a 33147
1e6feb95 33148 USES_CONTROLS=1
10f2d63a
VZ
33149fi
33150
56cfaa52 33151if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 33152 cat >>confdefs.h <<\_ACEOF
56cfaa52 33153#define wxUSE_SPINCTRL 1
e6cc62c6 33154_ACEOF
56cfaa52 33155
1e6feb95 33156 USES_CONTROLS=1
56cfaa52
RR
33157fi
33158
10f2d63a 33159if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 33160 cat >>confdefs.h <<\_ACEOF
10f2d63a 33161#define wxUSE_SPLITTER 1
e6cc62c6 33162_ACEOF
10f2d63a
VZ
33163
33164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
33165fi
33166
33167if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 33168 cat >>confdefs.h <<\_ACEOF
10f2d63a 33169#define wxUSE_STATBMP 1
e6cc62c6 33170_ACEOF
10f2d63a 33171
1e6feb95 33172 USES_CONTROLS=1
10f2d63a
VZ
33173fi
33174
33175if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 33176 cat >>confdefs.h <<\_ACEOF
10f2d63a 33177#define wxUSE_STATBOX 1
e6cc62c6 33178_ACEOF
10f2d63a 33179
1e6feb95
VZ
33180 USES_CONTROLS=1
33181fi
33182
33183if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 33184 cat >>confdefs.h <<\_ACEOF
1e6feb95 33185#define wxUSE_STATTEXT 1
e6cc62c6 33186_ACEOF
1e6feb95
VZ
33187
33188 USES_CONTROLS=1
10f2d63a
VZ
33189fi
33190
33191if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33192 cat >>confdefs.h <<\_ACEOF
10f2d63a 33193#define wxUSE_STATLINE 1
e6cc62c6 33194_ACEOF
10f2d63a 33195
89e6bf6d 33196 USES_CONTROLS=1
10f2d63a
VZ
33197fi
33198
33199if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33200 cat >>confdefs.h <<\_ACEOF
10f2d63a 33201#define wxUSE_STATUSBAR 1
e6cc62c6 33202_ACEOF
10f2d63a 33203
1e6feb95 33204 USES_CONTROLS=1
698dcdb6 33205
2286341c 33206 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33207fi
33208
33209if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33210 cat >>confdefs.h <<\_ACEOF
10f2d63a 33211#define wxUSE_TAB_DIALOG 1
e6cc62c6 33212_ACEOF
10f2d63a
VZ
33213
33214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33215fi
33216
1e6feb95 33217if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33218 cat >>confdefs.h <<\_ACEOF
1e6feb95 33219#define wxUSE_TEXTCTRL 1
e6cc62c6 33220_ACEOF
1e6feb95
VZ
33221
33222 USES_CONTROLS=1
33223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33224fi
33225
1db8dc4a 33226if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33227 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33228 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33229echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33230 wxUSE_TOGGLEBTN=no
33231 fi
33232 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33233 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33234echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33235 wxUSE_TOGGLEBTN=no
33236 fi
33237
33238 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33239 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33240#define wxUSE_TOGGLEBTN 1
e6cc62c6 33241_ACEOF
1db8dc4a 33242
1e6feb95 33243 USES_CONTROLS=1
a45d7ab7 33244 fi
1db8dc4a
VZ
33245fi
33246
360d6699 33247if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33248 cat >>confdefs.h <<\_ACEOF
360d6699 33249#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33250_ACEOF
360d6699
VZ
33251
33252 wxUSE_TOOLBAR="yes"
1e6feb95 33253 USES_CONTROLS=1
360d6699
VZ
33254fi
33255
10f2d63a 33256if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33257 cat >>confdefs.h <<\_ACEOF
10f2d63a 33258#define wxUSE_TOOLBAR 1
e6cc62c6 33259_ACEOF
10f2d63a 33260
1e6feb95 33261 USES_CONTROLS=1
698dcdb6 33262
360d6699
VZ
33263 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33264 wxUSE_TOOLBAR_NATIVE="yes"
33265 fi
33266
1e6feb95 33267 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33268 cat >>confdefs.h <<\_ACEOF
360d6699 33269#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33270_ACEOF
360d6699 33271
1e6feb95
VZ
33272 USES_CONTROLS=1
33273 fi
33274
33275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33276fi
33277
10f2d63a
VZ
33278if test "$wxUSE_TOOLTIPS" = "yes"; then
33279 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33280 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33281echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33282 else
89e6bf6d 33283 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33284 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33285echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33286 else
e6cc62c6 33287 cat >>confdefs.h <<\_ACEOF
10f2d63a 33288#define wxUSE_TOOLTIPS 1
e6cc62c6 33289_ACEOF
10f2d63a
VZ
33290
33291 fi
33292 fi
33293fi
33294
33295if test "$wxUSE_TREECTRL" = "yes"; then
33296 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33297 cat >>confdefs.h <<\_ACEOF
10f2d63a 33298#define wxUSE_TREECTRL 1
e6cc62c6 33299_ACEOF
10f2d63a 33300
1e6feb95 33301 USES_CONTROLS=1
10f2d63a
VZ
33302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33303 else
e6cc62c6
VS
33304 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33305echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33306 fi
33307fi
33308
9f41d601 33309if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33310 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33311 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33312echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33313 else
833a51f6
MB
33314 if test "$wxUSE_PM" = 1; then
33315 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 33316echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
33317 else
33318 cat >>confdefs.h <<\_ACEOF
9f41d601 33319#define wxUSE_POPUPWIN 1
e6cc62c6 33320_ACEOF
9f41d601 33321
8284b0c5 33322
833a51f6 33323 USES_CONTROLS=1
485cf710 33324 fi
6abe4b65 33325 fi
9f41d601
RR
33326fi
33327
dd964dcc 33328if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33329 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33330 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33331echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33332 else
e6cc62c6 33333 cat >>confdefs.h <<\_ACEOF
dd964dcc 33334#define wxUSE_TIPWINDOW 1
e6cc62c6 33335_ACEOF
dd964dcc 33336
3c011993 33337 fi
dd964dcc
VZ
33338fi
33339
1e6feb95 33340if test "$USES_CONTROLS" = 1; then
e6cc62c6 33341 cat >>confdefs.h <<\_ACEOF
1e6feb95 33342#define wxUSE_CONTROLS 1
e6cc62c6 33343_ACEOF
10f2d63a 33344
10f2d63a
VZ
33345fi
33346
8284b0c5 33347
e46d2a18
VS
33348if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33349 cat >>confdefs.h <<\_ACEOF
33350#define wxUSE_ACCESSIBILITY 1
33351_ACEOF
33352
33353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33354fi
1e6feb95 33355
24fd6d87 33356if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33357 cat >>confdefs.h <<\_ACEOF
24fd6d87 33358#define wxUSE_DRAGIMAGE 1
e6cc62c6 33359_ACEOF
24fd6d87
VZ
33360
33361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33362fi
33363
e46d2a18 33364if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33365 cat >>confdefs.h <<\_ACEOF
e46d2a18 33366#define wxUSE_EXCEPTIONS 1
e6cc62c6 33367_ACEOF
7bb2947d 33368
e46d2a18
VS
33369fi
33370
33371USE_HTML=0
33372if test "$wxUSE_HTML" = "yes"; then
33373 cat >>confdefs.h <<\_ACEOF
33374#define wxUSE_HTML 1
33375_ACEOF
33376
33377 USE_HTML=1
33378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33379fi
33380
1e6feb95 33381if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33382 cat >>confdefs.h <<\_ACEOF
1e6feb95 33383#define wxUSE_MENUS 1
e6cc62c6 33384_ACEOF
10f2d63a 33385
1e6feb95 33386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33387fi
33388
1e6feb95 33389if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33390 cat >>confdefs.h <<\_ACEOF
1e6feb95 33391#define wxUSE_METAFILE 1
e6cc62c6 33392_ACEOF
10f2d63a 33393
10f2d63a
VZ
33394fi
33395
1e6feb95 33396if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33397 cat >>confdefs.h <<\_ACEOF
1e6feb95 33398#define wxUSE_MIMETYPE 1
e6cc62c6 33399_ACEOF
10f2d63a 33400
10f2d63a
VZ
33401fi
33402
33403if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33404 cat >>confdefs.h <<\_ACEOF
10f2d63a 33405#define wxUSE_MINIFRAME 1
e6cc62c6 33406_ACEOF
10f2d63a
VZ
33407
33408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33409fi
33410
e46d2a18 33411if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33412 cat >>confdefs.h <<\_ACEOF
e46d2a18 33413#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33414_ACEOF
10f2d63a 33415
e46d2a18
VS
33416 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33417 "$TOOLKIT" = "MOTIF"; then
33418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33419 fi
10f2d63a
VZ
33420fi
33421
e46d2a18 33422
10f2d63a 33423if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33424 cat >>confdefs.h <<\_ACEOF
1e487827 33425#define wxUSE_VALIDATORS 1
e6cc62c6 33426_ACEOF
703e0a69 33427
698dcdb6
VZ
33428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33429fi
33430
edae8572 33431if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33432 cat >>confdefs.h <<\_ACEOF
edae8572 33433#define wxUSE_PALETTE 1
e6cc62c6 33434_ACEOF
edae8572
VZ
33435
33436fi
33437
e46d2a18
VS
33438if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33439 LIBS=" -lunicows $LIBS"
33440fi
33441
33442
698dcdb6 33443if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33444 cat >>confdefs.h <<\_ACEOF
698dcdb6 33445#define wxUSE_IMAGE 1
e6cc62c6 33446_ACEOF
698dcdb6 33447
698dcdb6 33448
e46d2a18
VS
33449 if test "$wxUSE_GIF" = "yes" ; then
33450 cat >>confdefs.h <<\_ACEOF
698dcdb6 33451#define wxUSE_GIF 1
e6cc62c6 33452_ACEOF
698dcdb6 33453
e46d2a18 33454 fi
698dcdb6 33455
e46d2a18
VS
33456 if test "$wxUSE_PCX" = "yes" ; then
33457 cat >>confdefs.h <<\_ACEOF
698dcdb6 33458#define wxUSE_PCX 1
e6cc62c6 33459_ACEOF
698dcdb6 33460
e46d2a18 33461 fi
698dcdb6 33462
e46d2a18
VS
33463 if test "$wxUSE_IFF" = "yes" ; then
33464 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33465#define wxUSE_IFF 1
e6cc62c6 33466_ACEOF
4b6b4dfc 33467
e46d2a18 33468 fi
4b6b4dfc 33469
e46d2a18
VS
33470 if test "$wxUSE_PNM" = "yes" ; then
33471 cat >>confdefs.h <<\_ACEOF
698dcdb6 33472#define wxUSE_PNM 1
e6cc62c6 33473_ACEOF
698dcdb6 33474
e46d2a18 33475 fi
698dcdb6 33476
e46d2a18
VS
33477 if test "$wxUSE_XPM" = "yes" ; then
33478 cat >>confdefs.h <<\_ACEOF
698dcdb6 33479#define wxUSE_XPM 1
e6cc62c6 33480_ACEOF
698dcdb6 33481
e46d2a18 33482 fi
698dcdb6 33483
e46d2a18
VS
33484 if test "$wxUSE_ICO_CUR" = "yes" ; then
33485 cat >>confdefs.h <<\_ACEOF
658974ae 33486#define wxUSE_ICO_CUR 1
e6cc62c6 33487_ACEOF
658974ae 33488
e46d2a18 33489 fi
a72a4bfa
VS
33490fi
33491
8284b0c5 33492
1e6feb95 33493if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33494 cat >>confdefs.h <<\_ACEOF
1e6feb95 33495#define wxUSE_CHOICEDLG 1
e6cc62c6 33496_ACEOF
1e6feb95
VZ
33497
33498fi
33499
33500if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33501 cat >>confdefs.h <<\_ACEOF
1e6feb95 33502#define wxUSE_COLOURDLG 1
e6cc62c6 33503_ACEOF
1e6feb95
VZ
33504
33505fi
33506
33507if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33508 cat >>confdefs.h <<\_ACEOF
1e6feb95 33509#define wxUSE_FILEDLG 1
e6cc62c6 33510_ACEOF
1e6feb95
VZ
33511
33512fi
33513
8db37e06 33514if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33515 cat >>confdefs.h <<\_ACEOF
8db37e06 33516#define wxUSE_FINDREPLDLG 1
e6cc62c6 33517_ACEOF
8db37e06
VZ
33518
33519fi
33520
1e6feb95 33521if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33522 cat >>confdefs.h <<\_ACEOF
1e6feb95 33523#define wxUSE_FONTDLG 1
e6cc62c6 33524_ACEOF
1e6feb95
VZ
33525
33526fi
33527
33528if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33529 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33530 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33531echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33532 else
e6cc62c6 33533 cat >>confdefs.h <<\_ACEOF
1e6feb95 33534#define wxUSE_DIRDLG 1
e6cc62c6 33535_ACEOF
1e6feb95 33536
1e6feb95
VZ
33537 fi
33538fi
33539
33540if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33541 cat >>confdefs.h <<\_ACEOF
1e6feb95 33542#define wxUSE_MSGDLG 1
e6cc62c6 33543_ACEOF
1e6feb95
VZ
33544
33545fi
33546
33547if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33548 cat >>confdefs.h <<\_ACEOF
1e6feb95 33549#define wxUSE_NUMBERDLG 1
e6cc62c6 33550_ACEOF
1e6feb95
VZ
33551
33552fi
33553
33554if test "$wxUSE_PROGRESSDLG" = "yes"; then
33555 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33556 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33557echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33558 else
e6cc62c6 33559 cat >>confdefs.h <<\_ACEOF
1e6feb95 33560#define wxUSE_PROGRESSDLG 1
e6cc62c6 33561_ACEOF
1e6feb95
VZ
33562
33563 fi
33564fi
33565
cbca9943 33566if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33567 cat >>confdefs.h <<\_ACEOF
cbca9943 33568#define wxUSE_SPLASH 1
e6cc62c6 33569_ACEOF
cbca9943
VZ
33570
33571fi
33572
1e6feb95
VZ
33573if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33574 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33575 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33576echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33577 else
e6cc62c6 33578 cat >>confdefs.h <<\_ACEOF
1e6feb95 33579#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33580_ACEOF
1e6feb95 33581
7b4a847f
RR
33582 fi
33583fi
579d8138 33584
8284b0c5 33585if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33586 cat >>confdefs.h <<\_ACEOF
8284b0c5 33587#define wxUSE_TEXTDLG 1
e6cc62c6 33588_ACEOF
8284b0c5
MB
33589
33590fi
33591
33592if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33593 cat >>confdefs.h <<\_ACEOF
8284b0c5 33594#define wxUSE_WIZARDDLG 1
e6cc62c6 33595_ACEOF
8284b0c5
MB
33596
33597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33598fi
33599
33600
33601if test "$cross_compiling" = "yes"; then
33602 OSINFO="\"$host\""
33603else
33604 OSINFO=`uname -s -r -m`
33605 OSINFO="\"$OSINFO\""
33606fi
33607
e6cc62c6 33608cat >>confdefs.h <<_ACEOF
8284b0c5 33609#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33610_ACEOF
8284b0c5
MB
33611
33612
33613
33614if test "x$prefix" != "xNONE"; then
33615 wxPREFIX=$prefix
33616else
33617 wxPREFIX=$ac_default_prefix
33618fi
33619
e6cc62c6 33620cat >>confdefs.h <<_ACEOF
8284b0c5 33621#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33622_ACEOF
8284b0c5
MB
33623
33624
e6cc62c6 33625top_builddir_wxconfig=`pwd`
52c71b80 33626
8284b0c5
MB
33627
33628
edd891e2
VS
33629CORE_BASE_LIBS="net base"
33630CORE_GUI_LIBS="adv core"
33631
33632if test "$wxUSE_XML" = "yes" ; then
33633 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33634fi
45293562
VS
33635if test "$wxUSE_ODBC" != "no" ; then
33636 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33637 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33638fi
33639if test "$wxUSE_HTML" = "yes" ; then
33640 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33641fi
33642
57e7d4ac
VS
33643if test "$wxUSE_GUI" != "yes"; then
33644 CORE_GUI_LIBS=""
33645fi
33646
edd891e2
VS
33647
33648
33649
33650
33651
33652
8284b0c5
MB
33653
33654if test "$wxUSE_MAC" = 1 ; then
33655 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33656fi
ac0c4cc3
DE
33657if test "$wxUSE_COCOA" = 1 ; then
33658 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33659fi
8284b0c5
MB
33660
33661
2b5f62a0
VZ
33662LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33663
33664have_cos=0
33665have_floor=0
e6cc62c6 33666
2b5f62a0
VZ
33667for ac_func in cos
33668do
e6cc62c6
VS
33669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33670echo "$as_me:$LINENO: checking for $ac_func" >&5
33671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33672if eval "test \"\${$as_ac_var+set}\" = set"; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33674else
33675 cat >conftest.$ac_ext <<_ACEOF
33676#line $LINENO "configure"
33677/* confdefs.h. */
33678_ACEOF
33679cat confdefs.h >>conftest.$ac_ext
33680cat >>conftest.$ac_ext <<_ACEOF
33681/* end confdefs.h. */
2b5f62a0 33682/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33683 which can conflict with char $ac_func (); below.
33684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33685 <limits.h> exists even on freestanding compilers. */
33686#ifdef __STDC__
33687# include <limits.h>
33688#else
33689# include <assert.h>
33690#endif
2b5f62a0 33691/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33692#ifdef __cplusplus
33693extern "C"
33694{
33695#endif
2b5f62a0 33696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33697 builtin and then its argument prototype would still apply. */
33698char $ac_func ();
2b5f62a0
VZ
33699/* The GNU C library defines this for functions which it implements
33700 to always fail with ENOSYS. Some functions are actually named
33701 something starting with __ and the normal name is an alias. */
33702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33703choke me
33704#else
e6cc62c6
VS
33705char (*f) () = $ac_func;
33706#endif
33707#ifdef __cplusplus
33708}
2b5f62a0
VZ
33709#endif
33710
e6cc62c6
VS
33711int
33712main ()
33713{
33714return f != $ac_func;
33715 ;
33716 return 0;
33717}
33718_ACEOF
33719rm -f conftest.$ac_objext conftest$ac_exeext
33720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33721 (eval $ac_link) 2>&5
33722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } &&
33725 { ac_try='test -s conftest$ac_exeext'
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; }; then
33731 eval "$as_ac_var=yes"
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
33736eval "$as_ac_var=no"
33737fi
33738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33739fi
33740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33742if test `eval echo '${'$as_ac_var'}'` = yes; then
33743 cat >>confdefs.h <<_ACEOF
33744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33745_ACEOF
2b5f62a0 33746 have_cos=1
2b5f62a0
VZ
33747fi
33748done
33749
e6cc62c6 33750
2b5f62a0
VZ
33751for ac_func in floor
33752do
e6cc62c6
VS
33753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33754echo "$as_me:$LINENO: checking for $ac_func" >&5
33755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33756if eval "test \"\${$as_ac_var+set}\" = set"; then
33757 echo $ECHO_N "(cached) $ECHO_C" >&6
33758else
33759 cat >conftest.$ac_ext <<_ACEOF
33760#line $LINENO "configure"
33761/* confdefs.h. */
33762_ACEOF
33763cat confdefs.h >>conftest.$ac_ext
33764cat >>conftest.$ac_ext <<_ACEOF
33765/* end confdefs.h. */
2b5f62a0 33766/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33767 which can conflict with char $ac_func (); below.
33768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33769 <limits.h> exists even on freestanding compilers. */
33770#ifdef __STDC__
33771# include <limits.h>
33772#else
33773# include <assert.h>
33774#endif
2b5f62a0 33775/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33776#ifdef __cplusplus
33777extern "C"
33778{
33779#endif
2b5f62a0 33780/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33781 builtin and then its argument prototype would still apply. */
33782char $ac_func ();
2b5f62a0
VZ
33783/* The GNU C library defines this for functions which it implements
33784 to always fail with ENOSYS. Some functions are actually named
33785 something starting with __ and the normal name is an alias. */
33786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33787choke me
33788#else
e6cc62c6
VS
33789char (*f) () = $ac_func;
33790#endif
33791#ifdef __cplusplus
33792}
2b5f62a0
VZ
33793#endif
33794
e6cc62c6
VS
33795int
33796main ()
33797{
33798return f != $ac_func;
33799 ;
33800 return 0;
33801}
33802_ACEOF
33803rm -f conftest.$ac_objext conftest$ac_exeext
33804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33805 (eval $ac_link) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } &&
33809 { ac_try='test -s conftest$ac_exeext'
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
33815 eval "$as_ac_var=yes"
33816else
33817 echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
33820eval "$as_ac_var=no"
33821fi
33822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33823fi
33824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33826if test `eval echo '${'$as_ac_var'}'` = yes; then
33827 cat >>confdefs.h <<_ACEOF
33828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33829_ACEOF
2b5f62a0 33830 have_floor=1
2b5f62a0
VZ
33831fi
33832done
33833
e6cc62c6
VS
33834echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33835echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33836if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33837 echo "$as_me:$LINENO: result: yes" >&5
33838echo "${ECHO_T}yes" >&6
2b5f62a0 33839else
e6cc62c6
VS
33840 echo "$as_me:$LINENO: result: no" >&5
33841echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33842 LIBS="$LIBS -lm"
33843 # use different functions to avoid configure caching
33844 have_sin=0
33845 have_ceil=0
e6cc62c6
VS
33846
33847for ac_func in sin
2b5f62a0 33848do
e6cc62c6
VS
33849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33850echo "$as_me:$LINENO: checking for $ac_func" >&5
33851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33852if eval "test \"\${$as_ac_var+set}\" = set"; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854else
33855 cat >conftest.$ac_ext <<_ACEOF
33856#line $LINENO "configure"
33857/* confdefs.h. */
33858_ACEOF
33859cat confdefs.h >>conftest.$ac_ext
33860cat >>conftest.$ac_ext <<_ACEOF
33861/* end confdefs.h. */
2b5f62a0 33862/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33863 which can conflict with char $ac_func (); below.
33864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33865 <limits.h> exists even on freestanding compilers. */
33866#ifdef __STDC__
33867# include <limits.h>
33868#else
33869# include <assert.h>
33870#endif
2b5f62a0 33871/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33872#ifdef __cplusplus
33873extern "C"
33874{
33875#endif
2b5f62a0 33876/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33877 builtin and then its argument prototype would still apply. */
33878char $ac_func ();
2b5f62a0
VZ
33879/* The GNU C library defines this for functions which it implements
33880 to always fail with ENOSYS. Some functions are actually named
33881 something starting with __ and the normal name is an alias. */
33882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33883choke me
33884#else
e6cc62c6
VS
33885char (*f) () = $ac_func;
33886#endif
33887#ifdef __cplusplus
33888}
2b5f62a0
VZ
33889#endif
33890
e6cc62c6
VS
33891int
33892main ()
33893{
33894return f != $ac_func;
33895 ;
33896 return 0;
33897}
33898_ACEOF
33899rm -f conftest.$ac_objext conftest$ac_exeext
33900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33901 (eval $ac_link) 2>&5
33902 ac_status=$?
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); } &&
33905 { ac_try='test -s conftest$ac_exeext'
33906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907 (eval $ac_try) 2>&5
33908 ac_status=$?
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
33911 eval "$as_ac_var=yes"
33912else
33913 echo "$as_me: failed program was:" >&5
33914sed 's/^/| /' conftest.$ac_ext >&5
33915
33916eval "$as_ac_var=no"
33917fi
33918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33919fi
33920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33922if test `eval echo '${'$as_ac_var'}'` = yes; then
33923 cat >>confdefs.h <<_ACEOF
33924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33925_ACEOF
2b5f62a0 33926 have_sin=1
2b5f62a0
VZ
33927fi
33928done
33929
e6cc62c6
VS
33930
33931for ac_func in ceil
2b5f62a0 33932do
e6cc62c6
VS
33933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33934echo "$as_me:$LINENO: checking for $ac_func" >&5
33935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33936if eval "test \"\${$as_ac_var+set}\" = set"; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33938else
33939 cat >conftest.$ac_ext <<_ACEOF
33940#line $LINENO "configure"
33941/* confdefs.h. */
33942_ACEOF
33943cat confdefs.h >>conftest.$ac_ext
33944cat >>conftest.$ac_ext <<_ACEOF
33945/* end confdefs.h. */
2b5f62a0 33946/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33947 which can conflict with char $ac_func (); below.
33948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33949 <limits.h> exists even on freestanding compilers. */
33950#ifdef __STDC__
33951# include <limits.h>
33952#else
33953# include <assert.h>
33954#endif
2b5f62a0 33955/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33956#ifdef __cplusplus
33957extern "C"
33958{
33959#endif
2b5f62a0 33960/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33961 builtin and then its argument prototype would still apply. */
33962char $ac_func ();
2b5f62a0
VZ
33963/* The GNU C library defines this for functions which it implements
33964 to always fail with ENOSYS. Some functions are actually named
33965 something starting with __ and the normal name is an alias. */
33966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33967choke me
33968#else
e6cc62c6
VS
33969char (*f) () = $ac_func;
33970#endif
33971#ifdef __cplusplus
33972}
2b5f62a0
VZ
33973#endif
33974
e6cc62c6
VS
33975int
33976main ()
33977{
33978return f != $ac_func;
33979 ;
33980 return 0;
33981}
33982_ACEOF
33983rm -f conftest.$ac_objext conftest$ac_exeext
33984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33985 (eval $ac_link) 2>&5
33986 ac_status=$?
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); } &&
33989 { ac_try='test -s conftest$ac_exeext'
33990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33991 (eval $ac_try) 2>&5
33992 ac_status=$?
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); }; }; then
33995 eval "$as_ac_var=yes"
33996else
33997 echo "$as_me: failed program was:" >&5
33998sed 's/^/| /' conftest.$ac_ext >&5
33999
34000eval "$as_ac_var=no"
34001fi
34002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34003fi
34004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34006if test `eval echo '${'$as_ac_var'}'` = yes; then
34007 cat >>confdefs.h <<_ACEOF
34008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34009_ACEOF
2b5f62a0 34010 have_ceil=1
2b5f62a0
VZ
34011fi
34012done
34013
e6cc62c6
VS
34014 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
34015echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 34016 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
34017 echo "$as_me:$LINENO: result: yes" >&5
34018echo "${ECHO_T}yes" >&6
2b5f62a0 34019 else
e6cc62c6
VS
34020 echo "$as_me:$LINENO: result: no" >&5
34021echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34022 # not sure we should warn the user, crash, etc.
34023 fi
34024fi
8284b0c5
MB
34025
34026if test "$wxUSE_GUI" = "yes"; then
34027
e6cc62c6 34028
8284b0c5
MB
34029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34030 drawing dynamic erase event exec font image \
1dd02ac0 34031 minimal propsize rotate shaped widgets render"
b625909c
VS
34032
34033 if test "$wxUSE_MONOLITHIC" != "yes"; then
34034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
34035 fi
8284b0c5
MB
34036else
34037 SAMPLES_SUBDIRS="console"
34038fi
34039
34040
e6cc62c6 34041INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
34042-I\${top_srcdir}/include \
34043$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
34044$TOOLKIT_INCLUDE"
34045
fddeb06b
VS
34046if test "$GXX" = yes ; then
34047 CXXWARNINGS="-Wall"
34048 fi
34049
34050EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34051
95318f7d 34052CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
34053CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34054CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
34055
34056
fddeb06b 34057LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 34058EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 34059EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 34060EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 34061EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
34062if test "$wxUSE_GUI" = "yes"; then
34063 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
34064fi
34b08d2c
VS
34065if test "$wxUSE_OPENGL" = "yes"; then
34066 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
34067fi
fddeb06b
VS
34068
34069LDFLAGS="$LDFLAGS $PROFILE"
34070
8284b0c5
MB
34071if test "$wxUSE_GTK" = 1; then
34072 WXCONFIG_INCLUDE=
34073else
34074 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
34075fi
34076
67c13b6c
VS
34077WXCONFIG_EXTRALIBS="$LIBS"
34078
34079if test "$wxUSE_REGEX" = "builtin" ; then
34080 wxconfig_3rdparty="$wxconfig_3rdparty regex"
34081fi
34082if test "$wxUSE_EXPAT" = "builtin" ; then
34083 wxconfig_3rdparty="$wxconfig_3rdparty expat"
34084fi
34085if test "$wxUSE_ODBC" = "builtin" ; then
34086 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34087fi
34088if test "$wxUSE_LIBTIFF" = "builtin" ; then
34089 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
34090fi
34091if test "$wxUSE_LIBJPEG" = "builtin" ; then
34092 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
34093fi
34094if test "$wxUSE_LIBPNG" = "builtin" ; then
34095 wxconfig_3rdparty="$wxconfig_3rdparty png"
34096fi
34097if test "$wxUSE_ZLIB" = "builtin" ; then
34098 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
34099fi
bb41dcbe
VS
34100if test "$wxUSE_ODBC" = "builtin" ; then
34101 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
34102fi
67c13b6c
VS
34103
34104for i in $wxconfig_3rdparty ; do
34105 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
34106done
34107
34108
fe0895cf
VS
34109if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
34110 WXUNIV=1
34111else
34112 WXUNIV=0
8284b0c5
MB
34113fi
34114
8284b0c5
MB
34115
34116
34117
34118
34119
34120
34121
672abd7a 34122
9747f85d
VS
34123if test $wxUSE_MONOLITHIC = "yes" ; then
34124 MONOLITHIC=1
34125else
34126 MONOLITHIC=0
34127fi
8284b0c5 34128
bb41dcbe
VS
34129if test $wxUSE_ODBC != "no" ; then
34130 USE_ODBC=1
34131else
34132 USE_ODBC=0
34133fi
34134
029b47ad
VS
34135if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
34136 OFFICIAL_BUILD=1
34137else
34138 OFFICIAL_BUILD=0
34139fi
34140
8ee2dd05
VS
34141
34142
34143
8284b0c5
MB
34144
34145
34146
34147
34148
34149
c74dc163 34150
34b08d2c 34151
672abd7a 34152
cf615ebb 34153
6c67131a
VS
34154
34155
bb41dcbe 34156
3527f29c 34157
fe0895cf 34158TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
34159
34160
34161
34162
34163
ea66c762 34164
0f1bc9c2 34165
fe0895cf 34166 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
34167
34168 if test -n "$ac_tool_prefix"; then
34169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34170set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34171echo "$as_me:$LINENO: checking for $ac_word" >&5
34172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34173if test "${ac_cv_prog_RANLIB+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34175else
fe0895cf
VS
34176 if test -n "$RANLIB"; then
34177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 34178else
e6cc62c6
VS
34179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34180for as_dir in $PATH
34181do
34182 IFS=$as_save_IFS
34183 test -z "$as_dir" && as_dir=.
34184 for ac_exec_ext in '' $ac_executable_extensions; do
34185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34188 break 2
34189 fi
34190done
34191done
34192
10f2d63a 34193fi
10f2d63a 34194fi
e6cc62c6 34195RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34196if test -n "$RANLIB"; then
e6cc62c6
VS
34197 echo "$as_me:$LINENO: result: $RANLIB" >&5
34198echo "${ECHO_T}$RANLIB" >&6
34199else
34200 echo "$as_me:$LINENO: result: no" >&5
34201echo "${ECHO_T}no" >&6
34202fi
34203
34204fi
34205if test -z "$ac_cv_prog_RANLIB"; then
34206 ac_ct_RANLIB=$RANLIB
34207 # Extract the first word of "ranlib", so it can be a program name with args.
34208set dummy ranlib; ac_word=$2
34209echo "$as_me:$LINENO: checking for $ac_word" >&5
34210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34211if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34213else
34214 if test -n "$ac_ct_RANLIB"; then
34215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34216else
34217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34218for as_dir in $PATH
34219do
34220 IFS=$as_save_IFS
34221 test -z "$as_dir" && as_dir=.
34222 for ac_exec_ext in '' $ac_executable_extensions; do
34223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34224 ac_cv_prog_ac_ct_RANLIB="ranlib"
34225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34226 break 2
34227 fi
34228done
34229done
34230
34231 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34232fi
34233fi
34234ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34235if test -n "$ac_ct_RANLIB"; then
34236 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34237echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34238else
e6cc62c6
VS
34239 echo "$as_me:$LINENO: result: no" >&5
34240echo "${ECHO_T}no" >&6
34241fi
34242
34243 RANLIB=$ac_ct_RANLIB
34244else
34245 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34246fi
665bbe97 34247
fe0895cf
VS
34248 # Find a good install program. We prefer a C program (faster),
34249# so one script is as good as another. But avoid the broken or
34250# incompatible versions:
34251# SysV /etc/install, /usr/sbin/install
34252# SunOS /usr/etc/install
34253# IRIX /sbin/install
34254# AIX /bin/install
e6cc62c6 34255# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34259# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34260echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34261echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34262if test -z "$INSTALL"; then
e6cc62c6
VS
34263if test "${ac_cv_path_install+set}" = set; then
34264 echo $ECHO_N "(cached) $ECHO_C" >&6
34265else
34266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34267for as_dir in $PATH
34268do
34269 IFS=$as_save_IFS
34270 test -z "$as_dir" && as_dir=.
34271 # Account for people who put trailing slashes in PATH elements.
34272case $as_dir/ in
34273 ./ | .// | /cC/* | \
34274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34275 /usr/ucb/* ) ;;
34276 *)
34277 # OSF1 and SCO ODT 3.0 have their own names for install.
34278 # Don't use installbsd from OSF since it installs stuff as root
34279 # by default.
34280 for ac_prog in ginstall scoinst install; do
34281 for ac_exec_ext in '' $ac_executable_extensions; do
34282 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34283 if test $ac_prog = install &&
34284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34285 # AIX install. It has an incompatible calling convention.
34286 :
34287 elif test $ac_prog = install &&
34288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34289 # program-specific install script used by HP pwplus--don't use.
34290 :
34291 else
34292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34293 break 3
34294 fi
34295 fi
fe0895cf 34296 done
e6cc62c6
VS
34297 done
34298 ;;
34299esac
34300done
34301
fe0895cf
VS
34302
34303fi
34304 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34305 INSTALL=$ac_cv_path_install
fe0895cf
VS
34306 else
34307 # As a last resort, use the slow shell script. We don't cache a
34308 # path for INSTALL within a source directory, because that will
34309 # break other packages using the cache if that directory is
34310 # removed, or if the path is relative.
e6cc62c6 34311 INSTALL=$ac_install_sh
fe0895cf
VS
34312 fi
34313fi
e6cc62c6
VS
34314echo "$as_me:$LINENO: result: $INSTALL" >&5
34315echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34316
34317# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34318# It thinks the first close brace ends the variable substitution.
34319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34320
e6cc62c6 34321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34322
34323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34324
e6cc62c6
VS
34325 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34326echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34327LN_S=$as_ln_s
34328if test "$LN_S" = "ln -s"; then
34329 echo "$as_me:$LINENO: result: yes" >&5
34330echo "${ECHO_T}yes" >&6
fe0895cf 34331else
e6cc62c6
VS
34332 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34333echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34334fi
34335
34336
e6cc62c6
VS
34337 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34338echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34339set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34340if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34341 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34342else
e6cc62c6 34343 cat >conftest.make <<\_ACEOF
fe0895cf 34344all:
e6cc62c6
VS
34345 @echo 'ac_maketemp="$(MAKE)"'
34346_ACEOF
fe0895cf 34347# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34348eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34349if test -n "$ac_maketemp"; then
34350 eval ac_cv_prog_make_${ac_make}_set=yes
34351else
34352 eval ac_cv_prog_make_${ac_make}_set=no
34353fi
e6cc62c6 34354rm -f conftest.make
fe0895cf
VS
34355fi
34356if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34357 echo "$as_me:$LINENO: result: yes" >&5
34358echo "${ECHO_T}yes" >&6
fe0895cf
VS
34359 SET_MAKE=
34360else
e6cc62c6
VS
34361 echo "$as_me:$LINENO: result: no" >&5
34362echo "${ECHO_T}no" >&6
fe0895cf
VS
34363 SET_MAKE="MAKE=${MAKE-make}"
34364fi
34365
e6cc62c6
VS
34366
34367
874d12cf
VS
34368 if test -n "$ac_tool_prefix"; then
34369 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34370set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34371echo "$as_me:$LINENO: checking for $ac_word" >&5
34372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34373if test "${ac_cv_prog_AR+set}" = set; then
34374 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34375else
34376 if test -n "$AR"; then
34377 ac_cv_prog_AR="$AR" # Let the user override the test.
34378else
e6cc62c6
VS
34379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34380for as_dir in $PATH
34381do
34382 IFS=$as_save_IFS
34383 test -z "$as_dir" && as_dir=.
34384 for ac_exec_ext in '' $ac_executable_extensions; do
34385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34386 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34388 break 2
34389 fi
34390done
34391done
34392
fe0895cf
VS
34393fi
34394fi
e6cc62c6 34395AR=$ac_cv_prog_AR
fe0895cf 34396if test -n "$AR"; then
e6cc62c6
VS
34397 echo "$as_me:$LINENO: result: $AR" >&5
34398echo "${ECHO_T}$AR" >&6
fe0895cf 34399else
e6cc62c6
VS
34400 echo "$as_me:$LINENO: result: no" >&5
34401echo "${ECHO_T}no" >&6
fe0895cf
VS
34402fi
34403
874d12cf
VS
34404fi
34405if test -z "$ac_cv_prog_AR"; then
34406 ac_ct_AR=$AR
34407 # Extract the first word of "ar", so it can be a program name with args.
34408set dummy ar; ac_word=$2
34409echo "$as_me:$LINENO: checking for $ac_word" >&5
34410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34411if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34412 echo $ECHO_N "(cached) $ECHO_C" >&6
34413else
34414 if test -n "$ac_ct_AR"; then
34415 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34416else
34417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34418for as_dir in $PATH
34419do
34420 IFS=$as_save_IFS
34421 test -z "$as_dir" && as_dir=.
34422 for ac_exec_ext in '' $ac_executable_extensions; do
34423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34424 ac_cv_prog_ac_ct_AR="ar"
34425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34426 break 2
34427 fi
34428done
34429done
34430
34431 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34432fi
34433fi
34434ac_ct_AR=$ac_cv_prog_ac_ct_AR
34435if test -n "$ac_ct_AR"; then
34436 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34437echo "${ECHO_T}$ac_ct_AR" >&6
34438else
34439 echo "$as_me:$LINENO: result: no" >&5
34440echo "${ECHO_T}no" >&6
34441fi
34442
34443 AR=$ac_ct_AR
34444else
34445 AR="$ac_cv_prog_AR"
34446fi
34447
34448 if test -n "$ac_tool_prefix"; then
34449 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34450set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34451echo "$as_me:$LINENO: checking for $ac_word" >&5
34452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34453if test "${ac_cv_prog_STRIP+set}" = set; then
34454 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34455else
34456 if test -n "$STRIP"; then
34457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34458else
e6cc62c6
VS
34459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34460for as_dir in $PATH
34461do
34462 IFS=$as_save_IFS
34463 test -z "$as_dir" && as_dir=.
34464 for ac_exec_ext in '' $ac_executable_extensions; do
34465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34466 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
34467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34468 break 2
34469 fi
34470done
34471done
34472
fe0895cf
VS
34473fi
34474fi
e6cc62c6 34475STRIP=$ac_cv_prog_STRIP
fe0895cf 34476if test -n "$STRIP"; then
e6cc62c6
VS
34477 echo "$as_me:$LINENO: result: $STRIP" >&5
34478echo "${ECHO_T}$STRIP" >&6
fe0895cf 34479else
e6cc62c6
VS
34480 echo "$as_me:$LINENO: result: no" >&5
34481echo "${ECHO_T}no" >&6
fe0895cf
VS
34482fi
34483
874d12cf
VS
34484fi
34485if test -z "$ac_cv_prog_STRIP"; then
34486 ac_ct_STRIP=$STRIP
34487 # Extract the first word of "strip", so it can be a program name with args.
34488set dummy strip; ac_word=$2
34489echo "$as_me:$LINENO: checking for $ac_word" >&5
34490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34491if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34492 echo $ECHO_N "(cached) $ECHO_C" >&6
34493else
34494 if test -n "$ac_ct_STRIP"; then
34495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34496else
34497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498for as_dir in $PATH
34499do
34500 IFS=$as_save_IFS
34501 test -z "$as_dir" && as_dir=.
34502 for ac_exec_ext in '' $ac_executable_extensions; do
34503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34504 ac_cv_prog_ac_ct_STRIP="strip"
34505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34506 break 2
34507 fi
34508done
34509done
34510
34511 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
34512fi
34513fi
34514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34515if test -n "$ac_ct_STRIP"; then
34516 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34517echo "${ECHO_T}$ac_ct_STRIP" >&6
34518else
34519 echo "$as_me:$LINENO: result: no" >&5
34520echo "${ECHO_T}no" >&6
34521fi
34522
34523 STRIP=$ac_ct_STRIP
34524else
34525 STRIP="$ac_cv_prog_STRIP"
34526fi
34527
34528 if test -n "$ac_tool_prefix"; then
34529 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
34530set dummy ${ac_tool_prefix}nm; ac_word=$2
34531echo "$as_me:$LINENO: checking for $ac_word" >&5
34532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34533if test "${ac_cv_prog_NM+set}" = set; then
34534 echo $ECHO_N "(cached) $ECHO_C" >&6
34535else
34536 if test -n "$NM"; then
34537 ac_cv_prog_NM="$NM" # Let the user override the test.
34538else
34539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34540for as_dir in $PATH
34541do
34542 IFS=$as_save_IFS
34543 test -z "$as_dir" && as_dir=.
34544 for ac_exec_ext in '' $ac_executable_extensions; do
34545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34546 ac_cv_prog_NM="${ac_tool_prefix}nm"
34547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34548 break 2
34549 fi
34550done
34551done
34552
34553fi
34554fi
34555NM=$ac_cv_prog_NM
34556if test -n "$NM"; then
34557 echo "$as_me:$LINENO: result: $NM" >&5
34558echo "${ECHO_T}$NM" >&6
34559else
34560 echo "$as_me:$LINENO: result: no" >&5
34561echo "${ECHO_T}no" >&6
34562fi
34563
34564fi
34565if test -z "$ac_cv_prog_NM"; then
34566 ac_ct_NM=$NM
34567 # Extract the first word of "nm", so it can be a program name with args.
34568set dummy nm; ac_word=$2
34569echo "$as_me:$LINENO: checking for $ac_word" >&5
34570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34571if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34573else
34574 if test -n "$ac_ct_NM"; then
34575 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
34576else
34577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34578for as_dir in $PATH
34579do
34580 IFS=$as_save_IFS
34581 test -z "$as_dir" && as_dir=.
34582 for ac_exec_ext in '' $ac_executable_extensions; do
34583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34584 ac_cv_prog_ac_ct_NM="nm"
34585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34586 break 2
34587 fi
34588done
34589done
34590
34591 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
34592fi
34593fi
34594ac_ct_NM=$ac_cv_prog_ac_ct_NM
34595if test -n "$ac_ct_NM"; then
34596 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
34597echo "${ECHO_T}$ac_ct_NM" >&6
34598else
34599 echo "$as_me:$LINENO: result: no" >&5
34600echo "${ECHO_T}no" >&6
34601fi
34602
34603 NM=$ac_ct_NM
34604else
34605 NM="$ac_cv_prog_NM"
34606fi
34607
fe0895cf
VS
34608
34609 case ${host} in
34610 *-hp-hpux* )
34611 INSTALL_DIR="mkdir"
34612 ;;
34613 *) INSTALL_DIR="$INSTALL -d"
34614 ;;
34615 esac
e6cc62c6 34616
fe0895cf 34617
6b9d41a5
VS
34618 LDFLAGS_GUI=
34619 case ${host} in
34620 *-*-cygwin* | *-*-mingw32* )
34621 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34622 esac
34623
34624
fe0895cf 34625 fi
e6cc62c6
VS
34626
34627 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34628echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34629if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34630 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34631else
e6cc62c6 34632
fe0895cf
VS
34633 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34634 egrep -s GNU > /dev/null); then
34635 bakefile_cv_prog_makeisgnu="yes"
34636 else
34637 bakefile_cv_prog_makeisgnu="no"
34638 fi
fe0895cf 34639
e6cc62c6 34640fi
49b0a3aa
VS
34641echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34642echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34643
34644 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34645 IF_GNU_MAKE=""
34646 else
34647 IF_GNU_MAKE="#"
34648 fi
fe0895cf 34649
e6cc62c6
VS
34650
34651
fe0895cf
VS
34652 PLATFORM_UNIX=0
34653 PLATFORM_WIN32=0
34654 PLATFORM_MSDOS=0
34655 PLATFORM_MAC=0
34656 PLATFORM_MACOSX=0
96c1699d 34657 PLATFORM_OS2=0
e6cc62c6 34658
fe0895cf
VS
34659 case "${host}" in
34660 *-*-cygwin* | *-*-mingw32* )
34661 PLATFORM_WIN32=1
34662 ;;
96c1699d 34663 *-pc-msdosdjgpp )
fe0895cf
VS
34664 PLATFORM_MSDOS=1
34665 ;;
96c1699d
VS
34666 *-pc-os2_emx | *-pc-os2-emx )
34667 PLATFORM_OS2=1
34668 ;;
fe0895cf
VS
34669 powerpc-*-darwin* )
34670 PLATFORM_MAC=1
34671 PLATFORM_MACOSX=1
34672 ;;
34673 * )
34674 PLATFORM_UNIX=1
34675 ;;
34676 esac
34677
fe0895cf 34678
e6cc62c6
VS
34679
34680
34681
34682
34683
34684
96c1699d 34685
fe0895cf 34686 SO_SUFFIX="so"
131f235d 34687 SO_SUFFIX_MODULE="so"
fe0895cf 34688 EXEEXT=""
4b1f6360 34689 LIBPREFIX=lib
fe0895cf 34690 DLLPREFIX=lib
131f235d 34691 DLLPREFIX_MODULE=
e6cc62c6 34692
fe0895cf
VS
34693 case "${host}" in
34694 *-hp-hpux* )
34695 SO_SUFFIX="sl"
131f235d 34696 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34697 ;;
34698 *-*-aix* )
34699 SO_SUFFIX="a"
131f235d 34700 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34701 ;;
34702 *-*-cygwin* | *-*-mingw32* )
34703 SO_SUFFIX="dll"
131f235d 34704 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34705 EXEEXT=".exe"
34706 DLLPREFIX=""
34707 ;;
4b1f6360
VS
34708 *-pc-msdosdjgpp )
34709 EXEEXT=".exe"
34710 DLLPREFIX=""
34711 ;;
34712 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34713 EXEEXT=".exe"
34714 DLLPREFIX=""
4b1f6360 34715 LIBPREFIX=""
fe0895cf
VS
34716 ;;
34717 powerpc-*-darwin* )
34718 SO_SUFFIX="dylib"
131f235d 34719 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34720 ;;
34721 esac
34722
fe0895cf 34723
e6cc62c6
VS
34724
34725
34726
34727
131f235d
VS
34728
34729
4b1f6360 34730
fe0895cf
VS
34731 SHARED_LD_CC="\$(CC) -shared -o"
34732 SHARED_LD_CXX="\$(CXX) -shared -o"
34733
34734 if test "x$GCC" = "xyes"; then
34735 PIC_FLAG="-fPIC"
34736 fi
34737
34738 case "${host}" in
34739 *-hp-hpux* )
34740 if test "x$GCC" = "xyes"; then
34741 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34742 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34743 else
34744 LDFLAGS="$LDFLAGS -L/usr/lib"
34745
34746 SHARED_LD_CC="${CC} -b -o"
34747 SHARED_LD_CXX="${CXX} -b -o"
34748 PIC_FLAG="+Z"
34749 fi
34750 ;;
34751
34752 *-*-linux* )
34753 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34754 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34755echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34756if test "${bakefile_cv_prog_icc+set}" = set; then
34757 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34758else
fe0895cf 34759
e6cc62c6
VS
34760 cat >conftest.$ac_ext <<_ACEOF
34761#line $LINENO "configure"
34762/* confdefs.h. */
34763_ACEOF
34764cat confdefs.h >>conftest.$ac_ext
34765cat >>conftest.$ac_ext <<_ACEOF
34766/* end confdefs.h. */
34767
34768int
34769main ()
34770{
fe0895cf
VS
34771
34772 #ifndef __INTEL_COMPILER
34773 #error Not icc
34774 #endif
e6cc62c6
VS
34775
34776 ;
34777 return 0;
34778}
34779_ACEOF
34780rm -f conftest.$ac_objext
34781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34782 (eval $ac_compile) 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); } &&
34786 { ac_try='test -s conftest.$ac_objext'
34787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788 (eval $ac_try) 2>&5
34789 ac_status=$?
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; }; then
fe0895cf
VS
34792 bakefile_cv_prog_icc=yes
34793else
e6cc62c6
VS
34794 echo "$as_me: failed program was:" >&5
34795sed 's/^/| /' conftest.$ac_ext >&5
34796
34797bakefile_cv_prog_icc=no
34798
fe0895cf 34799fi
e6cc62c6 34800rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34801
e6cc62c6
VS
34802fi
34803echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34804echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34805 if test "$bakefile_cv_prog_icc" = "yes"; then
34806 PIC_FLAG="-KPIC"
34807 fi
34808 fi
34809 ;;
34810
34811 *-*-solaris2* )
34812 if test "x$GCC" != xyes ; then
34813 SHARED_LD_CC="${CC} -G -o"
34814 SHARED_LD_CXX="${CXX} -G -o"
34815 PIC_FLAG="-KPIC"
34816 fi
34817 ;;
34818
34819 *-*-darwin* )
34820 CFLAGS="$CFLAGS -fno-common"
34821 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34822
34823
2a879853 34824 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
34825echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
34826if test "${wx_cv_gcc31+set}" = set; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34828else
34829
2a879853 34830 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
34831#line $LINENO "configure"
34832/* confdefs.h. */
34833_ACEOF
34834cat confdefs.h >>conftest.$ac_ext
34835cat >>conftest.$ac_ext <<_ACEOF
34836/* end confdefs.h. */
34837
34838int
34839main ()
34840{
34841
2a879853
VS
34842 #if (__GNUC__ < 3) || \
34843 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
34844 #error old gcc
34845 #endif
43948499
RD
34846
34847 ;
34848 return 0;
34849}
34850_ACEOF
34851rm -f conftest.$ac_objext
34852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34853 (eval $ac_compile) 2>&5
34854 ac_status=$?
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); } &&
34857 { ac_try='test -s conftest.$ac_objext'
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34863
2a879853 34864 wx_cv_gcc31=yes
43948499
RD
34865
34866else
34867 echo "$as_me: failed program was:" >&5
34868sed 's/^/| /' conftest.$ac_ext >&5
34869
34870
2a879853 34871 wx_cv_gcc31=no
43948499
RD
34872
34873
34874fi
34875rm -f conftest.$ac_objext conftest.$ac_ext
34876
34877fi
34878echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
34879echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 34880 if test "$wx_cv_gcc31" = "no"; then
43948499 34881 cat <<EOF >shared-ld-sh
fe0895cf
VS
34882#!/bin/sh
34883#-----------------------------------------------------------------------------
34884#-- Name: distrib/mac/shared-ld-sh
34885#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34886#-- Author: Gilles Depeyrot
34887#-- Copyright: (c) 2002 Gilles Depeyrot
34888#-- Licence: any use permitted
34889#-----------------------------------------------------------------------------
34890
34891verbose=0
34892args=""
34893objects=""
131f235d 34894linking_flag="-dynamiclib"
fe0895cf
VS
34895
34896while test \${#} -gt 0; do
34897 case \${1} in
34898
34899 -v)
34900 verbose=1
34901 ;;
34902
34903 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34904 # collect these options and values
34905 args="\${args} \${1} \${2}"
34906 shift
34907 ;;
34908
34909 -l*|-L*|-flat_namespace)
34910 # collect these options
34911 args="\${args} \${1}"
34912 ;;
34913
131f235d
VS
34914 -dynamiclib|-bundle)
34915 linking_flag="\${1}"
fe0895cf
VS
34916 ;;
34917
34918 -*)
34919 echo "shared-ld: unhandled option '\${1}'"
34920 exit 1
34921 ;;
34922
4d264332 34923 *.o | *.a | *.dylib)
fe0895cf
VS
34924 # collect object files
34925 objects="\${objects} \${1}"
34926 ;;
34927
34928 *)
34929 echo "shared-ld: unhandled argument '\${1}'"
34930 exit 1
34931 ;;
34932
34933 esac
34934 shift
34935done
34936
34937#
34938# Link one module containing all the others
34939#
34940if test \${verbose} = 1; then
34941 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34942fi
34943c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34944status=\$?
34945if test \${status} != 0; then
34946 exit \${status}
34947fi
34948
34949#
34950# Link the shared library from the single module created
34951#
34952if test \${verbose} = 1; then
2a879853 34953 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34954fi
131f235d 34955c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34956status=\$?
34957if test \${status} != 0; then
34958 exit \${status}
34959fi
34960
34961#
34962# Remove intermediate module
34963#
34964rm -f master.\$\$.o
34965
34966exit 0
34967EOF
43948499 34968 chmod +x shared-ld-sh
fe0895cf 34969
7f523214
VS
34970 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
34971 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
34972 SHARED_LD_CXX="$SHARED_LD_CC"
34973 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34974 else
7f523214
VS
34975 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
34976 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
34977 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
34978 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
34979 fi
34980
fe0895cf 34981 PIC_FLAG="-dynamic -fPIC"
2a879853 34982 ;;
fe0895cf
VS
34983
34984 *-*-aix* )
34985 if test "x$GCC" != "xyes"; then
34986 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34987set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34988echo "$as_me:$LINENO: checking for $ac_word" >&5
34989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34990if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34991 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34992else
34993 if test -n "$AIX_CXX_LD"; then
34994 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34995else
e6cc62c6
VS
34996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34997for as_dir in $PATH
34998do
34999 IFS=$as_save_IFS
35000 test -z "$as_dir" && as_dir=.
35001 for ac_exec_ext in '' $ac_executable_extensions; do
35002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35003 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
35004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35005 break 2
35006 fi
35007done
35008done
35009
fe0895cf
VS
35010 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
35011fi
35012fi
e6cc62c6 35013AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 35014if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
35015 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
35016echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 35017else
e6cc62c6
VS
35018 echo "$as_me:$LINENO: result: no" >&5
35019echo "${ECHO_T}no" >&6
fe0895cf
VS
35020fi
35021
35022 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
35023 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
35024 fi
35025 ;;
35026
35027 *-*-beos* )
35028 SHARED_LD_CC="${LD} -shared -o"
35029 SHARED_LD_CXX="${LD} -shared -o"
35030 ;;
35031
35032 *-*-irix* )
35033 if test "x$GCC" != "xyes"; then
35034 PIC_FLAG="-KPIC"
35035 fi
35036 ;;
e6cc62c6 35037
fe0895cf
VS
35038 *-*-cygwin* | *-*-mingw32* )
35039 PIC_FLAG=""
35040 ;;
e6cc62c6 35041
fe0895cf
VS
35042 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
35043 *-*-sunos4* | \
35044 *-*-osf* | \
35045 *-*-dgux5* | \
4b1f6360 35046 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
35047 *-*-sysv5* )
35048 ;;
35049
35050 *)
e6cc62c6
VS
35051 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
35052echo "$as_me: error: unknown system type $host." >&2;}
35053 { (exit 1); exit 1; }; }
fe0895cf
VS
35054 esac
35055
131f235d
VS
35056 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
35057 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
35058 fi
35059 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 35060 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
35061 fi
35062
35063
35064
fe0895cf 35065
e6cc62c6
VS
35066
35067
35068
35069
fe0895cf
VS
35070 USE_SOVERSION=0
35071 USE_SOVERLINUX=0
35072 USE_SOVERSOLARIS=0
35073 USE_SOSYMLINKS=0
35074 USE_MACVERSION=0
35075 SONAME_FLAG=
35076
35077 case "${host}" in
35078 *-*-linux* )
35079 SONAME_FLAG="-Wl,-soname,"
35080 USE_SOVERSION=1
35081 USE_SOVERLINUX=1
35082 USE_SOSYMLINKS=1
35083 ;;
35084
35085 *-*-solaris2* )
35086 SONAME_FLAG="-h "
35087 USE_SOVERSION=1
35088 USE_SOVERSOLARIS=1
35089 USE_SOSYMLINKS=1
35090 ;;
35091
35092 *-*-darwin* )
35093 USE_MACVERSION=1
35094 USE_SOVERSION=1
35095 USE_SOSYMLINKS=1
e6cc62c6 35096 ;;
fe0895cf
VS
35097 esac
35098
fe0895cf 35099
e6cc62c6
VS
35100
35101
35102
35103
35104
35105
35106
49b0a3aa
VS
35107 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
35108echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
35109 DEPS_TRACKING=0
35110
fe0895cf 35111 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
35112 DEPSMODE=gcc
35113 DEPS_TRACKING=1
3e5c3c83
VS
35114 case "${host}" in
35115 powerpc-*-darwin* )
35116 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
35117 ;;
35118 * )
35119 DEPSFLAG_GCC="-MMD"
35120 ;;
35121 esac
49b0a3aa
VS
35122 echo "$as_me:$LINENO: result: gcc" >&5
35123echo "${ECHO_T}gcc" >&6
35124 else
35125 echo "$as_me:$LINENO: result: none" >&5
35126echo "${ECHO_T}none" >&6
35127 fi
35128
35129 if test $DEPS_TRACKING = 1 ; then
35130 cat <<EOF >bk-deps
35131#!/bin/sh
35132
45842500
VS
35133# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35134# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
35135#
35136# Permission is given to use this file in any way.
35137
35138DEPSMODE=$DEPSMODE
35139DEPSDIR=.deps
3e5c3c83 35140DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
35141
35142mkdir -p \$DEPSDIR
35143
35144if test \$DEPSMODE = gcc ; then
3e5c3c83 35145 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
35146 status=\${?}
35147 if test \${status} != 0 ; then
35148 exit \${status}
35149 fi
35150 # move created file to the location we want it in:
35151 while test \${#} -gt 0; do
35152 case "\${1}" in
35153 -o )
35154 shift
35155 objfile=\${1}
35156 ;;
35157 -* )
35158 ;;
35159 * )
35160 srcfile=\${1}
35161 ;;
35162 esac
35163 shift
35164 done
35165 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
35166 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
35167 if test -f \$depfile ; then
35168 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
35169 rm -f \$depfile
35170 else
35171 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
35172 if test -f \$depfile ; then
9d0be83a 35173 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
35174 rm -f \$depfile
35175 fi
35176 fi
49b0a3aa
VS
35177 exit 0
35178else
35179 \${*}
35180 exit \${?}
35181fi
35182EOF
35183 chmod +x bk-deps
fe0895cf 35184 fi
fe0895cf 35185
e6cc62c6
VS
35186
35187
35188
fe0895cf
VS
35189 RESCOMP=
35190 SETFILE=
35191
e6cc62c6 35192 case ${host} in
fe0895cf
VS
35193 *-*-cygwin* | *-*-mingw32* )
35194 if test "$build" != "$host" ; then
35195 RESCOMP=$host_alias-windres
35196 else
35197 # Extract the first word of "windres", so it can be a program name with args.
35198set dummy windres; ac_word=$2
e6cc62c6
VS
35199echo "$as_me:$LINENO: checking for $ac_word" >&5
35200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35201if test "${ac_cv_prog_RESCOMP+set}" = set; then
35202 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35203else
35204 if test -n "$RESCOMP"; then
35205 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35206else
e6cc62c6
VS
35207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35208for as_dir in $PATH
35209do
35210 IFS=$as_save_IFS
35211 test -z "$as_dir" && as_dir=.
35212 for ac_exec_ext in '' $ac_executable_extensions; do
35213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35214 ac_cv_prog_RESCOMP="windres"
35215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35216 break 2
35217 fi
35218done
35219done
35220
fe0895cf
VS
35221 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
35222fi
35223fi
e6cc62c6 35224RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35225if test -n "$RESCOMP"; then
e6cc62c6
VS
35226 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35227echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35228else
e6cc62c6
VS
35229 echo "$as_me:$LINENO: result: no" >&5
35230echo "${ECHO_T}no" >&6
fe0895cf
VS
35231fi
35232
35233 fi
35234 ;;
e6cc62c6 35235
fe0895cf
VS
35236 *-*-darwin* )
35237 # Extract the first word of "Rez", so it can be a program name with args.
35238set dummy Rez; ac_word=$2
e6cc62c6
VS
35239echo "$as_me:$LINENO: checking for $ac_word" >&5
35240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35241if test "${ac_cv_prog_RESCOMP+set}" = set; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35243else
35244 if test -n "$RESCOMP"; then
35245 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
35246else
e6cc62c6
VS
35247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35248for as_dir in $PATH
35249do
35250 IFS=$as_save_IFS
35251 test -z "$as_dir" && as_dir=.
35252 for ac_exec_ext in '' $ac_executable_extensions; do
35253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35254 ac_cv_prog_RESCOMP="Rez"
35255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35256 break 2
35257 fi
35258done
35259done
35260
fe0895cf
VS
35261 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35262fi
35263fi
e6cc62c6 35264RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35265if test -n "$RESCOMP"; then
e6cc62c6
VS
35266 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35267echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35268else
e6cc62c6
VS
35269 echo "$as_me:$LINENO: result: no" >&5
35270echo "${ECHO_T}no" >&6
fe0895cf
VS
35271fi
35272
35273 # Extract the first word of "SetFile", so it can be a program name with args.
35274set dummy SetFile; ac_word=$2
e6cc62c6
VS
35275echo "$as_me:$LINENO: checking for $ac_word" >&5
35276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35277if test "${ac_cv_prog_SETFILE+set}" = set; then
35278 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35279else
35280 if test -n "$SETFILE"; then
35281 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35282else
e6cc62c6
VS
35283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35284for as_dir in $PATH
35285do
35286 IFS=$as_save_IFS
35287 test -z "$as_dir" && as_dir=.
35288 for ac_exec_ext in '' $ac_executable_extensions; do
35289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35290 ac_cv_prog_SETFILE="SetFile"
35291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35292 break 2
35293 fi
35294done
35295done
35296
fe0895cf
VS
35297 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35298fi
35299fi
e6cc62c6 35300SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35301if test -n "$SETFILE"; then
e6cc62c6
VS
35302 echo "$as_me:$LINENO: result: $SETFILE" >&5
35303echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35304else
e6cc62c6
VS
35305 echo "$as_me:$LINENO: result: no" >&5
35306echo "${ECHO_T}no" >&6
fe0895cf
VS
35307fi
35308
35309 ;;
35310 esac
35311
fe0895cf
VS
35312
35313
e6cc62c6
VS
35314
35315
35316
35317
45842500 35318
45842500
VS
35319 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35320if test "${enable_precomp_headers+set}" = set; then
35321 enableval="$enable_precomp_headers"
35322 bk_use_pch="$enableval"
35323fi;
35324
35325 GCC_PCH=0
35326
35327 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35328 if test "x$GCC" = "xyes"; then
35329 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35330echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35331 cat >conftest.$ac_ext <<_ACEOF
35332#line $LINENO "configure"
35333/* confdefs.h. */
35334_ACEOF
35335cat confdefs.h >>conftest.$ac_ext
35336cat >>conftest.$ac_ext <<_ACEOF
35337/* end confdefs.h. */
35338
35339int
35340main ()
35341{
35342
8bcf2d20
VS
35343 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35344 #error "no pch support"
35345 #endif
35346 #if (__GNUC__ < 3)
35347 #error "no pch support"
35348 #endif
35349 #if (__GNUC__ == 3) && \
35350 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35351 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35352 #error "no pch support"
45842500
VS
35353 #endif
35354
35355 ;
35356 return 0;
35357}
35358_ACEOF
35359rm -f conftest.$ac_objext
35360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35361 (eval $ac_compile) 2>&5
35362 ac_status=$?
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); } &&
35365 { ac_try='test -s conftest.$ac_objext'
35366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35367 (eval $ac_try) 2>&5
35368 ac_status=$?
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); }; }; then
35371
35372 echo "$as_me:$LINENO: result: yes" >&5
35373echo "${ECHO_T}yes" >&6
35374 CPPFLAGS="-fpch-deps $CPPFLAGS"
35375 GCC_PCH=1
35376
35377else
35378 echo "$as_me: failed program was:" >&5
35379sed 's/^/| /' conftest.$ac_ext >&5
35380
35381
35382 echo "$as_me:$LINENO: result: no" >&5
35383echo "${ECHO_T}no" >&6
35384
35385fi
35386rm -f conftest.$ac_objext conftest.$ac_ext
35387 if test $GCC_PCH = 1 ; then
35388 cat <<EOF >bk-make-pch
35389#!/bin/sh
35390
35391# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35392# script. It is used to generated precompiled headers.
35393#
35394# Permission is given to use this file in any way.
35395
35396outfile="\${1}"
35397header="\${2}"
35398shift
35399shift
35400
35401compiler=
35402headerfile=
35403while test \${#} -gt 0; do
35404 case "\${1}" in
35405 -I* )
35406 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35407 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35408 headerfile="\${incdir}/\${header}"
35409 fi
35410 ;;
35411 esac
35412 compiler="\${compiler} \${1}"
35413 shift
35414done
35415
35416if test "x\${headerfile}" = "x" ; then
35417 echo "error: can't find header \${header} in include paths" >2
35418else
35419 if test -f \${outfile} ; then
35420 rm -f \${outfile}
35421 else
35422 mkdir -p \`dirname \${outfile}\`
35423 fi
35424 depsfile=".deps/\`basename \${outfile}\`.d"
35425 mkdir -p .deps
35426 # can do this because gcc is >= 3.4:
35427 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35428 exit \${?}
35429fi
35430EOF
35431 chmod +x bk-make-pch
35432 fi
35433 fi
35434 fi
35435
35436
35437
35438
35439
d78c94f2 35440 COND_BUILD_DEBUG="#"
6f628073 35441 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35442 COND_BUILD_DEBUG=""
6f628073
VS
35443 fi
35444
6c67131a
VS
35445 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35446 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35447 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35448 fi
35449
35450 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35451 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35452 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35453 fi
35454
d78c94f2 35455 COND_BUILD_RELEASE="#"
6f628073 35456 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35457 COND_BUILD_RELEASE=""
6b9d41a5
VS
35458 fi
35459
6c67131a
VS
35460 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35461 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35462 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35463 fi
35464
35465 COND_DEBUG_FLAG_1="#"
35466 if test "x$DEBUG_FLAG" = "x1" ; then
35467 COND_DEBUG_FLAG_1=""
35468 fi
35469
35470 COND_DEBUG_INFO_0="#"
35471 if test "x$DEBUG_INFO" = "x0" ; then
35472 COND_DEBUG_INFO_0=""
35473 fi
35474
35475 COND_DEBUG_INFO_1="#"
35476 if test "x$DEBUG_INFO" = "x1" ; then
35477 COND_DEBUG_INFO_1=""
35478 fi
35479
f95cd8fa
VS
35480 COND_DEPS_TRACKING_0="#"
35481 if test "x$DEPS_TRACKING" = "x0" ; then
35482 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35483 fi
35484
8ee2dd05
VS
35485 COND_DEPS_TRACKING_1="#"
35486 if test "x$DEPS_TRACKING" = "x1" ; then
35487 COND_DEPS_TRACKING_1=""
35488 fi
35489
45842500
VS
35490 COND_GCC_PCH_1="#"
35491 if test "x$GCC_PCH" = "x1" ; then
35492 COND_GCC_PCH_1=""
35493 fi
35494
6f628073
VS
35495 COND_MONOLITHIC_0="#"
35496 if test "x$MONOLITHIC" = "x0" ; then
35497 COND_MONOLITHIC_0=""
6b9d41a5
VS
35498 fi
35499
6f628073
VS
35500 COND_MONOLITHIC_0_SHARED_0="#"
35501 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35502 COND_MONOLITHIC_0_SHARED_0=""
35503 fi
35504
35505 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35506 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35507 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35508 fi
e6cc62c6 35509
8772a1a7
VS
35510 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35511 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35512 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35513 fi
35514
250700e4
RD
35515 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35516 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35517 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35518 fi
35519
eb69fda5
VS
35520 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35521 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35522 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35523 fi
35524
8ee2dd05
VS
35525 COND_MONOLITHIC_0_SHARED_1="#"
35526 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35527 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35528 fi
e6cc62c6 35529
6f628073
VS
35530 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35531 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35532 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35533 fi
35534
8772a1a7
VS
35535 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35536 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35537 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35538 fi
35539
250700e4
RD
35540 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35541 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35542 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35543 fi
35544
eb69fda5
VS
35545 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35546 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35547 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35548 fi
35549
3af038c0
VS
35550 COND_MONOLITHIC_1="#"
35551 if test "x$MONOLITHIC" = "x1" ; then
35552 COND_MONOLITHIC_1=""
35553 fi
35554
6f628073
VS
35555 COND_MONOLITHIC_1_SHARED_0="#"
35556 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35557 COND_MONOLITHIC_1_SHARED_0=""
35558 fi
35559
35560 COND_MONOLITHIC_1_SHARED_1="#"
35561 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35562 COND_MONOLITHIC_1_SHARED_1=""
35563 fi
35564
3af038c0
VS
35565 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35566 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35567 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35568 fi
35569
35570 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35571 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35572 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35573 fi
35574
6f628073
VS
35575 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35576 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35577 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35578 fi
35579
3af038c0
VS
35580 COND_PLATFORM_MACOSX_1="#"
35581 if test "x$PLATFORM_MACOSX" = "x1" ; then
35582 COND_PLATFORM_MACOSX_1=""
35583 fi
35584
250700e4
RD
35585 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35586 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35587 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35588 fi
35589
35590 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35591 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35592 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35593 fi
35594
35595 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35596 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35597 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35598 fi
35599
3527f29c
VS
35600 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
35601 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
35602 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
35603 fi
35604
8ee2dd05
VS
35605 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35606 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35607 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35608 fi
35609
45842500
VS
35610 COND_PLATFORM_MAC_1="#"
35611 if test "x$PLATFORM_MAC" = "x1" ; then
35612 COND_PLATFORM_MAC_1=""
35613 fi
35614
3d8c1de0
VS
35615 COND_PLATFORM_OS2_1="#"
35616 if test "x$PLATFORM_OS2" = "x1" ; then
35617 COND_PLATFORM_OS2_1=""
35618 fi
35619
8772a1a7
VS
35620 COND_PLATFORM_UNIX_0="#"
35621 if test "x$PLATFORM_UNIX" = "x0" ; then
35622 COND_PLATFORM_UNIX_0=""
35623 fi
35624
3af038c0
VS
35625 COND_PLATFORM_UNIX_1="#"
35626 if test "x$PLATFORM_UNIX" = "x1" ; then
35627 COND_PLATFORM_UNIX_1=""
35628 fi
35629
3527f29c
VS
35630 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
35631 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
35632 COND_PLATFORM_UNIX_1_USE_GUI_1=""
35633 fi
35634
3af038c0
VS
35635 COND_PLATFORM_WIN32_0="#"
35636 if test "x$PLATFORM_WIN32" = "x0" ; then
35637 COND_PLATFORM_WIN32_0=""
35638 fi
35639
35640 COND_PLATFORM_WIN32_1="#"
35641 if test "x$PLATFORM_WIN32" = "x1" ; then
35642 COND_PLATFORM_WIN32_1=""
35643 fi
35644
45842500
VS
35645 COND_SHARED_0="#"
35646 if test "x$SHARED" = "x0" ; then
35647 COND_SHARED_0=""
35648 fi
35649
250700e4
RD
35650 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35651 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35652 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35653 fi
35654
52a5a009
VS
35655 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35656 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35657 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35658 fi
35659
35660 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35661 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35662 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35663 fi
35664
35665 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35666 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35667 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35668 fi
35669
35670 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35671 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35672 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35673 fi
35674
35675 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35676 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35677 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35678 fi
35679
35680 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35681 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35682 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35683 fi
35684
35685 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35686 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35687 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35688 fi
35689
45842500
VS
35690 COND_SHARED_1="#"
35691 if test "x$SHARED" = "x1" ; then
35692 COND_SHARED_1=""
35693 fi
35694
250700e4
RD
35695 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35696 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35697 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35698 fi
35699
6f628073
VS
35700 COND_TOOLKIT_COCOA="#"
35701 if test "x$TOOLKIT" = "xCOCOA" ; then
35702 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35703 fi
35704
6f628073
VS
35705 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35706 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35707 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35708 fi
35709
6f628073
VS
35710 COND_TOOLKIT_GTK="#"
35711 if test "x$TOOLKIT" = "xGTK" ; then
35712 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35713 fi
35714
6f628073
VS
35715 COND_TOOLKIT_GTK_USE_GUI_1="#"
35716 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35717 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35718 fi
35719
6f628073
VS
35720 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35721 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35722 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35723 fi
35724
3af038c0
VS
35725 COND_TOOLKIT_MAC="#"
35726 if test "x$TOOLKIT" = "xMAC" ; then
35727 COND_TOOLKIT_MAC=""
35728 fi
35729
8772a1a7
VS
35730 COND_TOOLKIT_MAC_USE_GUI_1="#"
35731 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35732 COND_TOOLKIT_MAC_USE_GUI_1=""
35733 fi
35734
6f628073
VS
35735 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35736 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35737 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35738 fi
35739
6f628073
VS
35740 COND_TOOLKIT_MGL="#"
35741 if test "x$TOOLKIT" = "xMGL" ; then
35742 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35743 fi
35744
6f628073
VS
35745 COND_TOOLKIT_MGL_USE_GUI_1="#"
35746 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35747 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35748 fi
35749
6f628073
VS
35750 COND_TOOLKIT_MOTIF="#"
35751 if test "x$TOOLKIT" = "xMOTIF" ; then
35752 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35753 fi
35754
6f628073
VS
35755 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35756 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35757 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35758 fi
e6cc62c6 35759
6f628073
VS
35760 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35761 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35762 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35763 fi
35764
6f628073
VS
35765 COND_TOOLKIT_MSW="#"
35766 if test "x$TOOLKIT" = "xMSW" ; then
35767 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35768 fi
35769
6f628073
VS
35770 COND_TOOLKIT_MSW_USE_GUI_1="#"
35771 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35772 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35773 fi
e6cc62c6 35774
6f628073
VS
35775 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35776 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35777 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35778 fi
e6cc62c6 35779
96c1699d
VS
35780 COND_TOOLKIT_PM="#"
35781 if test "x$TOOLKIT" = "xPM" ; then
35782 COND_TOOLKIT_PM=""
35783 fi
35784
35785 COND_TOOLKIT_PM_USE_GUI_1="#"
35786 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35787 COND_TOOLKIT_PM_USE_GUI_1=""
35788 fi
35789
35790 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35791 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35792 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35793 fi
35794
6f628073
VS
35795 COND_TOOLKIT_X11="#"
35796 if test "x$TOOLKIT" = "xX11" ; then
35797 COND_TOOLKIT_X11=""
9747f85d
VS
35798 fi
35799
6f628073
VS
35800 COND_TOOLKIT_X11_USE_GUI_1="#"
35801 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35802 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35803 fi
35804
3af038c0
VS
35805 COND_UNICODE_1="#"
35806 if test "x$UNICODE" = "x1" ; then
35807 COND_UNICODE_1=""
35808 fi
35809
7015ef3a
VZ
35810 COND_USE_EXCEPTIONS_0="#"
35811 if test "x$USE_EXCEPTIONS" = "x0" ; then
35812 COND_USE_EXCEPTIONS_0=""
35813 fi
35814
35815 COND_USE_EXCEPTIONS_1="#"
35816 if test "x$USE_EXCEPTIONS" = "x1" ; then
35817 COND_USE_EXCEPTIONS_1=""
35818 fi
35819
3af038c0
VS
35820 COND_USE_GUI_0="#"
35821 if test "x$USE_GUI" = "x0" ; then
35822 COND_USE_GUI_0=""
35823 fi
35824
35825 COND_USE_GUI_1="#"
35826 if test "x$USE_GUI" = "x1" ; then
35827 COND_USE_GUI_1=""
35828 fi
35829
e6cc62c6 35830 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35831 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35832 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35833 fi
e6cc62c6
VS
35834
35835 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35836 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35837 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35838 fi
35839
66a96744
VS
35840 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35841 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35842 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35843 fi
35844
35845 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35846 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35847 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35848 fi
35849
35850 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35851 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35852 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35853 fi
35854
57e7d4ac
VS
35855 COND_USE_ODBC_1="#"
35856 if test "x$USE_ODBC" = "x1" ; then
35857 COND_USE_ODBC_1=""
35858 fi
35859
6f628073
VS
35860 COND_USE_SOSYMLINKS_1="#"
35861 if test "x$USE_SOSYMLINKS" = "x1" ; then
35862 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35863 fi
35864
6f628073
VS
35865 COND_USE_SOVERLINUX_1="#"
35866 if test "x$USE_SOVERLINUX" = "x1" ; then
35867 COND_USE_SOVERLINUX_1=""
b625909c
VS
35868 fi
35869
6f628073
VS
35870 COND_USE_SOVERSION_0="#"
35871 if test "x$USE_SOVERSION" = "x0" ; then
35872 COND_USE_SOVERSION_0=""
fddeb06b 35873 fi
fe0895cf 35874
6f628073
VS
35875 COND_USE_SOVERSOLARIS_1="#"
35876 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35877 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35878 fi
fe0895cf 35879
3af038c0
VS
35880 COND_WXUNIV_1="#"
35881 if test "x$WXUNIV" = "x1" ; then
35882 COND_WXUNIV_1=""
35883 fi
35884
66a96744
VS
35885 COND_WXUSE_EXPAT_BUILTIN="#"
35886 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35887 COND_WXUSE_EXPAT_BUILTIN=""
35888 fi
35889
02980527
VS
35890 COND_WXUSE_LIBJPEG_BUILTIN="#"
35891 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35892 COND_WXUSE_LIBJPEG_BUILTIN=""
35893 fi
35894
35895 COND_WXUSE_LIBPNG_BUILTIN="#"
35896 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35897 COND_WXUSE_LIBPNG_BUILTIN=""
35898 fi
35899
35900 COND_WXUSE_LIBTIFF_BUILTIN="#"
35901 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35902 COND_WXUSE_LIBTIFF_BUILTIN=""
35903 fi
35904
35905 COND_WXUSE_ODBC_BUILTIN="#"
35906 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35907 COND_WXUSE_ODBC_BUILTIN=""
35908 fi
35909
35910 COND_WXUSE_REGEX_BUILTIN="#"
35911 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35912 COND_WXUSE_REGEX_BUILTIN=""
35913 fi
35914
35915 COND_WXUSE_ZLIB_BUILTIN="#"
35916 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35917 COND_WXUSE_ZLIB_BUILTIN=""
35918 fi
35919
1772d20c 35920
fe0895cf 35921
fe0895cf 35922
fe0895cf 35923
45842500
VS
35924if test $GCC_PCH = 1 ; then
35925 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35926else
35927 case "${host}" in
35928 powerpc-*-darwin* )
35929 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35930 ;;
45842500
VS
35931 esac
35932fi
2c6f14e1
VS
35933case "${host}" in
35934 powerpc-*-darwin* )
35935 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35936 ;;
35937esac
fe0895cf
VS
35938
35939
fddeb06b 35940SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
fe0895cf 36035
f0290fca
VS
36036
36037
67c13b6c 36038
e6cc62c6
VS
36039
36040
36041echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36042echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
36043set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
36044if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36045 echo $ECHO_N "(cached) $ECHO_C" >&6
36046else
36047 cat >conftest.make <<\_ACEOF
36048all:
36049 @echo 'ac_maketemp="$(MAKE)"'
36050_ACEOF
36051# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36052eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36053if test -n "$ac_maketemp"; then
36054 eval ac_cv_prog_make_${ac_make}_set=yes
36055else
36056 eval ac_cv_prog_make_${ac_make}_set=no
36057fi
36058rm -f conftest.make
36059fi
36060if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36061 echo "$as_me:$LINENO: result: yes" >&5
36062echo "${ECHO_T}yes" >&6
36063 SET_MAKE=
36064else
36065 echo "$as_me:$LINENO: result: no" >&5
36066echo "${ECHO_T}no" >&6
36067 SET_MAKE="MAKE=${MAKE-make}"
36068fi
36069
36070
36071if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
36072 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
36073fi
36074
36075 ac_config_headers="$ac_config_headers setup.h"
36076
36077
81345eef 36078 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
36079
36080
36081 ac_config_commands="$ac_config_commands default"
36082
36083
9de9b8f0 36084
6c3e36af
VZ
36085if test "$wxUSE_GUI" = "yes"; then
36086 SUBDIRS="samples demos utils contrib"
36087else SUBDIRS="samples utils"
36088fi
e6cc62c6 36089
166263e6 36090for subdir in `echo $SUBDIRS`; do
9747f85d 36091 if test -d ${srcdir}/${subdir} ; then
6c3e36af 36092 if test "$wxUSE_GUI" = "yes"; then
166263e6 36093 if test ${subdir} = "samples"; then
8772a1a7
VS
36094 makefiles="samples/Makefile.in $makefiles"
36095 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
36096 if test -d $srcdir/samples/$sample; then
36097 makefiles="samples/$sample/Makefile.in $makefiles"
36098 fi
36099 done
36100 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
36101 fi
6c3e36af 36102 else if test ${subdir} = "samples"; then
8772a1a7 36103 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 36104 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
36105 utils/HelpGen/src/Makefile.in \
36106 utils/tex2rtf/Makefile.in \
36107 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
36108 fi
36109 fi
36110
9747f85d
VS
36111 for mkin in $makefiles ; do
36112 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
36113 ac_config_files="$ac_config_files $mk"
e6cc62c6 36114
9747f85d
VS
36115 done
36116 fi
36117done
e6cc62c6 36118
9de9b8f0 36119
e6cc62c6
VS
36120cat >confcache <<\_ACEOF
36121# This file is a shell script that caches the results of configure
36122# tests run on this system so they can be shared between configure
36123# scripts and configure runs, see configure's option --config-cache.
36124# It is not useful on other systems. If it contains results you don't
36125# want to keep, you may remove or edit it.
36126#
36127# config.status only pays attention to the cache file if you give it
36128# the --recheck option to rerun configure.
36129#
36130# `ac_cv_env_foo' variables (set or unset) will be overridden when
36131# loading this file, other *unset* `ac_cv_foo' will be assigned the
36132# following values.
36133
36134_ACEOF
36135
36136# The following way of writing the cache mishandles newlines in values,
36137# but we know of no workaround that is simple, portable, and efficient.
36138# So, don't put newlines in cache variables' values.
36139# Ultrix sh set writes to stderr and can't be redirected directly,
36140# and sets the high bit in the cache file unless we assign to the vars.
36141{
36142 (set) 2>&1 |
36143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36144 *ac_space=\ *)
36145 # `set' does not quote correctly, so add quotes (double-quote
36146 # substitution turns \\\\ into \\, and sed turns \\ into \).
36147 sed -n \
36148 "s/'/'\\\\''/g;
36149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36150 ;;
36151 *)
36152 # `set' quotes correctly as required by POSIX, so do not add quotes.
36153 sed -n \
36154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
36155 ;;
36156 esac;
36157} |
36158 sed '
36159 t clear
36160 : clear
36161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36162 t end
36163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36164 : end' >>confcache
36165if diff $cache_file confcache >/dev/null 2>&1; then :; else
36166 if test -w $cache_file; then
36167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36168 cat confcache >$cache_file
36169 else
36170 echo "not updating unwritable cache $cache_file"
36171 fi
36172fi
36173rm -f confcache
36174
36175test "x$prefix" = xNONE && prefix=$ac_default_prefix
36176# Let make expand exec_prefix.
36177test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36178
36179# VPATH may cause trouble with some makes, so we remove $(srcdir),
36180# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36181# trailing colons and then remove the whole line if VPATH becomes empty
36182# (actually we leave an empty line to preserve line numbers).
36183if test "x$srcdir" = x.; then
36184 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36185s/:*\$(srcdir):*/:/;
36186s/:*\${srcdir}:*/:/;
36187s/:*@srcdir@:*/:/;
36188s/^\([^=]*=[ ]*\):*/\1/;
36189s/:*$//;
36190s/^[^=]*=[ ]*$//;
36191}'
36192fi
36193
36194DEFS=-DHAVE_CONFIG_H
36195
36196ac_libobjs=
36197ac_ltlibobjs=
36198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36199 # 1. Remove the extension, and $U if already installed.
36200 ac_i=`echo "$ac_i" |
36201 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
36202 # 2. Add them.
36203 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
36204 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
36205done
36206LIBOBJS=$ac_libobjs
36207
36208LTLIBOBJS=$ac_ltlibobjs
36209
36210
36211
36212: ${CONFIG_STATUS=./config.status}
36213ac_clean_files_save=$ac_clean_files
36214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36215{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36216echo "$as_me: creating $CONFIG_STATUS" >&6;}
36217cat >$CONFIG_STATUS <<_ACEOF
36218#! $SHELL
36219# Generated by $as_me.
36220# Run this file to recreate the current configuration.
36221# Compiler output produced by configure, useful for debugging
36222# configure, is in config.log if it exists.
36223
36224debug=false
36225ac_cs_recheck=false
36226ac_cs_silent=false
36227SHELL=\${CONFIG_SHELL-$SHELL}
36228_ACEOF
36229
36230cat >>$CONFIG_STATUS <<\_ACEOF
36231## --------------------- ##
36232## M4sh Initialization. ##
36233## --------------------- ##
36234
36235# Be Bourne compatible
36236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36237 emulate sh
36238 NULLCMD=:
36239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36240 # is contrary to our usage. Disable this feature.
36241 alias -g '${1+"$@"}'='"$@"'
36242elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36243 set -o posix
36244fi
36245
36246# Support unset when possible.
36247if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36248 as_unset=unset
36249else
36250 as_unset=false
36251fi
36252
36253
36254# Work around bugs in pre-3.0 UWIN ksh.
36255$as_unset ENV MAIL MAILPATH
36256PS1='$ '
36257PS2='> '
36258PS4='+ '
36259
36260# NLS nuisances.
36261for as_var in \
36262 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36263 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36264 LC_TELEPHONE LC_TIME
36265do
36266 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
36267 eval $as_var=C; export $as_var
36268 else
36269 $as_unset $as_var
36270 fi
36271done
36272
36273# Required to use basename.
36274if expr a : '\(a\)' >/dev/null 2>&1; then
36275 as_expr=expr
36276else
36277 as_expr=false
36278fi
36279
36280if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36281 as_basename=basename
36282else
36283 as_basename=false
36284fi
36285
36286
36287# Name of the executable.
36288as_me=`$as_basename "$0" ||
36289$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36290 X"$0" : 'X\(//\)$' \| \
36291 X"$0" : 'X\(/\)$' \| \
36292 . : '\(.\)' 2>/dev/null ||
36293echo X/"$0" |
36294 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36295 /^X\/\(\/\/\)$/{ s//\1/; q; }
36296 /^X\/\(\/\).*/{ s//\1/; q; }
36297 s/.*/./; q'`
36298
36299
36300# PATH needs CR, and LINENO needs CR and PATH.
36301# Avoid depending upon Character Ranges.
36302as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36303as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36304as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36305as_cr_digits='0123456789'
36306as_cr_alnum=$as_cr_Letters$as_cr_digits
36307
36308# The user is always right.
36309if test "${PATH_SEPARATOR+set}" != set; then
36310 echo "#! /bin/sh" >conf$$.sh
36311 echo "exit 0" >>conf$$.sh
36312 chmod +x conf$$.sh
36313 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36314 PATH_SEPARATOR=';'
36315 else
36316 PATH_SEPARATOR=:
36317 fi
36318 rm -f conf$$.sh
36319fi
36320
36321
36322 as_lineno_1=$LINENO
36323 as_lineno_2=$LINENO
36324 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36325 test "x$as_lineno_1" != "x$as_lineno_2" &&
36326 test "x$as_lineno_3" = "x$as_lineno_2" || {
36327 # Find who we are. Look in the path if we contain no path at all
36328 # relative or not.
36329 case $0 in
36330 *[\\/]* ) as_myself=$0 ;;
36331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36332for as_dir in $PATH
36333do
36334 IFS=$as_save_IFS
36335 test -z "$as_dir" && as_dir=.
36336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36337done
36338
36339 ;;
36340 esac
36341 # We did not find ourselves, most probably we were run as `sh COMMAND'
36342 # in which case we are not to be found in the path.
36343 if test "x$as_myself" = x; then
36344 as_myself=$0
36345 fi
36346 if test ! -f "$as_myself"; then
36347 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36348echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36349 { (exit 1); exit 1; }; }
36350 fi
36351 case $CONFIG_SHELL in
36352 '')
36353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36354for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36355do
36356 IFS=$as_save_IFS
36357 test -z "$as_dir" && as_dir=.
36358 for as_base in sh bash ksh sh5; do
36359 case $as_dir in
36360 /*)
36361 if ("$as_dir/$as_base" -c '
36362 as_lineno_1=$LINENO
36363 as_lineno_2=$LINENO
36364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36365 test "x$as_lineno_1" != "x$as_lineno_2" &&
36366 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36367 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36368 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36369 CONFIG_SHELL=$as_dir/$as_base
36370 export CONFIG_SHELL
36371 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36372 fi;;
36373 esac
36374 done
36375done
36376;;
36377 esac
36378
36379 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36380 # uniformly replaced by the line number. The first 'sed' inserts a
36381 # line-number line before each line; the second 'sed' does the real
36382 # work. The second script uses 'N' to pair each line-number line
36383 # with the numbered line, and appends trailing '-' during
36384 # substitution so that $LINENO is not a special case at line end.
36385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36386 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36387 sed '=' <$as_myself |
36388 sed '
36389 N
36390 s,$,-,
36391 : loop
36392 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36393 t loop
36394 s,-$,,
36395 s,^['$as_cr_digits']*\n,,
36396 ' >$as_me.lineno &&
36397 chmod +x $as_me.lineno ||
36398 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36399echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36400 { (exit 1); exit 1; }; }
36401
36402 # Don't try to exec as it changes $[0], causing all sort of problems
36403 # (the dirname of $[0] is not the place where we might find the
36404 # original and so on. Autoconf is especially sensible to this).
36405 . ./$as_me.lineno
36406 # Exit status is that of the last command.
36407 exit
36408}
36409
36410
36411case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36412 *c*,-n*) ECHO_N= ECHO_C='
36413' ECHO_T=' ' ;;
36414 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36415 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36416esac
36417
36418if expr a : '\(a\)' >/dev/null 2>&1; then
36419 as_expr=expr
36420else
36421 as_expr=false
36422fi
36423
36424rm -f conf$$ conf$$.exe conf$$.file
36425echo >conf$$.file
36426if ln -s conf$$.file conf$$ 2>/dev/null; then
36427 # We could just check for DJGPP; but this test a) works b) is more generic
36428 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36429 if test -f conf$$.exe; then
36430 # Don't use ln at all; we don't have any links
36431 as_ln_s='cp -p'
36432 else
36433 as_ln_s='ln -s'
36434 fi
36435elif ln conf$$.file conf$$ 2>/dev/null; then
36436 as_ln_s=ln
36437else
36438 as_ln_s='cp -p'
36439fi
36440rm -f conf$$ conf$$.exe conf$$.file
36441
36442if mkdir -p . 2>/dev/null; then
36443 as_mkdir_p=:
36444else
36445 as_mkdir_p=false
36446fi
36447
36448as_executable_p="test -f"
36449
36450# Sed expression to map a string onto a valid CPP name.
36451as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36452
36453# Sed expression to map a string onto a valid variable name.
36454as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36455
36456
36457# IFS
36458# We need space, tab and new line, in precisely that order.
36459as_nl='
36460'
36461IFS=" $as_nl"
36462
36463# CDPATH.
36464$as_unset CDPATH
36465
36466exec 6>&1
36467
36468# Open the log real soon, to keep \$[0] and so on meaningful, and to
36469# report actual input values of CONFIG_FILES etc. instead of their
36470# values after options handling. Logging --version etc. is OK.
36471exec 5>>config.log
36472{
36473 echo
36474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36475## Running $as_me. ##
36476_ASBOX
36477} >&5
36478cat >&5 <<_CSEOF
36479
e46d2a18 36480This file was extended by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
36481generated by GNU Autoconf 2.57. Invocation command line was
36482
36483 CONFIG_FILES = $CONFIG_FILES
36484 CONFIG_HEADERS = $CONFIG_HEADERS
36485 CONFIG_LINKS = $CONFIG_LINKS
36486 CONFIG_COMMANDS = $CONFIG_COMMANDS
36487 $ $0 $@
36488
36489_CSEOF
36490echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36491echo >&5
36492_ACEOF
36493
36494# Files that config.status was made for.
36495if test -n "$ac_config_files"; then
36496 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36497fi
36498
36499if test -n "$ac_config_headers"; then
36500 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36501fi
36502
36503if test -n "$ac_config_links"; then
36504 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36505fi
36506
36507if test -n "$ac_config_commands"; then
36508 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36509fi
36510
36511cat >>$CONFIG_STATUS <<\_ACEOF
36512
36513ac_cs_usage="\
36514\`$as_me' instantiates files from templates according to the
36515current configuration.
36516
36517Usage: $0 [OPTIONS] [FILE]...
36518
36519 -h, --help print this help, then exit
36520 -V, --version print version number, then exit
36521 -q, --quiet do not print progress messages
36522 -d, --debug don't remove temporary files
36523 --recheck update $as_me by reconfiguring in the same conditions
36524 --file=FILE[:TEMPLATE]
36525 instantiate the configuration file FILE
36526 --header=FILE[:TEMPLATE]
36527 instantiate the configuration header FILE
36528
36529Configuration files:
36530$config_files
36531
36532Configuration headers:
36533$config_headers
36534
36535Configuration commands:
36536$config_commands
36537
36538Report bugs to <bug-autoconf@gnu.org>."
36539_ACEOF
36540
36541cat >>$CONFIG_STATUS <<_ACEOF
36542ac_cs_version="\\
e46d2a18 36543wxWindows config.status 2.5.1
e6cc62c6
VS
36544configured by $0, generated by GNU Autoconf 2.57,
36545 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36546
36547Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36548Free Software Foundation, Inc.
36549This config.status script is free software; the Free Software Foundation
36550gives unlimited permission to copy, distribute and modify it."
36551srcdir=$srcdir
36552INSTALL="$INSTALL"
36553_ACEOF
36554
36555cat >>$CONFIG_STATUS <<\_ACEOF
36556# If no file are specified by the user, then we need to provide default
36557# value. By we need to know if files were specified by the user.
36558ac_need_defaults=:
36559while test $# != 0
36560do
36561 case $1 in
36562 --*=*)
36563 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36564 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36565 ac_shift=:
36566 ;;
36567 -*)
36568 ac_option=$1
36569 ac_optarg=$2
36570 ac_shift=shift
36571 ;;
36572 *) # This is not an option, so the user has probably given explicit
36573 # arguments.
36574 ac_option=$1
36575 ac_need_defaults=false;;
36576 esac
36577
36578 case $ac_option in
36579 # Handling of the options.
36580_ACEOF
36581cat >>$CONFIG_STATUS <<\_ACEOF
36582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36583 ac_cs_recheck=: ;;
36584 --version | --vers* | -V )
36585 echo "$ac_cs_version"; exit 0 ;;
36586 --he | --h)
36587 # Conflict between --help and --header
36588 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36589Try \`$0 --help' for more information." >&5
36590echo "$as_me: error: ambiguous option: $1
36591Try \`$0 --help' for more information." >&2;}
36592 { (exit 1); exit 1; }; };;
36593 --help | --hel | -h )
36594 echo "$ac_cs_usage"; exit 0 ;;
36595 --debug | --d* | -d )
36596 debug=: ;;
36597 --file | --fil | --fi | --f )
36598 $ac_shift
36599 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36600 ac_need_defaults=false;;
36601 --header | --heade | --head | --hea )
36602 $ac_shift
36603 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36604 ac_need_defaults=false;;
36605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36607 ac_cs_silent=: ;;
36608
36609 # This is an error.
36610 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36611Try \`$0 --help' for more information." >&5
36612echo "$as_me: error: unrecognized option: $1
36613Try \`$0 --help' for more information." >&2;}
36614 { (exit 1); exit 1; }; } ;;
36615
36616 *) ac_config_targets="$ac_config_targets $1" ;;
36617
36618 esac
36619 shift
36620done
36621
36622ac_configure_extra_args=
36623
36624if $ac_cs_silent; then
36625 exec 6>/dev/null
36626 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36627fi
36628
e6cc62c6
VS
36629_ACEOF
36630cat >>$CONFIG_STATUS <<_ACEOF
36631if \$ac_cs_recheck; then
36632 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36633 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36634fi
36635
e6cc62c6 36636_ACEOF
fe0895cf 36637
e6cc62c6 36638cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36639#
e6cc62c6 36640# INIT-COMMANDS section.
10f2d63a 36641#
10f2d63a 36642
a0b9e27f 36643
e6cc62c6
VS
36644 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36645 LN_S="${LN_S}"
10f2d63a 36646
10f2d63a 36647
10f2d63a 36648
e6cc62c6 36649_ACEOF
8284b0c5 36650
52127426 36651
247f5006 36652
e6cc62c6
VS
36653cat >>$CONFIG_STATUS <<\_ACEOF
36654for ac_config_target in $ac_config_targets
247f5006 36655do
e6cc62c6
VS
36656 case "$ac_config_target" in
36657 # Handling of arguments.
81345eef
VZ
36658 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36659 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36660 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36661 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36662 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36663 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36664 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36665echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36666 { (exit 1); exit 1; }; };;
247f5006
VZ
36667 esac
36668done
36669
e6cc62c6
VS
36670# If the user did not use the arguments to specify the items to instantiate,
36671# then the envvar interface is used. Set only those that are not.
36672# We use the long form for the default assignment because of an extremely
36673# bizarre bug on SunOS 4.1.3.
36674if $ac_need_defaults; then
36675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36678fi
36679
36680# Have a temporary directory for convenience. Make it in the build tree
36681# simply because there is no reason to put it here, and in addition,
36682# creating and moving files from /tmp can sometimes cause problems.
36683# Create a temporary directory, and hook for its removal unless debugging.
36684$debug ||
36685{
36686 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36687 trap '{ (exit 1); exit 1; }' 1 2 13 15
36688}
247f5006 36689
e6cc62c6 36690# Create a (secure) tmp directory for tmp files.
247f5006 36691
e6cc62c6
VS
36692{
36693 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36694 test -n "$tmp" && test -d "$tmp"
36695} ||
36696{
36697 tmp=./confstat$$-$RANDOM
36698 (umask 077 && mkdir $tmp)
36699} ||
36700{
36701 echo "$me: cannot create a temporary directory in ." >&2
36702 { (exit 1); exit 1; }
36703}
36704
36705_ACEOF
36706
36707cat >>$CONFIG_STATUS <<_ACEOF
36708
36709#
36710# CONFIG_FILES section.
36711#
247f5006 36712
e6cc62c6
VS
36713# No need to generate the scripts if there are no CONFIG_FILES.
36714# This happens for instance when ./config.status config.h
36715if test -n "\$CONFIG_FILES"; then
36716 # Protect against being on the right side of a sed subst in config.status.
36717 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36718 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36719s,@SHELL@,$SHELL,;t t
36720s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36721s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36722s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36723s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36724s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36725s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36726s,@exec_prefix@,$exec_prefix,;t t
36727s,@prefix@,$prefix,;t t
36728s,@program_transform_name@,$program_transform_name,;t t
36729s,@bindir@,$bindir,;t t
36730s,@sbindir@,$sbindir,;t t
36731s,@libexecdir@,$libexecdir,;t t
36732s,@datadir@,$datadir,;t t
36733s,@sysconfdir@,$sysconfdir,;t t
36734s,@sharedstatedir@,$sharedstatedir,;t t
36735s,@localstatedir@,$localstatedir,;t t
36736s,@libdir@,$libdir,;t t
36737s,@includedir@,$includedir,;t t
36738s,@oldincludedir@,$oldincludedir,;t t
36739s,@infodir@,$infodir,;t t
36740s,@mandir@,$mandir,;t t
36741s,@build_alias@,$build_alias,;t t
36742s,@host_alias@,$host_alias,;t t
36743s,@target_alias@,$target_alias,;t t
36744s,@DEFS@,$DEFS,;t t
36745s,@ECHO_C@,$ECHO_C,;t t
36746s,@ECHO_N@,$ECHO_N,;t t
36747s,@ECHO_T@,$ECHO_T,;t t
36748s,@LIBS@,$LIBS,;t t
36749s,@build@,$build,;t t
36750s,@build_cpu@,$build_cpu,;t t
36751s,@build_vendor@,$build_vendor,;t t
36752s,@build_os@,$build_os,;t t
36753s,@host@,$host,;t t
36754s,@host_cpu@,$host_cpu,;t t
36755s,@host_vendor@,$host_vendor,;t t
36756s,@host_os@,$host_os,;t t
36757s,@target@,$target,;t t
36758s,@target_cpu@,$target_cpu,;t t
36759s,@target_vendor@,$target_vendor,;t t
36760s,@target_os@,$target_os,;t t
36761s,@CC@,$CC,;t t
36762s,@CFLAGS@,$CFLAGS,;t t
36763s,@LDFLAGS@,$LDFLAGS,;t t
36764s,@CPPFLAGS@,$CPPFLAGS,;t t
36765s,@ac_ct_CC@,$ac_ct_CC,;t t
36766s,@EXEEXT@,$EXEEXT,;t t
36767s,@OBJEXT@,$OBJEXT,;t t
36768s,@CPP@,$CPP,;t t
36769s,@EGREP@,$EGREP,;t t
36770s,@CXX@,$CXX,;t t
36771s,@CXXFLAGS@,$CXXFLAGS,;t t
36772s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36773s,@RANLIB@,$RANLIB,;t t
36774s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36775s,@AR@,$AR,;t t
36776s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36777s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36778s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36779s,@STRIP@,$STRIP,;t t
36780s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36781s,@LN_S@,$LN_S,;t t
36782s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36783s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36784s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36785s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36786s,@GTK_LIBS@,$GTK_LIBS,;t t
36787s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36788s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36789s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36790s,@X_CFLAGS@,$X_CFLAGS,;t t
36791s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36792s,@X_LIBS@,$X_LIBS,;t t
36793s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36794s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36795s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36796s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36797s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36798s,@RESCOMP@,$RESCOMP,;t t
36799s,@DEREZ@,$DEREZ,;t t
36800s,@SETFILE@,$SETFILE,;t t
36801s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36802s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36803s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36804s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36805s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36806s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36807s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36808s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36809s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36810s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36811s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36812s,@VENDOR@,$VENDOR,;t t
36813s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36814s,@WXUNIV@,$WXUNIV,;t t
36815s,@MONOLITHIC@,$MONOLITHIC,;t t
36816s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36817s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 36818s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 36819s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36820s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36821s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36822s,@UNICODE@,$UNICODE,;t t
36823s,@BUILD@,$BUILD,;t t
6c67131a
VS
36824s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36825s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36826s,@SHARED@,$SHARED,;t t
36827s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36828s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36829s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36830s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36831s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36832s,@SET_MAKE@,$SET_MAKE,;t t
36833s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
36834s,@ac_ct_AR@,$ac_ct_AR,;t t
36835s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36836s,@NM@,$NM,;t t
36837s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 36838s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36839s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36840s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36841s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36842s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36843s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36844s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36845s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36846s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36847s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36848s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36849s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36850s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36851s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36852s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36853s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36854s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36855s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36856s,@PIC_FLAG@,$PIC_FLAG,;t t
36857s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36858s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36859s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36860s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36861s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36862s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36863s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36864s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36865s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36866s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36867s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36868s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36869s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36870s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36871s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36872s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36873s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36874s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36875s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36876s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36877s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36878s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36879s,@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 36880s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36881s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36882s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36883s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36884s,@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 36885s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36886s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36887s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36888s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36889s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36890s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36891s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36892s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36893s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36894s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36895s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36896s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 36897s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 36898s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36899s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36900s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36901s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 36902s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 36903s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
36904s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36905s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36906s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36907s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36908s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36909s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36910s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36911s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36912s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36913s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36914s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36915s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36916s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36917s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36918s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36919s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36920s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36921s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36922s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36923s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36924s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36925s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36926s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36927s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36928s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36929s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36930s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36931s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36932s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36933s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36934s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36935s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36936s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36937s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 36938s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
36939s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
36940s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
36941s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36942s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36943s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36944s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36945s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36946s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36947s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 36948s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
36949s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36950s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36951s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36952s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36953s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36954s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36955s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36956s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36957s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36958s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36959s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36960s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36961s,@PATH_IFS@,$PATH_IFS,;t t
36962s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36963s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36964s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36965s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36966s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36967s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36968s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36969s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36970s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36971s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36972s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36973s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36974s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36975s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36976s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36977s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36978s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36979s,@WX_ALL@,$WX_ALL,;t t
36980s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36981s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36982s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36983s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36984s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36985s,@USE_GUI@,$USE_GUI,;t t
36986s,@AFMINSTALL@,$AFMINSTALL,;t t
36987s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36988s,@TOOLKIT@,$TOOLKIT,;t t
36989s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36990s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36991s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36992s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36993s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36994s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36995s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36996s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36997s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36998s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36999s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
37000s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
37001s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
37002s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 37003s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 37004s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
37005s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
37006s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
37007s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
37008s,@ALL_HEADERS@,$ALL_HEADERS,;t t
37009s,@ALL_SOURCES@,$ALL_SOURCES,;t t
37010s,@GUIDIST@,$GUIDIST,;t t
37011s,@PORT_FILES@,$PORT_FILES,;t t
37012s,@DISTDIR@,$DISTDIR,;t t
37013s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
37014s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
37015s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
37016s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
37017s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
37018s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
37019s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
37020s,@RESFLAGS@,$RESFLAGS,;t t
37021s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
37022s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
37023s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
37024s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
37025s,@LIBWXMACRES@,$LIBWXMACRES,;t t
37026s,@MACRESCOMP@,$MACRESCOMP,;t t
37027s,@MACSETFILE@,$MACSETFILE,;t t
37028s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
37029s,@GCC@,$GCC,;t t
37030s,@DLLTOOL@,$DLLTOOL,;t t
37031s,@AS@,$AS,;t t
e6cc62c6
VS
37032s,@LD@,$LD,;t t
37033s,@MAKEINFO@,$MAKEINFO,;t t
37034s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
37035s,@LIBOBJS@,$LIBOBJS,;t t
37036s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
37037CEOF
37038
e6cc62c6
VS
37039_ACEOF
37040
37041 cat >>$CONFIG_STATUS <<\_ACEOF
37042 # Split the substitutions into bite-sized pieces for seds with
37043 # small command number limits, like on Digital OSF/1 and HP-UX.
37044 ac_max_sed_lines=48
37045 ac_sed_frag=1 # Number of current file.
37046 ac_beg=1 # First line for current file.
37047 ac_end=$ac_max_sed_lines # Line after last line for current file.
37048 ac_more_lines=:
37049 ac_sed_cmds=
37050 while $ac_more_lines; do
37051 if test $ac_beg -gt 1; then
37052 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 37053 else
e6cc62c6
VS
37054 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37055 fi
37056 if test ! -s $tmp/subs.frag; then
37057 ac_more_lines=false
37058 else
37059 # The purpose of the label and of the branching condition is to
37060 # speed up the sed processing (if there are no `@' at all, there
37061 # is no need to browse any of the substitutions).
37062 # These are the two extra sed commands mentioned above.
37063 (echo ':t
37064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37065 if test -z "$ac_sed_cmds"; then
37066 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37067 else
37068 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37069 fi
37070 ac_sed_frag=`expr $ac_sed_frag + 1`
37071 ac_beg=$ac_end
37072 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 37073 fi
e6cc62c6
VS
37074 done
37075 if test -z "$ac_sed_cmds"; then
37076 ac_sed_cmds=cat
10f2d63a 37077 fi
e6cc62c6 37078fi # test -n "$CONFIG_FILES"
10f2d63a 37079
e6cc62c6
VS
37080_ACEOF
37081cat >>$CONFIG_STATUS <<\_ACEOF
37082for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 37083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37084 case $ac_file in
37085 - | *:- | *:-:* ) # input from stdin
37086 cat >$tmp/stdin
37087 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37089 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37091 * ) ac_file_in=$ac_file.in ;;
10f2d63a 37092 esac
247f5006 37093
e6cc62c6
VS
37094 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
37095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37096$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37097 X"$ac_file" : 'X\(//\)[^/]' \| \
37098 X"$ac_file" : 'X\(//\)$' \| \
37099 X"$ac_file" : 'X\(/\)' \| \
37100 . : '\(.\)' 2>/dev/null ||
37101echo X"$ac_file" |
37102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37104 /^X\(\/\/\)$/{ s//\1/; q; }
37105 /^X\(\/\).*/{ s//\1/; q; }
37106 s/.*/./; q'`
37107 { if $as_mkdir_p; then
37108 mkdir -p "$ac_dir"
a0b9e27f 37109 else
e6cc62c6
VS
37110 as_dir="$ac_dir"
37111 as_dirs=
37112 while test ! -d "$as_dir"; do
37113 as_dirs="$as_dir $as_dirs"
37114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37116 X"$as_dir" : 'X\(//\)[^/]' \| \
37117 X"$as_dir" : 'X\(//\)$' \| \
37118 X"$as_dir" : 'X\(/\)' \| \
37119 . : '\(.\)' 2>/dev/null ||
37120echo X"$as_dir" |
37121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37123 /^X\(\/\/\)$/{ s//\1/; q; }
37124 /^X\(\/\).*/{ s//\1/; q; }
37125 s/.*/./; q'`
37126 done
37127 test ! -n "$as_dirs" || mkdir $as_dirs
37128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37129echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37130 { (exit 1); exit 1; }; }; }
37131
37132 ac_builddir=.
37133
37134if test "$ac_dir" != .; then
37135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37136 # A "../" for each directory in $ac_dir_suffix.
37137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37138else
37139 ac_dir_suffix= ac_top_builddir=
37140fi
247f5006 37141
e6cc62c6
VS
37142case $srcdir in
37143 .) # No --srcdir option. We are building in place.
37144 ac_srcdir=.
37145 if test -z "$ac_top_builddir"; then
37146 ac_top_srcdir=.
37147 else
37148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37149 fi ;;
37150 [\\/]* | ?:[\\/]* ) # Absolute path.
37151 ac_srcdir=$srcdir$ac_dir_suffix;
37152 ac_top_srcdir=$srcdir ;;
247f5006 37153 *) # Relative path.
e6cc62c6
VS
37154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37156esac
37157# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37158# absolute.
37159ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37160ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37161ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37162ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 37163
247f5006 37164
e6cc62c6
VS
37165 case $INSTALL in
37166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37167 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 37168 esac
247f5006 37169
e6cc62c6
VS
37170 if test x"$ac_file" != x-; then
37171 { echo "$as_me:$LINENO: creating $ac_file" >&5
37172echo "$as_me: creating $ac_file" >&6;}
37173 rm -f "$ac_file"
37174 fi
37175 # Let's still pretend it is `configure' which instantiates (i.e., don't
37176 # use $as_me), people would be surprised to read:
37177 # /* config.h. Generated by config.status. */
37178 if test x"$ac_file" = x-; then
37179 configure_input=
37180 else
37181 configure_input="$ac_file. "
37182 fi
37183 configure_input=$configure_input"Generated from `echo $ac_file_in |
37184 sed 's,.*/,,'` by configure."
37185
37186 # First look for the input files in the build tree, otherwise in the
37187 # src tree.
37188 ac_file_inputs=`IFS=:
37189 for f in $ac_file_in; do
37190 case $f in
37191 -) echo $tmp/stdin ;;
37192 [\\/$]*)
37193 # Absolute (can't be DOS-style, as IFS=:)
37194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37195echo "$as_me: error: cannot find input file: $f" >&2;}
37196 { (exit 1); exit 1; }; }
37197 echo $f;;
37198 *) # Relative
37199 if test -f "$f"; then
37200 # Build tree
37201 echo $f
37202 elif test -f "$srcdir/$f"; then
37203 # Source tree
37204 echo $srcdir/$f
37205 else
37206 # /dev/null tree
37207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37208echo "$as_me: error: cannot find input file: $f" >&2;}
37209 { (exit 1); exit 1; }; }
37210 fi;;
37211 esac
37212 done` || { (exit 1); exit 1; }
37213_ACEOF
37214cat >>$CONFIG_STATUS <<_ACEOF
37215 sed "$ac_vpsub
37216$extrasub
37217_ACEOF
37218cat >>$CONFIG_STATUS <<\_ACEOF
37219:t
37220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37221s,@configure_input@,$configure_input,;t t
37222s,@srcdir@,$ac_srcdir,;t t
37223s,@abs_srcdir@,$ac_abs_srcdir,;t t
37224s,@top_srcdir@,$ac_top_srcdir,;t t
37225s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
37226s,@builddir@,$ac_builddir,;t t
37227s,@abs_builddir@,$ac_abs_builddir,;t t
37228s,@top_builddir@,$ac_top_builddir,;t t
37229s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
37230s,@INSTALL@,$ac_INSTALL,;t t
37231" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
37232 rm -f $tmp/stdin
37233 if test x"$ac_file" != x-; then
37234 mv $tmp/out $ac_file
37235 else
37236 cat $tmp/out
37237 rm -f $tmp/out
37238 fi
37239
37240done
37241_ACEOF
37242cat >>$CONFIG_STATUS <<\_ACEOF
37243
37244#
37245# CONFIG_HEADER section.
37246#
10f2d63a
VZ
37247
37248# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
37249# NAME is the cpp macro being defined and VALUE is the value it is being given.
37250#
37251# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
37252ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37253ac_dB='[ ].*$,\1#\2'
37254ac_dC=' '
37255ac_dD=',;t'
37256# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
37257ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
37258ac_uB='$,\1#\2define\3'
10f2d63a 37259ac_uC=' '
e6cc62c6
VS
37260ac_uD=',;t'
37261
37262for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 37263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
37264 case $ac_file in
37265 - | *:- | *:-:* ) # input from stdin
37266 cat >$tmp/stdin
37267 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37269 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37271 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
37272 esac
37273
e6cc62c6
VS
37274 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37275echo "$as_me: creating $ac_file" >&6;}
37276
37277 # First look for the input files in the build tree, otherwise in the
37278 # src tree.
37279 ac_file_inputs=`IFS=:
37280 for f in $ac_file_in; do
37281 case $f in
37282 -) echo $tmp/stdin ;;
37283 [\\/$]*)
37284 # Absolute (can't be DOS-style, as IFS=:)
37285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37286echo "$as_me: error: cannot find input file: $f" >&2;}
37287 { (exit 1); exit 1; }; }
37288 echo $f;;
37289 *) # Relative
37290 if test -f "$f"; then
37291 # Build tree
37292 echo $f
37293 elif test -f "$srcdir/$f"; then
37294 # Source tree
37295 echo $srcdir/$f
37296 else
37297 # /dev/null tree
37298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37299echo "$as_me: error: cannot find input file: $f" >&2;}
37300 { (exit 1); exit 1; }; }
37301 fi;;
37302 esac
37303 done` || { (exit 1); exit 1; }
37304 # Remove the trailing spaces.
37305 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37306
37307_ACEOF
37308
37309# Transform confdefs.h into two sed scripts, `conftest.defines' and
37310# `conftest.undefs', that substitutes the proper values into
37311# config.h.in to produce config.h. The first handles `#define'
37312# templates, and the second `#undef' templates.
37313# And first: Protect against being on the right side of a sed subst in
37314# config.status. Protect against being in an unquoted here document
37315# in config.status.
37316rm -f conftest.defines conftest.undefs
37317# Using a here document instead of a string reduces the quoting nightmare.
37318# Putting comments in sed scripts is not portable.
37319#
37320# `end' is used to avoid that the second main sed command (meant for
37321# 0-ary CPP macros) applies to n-ary macro definitions.
37322# See the Autoconf documentation for `clear'.
37323cat >confdef2sed.sed <<\_ACEOF
37324s/[\\&,]/\\&/g
37325s,[\\$`],\\&,g
37326t clear
37327: clear
37328s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37329t end
37330s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37331: end
37332_ACEOF
37333# If some macros were called several times there might be several times
37334# the same #defines, which is useless. Nevertheless, we may not want to
37335# sort them, since we want the *last* AC-DEFINE to be honored.
37336uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37337sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37338rm -f confdef2sed.sed
10f2d63a
VZ
37339
37340# This sed command replaces #undef with comments. This is necessary, for
37341# example, in the case of _POSIX_SOURCE, which is predefined and required
37342# on some systems where configure will not decide to define it.
e6cc62c6
VS
37343cat >>conftest.undefs <<\_ACEOF
37344s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37345_ACEOF
37346
37347# Break up conftest.defines because some shells have a limit on the size
37348# of here documents, and old seds have small limits too (100 cmds).
37349echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37350echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37351echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37352echo ' :' >>$CONFIG_STATUS
37353rm -f conftest.tail
37354while grep . conftest.defines >/dev/null
37355do
37356 # Write a limited-size here document to $tmp/defines.sed.
37357 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37358 # Speed up: don't consider the non `#define' lines.
37359 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37360 # Work around the forget-to-reset-the-flag bug.
37361 echo 't clr' >>$CONFIG_STATUS
37362 echo ': clr' >>$CONFIG_STATUS
37363 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37364 echo 'CEOF
37365 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37366 rm -f $tmp/in
37367 mv $tmp/out $tmp/in
37368' >>$CONFIG_STATUS
37369 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37370 rm -f conftest.defines
37371 mv conftest.tail conftest.defines
37372done
37373rm -f conftest.defines
37374echo ' fi # grep' >>$CONFIG_STATUS
37375echo >>$CONFIG_STATUS
10f2d63a 37376
e6cc62c6
VS
37377# Break up conftest.undefs because some shells have a limit on the size
37378# of here documents, and old seds have small limits too (100 cmds).
37379echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 37380rm -f conftest.tail
e6cc62c6 37381while grep . conftest.undefs >/dev/null
10f2d63a 37382do
e6cc62c6
VS
37383 # Write a limited-size here document to $tmp/undefs.sed.
37384 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37385 # Speed up: don't consider the non `#undef'
37386 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37387 # Work around the forget-to-reset-the-flag bug.
37388 echo 't clr' >>$CONFIG_STATUS
37389 echo ': clr' >>$CONFIG_STATUS
37390 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 37391 echo 'CEOF
e6cc62c6
VS
37392 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37393 rm -f $tmp/in
37394 mv $tmp/out $tmp/in
37395' >>$CONFIG_STATUS
37396 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37397 rm -f conftest.undefs
37398 mv conftest.tail conftest.undefs
10f2d63a 37399done
e6cc62c6
VS
37400rm -f conftest.undefs
37401
37402cat >>$CONFIG_STATUS <<\_ACEOF
37403 # Let's still pretend it is `configure' which instantiates (i.e., don't
37404 # use $as_me), people would be surprised to read:
37405 # /* config.h. Generated by config.status. */
37406 if test x"$ac_file" = x-; then
37407 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37408 else
e6cc62c6 37409 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37410 fi
e6cc62c6
VS
37411 cat $tmp/in >>$tmp/config.h
37412 rm -f $tmp/in
37413 if test x"$ac_file" != x-; then
37414 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37415 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37416echo "$as_me: $ac_file is unchanged" >&6;}
37417 else
37418 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37420 X"$ac_file" : 'X\(//\)[^/]' \| \
37421 X"$ac_file" : 'X\(//\)$' \| \
37422 X"$ac_file" : 'X\(/\)' \| \
37423 . : '\(.\)' 2>/dev/null ||
37424echo X"$ac_file" |
37425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37427 /^X\(\/\/\)$/{ s//\1/; q; }
37428 /^X\(\/\).*/{ s//\1/; q; }
37429 s/.*/./; q'`
37430 { if $as_mkdir_p; then
37431 mkdir -p "$ac_dir"
37432 else
37433 as_dir="$ac_dir"
37434 as_dirs=
37435 while test ! -d "$as_dir"; do
37436 as_dirs="$as_dir $as_dirs"
37437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37439 X"$as_dir" : 'X\(//\)[^/]' \| \
37440 X"$as_dir" : 'X\(//\)$' \| \
37441 X"$as_dir" : 'X\(/\)' \| \
37442 . : '\(.\)' 2>/dev/null ||
37443echo X"$as_dir" |
37444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37446 /^X\(\/\/\)$/{ s//\1/; q; }
37447 /^X\(\/\).*/{ s//\1/; q; }
37448 s/.*/./; q'`
37449 done
37450 test ! -n "$as_dirs" || mkdir $as_dirs
37451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37452echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37453 { (exit 1); exit 1; }; }; }
a0b9e27f 37454
e6cc62c6
VS
37455 rm -f $ac_file
37456 mv $tmp/config.h $ac_file
37457 fi
37458 else
37459 cat $tmp/config.h
37460 rm -f $tmp/config.h
37461 fi
37462done
37463_ACEOF
37464cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37465
e6cc62c6
VS
37466#
37467# CONFIG_COMMANDS section.
37468#
37469for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37470 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37471 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37472 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37473$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37474 X"$ac_dest" : 'X\(//\)[^/]' \| \
37475 X"$ac_dest" : 'X\(//\)$' \| \
37476 X"$ac_dest" : 'X\(/\)' \| \
37477 . : '\(.\)' 2>/dev/null ||
37478echo X"$ac_dest" |
37479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37481 /^X\(\/\/\)$/{ s//\1/; q; }
37482 /^X\(\/\).*/{ s//\1/; q; }
37483 s/.*/./; q'`
37484 ac_builddir=.
37485
37486if test "$ac_dir" != .; then
37487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37488 # A "../" for each directory in $ac_dir_suffix.
37489 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37490else
37491 ac_dir_suffix= ac_top_builddir=
37492fi
37493
37494case $srcdir in
37495 .) # No --srcdir option. We are building in place.
37496 ac_srcdir=.
37497 if test -z "$ac_top_builddir"; then
37498 ac_top_srcdir=.
37499 else
37500 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37501 fi ;;
37502 [\\/]* | ?:[\\/]* ) # Absolute path.
37503 ac_srcdir=$srcdir$ac_dir_suffix;
37504 ac_top_srcdir=$srcdir ;;
37505 *) # Relative path.
37506 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37507 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37508esac
37509# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37510# absolute.
37511ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37512ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37513ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37514ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37515
37516
37517 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37518echo "$as_me: executing $ac_dest commands" >&6;}
37519 case $ac_dest in
37520 default )
652d930d 37521 if test ! -h wx-config; then
991a5759 37522 chmod +x wx-config
3a922bb4
RL
37523 mv wx-config wx${TOOLCHAIN_NAME}-config
37524 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37525 fi
665bbe97 37526
00cf1208
RR
37527 if test ! -d lib; then
37528 mkdir lib
37529 fi
37530 if test ! -d lib/wx; then
37531 mkdir lib/wx
37532 fi
37533 if test ! -d lib/wx/include; then
37534 mkdir lib/wx/include
37535 fi
3a922bb4
RL
37536 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37537 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37538 fi
3a922bb4
RL
37539 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37540 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37541 fi
37542 if test -f setup.h; then
3a922bb4 37543 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37544 fi
e6cc62c6
VS
37545 ;;
37546 esac
37547done
37548_ACEOF
2224580a 37549
e6cc62c6 37550cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37551
e6cc62c6
VS
37552{ (exit 0); exit 0; }
37553_ACEOF
37554chmod +x $CONFIG_STATUS
37555ac_clean_files=$ac_clean_files_save
37556
37557
37558# configure is writing to config.log, and then calls config.status.
37559# config.status does its own redirection, appending to config.log.
37560# Unfortunately, on DOS this fails, as config.log is still kept open
37561# by configure, so config.status won't be able to write to it; its
37562# output is simply discarded. So we exec the FD to /dev/null,
37563# effectively closing config.log, so it can be properly (re)opened and
37564# appended to by config.status. When coming back to configure, we
37565# need to make the FD available again.
37566if test "$no_create" != yes; then
37567 ac_cs_success=:
37568 ac_config_status_args=
37569 test "$silent" = yes &&
37570 ac_config_status_args="$ac_config_status_args --quiet"
37571 exec 5>/dev/null
37572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37573 exec 5>>config.log
37574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37575 # would make configure fail if this is the last instruction.
37576 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37577fi
37578
672abd7a
VS
37579#
37580# CONFIG_SUBDIRS section.
37581#
37582if test "$no_recursion" != yes; then
37583
37584 # Remove --cache-file and --srcdir arguments so they do not pile up.
37585 ac_sub_configure_args=
37586 ac_prev=
37587 for ac_arg in $ac_configure_args; do
37588 if test -n "$ac_prev"; then
37589 ac_prev=
37590 continue
37591 fi
37592 case $ac_arg in
37593 -cache-file | --cache-file | --cache-fil | --cache-fi \
37594 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37595 ac_prev=cache_file ;;
37596 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37597 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37598 | --c=*)
37599 ;;
37600 --config-cache | -C)
37601 ;;
37602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37603 ac_prev=srcdir ;;
37604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37605 ;;
37606 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37607 ac_prev=prefix ;;
37608 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37609 ;;
37610 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37611 esac
37612 done
37613
37614 # Always prepend --prefix to ensure using the same prefix
37615 # in subdir configurations.
37616 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37617
37618 ac_popdir=`pwd`
37619 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37620
37621 # Do not complain, so a configure script can configure whichever
37622 # parts of a large source tree are present.
37623 test -d $srcdir/$ac_dir || continue
37624
37625 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37626echo "$as_me: configuring in $ac_dir" >&6;}
37627 { if $as_mkdir_p; then
37628 mkdir -p "$ac_dir"
37629 else
37630 as_dir="$ac_dir"
37631 as_dirs=
37632 while test ! -d "$as_dir"; do
37633 as_dirs="$as_dir $as_dirs"
37634 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37636 X"$as_dir" : 'X\(//\)[^/]' \| \
37637 X"$as_dir" : 'X\(//\)$' \| \
37638 X"$as_dir" : 'X\(/\)' \| \
37639 . : '\(.\)' 2>/dev/null ||
37640echo X"$as_dir" |
37641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37643 /^X\(\/\/\)$/{ s//\1/; q; }
37644 /^X\(\/\).*/{ s//\1/; q; }
37645 s/.*/./; q'`
37646 done
37647 test ! -n "$as_dirs" || mkdir $as_dirs
37648 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37650 { (exit 1); exit 1; }; }; }
37651
37652 ac_builddir=.
37653
37654if test "$ac_dir" != .; then
37655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37656 # A "../" for each directory in $ac_dir_suffix.
37657 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37658else
37659 ac_dir_suffix= ac_top_builddir=
37660fi
37661
37662case $srcdir in
37663 .) # No --srcdir option. We are building in place.
37664 ac_srcdir=.
37665 if test -z "$ac_top_builddir"; then
37666 ac_top_srcdir=.
37667 else
37668 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37669 fi ;;
37670 [\\/]* | ?:[\\/]* ) # Absolute path.
37671 ac_srcdir=$srcdir$ac_dir_suffix;
37672 ac_top_srcdir=$srcdir ;;
37673 *) # Relative path.
37674 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37675 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37676esac
37677# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37678# absolute.
37679ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37680ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37681ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37682ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37683
37684
37685 cd $ac_dir
37686
37687 # Check for guested configure; otherwise get Cygnus style configure.
37688 if test -f $ac_srcdir/configure.gnu; then
37689 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37690 elif test -f $ac_srcdir/configure; then
37691 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37692 elif test -f $ac_srcdir/configure.in; then
37693 ac_sub_configure=$ac_configure
37694 else
37695 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37696echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37697 ac_sub_configure=
37698 fi
37699
37700 # The recursion is here.
37701 if test -n "$ac_sub_configure"; then
37702 # Make the cache file name correct relative to the subdirectory.
37703 case $cache_file in
37704 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37705 *) # Relative path.
37706 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37707 esac
37708
37709 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37710echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37711 # The eval makes quoting arguments work.
37712 eval $ac_sub_configure $ac_sub_configure_args \
37713 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37714 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37715echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37716 { (exit 1); exit 1; }; }
37717 fi
37718
37719 cd $ac_popdir
37720 done
37721fi
37722
8284b0c5 37723
2b5f62a0
VZ
37724echo
37725echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37726echo ""
37727echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37728echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37729
37730echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37731echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37732echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37733
0c98a14e 37734echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37735echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37736echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37737
2b5f62a0
VZ
37738echo " Which libraries should wxWindows use?"
37739echo " jpeg ${wxUSE_LIBJPEG-none}"
37740echo " png ${wxUSE_LIBPNG-none}"
37741echo " regex ${wxUSE_REGEX}"
37742echo " tiff ${wxUSE_LIBTIFF-none}"
37743echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37744echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37745echo " expat ${wxUSE_EXPAT}"
3527f29c 37746echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
37747
37748echo ""
37749