]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed typo
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
0f1bc9c2 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_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_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
888 --enable-compat20 enable wxWindows 2.0 compatibility
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-cmdline use wxCmdLineParser class
903 --enable-datetime use wxDateTime class
904 --enable-stopwatch use wxStopWatch class
905 --enable-dialupman use dialup network classes
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-timer use wxTimer class
908 --enable-wave use wxWave class
909 --enable-fraction use wxFraction class
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-longlong use wxLongLong class
913 --enable-geometry use geometry class
914 --enable-log use logging system
915 --enable-streams use wxStream etc classes
916 --enable-file use wxFile classes
917 --enable-ffile use wxFFile classes
918 --enable-textbuf use wxTextBuffer class
919 --enable-textfile use wxTextFile class
920 --enable-fontmap use font encodings conversion classes
921 --enable-unicode compile wxString with Unicode support
922 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
923 --enable-wxprintfv use wxWindows implementation of vprintf()
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-filesystem use virtual file systems classes
926 --enable-fs_inet use virtual HTTP/FTP filesystems
927 --enable-fs_zip use virtual ZIP filesystems
928 --enable-zipstream use wxZipInputStream
929 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
930 --enable-snglinst use wxSingleInstanceChecker class
931 --enable-mimetype use wxMimeTypesManager
932 --enable-sysoptions use wxSystemOptions
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
970 --enable-listbox use wxListBox class
971 --enable-listctrl use wxListCtrl class
972 --enable-notebook use wxNotebook class
973 --enable-radiobox use wxRadioBox class
974 --enable-radiobtn use wxRadioButton class
975 --enable-sash use wxSashWindow class
976 --enable-scrollbar use wxScrollBar class and scrollable windows
977 --enable-slider use wxSlider class
978 --enable-spinbtn use wxSpinButton class
979 --enable-spinctrl use wxSpinCtrl class
980 --enable-splitter use wxSplitterWindow class
981 --enable-statbmp use wxStaticBitmap class
982 --enable-statbox use wxStaticBox class
983 --enable-statline use wxStaticLine class
984 --enable-stattext use wxStaticText class
985 --enable-statusbar use wxStatusBar class
986 --enable-tabdialog use wxTabControl class
987 --enable-textctrl use wxTextCtrl class
988 --enable-togglebtn use wxToggleButton class
989 --enable-toolbar use wxToolBar class
990 --enable-tbarnative use native wxToolBar class
991 --enable-tbarsmpl use wxToolBarSimple class
992 --enable-treectrl use wxTreeCtrl class
993 --enable-tipwindow use wxTipWindow class
994 --enable-popupwin use wxPopUpWindow class
995 --enable-commondlg use all common dialogs
996 --enable-choicedlg use wxChoiceDialog
997 --enable-coldlg use wxColourDialog
998 --enable-filedlg use wxFileDialog
999 --enable-finddlg use wxFindReplaceDialog
1000 --enable-fontdlg use wxFontDialog
1001 --enable-dirdlg use wxDirDialog
1002 --enable-msgdlg use wxMessageDialog
1003 --enable-numberdlg use wxNumberEntryDialog
1004 --enable-splash use wxSplashScreen
1005 --enable-textdlg use wxTextDialog
1006 --enable-tipdlg use startup tips
1007 --enable-progressdlg use wxProgressDialog
1008 --enable-wizarddlg use wxWizard
1009 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1010 --enable-miniframe use wxMiniFrame class
1011 --enable-tooltips use wxToolTip class
1012 --enable-splines use spline drawing code
1013 --enable-validators use wxValidator and derived classes
1014 --enable-busyinfo use wxBusyInfo
1015 --enable-joystick use wxJoystick (Linux only)
1016 --enable-metafiles use wxMetaFile (Windows only)
1017 --enable-dragimage use wxDragImage
1018 --enable-accessibility enable accessibility support
1019 --enable-palette use wxPalette class
1020 --enable-image use wxImage class
1021 --enable-gif use gif images (GIF file format)
1022 --enable-pcx use pcx images (PCX file format)
1023 --enable-iff use iff images (IFF file format)
1024 --enable-pnm use pnm images (PNM file format)
1025 --enable-xpm use xpm images (XPM file format)
1026 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1027 --enable-official_build official build of wxWindows (win32 DLL only)
1028 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1029 --disable-largefile omit support for large files
1030 --disable-gtktest do not try to compile and run a test GTK+ program
1031 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1032 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1033
1034Optional Packages:
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-gtk use GTK+
1038 --with-motif use Motif/Lesstif
1039 --with-mac use Mac OS X
1040 --with-cocoa use Cocoa
1041 --with-wine use Wine
1042 --with-msw use MS-Windows
1043 --with-pm use OS/2 Presentation Manager
1044 --with-mgl use SciTech MGL
1045 --with-microwin use MicroWindows
1046 --with-x11 use X11
1047 --with-libpng use libpng (PNG image format)
1048 --with-libjpeg use libjpeg (JPEG file format)
1049 --with-libtiff use libtiff (TIFF file format)
1050 --with-opengl use OpenGL (or Mesa)
1051 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1052 --with-regex enable support for wxRegEx class
1053 --with-zlib use zlib for LZW compression
1054 --with-odbc use the IODBC and wxODBC classes
672abd7a 1055 --with-expat enable XML support using expat parser
e6cc62c6
VS
1056 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1057 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1058 --with-x use the X Window System
1059 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1060
1061Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1068 CPP C preprocessor
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <wx-dev@lists.wxwindows.org>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
1110# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1111# absolute.
1112ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1113ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1114ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1115ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
1132 cd $ac_popdir
1133 done
1134fi
8284b0c5 1135
e6cc62c6
VS
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
1139wxWindows configure 2.5.0
1140generated by GNU Autoconf 2.57
10f2d63a 1141
e6cc62c6
VS
1142Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1143Free Software Foundation, Inc.
1144This configure script is free software; the Free Software Foundation
1145gives unlimited permission to copy, distribute and modify it.
1146_ACEOF
1147 exit 0
7c66a493 1148fi
e6cc62c6
VS
1149exec 5>config.log
1150cat >&5 <<_ACEOF
1151This file contains any messages produced by compilers while
1152running configure, to aid debugging if configure makes a mistake.
1153
1154It was created by wxWindows $as_me 2.5.0, which was
1155generated by GNU Autoconf 2.57. Invocation command line was
1156
1157 $ $0 $@
1158
1159_ACEOF
1160{
1161cat <<_ASUNAME
1162## --------- ##
1163## Platform. ##
1164## --------- ##
1165
1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1174
1175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182
1183_ASUNAME
1184
1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186for as_dir in $PATH
1187do
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1191done
1192
1193} >&5
1194
1195cat >&5 <<_ACEOF
1196
1197
1198## ----------- ##
1199## Core tests. ##
1200## ----------- ##
1201
1202_ACEOF
1203
1204
1205# Keep a trace of the command line.
1206# Strip out --no-create and --no-recursion so they do not pile up.
1207# Strip out --silent because we don't want to record it for future runs.
1208# Also quote any args containing shell meta-characters.
1209# Make two passes to allow for proper duplicate-argument suppression.
1210ac_configure_args=
1211ac_configure_args0=
1212ac_configure_args1=
1213ac_sep=
1214ac_must_keep_next=false
1215for ac_pass in 1 2
1216do
1217 for ac_arg
1218 do
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229 2)
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1233 else
1234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1242 ;;
1243 -* ) ac_must_keep_next=true ;;
1244 esac
1245 fi
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
1249 ;;
1250 esac
1251 done
1252done
1253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256# When interrupted or exit'd, cleanup temporary files, and complete
1257# config.log. We remove comments because anyway the quotes in there
1258# would cause problems or look ugly.
1259# WARNING: Be sure not to use single quotes in there, as some shells,
1260# such as our DU 5.0 friend, will then `close' the trap.
1261trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1263 {
1264 echo
1265
1266 cat <<\_ASBOX
1267## ---------------- ##
1268## Cache variables. ##
1269## ---------------- ##
1270_ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
1273{
1274 (set) 2>&1 |
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
1277 sed -n \
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 ;;
1281 *)
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284 ;;
1285 esac;
1286}
1287 echo
1288
1289 cat <<\_ASBOX
1290## ----------------- ##
1291## Output variables. ##
1292## ----------------- ##
1293_ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1296 do
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1299 done | sort
1300 echo
1301
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
1304## ------------- ##
1305## Output files. ##
1306## ------------- ##
1307_ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1310 do
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1315 fi
1316
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319## ----------- ##
1320## confdefs.h. ##
1321## ----------- ##
1322_ASBOX
1323 echo
1324 sed "/^$/d" confdefs.h | sort
1325 echo
1326 fi
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1330 } >&5
1331 rm -f core core.* *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 exit $exit_status
1334 ' 0
1335for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337done
1338ac_signal=0
1339
1340# confdefs.h avoids OS command line length limits that DEFS can exceed.
1341rm -rf conftest* confdefs.h
1342# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343echo >confdefs.h
1344
1345# Predefined preprocessor variables.
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_NAME "$PACKAGE_NAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_VERSION "$PACKAGE_VERSION"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_STRING "$PACKAGE_STRING"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369_ACEOF
1370
1371
1372# Let the site file select an alternate cache file if it wants to.
1373# Prefer explicitly selected file to automatically selected ones.
1374if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379 fi
1380fi
1381for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1386 . "$ac_site_file"
1387 fi
1388done
1389
1390if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395echo "$as_me: loading cache $cache_file" >&6;}
1396 case $cache_file in
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1399 esac
1400 fi
1401else
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403echo "$as_me: creating cache $cache_file" >&6;}
1404 >$cache_file
1405fi
1406
1407# Check that the precious variables saved in the cache have kept the same
1408# value.
1409ac_cache_corrupted=false
1410for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1417 set,)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,set)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,);;
1426 *)
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1456fi
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
698dcdb6 1480
8284b0c5 1481
7c66a493 1482
a0b9e27f
MB
1483
1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
e6cc62c6
VS
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
7c66a493
VZ
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
8284b0c5
MB
1600
1601
a0b9e27f 1602
10f2d63a 1603WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1604WX_MINOR_VERSION_NUMBER=5
1605WX_RELEASE_NUMBER=0
10f2d63a 1606
10f2d63a 1607WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1608WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1609
978f1259
RL
1610WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1611
34bed6d9 1612WX_CURRENT=0
6426998c
RL
1613WX_REVISION=0
1614WX_AGE=0
1615
8284b0c5
MB
1616
1617
10f2d63a
VZ
1618USE_UNIX=1
1619USE_WIN32=0
f9bc1684 1620USE_DOS=0
b12915c1 1621USE_BEOS=0
1216f52d 1622USE_MAC=0
b12915c1 1623
10f2d63a 1624USE_AIX=
fe0895cf
VS
1625USE_BSD= USE_DARWIN= USE_FREEBSD=
1626USE_GNU= USE_HPUX=
89e3b3e4 1627USE_LINUX=
f6bcfd97 1628USE_NETBSD=
89e3b3e4 1629USE_OPENBSD=
fe0895cf
VS
1630USE_OSF= USE_SGI=
1631USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1632USE_ULTRIX=
89e3b3e4
VZ
1633USE_UNIXWARE=
1634
1635USE_ALPHA=
10f2d63a 1636
ab9b9eab
VZ
1637NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1638
ac0c4cc3 1639ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1640
ac0c4cc3 1641DEFAULT_wxUSE_COCOA=0
10f2d63a 1642DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1643DEFAULT_wxUSE_MAC=0
1644DEFAULT_wxUSE_MGL=0
1725144d 1645DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1646DEFAULT_wxUSE_MOTIF=0
1647DEFAULT_wxUSE_MSW=0
e07802fc 1648DEFAULT_wxUSE_PM=0
f79bd02d 1649DEFAULT_wxUSE_X11=0
10f2d63a 1650
ac0c4cc3 1651DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1652DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1653DEFAULT_DEFAULT_wxUSE_MAC=0
1654DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1655DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1656DEFAULT_DEFAULT_wxUSE_MOTIF=0
1657DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1658DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1659DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1660
d6a55c4b 1661PROGRAM_EXT=
3a922bb4 1662SO_SUFFIX=so
fe0895cf 1663SAMPLES_RPATH_FLAG=
0f1bc9c2 1664SAMPLES_RPATH_POSTLINK=
d6a55c4b 1665
10f2d63a
VZ
1666case "${host}" in
1667 *-hp-hpux* )
1668 USE_HPUX=1
1669 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1670 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1671 SO_SUFFIX=sl
e6cc62c6 1672 cat >>confdefs.h <<\_ACEOF
10f2d63a 1673#define __HPUX__ 1
e6cc62c6 1674_ACEOF
10f2d63a
VZ
1675
1676 ;;
1677 *-*-linux* )
1678 USE_LINUX=1
e6cc62c6 1679 cat >>confdefs.h <<\_ACEOF
10f2d63a 1680#define __LINUX__ 1
e6cc62c6 1681_ACEOF
10f2d63a
VZ
1682
1683 TMP=`uname -m`
1684 if test "x$TMP" = "xalpha"; then
1685 USE_ALPHA=1
e6cc62c6 1686 cat >>confdefs.h <<\_ACEOF
10f2d63a 1687#define __ALPHA__ 1
e6cc62c6 1688_ACEOF
fe0895cf
VS
1689
1690 fi
1691 DEFAULT_DEFAULT_wxUSE_GTK=1
1692 ;;
1693 *-*-gnu* )
1694 USE_GNU=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
fe0895cf 1696#define __GNU__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 TMP=`uname -m`
1700 if test "x$TMP" = "xalpha"; then
1701 USE_ALPHA=1
e6cc62c6 1702 cat >>confdefs.h <<\_ACEOF
fe0895cf 1703#define __ALPHA__ 1
e6cc62c6 1704_ACEOF
10f2d63a
VZ
1705
1706 fi
1707 DEFAULT_DEFAULT_wxUSE_GTK=1
1708 ;;
1709 *-*-irix5* | *-*-irix6* )
1710 USE_SGI=1
1711 USE_SVR4=1
e6cc62c6 1712 cat >>confdefs.h <<\_ACEOF
10f2d63a 1713#define __SGI__ 1
e6cc62c6 1714_ACEOF
10f2d63a 1715
e6cc62c6 1716 cat >>confdefs.h <<\_ACEOF
10f2d63a 1717#define __SVR4__ 1
e6cc62c6 1718_ACEOF
10f2d63a
VZ
1719
1720 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721 ;;
1722 *-*-solaris2* )
1723 USE_SUN=1
1724 USE_SOLARIS=1
1725 USE_SVR4=1
e6cc62c6 1726 cat >>confdefs.h <<\_ACEOF
10f2d63a 1727#define __SUN__ 1
e6cc62c6 1728_ACEOF
10f2d63a 1729
e6cc62c6 1730 cat >>confdefs.h <<\_ACEOF
10f2d63a 1731#define __SOLARIS__ 1
e6cc62c6 1732_ACEOF
10f2d63a 1733
e6cc62c6 1734 cat >>confdefs.h <<\_ACEOF
10f2d63a 1735#define __SVR4__ 1
e6cc62c6 1736_ACEOF
10f2d63a
VZ
1737
1738 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1739 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1740 ;;
1741 *-*-sunos4* )
1742 USE_SUN=1
1743 USE_SUNOS=1
1744 USE_BSD=1
e6cc62c6 1745 cat >>confdefs.h <<\_ACEOF
10f2d63a 1746#define __SUN__ 1
e6cc62c6 1747_ACEOF
10f2d63a 1748
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __SUNOS__ 1
e6cc62c6 1751_ACEOF
10f2d63a 1752
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __BSD__ 1
e6cc62c6 1755_ACEOF
10f2d63a
VZ
1756
1757 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758 ;;
f6bcfd97 1759 *-*-freebsd*)
10f2d63a
VZ
1760 USE_BSD=1
1761 USE_FREEBSD=1
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __FREEBSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a 1765
e6cc62c6 1766 cat >>confdefs.h <<\_ACEOF
10f2d63a 1767#define __BSD__ 1
e6cc62c6 1768_ACEOF
95c8801c
VS
1769
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-openbsd*)
1773 USE_BSD=1
1774 USE_OPENBSD=1
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1776#define __OPENBSD__ 1
e6cc62c6 1777_ACEOF
95c8801c 1778
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1780#define __BSD__ 1
e6cc62c6 1781_ACEOF
f6bcfd97
BP
1782
1783 DEFAULT_DEFAULT_wxUSE_GTK=1
1784 ;;
1785 *-*-netbsd*)
1786 USE_BSD=1
1787 USE_NETBSD=1
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __NETBSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97 1791
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1793#define __BSD__ 1
e6cc62c6 1794_ACEOF
10f2d63a
VZ
1795
1796 DEFAULT_DEFAULT_wxUSE_GTK=1
1797 ;;
1798 *-*-osf* )
1799 USE_ALPHA=1
1800 USE_OSF=1
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
10f2d63a 1802#define __ALPHA__ 1
e6cc62c6 1803_ACEOF
10f2d63a 1804
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __OSF__ 1
e6cc62c6 1807_ACEOF
10f2d63a
VZ
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1810 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1811 ;;
1812 *-*-dgux5* )
1813 USE_ALPHA=1
1814 USE_SVR4=1
e6cc62c6 1815 cat >>confdefs.h <<\_ACEOF
10f2d63a 1816#define __ALPHA__ 1
e6cc62c6 1817_ACEOF
10f2d63a 1818
e6cc62c6 1819 cat >>confdefs.h <<\_ACEOF
10f2d63a 1820#define __SVR4__ 1
e6cc62c6 1821_ACEOF
10f2d63a
VZ
1822
1823 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824 ;;
1825 *-*-sysv5* )
1826 USE_SYSV=1
1827 USE_SVR4=1
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SYSV__ 1
e6cc62c6 1830_ACEOF
10f2d63a 1831
e6cc62c6 1832 cat >>confdefs.h <<\_ACEOF
10f2d63a 1833#define __SVR4__ 1
e6cc62c6 1834_ACEOF
10f2d63a
VZ
1835
1836 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837 ;;
1838 *-*-aix* )
1839 USE_AIX=1
1840 USE_SYSV=1
1841 USE_SVR4=1
2b5f62a0 1842 SO_SUFFIX=a
e6cc62c6 1843 cat >>confdefs.h <<\_ACEOF
10f2d63a 1844#define __AIX__ 1
e6cc62c6 1845_ACEOF
10f2d63a 1846
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __SYSV__ 1
e6cc62c6 1849_ACEOF
10f2d63a 1850
e6cc62c6 1851 cat >>confdefs.h <<\_ACEOF
10f2d63a 1852#define __SVR4__ 1
e6cc62c6 1853_ACEOF
10f2d63a
VZ
1854
1855 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856 ;;
1857
89e3b3e4
VZ
1858 *-*-*UnixWare*)
1859 USE_SYSV=1
1860 USE_SVR4=1
1861 USE_UNIXWARE=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1863#define __UNIXWARE__ 1
e6cc62c6 1864_ACEOF
89e3b3e4
VZ
1865
1866 ;;
1867
1c8183e2 1868 *-*-cygwin* | *-*-mingw32* )
17234b26 1869 SO_SUFFIX=dll
cf27ef00 1870 PROGRAM_EXT=".exe"
7b7a7637 1871 RESCOMP=windres
10f2d63a
VZ
1872 DEFAULT_DEFAULT_wxUSE_MSW=1
1873 ;;
1874
f9bc1684
VS
1875 *-pc-msdosdjgpp )
1876 USE_UNIX=0
1877 USE_DOS=1
e6cc62c6 1878 cat >>confdefs.h <<\_ACEOF
f9bc1684 1879#define __DOS__ 1
e6cc62c6 1880_ACEOF
f9bc1684
VS
1881
1882 PROGRAM_EXT=".exe"
1883 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1884 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1885 ;;
1886
6fa882bd 1887 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1888 cat >>confdefs.h <<\_ACEOF
10f2d63a 1889#define __EMX__ 1
e6cc62c6 1890_ACEOF
10f2d63a 1891
cf27ef00 1892 PROGRAM_EXT=".exe"
e07802fc 1893 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1894 ;;
1895
d08b457b
GD
1896 powerpc-*-darwin* )
1897 USE_BSD=1
f11bdd03 1898 USE_DARWIN=1
3a922bb4 1899 SO_SUFFIX=dylib
e6cc62c6 1900 cat >>confdefs.h <<\_ACEOF
f11bdd03 1901#define __BSD__ 1
e6cc62c6 1902_ACEOF
b4085ce6 1903
e6cc62c6 1904 cat >>confdefs.h <<\_ACEOF
f11bdd03 1905#define __DARWIN__ 1
e6cc62c6 1906_ACEOF
d08b457b 1907
e6cc62c6 1908 cat >>confdefs.h <<\_ACEOF
d08b457b 1909#define __POWERPC__ 1
e6cc62c6 1910_ACEOF
82d43113 1911
e6cc62c6 1912 cat >>confdefs.h <<\_ACEOF
82d43113 1913#define TARGET_CARBON 1
e6cc62c6 1914_ACEOF
b4085ce6
GD
1915
1916 DEFAULT_DEFAULT_wxUSE_MAC=1
1917 ;;
1918
b12915c1
VZ
1919 *-*-beos* )
1920 USE_BEOS=1
e6cc62c6 1921 cat >>confdefs.h <<\_ACEOF
b12915c1 1922#define __BEOS__ 1
e6cc62c6 1923_ACEOF
b12915c1
VZ
1924
1925 ;;
1926
10f2d63a 1927 *)
e6cc62c6
VS
1928 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1929echo "$as_me: error: unknown system type ${host}." >&2;}
1930 { (exit 1); exit 1; }; }
10f2d63a
VZ
1931esac
1932
8284b0c5
MB
1933
1934
1935
1936 wx_arg_cache_file="configarg.cache"
1937 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1938 rm -f ${wx_arg_cache_file}.tmp
1939 touch ${wx_arg_cache_file}.tmp
1940 touch ${wx_arg_cache_file}
e6cc62c6 1941
10f2d63a
VZ
1942
1943DEBUG_CONFIGURE=0
1944if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1945 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1946 DEFAULT_wxUSE_STL=no
1e6feb95 1947
d8356fa3
VZ
1948 DEFAULT_wxUSE_NANOX=no
1949
10f2d63a
VZ
1950 DEFAULT_wxUSE_THREADS=yes
1951
1952 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1953 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1954 DEFAULT_wxUSE_PROFILE=no
1955 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1956 DEFAULT_wxUSE_NO_RTTI=no
1957 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1958 DEFAULT_wxUSE_PERMISSIVE=no
1959 DEFAULT_wxUSE_DEBUG_FLAG=yes
1960 DEFAULT_wxUSE_DEBUG_INFO=yes
1961 DEFAULT_wxUSE_DEBUG_GDB=yes
1962 DEFAULT_wxUSE_MEM_TRACING=no
1963 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1964 DEFAULT_wxUSE_DMALLOC=no
1965 DEFAULT_wxUSE_APPLE_IEEE=no
1966
1967 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1968 DEFAULT_wxUSE_LOGWINDOW=no
1969 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1970 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1971
1972 DEFAULT_wxUSE_GUI=yes
1e6feb95 1973 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1974
3e44f09d 1975 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1976 DEFAULT_wxUSE_XML=no
1977 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1978 DEFAULT_wxUSE_ZLIB=no
1979 DEFAULT_wxUSE_LIBPNG=no
1980 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1981 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1982 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1983 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1984
eb4efbdc 1985 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1986 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1987 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1988 DEFAULT_wxUSE_CMDLINE_PARSER=no
1989 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1990 DEFAULT_wxUSE_TIMER=no
1991 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1992 DEFAULT_wxUSE_FILE=no
1e6feb95 1993 DEFAULT_wxUSE_FFILE=no
a3a584a7 1994 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1995 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1996 DEFAULT_wxUSE_WAVE=no
1997 DEFAULT_wxUSE_INTL=no
1998 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1999 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2000 DEFAULT_wxUSE_STREAMS=no
2001 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2002 DEFAULT_wxUSE_OLE=no
2003 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2004 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2005 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2006 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2007 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2008 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2009 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2010
2011 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2012 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2013 DEFAULT_wxUSE_POSTSCRIPT=no
2014
10f2d63a
VZ
2015 DEFAULT_wxUSE_CLIPBOARD=no
2016 DEFAULT_wxUSE_TOOLTIPS=no
2017 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2018 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2019 DEFAULT_wxUSE_SPLINES=no
2020
2021 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2022 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2023 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2024
10f2d63a
VZ
2025 DEFAULT_wxUSE_RESOURCES=no
2026 DEFAULT_wxUSE_CONSTRAINTS=no
2027 DEFAULT_wxUSE_IPC=no
2028 DEFAULT_wxUSE_HELP=no
29fd3c0c 2029 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2030 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2031 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2032 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2033 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2034 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2035 DEFAULT_wxUSE_PROTOCOL=no
2036 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2037 DEFAULT_wxUSE_PROTOCOL_FTP=no
2038 DEFAULT_wxUSE_PROTOCOL_FILE=no
2039 DEFAULT_wxUSE_URL=no
3bd8fb5f 2040
10f2d63a 2041 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2042 DEFAULT_wxUSE_CHOICEDLG=no
2043 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2044 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2045 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2046 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2047 DEFAULT_wxUSE_FONTDLG=no
2048 DEFAULT_wxUSE_MSGDLG=no
2049 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2050 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2051 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2052 DEFAULT_wxUSE_STARTUP_TIPS=no
2053 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2054 DEFAULT_wxUSE_WIZARDDLG=no
2055
1e6feb95 2056 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2057 DEFAULT_wxUSE_MINIFRAME=no
2058 DEFAULT_wxUSE_HTML=no
24528b0c 2059 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2060 DEFAULT_wxUSE_FS_INET=no
2061 DEFAULT_wxUSE_FS_ZIP=no
2062 DEFAULT_wxUSE_BUSYINFO=no
2063 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2064 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2065
2066 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2067 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2068 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2069 DEFAULT_wxUSE_CALCTRL=no
2070 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2071 DEFAULT_wxUSE_CHECKBOX=no
2072 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2073 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2074 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2075 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2076 DEFAULT_wxUSE_GAUGE=no
2077 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2078 DEFAULT_wxUSE_IMAGLIST=no
2079 DEFAULT_wxUSE_LISTBOX=no
2080 DEFAULT_wxUSE_LISTCTRL=no
2081 DEFAULT_wxUSE_NOTEBOOK=no
2082 DEFAULT_wxUSE_RADIOBOX=no
2083 DEFAULT_wxUSE_RADIOBTN=no
2084 DEFAULT_wxUSE_SASH=no
2085 DEFAULT_wxUSE_SCROLLBAR=no
2086 DEFAULT_wxUSE_SLIDER=no
2087 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2088 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2089 DEFAULT_wxUSE_SPLITTER=no
2090 DEFAULT_wxUSE_STATBMP=no
2091 DEFAULT_wxUSE_STATBOX=no
2092 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2093 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2094 DEFAULT_wxUSE_STATUSBAR=yes
2095 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2096 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2097 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2098 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2099 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2100 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2101 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2102 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2103 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2104
2105 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2106 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_WCSRTOMBS=no
2108
edae8572 2109 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2110 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2111 DEFAULT_wxUSE_GIF=no
2112 DEFAULT_wxUSE_PCX=no
2113 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2114 DEFAULT_wxUSE_IFF=no
0046ff7c 2115 DEFAULT_wxUSE_XPM=no
658974ae 2116 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2117 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2118
e9e0dc15 2119 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2120 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2121else
1e6feb95 2122 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2123 DEFAULT_wxUSE_STL=no
1e6feb95 2124
d8356fa3
VZ
2125 DEFAULT_wxUSE_NANOX=no
2126
10f2d63a
VZ
2127 DEFAULT_wxUSE_THREADS=yes
2128
2129 DEFAULT_wxUSE_SHARED=yes
2130 DEFAULT_wxUSE_OPTIMISE=yes
2131 DEFAULT_wxUSE_PROFILE=no
2132 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2133 DEFAULT_wxUSE_NO_RTTI=no
2134 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_PERMISSIVE=no
2136 DEFAULT_wxUSE_DEBUG_FLAG=no
2137 DEFAULT_wxUSE_DEBUG_INFO=no
2138 DEFAULT_wxUSE_DEBUG_GDB=no
2139 DEFAULT_wxUSE_MEM_TRACING=no
2140 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2141 DEFAULT_wxUSE_DMALLOC=no
2142 DEFAULT_wxUSE_APPLE_IEEE=yes
2143
2144 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2145 DEFAULT_wxUSE_LOGWINDOW=yes
2146 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2147 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2148
2149 DEFAULT_wxUSE_GUI=yes
2150
831b3152 2151 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2152 DEFAULT_wxUSE_XML=yes
2153 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2154 DEFAULT_wxUSE_ZLIB=yes
2155 DEFAULT_wxUSE_LIBPNG=yes
2156 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2157 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2158 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2159 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2160
eb4efbdc 2161 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2162 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2163 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2164 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2165 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2166 DEFAULT_wxUSE_TIMER=yes
2167 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2168 DEFAULT_wxUSE_FILE=yes
1e6feb95 2169 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2170 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2171 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2172 DEFAULT_wxUSE_WAVE=no
2173 DEFAULT_wxUSE_INTL=yes
2174 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2175 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2176 DEFAULT_wxUSE_STREAMS=yes
2177 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2178 DEFAULT_wxUSE_OLE=yes
2179 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2180 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2181 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2182 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2183 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2184 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2185 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2186
2187 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2188 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2189 DEFAULT_wxUSE_POSTSCRIPT=yes
2190
10f2d63a
VZ
2191 DEFAULT_wxUSE_CLIPBOARD=yes
2192 DEFAULT_wxUSE_TOOLTIPS=yes
2193 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2194 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2195 DEFAULT_wxUSE_SPLINES=yes
2196
2197 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2198 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2199 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2200
2b5f62a0 2201 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2202 DEFAULT_wxUSE_CONSTRAINTS=yes
2203 DEFAULT_wxUSE_IPC=yes
2204 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2205 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2206 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2207 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2208 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2209 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2210 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2211 DEFAULT_wxUSE_PROTOCOL=yes
2212 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2213 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2214 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2215 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2216
2217 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2218 DEFAULT_wxUSE_CHOICEDLG=yes
2219 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2220 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2221 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2222 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2223 DEFAULT_wxUSE_FONTDLG=yes
2224 DEFAULT_wxUSE_MSGDLG=yes
2225 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2226 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2227 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2228 DEFAULT_wxUSE_STARTUP_TIPS=yes
2229 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2230 DEFAULT_wxUSE_WIZARDDLG=yes
2231
1e6feb95 2232 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2233 DEFAULT_wxUSE_MINIFRAME=yes
2234 DEFAULT_wxUSE_HTML=yes
24528b0c 2235 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2236 DEFAULT_wxUSE_FS_INET=yes
2237 DEFAULT_wxUSE_FS_ZIP=yes
2238 DEFAULT_wxUSE_BUSYINFO=yes
2239 DEFAULT_wxUSE_ZIPSTREAM=yes
2240 DEFAULT_wxUSE_VALIDATORS=yes
2241
2242 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2243 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2244 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2245 DEFAULT_wxUSE_CALCTRL=yes
2246 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2247 DEFAULT_wxUSE_CHECKBOX=yes
2248 DEFAULT_wxUSE_CHECKLST=yes
2249 DEFAULT_wxUSE_CHOICE=yes
2250 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2251 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2252 DEFAULT_wxUSE_GAUGE=yes
2253 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_IMAGLIST=yes
2255 DEFAULT_wxUSE_LISTBOX=yes
2256 DEFAULT_wxUSE_LISTCTRL=yes
2257 DEFAULT_wxUSE_NOTEBOOK=yes
2258 DEFAULT_wxUSE_RADIOBOX=yes
2259 DEFAULT_wxUSE_RADIOBTN=yes
2260 DEFAULT_wxUSE_SASH=yes
2261 DEFAULT_wxUSE_SCROLLBAR=yes
2262 DEFAULT_wxUSE_SLIDER=yes
2263 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2264 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2265 DEFAULT_wxUSE_SPLITTER=yes
2266 DEFAULT_wxUSE_STATBMP=yes
2267 DEFAULT_wxUSE_STATBOX=yes
2268 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2269 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_STATUSBAR=yes
2271 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2272 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2273 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2274 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2275 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2276 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2277 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2278 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2279 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2280
2281 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2282 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2283 DEFAULT_wxUSE_WCSRTOMBS=no
2284
edae8572 2285 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2286 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2287 DEFAULT_wxUSE_GIF=yes
2288 DEFAULT_wxUSE_PCX=yes
cc0e8480 2289 DEFAULT_wxUSE_IFF=no
10f2d63a 2290 DEFAULT_wxUSE_PNM=yes
0046ff7c 2291 DEFAULT_wxUSE_XPM=yes
658974ae 2292 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2293 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2294
e9e0dc15 2295 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2296 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2297fi
2298
8284b0c5
MB
2299
2300
10f2d63a 2301for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2302 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2303 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2304 has_toolkit_in_cache=1
2305 eval "DEFAULT_$LINE"
2306 eval "CACHE_$toolkit=1"
2307 fi
2308done
2309
8284b0c5
MB
2310
2311
5005acfe 2312 enablestring=
e6cc62c6
VS
2313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2314echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2315 no_cache=0
2316 # Check whether --enable-gui or --disable-gui was given.
2317if test "${enable_gui+set}" = set; then
2318 enableval="$enable_gui"
e6cc62c6 2319
10f2d63a
VZ
2320 if test "$enableval" = yes; then
2321 ac_cv_use_gui='wxUSE_GUI=yes'
2322 else
2323 ac_cv_use_gui='wxUSE_GUI=no'
2324 fi
e6cc62c6 2325
10f2d63a 2326else
e6cc62c6 2327
10f2d63a
VZ
2328 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2336
e6cc62c6 2337fi;
10f2d63a
VZ
2338
2339 eval "$ac_cv_use_gui"
2340 if test "$no_cache" != 1; then
2341 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2342 fi
2343
2344 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2345 echo "$as_me:$LINENO: result: yes" >&5
2346echo "${ECHO_T}yes" >&6
10f2d63a 2347 else
e6cc62c6
VS
2348 echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6
10f2d63a 2350 fi
e6cc62c6 2351
10f2d63a 2352
9747f85d
VS
2353 enablestring=
2354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2355echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2356 no_cache=0
2357 # Check whether --enable-monolithic or --disable-monolithic was given.
2358if test "${enable_monolithic+set}" = set; then
2359 enableval="$enable_monolithic"
2360
2361 if test "$enableval" = yes; then
2362 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2363 else
2364 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2365 fi
2366
2367else
2368
2369 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2370 if test "x$LINE" != x ; then
2371 eval "DEFAULT_$LINE"
2372 else
2373 no_cache=1
2374 fi
2375
2376 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2377
2378fi;
2379
2380 eval "$ac_cv_use_monolithic"
2381 if test "$no_cache" != 1; then
2382 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2383 fi
2384
2385 if test "$wxUSE_MONOLITHIC" = yes; then
2386 echo "$as_me:$LINENO: result: yes" >&5
2387echo "${ECHO_T}yes" >&6
2388 else
2389 echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6
2391 fi
2392
2393
b12915c1 2394if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2395
8284b0c5 2396
5005acfe 2397 enablestring=
e6cc62c6
VS
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2399echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2400 no_cache=0
2401 # Check whether --enable-universal or --disable-universal was given.
2402if test "${enable_universal+set}" = set; then
2403 enableval="$enable_universal"
e6cc62c6 2404
1e6feb95
VZ
2405 if test "$enableval" = yes; then
2406 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2407 else
2408 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2409 fi
e6cc62c6 2410
1e6feb95 2411else
e6cc62c6 2412
1e6feb95
VZ
2413 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2421
e6cc62c6 2422fi;
1e6feb95
VZ
2423
2424 eval "$ac_cv_use_universal"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2430 echo "$as_me:$LINENO: result: yes" >&5
2431echo "${ECHO_T}yes" >&6
1e6feb95 2432 else
e6cc62c6
VS
2433 echo "$as_me:$LINENO: result: no" >&5
2434echo "${ECHO_T}no" >&6
1e6feb95 2435 fi
e6cc62c6
VS
2436
2437
10f2d63a
VZ
2438# Check whether --with-gtk or --without-gtk was given.
2439if test "${with_gtk+set}" = set; then
2440 withval="$with_gtk"
2441 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2442fi;
10f2d63a
VZ
2443
2444# Check whether --with-motif or --without-motif was given.
2445if test "${with_motif+set}" = set; then
2446 withval="$with_motif"
2447 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2448fi;
10f2d63a 2449
b4085ce6
GD
2450# Check whether --with-mac or --without-mac was given.
2451if test "${with_mac+set}" = set; then
2452 withval="$with_mac"
2453 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2454fi;
b4085ce6 2455
ac0c4cc3
DE
2456# Check whether --with-cocoa or --without-cocoa was given.
2457if test "${with_cocoa+set}" = set; then
2458 withval="$with_cocoa"
2459 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2460fi;
ac0c4cc3 2461
10f2d63a
VZ
2462# Check whether --with-wine or --without-wine was given.
2463if test "${with_wine+set}" = set; then
2464 withval="$with_wine"
89e6bf6d 2465 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2466fi;
10f2d63a 2467
77e13408
RL
2468# Check whether --with-msw or --without-msw was given.
2469if test "${with_msw+set}" = set; then
2470 withval="$with_msw"
b4efce5e 2471 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
10f2d63a 2473
e07802fc
VZ
2474# Check whether --with-pm or --without-pm was given.
2475if test "${with_pm+set}" = set; then
2476 withval="$with_pm"
2477 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
698dcdb6 2479
1e6feb95
VZ
2480# Check whether --with-mgl or --without-mgl was given.
2481if test "${with_mgl+set}" = set; then
2482 withval="$with_mgl"
6c657b52 2483 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
1e6feb95 2485
1725144d
RR
2486# Check whether --with-microwin or --without-microwin was given.
2487if test "${with_microwin+set}" = set; then
2488 withval="$with_microwin"
2489 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2490fi;
1725144d 2491
f79bd02d
JS
2492# Check whether --with-x11 or --without-x11 was given.
2493if test "${with_x11+set}" = set; then
2494 withval="$with_x11"
3c011993 2495 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2496fi;
a0b9e27f 2497
5005acfe 2498 enablestring=
e6cc62c6
VS
2499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2500echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2501 no_cache=0
ba875e66
VZ
2502 # Check whether --enable-nanox or --disable-nanox was given.
2503if test "${enable_nanox+set}" = set; then
2504 enableval="$enable_nanox"
e6cc62c6 2505
d8356fa3 2506 if test "$enableval" = yes; then
ba875e66 2507 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2508 else
ba875e66 2509 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2510 fi
e6cc62c6 2511
d8356fa3 2512else
e6cc62c6 2513
d8356fa3
VZ
2514 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
ba875e66 2521 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2522
e6cc62c6 2523fi;
d8356fa3 2524
ba875e66 2525 eval "$ac_cv_use_nanox"
d8356fa3 2526 if test "$no_cache" != 1; then
ba875e66 2527 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2528 fi
2529
2530 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2531 echo "$as_me:$LINENO: result: yes" >&5
2532echo "${ECHO_T}yes" >&6
d8356fa3 2533 else
e6cc62c6
VS
2534 echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6
d8356fa3 2536 fi
e6cc62c6 2537
8284b0c5 2538
d74f4b5a 2539
5005acfe 2540 enablestring=
e6cc62c6
VS
2541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2542echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2543 no_cache=0
2544 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2545if test "${enable_gtk2+set}" = set; then
2546 enableval="$enable_gtk2"
e6cc62c6 2547
d74f4b5a
VZ
2548 if test "$enableval" = yes; then
2549 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2550 else
2551 ac_cv_use_gtk2='wxUSE_GTK2=no'
2552 fi
e6cc62c6 2553
10f2d63a 2554else
e6cc62c6 2555
d74f4b5a
VZ
2556 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2564
e6cc62c6 2565fi;
328a083c 2566
d74f4b5a
VZ
2567 eval "$ac_cv_use_gtk2"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
d74f4b5a 2575 else
e6cc62c6
VS
2576 echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6
d74f4b5a 2578 fi
d74f4b5a 2579
5c6fa7d2 2580
e6cc62c6
VS
2581
2582 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2583echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2584 no_cache=0
e6cc62c6
VS
2585
2586# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2587if test "${with_libpng+set}" = set; then
2588 withval="$with_libpng"
e6cc62c6 2589
10f2d63a 2590 if test "$withval" = yes; then
b12915c1 2591 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2592 elif test "$withval" = no; then
b12915c1 2593 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2594 elif test "$withval" = sys; then
2595 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2596 elif test "$withval" = builtin; then
2597 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2598 else
e6cc62c6
VS
2599 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2600echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2601 { (exit 1); exit 1; }; }
10f2d63a 2602 fi
e6cc62c6 2603
10f2d63a 2604else
e6cc62c6 2605
b12915c1 2606 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
b12915c1 2613 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2614
e6cc62c6 2615fi;
10f2d63a 2616
b12915c1 2617 eval "$ac_cv_use_libpng"
10f2d63a 2618 if test "$no_cache" != 1; then
b12915c1 2619 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2620 fi
2621
b12915c1 2622 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2623 echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
422107f9 2625 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2626 echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
422107f9 2628 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2629 echo "$as_me:$LINENO: result: system version" >&5
2630echo "${ECHO_T}system version" >&6
4f14bcd8 2631 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2632 echo "$as_me:$LINENO: result: builtin version" >&5
2633echo "${ECHO_T}builtin version" >&6
422107f9 2634 else
e6cc62c6
VS
2635 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2636echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2637 { (exit 1); exit 1; }; }
10f2d63a 2638 fi
10f2d63a 2639
e6cc62c6
VS
2640
2641 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2642echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2643 no_cache=0
e6cc62c6
VS
2644
2645# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2646if test "${with_libjpeg+set}" = set; then
2647 withval="$with_libjpeg"
e6cc62c6 2648
10f2d63a 2649 if test "$withval" = yes; then
b12915c1 2650 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2651 elif test "$withval" = no; then
b12915c1 2652 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2653 elif test "$withval" = sys; then
2654 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2655 elif test "$withval" = builtin; then
2656 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2657 else
e6cc62c6
VS
2658 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2659echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2660 { (exit 1); exit 1; }; }
10f2d63a 2661 fi
e6cc62c6 2662
10f2d63a 2663else
e6cc62c6 2664
b12915c1 2665 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
b12915c1 2672 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2673
e6cc62c6 2674fi;
10f2d63a 2675
b12915c1 2676 eval "$ac_cv_use_libjpeg"
10f2d63a 2677 if test "$no_cache" != 1; then
b12915c1 2678 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2679 fi
2680
b12915c1 2681 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
422107f9 2684 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
422107f9 2687 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2688 echo "$as_me:$LINENO: result: system version" >&5
2689echo "${ECHO_T}system version" >&6
4f14bcd8 2690 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: builtin version" >&5
2692echo "${ECHO_T}builtin version" >&6
422107f9 2693 else
e6cc62c6
VS
2694 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2695echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2696 { (exit 1); exit 1; }; }
10f2d63a 2697 fi
10f2d63a 2698
e6cc62c6
VS
2699
2700 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2701echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2702 no_cache=0
e6cc62c6
VS
2703
2704# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2705if test "${with_libtiff+set}" = set; then
2706 withval="$with_libtiff"
e6cc62c6 2707
10f2d63a 2708 if test "$withval" = yes; then
b12915c1 2709 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2710 elif test "$withval" = no; then
b12915c1 2711 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2712 elif test "$withval" = sys; then
2713 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2714 elif test "$withval" = builtin; then
2715 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2716 else
e6cc62c6
VS
2717 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2718echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2719 { (exit 1); exit 1; }; }
10f2d63a 2720 fi
e6cc62c6 2721
10f2d63a 2722else
e6cc62c6 2723
b12915c1 2724 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2725 if test "x$LINE" != x ; then
2726 eval "DEFAULT_$LINE"
2727 else
2728 no_cache=1
2729 fi
2730
b12915c1 2731 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2732
e6cc62c6 2733fi;
10f2d63a 2734
b12915c1 2735 eval "$ac_cv_use_libtiff"
10f2d63a 2736 if test "$no_cache" != 1; then
b12915c1 2737 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2738 fi
2739
b12915c1 2740 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2741 echo "$as_me:$LINENO: result: yes" >&5
2742echo "${ECHO_T}yes" >&6
0dcf9893 2743 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
0dcf9893 2746 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2747 echo "$as_me:$LINENO: result: system version" >&5
2748echo "${ECHO_T}system version" >&6
4f14bcd8 2749 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: builtin version" >&5
2751echo "${ECHO_T}builtin version" >&6
0dcf9893 2752 else
e6cc62c6
VS
2753 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2754echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2755 { (exit 1); exit 1; }; }
10f2d63a 2756 fi
10f2d63a 2757
e6cc62c6
VS
2758
2759 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2760echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2761 no_cache=0
e6cc62c6
VS
2762
2763# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2764if test "${with_opengl+set}" = set; then
2765 withval="$with_opengl"
e6cc62c6 2766
10f2d63a 2767 if test "$withval" = yes; then
b12915c1 2768 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2769 else
b12915c1 2770 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2771 fi
e6cc62c6 2772
10f2d63a 2773else
e6cc62c6 2774
b12915c1 2775 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
b12915c1 2782 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2783
e6cc62c6 2784fi;
10f2d63a 2785
b12915c1 2786 eval "$ac_cv_use_opengl"
10f2d63a 2787 if test "$no_cache" != 1; then
b12915c1 2788 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2789 fi
2790
b12915c1 2791 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2792 echo "$as_me:$LINENO: result: yes" >&5
2793echo "${ECHO_T}yes" >&6
10f2d63a 2794 else
e6cc62c6
VS
2795 echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
10f2d63a 2797 fi
e6cc62c6 2798
10f2d63a 2799
b12915c1
VZ
2800fi
2801
5c6fa7d2 2802
e6cc62c6
VS
2803 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2804echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2805 no_cache=0
e6cc62c6
VS
2806
2807# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2808if test "${with_dmalloc+set}" = set; then
2809 withval="$with_dmalloc"
e6cc62c6 2810
c7a2bf27 2811 if test "$withval" = yes; then
b12915c1 2812 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2813 else
b12915c1 2814 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2815 fi
e6cc62c6 2816
c7a2bf27 2817else
e6cc62c6 2818
b12915c1 2819 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
b12915c1 2826 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2827
e6cc62c6 2828fi;
c7a2bf27 2829
b12915c1 2830 eval "$ac_cv_use_dmalloc"
c7a2bf27 2831 if test "$no_cache" != 1; then
b12915c1 2832 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2833 fi
2834
b12915c1 2835 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
c7a2bf27 2838 else
e6cc62c6
VS
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
c7a2bf27 2841 fi
c7a2bf27 2842
e6cc62c6
VS
2843
2844 echo "$as_me:$LINENO: checking for --with-regex" >&5
2845echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2846 no_cache=0
e6cc62c6
VS
2847
2848# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2849if test "${with_regex+set}" = set; then
2850 withval="$with_regex"
e6cc62c6 2851
3e44f09d
VZ
2852 if test "$withval" = yes; then
2853 ac_cv_use_regex='wxUSE_REGEX=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_regex='wxUSE_REGEX=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2860 else
e6cc62c6
VS
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
3e44f09d 2864 fi
e6cc62c6 2865
3e44f09d 2866else
e6cc62c6 2867
3e44f09d
VZ
2868 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2876
e6cc62c6 2877fi;
3e44f09d
VZ
2878
2879 eval "$ac_cv_use_regex"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
3e44f09d 2887 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
3e44f09d 2890 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
4f14bcd8 2893 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
3e44f09d 2896 else
e6cc62c6
VS
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
3e44f09d 2900 fi
3e44f09d 2901
e6cc62c6
VS
2902
2903 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2904echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2905 no_cache=0
e6cc62c6
VS
2906
2907# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2908if test "${with_zlib+set}" = set; then
2909 withval="$with_zlib"
e6cc62c6 2910
10f2d63a 2911 if test "$withval" = yes; then
b12915c1 2912 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2913 elif test "$withval" = no; then
b12915c1 2914 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2915 elif test "$withval" = sys; then
2916 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2919 else
e6cc62c6
VS
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
10f2d63a 2923 fi
e6cc62c6 2924
10f2d63a 2925else
e6cc62c6 2926
b12915c1 2927 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
b12915c1 2934 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2935
e6cc62c6 2936fi;
10f2d63a 2937
b12915c1 2938 eval "$ac_cv_use_zlib"
10f2d63a 2939 if test "$no_cache" != 1; then
b12915c1 2940 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2941 fi
2942
b12915c1 2943 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
422107f9 2946 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
422107f9 2949 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
4f14bcd8 2952 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
422107f9 2955 else
e6cc62c6
VS
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
10f2d63a 2959 fi
10f2d63a 2960
e6cc62c6
VS
2961
2962 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2963echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2964 no_cache=0
e6cc62c6
VS
2965
2966# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2967if test "${with_odbc+set}" = set; then
2968 withval="$with_odbc"
e6cc62c6 2969
10f2d63a
VZ
2970 if test "$withval" = yes; then
2971 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2972 elif test "$withval" = no; then
10f2d63a 2973 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2974 elif test "$withval" = sys; then
2975 ac_cv_use_odbc='wxUSE_ODBC=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2978 else
e6cc62c6
VS
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
10f2d63a 2982 fi
e6cc62c6 2983
10f2d63a 2984else
e6cc62c6 2985
10f2d63a
VZ
2986 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2994
e6cc62c6 2995fi;
10f2d63a
VZ
2996
2997 eval "$ac_cv_use_odbc"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
8647bec6 3005 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
8647bec6 3008 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
8647bec6 3011 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
8647bec6 3014 else
e6cc62c6
VS
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
10f2d63a 3018 fi
e6cc62c6 3019
52127426 3020
672abd7a
VS
3021 echo "$as_me:$LINENO: checking for --with-expat" >&5
3022echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-expat or --without-expat was given.
3026if test "${with_expat+set}" = set; then
3027 withval="$with_expat"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_expat='wxUSE_EXPAT=yes'
3031 elif test "$withval" = no; then
3032 ac_cv_use_expat='wxUSE_EXPAT=no'
3033 elif test "$withval" = sys; then
3034 ac_cv_use_expat='wxUSE_EXPAT=sys'
3035 elif test "$withval" = builtin; then
3036 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3037 else
3038 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3039echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3040 { (exit 1); exit 1; }; }
3041 fi
3042
3043else
3044
3045 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3046 if test "x$LINE" != x ; then
3047 eval "DEFAULT_$LINE"
3048 else
3049 no_cache=1
3050 fi
3051
3052 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3053
3054fi;
3055
3056 eval "$ac_cv_use_expat"
3057 if test "$no_cache" != 1; then
3058 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3059 fi
3060
3061 if test "$wxUSE_EXPAT" = yes; then
3062 echo "$as_me:$LINENO: result: yes" >&5
3063echo "${ECHO_T}yes" >&6
3064 elif test "$wxUSE_EXPAT" = no; then
3065 echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6
3067 elif test "$wxUSE_EXPAT" = sys; then
3068 echo "$as_me:$LINENO: result: system version" >&5
3069echo "${ECHO_T}system version" >&6
3070 elif test "$wxUSE_EXPAT" = builtin; then
3071 echo "$as_me:$LINENO: result: builtin version" >&5
3072echo "${ECHO_T}builtin version" >&6
3073 else
3074 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3075echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3076 { (exit 1); exit 1; }; }
3077 fi
3078
3079
8284b0c5
MB
3080
3081
5005acfe 3082 enablestring=
e6cc62c6
VS
3083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3084echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3085 no_cache=0
3086 # Check whether --enable-shared or --disable-shared was given.
3087if test "${enable_shared+set}" = set; then
3088 enableval="$enable_shared"
e6cc62c6 3089
10f2d63a
VZ
3090 if test "$enableval" = yes; then
3091 ac_cv_use_shared='wxUSE_SHARED=yes'
3092 else
3093 ac_cv_use_shared='wxUSE_SHARED=no'
3094 fi
e6cc62c6 3095
10f2d63a 3096else
e6cc62c6 3097
10f2d63a
VZ
3098 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3106
e6cc62c6 3107fi;
10f2d63a
VZ
3108
3109 eval "$ac_cv_use_shared"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
10f2d63a 3117 else
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
10f2d63a 3120 fi
e6cc62c6 3121
10f2d63a 3122
5005acfe 3123 enablestring=
e6cc62c6
VS
3124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3125echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3126 no_cache=0
3127 # Check whether --enable-optimise or --disable-optimise was given.
3128if test "${enable_optimise+set}" = set; then
3129 enableval="$enable_optimise"
e6cc62c6 3130
10f2d63a
VZ
3131 if test "$enableval" = yes; then
3132 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3133 else
3134 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3135 fi
e6cc62c6 3136
10f2d63a 3137else
e6cc62c6 3138
10f2d63a
VZ
3139 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3147
e6cc62c6 3148fi;
10f2d63a
VZ
3149
3150 eval "$ac_cv_use_optimise"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3156 echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
10f2d63a 3158 else
e6cc62c6
VS
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
10f2d63a 3161 fi
e6cc62c6 3162
10f2d63a 3163
5005acfe 3164 enablestring=
e6cc62c6
VS
3165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3166echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3167 no_cache=0
3168 # Check whether --enable-debug or --disable-debug was given.
3169if test "${enable_debug+set}" = set; then
3170 enableval="$enable_debug"
e6cc62c6 3171
10f2d63a
VZ
3172 if test "$enableval" = yes; then
3173 ac_cv_use_debug='wxUSE_DEBUG=yes'
3174 else
3175 ac_cv_use_debug='wxUSE_DEBUG=no'
3176 fi
e6cc62c6 3177
10f2d63a 3178else
e6cc62c6 3179
10f2d63a
VZ
3180 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3188
e6cc62c6 3189fi;
10f2d63a
VZ
3190
3191 eval "$ac_cv_use_debug"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
10f2d63a 3199 else
e6cc62c6
VS
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
10f2d63a 3202 fi
e6cc62c6 3203
52127426 3204
df5168c4
MB
3205 enablestring=
3206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3207echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3208 no_cache=0
3209 # Check whether --enable-stl or --disable-stl was given.
3210if test "${enable_stl+set}" = set; then
3211 enableval="$enable_stl"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_stl='wxUSE_STL=yes'
3215 else
3216 ac_cv_use_stl='wxUSE_STL=no'
3217 fi
3218
3219else
3220
3221 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3229
3230fi;
3231
3232 eval "$ac_cv_use_stl"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_STL" = yes; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239echo "${ECHO_T}yes" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243 fi
3244
3245
10f2d63a
VZ
3246if test "$wxUSE_DEBUG" = "yes"; then
3247 DEFAULT_wxUSE_DEBUG_FLAG=yes
3248 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3249 BUILD=debug
10f2d63a
VZ
3250elif test "$wxUSE_DEBUG" = "no"; then
3251 DEFAULT_wxUSE_DEBUG_FLAG=no
3252 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3253 BUILD=release
10f2d63a
VZ
3254fi
3255
8284b0c5 3256
5005acfe 3257 enablestring=
e6cc62c6
VS
3258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3259echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3260 no_cache=0
3261 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3262if test "${enable_debug_flag+set}" = set; then
3263 enableval="$enable_debug_flag"
e6cc62c6 3264
10f2d63a
VZ
3265 if test "$enableval" = yes; then
3266 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3267 else
3268 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3269 fi
e6cc62c6 3270
10f2d63a 3271else
e6cc62c6 3272
10f2d63a
VZ
3273 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
3280 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3281
e6cc62c6 3282fi;
10f2d63a
VZ
3283
3284 eval "$ac_cv_use_debug_flag"
3285 if test "$no_cache" != 1; then
3286 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3287 fi
3288
3289 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3290 echo "$as_me:$LINENO: result: yes" >&5
3291echo "${ECHO_T}yes" >&6
10f2d63a 3292 else
e6cc62c6
VS
3293 echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
10f2d63a 3295 fi
e6cc62c6 3296
10f2d63a 3297
5005acfe 3298 enablestring=
e6cc62c6
VS
3299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3300echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3301 no_cache=0
3302 # Check whether --enable-debug_info or --disable-debug_info was given.
3303if test "${enable_debug_info+set}" = set; then
3304 enableval="$enable_debug_info"
e6cc62c6 3305
10f2d63a
VZ
3306 if test "$enableval" = yes; then
3307 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3308 else
3309 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3310 fi
e6cc62c6 3311
10f2d63a 3312else
e6cc62c6 3313
10f2d63a
VZ
3314 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3315 if test "x$LINE" != x ; then
3316 eval "DEFAULT_$LINE"
3317 else
3318 no_cache=1
3319 fi
3320
3321 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3322
e6cc62c6 3323fi;
10f2d63a
VZ
3324
3325 eval "$ac_cv_use_debug_info"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3331 echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
10f2d63a 3333 else
e6cc62c6
VS
3334 echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
10f2d63a 3336 fi
e6cc62c6 3337
10f2d63a 3338
5005acfe 3339 enablestring=
e6cc62c6
VS
3340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3341echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3342 no_cache=0
3343 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3344if test "${enable_debug_gdb+set}" = set; then
3345 enableval="$enable_debug_gdb"
e6cc62c6 3346
10f2d63a
VZ
3347 if test "$enableval" = yes; then
3348 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3349 else
3350 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3351 fi
e6cc62c6 3352
10f2d63a 3353else
e6cc62c6 3354
10f2d63a
VZ
3355 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3363
e6cc62c6 3364fi;
10f2d63a
VZ
3365
3366 eval "$ac_cv_use_debug_gdb"
3367 if test "$no_cache" != 1; then
3368 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3369 fi
3370
3371 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3372 echo "$as_me:$LINENO: result: yes" >&5
3373echo "${ECHO_T}yes" >&6
10f2d63a 3374 else
e6cc62c6
VS
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
10f2d63a 3377 fi
e6cc62c6 3378
10f2d63a 3379
5005acfe 3380 enablestring=
e6cc62c6
VS
3381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3382echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3383 no_cache=0
3384 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3385if test "${enable_debug_cntxt+set}" = set; then
3386 enableval="$enable_debug_cntxt"
e6cc62c6 3387
10f2d63a
VZ
3388 if test "$enableval" = yes; then
3389 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3390 else
3391 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3392 fi
e6cc62c6 3393
10f2d63a 3394else
e6cc62c6 3395
10f2d63a
VZ
3396 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3404
e6cc62c6 3405fi;
10f2d63a
VZ
3406
3407 eval "$ac_cv_use_debug_cntxt"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3413 echo "$as_me:$LINENO: result: yes" >&5
3414echo "${ECHO_T}yes" >&6
10f2d63a 3415 else
e6cc62c6
VS
3416 echo "$as_me:$LINENO: result: no" >&5
3417echo "${ECHO_T}no" >&6
10f2d63a 3418 fi
e6cc62c6 3419
10f2d63a 3420
5005acfe 3421 enablestring=
e6cc62c6
VS
3422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3423echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3424 no_cache=0
3425 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3426if test "${enable_mem_tracing+set}" = set; then
3427 enableval="$enable_mem_tracing"
e6cc62c6 3428
10f2d63a
VZ
3429 if test "$enableval" = yes; then
3430 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3431 else
3432 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3433 fi
e6cc62c6 3434
10f2d63a 3435else
e6cc62c6 3436
10f2d63a
VZ
3437 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3438 if test "x$LINE" != x ; then
3439 eval "DEFAULT_$LINE"
3440 else
3441 no_cache=1
3442 fi
3443
3444 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3445
e6cc62c6 3446fi;
10f2d63a
VZ
3447
3448 eval "$ac_cv_use_mem_tracing"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3454 echo "$as_me:$LINENO: result: yes" >&5
3455echo "${ECHO_T}yes" >&6
10f2d63a 3456 else
e6cc62c6
VS
3457 echo "$as_me:$LINENO: result: no" >&5
3458echo "${ECHO_T}no" >&6
10f2d63a 3459 fi
e6cc62c6 3460
10f2d63a 3461
5005acfe 3462 enablestring=
e6cc62c6
VS
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3464echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-profile or --disable-profile was given.
3467if test "${enable_profile+set}" = set; then
3468 enableval="$enable_profile"
e6cc62c6 3469
10f2d63a
VZ
3470 if test "$enableval" = yes; then
3471 ac_cv_use_profile='wxUSE_PROFILE=yes'
3472 else
3473 ac_cv_use_profile='wxUSE_PROFILE=no'
3474 fi
e6cc62c6 3475
10f2d63a 3476else
e6cc62c6 3477
10f2d63a
VZ
3478 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3486
e6cc62c6 3487fi;
10f2d63a
VZ
3488
3489 eval "$ac_cv_use_profile"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
10f2d63a 3497 else
e6cc62c6
VS
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
10f2d63a 3500 fi
e6cc62c6 3501
10f2d63a 3502
5005acfe 3503 enablestring=
e6cc62c6
VS
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3505echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3506 no_cache=0
3507 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3508if test "${enable_no_rtti+set}" = set; then
3509 enableval="$enable_no_rtti"
e6cc62c6 3510
10f2d63a
VZ
3511 if test "$enableval" = yes; then
3512 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3513 else
3514 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3515 fi
e6cc62c6 3516
10f2d63a 3517else
e6cc62c6 3518
10f2d63a
VZ
3519 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3527
e6cc62c6 3528fi;
10f2d63a
VZ
3529
3530 eval "$ac_cv_use_no_rtti"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3536 echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6
10f2d63a 3538 else
e6cc62c6
VS
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
10f2d63a 3541 fi
e6cc62c6 3542
10f2d63a 3543
5005acfe 3544 enablestring=
e6cc62c6
VS
3545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3546echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3547 no_cache=0
3548 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3549if test "${enable_no_exceptions+set}" = set; then
3550 enableval="$enable_no_exceptions"
e6cc62c6 3551
10f2d63a
VZ
3552 if test "$enableval" = yes; then
3553 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3554 else
3555 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3556 fi
e6cc62c6 3557
10f2d63a 3558else
e6cc62c6 3559
10f2d63a
VZ
3560 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3568
e6cc62c6 3569fi;
10f2d63a
VZ
3570
3571 eval "$ac_cv_use_no_exceptions"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3577 echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
10f2d63a 3579 else
e6cc62c6
VS
3580 echo "$as_me:$LINENO: result: no" >&5
3581echo "${ECHO_T}no" >&6
10f2d63a 3582 fi
e6cc62c6 3583
10f2d63a 3584
5005acfe 3585 enablestring=
e6cc62c6
VS
3586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3587echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3588 no_cache=0
3589 # Check whether --enable-permissive or --disable-permissive was given.
3590if test "${enable_permissive+set}" = set; then
3591 enableval="$enable_permissive"
e6cc62c6 3592
10f2d63a
VZ
3593 if test "$enableval" = yes; then
3594 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3595 else
3596 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3597 fi
e6cc62c6 3598
10f2d63a 3599else
e6cc62c6 3600
10f2d63a
VZ
3601 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3609
e6cc62c6 3610fi;
10f2d63a
VZ
3611
3612 eval "$ac_cv_use_permissive"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3618 echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
10f2d63a 3620 else
e6cc62c6
VS
3621 echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
10f2d63a 3623 fi
e6cc62c6 3624
10f2d63a 3625
5005acfe 3626 enablestring=
e6cc62c6
VS
3627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3628echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3629 no_cache=0
3630 # Check whether --enable-no_deps or --disable-no_deps was given.
3631if test "${enable_no_deps+set}" = set; then
3632 enableval="$enable_no_deps"
e6cc62c6 3633
10f2d63a
VZ
3634 if test "$enableval" = yes; then
3635 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3636 else
3637 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3638 fi
e6cc62c6 3639
10f2d63a 3640else
e6cc62c6 3641
10f2d63a
VZ
3642 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3650
e6cc62c6 3651fi;
10f2d63a
VZ
3652
3653 eval "$ac_cv_use_no_deps"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3659 echo "$as_me:$LINENO: result: yes" >&5
3660echo "${ECHO_T}yes" >&6
10f2d63a 3661 else
e6cc62c6
VS
3662 echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
10f2d63a 3664 fi
e6cc62c6 3665
52127426 3666
8284b0c5 3667
5005acfe 3668 enablestring=
e6cc62c6
VS
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3671 no_cache=0
3672 # Check whether --enable-compat20 or --disable-compat20 was given.
3673if test "${enable_compat20+set}" = set; then
3674 enableval="$enable_compat20"
e6cc62c6 3675
54276ccf
VZ
3676 if test "$enableval" = yes; then
3677 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3678 else
3679 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3680 fi
e6cc62c6 3681
54276ccf 3682else
e6cc62c6 3683
54276ccf
VZ
3684 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3692
e6cc62c6 3693fi;
54276ccf
VZ
3694
3695 eval "$ac_cv_use_compat20"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
54276ccf 3703 else
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
54276ccf 3706 fi
e6cc62c6 3707
54276ccf 3708
65d8ef1e 3709 enablestring=
e6cc62c6
VS
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3712 no_cache=0
3713 # Check whether --enable-compat22 or --disable-compat22 was given.
3714if test "${enable_compat22+set}" = set; then
3715 enableval="$enable_compat22"
e6cc62c6 3716
54276ccf
VZ
3717 if test "$enableval" = yes; then
3718 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3719 else
3720 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3721 fi
e6cc62c6 3722
54276ccf 3723else
e6cc62c6 3724
54276ccf
VZ
3725 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3733
e6cc62c6 3734fi;
54276ccf
VZ
3735
3736 eval "$ac_cv_use_compat22"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
54276ccf 3744 else
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
54276ccf 3747 fi
e6cc62c6 3748
54276ccf 3749
65d8ef1e 3750 enablestring=disable
e6cc62c6
VS
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3753 no_cache=0
3754 # Check whether --enable-compat24 or --disable-compat24 was given.
3755if test "${enable_compat24+set}" = set; then
3756 enableval="$enable_compat24"
e6cc62c6 3757
65d8ef1e
VS
3758 if test "$enableval" = yes; then
3759 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3760 else
3761 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3762 fi
e6cc62c6 3763
65d8ef1e 3764else
e6cc62c6 3765
65d8ef1e
VS
3766 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3774
e6cc62c6 3775fi;
65d8ef1e
VS
3776
3777 eval "$ac_cv_use_compat24"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
65d8ef1e 3785 else
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
65d8ef1e 3788 fi
e6cc62c6 3789
65d8ef1e 3790
3bd8fb5f
RD
3791# Check whether --enable-rpath or --disable-rpath was given.
3792if test "${enable_rpath+set}" = set; then
3793 enableval="$enable_rpath"
3794 wxRPATH_DIR="$enableval"
e6cc62c6 3795fi;
3bd8fb5f
RD
3796
3797if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3798 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3799fi
3800
8284b0c5
MB
3801
3802
3803
5005acfe 3804 enablestring=
e6cc62c6
VS
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3806echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3807 no_cache=0
3808 # Check whether --enable-intl or --disable-intl was given.
3809if test "${enable_intl+set}" = set; then
3810 enableval="$enable_intl"
e6cc62c6 3811
10f2d63a
VZ
3812 if test "$enableval" = yes; then
3813 ac_cv_use_intl='wxUSE_INTL=yes'
3814 else
3815 ac_cv_use_intl='wxUSE_INTL=no'
3816 fi
e6cc62c6 3817
10f2d63a 3818else
e6cc62c6 3819
10f2d63a
VZ
3820 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3828
e6cc62c6 3829fi;
10f2d63a
VZ
3830
3831 eval "$ac_cv_use_intl"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3837 echo "$as_me:$LINENO: result: yes" >&5
3838echo "${ECHO_T}yes" >&6
10f2d63a 3839 else
e6cc62c6
VS
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
10f2d63a 3842 fi
e6cc62c6 3843
10f2d63a 3844
5005acfe 3845 enablestring=
e6cc62c6
VS
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3847echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3848 no_cache=0
3849 # Check whether --enable-config or --disable-config was given.
3850if test "${enable_config+set}" = set; then
3851 enableval="$enable_config"
e6cc62c6 3852
10f2d63a
VZ
3853 if test "$enableval" = yes; then
3854 ac_cv_use_config='wxUSE_CONFIG=yes'
3855 else
3856 ac_cv_use_config='wxUSE_CONFIG=no'
3857 fi
e6cc62c6 3858
10f2d63a 3859else
e6cc62c6 3860
10f2d63a
VZ
3861 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3869
e6cc62c6 3870fi;
10f2d63a
VZ
3871
3872 eval "$ac_cv_use_config"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
10f2d63a 3880 else
e6cc62c6
VS
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
10f2d63a 3883 fi
e6cc62c6 3884
52127426 3885
8284b0c5 3886
5005acfe 3887 enablestring=
e6cc62c6
VS
3888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3889echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3890 no_cache=0
3891 # Check whether --enable-protocols or --disable-protocols was given.
3892if test "${enable_protocols+set}" = set; then
3893 enableval="$enable_protocols"
e6cc62c6 3894
a1622950
VZ
3895 if test "$enableval" = yes; then
3896 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3897 else
3898 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3899 fi
e6cc62c6 3900
a1622950 3901else
e6cc62c6 3902
a1622950
VZ
3903 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3911
e6cc62c6 3912fi;
a1622950
VZ
3913
3914 eval "$ac_cv_use_protocols"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3920 echo "$as_me:$LINENO: result: yes" >&5
3921echo "${ECHO_T}yes" >&6
a1622950 3922 else
e6cc62c6
VS
3923 echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
a1622950 3925 fi
e6cc62c6 3926
a1622950 3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3931 no_cache=0
3932 # Check whether --enable-ftp or --disable-ftp was given.
3933if test "${enable_ftp+set}" = set; then
3934 enableval="$enable_ftp"
e6cc62c6 3935
a1622950
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3938 else
3939 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3940 fi
e6cc62c6 3941
a1622950 3942else
e6cc62c6 3943
a1622950
VZ
3944 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3952
e6cc62c6 3953fi;
a1622950
VZ
3954
3955 eval "$ac_cv_use_ftp"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
a1622950 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
a1622950 3966 fi
e6cc62c6 3967
a1622950 3968
5005acfe 3969 enablestring=
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3972 no_cache=0
3973 # Check whether --enable-http or --disable-http was given.
3974if test "${enable_http+set}" = set; then
3975 enableval="$enable_http"
e6cc62c6 3976
a1622950
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3979 else
3980 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3981 fi
e6cc62c6 3982
a1622950 3983else
e6cc62c6 3984
a1622950
VZ
3985 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3993
e6cc62c6 3994fi;
a1622950
VZ
3995
3996 eval "$ac_cv_use_http"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
a1622950 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
a1622950 4007 fi
e6cc62c6 4008
a1622950 4009
5005acfe 4010 enablestring=
e6cc62c6
VS
4011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4012echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4013 no_cache=0
4014 # Check whether --enable-fileproto or --disable-fileproto was given.
4015if test "${enable_fileproto+set}" = set; then
4016 enableval="$enable_fileproto"
e6cc62c6 4017
a1622950
VZ
4018 if test "$enableval" = yes; then
4019 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4020 else
4021 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4022 fi
e6cc62c6 4023
a1622950 4024else
e6cc62c6 4025
a1622950
VZ
4026 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4027 if test "x$LINE" != x ; then
4028 eval "DEFAULT_$LINE"
4029 else
4030 no_cache=1
4031 fi
4032
4033 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4034
e6cc62c6 4035fi;
a1622950
VZ
4036
4037 eval "$ac_cv_use_fileproto"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4043 echo "$as_me:$LINENO: result: yes" >&5
4044echo "${ECHO_T}yes" >&6
a1622950 4045 else
e6cc62c6
VS
4046 echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
a1622950 4048 fi
e6cc62c6 4049
a1622950 4050
5005acfe 4051 enablestring=
e6cc62c6
VS
4052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4053echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4054 no_cache=0
4055 # Check whether --enable-sockets or --disable-sockets was given.
4056if test "${enable_sockets+set}" = set; then
4057 enableval="$enable_sockets"
e6cc62c6 4058
10f2d63a
VZ
4059 if test "$enableval" = yes; then
4060 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4061 else
4062 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4063 fi
e6cc62c6 4064
10f2d63a 4065else
e6cc62c6 4066
10f2d63a
VZ
4067 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4075
e6cc62c6 4076fi;
10f2d63a
VZ
4077
4078 eval "$ac_cv_use_sockets"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4084 echo "$as_me:$LINENO: result: yes" >&5
4085echo "${ECHO_T}yes" >&6
10f2d63a 4086 else
e6cc62c6
VS
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
10f2d63a 4089 fi
e6cc62c6 4090
8284b0c5 4091
5005acfe 4092 enablestring=
e6cc62c6
VS
4093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4094echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4095 no_cache=0
4096 # Check whether --enable-ole or --disable-ole was given.
4097if test "${enable_ole+set}" = set; then
4098 enableval="$enable_ole"
e6cc62c6 4099
3bce6687
JS
4100 if test "$enableval" = yes; then
4101 ac_cv_use_ole='wxUSE_OLE=yes'
4102 else
4103 ac_cv_use_ole='wxUSE_OLE=no'
4104 fi
e6cc62c6 4105
3bce6687 4106else
e6cc62c6 4107
3bce6687
JS
4108 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4109 if test "x$LINE" != x ; then
4110 eval "DEFAULT_$LINE"
4111 else
4112 no_cache=1
4113 fi
4114
4115 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4116
e6cc62c6 4117fi;
3bce6687
JS
4118
4119 eval "$ac_cv_use_ole"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4125 echo "$as_me:$LINENO: result: yes" >&5
4126echo "${ECHO_T}yes" >&6
3bce6687 4127 else
e6cc62c6
VS
4128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
3bce6687 4130 fi
e6cc62c6 4131
3bce6687 4132
5005acfe 4133 enablestring=
e6cc62c6
VS
4134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4135echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4136 no_cache=0
4137 # Check whether --enable-dataobj or --disable-dataobj was given.
4138if test "${enable_dataobj+set}" = set; then
4139 enableval="$enable_dataobj"
e6cc62c6 4140
3bce6687
JS
4141 if test "$enableval" = yes; then
4142 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4143 else
4144 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4145 fi
e6cc62c6 4146
3bce6687 4147else
e6cc62c6 4148
3bce6687
JS
4149 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4157
e6cc62c6 4158fi;
3bce6687
JS
4159
4160 eval "$ac_cv_use_dataobj"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4166 echo "$as_me:$LINENO: result: yes" >&5
4167echo "${ECHO_T}yes" >&6
3bce6687 4168 else
e6cc62c6
VS
4169 echo "$as_me:$LINENO: result: no" >&5
4170echo "${ECHO_T}no" >&6
3bce6687 4171 fi
e6cc62c6 4172
3bce6687 4173
52127426 4174
5005acfe 4175 enablestring=
e6cc62c6
VS
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4178 no_cache=0
eb4efbdc
VZ
4179 # Check whether --enable-ipc or --disable-ipc was given.
4180if test "${enable_ipc+set}" = set; then
4181 enableval="$enable_ipc"
e6cc62c6 4182
10f2d63a 4183 if test "$enableval" = yes; then
eb4efbdc 4184 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4185 else
eb4efbdc 4186 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4187 fi
e6cc62c6 4188
10f2d63a 4189else
e6cc62c6 4190
eb4efbdc 4191 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
eb4efbdc 4198 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4199
e6cc62c6 4200fi;
10f2d63a 4201
eb4efbdc 4202 eval "$ac_cv_use_ipc"
10f2d63a 4203 if test "$no_cache" != 1; then
eb4efbdc 4204 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4205 fi
4206
eb4efbdc 4207 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
10f2d63a 4210 else
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
10f2d63a 4213 fi
e6cc62c6 4214
52127426 4215
8284b0c5 4216
5005acfe 4217 enablestring=
e6cc62c6
VS
4218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4219echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4220 no_cache=0
4221 # Check whether --enable-cmdline or --disable-cmdline was given.
4222if test "${enable_cmdline+set}" = set; then
4223 enableval="$enable_cmdline"
e6cc62c6 4224
1e6feb95
VZ
4225 if test "$enableval" = yes; then
4226 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4227 else
4228 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4229 fi
e6cc62c6 4230
1e6feb95 4231else
e6cc62c6 4232
1e6feb95
VZ
4233 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4241
e6cc62c6 4242fi;
1e6feb95
VZ
4243
4244 eval "$ac_cv_use_cmdline"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4250 echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
1e6feb95 4252 else
e6cc62c6
VS
4253 echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
1e6feb95 4255 fi
e6cc62c6 4256
1e6feb95 4257
5005acfe 4258 enablestring=
e6cc62c6
VS
4259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4260echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4261 no_cache=0
4262 # Check whether --enable-datetime or --disable-datetime was given.
4263if test "${enable_datetime+set}" = set; then
4264 enableval="$enable_datetime"
e6cc62c6 4265
1e6feb95
VZ
4266 if test "$enableval" = yes; then
4267 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4268 else
4269 ac_cv_use_datetime='wxUSE_DATETIME=no'
4270 fi
e6cc62c6 4271
1e6feb95 4272else
e6cc62c6 4273
1e6feb95
VZ
4274 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4282
e6cc62c6 4283fi;
1e6feb95
VZ
4284
4285 eval "$ac_cv_use_datetime"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4291 echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
1e6feb95 4293 else
e6cc62c6
VS
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
1e6feb95 4296 fi
e6cc62c6 4297
1e6feb95 4298
5005acfe 4299 enablestring=
e6cc62c6
VS
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4302 no_cache=0
4303 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4304if test "${enable_stopwatch+set}" = set; then
4305 enableval="$enable_stopwatch"
e6cc62c6 4306
1e6feb95
VZ
4307 if test "$enableval" = yes; then
4308 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4309 else
4310 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4311 fi
e6cc62c6 4312
1e6feb95 4313else
e6cc62c6 4314
1e6feb95
VZ
4315 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4323
e6cc62c6 4324fi;
1e6feb95
VZ
4325
4326 eval "$ac_cv_use_stopwatch"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
1e6feb95 4334 else
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
1e6feb95 4337 fi
e6cc62c6 4338
1e6feb95 4339
5005acfe 4340 enablestring=
e6cc62c6
VS
4341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4342echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4343 no_cache=0
eb4efbdc
VZ
4344 # Check whether --enable-dialupman or --disable-dialupman was given.
4345if test "${enable_dialupman+set}" = set; then
4346 enableval="$enable_dialupman"
e6cc62c6 4347
10f2d63a 4348 if test "$enableval" = yes; then
eb4efbdc 4349 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4350 else
eb4efbdc 4351 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4352 fi
e6cc62c6 4353
10f2d63a 4354else
e6cc62c6 4355
eb4efbdc 4356 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
eb4efbdc 4363 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4364
e6cc62c6 4365fi;
10f2d63a 4366
eb4efbdc 4367 eval "$ac_cv_use_dialupman"
10f2d63a 4368 if test "$no_cache" != 1; then
eb4efbdc 4369 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4370 fi
4371
eb4efbdc 4372 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4373 echo "$as_me:$LINENO: result: yes" >&5
4374echo "${ECHO_T}yes" >&6
10f2d63a 4375 else
e6cc62c6
VS
4376 echo "$as_me:$LINENO: result: no" >&5
4377echo "${ECHO_T}no" >&6
10f2d63a 4378 fi
e6cc62c6 4379
10f2d63a 4380
5005acfe 4381 enablestring=
e6cc62c6
VS
4382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4383echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4384 no_cache=0
4385 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4386if test "${enable_apple_ieee+set}" = set; then
4387 enableval="$enable_apple_ieee"
e6cc62c6 4388
10f2d63a
VZ
4389 if test "$enableval" = yes; then
4390 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4391 else
4392 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4393 fi
e6cc62c6 4394
10f2d63a 4395else
e6cc62c6 4396
10f2d63a
VZ
4397 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
4404 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4405
e6cc62c6 4406fi;
10f2d63a
VZ
4407
4408 eval "$ac_cv_use_apple_ieee"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4414 echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
10f2d63a 4416 else
e6cc62c6
VS
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
10f2d63a 4419 fi
e6cc62c6 4420
10f2d63a 4421
5005acfe 4422 enablestring=
e6cc62c6
VS
4423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4424echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4425 no_cache=0
1e6feb95
VZ
4426 # Check whether --enable-timer or --disable-timer was given.
4427if test "${enable_timer+set}" = set; then
4428 enableval="$enable_timer"
e6cc62c6 4429
10f2d63a 4430 if test "$enableval" = yes; then
1e6feb95 4431 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4432 else
1e6feb95 4433 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4434 fi
e6cc62c6 4435
10f2d63a 4436else
e6cc62c6 4437
1e6feb95 4438 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
1e6feb95 4445 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4446
e6cc62c6 4447fi;
10f2d63a 4448
1e6feb95 4449 eval "$ac_cv_use_timer"
10f2d63a 4450 if test "$no_cache" != 1; then
1e6feb95 4451 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4452 fi
4453
1e6feb95 4454 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4455 echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
10f2d63a 4457 else
e6cc62c6
VS
4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
10f2d63a 4460 fi
e6cc62c6 4461
10f2d63a 4462
5005acfe 4463 enablestring=
e6cc62c6
VS
4464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4465echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4466 no_cache=0
4467 # Check whether --enable-wave or --disable-wave was given.
4468if test "${enable_wave+set}" = set; then
4469 enableval="$enable_wave"
e6cc62c6 4470
10f2d63a
VZ
4471 if test "$enableval" = yes; then
4472 ac_cv_use_wave='wxUSE_WAVE=yes'
4473 else
4474 ac_cv_use_wave='wxUSE_WAVE=no'
4475 fi
e6cc62c6 4476
10f2d63a 4477else
e6cc62c6 4478
10f2d63a
VZ
4479 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4480 if test "x$LINE" != x ; then
4481 eval "DEFAULT_$LINE"
4482 else
4483 no_cache=1
4484 fi
4485
4486 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4487
e6cc62c6 4488fi;
10f2d63a
VZ
4489
4490 eval "$ac_cv_use_wave"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4496 echo "$as_me:$LINENO: result: yes" >&5
4497echo "${ECHO_T}yes" >&6
10f2d63a 4498 else
e6cc62c6
VS
4499 echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6
10f2d63a 4501 fi
e6cc62c6 4502
10f2d63a 4503
5005acfe 4504 enablestring=
e6cc62c6
VS
4505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4506echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4507 no_cache=0
4508 # Check whether --enable-fraction or --disable-fraction was given.
4509if test "${enable_fraction+set}" = set; then
4510 enableval="$enable_fraction"
e6cc62c6 4511
10f2d63a
VZ
4512 if test "$enableval" = yes; then
4513 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4514 else
4515 ac_cv_use_fraction='wxUSE_FRACTION=no'
4516 fi
e6cc62c6 4517
10f2d63a 4518else
e6cc62c6 4519
10f2d63a
VZ
4520 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4528
e6cc62c6 4529fi;
10f2d63a
VZ
4530
4531 eval "$ac_cv_use_fraction"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4537 echo "$as_me:$LINENO: result: yes" >&5
4538echo "${ECHO_T}yes" >&6
10f2d63a 4539 else
e6cc62c6
VS
4540 echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6
10f2d63a 4542 fi
e6cc62c6 4543
10f2d63a 4544
5005acfe 4545 enablestring=
e6cc62c6
VS
4546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4547echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4548 no_cache=0
4549 # Check whether --enable-dynlib or --disable-dynlib was given.
4550if test "${enable_dynlib+set}" = set; then
4551 enableval="$enable_dynlib"
e6cc62c6 4552
10f2d63a
VZ
4553 if test "$enableval" = yes; then
4554 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4555 else
4556 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4557 fi
e6cc62c6 4558
10f2d63a 4559else
e6cc62c6 4560
10f2d63a
VZ
4561 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4562 if test "x$LINE" != x ; then
4563 eval "DEFAULT_$LINE"
4564 else
4565 no_cache=1
4566 fi
4567
4568 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4569
e6cc62c6 4570fi;
10f2d63a
VZ
4571
4572 eval "$ac_cv_use_dynlib"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4578 echo "$as_me:$LINENO: result: yes" >&5
4579echo "${ECHO_T}yes" >&6
10f2d63a 4580 else
e6cc62c6
VS
4581 echo "$as_me:$LINENO: result: no" >&5
4582echo "${ECHO_T}no" >&6
10f2d63a 4583 fi
e6cc62c6 4584
10f2d63a 4585
5005acfe 4586 enablestring=
e6cc62c6
VS
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4589 no_cache=0
4590 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4591if test "${enable_dynamicloader+set}" = set; then
4592 enableval="$enable_dynamicloader"
e6cc62c6 4593
0b9ab0bd
RL
4594 if test "$enableval" = yes; then
4595 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4596 else
4597 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4598 fi
e6cc62c6 4599
0b9ab0bd 4600else
e6cc62c6 4601
0b9ab0bd
RL
4602 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4610
e6cc62c6 4611fi;
0b9ab0bd
RL
4612
4613 eval "$ac_cv_use_dynamicloader"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
0b9ab0bd 4621 else
e6cc62c6
VS
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
0b9ab0bd 4624 fi
e6cc62c6 4625
0b9ab0bd 4626
5005acfe 4627 enablestring=
e6cc62c6
VS
4628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4629echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4630 no_cache=0
4631 # Check whether --enable-longlong or --disable-longlong was given.
4632if test "${enable_longlong+set}" = set; then
4633 enableval="$enable_longlong"
e6cc62c6 4634
10f2d63a
VZ
4635 if test "$enableval" = yes; then
4636 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4637 else
4638 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4639 fi
e6cc62c6 4640
10f2d63a 4641else
e6cc62c6 4642
10f2d63a
VZ
4643 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4651
e6cc62c6 4652fi;
10f2d63a
VZ
4653
4654 eval "$ac_cv_use_longlong"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
10f2d63a 4662 else
e6cc62c6
VS
4663 echo "$as_me:$LINENO: result: no" >&5
4664echo "${ECHO_T}no" >&6
10f2d63a 4665 fi
e6cc62c6 4666
10f2d63a 4667
5005acfe 4668 enablestring=
e6cc62c6
VS
4669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4670echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4671 no_cache=0
4672 # Check whether --enable-geometry or --disable-geometry was given.
4673if test "${enable_geometry+set}" = set; then
4674 enableval="$enable_geometry"
e6cc62c6 4675
e8f65ba6
RR
4676 if test "$enableval" = yes; then
4677 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4678 else
4679 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4680 fi
e6cc62c6 4681
e8f65ba6 4682else
e6cc62c6 4683
e8f65ba6
RR
4684 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4685 if test "x$LINE" != x ; then
4686 eval "DEFAULT_$LINE"
4687 else
4688 no_cache=1
4689 fi
4690
4691 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4692
e6cc62c6 4693fi;
e8f65ba6
RR
4694
4695 eval "$ac_cv_use_geometry"
4696 if test "$no_cache" != 1; then
4697 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4698 fi
4699
4700 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4701 echo "$as_me:$LINENO: result: yes" >&5
4702echo "${ECHO_T}yes" >&6
e8f65ba6 4703 else
e6cc62c6
VS
4704 echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6
e8f65ba6 4706 fi
e6cc62c6 4707
e8f65ba6 4708
5005acfe 4709 enablestring=
e6cc62c6
VS
4710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4711echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4712 no_cache=0
4713 # Check whether --enable-log or --disable-log was given.
4714if test "${enable_log+set}" = set; then
4715 enableval="$enable_log"
e6cc62c6 4716
10f2d63a
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_log='wxUSE_LOG=yes'
4719 else
4720 ac_cv_use_log='wxUSE_LOG=no'
4721 fi
e6cc62c6 4722
10f2d63a 4723else
e6cc62c6 4724
10f2d63a
VZ
4725 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4733
e6cc62c6 4734fi;
10f2d63a
VZ
4735
4736 eval "$ac_cv_use_log"
4737 if test "$no_cache" != 1; then
4738 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4739 fi
4740
4741 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4742 echo "$as_me:$LINENO: result: yes" >&5
4743echo "${ECHO_T}yes" >&6
10f2d63a 4744 else
e6cc62c6
VS
4745 echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6
10f2d63a 4747 fi
e6cc62c6 4748
10f2d63a 4749
5005acfe 4750 enablestring=
e6cc62c6
VS
4751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4752echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4753 no_cache=0
4754 # Check whether --enable-streams or --disable-streams was given.
4755if test "${enable_streams+set}" = set; then
4756 enableval="$enable_streams"
e6cc62c6 4757
10f2d63a
VZ
4758 if test "$enableval" = yes; then
4759 ac_cv_use_streams='wxUSE_STREAMS=yes'
4760 else
4761 ac_cv_use_streams='wxUSE_STREAMS=no'
4762 fi
e6cc62c6 4763
10f2d63a 4764else
e6cc62c6 4765
10f2d63a
VZ
4766 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4774
e6cc62c6 4775fi;
10f2d63a
VZ
4776
4777 eval "$ac_cv_use_streams"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4783 echo "$as_me:$LINENO: result: yes" >&5
4784echo "${ECHO_T}yes" >&6
10f2d63a 4785 else
e6cc62c6
VS
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
10f2d63a 4788 fi
e6cc62c6 4789
10f2d63a 4790
5005acfe 4791 enablestring=
e6cc62c6
VS
4792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4793echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4794 no_cache=0
4795 # Check whether --enable-file or --disable-file was given.
4796if test "${enable_file+set}" = set; then
4797 enableval="$enable_file"
e6cc62c6 4798
10f2d63a
VZ
4799 if test "$enableval" = yes; then
4800 ac_cv_use_file='wxUSE_FILE=yes'
4801 else
4802 ac_cv_use_file='wxUSE_FILE=no'
4803 fi
e6cc62c6 4804
10f2d63a 4805else
e6cc62c6 4806
10f2d63a
VZ
4807 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4808 if test "x$LINE" != x ; then
4809 eval "DEFAULT_$LINE"
4810 else
4811 no_cache=1
4812 fi
4813
4814 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4815
e6cc62c6 4816fi;
10f2d63a
VZ
4817
4818 eval "$ac_cv_use_file"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4824 echo "$as_me:$LINENO: result: yes" >&5
4825echo "${ECHO_T}yes" >&6
10f2d63a 4826 else
e6cc62c6
VS
4827 echo "$as_me:$LINENO: result: no" >&5
4828echo "${ECHO_T}no" >&6
10f2d63a 4829 fi
e6cc62c6 4830
10f2d63a 4831
5005acfe 4832 enablestring=
e6cc62c6
VS
4833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4834echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4835 no_cache=0
1e6feb95
VZ
4836 # Check whether --enable-ffile or --disable-ffile was given.
4837if test "${enable_ffile+set}" = set; then
4838 enableval="$enable_ffile"
e6cc62c6 4839
10f2d63a 4840 if test "$enableval" = yes; then
1e6feb95 4841 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4842 else
1e6feb95 4843 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4844 fi
e6cc62c6 4845
10f2d63a 4846else
e6cc62c6 4847
1e6feb95 4848 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4849 if test "x$LINE" != x ; then
4850 eval "DEFAULT_$LINE"
4851 else
4852 no_cache=1
4853 fi
4854
1e6feb95 4855 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4856
e6cc62c6 4857fi;
10f2d63a 4858
1e6feb95 4859 eval "$ac_cv_use_ffile"
10f2d63a 4860 if test "$no_cache" != 1; then
1e6feb95 4861 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4862 fi
4863
1e6feb95 4864 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4865 echo "$as_me:$LINENO: result: yes" >&5
4866echo "${ECHO_T}yes" >&6
10f2d63a 4867 else
e6cc62c6
VS
4868 echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
10f2d63a 4870 fi
e6cc62c6 4871
10f2d63a 4872
5005acfe 4873 enablestring=
e6cc62c6
VS
4874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4875echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4876 no_cache=0
4877 # Check whether --enable-textbuf or --disable-textbuf was given.
4878if test "${enable_textbuf+set}" = set; then
4879 enableval="$enable_textbuf"
e6cc62c6 4880
a3a584a7
VZ
4881 if test "$enableval" = yes; then
4882 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4883 else
4884 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4885 fi
e6cc62c6 4886
a3a584a7 4887else
e6cc62c6 4888
a3a584a7
VZ
4889 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4897
e6cc62c6 4898fi;
a3a584a7
VZ
4899
4900 eval "$ac_cv_use_textbuf"
4901 if test "$no_cache" != 1; then
4902 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4903 fi
4904
4905 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4906 echo "$as_me:$LINENO: result: yes" >&5
4907echo "${ECHO_T}yes" >&6
a3a584a7 4908 else
e6cc62c6
VS
4909 echo "$as_me:$LINENO: result: no" >&5
4910echo "${ECHO_T}no" >&6
a3a584a7 4911 fi
e6cc62c6 4912
a3a584a7 4913
5005acfe 4914 enablestring=
e6cc62c6
VS
4915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4916echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4917 no_cache=0
1e6feb95
VZ
4918 # Check whether --enable-textfile or --disable-textfile was given.
4919if test "${enable_textfile+set}" = set; then
4920 enableval="$enable_textfile"
e6cc62c6 4921
10f2d63a 4922 if test "$enableval" = yes; then
1e6feb95 4923 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4924 else
1e6feb95 4925 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4926 fi
e6cc62c6 4927
10f2d63a 4928else
e6cc62c6 4929
1e6feb95 4930 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
1e6feb95 4937 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4938
e6cc62c6 4939fi;
10f2d63a 4940
1e6feb95 4941 eval "$ac_cv_use_textfile"
10f2d63a 4942 if test "$no_cache" != 1; then
1e6feb95 4943 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4944 fi
4945
1e6feb95 4946 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4947 echo "$as_me:$LINENO: result: yes" >&5
4948echo "${ECHO_T}yes" >&6
10f2d63a 4949 else
e6cc62c6
VS
4950 echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6
10f2d63a 4952 fi
e6cc62c6 4953
10f2d63a 4954
5005acfe 4955 enablestring=
e6cc62c6
VS
4956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4957echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4958 no_cache=0
1e6feb95
VZ
4959 # Check whether --enable-fontmap or --disable-fontmap was given.
4960if test "${enable_fontmap+set}" = set; then
4961 enableval="$enable_fontmap"
e6cc62c6 4962
10f2d63a 4963 if test "$enableval" = yes; then
1e6feb95 4964 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4965 else
1e6feb95 4966 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4967 fi
e6cc62c6 4968
10f2d63a 4969else
e6cc62c6 4970
1e6feb95 4971 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4972 if test "x$LINE" != x ; then
4973 eval "DEFAULT_$LINE"
4974 else
4975 no_cache=1
4976 fi
4977
1e6feb95 4978 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4979
e6cc62c6 4980fi;
10f2d63a 4981
1e6feb95 4982 eval "$ac_cv_use_fontmap"
10f2d63a 4983 if test "$no_cache" != 1; then
1e6feb95 4984 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4985 fi
4986
1e6feb95 4987 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4988 echo "$as_me:$LINENO: result: yes" >&5
4989echo "${ECHO_T}yes" >&6
10f2d63a 4990 else
e6cc62c6
VS
4991 echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
10f2d63a 4993 fi
e6cc62c6 4994
10f2d63a 4995
5005acfe 4996 enablestring=
e6cc62c6
VS
4997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4998echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4999 no_cache=0
1e6feb95
VZ
5000 # Check whether --enable-unicode or --disable-unicode was given.
5001if test "${enable_unicode+set}" = set; then
5002 enableval="$enable_unicode"
e6cc62c6 5003
1e6feb95
VZ
5004 if test "$enableval" = yes; then
5005 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5006 else
5007 ac_cv_use_unicode='wxUSE_UNICODE=no'
5008 fi
e6cc62c6 5009
1e6feb95 5010else
e6cc62c6 5011
1e6feb95
VZ
5012 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5020
e6cc62c6 5021fi;
1e6feb95
VZ
5022
5023 eval "$ac_cv_use_unicode"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5029 echo "$as_me:$LINENO: result: yes" >&5
5030echo "${ECHO_T}yes" >&6
1e6feb95 5031 else
e6cc62c6
VS
5032 echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
1e6feb95 5034 fi
e6cc62c6 5035
1e6feb95 5036
5005acfe 5037 enablestring=
e6cc62c6
VS
5038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5039echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5040 no_cache=0
5041 # Check whether --enable-mslu or --disable-mslu was given.
5042if test "${enable_mslu+set}" = set; then
5043 enableval="$enable_mslu"
e6cc62c6 5044
a72a4bfa
VS
5045 if test "$enableval" = yes; then
5046 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5047 else
5048 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5049 fi
e6cc62c6 5050
a72a4bfa 5051else
e6cc62c6 5052
a72a4bfa
VS
5053 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5061
e6cc62c6 5062fi;
a72a4bfa
VS
5063
5064 eval "$ac_cv_use_mslu"
5065 if test "$no_cache" != 1; then
5066 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5067 fi
5068
5069 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5070 echo "$as_me:$LINENO: result: yes" >&5
5071echo "${ECHO_T}yes" >&6
a72a4bfa 5072 else
e6cc62c6
VS
5073 echo "$as_me:$LINENO: result: no" >&5
5074echo "${ECHO_T}no" >&6
a72a4bfa 5075 fi
e6cc62c6 5076
a72a4bfa 5077
5005acfe 5078 enablestring=
e6cc62c6
VS
5079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5080echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5081 no_cache=0
5082 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5083if test "${enable_wxprintfv+set}" = set; then
5084 enableval="$enable_wxprintfv"
e6cc62c6 5085
1e6feb95 5086 if test "$enableval" = yes; then
10f2d63a
VZ
5087 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5088 else
5089 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5090 fi
e6cc62c6 5091
10f2d63a 5092else
e6cc62c6 5093
10f2d63a
VZ
5094 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5095 if test "x$LINE" != x ; then
5096 eval "DEFAULT_$LINE"
5097 else
5098 no_cache=1
5099 fi
5100
5101 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5102
e6cc62c6 5103fi;
10f2d63a
VZ
5104
5105 eval "$ac_cv_use_wxprintfv"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5111 echo "$as_me:$LINENO: result: yes" >&5
5112echo "${ECHO_T}yes" >&6
10f2d63a 5113 else
e6cc62c6
VS
5114 echo "$as_me:$LINENO: result: no" >&5
5115echo "${ECHO_T}no" >&6
10f2d63a 5116 fi
e6cc62c6 5117
10f2d63a 5118
5005acfe 5119 enablestring=
e6cc62c6
VS
5120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5121echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5124if test "${enable_std_iostreams+set}" = set; then
5125 enableval="$enable_std_iostreams"
e6cc62c6 5126
10f2d63a
VZ
5127 if test "$enableval" = yes; then
5128 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5129 else
5130 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5131 fi
e6cc62c6 5132
10f2d63a 5133else
e6cc62c6 5134
10f2d63a
VZ
5135 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5143
e6cc62c6 5144fi;
10f2d63a
VZ
5145
5146 eval "$ac_cv_use_std_iostreams"
5147 if test "$no_cache" != 1; then
5148 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5149 fi
5150
5151 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5152 echo "$as_me:$LINENO: result: yes" >&5
5153echo "${ECHO_T}yes" >&6
10f2d63a 5154 else
e6cc62c6
VS
5155 echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6
10f2d63a 5157 fi
e6cc62c6 5158
10f2d63a 5159
5005acfe 5160 enablestring=
e6cc62c6
VS
5161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5162echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5163 no_cache=0
5164 # Check whether --enable-filesystem or --disable-filesystem was given.
5165if test "${enable_filesystem+set}" = set; then
5166 enableval="$enable_filesystem"
e6cc62c6 5167
24528b0c
VS
5168 if test "$enableval" = yes; then
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5170 else
5171 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5172 fi
e6cc62c6 5173
24528b0c 5174else
e6cc62c6 5175
24528b0c
VS
5176 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5177 if test "x$LINE" != x ; then
5178 eval "DEFAULT_$LINE"
5179 else
5180 no_cache=1
5181 fi
5182
5183 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5184
e6cc62c6 5185fi;
24528b0c
VS
5186
5187 eval "$ac_cv_use_filesystem"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5193 echo "$as_me:$LINENO: result: yes" >&5
5194echo "${ECHO_T}yes" >&6
24528b0c 5195 else
e6cc62c6
VS
5196 echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
24528b0c 5198 fi
e6cc62c6 5199
24528b0c 5200
5005acfe 5201 enablestring=
e6cc62c6
VS
5202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5203echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5204 no_cache=0
5205 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5206if test "${enable_fs_inet+set}" = set; then
5207 enableval="$enable_fs_inet"
e6cc62c6 5208
10f2d63a
VZ
5209 if test "$enableval" = yes; then
5210 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5211 else
5212 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5213 fi
e6cc62c6 5214
10f2d63a 5215else
e6cc62c6 5216
10f2d63a
VZ
5217 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5225
e6cc62c6 5226fi;
10f2d63a
VZ
5227
5228 eval "$ac_cv_use_fs_inet"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5234 echo "$as_me:$LINENO: result: yes" >&5
5235echo "${ECHO_T}yes" >&6
10f2d63a 5236 else
e6cc62c6
VS
5237 echo "$as_me:$LINENO: result: no" >&5
5238echo "${ECHO_T}no" >&6
10f2d63a 5239 fi
e6cc62c6 5240
10f2d63a 5241
5005acfe 5242 enablestring=
e6cc62c6
VS
5243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5244echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5245 no_cache=0
5246 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5247if test "${enable_fs_zip+set}" = set; then
5248 enableval="$enable_fs_zip"
e6cc62c6 5249
10f2d63a
VZ
5250 if test "$enableval" = yes; then
5251 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5252 else
5253 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5254 fi
e6cc62c6 5255
10f2d63a 5256else
e6cc62c6 5257
10f2d63a
VZ
5258 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5266
e6cc62c6 5267fi;
10f2d63a
VZ
5268
5269 eval "$ac_cv_use_fs_zip"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5275 echo "$as_me:$LINENO: result: yes" >&5
5276echo "${ECHO_T}yes" >&6
10f2d63a 5277 else
e6cc62c6
VS
5278 echo "$as_me:$LINENO: result: no" >&5
5279echo "${ECHO_T}no" >&6
10f2d63a 5280 fi
e6cc62c6 5281
10f2d63a 5282
5005acfe 5283 enablestring=
e6cc62c6
VS
5284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5285echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5286 no_cache=0
5287 # Check whether --enable-zipstream or --disable-zipstream was given.
5288if test "${enable_zipstream+set}" = set; then
5289 enableval="$enable_zipstream"
e6cc62c6 5290
10f2d63a
VZ
5291 if test "$enableval" = yes; then
5292 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5293 else
5294 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5295 fi
e6cc62c6 5296
10f2d63a 5297else
e6cc62c6 5298
10f2d63a
VZ
5299 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5307
e6cc62c6 5308fi;
10f2d63a
VZ
5309
5310 eval "$ac_cv_use_zipstream"
5311 if test "$no_cache" != 1; then
5312 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5313 fi
5314
5315 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5316 echo "$as_me:$LINENO: result: yes" >&5
5317echo "${ECHO_T}yes" >&6
10f2d63a 5318 else
e6cc62c6
VS
5319 echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6
10f2d63a 5321 fi
e6cc62c6 5322
8284b0c5 5323
52127426 5324
5005acfe 5325 enablestring=
e6cc62c6
VS
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5328 no_cache=0
5329 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5330if test "${enable_catch_segvs+set}" = set; then
5331 enableval="$enable_catch_segvs"
e6cc62c6 5332
eb4efbdc
VZ
5333 if test "$enableval" = yes; then
5334 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5335 else
5336 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5337 fi
e6cc62c6 5338
eb4efbdc 5339else
e6cc62c6 5340
eb4efbdc
VZ
5341 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5349
e6cc62c6 5350fi;
eb4efbdc
VZ
5351
5352 eval "$ac_cv_use_catch_segvs"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
eb4efbdc 5360 else
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
eb4efbdc 5363 fi
e6cc62c6 5364
eb4efbdc 5365
5005acfe 5366 enablestring=
e6cc62c6
VS
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5369 no_cache=0
5370 # Check whether --enable-snglinst or --disable-snglinst was given.
5371if test "${enable_snglinst+set}" = set; then
5372 enableval="$enable_snglinst"
e6cc62c6 5373
4f3c5f06
VZ
5374 if test "$enableval" = yes; then
5375 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5376 else
5377 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5378 fi
e6cc62c6 5379
4f3c5f06 5380else
e6cc62c6 5381
4f3c5f06
VZ
5382 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5390
e6cc62c6 5391fi;
4f3c5f06
VZ
5392
5393 eval "$ac_cv_use_snglinst"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
4f3c5f06 5401 else
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
4f3c5f06 5404 fi
e6cc62c6 5405
52127426 5406
8284b0c5 5407
5005acfe 5408 enablestring=
e6cc62c6
VS
5409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5410echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5411 no_cache=0
5412 # Check whether --enable-mimetype or --disable-mimetype was given.
5413if test "${enable_mimetype+set}" = set; then
5414 enableval="$enable_mimetype"
e6cc62c6 5415
1e6feb95
VZ
5416 if test "$enableval" = yes; then
5417 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5418 else
5419 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5420 fi
e6cc62c6 5421
1e6feb95 5422else
e6cc62c6 5423
1e6feb95
VZ
5424 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5432
e6cc62c6 5433fi;
1e6feb95
VZ
5434
5435 eval "$ac_cv_use_mimetype"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5441 echo "$as_me:$LINENO: result: yes" >&5
5442echo "${ECHO_T}yes" >&6
1e6feb95 5443 else
e6cc62c6
VS
5444 echo "$as_me:$LINENO: result: no" >&5
5445echo "${ECHO_T}no" >&6
1e6feb95 5446 fi
e6cc62c6 5447
1e6feb95 5448
5005acfe 5449 enablestring=
e6cc62c6
VS
5450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5451echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5452 no_cache=0
5453 # Check whether --enable-system_options or --disable-system_options was given.
5454if test "${enable_system_options+set}" = set; then
5455 enableval="$enable_system_options"
e6cc62c6 5456
3e44f09d
VZ
5457 if test "$enableval" = yes; then
5458 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5459 else
5460 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5461 fi
e6cc62c6 5462
3e44f09d 5463else
e6cc62c6 5464
3e44f09d
VZ
5465 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5473
e6cc62c6 5474fi;
3e44f09d
VZ
5475
5476 eval "$ac_cv_use_system_options"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5482 echo "$as_me:$LINENO: result: yes" >&5
5483echo "${ECHO_T}yes" >&6
3e44f09d 5484 else
e6cc62c6
VS
5485 echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6
3e44f09d 5487 fi
e6cc62c6 5488
8284b0c5 5489
52127426 5490
5005acfe 5491 enablestring=
e6cc62c6
VS
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5494 no_cache=0
5495 # Check whether --enable-url or --disable-url was given.
5496if test "${enable_url+set}" = set; then
5497 enableval="$enable_url"
e6cc62c6 5498
4cdb0ab0
VS
5499 if test "$enableval" = yes; then
5500 ac_cv_use_url='wxUSE_URL=yes'
5501 else
5502 ac_cv_use_url='wxUSE_URL=no'
5503 fi
e6cc62c6 5504
4cdb0ab0 5505else
e6cc62c6 5506
4cdb0ab0
VS
5507 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5515
e6cc62c6 5516fi;
4cdb0ab0
VS
5517
5518 eval "$ac_cv_use_url"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
4cdb0ab0 5526 else
e6cc62c6
VS
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
4cdb0ab0 5529 fi
e6cc62c6 5530
4cdb0ab0 5531
5005acfe 5532 enablestring=
e6cc62c6
VS
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5535 no_cache=0
5536 # Check whether --enable-protocol or --disable-protocol was given.
5537if test "${enable_protocol+set}" = set; then
5538 enableval="$enable_protocol"
e6cc62c6 5539
4cdb0ab0
VS
5540 if test "$enableval" = yes; then
5541 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5542 else
5543 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5544 fi
e6cc62c6 5545
4cdb0ab0 5546else
e6cc62c6 5547
4cdb0ab0
VS
5548 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5556
e6cc62c6 5557fi;
4cdb0ab0
VS
5558
5559 eval "$ac_cv_use_protocol"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
4cdb0ab0 5567 else
e6cc62c6
VS
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
4cdb0ab0 5570 fi
e6cc62c6 5571
4cdb0ab0 5572
5005acfe 5573 enablestring=
e6cc62c6
VS
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5576 no_cache=0
5577 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5578if test "${enable_protocol_http+set}" = set; then
5579 enableval="$enable_protocol_http"
e6cc62c6 5580
4cdb0ab0
VS
5581 if test "$enableval" = yes; then
5582 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5583 else
5584 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5585 fi
e6cc62c6 5586
4cdb0ab0 5587else
e6cc62c6 5588
4cdb0ab0
VS
5589 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5597
e6cc62c6 5598fi;
4cdb0ab0
VS
5599
5600 eval "$ac_cv_use_protocol_http"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
4cdb0ab0 5608 else
e6cc62c6
VS
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
4cdb0ab0 5611 fi
e6cc62c6 5612
4cdb0ab0 5613
5005acfe 5614 enablestring=
e6cc62c6
VS
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5617 no_cache=0
5618 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5619if test "${enable_protocol_ftp+set}" = set; then
5620 enableval="$enable_protocol_ftp"
e6cc62c6 5621
4cdb0ab0
VS
5622 if test "$enableval" = yes; then
5623 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5624 else
5625 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5626 fi
e6cc62c6 5627
4cdb0ab0 5628else
e6cc62c6 5629
4cdb0ab0
VS
5630 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5638
e6cc62c6 5639fi;
4cdb0ab0
VS
5640
5641 eval "$ac_cv_use_protocol_ftp"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
4cdb0ab0 5649 else
e6cc62c6
VS
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
4cdb0ab0 5652 fi
e6cc62c6 5653
4cdb0ab0 5654
5005acfe 5655 enablestring=
e6cc62c6
VS
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5658 no_cache=0
5659 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5660if test "${enable_protocol_file+set}" = set; then
5661 enableval="$enable_protocol_file"
e6cc62c6 5662
4cdb0ab0
VS
5663 if test "$enableval" = yes; then
5664 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5665 else
5666 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5667 fi
e6cc62c6 5668
4cdb0ab0 5669else
e6cc62c6 5670
4cdb0ab0
VS
5671 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5679
e6cc62c6 5680fi;
4cdb0ab0
VS
5681
5682 eval "$ac_cv_use_protocol_file"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
4cdb0ab0 5690 else
e6cc62c6
VS
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
4cdb0ab0 5693 fi
e6cc62c6 5694
52127426 5695
8284b0c5
MB
5696
5697
5698
5005acfe 5699 enablestring=
e6cc62c6
VS
5700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5701echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5702 no_cache=0
5703 # Check whether --enable-threads or --disable-threads was given.
5704if test "${enable_threads+set}" = set; then
5705 enableval="$enable_threads"
e6cc62c6 5706
10f2d63a
VZ
5707 if test "$enableval" = yes; then
5708 ac_cv_use_threads='wxUSE_THREADS=yes'
5709 else
5710 ac_cv_use_threads='wxUSE_THREADS=no'
5711 fi
e6cc62c6 5712
10f2d63a 5713else
e6cc62c6 5714
10f2d63a
VZ
5715 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5723
e6cc62c6 5724fi;
10f2d63a
VZ
5725
5726 eval "$ac_cv_use_threads"
5727 if test "$no_cache" != 1; then
5728 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5729 fi
5730
5731 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5732 echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
10f2d63a 5734 else
e6cc62c6
VS
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
10f2d63a 5737 fi
e6cc62c6 5738
10f2d63a 5739
b12915c1
VZ
5740if test "$wxUSE_GUI" = "yes"; then
5741
8284b0c5
MB
5742
5743
5005acfe 5744 enablestring=
e6cc62c6
VS
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5747 no_cache=0
5748 # Check whether --enable-docview or --disable-docview was given.
5749if test "${enable_docview+set}" = set; then
5750 enableval="$enable_docview"
e6cc62c6 5751
10f2d63a
VZ
5752 if test "$enableval" = yes; then
5753 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5754 else
5755 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5756 fi
e6cc62c6 5757
10f2d63a 5758else
e6cc62c6 5759
10f2d63a
VZ
5760 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5768
e6cc62c6 5769fi;
10f2d63a
VZ
5770
5771 eval "$ac_cv_use_docview"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
10f2d63a 5779 else
e6cc62c6
VS
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
10f2d63a 5782 fi
e6cc62c6 5783
10f2d63a 5784
5005acfe 5785 enablestring=
e6cc62c6
VS
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5788 no_cache=0
5789 # Check whether --enable-help or --disable-help was given.
5790if test "${enable_help+set}" = set; then
5791 enableval="$enable_help"
e6cc62c6 5792
10f2d63a
VZ
5793 if test "$enableval" = yes; then
5794 ac_cv_use_help='wxUSE_HELP=yes'
5795 else
5796 ac_cv_use_help='wxUSE_HELP=no'
5797 fi
e6cc62c6 5798
10f2d63a 5799else
e6cc62c6 5800
10f2d63a
VZ
5801 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5809
e6cc62c6 5810fi;
10f2d63a
VZ
5811
5812 eval "$ac_cv_use_help"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
10f2d63a 5820 else
e6cc62c6
VS
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
10f2d63a 5823 fi
e6cc62c6 5824
10f2d63a 5825
5005acfe 5826 enablestring=
e6cc62c6
VS
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5829 no_cache=0
5830 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5831if test "${enable_mshtmlhelp+set}" = set; then
5832 enableval="$enable_mshtmlhelp"
e6cc62c6 5833
29fd3c0c
VS
5834 if test "$enableval" = yes; then
5835 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5836 else
5837 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5838 fi
e6cc62c6 5839
29fd3c0c 5840else
e6cc62c6 5841
29fd3c0c
VS
5842 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5850
e6cc62c6 5851fi;
29fd3c0c
VS
5852
5853 eval "$ac_cv_use_mshtmlhelp"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
29fd3c0c 5861 else
e6cc62c6
VS
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
29fd3c0c 5864 fi
e6cc62c6 5865
29fd3c0c 5866
5005acfe 5867 enablestring=
e6cc62c6
VS
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5870 no_cache=0
5871 # Check whether --enable-html or --disable-html was given.
5872if test "${enable_html+set}" = set; then
5873 enableval="$enable_html"
e6cc62c6 5874
3379ed37
VZ
5875 if test "$enableval" = yes; then
5876 ac_cv_use_html='wxUSE_HTML=yes'
5877 else
5878 ac_cv_use_html='wxUSE_HTML=no'
5879 fi
e6cc62c6 5880
3379ed37 5881else
e6cc62c6 5882
3379ed37
VZ
5883 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5891
e6cc62c6 5892fi;
3379ed37
VZ
5893
5894 eval "$ac_cv_use_html"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
3379ed37 5902 else
e6cc62c6
VS
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
3379ed37 5905 fi
e6cc62c6 5906
3379ed37 5907
5005acfe 5908 enablestring=
e6cc62c6
VS
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5911 no_cache=0
5912 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5913if test "${enable_htmlhelp+set}" = set; then
5914 enableval="$enable_htmlhelp"
e6cc62c6 5915
3379ed37
VZ
5916 if test "$enableval" = yes; then
5917 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5918 else
5919 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5920 fi
e6cc62c6 5921
3379ed37 5922else
e6cc62c6 5923
3379ed37
VZ
5924 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5932
e6cc62c6 5933fi;
3379ed37
VZ
5934
5935 eval "$ac_cv_use_htmlhelp"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
3379ed37 5943 else
e6cc62c6
VS
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
3379ed37 5946 fi
e6cc62c6 5947
3379ed37 5948
5005acfe 5949 enablestring=
e6cc62c6
VS
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5952 no_cache=0
5953 # Check whether --enable-constraints or --disable-constraints was given.
5954if test "${enable_constraints+set}" = set; then
5955 enableval="$enable_constraints"
e6cc62c6 5956
10f2d63a
VZ
5957 if test "$enableval" = yes; then
5958 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5959 else
5960 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5961 fi
e6cc62c6 5962
10f2d63a 5963else
e6cc62c6 5964
10f2d63a
VZ
5965 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5973
e6cc62c6 5974fi;
10f2d63a
VZ
5975
5976 eval "$ac_cv_use_constraints"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
10f2d63a 5984 else
e6cc62c6
VS
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
10f2d63a 5987 fi
e6cc62c6 5988
10f2d63a 5989
5005acfe 5990 enablestring=
e6cc62c6
VS
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5993 no_cache=0
5994 # Check whether --enable-printarch or --disable-printarch was given.
5995if test "${enable_printarch+set}" = set; then
5996 enableval="$enable_printarch"
e6cc62c6 5997
10f2d63a
VZ
5998 if test "$enableval" = yes; then
5999 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6000 else
6001 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6002 fi
e6cc62c6 6003
10f2d63a 6004else
e6cc62c6 6005
10f2d63a
VZ
6006 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6014
e6cc62c6 6015fi;
10f2d63a
VZ
6016
6017 eval "$ac_cv_use_printarch"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
10f2d63a 6025 else
e6cc62c6
VS
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
10f2d63a 6028 fi
e6cc62c6 6029
10f2d63a 6030
5005acfe 6031 enablestring=
e6cc62c6
VS
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6034 no_cache=0
6035 # Check whether --enable-mdi or --disable-mdi was given.
6036if test "${enable_mdi+set}" = set; then
6037 enableval="$enable_mdi"
e6cc62c6 6038
10f2d63a
VZ
6039 if test "$enableval" = yes; then
6040 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6041 else
6042 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6043 fi
e6cc62c6 6044
10f2d63a 6045else
e6cc62c6 6046
10f2d63a
VZ
6047 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6055
e6cc62c6 6056fi;
10f2d63a
VZ
6057
6058 eval "$ac_cv_use_mdi"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
10f2d63a 6066 else
e6cc62c6
VS
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
10f2d63a 6069 fi
e6cc62c6 6070
698dcdb6 6071
5005acfe 6072 enablestring=
e6cc62c6
VS
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6075 no_cache=0
6076 # Check whether --enable-loggui or --disable-loggui was given.
6077if test "${enable_loggui+set}" = set; then
6078 enableval="$enable_loggui"
e6cc62c6 6079
1e6feb95
VZ
6080 if test "$enableval" = yes; then
6081 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6082 else
6083 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6084 fi
e6cc62c6 6085
1e6feb95 6086else
e6cc62c6 6087
1e6feb95
VZ
6088 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6096
e6cc62c6 6097fi;
1e6feb95
VZ
6098
6099 eval "$ac_cv_use_loggui"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
1e6feb95 6107 else
e6cc62c6
VS
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
1e6feb95 6110 fi
e6cc62c6 6111
1e6feb95 6112
5005acfe 6113 enablestring=
e6cc62c6
VS
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6116 no_cache=0
6117 # Check whether --enable-logwin or --disable-logwin was given.
6118if test "${enable_logwin+set}" = set; then
6119 enableval="$enable_logwin"
e6cc62c6 6120
1e6feb95
VZ
6121 if test "$enableval" = yes; then
6122 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6123 else
6124 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6125 fi
e6cc62c6 6126
1e6feb95 6127else
e6cc62c6 6128
1e6feb95
VZ
6129 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6137
e6cc62c6 6138fi;
1e6feb95
VZ
6139
6140 eval "$ac_cv_use_logwin"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
1e6feb95 6148 else
e6cc62c6
VS
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
1e6feb95 6151 fi
e6cc62c6 6152
1e6feb95 6153
5005acfe 6154 enablestring=
e6cc62c6
VS
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6157 no_cache=0
6158 # Check whether --enable-logdialog or --disable-logdialog was given.
6159if test "${enable_logdialog+set}" = set; then
6160 enableval="$enable_logdialog"
e6cc62c6 6161
69d27ff7
MB
6162 if test "$enableval" = yes; then
6163 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6164 else
6165 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6166 fi
e6cc62c6 6167
69d27ff7 6168else
e6cc62c6 6169
69d27ff7
MB
6170 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6178
e6cc62c6 6179fi;
69d27ff7
MB
6180
6181 eval "$ac_cv_use_logdialog"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
69d27ff7 6189 else
e6cc62c6
VS
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
69d27ff7 6192 fi
e6cc62c6 6193
8284b0c5 6194
52127426 6195
5005acfe 6196 enablestring=
e6cc62c6
VS
6197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6198echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6199 no_cache=0
6200 # Check whether --enable-postscript or --disable-postscript was given.
6201if test "${enable_postscript+set}" = set; then
6202 enableval="$enable_postscript"
e6cc62c6 6203
10f2d63a
VZ
6204 if test "$enableval" = yes; then
6205 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6206 else
6207 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6208 fi
e6cc62c6 6209
10f2d63a 6210else
e6cc62c6 6211
10f2d63a
VZ
6212 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6220
e6cc62c6 6221fi;
10f2d63a
VZ
6222
6223 eval "$ac_cv_use_postscript"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6229 echo "$as_me:$LINENO: result: yes" >&5
6230echo "${ECHO_T}yes" >&6
10f2d63a 6231 else
e6cc62c6
VS
6232 echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
10f2d63a 6234 fi
e6cc62c6 6235
8284b0c5
MB
6236
6237
52127426 6238
8284b0c5 6239
5005acfe 6240 enablestring=
e6cc62c6
VS
6241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6242echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6243 no_cache=0
3c907f20
VZ
6244 # Check whether --enable-prologio or --disable-prologio was given.
6245if test "${enable_prologio+set}" = set; then
6246 enableval="$enable_prologio"
e6cc62c6 6247
10f2d63a 6248 if test "$enableval" = yes; then
3c907f20 6249 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6250 else
3c907f20 6251 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6252 fi
e6cc62c6 6253
10f2d63a 6254else
e6cc62c6 6255
3c907f20 6256 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
3c907f20 6263 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6264
e6cc62c6 6265fi;
10f2d63a 6266
3c907f20 6267 eval "$ac_cv_use_prologio"
10f2d63a 6268 if test "$no_cache" != 1; then
3c907f20 6269 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6270 fi
6271
3c907f20 6272 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6273 echo "$as_me:$LINENO: result: yes" >&5
6274echo "${ECHO_T}yes" >&6
10f2d63a 6275 else
e6cc62c6
VS
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
10f2d63a 6278 fi
e6cc62c6 6279
8284b0c5 6280
5005acfe 6281 enablestring=
e6cc62c6
VS
6282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6283echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6284 no_cache=0
3c907f20
VZ
6285 # Check whether --enable-resources or --disable-resources was given.
6286if test "${enable_resources+set}" = set; then
6287 enableval="$enable_resources"
e6cc62c6 6288
10f2d63a 6289 if test "$enableval" = yes; then
3c907f20 6290 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6291 else
3c907f20 6292 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6293 fi
e6cc62c6 6294
10f2d63a 6295else
e6cc62c6 6296
3c907f20 6297 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6298 if test "x$LINE" != x ; then
6299 eval "DEFAULT_$LINE"
6300 else
6301 no_cache=1
6302 fi
6303
3c907f20 6304 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6305
e6cc62c6 6306fi;
10f2d63a 6307
3c907f20 6308 eval "$ac_cv_use_resources"
10f2d63a 6309 if test "$no_cache" != 1; then
3c907f20 6310 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6311 fi
6312
3c907f20 6313 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6314 echo "$as_me:$LINENO: result: yes" >&5
6315echo "${ECHO_T}yes" >&6
10f2d63a 6316 else
e6cc62c6
VS
6317 echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
10f2d63a 6319 fi
e6cc62c6 6320
8284b0c5
MB
6321
6322
52127426 6323
5005acfe 6324 enablestring=
e6cc62c6
VS
6325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6326echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6327 no_cache=0
6328 # Check whether --enable-clipboard or --disable-clipboard was given.
6329if test "${enable_clipboard+set}" = set; then
6330 enableval="$enable_clipboard"
e6cc62c6 6331
10f2d63a
VZ
6332 if test "$enableval" = yes; then
6333 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6334 else
6335 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6336 fi
e6cc62c6 6337
10f2d63a 6338else
e6cc62c6 6339
10f2d63a
VZ
6340 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6341 if test "x$LINE" != x ; then
6342 eval "DEFAULT_$LINE"
6343 else
6344 no_cache=1
6345 fi
6346
6347 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6348
e6cc62c6 6349fi;
10f2d63a
VZ
6350
6351 eval "$ac_cv_use_clipboard"
6352 if test "$no_cache" != 1; then
6353 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6354 fi
6355
6356 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6357 echo "$as_me:$LINENO: result: yes" >&5
6358echo "${ECHO_T}yes" >&6
10f2d63a 6359 else
e6cc62c6
VS
6360 echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
10f2d63a 6362 fi
e6cc62c6 6363
10f2d63a 6364
5005acfe 6365 enablestring=
e6cc62c6
VS
6366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6367echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6368 no_cache=0
6369 # Check whether --enable-dnd or --disable-dnd was given.
6370if test "${enable_dnd+set}" = set; then
6371 enableval="$enable_dnd"
e6cc62c6 6372
10f2d63a
VZ
6373 if test "$enableval" = yes; then
6374 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6375 else
6376 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6377 fi
e6cc62c6 6378
10f2d63a 6379else
e6cc62c6 6380
10f2d63a
VZ
6381 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6389
e6cc62c6 6390fi;
10f2d63a
VZ
6391
6392 eval "$ac_cv_use_dnd"
6393 if test "$no_cache" != 1; then
6394 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6395 fi
6396
6397 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6398 echo "$as_me:$LINENO: result: yes" >&5
6399echo "${ECHO_T}yes" >&6
10f2d63a 6400 else
e6cc62c6
VS
6401 echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
10f2d63a 6403 fi
e6cc62c6 6404
10f2d63a 6405
5005acfe 6406 enablestring=
e6cc62c6
VS
6407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6408echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6409 no_cache=0
6410 # Check whether --enable-metafile or --disable-metafile was given.
6411if test "${enable_metafile+set}" = set; then
6412 enableval="$enable_metafile"
e6cc62c6 6413
b64f0a5f
RL
6414 if test "$enableval" = yes; then
6415 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6416 else
6417 ac_cv_use_metafile='wxUSE_METAFILE=no'
6418 fi
e6cc62c6 6419
b64f0a5f 6420else
e6cc62c6 6421
b64f0a5f
RL
6422 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6423 if test "x$LINE" != x ; then
6424 eval "DEFAULT_$LINE"
6425 else
6426 no_cache=1
6427 fi
6428
6429 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6430
e6cc62c6 6431fi;
b64f0a5f
RL
6432
6433 eval "$ac_cv_use_metafile"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: yes" >&5
6440echo "${ECHO_T}yes" >&6
b64f0a5f 6441 else
e6cc62c6
VS
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
b64f0a5f 6444 fi
e6cc62c6 6445
52127426 6446
8284b0c5 6447
52127426 6448
8284b0c5 6449
5005acfe 6450 enablestring=
e6cc62c6
VS
6451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6452echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6453 no_cache=0
6454 # Check whether --enable-controls or --disable-controls was given.
6455if test "${enable_controls+set}" = set; then
6456 enableval="$enable_controls"
e6cc62c6 6457
10f2d63a
VZ
6458 if test "$enableval" = yes; then
6459 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6460 else
6461 ac_cv_use_controls='wxUSE_CONTROLS=no'
6462 fi
e6cc62c6 6463
10f2d63a 6464else
e6cc62c6 6465
10f2d63a
VZ
6466 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6474
e6cc62c6 6475fi;
10f2d63a
VZ
6476
6477 eval "$ac_cv_use_controls"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6483 echo "$as_me:$LINENO: result: yes" >&5
6484echo "${ECHO_T}yes" >&6
10f2d63a 6485 else
e6cc62c6
VS
6486 echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
10f2d63a 6488 fi
e6cc62c6 6489
10f2d63a
VZ
6490
6491if test "$wxUSE_CONTROLS" = "yes"; then
6492 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6493 DEFAULT_wxUSE_BMPBUTTON=yes
6494 DEFAULT_wxUSE_BUTTON=yes
6495 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6496 DEFAULT_wxUSE_CARET=yes
6497 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6498 DEFAULT_wxUSE_CHECKBOX=yes
6499 DEFAULT_wxUSE_CHECKLISTBOX=yes
6500 DEFAULT_wxUSE_CHOICE=yes
6501 DEFAULT_wxUSE_GAUGE=yes
6502 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6503 DEFAULT_wxUSE_IMAGLIST=yes
6504 DEFAULT_wxUSE_LISTBOX=yes
6505 DEFAULT_wxUSE_LISTCTRL=yes
6506 DEFAULT_wxUSE_NOTEBOOK=yes
6507 DEFAULT_wxUSE_RADIOBOX=yes
6508 DEFAULT_wxUSE_RADIOBTN=yes
6509 DEFAULT_wxUSE_SASH=yes
6510 DEFAULT_wxUSE_SCROLLBAR=yes
6511 DEFAULT_wxUSE_SLIDER=yes
6512 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6513 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6514 DEFAULT_wxUSE_SPLITTER=yes
6515 DEFAULT_wxUSE_STATBMP=yes
6516 DEFAULT_wxUSE_STATBOX=yes
6517 DEFAULT_wxUSE_STATLINE=yes
6518 DEFAULT_wxUSE_STATUSBAR=yes
6519 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6520 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6521 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6522 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6523 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6524 DEFAULT_wxUSE_TOOLTIPS=yes
6525 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6526 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6527 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6528elif test "$wxUSE_CONTROLS" = "no"; then
6529 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6530 DEFAULT_wxUSE_BMPBUTTON=no
6531 DEFAULT_wxUSE_BUTTON=no
6532 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6533 DEFAULT_wxUSE_CARET=no
6534 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6535 DEFAULT_wxUSE_CHECKBOX=no
6536 DEFAULT_wxUSE_CHECKLISTBOX=no
6537 DEFAULT_wxUSE_CHOICE=no
6538 DEFAULT_wxUSE_GAUGE=no
6539 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6540 DEFAULT_wxUSE_IMAGLIST=no
6541 DEFAULT_wxUSE_LISTBOX=no
6542 DEFAULT_wxUSE_LISTCTRL=no
6543 DEFAULT_wxUSE_NOTEBOOK=no
6544 DEFAULT_wxUSE_RADIOBOX=no
6545 DEFAULT_wxUSE_RADIOBTN=no
6546 DEFAULT_wxUSE_SASH=no
6547 DEFAULT_wxUSE_SCROLLBAR=no
6548 DEFAULT_wxUSE_SLIDER=no
6549 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6550 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6551 DEFAULT_wxUSE_SPLITTER=no
6552 DEFAULT_wxUSE_STATBMP=no
6553 DEFAULT_wxUSE_STATBOX=no
6554 DEFAULT_wxUSE_STATLINE=no
6555 DEFAULT_wxUSE_STATUSBAR=no
6556 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6557 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6558 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6559 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6560 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6561 DEFAULT_wxUSE_TOOLTIPS=no
6562 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6563 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6564 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6565fi
6566
ac0c4cc3
DE
6567## FIXME: This is a blatant hack
6568if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6569 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6570 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6571 # Generic notebook requires tab dialog
6572 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6573 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6574 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6575 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6576 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6577fi
6578
8284b0c5 6579
5005acfe 6580 enablestring=
e6cc62c6
VS
6581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6582echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6583 no_cache=0
6584 # Check whether --enable-accel or --disable-accel was given.
6585if test "${enable_accel+set}" = set; then
6586 enableval="$enable_accel"
e6cc62c6 6587
10f2d63a
VZ
6588 if test "$enableval" = yes; then
6589 ac_cv_use_accel='wxUSE_ACCEL=yes'
6590 else
6591 ac_cv_use_accel='wxUSE_ACCEL=no'
6592 fi
e6cc62c6 6593
10f2d63a 6594else
e6cc62c6 6595
10f2d63a
VZ
6596 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6597 if test "x$LINE" != x ; then
6598 eval "DEFAULT_$LINE"
6599 else
6600 no_cache=1
6601 fi
6602
6603 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6604
e6cc62c6 6605fi;
10f2d63a
VZ
6606
6607 eval "$ac_cv_use_accel"
6608 if test "$no_cache" != 1; then
6609 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6610 fi
6611
6612 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6613 echo "$as_me:$LINENO: result: yes" >&5
6614echo "${ECHO_T}yes" >&6
10f2d63a 6615 else
e6cc62c6
VS
6616 echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
10f2d63a 6618 fi
e6cc62c6 6619
10f2d63a 6620
5005acfe 6621 enablestring=
e6cc62c6
VS
6622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6623echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6624 no_cache=0
1e6feb95
VZ
6625 # Check whether --enable-button or --disable-button was given.
6626if test "${enable_button+set}" = set; then
6627 enableval="$enable_button"
e6cc62c6 6628
10f2d63a 6629 if test "$enableval" = yes; then
1e6feb95 6630 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6631 else
1e6feb95 6632 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6633 fi
e6cc62c6 6634
10f2d63a 6635else
e6cc62c6 6636
1e6feb95 6637 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6638 if test "x$LINE" != x ; then
6639 eval "DEFAULT_$LINE"
6640 else
6641 no_cache=1
6642 fi
6643
1e6feb95 6644 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6645
e6cc62c6 6646fi;
10f2d63a 6647
1e6feb95 6648 eval "$ac_cv_use_button"
10f2d63a 6649 if test "$no_cache" != 1; then
1e6feb95 6650 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6651 fi
6652
1e6feb95 6653 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6654 echo "$as_me:$LINENO: result: yes" >&5
6655echo "${ECHO_T}yes" >&6
10f2d63a 6656 else
e6cc62c6
VS
6657 echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6
10f2d63a 6659 fi
e6cc62c6 6660
10f2d63a 6661
5005acfe 6662 enablestring=
e6cc62c6
VS
6663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6664echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6665 no_cache=0
6666 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6667if test "${enable_bmpbutton+set}" = set; then
6668 enableval="$enable_bmpbutton"
e6cc62c6 6669
10f2d63a
VZ
6670 if test "$enableval" = yes; then
6671 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6672 else
6673 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6674 fi
e6cc62c6 6675
10f2d63a 6676else
e6cc62c6 6677
10f2d63a
VZ
6678 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6686
e6cc62c6 6687fi;
10f2d63a
VZ
6688
6689 eval "$ac_cv_use_bmpbutton"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6695 echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6
10f2d63a 6697 else
e6cc62c6
VS
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
10f2d63a 6700 fi
e6cc62c6 6701
10f2d63a 6702
5005acfe 6703 enablestring=
e6cc62c6
VS
6704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6705echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6706 no_cache=0
6707 # Check whether --enable-calendar or --disable-calendar was given.
6708if test "${enable_calendar+set}" = set; then
6709 enableval="$enable_calendar"
e6cc62c6 6710
1e6feb95
VZ
6711 if test "$enableval" = yes; then
6712 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6713 else
6714 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6715 fi
e6cc62c6 6716
1e6feb95 6717else
e6cc62c6 6718
1e6feb95
VZ
6719 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6727
e6cc62c6 6728fi;
1e6feb95
VZ
6729
6730 eval "$ac_cv_use_calendar"
6731 if test "$no_cache" != 1; then
6732 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6733 fi
6734
6735 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6736 echo "$as_me:$LINENO: result: yes" >&5
6737echo "${ECHO_T}yes" >&6
1e6feb95 6738 else
e6cc62c6
VS
6739 echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6
1e6feb95 6741 fi
e6cc62c6 6742
1e6feb95 6743
5005acfe 6744 enablestring=
e6cc62c6
VS
6745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6746echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6747 no_cache=0
6748 # Check whether --enable-caret or --disable-caret was given.
6749if test "${enable_caret+set}" = set; then
6750 enableval="$enable_caret"
e6cc62c6 6751
1e6feb95
VZ
6752 if test "$enableval" = yes; then
6753 ac_cv_use_caret='wxUSE_CARET=yes'
6754 else
6755 ac_cv_use_caret='wxUSE_CARET=no'
6756 fi
e6cc62c6 6757
1e6feb95 6758else
e6cc62c6 6759
1e6feb95
VZ
6760 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6761 if test "x$LINE" != x ; then
6762 eval "DEFAULT_$LINE"
6763 else
6764 no_cache=1
6765 fi
6766
6767 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6768
e6cc62c6 6769fi;
1e6feb95
VZ
6770
6771 eval "$ac_cv_use_caret"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6777 echo "$as_me:$LINENO: result: yes" >&5
6778echo "${ECHO_T}yes" >&6
1e6feb95 6779 else
e6cc62c6
VS
6780 echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6
1e6feb95 6782 fi
e6cc62c6 6783
1e6feb95 6784
5005acfe 6785 enablestring=
e6cc62c6
VS
6786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6787echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6788 no_cache=0
6789 # Check whether --enable-checkbox or --disable-checkbox was given.
6790if test "${enable_checkbox+set}" = set; then
6791 enableval="$enable_checkbox"
e6cc62c6 6792
10f2d63a
VZ
6793 if test "$enableval" = yes; then
6794 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6795 else
6796 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6797 fi
e6cc62c6 6798
10f2d63a 6799else
e6cc62c6 6800
10f2d63a
VZ
6801 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6802 if test "x$LINE" != x ; then
6803 eval "DEFAULT_$LINE"
6804 else
6805 no_cache=1
6806 fi
6807
6808 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6809
e6cc62c6 6810fi;
10f2d63a
VZ
6811
6812 eval "$ac_cv_use_checkbox"
6813 if test "$no_cache" != 1; then
6814 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6815 fi
6816
6817 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6818 echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6
10f2d63a 6820 else
e6cc62c6
VS
6821 echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6
10f2d63a 6823 fi
e6cc62c6 6824
10f2d63a 6825
5005acfe 6826 enablestring=
e6cc62c6
VS
6827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6828echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6829 no_cache=0
6830 # Check whether --enable-checklst or --disable-checklst was given.
6831if test "${enable_checklst+set}" = set; then
6832 enableval="$enable_checklst"
e6cc62c6 6833
10f2d63a
VZ
6834 if test "$enableval" = yes; then
6835 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6836 else
6837 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6838 fi
e6cc62c6 6839
10f2d63a 6840else
e6cc62c6 6841
10f2d63a
VZ
6842 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6850
e6cc62c6 6851fi;
10f2d63a
VZ
6852
6853 eval "$ac_cv_use_checklst"
6854 if test "$no_cache" != 1; then
6855 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6856 fi
6857
6858 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6859 echo "$as_me:$LINENO: result: yes" >&5
6860echo "${ECHO_T}yes" >&6
10f2d63a 6861 else
e6cc62c6
VS
6862 echo "$as_me:$LINENO: result: no" >&5
6863echo "${ECHO_T}no" >&6
10f2d63a 6864 fi
e6cc62c6 6865
10f2d63a 6866
5005acfe 6867 enablestring=
e6cc62c6
VS
6868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6869echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6870 no_cache=0
6871 # Check whether --enable-choice or --disable-choice was given.
6872if test "${enable_choice+set}" = set; then
6873 enableval="$enable_choice"
e6cc62c6 6874
10f2d63a
VZ
6875 if test "$enableval" = yes; then
6876 ac_cv_use_choice='wxUSE_CHOICE=yes'
6877 else
6878 ac_cv_use_choice='wxUSE_CHOICE=no'
6879 fi
e6cc62c6 6880
10f2d63a 6881else
e6cc62c6 6882
10f2d63a
VZ
6883 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6884 if test "x$LINE" != x ; then
6885 eval "DEFAULT_$LINE"
6886 else
6887 no_cache=1
6888 fi
6889
6890 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6891
e6cc62c6 6892fi;
10f2d63a
VZ
6893
6894 eval "$ac_cv_use_choice"
6895 if test "$no_cache" != 1; then
6896 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6897 fi
6898
6899 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6900 echo "$as_me:$LINENO: result: yes" >&5
6901echo "${ECHO_T}yes" >&6
10f2d63a 6902 else
e6cc62c6
VS
6903 echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
10f2d63a 6905 fi
e6cc62c6 6906
10f2d63a 6907
5005acfe 6908 enablestring=
e6cc62c6
VS
6909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6910echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6911 no_cache=0
6912 # Check whether --enable-combobox or --disable-combobox was given.
6913if test "${enable_combobox+set}" = set; then
6914 enableval="$enable_combobox"
e6cc62c6 6915
10f2d63a
VZ
6916 if test "$enableval" = yes; then
6917 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6918 else
6919 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6920 fi
e6cc62c6 6921
10f2d63a 6922else
e6cc62c6 6923
10f2d63a
VZ
6924 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6925 if test "x$LINE" != x ; then
6926 eval "DEFAULT_$LINE"
6927 else
6928 no_cache=1
6929 fi
6930
6931 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6932
e6cc62c6 6933fi;
10f2d63a
VZ
6934
6935 eval "$ac_cv_use_combobox"
6936 if test "$no_cache" != 1; then
6937 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6938 fi
6939
6940 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6941 echo "$as_me:$LINENO: result: yes" >&5
6942echo "${ECHO_T}yes" >&6
10f2d63a 6943 else
e6cc62c6
VS
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
10f2d63a 6946 fi
e6cc62c6 6947
10f2d63a 6948
da494b40 6949 enablestring=
e6cc62c6
VS
6950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6951echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6952 no_cache=0
6953 # Check whether --enable-display or --disable-display was given.
6954if test "${enable_display+set}" = set; then
6955 enableval="$enable_display"
e6cc62c6 6956
da494b40
MB
6957 if test "$enableval" = yes; then
6958 ac_cv_use_display='wxUSE_DISPLAY=yes'
6959 else
6960 ac_cv_use_display='wxUSE_DISPLAY=no'
6961 fi
e6cc62c6 6962
da494b40 6963else
e6cc62c6 6964
da494b40
MB
6965 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6966 if test "x$LINE" != x ; then
6967 eval "DEFAULT_$LINE"
6968 else
6969 no_cache=1
6970 fi
6971
6972 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6973
e6cc62c6 6974fi;
da494b40
MB
6975
6976 eval "$ac_cv_use_display"
6977 if test "$no_cache" != 1; then
6978 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6979 fi
6980
6981 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6982 echo "$as_me:$LINENO: result: yes" >&5
6983echo "${ECHO_T}yes" >&6
da494b40 6984 else
e6cc62c6
VS
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
da494b40 6987 fi
e6cc62c6 6988
da494b40 6989
5005acfe 6990 enablestring=
e6cc62c6
VS
6991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6992echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6993 no_cache=0
6994 # Check whether --enable-gauge or --disable-gauge was given.
6995if test "${enable_gauge+set}" = set; then
6996 enableval="$enable_gauge"
e6cc62c6 6997
10f2d63a
VZ
6998 if test "$enableval" = yes; then
6999 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7000 else
7001 ac_cv_use_gauge='wxUSE_GAUGE=no'
7002 fi
e6cc62c6 7003
10f2d63a 7004else
e6cc62c6 7005
10f2d63a
VZ
7006 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7007 if test "x$LINE" != x ; then
7008 eval "DEFAULT_$LINE"
7009 else
7010 no_cache=1
7011 fi
7012
7013 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7014
e6cc62c6 7015fi;
10f2d63a
VZ
7016
7017 eval "$ac_cv_use_gauge"
7018 if test "$no_cache" != 1; then
7019 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7020 fi
7021
7022 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7023 echo "$as_me:$LINENO: result: yes" >&5
7024echo "${ECHO_T}yes" >&6
10f2d63a 7025 else
e6cc62c6
VS
7026 echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
10f2d63a 7028 fi
e6cc62c6 7029
10f2d63a 7030
5005acfe 7031 enablestring=
e6cc62c6
VS
7032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7033echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7034 no_cache=0
7035 # Check whether --enable-grid or --disable-grid was given.
7036if test "${enable_grid+set}" = set; then
7037 enableval="$enable_grid"
e6cc62c6 7038
10f2d63a
VZ
7039 if test "$enableval" = yes; then
7040 ac_cv_use_grid='wxUSE_GRID=yes'
7041 else
7042 ac_cv_use_grid='wxUSE_GRID=no'
7043 fi
e6cc62c6 7044
10f2d63a 7045else
e6cc62c6 7046
10f2d63a
VZ
7047 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7048 if test "x$LINE" != x ; then
7049 eval "DEFAULT_$LINE"
7050 else
7051 no_cache=1
7052 fi
7053
7054 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7055
e6cc62c6 7056fi;
10f2d63a
VZ
7057
7058 eval "$ac_cv_use_grid"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7064 echo "$as_me:$LINENO: result: yes" >&5
7065echo "${ECHO_T}yes" >&6
10f2d63a 7066 else
e6cc62c6
VS
7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
10f2d63a 7069 fi
e6cc62c6 7070
10f2d63a 7071
5005acfe 7072 enablestring=
e6cc62c6
VS
7073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7074echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7075 no_cache=0
7076 # Check whether --enable-imaglist or --disable-imaglist was given.
7077if test "${enable_imaglist+set}" = set; then
7078 enableval="$enable_imaglist"
e6cc62c6 7079
10f2d63a
VZ
7080 if test "$enableval" = yes; then
7081 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7082 else
7083 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7084 fi
e6cc62c6 7085
10f2d63a 7086else
e6cc62c6 7087
10f2d63a
VZ
7088 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7089 if test "x$LINE" != x ; then
7090 eval "DEFAULT_$LINE"
7091 else
7092 no_cache=1
7093 fi
7094
7095 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7096
e6cc62c6 7097fi;
10f2d63a
VZ
7098
7099 eval "$ac_cv_use_imaglist"
7100 if test "$no_cache" != 1; then
7101 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7102 fi
7103
7104 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7105 echo "$as_me:$LINENO: result: yes" >&5
7106echo "${ECHO_T}yes" >&6
10f2d63a 7107 else
e6cc62c6
VS
7108 echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6
10f2d63a 7110 fi
e6cc62c6 7111
10f2d63a 7112
5005acfe 7113 enablestring=
e6cc62c6
VS
7114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7115echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7116 no_cache=0
7117 # Check whether --enable-listbox or --disable-listbox was given.
7118if test "${enable_listbox+set}" = set; then
7119 enableval="$enable_listbox"
e6cc62c6 7120
10f2d63a
VZ
7121 if test "$enableval" = yes; then
7122 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7123 else
7124 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7125 fi
e6cc62c6 7126
10f2d63a 7127else
e6cc62c6 7128
10f2d63a
VZ
7129 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7137
e6cc62c6 7138fi;
10f2d63a
VZ
7139
7140 eval "$ac_cv_use_listbox"
7141 if test "$no_cache" != 1; then
7142 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7143 fi
7144
7145 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7146 echo "$as_me:$LINENO: result: yes" >&5
7147echo "${ECHO_T}yes" >&6
10f2d63a 7148 else
e6cc62c6
VS
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
10f2d63a 7151 fi
e6cc62c6 7152
10f2d63a 7153
5005acfe 7154 enablestring=
e6cc62c6
VS
7155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7156echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7157 no_cache=0
7158 # Check whether --enable-listctrl or --disable-listctrl was given.
7159if test "${enable_listctrl+set}" = set; then
7160 enableval="$enable_listctrl"
e6cc62c6 7161
10f2d63a
VZ
7162 if test "$enableval" = yes; then
7163 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7164 else
7165 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7166 fi
e6cc62c6 7167
10f2d63a 7168else
e6cc62c6 7169
10f2d63a
VZ
7170 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7178
e6cc62c6 7179fi;
10f2d63a
VZ
7180
7181 eval "$ac_cv_use_listctrl"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7187 echo "$as_me:$LINENO: result: yes" >&5
7188echo "${ECHO_T}yes" >&6
10f2d63a 7189 else
e6cc62c6
VS
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
10f2d63a 7192 fi
e6cc62c6 7193
10f2d63a 7194
5005acfe 7195 enablestring=
e6cc62c6
VS
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7198 no_cache=0
7199 # Check whether --enable-notebook or --disable-notebook was given.
7200if test "${enable_notebook+set}" = set; then
7201 enableval="$enable_notebook"
e6cc62c6 7202
10f2d63a
VZ
7203 if test "$enableval" = yes; then
7204 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7205 else
7206 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7207 fi
e6cc62c6 7208
10f2d63a 7209else
e6cc62c6 7210
10f2d63a
VZ
7211 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7219
e6cc62c6 7220fi;
10f2d63a
VZ
7221
7222 eval "$ac_cv_use_notebook"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
10f2d63a 7230 else
e6cc62c6
VS
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
10f2d63a 7233 fi
e6cc62c6 7234
10f2d63a 7235
5005acfe 7236 enablestring=
e6cc62c6
VS
7237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7238echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7239 no_cache=0
7240 # Check whether --enable-radiobox or --disable-radiobox was given.
7241if test "${enable_radiobox+set}" = set; then
7242 enableval="$enable_radiobox"
e6cc62c6 7243
10f2d63a
VZ
7244 if test "$enableval" = yes; then
7245 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7246 else
7247 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7248 fi
e6cc62c6 7249
10f2d63a 7250else
e6cc62c6 7251
10f2d63a
VZ
7252 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7260
e6cc62c6 7261fi;
10f2d63a
VZ
7262
7263 eval "$ac_cv_use_radiobox"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7269 echo "$as_me:$LINENO: result: yes" >&5
7270echo "${ECHO_T}yes" >&6
10f2d63a 7271 else
e6cc62c6
VS
7272 echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6
10f2d63a 7274 fi
e6cc62c6 7275
10f2d63a 7276
5005acfe 7277 enablestring=
e6cc62c6
VS
7278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7279echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7280 no_cache=0
7281 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7282if test "${enable_radiobtn+set}" = set; then
7283 enableval="$enable_radiobtn"
e6cc62c6 7284
10f2d63a
VZ
7285 if test "$enableval" = yes; then
7286 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7287 else
7288 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7289 fi
e6cc62c6 7290
10f2d63a 7291else
e6cc62c6 7292
10f2d63a
VZ
7293 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7301
e6cc62c6 7302fi;
10f2d63a
VZ
7303
7304 eval "$ac_cv_use_radiobtn"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7310 echo "$as_me:$LINENO: result: yes" >&5
7311echo "${ECHO_T}yes" >&6
10f2d63a 7312 else
e6cc62c6
VS
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
10f2d63a 7315 fi
e6cc62c6 7316
10f2d63a 7317
5005acfe 7318 enablestring=
e6cc62c6
VS
7319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7320echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7321 no_cache=0
7322 # Check whether --enable-sash or --disable-sash was given.
7323if test "${enable_sash+set}" = set; then
7324 enableval="$enable_sash"
e6cc62c6 7325
10f2d63a
VZ
7326 if test "$enableval" = yes; then
7327 ac_cv_use_sash='wxUSE_SASH=yes'
7328 else
7329 ac_cv_use_sash='wxUSE_SASH=no'
7330 fi
e6cc62c6 7331
10f2d63a 7332else
e6cc62c6 7333
10f2d63a
VZ
7334 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7342
e6cc62c6 7343fi;
10f2d63a
VZ
7344
7345 eval "$ac_cv_use_sash"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7351 echo "$as_me:$LINENO: result: yes" >&5
7352echo "${ECHO_T}yes" >&6
10f2d63a 7353 else
e6cc62c6
VS
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
10f2d63a 7356 fi
e6cc62c6 7357
10f2d63a 7358
5005acfe 7359 enablestring=
e6cc62c6
VS
7360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7361echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7362 no_cache=0
7363 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7364if test "${enable_scrollbar+set}" = set; then
7365 enableval="$enable_scrollbar"
e6cc62c6 7366
10f2d63a
VZ
7367 if test "$enableval" = yes; then
7368 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7369 else
7370 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7371 fi
e6cc62c6 7372
10f2d63a 7373else
e6cc62c6 7374
10f2d63a
VZ
7375 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7383
e6cc62c6 7384fi;
10f2d63a
VZ
7385
7386 eval "$ac_cv_use_scrollbar"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7392 echo "$as_me:$LINENO: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
10f2d63a 7394 else
e6cc62c6
VS
7395 echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
10f2d63a 7397 fi
e6cc62c6 7398
10f2d63a 7399
5005acfe 7400 enablestring=
e6cc62c6
VS
7401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7402echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7403 no_cache=0
7404 # Check whether --enable-slider or --disable-slider was given.
7405if test "${enable_slider+set}" = set; then
7406 enableval="$enable_slider"
e6cc62c6 7407
10f2d63a
VZ
7408 if test "$enableval" = yes; then
7409 ac_cv_use_slider='wxUSE_SLIDER=yes'
7410 else
7411 ac_cv_use_slider='wxUSE_SLIDER=no'
7412 fi
e6cc62c6 7413
10f2d63a 7414else
e6cc62c6 7415
10f2d63a
VZ
7416 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7424
e6cc62c6 7425fi;
10f2d63a
VZ
7426
7427 eval "$ac_cv_use_slider"
7428 if test "$no_cache" != 1; then
7429 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7430 fi
7431
7432 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7433 echo "$as_me:$LINENO: result: yes" >&5
7434echo "${ECHO_T}yes" >&6
10f2d63a 7435 else
e6cc62c6
VS
7436 echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6
10f2d63a 7438 fi
e6cc62c6 7439
10f2d63a 7440
5005acfe 7441 enablestring=
e6cc62c6
VS
7442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7443echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7444 no_cache=0
7445 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7446if test "${enable_spinbtn+set}" = set; then
7447 enableval="$enable_spinbtn"
e6cc62c6 7448
10f2d63a
VZ
7449 if test "$enableval" = yes; then
7450 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7451 else
7452 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7453 fi
e6cc62c6 7454
10f2d63a 7455else
e6cc62c6 7456
10f2d63a
VZ
7457 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7465
e6cc62c6 7466fi;
10f2d63a
VZ
7467
7468 eval "$ac_cv_use_spinbtn"
7469 if test "$no_cache" != 1; then
7470 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7471 fi
7472
7473 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7474 echo "$as_me:$LINENO: result: yes" >&5
7475echo "${ECHO_T}yes" >&6
10f2d63a 7476 else
e6cc62c6
VS
7477 echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6
10f2d63a 7479 fi
e6cc62c6 7480
10f2d63a 7481
5005acfe 7482 enablestring=
e6cc62c6
VS
7483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7484echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7485 no_cache=0
7486 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7487if test "${enable_spinctrl+set}" = set; then
7488 enableval="$enable_spinctrl"
e6cc62c6 7489
56cfaa52
RR
7490 if test "$enableval" = yes; then
7491 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7492 else
7493 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7494 fi
e6cc62c6 7495
56cfaa52 7496else
e6cc62c6 7497
56cfaa52
RR
7498 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7506
e6cc62c6 7507fi;
56cfaa52
RR
7508
7509 eval "$ac_cv_use_spinctrl"
7510 if test "$no_cache" != 1; then
7511 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7512 fi
7513
7514 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
56cfaa52 7517 else
e6cc62c6
VS
7518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
56cfaa52 7520 fi
e6cc62c6 7521
56cfaa52 7522
5005acfe 7523 enablestring=
e6cc62c6
VS
7524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7525echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7526 no_cache=0
7527 # Check whether --enable-splitter or --disable-splitter was given.
7528if test "${enable_splitter+set}" = set; then
7529 enableval="$enable_splitter"
e6cc62c6 7530
10f2d63a
VZ
7531 if test "$enableval" = yes; then
7532 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7533 else
7534 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7535 fi
e6cc62c6 7536
10f2d63a 7537else
e6cc62c6 7538
10f2d63a
VZ
7539 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7547
e6cc62c6 7548fi;
10f2d63a
VZ
7549
7550 eval "$ac_cv_use_splitter"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7556 echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
10f2d63a 7558 else
e6cc62c6
VS
7559 echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
10f2d63a 7561 fi
e6cc62c6 7562
10f2d63a 7563
5005acfe 7564 enablestring=
e6cc62c6
VS
7565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7566echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7567 no_cache=0
7568 # Check whether --enable-statbmp or --disable-statbmp was given.
7569if test "${enable_statbmp+set}" = set; then
7570 enableval="$enable_statbmp"
e6cc62c6 7571
10f2d63a
VZ
7572 if test "$enableval" = yes; then
7573 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7574 else
7575 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7576 fi
e6cc62c6 7577
10f2d63a 7578else
e6cc62c6 7579
10f2d63a
VZ
7580 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7588
e6cc62c6 7589fi;
10f2d63a
VZ
7590
7591 eval "$ac_cv_use_statbmp"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7597 echo "$as_me:$LINENO: result: yes" >&5
7598echo "${ECHO_T}yes" >&6
10f2d63a 7599 else
e6cc62c6
VS
7600 echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6
10f2d63a 7602 fi
e6cc62c6 7603
10f2d63a 7604
5005acfe 7605 enablestring=
e6cc62c6
VS
7606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7607echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7608 no_cache=0
7609 # Check whether --enable-statbox or --disable-statbox was given.
7610if test "${enable_statbox+set}" = set; then
7611 enableval="$enable_statbox"
e6cc62c6 7612
10f2d63a
VZ
7613 if test "$enableval" = yes; then
7614 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7615 else
7616 ac_cv_use_statbox='wxUSE_STATBOX=no'
7617 fi
e6cc62c6 7618
10f2d63a 7619else
e6cc62c6 7620
10f2d63a
VZ
7621 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7622 if test "x$LINE" != x ; then
7623 eval "DEFAULT_$LINE"
7624 else
7625 no_cache=1
7626 fi
7627
7628 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7629
e6cc62c6 7630fi;
10f2d63a
VZ
7631
7632 eval "$ac_cv_use_statbox"
7633 if test "$no_cache" != 1; then
7634 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7635 fi
7636
7637 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7638 echo "$as_me:$LINENO: result: yes" >&5
7639echo "${ECHO_T}yes" >&6
10f2d63a 7640 else
e6cc62c6
VS
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
10f2d63a 7643 fi
e6cc62c6 7644
10f2d63a 7645
5005acfe 7646 enablestring=
e6cc62c6
VS
7647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7649 no_cache=0
7650 # Check whether --enable-statline or --disable-statline was given.
7651if test "${enable_statline+set}" = set; then
7652 enableval="$enable_statline"
e6cc62c6 7653
10f2d63a
VZ
7654 if test "$enableval" = yes; then
7655 ac_cv_use_statline='wxUSE_STATLINE=yes'
7656 else
7657 ac_cv_use_statline='wxUSE_STATLINE=no'
7658 fi
e6cc62c6 7659
10f2d63a 7660else
e6cc62c6 7661
10f2d63a
VZ
7662 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7663 if test "x$LINE" != x ; then
7664 eval "DEFAULT_$LINE"
7665 else
7666 no_cache=1
7667 fi
7668
7669 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7670
e6cc62c6 7671fi;
10f2d63a
VZ
7672
7673 eval "$ac_cv_use_statline"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7679 echo "$as_me:$LINENO: result: yes" >&5
7680echo "${ECHO_T}yes" >&6
10f2d63a 7681 else
e6cc62c6
VS
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
10f2d63a 7684 fi
e6cc62c6 7685
10f2d63a 7686
5005acfe 7687 enablestring=
e6cc62c6
VS
7688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7689echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7690 no_cache=0
7691 # Check whether --enable-stattext or --disable-stattext was given.
7692if test "${enable_stattext+set}" = set; then
7693 enableval="$enable_stattext"
e6cc62c6 7694
1e6feb95
VZ
7695 if test "$enableval" = yes; then
7696 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7697 else
7698 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7699 fi
e6cc62c6 7700
1e6feb95 7701else
e6cc62c6 7702
1e6feb95
VZ
7703 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7711
e6cc62c6 7712fi;
1e6feb95
VZ
7713
7714 eval "$ac_cv_use_stattext"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7720 echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6
1e6feb95 7722 else
e6cc62c6
VS
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
1e6feb95 7725 fi
e6cc62c6 7726
1e6feb95 7727
5005acfe 7728 enablestring=
e6cc62c6
VS
7729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7730echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7731 no_cache=0
7732 # Check whether --enable-statusbar or --disable-statusbar was given.
7733if test "${enable_statusbar+set}" = set; then
7734 enableval="$enable_statusbar"
e6cc62c6 7735
10f2d63a
VZ
7736 if test "$enableval" = yes; then
7737 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7738 else
7739 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7740 fi
e6cc62c6 7741
10f2d63a 7742else
e6cc62c6 7743
10f2d63a
VZ
7744 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7752
e6cc62c6 7753fi;
10f2d63a
VZ
7754
7755 eval "$ac_cv_use_statusbar"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7761 echo "$as_me:$LINENO: result: yes" >&5
7762echo "${ECHO_T}yes" >&6
10f2d63a 7763 else
e6cc62c6
VS
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
10f2d63a 7766 fi
e6cc62c6 7767
10f2d63a 7768
5005acfe 7769 enablestring=
e6cc62c6
VS
7770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7771echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7772 no_cache=0
7773 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7774if test "${enable_tabdialog+set}" = set; then
7775 enableval="$enable_tabdialog"
e6cc62c6 7776
10f2d63a
VZ
7777 if test "$enableval" = yes; then
7778 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7779 else
7780 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7781 fi
e6cc62c6 7782
10f2d63a 7783else
e6cc62c6 7784
10f2d63a
VZ
7785 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7786 if test "x$LINE" != x ; then
7787 eval "DEFAULT_$LINE"
7788 else
7789 no_cache=1
7790 fi
7791
7792 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7793
e6cc62c6 7794fi;
10f2d63a
VZ
7795
7796 eval "$ac_cv_use_tabdialog"
7797 if test "$no_cache" != 1; then
7798 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7799 fi
7800
7801 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7802 echo "$as_me:$LINENO: result: yes" >&5
7803echo "${ECHO_T}yes" >&6
10f2d63a 7804 else
e6cc62c6
VS
7805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
10f2d63a 7807 fi
e6cc62c6 7808
10f2d63a 7809
5005acfe 7810 enablestring=
e6cc62c6
VS
7811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7812echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7813 no_cache=0
7814 # Check whether --enable-textctrl or --disable-textctrl was given.
7815if test "${enable_textctrl+set}" = set; then
7816 enableval="$enable_textctrl"
e6cc62c6 7817
1e6feb95
VZ
7818 if test "$enableval" = yes; then
7819 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7820 else
7821 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7822 fi
e6cc62c6 7823
1e6feb95 7824else
e6cc62c6 7825
1e6feb95
VZ
7826 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7834
e6cc62c6 7835fi;
1e6feb95
VZ
7836
7837 eval "$ac_cv_use_textctrl"
7838 if test "$no_cache" != 1; then
7839 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7840 fi
7841
7842 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7843 echo "$as_me:$LINENO: result: yes" >&5
7844echo "${ECHO_T}yes" >&6
1e6feb95 7845 else
e6cc62c6
VS
7846 echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6
1e6feb95 7848 fi
e6cc62c6 7849
1e6feb95 7850
5005acfe 7851 enablestring=
e6cc62c6
VS
7852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7853echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7854 no_cache=0
7855 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7856if test "${enable_togglebtn+set}" = set; then
7857 enableval="$enable_togglebtn"
e6cc62c6 7858
1db8dc4a
VZ
7859 if test "$enableval" = yes; then
7860 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7861 else
7862 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7863 fi
e6cc62c6 7864
1db8dc4a 7865else
e6cc62c6 7866
1db8dc4a
VZ
7867 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7868 if test "x$LINE" != x ; then
7869 eval "DEFAULT_$LINE"
7870 else
7871 no_cache=1
7872 fi
7873
7874 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7875
e6cc62c6 7876fi;
1db8dc4a
VZ
7877
7878 eval "$ac_cv_use_togglebtn"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7884 echo "$as_me:$LINENO: result: yes" >&5
7885echo "${ECHO_T}yes" >&6
1db8dc4a 7886 else
e6cc62c6
VS
7887 echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6
1db8dc4a 7889 fi
e6cc62c6 7890
1db8dc4a 7891
5005acfe 7892 enablestring=
e6cc62c6
VS
7893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7894echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7895 no_cache=0
7896 # Check whether --enable-toolbar or --disable-toolbar was given.
7897if test "${enable_toolbar+set}" = set; then
7898 enableval="$enable_toolbar"
e6cc62c6 7899
10f2d63a
VZ
7900 if test "$enableval" = yes; then
7901 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7902 else
7903 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7904 fi
e6cc62c6 7905
10f2d63a 7906else
e6cc62c6 7907
10f2d63a
VZ
7908 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7909 if test "x$LINE" != x ; then
7910 eval "DEFAULT_$LINE"
7911 else
7912 no_cache=1
7913 fi
7914
7915 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7916
e6cc62c6 7917fi;
10f2d63a
VZ
7918
7919 eval "$ac_cv_use_toolbar"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7925 echo "$as_me:$LINENO: result: yes" >&5
7926echo "${ECHO_T}yes" >&6
10f2d63a 7927 else
e6cc62c6
VS
7928 echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6
10f2d63a 7930 fi
e6cc62c6 7931
10f2d63a 7932
5005acfe 7933 enablestring=
e6cc62c6
VS
7934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7935echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7936 no_cache=0
7937 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7938if test "${enable_tbarnative+set}" = set; then
7939 enableval="$enable_tbarnative"
e6cc62c6 7940
360d6699
VZ
7941 if test "$enableval" = yes; then
7942 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7943 else
7944 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7945 fi
e6cc62c6 7946
360d6699 7947else
e6cc62c6 7948
360d6699
VZ
7949 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7950 if test "x$LINE" != x ; then
7951 eval "DEFAULT_$LINE"
7952 else
7953 no_cache=1
7954 fi
7955
7956 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7957
e6cc62c6 7958fi;
360d6699
VZ
7959
7960 eval "$ac_cv_use_tbarnative"
7961 if test "$no_cache" != 1; then
7962 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7963 fi
7964
7965 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7966 echo "$as_me:$LINENO: result: yes" >&5
7967echo "${ECHO_T}yes" >&6
360d6699 7968 else
e6cc62c6
VS
7969 echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6
360d6699 7971 fi
e6cc62c6 7972
360d6699 7973
5005acfe 7974 enablestring=
e6cc62c6
VS
7975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7976echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7977 no_cache=0
7978 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7979if test "${enable_tbarsmpl+set}" = set; then
7980 enableval="$enable_tbarsmpl"
e6cc62c6 7981
360d6699
VZ
7982 if test "$enableval" = yes; then
7983 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7984 else
7985 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7986 fi
e6cc62c6 7987
360d6699 7988else
e6cc62c6 7989
360d6699
VZ
7990 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7991 if test "x$LINE" != x ; then
7992 eval "DEFAULT_$LINE"
7993 else
7994 no_cache=1
7995 fi
7996
7997 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7998
e6cc62c6 7999fi;
360d6699
VZ
8000
8001 eval "$ac_cv_use_tbarsmpl"
8002 if test "$no_cache" != 1; then
8003 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8004 fi
8005
8006 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8007 echo "$as_me:$LINENO: result: yes" >&5
8008echo "${ECHO_T}yes" >&6
360d6699 8009 else
e6cc62c6
VS
8010 echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
360d6699 8012 fi
e6cc62c6 8013
360d6699 8014
5005acfe 8015 enablestring=
e6cc62c6
VS
8016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8017echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8018 no_cache=0
8019 # Check whether --enable-treectrl or --disable-treectrl was given.
8020if test "${enable_treectrl+set}" = set; then
8021 enableval="$enable_treectrl"
e6cc62c6 8022
10f2d63a
VZ
8023 if test "$enableval" = yes; then
8024 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8025 else
8026 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8027 fi
e6cc62c6 8028
10f2d63a 8029else
e6cc62c6 8030
10f2d63a
VZ
8031 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8032 if test "x$LINE" != x ; then
8033 eval "DEFAULT_$LINE"
8034 else
8035 no_cache=1
8036 fi
8037
8038 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8039
e6cc62c6 8040fi;
10f2d63a 8041
1e6feb95
VZ
8042 eval "$ac_cv_use_treectrl"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8048 echo "$as_me:$LINENO: result: yes" >&5
8049echo "${ECHO_T}yes" >&6
1e6feb95 8050 else
e6cc62c6
VS
8051 echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
1e6feb95 8053 fi
e6cc62c6 8054
1e6feb95 8055
5005acfe 8056 enablestring=
e6cc62c6
VS
8057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8058echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8059 no_cache=0
8060 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8061if test "${enable_tipwindow+set}" = set; then
8062 enableval="$enable_tipwindow"
e6cc62c6 8063
9926e4a4
VZ
8064 if test "$enableval" = yes; then
8065 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8066 else
8067 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8068 fi
e6cc62c6 8069
9926e4a4 8070else
e6cc62c6 8071
9926e4a4
VZ
8072 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8080
e6cc62c6 8081fi;
9926e4a4
VZ
8082
8083 eval "$ac_cv_use_tipwindow"
8084 if test "$no_cache" != 1; then
8085 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8086 fi
8087
8088 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8089 echo "$as_me:$LINENO: result: yes" >&5
8090echo "${ECHO_T}yes" >&6
9926e4a4 8091 else
e6cc62c6
VS
8092 echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6
9926e4a4 8094 fi
e6cc62c6 8095
9926e4a4 8096
5005acfe 8097 enablestring=
e6cc62c6
VS
8098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8099echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8100 no_cache=0
8101 # Check whether --enable-popupwin or --disable-popupwin was given.
8102if test "${enable_popupwin+set}" = set; then
8103 enableval="$enable_popupwin"
e6cc62c6 8104
9f41d601
RR
8105 if test "$enableval" = yes; then
8106 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8107 else
8108 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8109 fi
e6cc62c6 8110
9f41d601 8111else
e6cc62c6 8112
9f41d601
RR
8113 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8114 if test "x$LINE" != x ; then
8115 eval "DEFAULT_$LINE"
8116 else
8117 no_cache=1
8118 fi
8119
8120 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8121
e6cc62c6 8122fi;
9f41d601
RR
8123
8124 eval "$ac_cv_use_popupwin"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8130 echo "$as_me:$LINENO: result: yes" >&5
8131echo "${ECHO_T}yes" >&6
9f41d601 8132 else
e6cc62c6
VS
8133 echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6
9f41d601 8135 fi
e6cc62c6 8136
52127426 8137
8284b0c5
MB
8138
8139
5005acfe 8140 enablestring=
e6cc62c6
VS
8141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8142echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8143 no_cache=0
8144 # Check whether --enable-commondlg or --disable-commondlg was given.
8145if test "${enable_commondlg+set}" = set; then
8146 enableval="$enable_commondlg"
e6cc62c6 8147
1e6feb95
VZ
8148 if test "$enableval" = yes; then
8149 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8150 else
8151 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8152 fi
e6cc62c6 8153
1e6feb95 8154else
e6cc62c6 8155
1e6feb95
VZ
8156 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8157 if test "x$LINE" != x ; then
8158 eval "DEFAULT_$LINE"
8159 else
8160 no_cache=1
8161 fi
8162
8163 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8164
e6cc62c6 8165fi;
1e6feb95
VZ
8166
8167 eval "$ac_cv_use_commondlg"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8173 echo "$as_me:$LINENO: result: yes" >&5
8174echo "${ECHO_T}yes" >&6
1e6feb95 8175 else
e6cc62c6
VS
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
1e6feb95 8178 fi
e6cc62c6 8179
1e6feb95 8180
5005acfe 8181 enablestring=
e6cc62c6
VS
8182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8183echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8184 no_cache=0
8185 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8186if test "${enable_choicedlg+set}" = set; then
8187 enableval="$enable_choicedlg"
e6cc62c6 8188
1e6feb95
VZ
8189 if test "$enableval" = yes; then
8190 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8191 else
8192 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8193 fi
e6cc62c6 8194
1e6feb95 8195else
e6cc62c6 8196
1e6feb95
VZ
8197 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8205
e6cc62c6 8206fi;
1e6feb95
VZ
8207
8208 eval "$ac_cv_use_choicedlg"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8214 echo "$as_me:$LINENO: result: yes" >&5
8215echo "${ECHO_T}yes" >&6
1e6feb95 8216 else
e6cc62c6
VS
8217 echo "$as_me:$LINENO: result: no" >&5
8218echo "${ECHO_T}no" >&6
1e6feb95 8219 fi
e6cc62c6 8220
1e6feb95 8221
5005acfe 8222 enablestring=
e6cc62c6
VS
8223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8224echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8225 no_cache=0
8226 # Check whether --enable-coldlg or --disable-coldlg was given.
8227if test "${enable_coldlg+set}" = set; then
8228 enableval="$enable_coldlg"
e6cc62c6 8229
1e6feb95
VZ
8230 if test "$enableval" = yes; then
8231 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8232 else
8233 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8234 fi
e6cc62c6 8235
1e6feb95 8236else
e6cc62c6 8237
1e6feb95
VZ
8238 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8239 if test "x$LINE" != x ; then
8240 eval "DEFAULT_$LINE"
8241 else
8242 no_cache=1
8243 fi
8244
8245 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8246
e6cc62c6 8247fi;
1e6feb95
VZ
8248
8249 eval "$ac_cv_use_coldlg"
8250 if test "$no_cache" != 1; then
8251 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8252 fi
8253
8254 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8255 echo "$as_me:$LINENO: result: yes" >&5
8256echo "${ECHO_T}yes" >&6
1e6feb95 8257 else
e6cc62c6
VS
8258 echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6
1e6feb95 8260 fi
e6cc62c6 8261
1e6feb95 8262
5005acfe 8263 enablestring=
e6cc62c6
VS
8264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8265echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8266 no_cache=0
8267 # Check whether --enable-filedlg or --disable-filedlg was given.
8268if test "${enable_filedlg+set}" = set; then
8269 enableval="$enable_filedlg"
e6cc62c6 8270
1e6feb95
VZ
8271 if test "$enableval" = yes; then
8272 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8273 else
8274 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8275 fi
e6cc62c6 8276
1e6feb95 8277else
e6cc62c6 8278
1e6feb95
VZ
8279 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8280 if test "x$LINE" != x ; then
8281 eval "DEFAULT_$LINE"
8282 else
8283 no_cache=1
8284 fi
8285
8286 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8287
e6cc62c6 8288fi;
1e6feb95
VZ
8289
8290 eval "$ac_cv_use_filedlg"
8291 if test "$no_cache" != 1; then
8292 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8293 fi
8294
8295 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
1e6feb95 8298 else
e6cc62c6
VS
8299 echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
1e6feb95 8301 fi
e6cc62c6 8302
1e6feb95 8303
5005acfe 8304 enablestring=
e6cc62c6
VS
8305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8306echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8307 no_cache=0
69d27ff7
MB
8308 # Check whether --enable-finddlg or --disable-finddlg was given.
8309if test "${enable_finddlg+set}" = set; then
8310 enableval="$enable_finddlg"
e6cc62c6 8311
8db37e06 8312 if test "$enableval" = yes; then
69d27ff7 8313 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8314 else
69d27ff7 8315 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8316 fi
e6cc62c6 8317
8db37e06 8318else
e6cc62c6 8319
8db37e06
VZ
8320 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8321 if test "x$LINE" != x ; then
8322 eval "DEFAULT_$LINE"
8323 else
8324 no_cache=1
8325 fi
8326
69d27ff7 8327 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8328
e6cc62c6 8329fi;
8db37e06 8330
69d27ff7 8331 eval "$ac_cv_use_finddlg"
8db37e06 8332 if test "$no_cache" != 1; then
69d27ff7 8333 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8334 fi
8335
8336 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8337 echo "$as_me:$LINENO: result: yes" >&5
8338echo "${ECHO_T}yes" >&6
8db37e06 8339 else
e6cc62c6
VS
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
8db37e06 8342 fi
e6cc62c6 8343
8db37e06 8344
5005acfe 8345 enablestring=
e6cc62c6
VS
8346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8347echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8348 no_cache=0
8349 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8350if test "${enable_fontdlg+set}" = set; then
8351 enableval="$enable_fontdlg"
e6cc62c6 8352
1e6feb95
VZ
8353 if test "$enableval" = yes; then
8354 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8355 else
8356 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8357 fi
e6cc62c6 8358
1e6feb95 8359else
e6cc62c6 8360
1e6feb95
VZ
8361 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8369
e6cc62c6 8370fi;
1e6feb95
VZ
8371
8372 eval "$ac_cv_use_fontdlg"
8373 if test "$no_cache" != 1; then
8374 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8375 fi
8376
8377 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8378 echo "$as_me:$LINENO: result: yes" >&5
8379echo "${ECHO_T}yes" >&6
1e6feb95 8380 else
e6cc62c6
VS
8381 echo "$as_me:$LINENO: result: no" >&5
8382echo "${ECHO_T}no" >&6
1e6feb95 8383 fi
e6cc62c6 8384
1e6feb95 8385
5005acfe 8386 enablestring=
e6cc62c6
VS
8387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8388echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8389 no_cache=0
8390 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8391if test "${enable_dirdlg+set}" = set; then
8392 enableval="$enable_dirdlg"
e6cc62c6 8393
1e6feb95
VZ
8394 if test "$enableval" = yes; then
8395 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8396 else
8397 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8398 fi
e6cc62c6 8399
1e6feb95 8400else
e6cc62c6 8401
1e6feb95
VZ
8402 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
8409 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8410
e6cc62c6 8411fi;
1e6feb95
VZ
8412
8413 eval "$ac_cv_use_dirdlg"
10f2d63a 8414 if test "$no_cache" != 1; then
1e6feb95 8415 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8416 fi
8417
1e6feb95 8418 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8419 echo "$as_me:$LINENO: result: yes" >&5
8420echo "${ECHO_T}yes" >&6
10f2d63a 8421 else
e6cc62c6
VS
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
10f2d63a 8424 fi
e6cc62c6 8425
698dcdb6 8426
5005acfe 8427 enablestring=
e6cc62c6
VS
8428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8429echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8430 no_cache=0
1e6feb95
VZ
8431 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8432if test "${enable_msgdlg+set}" = set; then
8433 enableval="$enable_msgdlg"
e6cc62c6 8434
10f2d63a 8435 if test "$enableval" = yes; then
1e6feb95 8436 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8437 else
1e6feb95 8438 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8439 fi
e6cc62c6 8440
10f2d63a 8441else
e6cc62c6 8442
1e6feb95 8443 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
1e6feb95 8450 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8451
e6cc62c6 8452fi;
10f2d63a 8453
1e6feb95 8454 eval "$ac_cv_use_msgdlg"
10f2d63a 8455 if test "$no_cache" != 1; then
1e6feb95 8456 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8457 fi
8458
1e6feb95 8459 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8460 echo "$as_me:$LINENO: result: yes" >&5
8461echo "${ECHO_T}yes" >&6
10f2d63a 8462 else
e6cc62c6
VS
8463 echo "$as_me:$LINENO: result: no" >&5
8464echo "${ECHO_T}no" >&6
10f2d63a 8465 fi
e6cc62c6 8466
10f2d63a 8467
5005acfe 8468 enablestring=
e6cc62c6
VS
8469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8470echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8471 no_cache=0
1e6feb95
VZ
8472 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8473if test "${enable_numberdlg+set}" = set; then
8474 enableval="$enable_numberdlg"
e6cc62c6 8475
10f2d63a 8476 if test "$enableval" = yes; then
1e6feb95 8477 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8478 else
1e6feb95 8479 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8480 fi
e6cc62c6 8481
10f2d63a 8482else
e6cc62c6 8483
1e6feb95 8484 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8485 if test "x$LINE" != x ; then
8486 eval "DEFAULT_$LINE"
8487 else
8488 no_cache=1
8489 fi
8490
1e6feb95 8491 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8492
e6cc62c6 8493fi;
10f2d63a 8494
1e6feb95 8495 eval "$ac_cv_use_numberdlg"
10f2d63a 8496 if test "$no_cache" != 1; then
1e6feb95 8497 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8498 fi
8499
1e6feb95 8500 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
10f2d63a 8503 else
e6cc62c6
VS
8504 echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6
10f2d63a 8506 fi
e6cc62c6 8507
10f2d63a 8508
5005acfe 8509 enablestring=
e6cc62c6
VS
8510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8511echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8512 no_cache=0
8513 # Check whether --enable-splash or --disable-splash was given.
8514if test "${enable_splash+set}" = set; then
8515 enableval="$enable_splash"
e6cc62c6 8516
cbca9943
VZ
8517 if test "$enableval" = yes; then
8518 ac_cv_use_splash='wxUSE_SPLASH=yes'
8519 else
8520 ac_cv_use_splash='wxUSE_SPLASH=no'
8521 fi
e6cc62c6 8522
cbca9943 8523else
e6cc62c6 8524
cbca9943
VZ
8525 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8526 if test "x$LINE" != x ; then
8527 eval "DEFAULT_$LINE"
8528 else
8529 no_cache=1
8530 fi
8531
8532 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8533
e6cc62c6 8534fi;
cbca9943
VZ
8535
8536 eval "$ac_cv_use_splash"
8537 if test "$no_cache" != 1; then
8538 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8539 fi
8540
8541 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8542 echo "$as_me:$LINENO: result: yes" >&5
8543echo "${ECHO_T}yes" >&6
cbca9943 8544 else
e6cc62c6
VS
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
cbca9943 8547 fi
e6cc62c6 8548
cbca9943 8549
5005acfe 8550 enablestring=
e6cc62c6
VS
8551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8552echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8553 no_cache=0
8554 # Check whether --enable-textdlg or --disable-textdlg was given.
8555if test "${enable_textdlg+set}" = set; then
8556 enableval="$enable_textdlg"
e6cc62c6 8557
10f2d63a
VZ
8558 if test "$enableval" = yes; then
8559 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8560 else
8561 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8562 fi
e6cc62c6 8563
10f2d63a 8564else
e6cc62c6 8565
10f2d63a
VZ
8566 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8567 if test "x$LINE" != x ; then
8568 eval "DEFAULT_$LINE"
8569 else
8570 no_cache=1
8571 fi
8572
8573 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8574
e6cc62c6 8575fi;
10f2d63a
VZ
8576
8577 eval "$ac_cv_use_textdlg"
8578 if test "$no_cache" != 1; then
8579 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8580 fi
8581
8582 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8583 echo "$as_me:$LINENO: result: yes" >&5
8584echo "${ECHO_T}yes" >&6
10f2d63a 8585 else
e6cc62c6
VS
8586 echo "$as_me:$LINENO: result: no" >&5
8587echo "${ECHO_T}no" >&6
10f2d63a 8588 fi
e6cc62c6 8589
10f2d63a 8590
5005acfe 8591 enablestring=
e6cc62c6
VS
8592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8593echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8594 no_cache=0
8595 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8596if test "${enable_tipdlg+set}" = set; then
8597 enableval="$enable_tipdlg"
e6cc62c6 8598
10f2d63a
VZ
8599 if test "$enableval" = yes; then
8600 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8601 else
8602 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8603 fi
e6cc62c6 8604
10f2d63a 8605else
e6cc62c6 8606
10f2d63a
VZ
8607 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8608 if test "x$LINE" != x ; then
8609 eval "DEFAULT_$LINE"
8610 else
8611 no_cache=1
8612 fi
8613
8614 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8615
e6cc62c6 8616fi;
10f2d63a
VZ
8617
8618 eval "$ac_cv_use_tipdlg"
8619 if test "$no_cache" != 1; then
8620 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8621 fi
8622
8623 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
10f2d63a 8626 else
e6cc62c6
VS
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
10f2d63a 8629 fi
e6cc62c6 8630
10f2d63a 8631
5005acfe 8632 enablestring=
e6cc62c6
VS
8633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8634echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8635 no_cache=0
8636 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8637if test "${enable_progressdlg+set}" = set; then
8638 enableval="$enable_progressdlg"
e6cc62c6 8639
10f2d63a
VZ
8640 if test "$enableval" = yes; then
8641 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8642 else
8643 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8644 fi
e6cc62c6 8645
10f2d63a 8646else
e6cc62c6 8647
10f2d63a
VZ
8648 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8649 if test "x$LINE" != x ; then
8650 eval "DEFAULT_$LINE"
8651 else
8652 no_cache=1
8653 fi
8654
8655 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8656
e6cc62c6 8657fi;
10f2d63a
VZ
8658
8659 eval "$ac_cv_use_progressdlg"
8660 if test "$no_cache" != 1; then
8661 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8662 fi
8663
8664 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8665 echo "$as_me:$LINENO: result: yes" >&5
8666echo "${ECHO_T}yes" >&6
10f2d63a 8667 else
e6cc62c6
VS
8668 echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
10f2d63a 8670 fi
e6cc62c6 8671
10f2d63a 8672
5005acfe 8673 enablestring=
e6cc62c6
VS
8674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8675echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8676 no_cache=0
8677 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8678if test "${enable_wizarddlg+set}" = set; then
8679 enableval="$enable_wizarddlg"
e6cc62c6 8680
b1f5d087
VZ
8681 if test "$enableval" = yes; then
8682 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8683 else
8684 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8685 fi
e6cc62c6 8686
b1f5d087 8687else
e6cc62c6 8688
b1f5d087
VZ
8689 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8690 if test "x$LINE" != x ; then
8691 eval "DEFAULT_$LINE"
8692 else
8693 no_cache=1
8694 fi
8695
8696 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8697
e6cc62c6 8698fi;
b1f5d087
VZ
8699
8700 eval "$ac_cv_use_wizarddlg"
8701 if test "$no_cache" != 1; then
8702 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8703 fi
8704
8705 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8706 echo "$as_me:$LINENO: result: yes" >&5
8707echo "${ECHO_T}yes" >&6
b1f5d087 8708 else
e6cc62c6
VS
8709 echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6
b1f5d087 8711 fi
e6cc62c6 8712
8284b0c5
MB
8713
8714
52127426 8715
5005acfe 8716 enablestring=
e6cc62c6
VS
8717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8718echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8719 no_cache=0
8720 # Check whether --enable-menus or --disable-menus was given.
8721if test "${enable_menus+set}" = set; then
8722 enableval="$enable_menus"
e6cc62c6 8723
1e6feb95
VZ
8724 if test "$enableval" = yes; then
8725 ac_cv_use_menus='wxUSE_MENUS=yes'
8726 else
8727 ac_cv_use_menus='wxUSE_MENUS=no'
8728 fi
e6cc62c6 8729
1e6feb95 8730else
e6cc62c6 8731
1e6feb95
VZ
8732 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8733 if test "x$LINE" != x ; then
8734 eval "DEFAULT_$LINE"
8735 else
8736 no_cache=1
8737 fi
8738
8739 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8740
e6cc62c6 8741fi;
1e6feb95
VZ
8742
8743 eval "$ac_cv_use_menus"
8744 if test "$no_cache" != 1; then
8745 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8746 fi
8747
8748 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8749 echo "$as_me:$LINENO: result: yes" >&5
8750echo "${ECHO_T}yes" >&6
1e6feb95 8751 else
e6cc62c6
VS
8752 echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6
1e6feb95 8754 fi
e6cc62c6 8755
1e6feb95 8756
5005acfe 8757 enablestring=
e6cc62c6
VS
8758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8759echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8760 no_cache=0
8761 # Check whether --enable-miniframe or --disable-miniframe was given.
8762if test "${enable_miniframe+set}" = set; then
8763 enableval="$enable_miniframe"
e6cc62c6 8764
10f2d63a
VZ
8765 if test "$enableval" = yes; then
8766 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8767 else
8768 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8769 fi
e6cc62c6 8770
10f2d63a 8771else
e6cc62c6 8772
10f2d63a
VZ
8773 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8774 if test "x$LINE" != x ; then
8775 eval "DEFAULT_$LINE"
8776 else
8777 no_cache=1
8778 fi
8779
8780 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8781
e6cc62c6 8782fi;
10f2d63a
VZ
8783
8784 eval "$ac_cv_use_miniframe"
8785 if test "$no_cache" != 1; then
8786 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8787 fi
8788
8789 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8790 echo "$as_me:$LINENO: result: yes" >&5
8791echo "${ECHO_T}yes" >&6
10f2d63a 8792 else
e6cc62c6
VS
8793 echo "$as_me:$LINENO: result: no" >&5
8794echo "${ECHO_T}no" >&6
10f2d63a 8795 fi
e6cc62c6 8796
10f2d63a 8797
5005acfe 8798 enablestring=
e6cc62c6
VS
8799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8800echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8801 no_cache=0
8802 # Check whether --enable-tooltips or --disable-tooltips was given.
8803if test "${enable_tooltips+set}" = set; then
8804 enableval="$enable_tooltips"
e6cc62c6 8805
10f2d63a
VZ
8806 if test "$enableval" = yes; then
8807 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8808 else
8809 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8810 fi
e6cc62c6 8811
10f2d63a 8812else
e6cc62c6 8813
10f2d63a
VZ
8814 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8815 if test "x$LINE" != x ; then
8816 eval "DEFAULT_$LINE"
8817 else
8818 no_cache=1
8819 fi
8820
8821 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8822
e6cc62c6 8823fi;
10f2d63a
VZ
8824
8825 eval "$ac_cv_use_tooltips"
8826 if test "$no_cache" != 1; then
8827 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8828 fi
8829
8830 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8831 echo "$as_me:$LINENO: result: yes" >&5
8832echo "${ECHO_T}yes" >&6
10f2d63a 8833 else
e6cc62c6
VS
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
10f2d63a 8836 fi
e6cc62c6 8837
10f2d63a 8838
5005acfe 8839 enablestring=
e6cc62c6
VS
8840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8841echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8842 no_cache=0
8843 # Check whether --enable-splines or --disable-splines was given.
8844if test "${enable_splines+set}" = set; then
8845 enableval="$enable_splines"
e6cc62c6 8846
10f2d63a
VZ
8847 if test "$enableval" = yes; then
8848 ac_cv_use_splines='wxUSE_SPLINES=yes'
8849 else
8850 ac_cv_use_splines='wxUSE_SPLINES=no'
8851 fi
e6cc62c6 8852
10f2d63a 8853else
e6cc62c6 8854
10f2d63a
VZ
8855 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8856 if test "x$LINE" != x ; then
8857 eval "DEFAULT_$LINE"
8858 else
8859 no_cache=1
8860 fi
8861
8862 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8863
e6cc62c6 8864fi;
10f2d63a
VZ
8865
8866 eval "$ac_cv_use_splines"
8867 if test "$no_cache" != 1; then
8868 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8869 fi
8870
8871 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8872 echo "$as_me:$LINENO: result: yes" >&5
8873echo "${ECHO_T}yes" >&6
10f2d63a 8874 else
e6cc62c6
VS
8875 echo "$as_me:$LINENO: result: no" >&5
8876echo "${ECHO_T}no" >&6
10f2d63a 8877 fi
e6cc62c6 8878
10f2d63a 8879
5005acfe 8880 enablestring=
e6cc62c6
VS
8881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8882echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8883 no_cache=0
8884 # Check whether --enable-validators or --disable-validators was given.
8885if test "${enable_validators+set}" = set; then
8886 enableval="$enable_validators"
e6cc62c6 8887
10f2d63a
VZ
8888 if test "$enableval" = yes; then
8889 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8890 else
8891 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8892 fi
e6cc62c6 8893
10f2d63a 8894else
e6cc62c6 8895
10f2d63a
VZ
8896 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8897 if test "x$LINE" != x ; then
8898 eval "DEFAULT_$LINE"
8899 else
8900 no_cache=1
8901 fi
8902
8903 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8904
e6cc62c6 8905fi;
10f2d63a
VZ
8906
8907 eval "$ac_cv_use_validators"
8908 if test "$no_cache" != 1; then
8909 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8910 fi
8911
8912 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8913 echo "$as_me:$LINENO: result: yes" >&5
8914echo "${ECHO_T}yes" >&6
10f2d63a 8915 else
e6cc62c6
VS
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
10f2d63a 8918 fi
e6cc62c6 8919
10f2d63a 8920
5005acfe 8921 enablestring=
e6cc62c6
VS
8922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8923echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8924 no_cache=0
8925 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8926if test "${enable_busyinfo+set}" = set; then
8927 enableval="$enable_busyinfo"
e6cc62c6 8928
10f2d63a
VZ
8929 if test "$enableval" = yes; then
8930 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8931 else
8932 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8933 fi
e6cc62c6 8934
10f2d63a 8935else
e6cc62c6 8936
10f2d63a
VZ
8937 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8938 if test "x$LINE" != x ; then
8939 eval "DEFAULT_$LINE"
8940 else
8941 no_cache=1
8942 fi
8943
8944 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8945
e6cc62c6 8946fi;
10f2d63a
VZ
8947
8948 eval "$ac_cv_use_busyinfo"
8949 if test "$no_cache" != 1; then
8950 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8951 fi
8952
8953 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8954 echo "$as_me:$LINENO: result: yes" >&5
8955echo "${ECHO_T}yes" >&6
10f2d63a 8956 else
e6cc62c6
VS
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
10f2d63a 8959 fi
e6cc62c6 8960
10f2d63a 8961
5005acfe 8962 enablestring=
e6cc62c6
VS
8963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8964echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8965 no_cache=0
8966 # Check whether --enable-joystick or --disable-joystick was given.
8967if test "${enable_joystick+set}" = set; then
8968 enableval="$enable_joystick"
e6cc62c6 8969
f6bcfd97
BP
8970 if test "$enableval" = yes; then
8971 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8972 else
8973 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8974 fi
e6cc62c6 8975
f6bcfd97 8976else
e6cc62c6 8977
f6bcfd97
BP
8978 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8979 if test "x$LINE" != x ; then
8980 eval "DEFAULT_$LINE"
8981 else
8982 no_cache=1
8983 fi
8984
8985 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8986
e6cc62c6 8987fi;
f6bcfd97
BP
8988
8989 eval "$ac_cv_use_joystick"
8990 if test "$no_cache" != 1; then
8991 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8992 fi
8993
8994 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8995 echo "$as_me:$LINENO: result: yes" >&5
8996echo "${ECHO_T}yes" >&6
f6bcfd97 8997 else
e6cc62c6
VS
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
f6bcfd97 9000 fi
e6cc62c6 9001
698dcdb6 9002
5005acfe 9003 enablestring=
e6cc62c6
VS
9004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9005echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9006 no_cache=0
9007 # Check whether --enable-metafile or --disable-metafile was given.
9008if test "${enable_metafile+set}" = set; then
9009 enableval="$enable_metafile"
e6cc62c6 9010
1e6feb95
VZ
9011 if test "$enableval" = yes; then
9012 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9013 else
9014 ac_cv_use_metafile='wxUSE_METAFILE=no'
9015 fi
e6cc62c6 9016
1e6feb95 9017else
e6cc62c6 9018
1e6feb95
VZ
9019 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9020 if test "x$LINE" != x ; then
9021 eval "DEFAULT_$LINE"
9022 else
9023 no_cache=1
9024 fi
9025
9026 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9027
e6cc62c6 9028fi;
1e6feb95
VZ
9029
9030 eval "$ac_cv_use_metafile"
9031 if test "$no_cache" != 1; then
9032 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9033 fi
9034
9035 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9036 echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
1e6feb95 9038 else
e6cc62c6
VS
9039 echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6
1e6feb95 9041 fi
e6cc62c6 9042
1e6feb95 9043
5005acfe 9044 enablestring=
e6cc62c6
VS
9045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9046echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9047 no_cache=0
9048 # Check whether --enable-dragimage or --disable-dragimage was given.
9049if test "${enable_dragimage+set}" = set; then
9050 enableval="$enable_dragimage"
e6cc62c6 9051
24fd6d87
VZ
9052 if test "$enableval" = yes; then
9053 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9054 else
9055 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9056 fi
e6cc62c6 9057
24fd6d87 9058else
e6cc62c6 9059
24fd6d87
VZ
9060 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9061 if test "x$LINE" != x ; then
9062 eval "DEFAULT_$LINE"
9063 else
9064 no_cache=1
9065 fi
9066
9067 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9068
e6cc62c6 9069fi;
24fd6d87
VZ
9070
9071 eval "$ac_cv_use_dragimage"
9072 if test "$no_cache" != 1; then
9073 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9074 fi
9075
9076 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9077 echo "$as_me:$LINENO: result: yes" >&5
9078echo "${ECHO_T}yes" >&6
24fd6d87 9079 else
e6cc62c6
VS
9080 echo "$as_me:$LINENO: result: no" >&5
9081echo "${ECHO_T}no" >&6
24fd6d87 9082 fi
e6cc62c6 9083
52127426 9084
7bb2947d 9085 enablestring=
e6cc62c6
VS
9086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9087echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9088 no_cache=0
9089 # Check whether --enable-accessibility or --disable-accessibility was given.
9090if test "${enable_accessibility+set}" = set; then
9091 enableval="$enable_accessibility"
e6cc62c6 9092
7bb2947d
MB
9093 if test "$enableval" = yes; then
9094 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9095 else
9096 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9097 fi
e6cc62c6 9098
7bb2947d 9099else
e6cc62c6 9100
7bb2947d
MB
9101 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9102 if test "x$LINE" != x ; then
9103 eval "DEFAULT_$LINE"
9104 else
9105 no_cache=1
9106 fi
9107
9108 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9109
e6cc62c6 9110fi;
7bb2947d
MB
9111
9112 eval "$ac_cv_use_accessibility"
9113 if test "$no_cache" != 1; then
9114 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9115 fi
9116
9117 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9118 echo "$as_me:$LINENO: result: yes" >&5
9119echo "${ECHO_T}yes" >&6
7bb2947d 9120 else
e6cc62c6
VS
9121 echo "$as_me:$LINENO: result: no" >&5
9122echo "${ECHO_T}no" >&6
7bb2947d 9123 fi
e6cc62c6 9124
7bb2947d 9125
8284b0c5
MB
9126
9127
5005acfe 9128 enablestring=
e6cc62c6
VS
9129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9130echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9131 no_cache=0
9132 # Check whether --enable-palette or --disable-palette was given.
9133if test "${enable_palette+set}" = set; then
9134 enableval="$enable_palette"
e6cc62c6 9135
edae8572
VZ
9136 if test "$enableval" = yes; then
9137 ac_cv_use_palette='wxUSE_PALETTE=yes'
9138 else
9139 ac_cv_use_palette='wxUSE_PALETTE=no'
9140 fi
e6cc62c6 9141
edae8572 9142else
e6cc62c6 9143
edae8572
VZ
9144 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9145 if test "x$LINE" != x ; then
9146 eval "DEFAULT_$LINE"
9147 else
9148 no_cache=1
9149 fi
9150
9151 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9152
e6cc62c6 9153fi;
edae8572
VZ
9154
9155 eval "$ac_cv_use_palette"
9156 if test "$no_cache" != 1; then
9157 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9158 fi
9159
9160 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9161 echo "$as_me:$LINENO: result: yes" >&5
9162echo "${ECHO_T}yes" >&6
edae8572 9163 else
e6cc62c6
VS
9164 echo "$as_me:$LINENO: result: no" >&5
9165echo "${ECHO_T}no" >&6
edae8572 9166 fi
e6cc62c6 9167
edae8572 9168
5005acfe 9169 enablestring=
e6cc62c6
VS
9170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9171echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9172 no_cache=0
9173 # Check whether --enable-image or --disable-image was given.
9174if test "${enable_image+set}" = set; then
9175 enableval="$enable_image"
e6cc62c6 9176
0046ff7c
VS
9177 if test "$enableval" = yes; then
9178 ac_cv_use_image='wxUSE_IMAGE=yes'
9179 else
9180 ac_cv_use_image='wxUSE_IMAGE=no'
9181 fi
e6cc62c6 9182
0046ff7c 9183else
e6cc62c6 9184
0046ff7c
VS
9185 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9186 if test "x$LINE" != x ; then
9187 eval "DEFAULT_$LINE"
9188 else
9189 no_cache=1
9190 fi
9191
9192 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9193
e6cc62c6 9194fi;
0046ff7c
VS
9195
9196 eval "$ac_cv_use_image"
9197 if test "$no_cache" != 1; then
9198 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9199 fi
9200
9201 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9202 echo "$as_me:$LINENO: result: yes" >&5
9203echo "${ECHO_T}yes" >&6
0046ff7c 9204 else
e6cc62c6
VS
9205 echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6
0046ff7c 9207 fi
e6cc62c6 9208
0046ff7c 9209
5005acfe 9210 enablestring=
e6cc62c6
VS
9211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9212echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9213 no_cache=0
9214 # Check whether --enable-gif or --disable-gif was given.
9215if test "${enable_gif+set}" = set; then
9216 enableval="$enable_gif"
e6cc62c6 9217
10f2d63a
VZ
9218 if test "$enableval" = yes; then
9219 ac_cv_use_gif='wxUSE_GIF=yes'
9220 else
9221 ac_cv_use_gif='wxUSE_GIF=no'
9222 fi
e6cc62c6 9223
10f2d63a 9224else
e6cc62c6 9225
10f2d63a
VZ
9226 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9227 if test "x$LINE" != x ; then
9228 eval "DEFAULT_$LINE"
9229 else
9230 no_cache=1
9231 fi
9232
9233 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9234
e6cc62c6 9235fi;
10f2d63a
VZ
9236
9237 eval "$ac_cv_use_gif"
9238 if test "$no_cache" != 1; then
9239 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9240 fi
9241
9242 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9243 echo "$as_me:$LINENO: result: yes" >&5
9244echo "${ECHO_T}yes" >&6
10f2d63a 9245 else
e6cc62c6
VS
9246 echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6
10f2d63a 9248 fi
e6cc62c6 9249
10f2d63a 9250
5005acfe 9251 enablestring=
e6cc62c6
VS
9252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9253echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9254 no_cache=0
9255 # Check whether --enable-pcx or --disable-pcx was given.
9256if test "${enable_pcx+set}" = set; then
9257 enableval="$enable_pcx"
e6cc62c6 9258
10f2d63a
VZ
9259 if test "$enableval" = yes; then
9260 ac_cv_use_pcx='wxUSE_PCX=yes'
9261 else
9262 ac_cv_use_pcx='wxUSE_PCX=no'
9263 fi
e6cc62c6 9264
10f2d63a 9265else
e6cc62c6 9266
10f2d63a
VZ
9267 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9268 if test "x$LINE" != x ; then
9269 eval "DEFAULT_$LINE"
9270 else
9271 no_cache=1
9272 fi
9273
9274 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9275
e6cc62c6 9276fi;
10f2d63a
VZ
9277
9278 eval "$ac_cv_use_pcx"
9279 if test "$no_cache" != 1; then
9280 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9281 fi
9282
9283 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9284 echo "$as_me:$LINENO: result: yes" >&5
9285echo "${ECHO_T}yes" >&6
10f2d63a 9286 else
e6cc62c6
VS
9287 echo "$as_me:$LINENO: result: no" >&5
9288echo "${ECHO_T}no" >&6
10f2d63a 9289 fi
e6cc62c6 9290
10f2d63a 9291
5005acfe 9292 enablestring=
e6cc62c6
VS
9293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9294echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9295 no_cache=0
9296 # Check whether --enable-iff or --disable-iff was given.
9297if test "${enable_iff+set}" = set; then
9298 enableval="$enable_iff"
e6cc62c6 9299
4b6b4dfc
RR
9300 if test "$enableval" = yes; then
9301 ac_cv_use_iff='wxUSE_IFF=yes'
9302 else
9303 ac_cv_use_iff='wxUSE_IFF=no'
9304 fi
e6cc62c6 9305
4b6b4dfc 9306else
e6cc62c6 9307
4b6b4dfc
RR
9308 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9309 if test "x$LINE" != x ; then
9310 eval "DEFAULT_$LINE"
9311 else
9312 no_cache=1
9313 fi
9314
9315 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9316
e6cc62c6 9317fi;
4b6b4dfc
RR
9318
9319 eval "$ac_cv_use_iff"
9320 if test "$no_cache" != 1; then
9321 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9322 fi
9323
9324 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9325 echo "$as_me:$LINENO: result: yes" >&5
9326echo "${ECHO_T}yes" >&6
4b6b4dfc 9327 else
e6cc62c6
VS
9328 echo "$as_me:$LINENO: result: no" >&5
9329echo "${ECHO_T}no" >&6
4b6b4dfc 9330 fi
e6cc62c6 9331
4b6b4dfc 9332
5005acfe 9333 enablestring=
e6cc62c6
VS
9334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9335echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9336 no_cache=0
9337 # Check whether --enable-pnm or --disable-pnm was given.
9338if test "${enable_pnm+set}" = set; then
9339 enableval="$enable_pnm"
e6cc62c6 9340
10f2d63a
VZ
9341 if test "$enableval" = yes; then
9342 ac_cv_use_pnm='wxUSE_PNM=yes'
9343 else
9344 ac_cv_use_pnm='wxUSE_PNM=no'
9345 fi
e6cc62c6 9346
10f2d63a 9347else
e6cc62c6 9348
10f2d63a
VZ
9349 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9350 if test "x$LINE" != x ; then
9351 eval "DEFAULT_$LINE"
9352 else
9353 no_cache=1
9354 fi
9355
9356 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9357
e6cc62c6 9358fi;
10f2d63a
VZ
9359
9360 eval "$ac_cv_use_pnm"
9361 if test "$no_cache" != 1; then
9362 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9363 fi
9364
9365 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9366 echo "$as_me:$LINENO: result: yes" >&5
9367echo "${ECHO_T}yes" >&6
10f2d63a 9368 else
e6cc62c6
VS
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
10f2d63a 9371 fi
e6cc62c6 9372
10f2d63a 9373
5005acfe 9374 enablestring=
e6cc62c6
VS
9375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9376echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9377 no_cache=0
69d27ff7
MB
9378 # Check whether --enable-xpm or --disable-xpm was given.
9379if test "${enable_xpm+set}" = set; then
9380 enableval="$enable_xpm"
e6cc62c6 9381
0046ff7c 9382 if test "$enableval" = yes; then
69d27ff7 9383 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9384 else
69d27ff7 9385 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9386 fi
e6cc62c6 9387
0046ff7c 9388else
e6cc62c6 9389
0046ff7c
VS
9390 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9391 if test "x$LINE" != x ; then
9392 eval "DEFAULT_$LINE"
9393 else
9394 no_cache=1
9395 fi
9396
69d27ff7 9397 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9398
e6cc62c6 9399fi;
0046ff7c 9400
69d27ff7 9401 eval "$ac_cv_use_xpm"
0046ff7c 9402 if test "$no_cache" != 1; then
69d27ff7 9403 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9404 fi
9405
9406 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9407 echo "$as_me:$LINENO: result: yes" >&5
9408echo "${ECHO_T}yes" >&6
0046ff7c 9409 else
e6cc62c6
VS
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
0046ff7c 9412 fi
e6cc62c6 9413
0046ff7c 9414
5005acfe 9415 enablestring=
e6cc62c6
VS
9416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9417echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9418 no_cache=0
c7206e64
VS
9419 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9420if test "${enable_ico_cur+set}" = set; then
9421 enableval="$enable_ico_cur"
e6cc62c6 9422
658974ae 9423 if test "$enableval" = yes; then
c7206e64 9424 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9425 else
c7206e64 9426 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9427 fi
e6cc62c6 9428
658974ae 9429else
e6cc62c6 9430
658974ae
VS
9431 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9432 if test "x$LINE" != x ; then
9433 eval "DEFAULT_$LINE"
9434 else
9435 no_cache=1
9436 fi
9437
c7206e64 9438 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9439
e6cc62c6 9440fi;
658974ae 9441
c7206e64 9442 eval "$ac_cv_use_ico_cur"
658974ae 9443 if test "$no_cache" != 1; then
c7206e64 9444 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9445 fi
9446
9447 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9448 echo "$as_me:$LINENO: result: yes" >&5
9449echo "${ECHO_T}yes" >&6
658974ae 9450 else
e6cc62c6
VS
9451 echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
658974ae 9453 fi
e6cc62c6 9454
658974ae 9455
b12915c1
VZ
9456fi
9457
029b47ad
VS
9458
9459
9460 enablestring=
9461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9462echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9463 no_cache=0
9464 # Check whether --enable-official_build or --disable-official_build was given.
9465if test "${enable_official_build+set}" = set; then
9466 enableval="$enable_official_build"
9467
9468 if test "$enableval" = yes; then
9469 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9470 else
9471 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9472 fi
9473
9474else
9475
9476 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9477 if test "x$LINE" != x ; then
9478 eval "DEFAULT_$LINE"
9479 else
9480 no_cache=1
9481 fi
9482
9483 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9484
9485fi;
9486
9487 eval "$ac_cv_use_official_build"
9488 if test "$no_cache" != 1; then
9489 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9490 fi
9491
9492 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9493 echo "$as_me:$LINENO: result: yes" >&5
9494echo "${ECHO_T}yes" >&6
9495 else
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498 fi
9499
9500# Check whether --enable-vendor or --disable-vendor was given.
9501if test "${enable_vendor+set}" = set; then
9502 enableval="$enable_vendor"
9503 VENDOR="$enableval"
9504fi;
9505if test "x$VENDOR" = "x"; then
9506 VENDOR="custom"
9507fi
9508
d558c907
VS
9509case "${host}" in
9510 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9511 PATH_IFS=';'
9512 LEX_STEM="lexyy"
d558c907
VS
9513 ;;
9514 *)
9515 PATH_IFS=':'
9516 LEX_STEM="lex.yy"
9517 ;;
9518esac
9519
8284b0c5
MB
9520
9521
10f2d63a
VZ
9522 echo "saving argument cache $wx_arg_cache_file"
9523 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9524
8284b0c5 9525
e6cc62c6
VS
9526
9527echo "$as_me:$LINENO: checking for toolkit" >&5
9528echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9529
9530# In Wine, we need to default to MSW, not GTK or MOTIF
9531if test "$wxUSE_WINE" = "yes"; then
9532 DEFAULT_DEFAULT_wxUSE_GTK=0
9533 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9534 DEFAULT_DEFAULT_wxUSE_MSW=1
9535fi
10f2d63a
VZ
9536
9537if test "$wxUSE_GUI" = "yes"; then
9538
3a922bb4 9539 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9540 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9541echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9542 { (exit 1); exit 1; }; }
3a922bb4 9543 fi
b12915c1 9544
3a922bb4
RL
9545 if test "$TOOLKIT_GIVEN" = 1; then
9546 for toolkit in `echo $ALL_TOOLKITS`; do
9547 var=wxUSE_$toolkit
9548 eval "value=\$${var}"
9549 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9550 done
10f2d63a 9551 else
3a922bb4
RL
9552 for toolkit in `echo $ALL_TOOLKITS`; do
9553 if test "$has_toolkit_in_cache" != 1; then
9554 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9555 else
9556 var=DEFAULT_wxUSE_$toolkit
9557 fi
9558 eval "wxUSE_$toolkit=\$${var}"
9559 done
10f2d63a 9560 fi
10f2d63a 9561
ac0c4cc3
DE
9562 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9563 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9564 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9565
d558c907 9566 case "${host}" in
6fa882bd 9567 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9568 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9569 esac
10f2d63a 9570
3a922bb4
RL
9571 case "$NUM_TOOLKITS" in
9572 1)
9573 ;;
9574 0)
e6cc62c6
VS
9575 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9576echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9577 { (exit 1); exit 1; }; }
3a922bb4
RL
9578 ;;
9579 *)
e6cc62c6
VS
9580 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9581echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9582 { (exit 1); exit 1; }; }
3a922bb4 9583 esac
10f2d63a 9584
3a922bb4
RL
9585 for toolkit in `echo $ALL_TOOLKITS`; do
9586 var=wxUSE_$toolkit
9587 eval "value=\$${var}"
9588 if test "x$value" != x; then
9589 cache_var=CACHE_$toolkit
9590 eval "cache=\$${cache_var}"
9591 if test "$cache" = 1; then
9592 echo "$var=$value" >> ${wx_arg_cache_file}
9593 fi
9594 if test "$value" = 1; then
9595 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9596 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9597echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9598 fi
9599 fi
9600 done
10f2d63a 9601else
9de9b8f0
VZ
9602 if test "x$host_alias" != "x"; then
9603 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9604echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9605 else
9606 echo "$as_me:$LINENO: result: base only" >&5
9607echo "${ECHO_T}base only" >&6
9608 fi
10f2d63a
VZ
9609fi
9610
43d99b6d
VS
9611wants_win32=0
9612doesnt_want_win32=0
17234b26
MB
9613case "${host}" in
9614 *-*-cygwin*)
9615 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9616 wants_win32=1
9617 else
9618 doesnt_want_win32=1
17234b26
MB
9619 fi
9620 ;;
9621 *-*-mingw*)
43d99b6d 9622 wants_win32=1
17234b26
MB
9623 ;;
9624esac
9625
89e6bf6d
VZ
9626if test "$wxUSE_WINE" = "yes"; then
9627 wants_win32=1
9628 CC=winegcc
9629 CXX=wineg++
9630 RESCOMP=wrc
9631fi
9632
43d99b6d 9633if test "$wants_win32" = 1 ; then
17234b26
MB
9634 USE_UNIX=0
9635 USE_WIN32=1
e6cc62c6 9636 cat >>confdefs.h <<\_ACEOF
17234b26 9637#define __WIN32__ 1
e6cc62c6 9638_ACEOF
17234b26 9639
e6cc62c6 9640 cat >>confdefs.h <<\_ACEOF
17234b26 9641#define __WIN95__ 1
e6cc62c6 9642_ACEOF
17234b26 9643
e6cc62c6 9644 cat >>confdefs.h <<\_ACEOF
17234b26 9645#define __WINDOWS__ 1
e6cc62c6 9646_ACEOF
17234b26 9647
e6cc62c6 9648 cat >>confdefs.h <<\_ACEOF
17234b26 9649#define __GNUWIN32__ 1
e6cc62c6 9650_ACEOF
17234b26 9651
e6cc62c6 9652 cat >>confdefs.h <<\_ACEOF
17234b26 9653#define STRICT 1
e6cc62c6 9654_ACEOF
17234b26 9655
e6cc62c6 9656 cat >>confdefs.h <<\_ACEOF
17234b26 9657#define WINVER 0x0400
e6cc62c6 9658_ACEOF
17234b26 9659
43d99b6d
VS
9660fi
9661if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9662 USE_UNIX=1
9663 USE_WIN32=0
9664fi
9665
9666if test "$USE_UNIX" = 1 ; then
9667 wxUSE_UNIX=yes
e6cc62c6 9668 cat >>confdefs.h <<\_ACEOF
17234b26 9669#define __UNIX__ 1
e6cc62c6 9670_ACEOF
17234b26
MB
9671
9672fi
9673
8284b0c5 9674
e6cc62c6 9675cat >confcache <<\_ACEOF
10f2d63a
VZ
9676# This file is a shell script that caches the results of configure
9677# tests run on this system so they can be shared between configure
e6cc62c6
VS
9678# scripts and configure runs, see configure's option --config-cache.
9679# It is not useful on other systems. If it contains results you don't
9680# want to keep, you may remove or edit it.
10f2d63a 9681#
e6cc62c6
VS
9682# config.status only pays attention to the cache file if you give it
9683# the --recheck option to rerun configure.
10f2d63a 9684#
e6cc62c6
VS
9685# `ac_cv_env_foo' variables (set or unset) will be overridden when
9686# loading this file, other *unset* `ac_cv_foo' will be assigned the
9687# following values.
9688
9689_ACEOF
9690
10f2d63a
VZ
9691# The following way of writing the cache mishandles newlines in values,
9692# but we know of no workaround that is simple, portable, and efficient.
9693# So, don't put newlines in cache variables' values.
9694# Ultrix sh set writes to stderr and can't be redirected directly,
9695# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9696{
9697 (set) 2>&1 |
9698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9699 *ac_space=\ *)
9700 # `set' does not quote correctly, so add quotes (double-quote
9701 # substitution turns \\\\ into \\, and sed turns \\ into \).
9702 sed -n \
9703 "s/'/'\\\\''/g;
9704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9705 ;;
9706 *)
9707 # `set' quotes correctly as required by POSIX, so do not add quotes.
9708 sed -n \
9709 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9710 ;;
9711 esac;
9712} |
9713 sed '
9714 t clear
9715 : clear
9716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9717 t end
9718 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9719 : end' >>confcache
9720if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9721 if test -w $cache_file; then
e6cc62c6
VS
9722 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9723 cat confcache >$cache_file
10f2d63a
VZ
9724 else
9725 echo "not updating unwritable cache $cache_file"
9726 fi
9727fi
9728rm -f confcache
9729
e59890c3 9730if test "$build" != "$host" ; then
9d353d4a 9731 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9732 CC=$host_alias-gcc
9733 CXX=$host_alias-c++
9734 AR=$host_alias-ar
9735 RANLIB=$host_alias-ranlib
9736 DLLTOOL=$host_alias-dlltool
9737 RESCOMP=$host_alias-windres
9738 LD=$host_alias-ld
9739 NM=$host_alias-nm
9740 STRIP=$host_alias-strip
9741 else
e6cc62c6
VS
9742 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9743echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9744 { (exit 1); exit 1; }; }
3a922bb4 9745 fi
10f2d63a
VZ
9746fi
9747
ec603395 9748CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9749ac_ext=c
9750ac_cpp='$CPP $CPPFLAGS'
9751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753ac_compiler_gnu=$ac_cv_c_compiler_gnu
9754if test -n "$ac_tool_prefix"; then
9755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9756set dummy ${ac_tool_prefix}gcc; ac_word=$2
9757echo "$as_me:$LINENO: checking for $ac_word" >&5
9758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9759if test "${ac_cv_prog_CC+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762 if test -n "$CC"; then
9763 ac_cv_prog_CC="$CC" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9775 fi
9776done
9777done
9778
9779fi
9780fi
9781CC=$ac_cv_prog_CC
9782if test -n "$CC"; then
9783 echo "$as_me:$LINENO: result: $CC" >&5
9784echo "${ECHO_T}$CC" >&6
9785else
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
9788fi
9789
9790fi
9791if test -z "$ac_cv_prog_CC"; then
9792 ac_ct_CC=$CC
9793 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9794set dummy gcc; ac_word=$2
e6cc62c6
VS
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 if test -n "$ac_ct_CC"; then
9801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9802else
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_ac_ct_CC="gcc"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814done
9815done
9816
9817fi
9818fi
9819ac_ct_CC=$ac_cv_prog_ac_ct_CC
9820if test -n "$ac_ct_CC"; then
9821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9822echo "${ECHO_T}$ac_ct_CC" >&6
9823else
9824 echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6
9826fi
9827
9828 CC=$ac_ct_CC
9829else
9830 CC="$ac_cv_prog_CC"
9831fi
9832
9833if test -z "$CC"; then
9834 if test -n "$ac_tool_prefix"; then
9835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9836set dummy ${ac_tool_prefix}cc; ac_word=$2
9837echo "$as_me:$LINENO: checking for $ac_word" >&5
9838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9839if test "${ac_cv_prog_CC+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9841else
9842 if test -n "$CC"; then
9843 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9844else
e6cc62c6
VS
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_CC="${ac_tool_prefix}cc"
9853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9855 fi
9856done
9857done
9858
10f2d63a 9859fi
6232543b 9860fi
e6cc62c6 9861CC=$ac_cv_prog_CC
6232543b 9862if test -n "$CC"; then
e6cc62c6
VS
9863 echo "$as_me:$LINENO: result: $CC" >&5
9864echo "${ECHO_T}$CC" >&6
9865else
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868fi
9869
9870fi
9871if test -z "$ac_cv_prog_CC"; then
9872 ac_ct_CC=$CC
9873 # Extract the first word of "cc", so it can be a program name with args.
9874set dummy cc; ac_word=$2
9875echo "$as_me:$LINENO: checking for $ac_word" >&5
9876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 if test -n "$ac_ct_CC"; then
9881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_ac_ct_CC="cc"
9891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894done
9895done
9896
9897fi
9898fi
9899ac_ct_CC=$ac_cv_prog_ac_ct_CC
9900if test -n "$ac_ct_CC"; then
9901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9902echo "${ECHO_T}$ac_ct_CC" >&6
9903else
9904 echo "$as_me:$LINENO: result: no" >&5
9905echo "${ECHO_T}no" >&6
9906fi
9907
9908 CC=$ac_ct_CC
247f5006 9909else
e6cc62c6 9910 CC="$ac_cv_prog_CC"
247f5006
VZ
9911fi
9912
e6cc62c6 9913fi
5c6fa7d2
RR
9914if test -z "$CC"; then
9915 # Extract the first word of "cc", so it can be a program name with args.
9916set dummy cc; ac_word=$2
e6cc62c6
VS
9917echo "$as_me:$LINENO: checking for $ac_word" >&5
9918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919if test "${ac_cv_prog_CC+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9921else
9922 if test -n "$CC"; then
9923 ac_cv_prog_CC="$CC" # Let the user override the test.
9924else
9925 ac_prog_rejected=no
e6cc62c6
VS
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9934 ac_prog_rejected=yes
9935 continue
9936 fi
9937 ac_cv_prog_CC="cc"
9938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941done
9942done
9943
328a083c
RR
9944if test $ac_prog_rejected = yes; then
9945 # We found a bogon in the path, so make sure we never use it.
9946 set dummy $ac_cv_prog_CC
9947 shift
e6cc62c6 9948 if test $# != 0; then
328a083c 9949 # We chose a different compiler from the bogus one.
1e487827
VS
9950 # However, it has the same basename, so the bogon will be chosen
9951 # first if we set CC to just the basename; use the full file name.
9952 shift
e6cc62c6 9953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9954 fi
1e487827
VS
9955fi
9956fi
9957fi
e6cc62c6 9958CC=$ac_cv_prog_CC
1e487827 9959if test -n "$CC"; then
e6cc62c6
VS
9960 echo "$as_me:$LINENO: result: $CC" >&5
9961echo "${ECHO_T}$CC" >&6
703e0a69 9962else
e6cc62c6
VS
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
703e0a69 9965fi
1e487827 9966
e6cc62c6
VS
9967fi
9968if test -z "$CC"; then
9969 if test -n "$ac_tool_prefix"; then
9970 for ac_prog in cl
9971 do
9972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9974echo "$as_me:$LINENO: checking for $ac_word" >&5
9975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976if test "${ac_cv_prog_CC+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9978else
9979 if test -n "$CC"; then
9980 ac_cv_prog_CC="$CC" # Let the user override the test.
9981else
e6cc62c6
VS
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993done
9994done
9995
f09359cf
VS
9996fi
9997fi
e6cc62c6 9998CC=$ac_cv_prog_CC
f09359cf 9999if test -n "$CC"; then
e6cc62c6
VS
10000 echo "$as_me:$LINENO: result: $CC" >&5
10001echo "${ECHO_T}$CC" >&6
f09359cf 10002else
e6cc62c6
VS
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
5c6fa7d2 10005fi
1e487827 10006
e6cc62c6
VS
10007 test -n "$CC" && break
10008 done
10009fi
10010if test -z "$CC"; then
10011 ac_ct_CC=$CC
10012 for ac_prog in cl
10013do
10014 # Extract the first word of "$ac_prog", so it can be a program name with args.
10015set dummy $ac_prog; ac_word=$2
10016echo "$as_me:$LINENO: checking for $ac_word" >&5
10017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 if test -n "$ac_ct_CC"; then
10022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10023else
10024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025for as_dir in $PATH
10026do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_ac_ct_CC="$ac_prog"
10032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035done
10036done
f09359cf 10037
e6cc62c6
VS
10038fi
10039fi
10040ac_ct_CC=$ac_cv_prog_ac_ct_CC
10041if test -n "$ac_ct_CC"; then
10042 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10043echo "${ECHO_T}$ac_ct_CC" >&6
10044else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047fi
f09359cf 10048
e6cc62c6
VS
10049 test -n "$ac_ct_CC" && break
10050done
247f5006 10051
e6cc62c6
VS
10052 CC=$ac_ct_CC
10053fi
10054
10055fi
10056
10057
10058test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10059See \`config.log' for more details." >&5
10060echo "$as_me: error: no acceptable C compiler found in \$PATH
10061See \`config.log' for more details." >&2;}
10062 { (exit 1); exit 1; }; }
10063
10064# Provide some information about the compiler.
10065echo "$as_me:$LINENO:" \
10066 "checking for C compiler version" >&5
10067ac_compiler=`set X $ac_compile; echo $2`
10068{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10069 (eval $ac_compiler --version </dev/null >&5) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }
10073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10074 (eval $ac_compiler -v </dev/null >&5) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }
10078{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10079 (eval $ac_compiler -V </dev/null >&5) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }
10083
10084cat >conftest.$ac_ext <<_ACEOF
10085#line $LINENO "configure"
10086/* confdefs.h. */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
10092int
10093main ()
10094{
247f5006 10095
e6cc62c6
VS
10096 ;
10097 return 0;
10098}
10099_ACEOF
10100ac_clean_files_save=$ac_clean_files
10101ac_clean_files="$ac_clean_files a.out a.exe b.out"
10102# Try to create an executable without -o first, disregard a.out.
10103# It will help us diagnose broken compilers, and finding out an intuition
10104# of exeext.
10105echo "$as_me:$LINENO: checking for C compiler default output" >&5
10106echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10107ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10108if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10109 (eval $ac_link_default) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; then
10113 # Find the output, starting from the most likely. This scheme is
10114# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10115# resort.
10116
10117# Be careful to initialize this variable, since it used to be cached.
10118# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10119ac_cv_exeext=
10120# b.out is created by i960 compilers.
10121for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10122do
10123 test -f "$ac_file" || continue
10124 case $ac_file in
10125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10126 ;;
10127 conftest.$ac_ext )
10128 # This is the source file.
10129 ;;
10130 [ab].out )
10131 # We found the default executable, but exeext='' is most
10132 # certainly right.
10133 break;;
10134 *.* )
10135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10136 # FIXME: I believe we export ac_cv_exeext for Libtool,
10137 # but it would be cool to find out if it's true. Does anybody
10138 # maintain Libtool? --akim.
10139 export ac_cv_exeext
10140 break;;
10141 * )
10142 break;;
10143 esac
10144done
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10150See \`config.log' for more details." >&5
10151echo "$as_me: error: C compiler cannot create executables
10152See \`config.log' for more details." >&2;}
10153 { (exit 77); exit 77; }; }
10154fi
10155
10156ac_exeext=$ac_cv_exeext
10157echo "$as_me:$LINENO: result: $ac_file" >&5
10158echo "${ECHO_T}$ac_file" >&6
10159
10160# Check the compiler produces executables we can run. If not, either
10161# the compiler is broken, or we cross compile.
10162echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10163echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10164# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10165# If not cross compiling, check that we can run a simple program.
10166if test "$cross_compiling" != yes; then
10167 if { ac_try='./$ac_file'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 cross_compiling=no
698dcdb6 10174 else
e6cc62c6
VS
10175 if test "$cross_compiling" = maybe; then
10176 cross_compiling=yes
10177 else
10178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10179If you meant to cross compile, use \`--host'.
10180See \`config.log' for more details." >&5
10181echo "$as_me: error: cannot run C compiled programs.
10182If you meant to cross compile, use \`--host'.
10183See \`config.log' for more details." >&2;}
10184 { (exit 1); exit 1; }; }
10185 fi
698dcdb6 10186 fi
52127426 10187fi
e6cc62c6
VS
10188echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190
10191rm -f a.out a.exe conftest$ac_cv_exeext b.out
10192ac_clean_files=$ac_clean_files_save
10193# Check the compiler produces executables we can run. If not, either
10194# the compiler is broken, or we cross compile.
10195echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10196echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10197echo "$as_me:$LINENO: result: $cross_compiling" >&5
10198echo "${ECHO_T}$cross_compiling" >&6
10199
10200echo "$as_me:$LINENO: checking for suffix of executables" >&5
10201echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; then
10207 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10208# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10209# work properly (i.e., refer to `conftest.exe'), while it won't with
10210# `rm'.
10211for ac_file in conftest.exe conftest conftest.*; do
10212 test -f "$ac_file" || continue
10213 case $ac_file in
10214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10215 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10216 export ac_cv_exeext
10217 break;;
10218 * ) break;;
10219 esac
10220done
5c6fa7d2 10221else
e6cc62c6
VS
10222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10223See \`config.log' for more details." >&5
10224echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10225See \`config.log' for more details." >&2;}
10226 { (exit 1); exit 1; }; }
10227fi
10228
10229rm -f conftest$ac_cv_exeext
10230echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10231echo "${ECHO_T}$ac_cv_exeext" >&6
10232
10233rm -f conftest.$ac_ext
10234EXEEXT=$ac_cv_exeext
10235ac_exeext=$EXEEXT
10236echo "$as_me:$LINENO: checking for suffix of object files" >&5
10237echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10238if test "${ac_cv_objext+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241 cat >conftest.$ac_ext <<_ACEOF
10242#line $LINENO "configure"
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248
10249int
10250main ()
10251{
f09359cf 10252
e6cc62c6
VS
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.o conftest.obj
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10264 case $ac_file in
10265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10266 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10267 break;;
10268 esac
10269done
a0b9e27f 10270else
e6cc62c6
VS
10271 echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10275See \`config.log' for more details." >&5
10276echo "$as_me: error: cannot compute suffix of object files: cannot compile
10277See \`config.log' for more details." >&2;}
10278 { (exit 1); exit 1; }; }
a0b9e27f 10279fi
247f5006 10280
e6cc62c6
VS
10281rm -f conftest.$ac_cv_objext conftest.$ac_ext
10282fi
10283echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10284echo "${ECHO_T}$ac_cv_objext" >&6
10285OBJEXT=$ac_cv_objext
10286ac_objext=$OBJEXT
10287echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10288echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10289if test "${ac_cv_c_compiler_gnu+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10291else
e6cc62c6
VS
10292 cat >conftest.$ac_ext <<_ACEOF
10293#line $LINENO "configure"
10294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
10299
10300int
10301main ()
10302{
10303#ifndef __GNUC__
10304 choke me
10305#endif
10306
10307 ;
10308 return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest.$ac_objext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_compiler_gnu=yes
10324else
10325 echo "$as_me: failed program was:" >&5
10326sed 's/^/| /' conftest.$ac_ext >&5
10327
10328ac_compiler_gnu=no
10329fi
10330rm -f conftest.$ac_objext conftest.$ac_ext
10331ac_cv_c_compiler_gnu=$ac_compiler_gnu
10332
10333fi
10334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10336GCC=`test $ac_compiler_gnu = yes && echo yes`
10337ac_test_CFLAGS=${CFLAGS+set}
10338ac_save_CFLAGS=$CFLAGS
10339CFLAGS="-g"
10340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10342if test "${ac_cv_prog_cc_g+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345 cat >conftest.$ac_ext <<_ACEOF
10346#line $LINENO "configure"
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352
10353int
10354main ()
10355{
10356
10357 ;
10358 return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext
10362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10f2d63a
VZ
10373 ac_cv_prog_cc_g=yes
10374else
e6cc62c6
VS
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10377
e6cc62c6 10378ac_cv_prog_cc_g=no
10f2d63a 10379fi
e6cc62c6
VS
10380rm -f conftest.$ac_objext conftest.$ac_ext
10381fi
10382echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10383echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10384if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10385 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10386elif test $ac_cv_prog_cc_g = yes; then
10387 if test "$GCC" = yes; then
10f2d63a
VZ
10388 CFLAGS="-g -O2"
10389 else
f09359cf 10390 CFLAGS="-g"
10f2d63a 10391 fi
5c0a20c3 10392else
f09359cf
VS
10393 if test "$GCC" = yes; then
10394 CFLAGS="-O2"
10395 else
10396 CFLAGS=
10397 fi
10f2d63a 10398fi
e6cc62c6
VS
10399echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10400echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10401if test "${ac_cv_prog_cc_stdc+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 ac_cv_prog_cc_stdc=no
10405ac_save_CC=$CC
10406cat >conftest.$ac_ext <<_ACEOF
10407#line $LINENO "configure"
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413#include <stdarg.h>
10414#include <stdio.h>
10415#include <sys/types.h>
10416#include <sys/stat.h>
10417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10418struct buf { int x; };
10419FILE * (*rcsopen) (struct buf *, struct stat *, int);
10420static char *e (p, i)
10421 char **p;
10422 int i;
10423{
10424 return p[i];
10425}
10426static char *f (char * (*g) (char **, int), char **p, ...)
10427{
10428 char *s;
10429 va_list v;
10430 va_start (v,p);
10431 s = g (p, va_arg (v,int));
10432 va_end (v);
10433 return s;
10434}
10435int test (int i, double x);
10436struct s1 {int (*f) (int a);};
10437struct s2 {int (*f) (double a);};
10438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10439int argc;
10440char **argv;
10441int
10442main ()
10443{
10444return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449# Don't try gcc -ansi; that turns off useful extensions and
10450# breaks some systems' header files.
10451# AIX -qlanglvl=ansi
10452# Ultrix and OSF/1 -std1
10453# HP-UX 10.20 and later -Ae
10454# HP-UX older versions -Aa -D_HPUX_SOURCE
10455# SVR4 -Xc -D__EXTENSIONS__
10456for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10457do
10458 CC="$ac_save_CC $ac_arg"
10459 rm -f conftest.$ac_objext
10460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_prog_cc_stdc=$ac_arg
10472break
10473else
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477fi
10478rm -f conftest.$ac_objext
10479done
10480rm -f conftest.$ac_ext conftest.$ac_objext
10481CC=$ac_save_CC
10482
10483fi
10484
10485case "x$ac_cv_prog_cc_stdc" in
10486 x|xno)
10487 echo "$as_me:$LINENO: result: none needed" >&5
10488echo "${ECHO_T}none needed" >&6 ;;
10489 *)
10490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10491echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10492 CC="$CC $ac_cv_prog_cc_stdc" ;;
10493esac
10494
10495# Some people use a C++ compiler to compile C. Since we use `exit',
10496# in C++ we need to declare it. In case someone uses the same compiler
10497# for both compiling C and C++ we need to have the C++ compiler decide
10498# the declaration of exit, since it's the most demanding environment.
10499cat >conftest.$ac_ext <<_ACEOF
10500#ifndef __cplusplus
10501 choke me
10502#endif
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 for ac_declaration in \
6f628073
VS
10517 ''\
10518 '#include <stdlib.h>' \
e6cc62c6
VS
10519 'extern "C" void std::exit (int) throw (); using std::exit;' \
10520 'extern "C" void std::exit (int); using std::exit;' \
10521 'extern "C" void exit (int) throw ();' \
10522 'extern "C" void exit (int);' \
10523 'void exit (int);'
10524do
10525 cat >conftest.$ac_ext <<_ACEOF
10526#line $LINENO "configure"
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
71e83a03 10532#include <stdlib.h>
6f628073 10533$ac_declaration
e6cc62c6
VS
10534int
10535main ()
10536{
10537exit (42);
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542rm -f conftest.$ac_objext
10543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -s conftest.$ac_objext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 :
10555else
10556 echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559continue
10560fi
10561rm -f conftest.$ac_objext conftest.$ac_ext
10562 cat >conftest.$ac_ext <<_ACEOF
10563#line $LINENO "configure"
10564/* confdefs.h. */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h. */
10569$ac_declaration
10570int
10571main ()
10572{
10573exit (42);
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 break
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595fi
10596rm -f conftest.$ac_objext conftest.$ac_ext
10597done
10598rm -f conftest*
10599if test -n "$ac_declaration"; then
10600 echo '#ifdef __cplusplus' >>confdefs.h
10601 echo $ac_declaration >>confdefs.h
10602 echo '#endif' >>confdefs.h
10603fi
10604
10605else
10606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609fi
10610rm -f conftest.$ac_objext conftest.$ac_ext
10611ac_ext=c
10612ac_cpp='$CPP $CPPFLAGS'
10613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10616
10617
e6cc62c6
VS
10618
10619ac_ext=c
10620ac_cpp='$CPP $CPPFLAGS'
10621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10625echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10626# On Suns, sometimes $CPP names a directory.
10627if test -n "$CPP" && test -d "$CPP"; then
10628 CPP=
10629fi
10630if test -z "$CPP"; then
e6cc62c6
VS
10631 if test "${ac_cv_prog_CPP+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633else
10634 # Double quotes because CPP needs to be expanded
10635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10636 do
10637 ac_preproc_ok=false
10638for ac_c_preproc_warn_flag in '' yes
10639do
10640 # Use a header file that comes with gcc, so configuring glibc
10641 # with a fresh cross-compiler works.
10642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 # <limits.h> exists even on freestanding compilers.
10f2d63a 10644 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10645 # not just through cpp. "Syntax error" is here to catch this case.
10646 cat >conftest.$ac_ext <<_ACEOF
10647#line $LINENO "configure"
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
10653#ifdef __STDC__
10654# include <limits.h>
10655#else
10656# include <assert.h>
10657#endif
10658 Syntax error
10659_ACEOF
10660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null; then
10668 if test -s conftest.err; then
10669 ac_cpp_err=$ac_c_preproc_warn_flag
10670 else
10671 ac_cpp_err=
10672 fi
10f2d63a 10673else
e6cc62c6
VS
10674 ac_cpp_err=yes
10675fi
10676if test -z "$ac_cpp_err"; then
a0b9e27f 10677 :
247f5006 10678else
e6cc62c6
VS
10679 echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 # Broken: fails on valid input.
10683continue
10684fi
10685rm -f conftest.err conftest.$ac_ext
10686
10687 # OK, works on sane cases. Now check whether non-existent headers
10688 # can be detected and how.
10689 cat >conftest.$ac_ext <<_ACEOF
10690#line $LINENO "configure"
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h. */
10696#include <ac_nonexistent.h>
10697_ACEOF
10698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } >/dev/null; then
10706 if test -s conftest.err; then
10707 ac_cpp_err=$ac_c_preproc_warn_flag
10708 else
10709 ac_cpp_err=
10710 fi
10f2d63a 10711else
e6cc62c6 10712 ac_cpp_err=yes
579d8138 10713fi
e6cc62c6
VS
10714if test -z "$ac_cpp_err"; then
10715 # Broken: success on invalid input.
10716continue
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 # Passes both tests.
10722ac_preproc_ok=:
10723break
52127426 10724fi
e6cc62c6
VS
10725rm -f conftest.err conftest.$ac_ext
10726
10727done
10728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10729rm -f conftest.err conftest.$ac_ext
10730if $ac_preproc_ok; then
10731 break
8284b0c5 10732fi
e6cc62c6
VS
10733
10734 done
10735 ac_cv_prog_CPP=$CPP
10736
10737fi
10738 CPP=$ac_cv_prog_CPP
10739else
10740 ac_cv_prog_CPP=$CPP
10741fi
10742echo "$as_me:$LINENO: result: $CPP" >&5
10743echo "${ECHO_T}$CPP" >&6
10744ac_preproc_ok=false
10745for ac_c_preproc_warn_flag in '' yes
10746do
10747 # Use a header file that comes with gcc, so configuring glibc
10748 # with a fresh cross-compiler works.
10749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 # <limits.h> exists even on freestanding compilers.
10751 # On the NeXT, cc -E runs the code through the compiler's parser,
10752 # not just through cpp. "Syntax error" is here to catch this case.
10753 cat >conftest.$ac_ext <<_ACEOF
10754#line $LINENO "configure"
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760#ifdef __STDC__
10761# include <limits.h>
10762#else
10763# include <assert.h>
10764#endif
10765 Syntax error
10766_ACEOF
10767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null; then
10775 if test -s conftest.err; then
10776 ac_cpp_err=$ac_c_preproc_warn_flag
10777 else
10778 ac_cpp_err=
10779 fi
10780else
10781 ac_cpp_err=yes
10782fi
10783if test -z "$ac_cpp_err"; then
10784 :
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 # Broken: fails on valid input.
10790continue
10791fi
10792rm -f conftest.err conftest.$ac_ext
10793
10794 # OK, works on sane cases. Now check whether non-existent headers
10795 # can be detected and how.
10796 cat >conftest.$ac_ext <<_ACEOF
10797#line $LINENO "configure"
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <ac_nonexistent.h>
10804_ACEOF
10805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } >/dev/null; then
10813 if test -s conftest.err; then
10814 ac_cpp_err=$ac_c_preproc_warn_flag
10815 else
10816 ac_cpp_err=
10817 fi
10818else
10819 ac_cpp_err=yes
10820fi
10821if test -z "$ac_cpp_err"; then
10822 # Broken: success on invalid input.
10823continue
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 # Passes both tests.
10829ac_preproc_ok=:
10830break
a0b9e27f 10831fi
e6cc62c6
VS
10832rm -f conftest.err conftest.$ac_ext
10833
10834done
10835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10836rm -f conftest.err conftest.$ac_ext
10837if $ac_preproc_ok; then
10838 :
10839else
10840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10841See \`config.log' for more details." >&5
10842echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10843See \`config.log' for more details." >&2;}
10844 { (exit 1); exit 1; }; }
10845fi
10846
10847ac_ext=c
10848ac_cpp='$CPP $CPPFLAGS'
10849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852
10853
10854echo "$as_me:$LINENO: checking for egrep" >&5
10855echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10856if test "${ac_cv_prog_egrep+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10858else
e6cc62c6
VS
10859 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10860 then ac_cv_prog_egrep='grep -E'
10861 else ac_cv_prog_egrep='egrep'
10862 fi
10f2d63a 10863fi
e6cc62c6
VS
10864echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10865echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10866 EGREP=$ac_cv_prog_egrep
10867
10f2d63a 10868
e6cc62c6
VS
10869if test $ac_cv_c_compiler_gnu = yes; then
10870 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10871echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10872if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10874else
10875 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10876 cat >conftest.$ac_ext <<_ACEOF
10877#line $LINENO "configure"
10878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
10f2d63a
VZ
10883#include <sgtty.h>
10884Autoconf TIOCGETP
e6cc62c6 10885_ACEOF
10f2d63a 10886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10887 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10888 ac_cv_prog_gcc_traditional=yes
10889else
10f2d63a
VZ
10890 ac_cv_prog_gcc_traditional=no
10891fi
10892rm -f conftest*
10893
8284b0c5 10894
10f2d63a 10895 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10896 cat >conftest.$ac_ext <<_ACEOF
10897#line $LINENO "configure"
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10f2d63a
VZ
10903#include <termio.h>
10904Autoconf TCGETA
e6cc62c6 10905_ACEOF
10f2d63a 10906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10907 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10908 ac_cv_prog_gcc_traditional=yes
10909fi
10910rm -f conftest*
10911
10912 fi
10913fi
e6cc62c6
VS
10914echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10915echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10916 if test $ac_cv_prog_gcc_traditional = yes; then
10917 CC="$CC -traditional"
10918 fi
10919fi
10920
8284b0c5
MB
10921
10922
e6cc62c6
VS
10923
10924ac_ext=cc
1e487827 10925ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10929
698dcdb6 10930
ec603395 10931CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10932ac_ext=cc
10933ac_cpp='$CXXCPP $CPPFLAGS'
10934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10937if test -n "$ac_tool_prefix"; then
10938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10939 do
10940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_CXX+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10946else
10947 if test -n "$CXX"; then
10948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10949else
e6cc62c6
VS
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
10f2d63a
VZ
10964fi
10965fi
e6cc62c6 10966CXX=$ac_cv_prog_CXX
10f2d63a 10967if test -n "$CXX"; then
e6cc62c6
VS
10968 echo "$as_me:$LINENO: result: $CXX" >&5
10969echo "${ECHO_T}$CXX" >&6
10f2d63a 10970else
e6cc62c6
VS
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
10f2d63a
VZ
10973fi
10974
e6cc62c6
VS
10975 test -n "$CXX" && break
10976 done
10977fi
10978if test -z "$CXX"; then
10979 ac_ct_CXX=$CXX
10980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10981do
10982 # Extract the first word of "$ac_prog", so it can be a program name with args.
10983set dummy $ac_prog; ac_word=$2
10984echo "$as_me:$LINENO: checking for $ac_word" >&5
10985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10986if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988else
10989 if test -n "$ac_ct_CXX"; then
10990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10991else
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999 ac_cv_prog_ac_ct_CXX="$ac_prog"
11000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003done
10f2d63a 11004done
a0b9e27f 11005
8284b0c5 11006fi
a0b9e27f 11007fi
e6cc62c6
VS
11008ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11009if test -n "$ac_ct_CXX"; then
11010 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11011echo "${ECHO_T}$ac_ct_CXX" >&6
11012else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
a0b9e27f 11015fi
10f2d63a 11016
e6cc62c6
VS
11017 test -n "$ac_ct_CXX" && break
11018done
11019test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11020
11021 CXX=$ac_ct_CXX
11022fi
11023
11024
11025# Provide some information about the compiler.
11026echo "$as_me:$LINENO:" \
11027 "checking for C++ compiler version" >&5
11028ac_compiler=`set X $ac_compile; echo $2`
11029{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11030 (eval $ac_compiler --version </dev/null >&5) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }
11034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11035 (eval $ac_compiler -v </dev/null >&5) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }
11039{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11040 (eval $ac_compiler -V </dev/null >&5) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }
11044
11045echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11046echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11047if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050 cat >conftest.$ac_ext <<_ACEOF
11051#line $LINENO "configure"
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057
11058int
11059main ()
11060{
11061#ifndef __GNUC__
11062 choke me
11063#endif
10f2d63a 11064
e6cc62c6
VS
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext
11070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_compiler_gnu=yes
11082else
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086ac_compiler_gnu=no
11087fi
11088rm -f conftest.$ac_objext conftest.$ac_ext
11089ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11090
11091fi
11092echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11093echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11094GXX=`test $ac_compiler_gnu = yes && echo yes`
11095ac_test_CXXFLAGS=${CXXFLAGS+set}
11096ac_save_CXXFLAGS=$CXXFLAGS
11097CXXFLAGS="-g"
11098echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11099echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11100if test "${ac_cv_prog_cxx_g+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 cat >conftest.$ac_ext <<_ACEOF
11104#line $LINENO "configure"
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110
11111int
11112main ()
11113{
f09359cf 11114
e6cc62c6
VS
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.$ac_objext
11120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
10f2d63a
VZ
11131 ac_cv_prog_cxx_g=yes
11132else
e6cc62c6
VS
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11135
e6cc62c6 11136ac_cv_prog_cxx_g=no
10f2d63a 11137fi
e6cc62c6
VS
11138rm -f conftest.$ac_objext conftest.$ac_ext
11139fi
11140echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11141echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11142if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11143 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11144elif test $ac_cv_prog_cxx_g = yes; then
11145 if test "$GXX" = yes; then
10f2d63a
VZ
11146 CXXFLAGS="-g -O2"
11147 else
f09359cf 11148 CXXFLAGS="-g"
10f2d63a 11149 fi
5c0a20c3 11150else
f09359cf
VS
11151 if test "$GXX" = yes; then
11152 CXXFLAGS="-O2"
11153 else
11154 CXXFLAGS=
11155 fi
10f2d63a 11156fi
e6cc62c6 11157for ac_declaration in \
6f628073
VS
11158 ''\
11159 '#include <stdlib.h>' \
e6cc62c6
VS
11160 'extern "C" void std::exit (int) throw (); using std::exit;' \
11161 'extern "C" void std::exit (int); using std::exit;' \
11162 'extern "C" void exit (int) throw ();' \
11163 'extern "C" void exit (int);' \
11164 'void exit (int);'
11165do
11166 cat >conftest.$ac_ext <<_ACEOF
11167#line $LINENO "configure"
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
71e83a03 11173#include <stdlib.h>
6f628073 11174$ac_declaration
e6cc62c6
VS
11175int
11176main ()
11177{
11178exit (42);
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 :
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200continue
11201fi
11202rm -f conftest.$ac_objext conftest.$ac_ext
11203 cat >conftest.$ac_ext <<_ACEOF
11204#line $LINENO "configure"
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210$ac_declaration
11211int
11212main ()
11213{
11214exit (42);
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219rm -f conftest.$ac_objext
11220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 break
11232else
11233 echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236fi
11237rm -f conftest.$ac_objext conftest.$ac_ext
11238done
11239rm -f conftest*
11240if test -n "$ac_declaration"; then
11241 echo '#ifdef __cplusplus' >>confdefs.h
11242 echo $ac_declaration >>confdefs.h
11243 echo '#endif' >>confdefs.h
11244fi
11245
11246ac_ext=cc
11247ac_cpp='$CXXCPP $CPPFLAGS'
11248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11251
11252
10f2d63a 11253ac_ext=c
10f2d63a 11254ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11258
11259
e6cc62c6
VS
11260if test -n "$ac_tool_prefix"; then
11261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11262set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11263echo "$as_me:$LINENO: checking for $ac_word" >&5
11264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265if test "${ac_cv_prog_RANLIB+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11267else
11268 if test -n "$RANLIB"; then
11269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11270else
e6cc62c6
VS
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
11284
10f2d63a
VZ
11285fi
11286fi
e6cc62c6 11287RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11288if test -n "$RANLIB"; then
e6cc62c6
VS
11289 echo "$as_me:$LINENO: result: $RANLIB" >&5
11290echo "${ECHO_T}$RANLIB" >&6
11291else
11292 echo "$as_me:$LINENO: result: no" >&5
11293echo "${ECHO_T}no" >&6
11294fi
11295
11296fi
11297if test -z "$ac_cv_prog_RANLIB"; then
11298 ac_ct_RANLIB=$RANLIB
11299 # Extract the first word of "ranlib", so it can be a program name with args.
11300set dummy ranlib; ac_word=$2
11301echo "$as_me:$LINENO: checking for $ac_word" >&5
11302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11303if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11305else
e6cc62c6
VS
11306 if test -n "$ac_ct_RANLIB"; then
11307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11308else
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316 ac_cv_prog_ac_ct_RANLIB="ranlib"
11317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320done
11321done
11322
11323 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11324fi
11325fi
11326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11327if test -n "$ac_ct_RANLIB"; then
11328 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11329echo "${ECHO_T}$ac_ct_RANLIB" >&6
11330else
11331 echo "$as_me:$LINENO: result: no" >&5
11332echo "${ECHO_T}no" >&6
11333fi
11334
11335 RANLIB=$ac_ct_RANLIB
11336else
11337 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11338fi
11339
10f2d63a
VZ
11340
11341# Extract the first word of "ar", so it can be a program name with args.
11342set dummy ar; ac_word=$2
e6cc62c6
VS
11343echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345if test "${ac_cv_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11347else
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11350else
e6cc62c6
VS
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_AR="ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
11364
10f2d63a
VZ
11365 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11366fi
11367fi
e6cc62c6 11368AR=$ac_cv_prog_AR
10f2d63a 11369if test -n "$AR"; then
e6cc62c6
VS
11370 echo "$as_me:$LINENO: result: $AR" >&5
11371echo "${ECHO_T}$AR" >&6
10f2d63a 11372else
e6cc62c6
VS
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
10f2d63a
VZ
11375fi
11376
8284b0c5 11377
6054113a 11378# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11379# so one script is as good as another. But avoid the broken or
11380# incompatible versions:
11381# SysV /etc/install, /usr/sbin/install
11382# SunOS /usr/etc/install
11383# IRIX /sbin/install
11384# AIX /bin/install
e6cc62c6 11385# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11389# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11390echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11391echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11392if test -z "$INSTALL"; then
e6cc62c6
VS
11393if test "${ac_cv_path_install+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 # Account for people who put trailing slashes in PATH elements.
11402case $as_dir/ in
11403 ./ | .// | /cC/* | \
11404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11405 /usr/ucb/* ) ;;
11406 *)
11407 # OSF1 and SCO ODT 3.0 have their own names for install.
11408 # Don't use installbsd from OSF since it installs stuff as root
11409 # by default.
11410 for ac_prog in ginstall scoinst install; do
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11413 if test $ac_prog = install &&
11414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11415 # AIX install. It has an incompatible calling convention.
11416 :
11417 elif test $ac_prog = install &&
11418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11419 # program-specific install script used by HP pwplus--don't use.
11420 :
11421 else
11422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11423 break 3
11424 fi
11425 fi
10f2d63a 11426 done
e6cc62c6
VS
11427 done
11428 ;;
11429esac
11430done
11431
10f2d63a
VZ
11432
11433fi
11434 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11435 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11436 else
11437 # As a last resort, use the slow shell script. We don't cache a
11438 # path for INSTALL within a source directory, because that will
11439 # break other packages using the cache if that directory is
11440 # removed, or if the path is relative.
e6cc62c6 11441 INSTALL=$ac_install_sh
10f2d63a
VZ
11442 fi
11443fi
e6cc62c6
VS
11444echo "$as_me:$LINENO: result: $INSTALL" >&5
11445echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11446
11447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11448# It thinks the first close brace ends the variable substitution.
11449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11450
e6cc62c6 11451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11452
10f2d63a
VZ
11453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11454
8284b0c5 11455
1d1b75ac
VZ
11456case ${INSTALL} in
11457 /* ) # Absolute
11458 ;;
4f5a7f74
VZ
11459 ?:* ) # Drive letter, considered as absolute.
11460 ;;
3bd8fb5f 11461 *)
1d1b75ac
VZ
11462 INSTALL=`pwd`/${INSTALL} ;;
11463esac
11464
4f5a7f74
VZ
11465case ${host} in
11466 *-hp-hpux* )
11467 INSTALL_DIR="mkdir"
11468 ;;
11469
11470 *) INSTALL_DIR="$INSTALL -d"
11471 ;;
11472esac
11473
8284b0c5 11474
6054113a
GD
11475case "${host}" in
11476
b5853384 11477 powerpc-*-darwin* )
eb99ae0b
GD
11478 INSTALL_PROGRAM="cp -fp"
11479 INSTALL_DATA="cp -fp"
6054113a
GD
11480 ;;
11481 *)
11482 ;;
d6853540 11483esac
698dcdb6 11484
10f2d63a
VZ
11485# Extract the first word of "strip", so it can be a program name with args.
11486set dummy strip; ac_word=$2
e6cc62c6
VS
11487echo "$as_me:$LINENO: checking for $ac_word" >&5
11488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11489if test "${ac_cv_prog_STRIP+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11491else
11492 if test -n "$STRIP"; then
11493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11494else
e6cc62c6
VS
11495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496for as_dir in $PATH
11497do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_prog_STRIP="strip"
11503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506done
11507done
11508
10f2d63a
VZ
11509 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11510fi
11511fi
e6cc62c6 11512STRIP=$ac_cv_prog_STRIP
10f2d63a 11513if test -n "$STRIP"; then
e6cc62c6
VS
11514 echo "$as_me:$LINENO: result: $STRIP" >&5
11515echo "${ECHO_T}$STRIP" >&6
10f2d63a 11516else
e6cc62c6
VS
11517 echo "$as_me:$LINENO: result: no" >&5
11518echo "${ECHO_T}no" >&6
10f2d63a
VZ
11519fi
11520
5c6fa7d2 11521
e6cc62c6
VS
11522echo "$as_me:$LINENO: checking if make is GNU make" >&5
11523echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11524if test "${wx_cv_prog_makeisgnu+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11526else
e6cc62c6 11527
414eab6d 11528 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11529 egrep -s GNU > /dev/null); then
414eab6d
VZ
11530 wx_cv_prog_makeisgnu="yes"
11531 else
11532 wx_cv_prog_makeisgnu="no"
11533 fi
11534
11535fi
e6cc62c6
VS
11536echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11537echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11538
11539if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11540 IF_GNU_MAKE=""
11541else
11542 IF_GNU_MAKE="#"
11543fi
11544
8284b0c5
MB
11545
11546
414eab6d 11547if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11548echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11549echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11550if test "${wx_cv_prog_makevpath+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11552else
e6cc62c6 11553
10f2d63a
VZ
11554cat - << EOF > confMake
11555check : file
11556 cp \$? \$@
11557 cp \$? final_file
11558EOF
11559
11560if test ! -d sub ; then
11561 mkdir sub
11562fi
11563echo dummy > sub/file
f6bcfd97 11564${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11565RESULT=$?
11566rm -f sub/file check final_file confMake
11567rmdir sub
11568if test "$RESULT" = 0; then
04e7a216 11569 wx_cv_prog_makevpath="yes"
10f2d63a 11570else
04e7a216
VZ
11571 wx_cv_prog_makevpath="no"
11572fi
11573
11574fi
e6cc62c6
VS
11575echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11576echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11577
11578if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11579{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11580You need a make-utility that is able to use the variable
11581VPATH correctly.
11582If your version of make does not support VPATH correctly,
11583please install GNU-make (possibly as gmake), and start
11584configure with the following command:
11585export MAKE=gmake; ./configure for sh-type shells
11586setenv MAKE gmake; ./configure for csh-type shells
11587Also please do remember to use gmake in this case every time
11588you are trying to compile.
e6cc62c6
VS
11589" >&5
11590echo "$as_me: error:
11591You need a make-utility that is able to use the variable
11592VPATH correctly.
11593If your version of make does not support VPATH correctly,
11594please install GNU-make (possibly as gmake), and start
11595configure with the following command:
11596export MAKE=gmake; ./configure for sh-type shells
11597setenv MAKE gmake; ./configure for csh-type shells
11598Also please do remember to use gmake in this case every time
11599you are trying to compile.
11600" >&2;}
11601 { (exit 1); exit 1; }; }
11602fi fi
10f2d63a
VZ
11603for ac_prog in 'bison -y' byacc
11604do
e6cc62c6 11605 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11606set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11607echo "$as_me:$LINENO: checking for $ac_word" >&5
11608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11609if test "${ac_cv_prog_YACC+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11611else
11612 if test -n "$YACC"; then
11613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11614else
e6cc62c6
VS
11615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616for as_dir in $PATH
11617do
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11622 ac_cv_prog_YACC="$ac_prog"
11623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 break 2
11625 fi
11626done
11627done
11628
10f2d63a
VZ
11629fi
11630fi
e6cc62c6 11631YACC=$ac_cv_prog_YACC
10f2d63a 11632if test -n "$YACC"; then
e6cc62c6
VS
11633 echo "$as_me:$LINENO: result: $YACC" >&5
11634echo "${ECHO_T}$YACC" >&6
10f2d63a 11635else
e6cc62c6
VS
11636 echo "$as_me:$LINENO: result: no" >&5
11637echo "${ECHO_T}no" >&6
10f2d63a
VZ
11638fi
11639
e6cc62c6 11640 test -n "$YACC" && break
10f2d63a
VZ
11641done
11642test -n "$YACC" || YACC="yacc"
11643
8284b0c5 11644
e6cc62c6
VS
11645for ac_prog in flex lex
11646do
11647 # Extract the first word of "$ac_prog", so it can be a program name with args.
11648set dummy $ac_prog; ac_word=$2
11649echo "$as_me:$LINENO: checking for $ac_word" >&5
11650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11651if test "${ac_cv_prog_LEX+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11653else
11654 if test -n "$LEX"; then
11655 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11656else
e6cc62c6
VS
11657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_prog_LEX="$ac_prog"
11665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11667 fi
11668done
11669done
11670
10f2d63a
VZ
11671fi
11672fi
e6cc62c6 11673LEX=$ac_cv_prog_LEX
10f2d63a 11674if test -n "$LEX"; then
e6cc62c6
VS
11675 echo "$as_me:$LINENO: result: $LEX" >&5
11676echo "${ECHO_T}$LEX" >&6
10f2d63a 11677else
e6cc62c6
VS
11678 echo "$as_me:$LINENO: result: no" >&5
11679echo "${ECHO_T}no" >&6
10f2d63a
VZ
11680fi
11681
e6cc62c6
VS
11682 test -n "$LEX" && break
11683done
11684test -n "$LEX" || LEX=":"
11685
10f2d63a
VZ
11686if test -z "$LEXLIB"
11687then
e6cc62c6
VS
11688 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11689echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11690if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 ac_check_lib_save_LIBS=$LIBS
11694LIBS="-lfl $LIBS"
11695cat >conftest.$ac_ext <<_ACEOF
11696#line $LINENO "configure"
11697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
11702
11703/* Override any gcc2 internal prototype to avoid an error. */
11704#ifdef __cplusplus
11705extern "C"
11706#endif
11707/* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11709char yywrap ();
11710int
11711main ()
11712{
11713yywrap ();
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_lib_fl_yywrap=yes
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735ac_cv_lib_fl_yywrap=no
11736fi
11737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738LIBS=$ac_check_lib_save_LIBS
11739fi
11740echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11741echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11742if test $ac_cv_lib_fl_yywrap = yes; then
11743 LEXLIB="-lfl"
11744else
11745 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11746echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11747if test "${ac_cv_lib_l_yywrap+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 ac_check_lib_save_LIBS=$LIBS
11751LIBS="-ll $LIBS"
11752cat >conftest.$ac_ext <<_ACEOF
11753#line $LINENO "configure"
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
11759
247f5006 11760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11761#ifdef __cplusplus
11762extern "C"
11763#endif
247f5006 11764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11765 builtin and then its argument prototype would still apply. */
11766char yywrap ();
11767int
11768main ()
11769{
11770yywrap ();
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
11776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -s conftest$ac_exeext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_lib_l_yywrap=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_lib_l_yywrap=no
11793fi
11794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11795LIBS=$ac_check_lib_save_LIBS
11796fi
11797echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11798echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11799if test $ac_cv_lib_l_yywrap = yes; then
11800 LEXLIB="-ll"
11801fi
10f2d63a 11802
10f2d63a 11803fi
8284b0c5 11804
10f2d63a 11805fi
e6cc62c6
VS
11806
11807if test "x$LEX" != "x:"; then
11808 echo "$as_me:$LINENO: checking lex output file root" >&5
11809echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11810if test "${ac_cv_prog_lex_root+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 # The minimal lex program is just a single line: %%. But some broken lexes
11814# (Solaris, I think it was) want two %% lines, so accommodate them.
11815cat >conftest.l <<_ACEOF
11816%%
11817%%
11818_ACEOF
11819{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11820 (eval $LEX conftest.l) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }
11824if test -f lex.yy.c; then
11825 ac_cv_prog_lex_root=lex.yy
11826elif test -f lexyy.c; then
11827 ac_cv_prog_lex_root=lexyy
8284b0c5 11828else
e6cc62c6
VS
11829 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11830echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11831 { (exit 1); exit 1; }; }
10f2d63a 11832fi
a0b9e27f 11833fi
e6cc62c6
VS
11834echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11835echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11836rm -f conftest.l
11837LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11838
e6cc62c6
VS
11839echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11840echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11841if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11843else
e6cc62c6
VS
11844 # POSIX says lex can declare yytext either as a pointer or an array; the
11845# default is implementation-dependent. Figure out which it is, since
11846# not all implementations provide the %pointer and %array declarations.
11847ac_cv_prog_lex_yytext_pointer=no
11848echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11849ac_save_LIBS=$LIBS
11850LIBS="$LIBS $LEXLIB"
11851cat >conftest.$ac_ext <<_ACEOF
11852`cat $LEX_OUTPUT_ROOT.c`
11853_ACEOF
11854rm -f conftest.$ac_objext conftest$ac_exeext
11855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856 (eval $ac_link) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11867else
e6cc62c6
VS
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
10f2d63a 11871fi
e6cc62c6
VS
11872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11873LIBS=$ac_save_LIBS
11874rm -f "${LEX_OUTPUT_ROOT}.c"
11875
11876fi
11877echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11878echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11879if test $ac_cv_prog_lex_yytext_pointer = yes; then
11880
11881cat >>confdefs.h <<\_ACEOF
11882#define YYTEXT_POINTER 1
11883_ACEOF
11884
a0b9e27f 11885fi
e6cc62c6
VS
11886
11887fi
11888
11889echo "$as_me:$LINENO: checking whether ln -s works" >&5
11890echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11891LN_S=$as_ln_s
11892if test "$LN_S" = "ln -s"; then
11893 echo "$as_me:$LINENO: result: yes" >&5
11894echo "${ECHO_T}yes" >&6
10f2d63a 11895else
e6cc62c6
VS
11896 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11897echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11898fi
5c6fa7d2 11899
247f5006 11900
2b5f62a0
VZ
11901case "${host}" in
11902 *-pc-os2_emx | *-pc-os2-emx )
11903 LIBS="$LIBS -lstdcpp"
11904 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11905 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11906echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11907if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11909else
e6cc62c6 11910 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11911LIBS="-lcExt $LIBS"
e6cc62c6
VS
11912cat >conftest.$ac_ext <<_ACEOF
11913#line $LINENO "configure"
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919
2b5f62a0 11920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11921#ifdef __cplusplus
11922extern "C"
11923#endif
2b5f62a0 11924/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11925 builtin and then its argument prototype would still apply. */
11926char drand48 ();
11927int
11928main ()
11929{
11930drand48 ();
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_lib_cExt_drand48=yes
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952ac_cv_lib_cExt_drand48=no
11953fi
11954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11955LIBS=$ac_check_lib_save_LIBS
11956fi
11957echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11958echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11959if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11960 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11961fi
11962
11963 else
11964 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11965 fi
11966 ;;
11967esac
11968
a0b9e27f 11969
01aa5863
VS
11970if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11971 echo "$as_me:$LINENO: checking for strings.h" >&5
11972echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11973if test "${ac_cv_header_strings_h+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975else
11976 ac_cv_header_strings_h=no
11977fi
11978echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11979echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11980 if test "$ac_cv_header_strings_h" = "no"; then
11981 echo "$as_me:$LINENO: result: forced no into cache" >&5
11982echo "${ECHO_T}forced no into cache" >&6
11983 else
11984 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11985echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11986 fi
11987fi
11988echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11989echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11990if test "${ac_cv_header_stdc+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11992else
11993 cat >conftest.$ac_ext <<_ACEOF
11994#line $LINENO "configure"
11995/* confdefs.h. */
11996_ACEOF
11997cat confdefs.h >>conftest.$ac_ext
11998cat >>conftest.$ac_ext <<_ACEOF
11999/* end confdefs.h. */
12000#include <stdlib.h>
12001#include <stdarg.h>
12002#include <string.h>
12003#include <float.h>
247f5006 12004
e6cc62c6
VS
12005int
12006main ()
12007{
90dd450c 12008
e6cc62c6
VS
12009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12015 (eval $ac_compile) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_cv_header_stdc=yes
8284b0c5 12026else
e6cc62c6
VS
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030ac_cv_header_stdc=no
21d1c967 12031fi
e6cc62c6 12032rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12033
e6cc62c6
VS
12034if test $ac_cv_header_stdc = yes; then
12035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12036 cat >conftest.$ac_ext <<_ACEOF
12037#line $LINENO "configure"
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043#include <string.h>
12044
12045_ACEOF
12046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047 $EGREP "memchr" >/dev/null 2>&1; then
12048 :
12049else
12050 ac_cv_header_stdc=no
3a922bb4 12051fi
a0b9e27f 12052rm -f conftest*
e6cc62c6 12053
90dd450c 12054fi
e6cc62c6
VS
12055
12056if test $ac_cv_header_stdc = yes; then
12057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12058 cat >conftest.$ac_ext <<_ACEOF
12059#line $LINENO "configure"
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
12065#include <stdlib.h>
12066
12067_ACEOF
12068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "free" >/dev/null 2>&1; then
12070 :
a0b9e27f 12071else
e6cc62c6 12072 ac_cv_header_stdc=no
21d1c967 12073fi
e6cc62c6 12074rm -f conftest*
247f5006
VZ
12075
12076fi
e6cc62c6
VS
12077
12078if test $ac_cv_header_stdc = yes; then
12079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12080 if test "$cross_compiling" = yes; then
12081 :
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084#line $LINENO "configure"
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090#include <ctype.h>
12091#if ((' ' & 0x0FF) == 0x020)
12092# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12093# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12094#else
12095# define ISLOWER(c) \
12096 (('a' <= (c) && (c) <= 'i') \
12097 || ('j' <= (c) && (c) <= 'r') \
12098 || ('s' <= (c) && (c) <= 'z'))
12099# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12100#endif
12101
12102#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12103int
12104main ()
12105{
12106 int i;
12107 for (i = 0; i < 256; i++)
12108 if (XOR (islower (i), ISLOWER (i))
12109 || toupper (i) != TOUPPER (i))
12110 exit(2);
12111 exit (0);
12112}
12113_ACEOF
12114rm -f conftest$ac_exeext
12115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12116 (eval $ac_link) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 :
a0b9e27f 12126else
e6cc62c6
VS
12127 echo "$as_me: program exited with status $ac_status" >&5
12128echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131( exit $ac_status )
12132ac_cv_header_stdc=no
12133fi
12134rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135fi
12136fi
12137fi
12138echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12139echo "${ECHO_T}$ac_cv_header_stdc" >&6
12140if test $ac_cv_header_stdc = yes; then
12141
12142cat >>confdefs.h <<\_ACEOF
12143#define STDC_HEADERS 1
12144_ACEOF
12145
a0b9e27f 12146fi
e6cc62c6
VS
12147
12148# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12159 inttypes.h stdint.h unistd.h
12160do
12161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12162echo "$as_me:$LINENO: checking for $ac_header" >&5
12163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12164if eval "test \"\${$as_ac_Header+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167 cat >conftest.$ac_ext <<_ACEOF
12168#line $LINENO "configure"
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
12174$ac_includes_default
12175
12176#include <$ac_header>
12177_ACEOF
12178rm -f conftest.$ac_objext
12179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 eval "$as_ac_Header=yes"
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
12195eval "$as_ac_Header=no"
12196fi
12197rm -f conftest.$ac_objext conftest.$ac_ext
12198fi
12199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12201if test `eval echo '${'$as_ac_Header'}'` = yes; then
12202 cat >>confdefs.h <<_ACEOF
12203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12204_ACEOF
12205
12206fi
12207
a0b9e27f 12208done
90dd450c 12209
e6cc62c6
VS
12210
12211
12212for ac_header in strings.h
21d1c967 12213do
e6cc62c6
VS
12214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12215if eval "test \"\${$as_ac_Header+set}\" = set"; then
12216 echo "$as_me:$LINENO: checking for $ac_header" >&5
12217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12218if eval "test \"\${$as_ac_Header+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220fi
12221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12223else
12224 # Is the header compilable?
12225echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12227cat >conftest.$ac_ext <<_ACEOF
12228#line $LINENO "configure"
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234$ac_includes_default
12235#include <$ac_header>
12236_ACEOF
12237rm -f conftest.$ac_objext
12238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -s conftest.$ac_objext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_header_compiler=yes
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254ac_header_compiler=no
12255fi
12256rm -f conftest.$ac_objext conftest.$ac_ext
12257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12258echo "${ECHO_T}$ac_header_compiler" >&6
12259
12260# Is the header present?
12261echo "$as_me:$LINENO: checking $ac_header presence" >&5
12262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12263cat >conftest.$ac_ext <<_ACEOF
12264#line $LINENO "configure"
12265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270#include <$ac_header>
12271_ACEOF
12272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } >/dev/null; then
12280 if test -s conftest.err; then
12281 ac_cpp_err=$ac_c_preproc_warn_flag
12282 else
12283 ac_cpp_err=
12284 fi
12285else
12286 ac_cpp_err=yes
12287fi
12288if test -z "$ac_cpp_err"; then
12289 ac_header_preproc=yes
12290else
12291 echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_header_preproc=no
12295fi
12296rm -f conftest.err conftest.$ac_ext
12297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12298echo "${ECHO_T}$ac_header_preproc" >&6
12299
12300# So? What about this header?
12301case $ac_header_compiler:$ac_header_preproc in
12302 yes:no )
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12307 (
12308 cat <<\_ASBOX
12309## ------------------------------------ ##
12310## Report this to bug-autoconf@gnu.org. ##
12311## ------------------------------------ ##
12312_ASBOX
12313 ) |
12314 sed "s/^/$as_me: WARNING: /" >&2
12315 ;;
12316 no:yes )
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323 (
12324 cat <<\_ASBOX
12325## ------------------------------------ ##
12326## Report this to bug-autoconf@gnu.org. ##
12327## ------------------------------------ ##
12328_ASBOX
12329 ) |
12330 sed "s/^/$as_me: WARNING: /" >&2
12331 ;;
12332esac
12333echo "$as_me:$LINENO: checking for $ac_header" >&5
12334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12335if eval "test \"\${$as_ac_Header+set}\" = set"; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12339fi
e6cc62c6
VS
12340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12342
a0b9e27f 12343fi
e6cc62c6
VS
12344if test `eval echo '${'$as_ac_Header'}'` = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12347_ACEOF
12348
12349fi
12350
12351done
12352
e6cc62c6
VS
12353
12354
12355for ac_header in stdlib.h
12356do
12357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12358if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo "$as_me:$LINENO: checking for $ac_header" >&5
12360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12361if eval "test \"\${$as_ac_Header+set}\" = set"; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363fi
12364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12366else
12367 # Is the header compilable?
12368echo "$as_me:$LINENO: checking $ac_header usability" >&5
12369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12370cat >conftest.$ac_ext <<_ACEOF
12371#line $LINENO "configure"
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h. */
12377$ac_includes_default
12378#include <$ac_header>
12379_ACEOF
12380rm -f conftest.$ac_objext
12381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12382 (eval $ac_compile) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_header_compiler=yes
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397ac_header_compiler=no
12398fi
12399rm -f conftest.$ac_objext conftest.$ac_ext
12400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12401echo "${ECHO_T}$ac_header_compiler" >&6
12402
12403# Is the header present?
12404echo "$as_me:$LINENO: checking $ac_header presence" >&5
12405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12406cat >conftest.$ac_ext <<_ACEOF
12407#line $LINENO "configure"
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413#include <$ac_header>
12414_ACEOF
12415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } >/dev/null; then
12423 if test -s conftest.err; then
12424 ac_cpp_err=$ac_c_preproc_warn_flag
12425 else
12426 ac_cpp_err=
12427 fi
12428else
12429 ac_cpp_err=yes
12430fi
12431if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439rm -f conftest.err conftest.$ac_ext
12440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12441echo "${ECHO_T}$ac_header_preproc" >&6
12442
12443# So? What about this header?
12444case $ac_header_compiler:$ac_header_preproc in
12445 yes:no )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12450 (
12451 cat <<\_ASBOX
12452## ------------------------------------ ##
12453## Report this to bug-autoconf@gnu.org. ##
12454## ------------------------------------ ##
12455_ASBOX
12456 ) |
12457 sed "s/^/$as_me: WARNING: /" >&2
12458 ;;
12459 no:yes )
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12466 (
12467 cat <<\_ASBOX
12468## ------------------------------------ ##
12469## Report this to bug-autoconf@gnu.org. ##
12470## ------------------------------------ ##
12471_ASBOX
12472 ) |
12473 sed "s/^/$as_me: WARNING: /" >&2
12474 ;;
12475esac
12476echo "$as_me:$LINENO: checking for $ac_header" >&5
12477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12478if eval "test \"\${$as_ac_Header+set}\" = set"; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12480else
e6cc62c6
VS
12481 eval "$as_ac_Header=$ac_header_preproc"
12482fi
12483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12485
21d1c967 12486fi
e6cc62c6
VS
12487if test `eval echo '${'$as_ac_Header'}'` = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12490_ACEOF
12491
12492fi
12493
21d1c967 12494done
4f14bcd8 12495
5c6fa7d2 12496
e6cc62c6 12497for ac_header in malloc.h
21d1c967 12498do
e6cc62c6
VS
12499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500if eval "test \"\${$as_ac_Header+set}\" = set"; then
12501 echo "$as_me:$LINENO: checking for $ac_header" >&5
12502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505fi
12506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12508else
12509 # Is the header compilable?
12510echo "$as_me:$LINENO: checking $ac_header usability" >&5
12511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12512cat >conftest.$ac_ext <<_ACEOF
12513#line $LINENO "configure"
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519$ac_includes_default
12520#include <$ac_header>
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler=yes
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
12539ac_header_compiler=no
12540fi
12541rm -f conftest.$ac_objext conftest.$ac_ext
12542echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12543echo "${ECHO_T}$ac_header_compiler" >&6
12544
12545# Is the header present?
12546echo "$as_me:$LINENO: checking $ac_header presence" >&5
12547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12548cat >conftest.$ac_ext <<_ACEOF
12549#line $LINENO "configure"
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555#include <$ac_header>
12556_ACEOF
12557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } >/dev/null; then
12565 if test -s conftest.err; then
12566 ac_cpp_err=$ac_c_preproc_warn_flag
12567 else
12568 ac_cpp_err=
12569 fi
12570else
12571 ac_cpp_err=yes
12572fi
12573if test -z "$ac_cpp_err"; then
12574 ac_header_preproc=yes
12575else
12576 echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_header_preproc=no
12580fi
12581rm -f conftest.err conftest.$ac_ext
12582echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583echo "${ECHO_T}$ac_header_preproc" >&6
12584
12585# So? What about this header?
12586case $ac_header_compiler:$ac_header_preproc in
12587 yes:no )
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12589echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12592 (
12593 cat <<\_ASBOX
12594## ------------------------------------ ##
12595## Report this to bug-autoconf@gnu.org. ##
12596## ------------------------------------ ##
12597_ASBOX
12598 ) |
12599 sed "s/^/$as_me: WARNING: /" >&2
12600 ;;
12601 no:yes )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12608 (
12609 cat <<\_ASBOX
12610## ------------------------------------ ##
12611## Report this to bug-autoconf@gnu.org. ##
12612## ------------------------------------ ##
12613_ASBOX
12614 ) |
12615 sed "s/^/$as_me: WARNING: /" >&2
12616 ;;
12617esac
12618echo "$as_me:$LINENO: checking for $ac_header" >&5
12619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12624fi
e6cc62c6
VS
12625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627
21d1c967 12628fi
e6cc62c6
VS
12629if test `eval echo '${'$as_ac_Header'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632_ACEOF
12633
12634fi
12635
12636done
12637
12638
12639for ac_header in unistd.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642if eval "test \"\${$as_ac_Header+set}\" = set"; then
12643 echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12645if eval "test \"\${$as_ac_Header+set}\" = set"; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647fi
12648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12650else
12651 # Is the header compilable?
12652echo "$as_me:$LINENO: checking $ac_header usability" >&5
12653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12654cat >conftest.$ac_ext <<_ACEOF
12655#line $LINENO "configure"
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
12662#include <$ac_header>
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -s conftest.$ac_objext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_header_compiler=yes
12677else
12678 echo "$as_me: failed program was:" >&5
12679sed 's/^/| /' conftest.$ac_ext >&5
12680
12681ac_header_compiler=no
12682fi
12683rm -f conftest.$ac_objext conftest.$ac_ext
12684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12685echo "${ECHO_T}$ac_header_compiler" >&6
12686
12687# Is the header present?
12688echo "$as_me:$LINENO: checking $ac_header presence" >&5
12689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12690cat >conftest.$ac_ext <<_ACEOF
12691#line $LINENO "configure"
12692/* confdefs.h. */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h. */
12697#include <$ac_header>
12698_ACEOF
12699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } >/dev/null; then
12707 if test -s conftest.err; then
12708 ac_cpp_err=$ac_c_preproc_warn_flag
12709 else
12710 ac_cpp_err=
12711 fi
a0b9e27f 12712else
e6cc62c6
VS
12713 ac_cpp_err=yes
12714fi
12715if test -z "$ac_cpp_err"; then
12716 ac_header_preproc=yes
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_header_preproc=no
12722fi
12723rm -f conftest.err conftest.$ac_ext
12724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12725echo "${ECHO_T}$ac_header_preproc" >&6
12726
12727# So? What about this header?
12728case $ac_header_compiler:$ac_header_preproc in
12729 yes:no )
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12734 (
12735 cat <<\_ASBOX
12736## ------------------------------------ ##
12737## Report this to bug-autoconf@gnu.org. ##
12738## ------------------------------------ ##
12739_ASBOX
12740 ) |
12741 sed "s/^/$as_me: WARNING: /" >&2
12742 ;;
12743 no:yes )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12750 (
12751 cat <<\_ASBOX
12752## ------------------------------------ ##
12753## Report this to bug-autoconf@gnu.org. ##
12754## ------------------------------------ ##
12755_ASBOX
12756 ) |
12757 sed "s/^/$as_me: WARNING: /" >&2
12758 ;;
12759esac
12760echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12762if eval "test \"\${$as_ac_Header+set}\" = set"; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 eval "$as_ac_Header=$ac_header_preproc"
12766fi
12767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12769
12770fi
12771if test `eval echo '${'$as_ac_Header'}'` = yes; then
12772 cat >>confdefs.h <<_ACEOF
12773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12774_ACEOF
12775
d4158b5d 12776fi
e6cc62c6 12777
21d1c967 12778done
f6bcfd97 12779
e6cc62c6
VS
12780
12781for ac_header in wchar.h
12782do
12783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12784if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo "$as_me:$LINENO: checking for $ac_header" >&5
12786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12787if eval "test \"\${$as_ac_Header+set}\" = set"; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789fi
12790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12792else
12793 # Is the header compilable?
12794echo "$as_me:$LINENO: checking $ac_header usability" >&5
12795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12796cat >conftest.$ac_ext <<_ACEOF
12797#line $LINENO "configure"
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803$ac_includes_default
12804#include <$ac_header>
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_header_compiler=yes
12819else
12820 echo "$as_me: failed program was:" >&5
12821sed 's/^/| /' conftest.$ac_ext >&5
12822
12823ac_header_compiler=no
12824fi
12825rm -f conftest.$ac_objext conftest.$ac_ext
12826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12827echo "${ECHO_T}$ac_header_compiler" >&6
12828
12829# Is the header present?
12830echo "$as_me:$LINENO: checking $ac_header presence" >&5
12831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12832cat >conftest.$ac_ext <<_ACEOF
12833#line $LINENO "configure"
12834/* confdefs.h. */
12835_ACEOF
12836cat confdefs.h >>conftest.$ac_ext
12837cat >>conftest.$ac_ext <<_ACEOF
12838/* end confdefs.h. */
12839#include <$ac_header>
12840_ACEOF
12841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev/null; then
12849 if test -s conftest.err; then
12850 ac_cpp_err=$ac_c_preproc_warn_flag
12851 else
12852 ac_cpp_err=
12853 fi
12854else
12855 ac_cpp_err=yes
12856fi
12857if test -z "$ac_cpp_err"; then
12858 ac_header_preproc=yes
12859else
12860 echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_header_preproc=no
12864fi
12865rm -f conftest.err conftest.$ac_ext
12866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867echo "${ECHO_T}$ac_header_preproc" >&6
12868
12869# So? What about this header?
12870case $ac_header_compiler:$ac_header_preproc in
12871 yes:no )
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12876 (
12877 cat <<\_ASBOX
12878## ------------------------------------ ##
12879## Report this to bug-autoconf@gnu.org. ##
12880## ------------------------------------ ##
12881_ASBOX
12882 ) |
12883 sed "s/^/$as_me: WARNING: /" >&2
12884 ;;
12885 no:yes )
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12892 (
12893 cat <<\_ASBOX
12894## ------------------------------------ ##
12895## Report this to bug-autoconf@gnu.org. ##
12896## ------------------------------------ ##
12897_ASBOX
12898 ) |
12899 sed "s/^/$as_me: WARNING: /" >&2
12900 ;;
12901esac
12902echo "$as_me:$LINENO: checking for $ac_header" >&5
12903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906else
12907 eval "$as_ac_Header=$ac_header_preproc"
12908fi
12909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12911
90dd450c 12912fi
e6cc62c6
VS
12913if test `eval echo '${'$as_ac_Header'}'` = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12916_ACEOF
12917
12918fi
12919
12920done
90dd450c 12921
e6cc62c6
VS
12922
12923if test "$ac_cv_header_wchar_h" != "yes"; then
12924
12925for ac_header in wcstr.h
21d1c967 12926do
e6cc62c6
VS
12927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo "$as_me:$LINENO: checking for $ac_header" >&5
12930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933fi
12934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936else
12937 # Is the header compilable?
12938echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940cat >conftest.$ac_ext <<_ACEOF
12941#line $LINENO "configure"
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947$ac_includes_default
12948#include <$ac_header>
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952 (eval $ac_compile) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_header_compiler=yes
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_header_compiler=no
12968fi
12969rm -f conftest.$ac_objext conftest.$ac_ext
12970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12971echo "${ECHO_T}$ac_header_compiler" >&6
12972
12973# Is the header present?
12974echo "$as_me:$LINENO: checking $ac_header presence" >&5
12975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12976cat >conftest.$ac_ext <<_ACEOF
12977#line $LINENO "configure"
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983#include <$ac_header>
12984_ACEOF
12985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } >/dev/null; then
12993 if test -s conftest.err; then
12994 ac_cpp_err=$ac_c_preproc_warn_flag
12995 else
12996 ac_cpp_err=
12997 fi
12998else
12999 ac_cpp_err=yes
13000fi
13001if test -z "$ac_cpp_err"; then
13002 ac_header_preproc=yes
13003else
13004 echo "$as_me: failed program was:" >&5
13005sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 ac_header_preproc=no
13008fi
13009rm -f conftest.err conftest.$ac_ext
13010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13011echo "${ECHO_T}$ac_header_preproc" >&6
13012
13013# So? What about this header?
13014case $ac_header_compiler:$ac_header_preproc in
13015 yes:no )
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13020 (
13021 cat <<\_ASBOX
13022## ------------------------------------ ##
13023## Report this to bug-autoconf@gnu.org. ##
13024## ------------------------------------ ##
13025_ASBOX
13026 ) |
13027 sed "s/^/$as_me: WARNING: /" >&2
13028 ;;
13029 no:yes )
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13036 (
13037 cat <<\_ASBOX
13038## ------------------------------------ ##
13039## Report this to bug-autoconf@gnu.org. ##
13040## ------------------------------------ ##
13041_ASBOX
13042 ) |
13043 sed "s/^/$as_me: WARNING: /" >&2
13044 ;;
13045esac
13046echo "$as_me:$LINENO: checking for $ac_header" >&5
13047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13048if eval "test \"\${$as_ac_Header+set}\" = set"; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13050else
13051 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13052fi
e6cc62c6
VS
13053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13054echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13055
4f14bcd8 13056fi
e6cc62c6
VS
13057if test `eval echo '${'$as_ac_Header'}'` = yes; then
13058 cat >>confdefs.h <<_ACEOF
13059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13060_ACEOF
13061
13062fi
13063
13064done
13065
13066fi
13067
13068
13069for ac_header in fnmatch.h
13070do
13071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13072if eval "test \"\${$as_ac_Header+set}\" = set"; then
13073 echo "$as_me:$LINENO: checking for $ac_header" >&5
13074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13075if eval "test \"\${$as_ac_Header+set}\" = set"; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077fi
13078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13080else
13081 # Is the header compilable?
13082echo "$as_me:$LINENO: checking $ac_header usability" >&5
13083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13084cat >conftest.$ac_ext <<_ACEOF
13085#line $LINENO "configure"
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
13091$ac_includes_default
13092#include <$ac_header>
13093_ACEOF
13094rm -f conftest.$ac_objext
13095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_header_compiler=yes
13107else
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111ac_header_compiler=no
13112fi
13113rm -f conftest.$ac_objext conftest.$ac_ext
13114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13115echo "${ECHO_T}$ac_header_compiler" >&6
13116
13117# Is the header present?
13118echo "$as_me:$LINENO: checking $ac_header presence" >&5
13119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13120cat >conftest.$ac_ext <<_ACEOF
13121#line $LINENO "configure"
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127#include <$ac_header>
13128_ACEOF
13129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } >/dev/null; then
13137 if test -s conftest.err; then
13138 ac_cpp_err=$ac_c_preproc_warn_flag
13139 else
13140 ac_cpp_err=
13141 fi
13142else
13143 ac_cpp_err=yes
13144fi
13145if test -z "$ac_cpp_err"; then
13146 ac_header_preproc=yes
13147else
13148 echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_header_preproc=no
13152fi
13153rm -f conftest.err conftest.$ac_ext
13154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13155echo "${ECHO_T}$ac_header_preproc" >&6
13156
13157# So? What about this header?
13158case $ac_header_compiler:$ac_header_preproc in
13159 yes:no )
13160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13164 (
13165 cat <<\_ASBOX
13166## ------------------------------------ ##
13167## Report this to bug-autoconf@gnu.org. ##
13168## ------------------------------------ ##
13169_ASBOX
13170 ) |
13171 sed "s/^/$as_me: WARNING: /" >&2
13172 ;;
13173 no:yes )
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13180 (
13181 cat <<\_ASBOX
13182## ------------------------------------ ##
13183## Report this to bug-autoconf@gnu.org. ##
13184## ------------------------------------ ##
13185_ASBOX
13186 ) |
13187 sed "s/^/$as_me: WARNING: /" >&2
13188 ;;
13189esac
13190echo "$as_me:$LINENO: checking for $ac_header" >&5
13191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13192if eval "test \"\${$as_ac_Header+set}\" = set"; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13194else
e6cc62c6
VS
13195 eval "$as_ac_Header=$ac_header_preproc"
13196fi
13197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13199
21d1c967 13200fi
e6cc62c6
VS
13201if test `eval echo '${'$as_ac_Header'}'` = yes; then
13202 cat >>confdefs.h <<_ACEOF
13203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204_ACEOF
13205
13206fi
13207
21d1c967 13208done
90dd450c 13209
5c6fa7d2 13210
a0b9e27f 13211if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13212
13213for ac_func in fnmatch
21d1c967 13214do
e6cc62c6
VS
13215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216echo "$as_me:$LINENO: checking for $ac_func" >&5
13217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13218if eval "test \"\${$as_ac_var+set}\" = set"; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220else
13221 cat >conftest.$ac_ext <<_ACEOF
13222#line $LINENO "configure"
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h. */
a0b9e27f 13228/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13229 which can conflict with char $ac_func (); below.
13230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13231 <limits.h> exists even on freestanding compilers. */
13232#ifdef __STDC__
13233# include <limits.h>
13234#else
13235# include <assert.h>
13236#endif
a0b9e27f 13237/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13238#ifdef __cplusplus
13239extern "C"
13240{
13241#endif
a0b9e27f 13242/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13243 builtin and then its argument prototype would still apply. */
13244char $ac_func ();
a0b9e27f
MB
13245/* The GNU C library defines this for functions which it implements
13246 to always fail with ENOSYS. Some functions are actually named
13247 something starting with __ and the normal name is an alias. */
13248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13249choke me
13250#else
e6cc62c6
VS
13251char (*f) () = $ac_func;
13252#endif
13253#ifdef __cplusplus
13254}
a0b9e27f
MB
13255#endif
13256
e6cc62c6
VS
13257int
13258main ()
13259{
13260return f != $ac_func;
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 eval "$as_ac_var=yes"
13278else
13279 echo "$as_me: failed program was:" >&5
13280sed 's/^/| /' conftest.$ac_ext >&5
13281
13282eval "$as_ac_var=no"
13283fi
13284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13285fi
13286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13288if test `eval echo '${'$as_ac_var'}'` = yes; then
13289 cat >>confdefs.h <<_ACEOF
13290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13291_ACEOF
32832908 13292
21d1c967
GD
13293fi
13294done
90dd450c 13295
a0b9e27f 13296fi
90dd450c 13297
e6cc62c6
VS
13298
13299for ac_header in langinfo.h
21d1c967 13300do
e6cc62c6
VS
13301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13302if eval "test \"\${$as_ac_Header+set}\" = set"; then
13303 echo "$as_me:$LINENO: checking for $ac_header" >&5
13304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13305if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307fi
13308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13310else
13311 # Is the header compilable?
13312echo "$as_me:$LINENO: checking $ac_header usability" >&5
13313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13314cat >conftest.$ac_ext <<_ACEOF
13315#line $LINENO "configure"
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321$ac_includes_default
13322#include <$ac_header>
13323_ACEOF
13324rm -f conftest.$ac_objext
13325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_header_compiler=yes
13337else
13338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341ac_header_compiler=no
13342fi
13343rm -f conftest.$ac_objext conftest.$ac_ext
13344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345echo "${ECHO_T}$ac_header_compiler" >&6
13346
13347# Is the header present?
13348echo "$as_me:$LINENO: checking $ac_header presence" >&5
13349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13350cat >conftest.$ac_ext <<_ACEOF
13351#line $LINENO "configure"
13352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357#include <$ac_header>
13358_ACEOF
13359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13361 ac_status=$?
13362 grep -v '^ *+' conftest.er1 >conftest.err
13363 rm -f conftest.er1
13364 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } >/dev/null; then
13367 if test -s conftest.err; then
13368 ac_cpp_err=$ac_c_preproc_warn_flag
13369 else
13370 ac_cpp_err=
13371 fi
13372else
13373 ac_cpp_err=yes
13374fi
13375if test -z "$ac_cpp_err"; then
13376 ac_header_preproc=yes
13377else
13378 echo "$as_me: failed program was:" >&5
13379sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_header_preproc=no
13382fi
13383rm -f conftest.err conftest.$ac_ext
13384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13385echo "${ECHO_T}$ac_header_preproc" >&6
13386
13387# So? What about this header?
13388case $ac_header_compiler:$ac_header_preproc in
13389 yes:no )
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13394 (
13395 cat <<\_ASBOX
13396## ------------------------------------ ##
13397## Report this to bug-autoconf@gnu.org. ##
13398## ------------------------------------ ##
13399_ASBOX
13400 ) |
13401 sed "s/^/$as_me: WARNING: /" >&2
13402 ;;
13403 no:yes )
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13410 (
13411 cat <<\_ASBOX
13412## ------------------------------------ ##
13413## Report this to bug-autoconf@gnu.org. ##
13414## ------------------------------------ ##
13415_ASBOX
13416 ) |
13417 sed "s/^/$as_me: WARNING: /" >&2
13418 ;;
13419esac
13420echo "$as_me:$LINENO: checking for $ac_header" >&5
13421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13422if eval "test \"\${$as_ac_Header+set}\" = set"; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424else
13425 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13426fi
e6cc62c6
VS
13427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429
4f14bcd8 13430fi
e6cc62c6
VS
13431if test `eval echo '${'$as_ac_Header'}'` = yes; then
13432 cat >>confdefs.h <<_ACEOF
13433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434_ACEOF
13435
21d1c967 13436fi
e6cc62c6 13437
21d1c967 13438done
3a922bb4 13439
8284b0c5 13440
4f5a7f74
VZ
13441case "${host}" in
13442 *-pc-os2_emx | *-pc-os2-emx )
13443 if test $ac_cv_header_langinfo_h = "yes"; then
13444 LIBS="$LIBS -lintl"
13445 fi
13446 ;;
13447esac
1542ea39 13448
a0b9e27f
MB
13449if test "$wxUSE_GUI" = "yes"; then
13450 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13451
13452for ac_header in X11/XKBlib.h
21d1c967 13453do
e6cc62c6
VS
13454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463else
13464 # Is the header compilable?
13465echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13467cat >conftest.$ac_ext <<_ACEOF
13468#line $LINENO "configure"
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
13474$ac_includes_default
13475#include <$ac_header>
13476_ACEOF
13477rm -f conftest.$ac_objext
13478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_header_compiler=yes
13490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494ac_header_compiler=no
13495fi
13496rm -f conftest.$ac_objext conftest.$ac_ext
13497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13498echo "${ECHO_T}$ac_header_compiler" >&6
13499
13500# Is the header present?
13501echo "$as_me:$LINENO: checking $ac_header presence" >&5
13502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13503cat >conftest.$ac_ext <<_ACEOF
13504#line $LINENO "configure"
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510#include <$ac_header>
13511_ACEOF
13512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } >/dev/null; then
13520 if test -s conftest.err; then
13521 ac_cpp_err=$ac_c_preproc_warn_flag
13522 else
13523 ac_cpp_err=
13524 fi
13525else
13526 ac_cpp_err=yes
13527fi
13528if test -z "$ac_cpp_err"; then
13529 ac_header_preproc=yes
13530else
13531 echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ac_header_preproc=no
13535fi
13536rm -f conftest.err conftest.$ac_ext
13537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13538echo "${ECHO_T}$ac_header_preproc" >&6
13539
13540# So? What about this header?
13541case $ac_header_compiler:$ac_header_preproc in
13542 yes:no )
13543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13547 (
13548 cat <<\_ASBOX
13549## ------------------------------------ ##
13550## Report this to bug-autoconf@gnu.org. ##
13551## ------------------------------------ ##
13552_ASBOX
13553 ) |
13554 sed "s/^/$as_me: WARNING: /" >&2
13555 ;;
13556 no:yes )
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13563 (
13564 cat <<\_ASBOX
13565## ------------------------------------ ##
13566## Report this to bug-autoconf@gnu.org. ##
13567## ------------------------------------ ##
13568_ASBOX
13569 ) |
13570 sed "s/^/$as_me: WARNING: /" >&2
13571 ;;
13572esac
13573echo "$as_me:$LINENO: checking for $ac_header" >&5
13574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13575if eval "test \"\${$as_ac_Header+set}\" = set"; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577else
13578 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13579fi
e6cc62c6
VS
13580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13582
90dd450c 13583fi
e6cc62c6
VS
13584if test `eval echo '${'$as_ac_Header'}'` = yes; then
13585 cat >>confdefs.h <<_ACEOF
13586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13587_ACEOF
13588
247f5006 13589fi
e6cc62c6 13590
247f5006
VZ
13591done
13592
a0b9e27f
MB
13593 fi
13594fi
247f5006 13595
247f5006 13596
e6cc62c6
VS
13597echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13598echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13599if test "${ac_cv_c_const+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 cat >conftest.$ac_ext <<_ACEOF
13603#line $LINENO "configure"
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609
13610int
13611main ()
13612{
13613/* FIXME: Include the comments suggested by Paul. */
13614#ifndef __cplusplus
13615 /* Ultrix mips cc rejects this. */
13616 typedef int charset[2];
13617 const charset x;
13618 /* SunOS 4.1.1 cc rejects this. */
13619 char const *const *ccp;
13620 char **p;
13621 /* NEC SVR4.0.2 mips cc rejects this. */
13622 struct point {int x, y;};
13623 static struct point const zero = {0,0};
13624 /* AIX XL C 1.02.0.0 rejects this.
13625 It does not let you subtract one const X* pointer from another in
13626 an arm of an if-expression whose if-part is not a constant
13627 expression */
13628 const char *g = "string";
13629 ccp = &g + (g ? g-g : 0);
13630 /* HPUX 7.0 cc rejects these. */
13631 ++ccp;
13632 p = (char**) ccp;
13633 ccp = (char const *const *) p;
13634 { /* SCO 3.2v4 cc rejects this. */
13635 char *t;
13636 char const *s = 0 ? (char *) 0 : (char const *) 0;
13637
13638 *t++ = 0;
13639 }
13640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13641 int x[] = {25, 17};
13642 const int *foo = &x[0];
13643 ++foo;
13644 }
13645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13646 typedef const int *iptr;
13647 iptr p = 0;
13648 ++p;
13649 }
13650 { /* AIX XL C 1.02.0.0 rejects this saying
13651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13652 struct s { int j; const int *ap[3]; };
13653 struct s *b; b->j = 5;
13654 }
13655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13656 const int foo = 10;
13657 }
13658#endif
13659
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext
13665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
a0b9e27f 13676 ac_cv_c_const=yes
247f5006 13677else
e6cc62c6
VS
13678 echo "$as_me: failed program was:" >&5
13679sed 's/^/| /' conftest.$ac_ext >&5
13680
13681ac_cv_c_const=no
247f5006 13682fi
e6cc62c6 13683rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13684fi
e6cc62c6
VS
13685echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13686echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13687if test $ac_cv_c_const = no; then
e6cc62c6
VS
13688
13689cat >>confdefs.h <<\_ACEOF
13690#define const
13691_ACEOF
10f2d63a 13692
90dd450c 13693fi
81809c07 13694
e6cc62c6
VS
13695echo "$as_me:$LINENO: checking for inline" >&5
13696echo $ECHO_N "checking for inline... $ECHO_C" >&6
13697if test "${ac_cv_c_inline+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13699else
a0b9e27f
MB
13700 ac_cv_c_inline=no
13701for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13702 cat >conftest.$ac_ext <<_ACEOF
13703#line $LINENO "configure"
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#ifndef __cplusplus
13710typedef int foo_t;
13711static $ac_kw foo_t static_foo () {return 0; }
13712$ac_kw foo_t foo () {return 0; }
13713#endif
a0b9e27f 13714
e6cc62c6
VS
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
a0b9e27f 13728 ac_cv_c_inline=$ac_kw; break
247f5006 13729else
e6cc62c6
VS
13730 echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
247f5006 13733fi
e6cc62c6 13734rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13735done
247f5006
VZ
13736
13737fi
e6cc62c6
VS
13738echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13739echo "${ECHO_T}$ac_cv_c_inline" >&6
13740case $ac_cv_c_inline in
a0b9e27f 13741 inline | yes) ;;
e6cc62c6
VS
13742 no)
13743cat >>confdefs.h <<\_ACEOF
13744#define inline
13745_ACEOF
a0b9e27f 13746 ;;
e6cc62c6 13747 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13748#define inline $ac_cv_c_inline
e6cc62c6 13749_ACEOF
a0b9e27f
MB
13750 ;;
13751esac
247f5006 13752
247f5006 13753
e6cc62c6
VS
13754echo "$as_me:$LINENO: checking for char" >&5
13755echo $ECHO_N "checking for char... $ECHO_C" >&6
13756if test "${ac_cv_type_char+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 cat >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{
13770if ((char *) 0)
13771 return 0;
13772if (sizeof (char))
13773 return 0;
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778rm -f conftest.$ac_objext
13779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_type_char=yes
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795ac_cv_type_char=no
13796fi
13797rm -f conftest.$ac_objext conftest.$ac_ext
13798fi
13799echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13800echo "${ECHO_T}$ac_cv_type_char" >&6
13801
13802echo "$as_me:$LINENO: checking size of char" >&5
13803echo $ECHO_N "checking size of char... $ECHO_C" >&6
13804if test "${ac_cv_sizeof_char+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 if test "$ac_cv_type_char" = yes; then
13808 # The cast to unsigned long works around a bug in the HP C Compiler
13809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13811 # This bug is HP SR number 8606223364.
a0b9e27f 13812 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13813 # Depending upon the size, compute the lo and hi bounds.
13814cat >conftest.$ac_ext <<_ACEOF
13815#line $LINENO "configure"
13816/* confdefs.h. */
13817_ACEOF
13818cat confdefs.h >>conftest.$ac_ext
13819cat >>conftest.$ac_ext <<_ACEOF
13820/* end confdefs.h. */
13821$ac_includes_default
13822int
13823main ()
13824{
13825static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13826test_array [0] = 0
13827
13828 ;
13829 return 0;
13830}
13831_ACEOF
13832rm -f conftest.$ac_objext
13833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_lo=0 ac_mid=0
13845 while :; do
13846 cat >conftest.$ac_ext <<_ACEOF
13847#line $LINENO "configure"
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
13853$ac_includes_default
13854int
13855main ()
13856{
13857static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13858test_array [0] = 0
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext
13865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_hi=$ac_mid; break
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881ac_lo=`expr $ac_mid + 1`
13882 if test $ac_lo -le $ac_mid; then
13883 ac_lo= ac_hi=
13884 break
13885 fi
13886 ac_mid=`expr 2 '*' $ac_mid + 1`
13887fi
13888rm -f conftest.$ac_objext conftest.$ac_ext
13889 done
a0b9e27f 13890else
e6cc62c6
VS
13891 echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
13893
13894cat >conftest.$ac_ext <<_ACEOF
13895#line $LINENO "configure"
13896/* confdefs.h. */
13897_ACEOF
13898cat confdefs.h >>conftest.$ac_ext
13899cat >>conftest.$ac_ext <<_ACEOF
13900/* end confdefs.h. */
13901$ac_includes_default
13902int
13903main ()
13904{
13905static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13906test_array [0] = 0
13907
13908 ;
13909 return 0;
13910}
13911_ACEOF
13912rm -f conftest.$ac_objext
13913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914 (eval $ac_compile) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_hi=-1 ac_mid=-1
13925 while :; do
13926 cat >conftest.$ac_ext <<_ACEOF
13927#line $LINENO "configure"
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933$ac_includes_default
13934int
13935main ()
13936{
13937static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13938test_array [0] = 0
13939
13940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext
13945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_lo=$ac_mid; break
13957else
13958 echo "$as_me: failed program was:" >&5
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
13961ac_hi=`expr '(' $ac_mid ')' - 1`
13962 if test $ac_mid -le $ac_hi; then
13963 ac_lo= ac_hi=
13964 break
13965 fi
13966 ac_mid=`expr 2 '*' $ac_mid`
13967fi
13968rm -f conftest.$ac_objext conftest.$ac_ext
13969 done
13970else
13971 echo "$as_me: failed program was:" >&5
13972sed 's/^/| /' conftest.$ac_ext >&5
13973
13974ac_lo= ac_hi=
13975fi
13976rm -f conftest.$ac_objext conftest.$ac_ext
13977fi
13978rm -f conftest.$ac_objext conftest.$ac_ext
13979# Binary search between lo and hi bounds.
13980while test "x$ac_lo" != "x$ac_hi"; do
13981 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13990int
13991main ()
13992{
13993static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13994test_array [0] = 0
13995
13996 ;
13997 return 0;
13998}
13999_ACEOF
14000rm -f conftest.$ac_objext
14001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14002 (eval $ac_compile) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_hi=$ac_mid
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017ac_lo=`expr '(' $ac_mid ')' + 1`
14018fi
14019rm -f conftest.$ac_objext conftest.$ac_ext
14020done
14021case $ac_lo in
14022?*) ac_cv_sizeof_char=$ac_lo;;
14023'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14024See \`config.log' for more details." >&5
14025echo "$as_me: error: cannot compute sizeof (char), 77
14026See \`config.log' for more details." >&2;}
14027 { (exit 1); exit 1; }; } ;;
14028esac
14029else
14030 if test "$cross_compiling" = yes; then
14031 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14032See \`config.log' for more details." >&5
14033echo "$as_me: error: cannot run test program while cross compiling
14034See \`config.log' for more details." >&2;}
14035 { (exit 1); exit 1; }; }
14036else
14037 cat >conftest.$ac_ext <<_ACEOF
14038#line $LINENO "configure"
14039/* confdefs.h. */
14040_ACEOF
14041cat confdefs.h >>conftest.$ac_ext
14042cat >>conftest.$ac_ext <<_ACEOF
14043/* end confdefs.h. */
14044$ac_includes_default
14045long longval () { return (long) (sizeof (char)); }
14046unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14047#include <stdio.h>
e6cc62c6
VS
14048#include <stdlib.h>
14049int
14050main ()
247f5006 14051{
e6cc62c6
VS
14052
14053 FILE *f = fopen ("conftest.val", "w");
14054 if (! f)
14055 exit (1);
14056 if (((long) (sizeof (char))) < 0)
14057 {
14058 long i = longval ();
14059 if (i != ((long) (sizeof (char))))
14060 exit (1);
14061 fprintf (f, "%ld\n", i);
14062 }
14063 else
14064 {
14065 unsigned long i = ulongval ();
14066 if (i != ((long) (sizeof (char))))
14067 exit (1);
14068 fprintf (f, "%lu\n", i);
14069 }
14070 exit (ferror (f) || fclose (f) != 0);
14071
14072 ;
14073 return 0;
52127426 14074}
e6cc62c6
VS
14075_ACEOF
14076rm -f conftest$ac_exeext
14077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078 (eval $ac_link) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_sizeof_char=`cat conftest.val`
14088else
14089 echo "$as_me: program exited with status $ac_status" >&5
14090echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093( exit $ac_status )
14094{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14095See \`config.log' for more details." >&5
14096echo "$as_me: error: cannot compute sizeof (char), 77
14097See \`config.log' for more details." >&2;}
14098 { (exit 1); exit 1; }; }
14099fi
14100rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14101fi
14102fi
14103rm -f conftest.val
247f5006 14104else
a0b9e27f 14105 ac_cv_sizeof_char=0
247f5006 14106fi
247f5006 14107fi
e6cc62c6
VS
14108echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14109echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14110cat >>confdefs.h <<_ACEOF
14111#define SIZEOF_CHAR $ac_cv_sizeof_char
14112_ACEOF
14113
14114
14115echo "$as_me:$LINENO: checking for short" >&5
14116echo $ECHO_N "checking for short... $ECHO_C" >&6
14117if test "${ac_cv_type_short+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119else
14120 cat >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{
14131if ((short *) 0)
14132 return 0;
14133if (sizeof (short))
14134 return 0;
14135 ;
14136 return 0;
14137}
14138_ACEOF
14139rm -f conftest.$ac_objext
14140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -s conftest.$ac_objext'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14151 ac_cv_type_short=yes
14152else
14153 echo "$as_me: failed program was:" >&5
14154sed 's/^/| /' conftest.$ac_ext >&5
14155
14156ac_cv_type_short=no
14157fi
14158rm -f conftest.$ac_objext conftest.$ac_ext
14159fi
14160echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14161echo "${ECHO_T}$ac_cv_type_short" >&6
14162
14163echo "$as_me:$LINENO: checking size of short" >&5
14164echo $ECHO_N "checking size of short... $ECHO_C" >&6
14165if test "${ac_cv_sizeof_short+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168 if test "$ac_cv_type_short" = yes; then
14169 # The cast to unsigned long works around a bug in the HP C Compiler
14170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14172 # This bug is HP SR number 8606223364.
14173 if test "$cross_compiling" = yes; then
14174 # Depending upon the size, compute the lo and hi bounds.
14175cat >conftest.$ac_ext <<_ACEOF
14176#line $LINENO "configure"
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
14182$ac_includes_default
14183int
14184main ()
14185{
14186static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14187test_array [0] = 0
247f5006 14188
e6cc62c6
VS
14189 ;
14190 return 0;
14191}
14192_ACEOF
14193rm -f conftest.$ac_objext
14194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_lo=0 ac_mid=0
14206 while :; do
14207 cat >conftest.$ac_ext <<_ACEOF
14208#line $LINENO "configure"
14209/* confdefs.h. */
14210_ACEOF
14211cat confdefs.h >>conftest.$ac_ext
14212cat >>conftest.$ac_ext <<_ACEOF
14213/* end confdefs.h. */
14214$ac_includes_default
14215int
14216main ()
14217{
14218static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14219test_array [0] = 0
14220
14221 ;
14222 return 0;
14223}
14224_ACEOF
14225rm -f conftest.$ac_objext
14226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_hi=$ac_mid; break
14238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242ac_lo=`expr $ac_mid + 1`
14243 if test $ac_lo -le $ac_mid; then
14244 ac_lo= ac_hi=
14245 break
14246 fi
14247 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14248fi
e6cc62c6
VS
14249rm -f conftest.$ac_objext conftest.$ac_ext
14250 done
14251else
14252 echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255cat >conftest.$ac_ext <<_ACEOF
14256#line $LINENO "configure"
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h. */
14262$ac_includes_default
14263int
14264main ()
14265{
14266static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14267test_array [0] = 0
247f5006 14268
e6cc62c6
VS
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext
14274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_hi=-1 ac_mid=-1
14286 while :; do
14287 cat >conftest.$ac_ext <<_ACEOF
14288#line $LINENO "configure"
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h. */
14294$ac_includes_default
14295int
14296main ()
14297{
14298static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14299test_array [0] = 0
247f5006 14300
e6cc62c6
VS
14301 ;
14302 return 0;
14303}
14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_lo=$ac_mid; break
14318else
14319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322ac_hi=`expr '(' $ac_mid ')' - 1`
14323 if test $ac_mid -le $ac_hi; then
14324 ac_lo= ac_hi=
14325 break
14326 fi
14327 ac_mid=`expr 2 '*' $ac_mid`
14328fi
14329rm -f conftest.$ac_objext conftest.$ac_ext
14330 done
247f5006 14331else
e6cc62c6
VS
14332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335ac_lo= ac_hi=
14336fi
14337rm -f conftest.$ac_objext conftest.$ac_ext
14338fi
14339rm -f conftest.$ac_objext conftest.$ac_ext
14340# Binary search between lo and hi bounds.
14341while test "x$ac_lo" != "x$ac_hi"; do
14342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
14351int
14352main ()
14353{
14354static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14355test_array [0] = 0
14356
14357 ;
14358 return 0;
14359}
14360_ACEOF
14361rm -f conftest.$ac_objext
14362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363 (eval $ac_compile) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 ac_hi=$ac_mid
14374else
14375 echo "$as_me: failed program was:" >&5
14376sed 's/^/| /' conftest.$ac_ext >&5
14377
14378ac_lo=`expr '(' $ac_mid ')' + 1`
14379fi
14380rm -f conftest.$ac_objext conftest.$ac_ext
14381done
14382case $ac_lo in
14383?*) ac_cv_sizeof_short=$ac_lo;;
14384'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14385See \`config.log' for more details." >&5
14386echo "$as_me: error: cannot compute sizeof (short), 77
14387See \`config.log' for more details." >&2;}
14388 { (exit 1); exit 1; }; } ;;
14389esac
247f5006 14390else
e6cc62c6
VS
14391 if test "$cross_compiling" = yes; then
14392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14393See \`config.log' for more details." >&5
14394echo "$as_me: error: cannot run test program while cross compiling
14395See \`config.log' for more details." >&2;}
14396 { (exit 1); exit 1; }; }
14397else
14398 cat >conftest.$ac_ext <<_ACEOF
14399#line $LINENO "configure"
14400/* confdefs.h. */
14401_ACEOF
14402cat confdefs.h >>conftest.$ac_ext
14403cat >>conftest.$ac_ext <<_ACEOF
14404/* end confdefs.h. */
14405$ac_includes_default
14406long longval () { return (long) (sizeof (short)); }
14407unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14408#include <stdio.h>
e6cc62c6
VS
14409#include <stdlib.h>
14410int
14411main ()
a0b9e27f 14412{
e6cc62c6
VS
14413
14414 FILE *f = fopen ("conftest.val", "w");
14415 if (! f)
14416 exit (1);
14417 if (((long) (sizeof (short))) < 0)
14418 {
14419 long i = longval ();
14420 if (i != ((long) (sizeof (short))))
14421 exit (1);
14422 fprintf (f, "%ld\n", i);
14423 }
14424 else
14425 {
14426 unsigned long i = ulongval ();
14427 if (i != ((long) (sizeof (short))))
14428 exit (1);
14429 fprintf (f, "%lu\n", i);
14430 }
14431 exit (ferror (f) || fclose (f) != 0);
14432
14433 ;
14434 return 0;
a0b9e27f 14435}
e6cc62c6
VS
14436_ACEOF
14437rm -f conftest$ac_exeext
14438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439 (eval $ac_link) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_sizeof_short=`cat conftest.val`
14449else
14450 echo "$as_me: program exited with status $ac_status" >&5
14451echo "$as_me: failed program was:" >&5
14452sed 's/^/| /' conftest.$ac_ext >&5
14453
14454( exit $ac_status )
14455{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14456See \`config.log' for more details." >&5
14457echo "$as_me: error: cannot compute sizeof (short), 77
14458See \`config.log' for more details." >&2;}
14459 { (exit 1); exit 1; }; }
14460fi
14461rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14462fi
14463fi
14464rm -f conftest.val
247f5006 14465else
a0b9e27f 14466 ac_cv_sizeof_short=0
247f5006 14467fi
247f5006 14468fi
e6cc62c6
VS
14469echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14470echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14471cat >>confdefs.h <<_ACEOF
14472#define SIZEOF_SHORT $ac_cv_sizeof_short
14473_ACEOF
14474
14475
14476echo "$as_me:$LINENO: checking for void *" >&5
14477echo $ECHO_N "checking for void *... $ECHO_C" >&6
14478if test "${ac_cv_type_void_p+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 cat >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{
14492if ((void * *) 0)
14493 return 0;
14494if (sizeof (void *))
14495 return 0;
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext
14501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_type_void_p=yes
14513else
14514 echo "$as_me: failed program was:" >&5
14515sed 's/^/| /' conftest.$ac_ext >&5
14516
14517ac_cv_type_void_p=no
14518fi
14519rm -f conftest.$ac_objext conftest.$ac_ext
14520fi
14521echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14522echo "${ECHO_T}$ac_cv_type_void_p" >&6
14523
14524echo "$as_me:$LINENO: checking size of void *" >&5
14525echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14526if test "${ac_cv_sizeof_void_p+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529 if test "$ac_cv_type_void_p" = yes; then
14530 # The cast to unsigned long works around a bug in the HP C Compiler
14531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14533 # This bug is HP SR number 8606223364.
14534 if test "$cross_compiling" = yes; then
14535 # Depending upon the size, compute the lo and hi bounds.
14536cat >conftest.$ac_ext <<_ACEOF
14537#line $LINENO "configure"
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543$ac_includes_default
14544int
14545main ()
14546{
14547static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14548test_array [0] = 0
14549
14550 ;
14551 return 0;
14552}
14553_ACEOF
14554rm -f conftest.$ac_objext
14555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_lo=0 ac_mid=0
14567 while :; do
14568 cat >conftest.$ac_ext <<_ACEOF
14569#line $LINENO "configure"
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575$ac_includes_default
14576int
14577main ()
14578{
14579static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14580test_array [0] = 0
247f5006 14581
e6cc62c6
VS
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586rm -f conftest.$ac_objext
14587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_hi=$ac_mid; break
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603ac_lo=`expr $ac_mid + 1`
14604 if test $ac_lo -le $ac_mid; then
14605 ac_lo= ac_hi=
14606 break
14607 fi
14608 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14609fi
e6cc62c6
VS
14610rm -f conftest.$ac_objext conftest.$ac_ext
14611 done
14612else
14613 echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
14616cat >conftest.$ac_ext <<_ACEOF
14617#line $LINENO "configure"
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623$ac_includes_default
14624int
14625main ()
14626{
14627static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14628test_array [0] = 0
247f5006 14629
e6cc62c6
VS
14630 ;
14631 return 0;
14632}
14633_ACEOF
14634rm -f conftest.$ac_objext
14635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636 (eval $ac_compile) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 ac_hi=-1 ac_mid=-1
14647 while :; do
14648 cat >conftest.$ac_ext <<_ACEOF
14649#line $LINENO "configure"
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655$ac_includes_default
14656int
14657main ()
14658{
14659static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14660test_array [0] = 0
247f5006 14661
e6cc62c6
VS
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext
14667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_lo=$ac_mid; break
14679else
14680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683ac_hi=`expr '(' $ac_mid ')' - 1`
14684 if test $ac_mid -le $ac_hi; then
14685 ac_lo= ac_hi=
14686 break
14687 fi
14688 ac_mid=`expr 2 '*' $ac_mid`
14689fi
14690rm -f conftest.$ac_objext conftest.$ac_ext
14691 done
a0b9e27f 14692else
e6cc62c6
VS
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696ac_lo= ac_hi=
14697fi
14698rm -f conftest.$ac_objext conftest.$ac_ext
14699fi
14700rm -f conftest.$ac_objext conftest.$ac_ext
14701# Binary search between lo and hi bounds.
14702while test "x$ac_lo" != "x$ac_hi"; do
14703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
14712int
14713main ()
14714{
14715static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14716test_array [0] = 0
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_hi=$ac_mid
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
14739ac_lo=`expr '(' $ac_mid ')' + 1`
14740fi
14741rm -f conftest.$ac_objext conftest.$ac_ext
14742done
14743case $ac_lo in
14744?*) ac_cv_sizeof_void_p=$ac_lo;;
14745'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14746See \`config.log' for more details." >&5
14747echo "$as_me: error: cannot compute sizeof (void *), 77
14748See \`config.log' for more details." >&2;}
14749 { (exit 1); exit 1; }; } ;;
14750esac
247f5006 14751else
e6cc62c6
VS
14752 if test "$cross_compiling" = yes; then
14753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14754See \`config.log' for more details." >&5
14755echo "$as_me: error: cannot run test program while cross compiling
14756See \`config.log' for more details." >&2;}
14757 { (exit 1); exit 1; }; }
14758else
14759 cat >conftest.$ac_ext <<_ACEOF
14760#line $LINENO "configure"
14761/* confdefs.h. */
14762_ACEOF
14763cat confdefs.h >>conftest.$ac_ext
14764cat >>conftest.$ac_ext <<_ACEOF
14765/* end confdefs.h. */
14766$ac_includes_default
14767long longval () { return (long) (sizeof (void *)); }
14768unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14769#include <stdio.h>
e6cc62c6
VS
14770#include <stdlib.h>
14771int
14772main ()
247f5006 14773{
e6cc62c6
VS
14774
14775 FILE *f = fopen ("conftest.val", "w");
14776 if (! f)
14777 exit (1);
14778 if (((long) (sizeof (void *))) < 0)
14779 {
14780 long i = longval ();
14781 if (i != ((long) (sizeof (void *))))
14782 exit (1);
14783 fprintf (f, "%ld\n", i);
14784 }
14785 else
14786 {
14787 unsigned long i = ulongval ();
14788 if (i != ((long) (sizeof (void *))))
14789 exit (1);
14790 fprintf (f, "%lu\n", i);
14791 }
14792 exit (ferror (f) || fclose (f) != 0);
14793
14794 ;
14795 return 0;
5c6fa7d2 14796}
e6cc62c6
VS
14797_ACEOF
14798rm -f conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_cv_sizeof_void_p=`cat conftest.val`
14810else
14811 echo "$as_me: program exited with status $ac_status" >&5
14812echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815( exit $ac_status )
14816{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14817See \`config.log' for more details." >&5
14818echo "$as_me: error: cannot compute sizeof (void *), 77
14819See \`config.log' for more details." >&2;}
14820 { (exit 1); exit 1; }; }
14821fi
14822rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14823fi
14824fi
14825rm -f conftest.val
a0b9e27f 14826else
a0b9e27f
MB
14827 ac_cv_sizeof_void_p=0
14828fi
a0b9e27f 14829fi
e6cc62c6
VS
14830echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14831echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14832cat >>confdefs.h <<_ACEOF
14833#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14834_ACEOF
14835
14836
14837echo "$as_me:$LINENO: checking for int" >&5
14838echo $ECHO_N "checking for int... $ECHO_C" >&6
14839if test "${ac_cv_type_int+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 cat >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{
14853if ((int *) 0)
14854 return 0;
14855if (sizeof (int))
14856 return 0;
14857 ;
14858 return 0;
14859}
14860_ACEOF
14861rm -f conftest.$ac_objext
14862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863 (eval $ac_compile) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_cv_type_int=yes
14874else
14875 echo "$as_me: failed program was:" >&5
14876sed 's/^/| /' conftest.$ac_ext >&5
14877
14878ac_cv_type_int=no
14879fi
14880rm -f conftest.$ac_objext conftest.$ac_ext
14881fi
14882echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14883echo "${ECHO_T}$ac_cv_type_int" >&6
14884
14885echo "$as_me:$LINENO: checking size of int" >&5
14886echo $ECHO_N "checking size of int... $ECHO_C" >&6
14887if test "${ac_cv_sizeof_int+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889else
14890 if test "$ac_cv_type_int" = yes; then
14891 # The cast to unsigned long works around a bug in the HP C Compiler
14892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14894 # This bug is HP SR number 8606223364.
14895 if test "$cross_compiling" = yes; then
14896 # Depending upon the size, compute the lo and hi bounds.
14897cat >conftest.$ac_ext <<_ACEOF
14898#line $LINENO "configure"
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904$ac_includes_default
14905int
14906main ()
14907{
14908static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14909test_array [0] = 0
8284b0c5 14910
e6cc62c6
VS
14911 ;
14912 return 0;
14913}
14914_ACEOF
14915rm -f conftest.$ac_objext
14916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_lo=0 ac_mid=0
14928 while :; do
14929 cat >conftest.$ac_ext <<_ACEOF
14930#line $LINENO "configure"
14931/* confdefs.h. */
14932_ACEOF
14933cat confdefs.h >>conftest.$ac_ext
14934cat >>conftest.$ac_ext <<_ACEOF
14935/* end confdefs.h. */
14936$ac_includes_default
14937int
14938main ()
14939{
14940static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14941test_array [0] = 0
14942
14943 ;
14944 return 0;
14945}
14946_ACEOF
14947rm -f conftest.$ac_objext
14948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949 (eval $ac_compile) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_hi=$ac_mid; break
14960else
14961 echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
14964ac_lo=`expr $ac_mid + 1`
14965 if test $ac_lo -le $ac_mid; then
14966 ac_lo= ac_hi=
14967 break
14968 fi
14969 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14970fi
e6cc62c6
VS
14971rm -f conftest.$ac_objext conftest.$ac_ext
14972 done
14973else
14974 echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977cat >conftest.$ac_ext <<_ACEOF
14978#line $LINENO "configure"
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985int
14986main ()
14987{
14988static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14989test_array [0] = 0
247f5006 14990
e6cc62c6
VS
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext
14996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_hi=-1 ac_mid=-1
15008 while :; do
15009 cat >conftest.$ac_ext <<_ACEOF
15010#line $LINENO "configure"
15011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
15016$ac_includes_default
15017int
15018main ()
15019{
15020static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15021test_array [0] = 0
247f5006 15022
e6cc62c6
VS
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest.$ac_objext
15028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_lo=$ac_mid; break
15040else
15041 echo "$as_me: failed program was:" >&5
15042sed 's/^/| /' conftest.$ac_ext >&5
15043
15044ac_hi=`expr '(' $ac_mid ')' - 1`
15045 if test $ac_mid -le $ac_hi; then
15046 ac_lo= ac_hi=
15047 break
15048 fi
15049 ac_mid=`expr 2 '*' $ac_mid`
15050fi
15051rm -f conftest.$ac_objext conftest.$ac_ext
15052 done
247f5006 15053else
e6cc62c6
VS
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057ac_lo= ac_hi=
15058fi
15059rm -f conftest.$ac_objext conftest.$ac_ext
15060fi
15061rm -f conftest.$ac_objext conftest.$ac_ext
15062# Binary search between lo and hi bounds.
15063while test "x$ac_lo" != "x$ac_hi"; do
15064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
15073int
15074main ()
15075{
15076static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15077test_array [0] = 0
15078
15079 ;
15080 return 0;
15081}
15082_ACEOF
15083rm -f conftest.$ac_objext
15084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_hi=$ac_mid
15096else
15097 echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
15100ac_lo=`expr '(' $ac_mid ')' + 1`
15101fi
15102rm -f conftest.$ac_objext conftest.$ac_ext
15103done
15104case $ac_lo in
15105?*) ac_cv_sizeof_int=$ac_lo;;
15106'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15107See \`config.log' for more details." >&5
15108echo "$as_me: error: cannot compute sizeof (int), 77
15109See \`config.log' for more details." >&2;}
15110 { (exit 1); exit 1; }; } ;;
15111esac
a0b9e27f 15112else
e6cc62c6
VS
15113 if test "$cross_compiling" = yes; then
15114 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15115See \`config.log' for more details." >&5
15116echo "$as_me: error: cannot run test program while cross compiling
15117See \`config.log' for more details." >&2;}
15118 { (exit 1); exit 1; }; }
15119else
15120 cat >conftest.$ac_ext <<_ACEOF
15121#line $LINENO "configure"
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127$ac_includes_default
15128long longval () { return (long) (sizeof (int)); }
15129unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15130#include <stdio.h>
e6cc62c6
VS
15131#include <stdlib.h>
15132int
15133main ()
247f5006 15134{
e6cc62c6
VS
15135
15136 FILE *f = fopen ("conftest.val", "w");
15137 if (! f)
15138 exit (1);
15139 if (((long) (sizeof (int))) < 0)
15140 {
15141 long i = longval ();
15142 if (i != ((long) (sizeof (int))))
15143 exit (1);
15144 fprintf (f, "%ld\n", i);
15145 }
15146 else
15147 {
15148 unsigned long i = ulongval ();
15149 if (i != ((long) (sizeof (int))))
15150 exit (1);
15151 fprintf (f, "%lu\n", i);
15152 }
15153 exit (ferror (f) || fclose (f) != 0);
15154
15155 ;
15156 return 0;
247f5006 15157}
e6cc62c6
VS
15158_ACEOF
15159rm -f conftest$ac_exeext
15160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15161 (eval $ac_link) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_sizeof_int=`cat conftest.val`
15171else
15172 echo "$as_me: program exited with status $ac_status" >&5
15173echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
15176( exit $ac_status )
15177{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15178See \`config.log' for more details." >&5
15179echo "$as_me: error: cannot compute sizeof (int), 77
15180See \`config.log' for more details." >&2;}
15181 { (exit 1); exit 1; }; }
15182fi
15183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15184fi
15185fi
15186rm -f conftest.val
6f72b082 15187else
a0b9e27f 15188 ac_cv_sizeof_int=0
21d1c967 15189fi
698dcdb6 15190fi
e6cc62c6
VS
15191echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15192echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15193cat >>confdefs.h <<_ACEOF
15194#define SIZEOF_INT $ac_cv_sizeof_int
15195_ACEOF
15196
15197
15198echo "$as_me:$LINENO: checking for long" >&5
15199echo $ECHO_N "checking for long... $ECHO_C" >&6
15200if test "${ac_cv_type_long+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 cat >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{
15214if ((long *) 0)
15215 return 0;
15216if (sizeof (long))
15217 return 0;
15218 ;
15219 return 0;
15220}
15221_ACEOF
15222rm -f conftest.$ac_objext
15223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_cv_type_long=yes
15235else
15236 echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239ac_cv_type_long=no
15240fi
15241rm -f conftest.$ac_objext conftest.$ac_ext
15242fi
15243echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15244echo "${ECHO_T}$ac_cv_type_long" >&6
15245
15246echo "$as_me:$LINENO: checking size of long" >&5
15247echo $ECHO_N "checking size of long... $ECHO_C" >&6
15248if test "${ac_cv_sizeof_long+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250else
15251 if test "$ac_cv_type_long" = yes; then
15252 # The cast to unsigned long works around a bug in the HP C Compiler
15253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15255 # This bug is HP SR number 8606223364.
15256 if test "$cross_compiling" = yes; then
15257 # Depending upon the size, compute the lo and hi bounds.
15258cat >conftest.$ac_ext <<_ACEOF
15259#line $LINENO "configure"
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
15265$ac_includes_default
15266int
15267main ()
15268{
15269static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15270test_array [0] = 0
15271
15272 ;
15273 return 0;
15274}
15275_ACEOF
15276rm -f conftest.$ac_objext
15277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_lo=0 ac_mid=0
15289 while :; do
15290 cat >conftest.$ac_ext <<_ACEOF
15291#line $LINENO "configure"
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297$ac_includes_default
15298int
15299main ()
15300{
15301static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15302test_array [0] = 0
4f14bcd8 15303
e6cc62c6
VS
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext
15309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 (eval $ac_compile) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_hi=$ac_mid; break
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325ac_lo=`expr $ac_mid + 1`
15326 if test $ac_lo -le $ac_mid; then
15327 ac_lo= ac_hi=
15328 break
15329 fi
15330 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15331fi
e6cc62c6
VS
15332rm -f conftest.$ac_objext conftest.$ac_ext
15333 done
15334else
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338cat >conftest.$ac_ext <<_ACEOF
15339#line $LINENO "configure"
15340/* confdefs.h. */
15341_ACEOF
15342cat confdefs.h >>conftest.$ac_ext
15343cat >>conftest.$ac_ext <<_ACEOF
15344/* end confdefs.h. */
15345$ac_includes_default
15346int
15347main ()
15348{
15349static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15350test_array [0] = 0
4f14bcd8 15351
e6cc62c6
VS
15352 ;
15353 return 0;
15354}
15355_ACEOF
15356rm -f conftest.$ac_objext
15357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -s conftest.$ac_objext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368 ac_hi=-1 ac_mid=-1
15369 while :; do
15370 cat >conftest.$ac_ext <<_ACEOF
15371#line $LINENO "configure"
15372/* confdefs.h. */
15373_ACEOF
15374cat confdefs.h >>conftest.$ac_ext
15375cat >>conftest.$ac_ext <<_ACEOF
15376/* end confdefs.h. */
15377$ac_includes_default
15378int
15379main ()
15380{
15381static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15382test_array [0] = 0
5c6fa7d2 15383
e6cc62c6
VS
15384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest.$ac_objext
15389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15390 (eval $ac_compile) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_lo=$ac_mid; break
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405ac_hi=`expr '(' $ac_mid ')' - 1`
15406 if test $ac_mid -le $ac_hi; then
15407 ac_lo= ac_hi=
15408 break
15409 fi
15410 ac_mid=`expr 2 '*' $ac_mid`
15411fi
15412rm -f conftest.$ac_objext conftest.$ac_ext
15413 done
247f5006 15414else
e6cc62c6
VS
15415 echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418ac_lo= ac_hi=
15419fi
15420rm -f conftest.$ac_objext conftest.$ac_ext
15421fi
15422rm -f conftest.$ac_objext conftest.$ac_ext
15423# Binary search between lo and hi bounds.
15424while test "x$ac_lo" != "x$ac_hi"; do
15425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
15434int
15435main ()
15436{
15437static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15438test_array [0] = 0
15439
15440 ;
15441 return 0;
15442}
15443_ACEOF
15444rm -f conftest.$ac_objext
15445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_hi=$ac_mid
15457else
15458 echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461ac_lo=`expr '(' $ac_mid ')' + 1`
15462fi
15463rm -f conftest.$ac_objext conftest.$ac_ext
15464done
15465case $ac_lo in
15466?*) ac_cv_sizeof_long=$ac_lo;;
15467'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15468See \`config.log' for more details." >&5
15469echo "$as_me: error: cannot compute sizeof (long), 77
15470See \`config.log' for more details." >&2;}
15471 { (exit 1); exit 1; }; } ;;
15472esac
247f5006 15473else
e6cc62c6
VS
15474 if test "$cross_compiling" = yes; then
15475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15476See \`config.log' for more details." >&5
15477echo "$as_me: error: cannot run test program while cross compiling
15478See \`config.log' for more details." >&2;}
15479 { (exit 1); exit 1; }; }
15480else
15481 cat >conftest.$ac_ext <<_ACEOF
15482#line $LINENO "configure"
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488$ac_includes_default
15489long longval () { return (long) (sizeof (long)); }
15490unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15491#include <stdio.h>
e6cc62c6
VS
15492#include <stdlib.h>
15493int
15494main ()
247f5006 15495{
e6cc62c6
VS
15496
15497 FILE *f = fopen ("conftest.val", "w");
15498 if (! f)
15499 exit (1);
15500 if (((long) (sizeof (long))) < 0)
15501 {
15502 long i = longval ();
15503 if (i != ((long) (sizeof (long))))
15504 exit (1);
15505 fprintf (f, "%ld\n", i);
15506 }
15507 else
15508 {
15509 unsigned long i = ulongval ();
15510 if (i != ((long) (sizeof (long))))
15511 exit (1);
15512 fprintf (f, "%lu\n", i);
15513 }
15514 exit (ferror (f) || fclose (f) != 0);
15515
15516 ;
15517 return 0;
247f5006 15518}
e6cc62c6
VS
15519_ACEOF
15520rm -f conftest$ac_exeext
15521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522 (eval $ac_link) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_cv_sizeof_long=`cat conftest.val`
15532else
15533 echo "$as_me: program exited with status $ac_status" >&5
15534echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537( exit $ac_status )
15538{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15539See \`config.log' for more details." >&5
15540echo "$as_me: error: cannot compute sizeof (long), 77
15541See \`config.log' for more details." >&2;}
15542 { (exit 1); exit 1; }; }
15543fi
15544rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15545fi
15546fi
15547rm -f conftest.val
247f5006 15548else
a0b9e27f 15549 ac_cv_sizeof_long=0
247f5006 15550fi
247f5006 15551fi
e6cc62c6
VS
15552echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15553echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15554cat >>confdefs.h <<_ACEOF
a0b9e27f 15555#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15556_ACEOF
247f5006 15557
a0b9e27f
MB
15558
15559
15560case "${host}" in
15561 arm-*-linux* )
e6cc62c6
VS
15562 echo "$as_me:$LINENO: checking for long long" >&5
15563echo $ECHO_N "checking for long long... $ECHO_C" >&6
15564if test "${ac_cv_type_long_long+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566else
15567 cat >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{
15578if ((long long *) 0)
15579 return 0;
15580if (sizeof (long long))
15581 return 0;
15582 ;
15583 return 0;
15584}
15585_ACEOF
15586rm -f conftest.$ac_objext
15587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_type_long_long=yes
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603ac_cv_type_long_long=no
15604fi
15605rm -f conftest.$ac_objext conftest.$ac_ext
15606fi
15607echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15608echo "${ECHO_T}$ac_cv_type_long_long" >&6
15609
15610echo "$as_me:$LINENO: checking size of long long" >&5
15611echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15612if test "${ac_cv_sizeof_long_long+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
15615 if test "$ac_cv_type_long_long" = yes; then
15616 # The cast to unsigned long works around a bug in the HP C Compiler
15617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15619 # This bug is HP SR number 8606223364.
a0b9e27f 15620 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15621 # Depending upon the size, compute the lo and hi bounds.
15622cat >conftest.$ac_ext <<_ACEOF
15623#line $LINENO "configure"
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629$ac_includes_default
15630int
15631main ()
15632{
15633static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15634test_array [0] = 0
15635
15636 ;
15637 return 0;
15638}
15639_ACEOF
15640rm -f conftest.$ac_objext
15641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_lo=0 ac_mid=0
15653 while :; do
15654 cat >conftest.$ac_ext <<_ACEOF
15655#line $LINENO "configure"
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661$ac_includes_default
15662int
15663main ()
15664{
15665static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15666test_array [0] = 0
15667
15668 ;
15669 return 0;
15670}
15671_ACEOF
15672rm -f conftest.$ac_objext
15673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15674 (eval $ac_compile) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -s conftest.$ac_objext'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; }; then
15684 ac_hi=$ac_mid; break
15685else
15686 echo "$as_me: failed program was:" >&5
15687sed 's/^/| /' conftest.$ac_ext >&5
15688
15689ac_lo=`expr $ac_mid + 1`
15690 if test $ac_lo -le $ac_mid; then
15691 ac_lo= ac_hi=
15692 break
15693 fi
15694 ac_mid=`expr 2 '*' $ac_mid + 1`
15695fi
15696rm -f conftest.$ac_objext conftest.$ac_ext
15697 done
15698else
15699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702cat >conftest.$ac_ext <<_ACEOF
15703#line $LINENO "configure"
15704/* confdefs.h. */
15705_ACEOF
15706cat confdefs.h >>conftest.$ac_ext
15707cat >>conftest.$ac_ext <<_ACEOF
15708/* end confdefs.h. */
15709$ac_includes_default
15710int
15711main ()
15712{
15713static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15714test_array [0] = 0
15715
15716 ;
15717 return 0;
15718}
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15722 (eval $ac_compile) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -s conftest.$ac_objext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_hi=-1 ac_mid=-1
15733 while :; do
15734 cat >conftest.$ac_ext <<_ACEOF
15735#line $LINENO "configure"
15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741$ac_includes_default
15742int
15743main ()
15744{
15745static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15746test_array [0] = 0
15747
15748 ;
15749 return 0;
15750}
15751_ACEOF
15752rm -f conftest.$ac_objext
15753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_lo=$ac_mid; break
15765else
15766 echo "$as_me: failed program was:" >&5
15767sed 's/^/| /' conftest.$ac_ext >&5
15768
15769ac_hi=`expr '(' $ac_mid ')' - 1`
15770 if test $ac_mid -le $ac_hi; then
15771 ac_lo= ac_hi=
15772 break
15773 fi
15774 ac_mid=`expr 2 '*' $ac_mid`
15775fi
15776rm -f conftest.$ac_objext conftest.$ac_ext
15777 done
15778else
15779 echo "$as_me: failed program was:" >&5
15780sed 's/^/| /' conftest.$ac_ext >&5
15781
15782ac_lo= ac_hi=
15783fi
15784rm -f conftest.$ac_objext conftest.$ac_ext
15785fi
15786rm -f conftest.$ac_objext conftest.$ac_ext
15787# Binary search between lo and hi bounds.
15788while test "x$ac_lo" != "x$ac_hi"; do
15789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
15798int
15799main ()
15800{
15801static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15802test_array [0] = 0
15803
15804 ;
15805 return 0;
15806}
15807_ACEOF
15808rm -f conftest.$ac_objext
15809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810 (eval $ac_compile) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_hi=$ac_mid
15821else
15822 echo "$as_me: failed program was:" >&5
15823sed 's/^/| /' conftest.$ac_ext >&5
15824
15825ac_lo=`expr '(' $ac_mid ')' + 1`
15826fi
15827rm -f conftest.$ac_objext conftest.$ac_ext
15828done
15829case $ac_lo in
15830?*) ac_cv_sizeof_long_long=$ac_lo;;
15831'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15832See \`config.log' for more details." >&5
15833echo "$as_me: error: cannot compute sizeof (long long), 77
15834See \`config.log' for more details." >&2;}
15835 { (exit 1); exit 1; }; } ;;
15836esac
a0b9e27f 15837else
e6cc62c6
VS
15838 if test "$cross_compiling" = yes; then
15839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15840See \`config.log' for more details." >&5
15841echo "$as_me: error: cannot run test program while cross compiling
15842See \`config.log' for more details." >&2;}
15843 { (exit 1); exit 1; }; }
15844else
15845 cat >conftest.$ac_ext <<_ACEOF
15846#line $LINENO "configure"
15847/* confdefs.h. */
15848_ACEOF
15849cat confdefs.h >>conftest.$ac_ext
15850cat >>conftest.$ac_ext <<_ACEOF
15851/* end confdefs.h. */
15852$ac_includes_default
15853long longval () { return (long) (sizeof (long long)); }
15854unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15855#include <stdio.h>
e6cc62c6
VS
15856#include <stdlib.h>
15857int
15858main ()
247f5006 15859{
e6cc62c6
VS
15860
15861 FILE *f = fopen ("conftest.val", "w");
15862 if (! f)
15863 exit (1);
15864 if (((long) (sizeof (long long))) < 0)
15865 {
15866 long i = longval ();
15867 if (i != ((long) (sizeof (long long))))
15868 exit (1);
15869 fprintf (f, "%ld\n", i);
15870 }
15871 else
15872 {
15873 unsigned long i = ulongval ();
15874 if (i != ((long) (sizeof (long long))))
15875 exit (1);
15876 fprintf (f, "%lu\n", i);
15877 }
15878 exit (ferror (f) || fclose (f) != 0);
15879
15880 ;
15881 return 0;
247f5006 15882}
e6cc62c6
VS
15883_ACEOF
15884rm -f conftest$ac_exeext
15885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15886 (eval $ac_link) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_sizeof_long_long=`cat conftest.val`
15896else
15897 echo "$as_me: program exited with status $ac_status" >&5
15898echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901( exit $ac_status )
15902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15903See \`config.log' for more details." >&5
15904echo "$as_me: error: cannot compute sizeof (long long), 77
15905See \`config.log' for more details." >&2;}
15906 { (exit 1); exit 1; }; }
15907fi
15908rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15909fi
15910fi
15911rm -f conftest.val
7b4a847f 15912else
a0b9e27f 15913 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15914fi
15915fi
e6cc62c6
VS
15916echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15917echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15918cat >>confdefs.h <<_ACEOF
15919#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15920_ACEOF
15921
15922
15923 ;;
15924 *-hp-hpux* )
15925 echo "$as_me:$LINENO: checking for long long" >&5
15926echo $ECHO_N "checking for long long... $ECHO_C" >&6
15927if test "${ac_cv_type_long_long+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930 cat >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{
15941if ((long long *) 0)
15942 return 0;
15943if (sizeof (long long))
15944 return 0;
15945 ;
15946 return 0;
15947}
15948_ACEOF
15949rm -f conftest.$ac_objext
15950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -s conftest.$ac_objext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_cv_type_long_long=yes
15962else
15963 echo "$as_me: failed program was:" >&5
15964sed 's/^/| /' conftest.$ac_ext >&5
15965
15966ac_cv_type_long_long=no
15967fi
15968rm -f conftest.$ac_objext conftest.$ac_ext
15969fi
15970echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15971echo "${ECHO_T}$ac_cv_type_long_long" >&6
15972
15973echo "$as_me:$LINENO: checking size of long long" >&5
15974echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15975if test "${ac_cv_sizeof_long_long+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977else
15978 if test "$ac_cv_type_long_long" = yes; then
15979 # The cast to unsigned long works around a bug in the HP C Compiler
15980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15982 # This bug is HP SR number 8606223364.
15983 if test "$cross_compiling" = yes; then
15984 # Depending upon the size, compute the lo and hi bounds.
15985cat >conftest.$ac_ext <<_ACEOF
15986#line $LINENO "configure"
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992$ac_includes_default
15993int
15994main ()
15995{
15996static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15997test_array [0] = 0
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -s conftest.$ac_objext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_lo=0 ac_mid=0
16016 while :; do
16017 cat >conftest.$ac_ext <<_ACEOF
16018#line $LINENO "configure"
16019/* confdefs.h. */
16020_ACEOF
16021cat confdefs.h >>conftest.$ac_ext
16022cat >>conftest.$ac_ext <<_ACEOF
16023/* end confdefs.h. */
16024$ac_includes_default
16025int
16026main ()
16027{
16028static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16029test_array [0] = 0
8284b0c5 16030
e6cc62c6
VS
16031 ;
16032 return 0;
16033}
16034_ACEOF
16035rm -f conftest.$ac_objext
16036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16037 (eval $ac_compile) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_hi=$ac_mid; break
16048else
16049 echo "$as_me: failed program was:" >&5
16050sed 's/^/| /' conftest.$ac_ext >&5
16051
16052ac_lo=`expr $ac_mid + 1`
16053 if test $ac_lo -le $ac_mid; then
16054 ac_lo= ac_hi=
16055 break
16056 fi
16057 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16058fi
e6cc62c6
VS
16059rm -f conftest.$ac_objext conftest.$ac_ext
16060 done
16061else
16062 echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065cat >conftest.$ac_ext <<_ACEOF
16066#line $LINENO "configure"
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072$ac_includes_default
16073int
16074main ()
16075{
16076static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16077test_array [0] = 0
a0b9e27f 16078
e6cc62c6
VS
16079 ;
16080 return 0;
16081}
16082_ACEOF
16083rm -f conftest.$ac_objext
16084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -s conftest.$ac_objext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_hi=-1 ac_mid=-1
16096 while :; do
16097 cat >conftest.$ac_ext <<_ACEOF
16098#line $LINENO "configure"
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16109test_array [0] = 0
a0b9e27f 16110
e6cc62c6
VS
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_lo=$ac_mid; break
16128else
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
16132ac_hi=`expr '(' $ac_mid ')' - 1`
16133 if test $ac_mid -le $ac_hi; then
16134 ac_lo= ac_hi=
16135 break
16136 fi
16137 ac_mid=`expr 2 '*' $ac_mid`
16138fi
16139rm -f conftest.$ac_objext conftest.$ac_ext
16140 done
8284b0c5 16141else
e6cc62c6
VS
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
16145ac_lo= ac_hi=
16146fi
16147rm -f conftest.$ac_objext conftest.$ac_ext
16148fi
16149rm -f conftest.$ac_objext conftest.$ac_ext
16150# Binary search between lo and hi bounds.
16151while test "x$ac_lo" != "x$ac_hi"; do
16152 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
16161int
16162main ()
16163{
16164static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16165test_array [0] = 0
16166
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171rm -f conftest.$ac_objext
16172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try='test -s conftest.$ac_objext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_hi=$ac_mid
16184else
16185 echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188ac_lo=`expr '(' $ac_mid ')' + 1`
16189fi
16190rm -f conftest.$ac_objext conftest.$ac_ext
16191done
16192case $ac_lo in
16193?*) ac_cv_sizeof_long_long=$ac_lo;;
16194'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16195See \`config.log' for more details." >&5
16196echo "$as_me: error: cannot compute sizeof (long long), 77
16197See \`config.log' for more details." >&2;}
16198 { (exit 1); exit 1; }; } ;;
16199esac
8284b0c5 16200else
e6cc62c6
VS
16201 if test "$cross_compiling" = yes; then
16202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16203See \`config.log' for more details." >&5
16204echo "$as_me: error: cannot run test program while cross compiling
16205See \`config.log' for more details." >&2;}
16206 { (exit 1); exit 1; }; }
16207else
16208 cat >conftest.$ac_ext <<_ACEOF
16209#line $LINENO "configure"
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215$ac_includes_default
16216long longval () { return (long) (sizeof (long long)); }
16217unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16218#include <stdio.h>
e6cc62c6
VS
16219#include <stdlib.h>
16220int
16221main ()
8284b0c5 16222{
e6cc62c6
VS
16223
16224 FILE *f = fopen ("conftest.val", "w");
16225 if (! f)
16226 exit (1);
16227 if (((long) (sizeof (long long))) < 0)
16228 {
16229 long i = longval ();
16230 if (i != ((long) (sizeof (long long))))
16231 exit (1);
16232 fprintf (f, "%ld\n", i);
16233 }
16234 else
16235 {
16236 unsigned long i = ulongval ();
16237 if (i != ((long) (sizeof (long long))))
16238 exit (1);
16239 fprintf (f, "%lu\n", i);
16240 }
16241 exit (ferror (f) || fclose (f) != 0);
16242
16243 ;
16244 return 0;
8284b0c5 16245}
e6cc62c6
VS
16246_ACEOF
16247rm -f conftest$ac_exeext
16248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_sizeof_long_long=`cat conftest.val`
16259else
16260 echo "$as_me: program exited with status $ac_status" >&5
16261echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264( exit $ac_status )
16265{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16266See \`config.log' for more details." >&5
16267echo "$as_me: error: cannot compute sizeof (long long), 77
16268See \`config.log' for more details." >&2;}
16269 { (exit 1); exit 1; }; }
16270fi
16271rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16272fi
16273fi
16274rm -f conftest.val
5c6fa7d2
RR
16275else
16276 ac_cv_sizeof_long_long=0
52127426 16277fi
4f57cf11 16278fi
e6cc62c6
VS
16279echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16280echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16281cat >>confdefs.h <<_ACEOF
4f57cf11 16282#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16283_ACEOF
4f57cf11
GD
16284
16285
16286 if test "$ac_cv_sizeof_long_long" != "0"; then
16287 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16288 fi
16289 ;;
16290 * )
e6cc62c6
VS
16291 echo "$as_me:$LINENO: checking for long long" >&5
16292echo $ECHO_N "checking for long long... $ECHO_C" >&6
16293if test "${ac_cv_type_long_long+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295else
16296 cat >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{
16307if ((long long *) 0)
16308 return 0;
16309if (sizeof (long long))
16310 return 0;
16311 ;
16312 return 0;
16313}
16314_ACEOF
16315rm -f conftest.$ac_objext
16316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16317 (eval $ac_compile) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_type_long_long=yes
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
16331
16332ac_cv_type_long_long=no
16333fi
16334rm -f conftest.$ac_objext conftest.$ac_ext
16335fi
16336echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16337echo "${ECHO_T}$ac_cv_type_long_long" >&6
16338
16339echo "$as_me:$LINENO: checking size of long long" >&5
16340echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16341if test "${ac_cv_sizeof_long_long+set}" = set; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343else
16344 if test "$ac_cv_type_long_long" = yes; then
16345 # The cast to unsigned long works around a bug in the HP C Compiler
16346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16348 # This bug is HP SR number 8606223364.
4f57cf11 16349 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16350 # Depending upon the size, compute the lo and hi bounds.
16351cat >conftest.$ac_ext <<_ACEOF
16352#line $LINENO "configure"
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_lo=0 ac_mid=0
16382 while :; do
16383 cat >conftest.$ac_ext <<_ACEOF
16384#line $LINENO "configure"
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391int
16392main ()
16393{
16394static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16395test_array [0] = 0
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16403 (eval $ac_compile) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_hi=$ac_mid; break
16414else
16415 echo "$as_me: failed program was:" >&5
16416sed 's/^/| /' conftest.$ac_ext >&5
16417
16418ac_lo=`expr $ac_mid + 1`
16419 if test $ac_lo -le $ac_mid; then
16420 ac_lo= ac_hi=
16421 break
16422 fi
16423 ac_mid=`expr 2 '*' $ac_mid + 1`
16424fi
16425rm -f conftest.$ac_objext conftest.$ac_ext
16426 done
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431cat >conftest.$ac_ext <<_ACEOF
16432#line $LINENO "configure"
16433/* confdefs.h. */
16434_ACEOF
16435cat confdefs.h >>conftest.$ac_ext
16436cat >>conftest.$ac_ext <<_ACEOF
16437/* end confdefs.h. */
16438$ac_includes_default
16439int
16440main ()
16441{
16442static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16443test_array [0] = 0
16444
16445 ;
16446 return 0;
16447}
16448_ACEOF
16449rm -f conftest.$ac_objext
16450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16451 (eval $ac_compile) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_hi=-1 ac_mid=-1
16462 while :; do
16463 cat >conftest.$ac_ext <<_ACEOF
16464#line $LINENO "configure"
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471int
16472main ()
16473{
16474static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16475test_array [0] = 0
16476
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_lo=$ac_mid; break
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498ac_hi=`expr '(' $ac_mid ')' - 1`
16499 if test $ac_mid -le $ac_hi; then
16500 ac_lo= ac_hi=
16501 break
16502 fi
16503 ac_mid=`expr 2 '*' $ac_mid`
16504fi
16505rm -f conftest.$ac_objext conftest.$ac_ext
16506 done
4f57cf11 16507else
e6cc62c6
VS
16508 echo "$as_me: failed program was:" >&5
16509sed 's/^/| /' conftest.$ac_ext >&5
16510
16511ac_lo= ac_hi=
16512fi
16513rm -f conftest.$ac_objext conftest.$ac_ext
16514fi
16515rm -f conftest.$ac_objext conftest.$ac_ext
16516# Binary search between lo and hi bounds.
16517while test "x$ac_lo" != "x$ac_hi"; do
16518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
16527int
16528main ()
16529{
16530static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16531test_array [0] = 0
16532
16533 ;
16534 return 0;
16535}
16536_ACEOF
16537rm -f conftest.$ac_objext
16538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_hi=$ac_mid
16550else
16551 echo "$as_me: failed program was:" >&5
16552sed 's/^/| /' conftest.$ac_ext >&5
16553
16554ac_lo=`expr '(' $ac_mid ')' + 1`
16555fi
16556rm -f conftest.$ac_objext conftest.$ac_ext
16557done
16558case $ac_lo in
16559?*) ac_cv_sizeof_long_long=$ac_lo;;
16560'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16561See \`config.log' for more details." >&5
16562echo "$as_me: error: cannot compute sizeof (long long), 77
16563See \`config.log' for more details." >&2;}
16564 { (exit 1); exit 1; }; } ;;
16565esac
16566else
16567 if test "$cross_compiling" = yes; then
16568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16569See \`config.log' for more details." >&5
16570echo "$as_me: error: cannot run test program while cross compiling
16571See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; }
16573else
16574 cat >conftest.$ac_ext <<_ACEOF
16575#line $LINENO "configure"
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581$ac_includes_default
16582long longval () { return (long) (sizeof (long long)); }
16583unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16584#include <stdio.h>
e6cc62c6
VS
16585#include <stdlib.h>
16586int
16587main ()
4f57cf11 16588{
e6cc62c6
VS
16589
16590 FILE *f = fopen ("conftest.val", "w");
16591 if (! f)
16592 exit (1);
16593 if (((long) (sizeof (long long))) < 0)
16594 {
16595 long i = longval ();
16596 if (i != ((long) (sizeof (long long))))
16597 exit (1);
16598 fprintf (f, "%ld\n", i);
16599 }
16600 else
16601 {
16602 unsigned long i = ulongval ();
16603 if (i != ((long) (sizeof (long long))))
16604 exit (1);
16605 fprintf (f, "%lu\n", i);
16606 }
16607 exit (ferror (f) || fclose (f) != 0);
16608
16609 ;
16610 return 0;
4f57cf11 16611}
e6cc62c6
VS
16612_ACEOF
16613rm -f conftest$ac_exeext
16614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_sizeof_long_long=`cat conftest.val`
16625else
16626 echo "$as_me: program exited with status $ac_status" >&5
16627echo "$as_me: failed program was:" >&5
16628sed 's/^/| /' conftest.$ac_ext >&5
16629
16630( exit $ac_status )
16631{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16632See \`config.log' for more details." >&5
16633echo "$as_me: error: cannot compute sizeof (long long), 77
16634See \`config.log' for more details." >&2;}
16635 { (exit 1); exit 1; }; }
16636fi
16637rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638fi
16639fi
16640rm -f conftest.val
4f57cf11 16641else
4f57cf11
GD
16642 ac_cv_sizeof_long_long=0
16643fi
7b4a847f 16644fi
e6cc62c6
VS
16645echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16646echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16647cat >>confdefs.h <<_ACEOF
21d1c967 16648#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16649_ACEOF
9e691f46 16650
8284b0c5 16651
21d1c967
GD
16652esac
16653
e6cc62c6
VS
16654echo "$as_me:$LINENO: checking size of wchar_t" >&5
16655echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16656if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16658else
e6cc62c6 16659
21d1c967 16660 if test "$cross_compiling" = yes; then
e6cc62c6 16661
2b5f62a0
VZ
16662 case "${host}" in
16663 *-pc-msdosdjgpp )
16664 wx_cv_sizeof_wchar_t=0
16665 ;;
16666 * )
16667 wx_cv_sizeof_wchar_t=4
16668 ;;
16669 esac
e6cc62c6
VS
16670
16671
6f72b082 16672else
e6cc62c6
VS
16673 cat >conftest.$ac_ext <<_ACEOF
16674#line $LINENO "configure"
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
21d1c967 16680
2b5f62a0
VZ
16681 /* DJGPP only has fake wchar_t: */
16682 #ifdef __DJGPP__
16683 # error "fake wchar_t"
16684 #endif
21d1c967
GD
16685 #ifdef HAVE_WCHAR_H
16686 # ifdef __CYGWIN__
16687 # include <stddef.h>
16688 # endif
16689 # include <wchar.h>
16690 #endif
16691 #ifdef HAVE_STDLIB_H
16692 # include <stdlib.h>
16693 #endif
16694 #include <stdio.h>
16695 int main()
16696 {
16697 FILE *f=fopen("conftestval", "w");
16698 if (!f) exit(1);
16699 fprintf(f, "%i", sizeof(wchar_t));
16700 exit(0);
16701 }
e6cc62c6
VS
16702
16703_ACEOF
16704rm -f conftest$ac_exeext
16705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16706 (eval $ac_link) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
21d1c967 16715 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16716else
e6cc62c6
VS
16717 echo "$as_me: program exited with status $ac_status" >&5
16718echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721( exit $ac_status )
16722wx_cv_sizeof_wchar_t=0
6f72b082 16723fi
e6cc62c6 16724rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16725fi
6f72b082 16726
3f345b47 16727fi
e6cc62c6
VS
16728echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16729echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16730
e6cc62c6 16731cat >>confdefs.h <<_ACEOF
21d1c967 16732#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16733_ACEOF
90dd450c 16734
8284b0c5 16735
21d1c967
GD
16736# Check whether --enable-largefile or --disable-largefile was given.
16737if test "${enable_largefile+set}" = set; then
16738 enableval="$enable_largefile"
3f345b47 16739
e6cc62c6 16740fi;
21d1c967
GD
16741if test "$enable_largefile" != no; then
16742 wx_largefile=no
e6cc62c6
VS
16743
16744 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16745echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16746if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748else
16749
16750 cat >conftest.$ac_ext <<_ACEOF
16751#line $LINENO "configure"
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
21d1c967
GD
16757#define _FILE_OFFSET_BITS 64
16758 #include <sys/types.h>
e6cc62c6
VS
16759int
16760main ()
16761{
21d1c967
GD
16762typedef struct {
16763 unsigned int field: sizeof(off_t) == 8;
16764} wxlf;
16765
e6cc62c6
VS
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
21d1c967 16782 ac_cv_sys_file_offset_bits=64
f6bcfd97 16783else
e6cc62c6
VS
16784 echo "$as_me: failed program was:" >&5
16785sed 's/^/| /' conftest.$ac_ext >&5
16786
16787ac_cv_sys_file_offset_bits=no
247f5006 16788fi
e6cc62c6
VS
16789rm -f conftest.$ac_objext conftest.$ac_ext
16790
a0b9e27f 16791
e6cc62c6
VS
16792fi
16793echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16794echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16795
16796 if test "$ac_cv_sys_file_offset_bits" != no; then
16797 wx_largefile=yes
e6cc62c6 16798 cat >>confdefs.h <<_ACEOF
21d1c967 16799#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16800_ACEOF
21d1c967
GD
16801
16802 fi
16803
16804 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16805
16806 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16807echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16808if test "${ac_cv_sys_large_files+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811
16812 cat >conftest.$ac_ext <<_ACEOF
16813#line $LINENO "configure"
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
21d1c967
GD
16819#define _LARGE_FILES 1
16820 #include <sys/types.h>
e6cc62c6
VS
16821int
16822main ()
16823{
21d1c967
GD
16824typedef struct {
16825 unsigned int field: sizeof(off_t) == 8;
16826} wxlf;
16827
e6cc62c6
VS
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
21d1c967 16844 ac_cv_sys_large_files=1
f6bcfd97 16845else
e6cc62c6
VS
16846 echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849ac_cv_sys_large_files=no
247f5006 16850fi
e6cc62c6 16851rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16852
e6cc62c6
VS
16853
16854fi
16855echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16856echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16857
21d1c967
GD
16858 if test "$ac_cv_sys_large_files" != no; then
16859 wx_largefile=yes
e6cc62c6 16860 cat >>confdefs.h <<_ACEOF
21d1c967 16861#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16862_ACEOF
90dd450c 16863
90dd450c
VZ
16864 fi
16865
90dd450c 16866 fi
90dd450c 16867
e6cc62c6
VS
16868 echo "$as_me:$LINENO: checking if large file support is available" >&5
16869echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16870 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16871 cat >>confdefs.h <<\_ACEOF
21d1c967 16872#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16873_ACEOF
90dd450c 16874
90dd450c 16875 fi
e6cc62c6
VS
16876 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16877echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16878fi
90dd450c 16879
8284b0c5 16880
f02444d0 16881if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16882 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16883 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16884 else
e26c13cf 16885 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16886 fi
e26c13cf 16887 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16888fi
16889
e6cc62c6
VS
16890echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16891echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16892if test "${ac_cv_c_bigendian+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16894else
21d1c967
GD
16895 ac_cv_c_bigendian=unknown
16896# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16897cat >conftest.$ac_ext <<_ACEOF
16898#line $LINENO "configure"
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
21d1c967
GD
16904#include <sys/types.h>
16905#include <sys/param.h>
e6cc62c6
VS
16906int
16907main ()
16908{
21d1c967
GD
16909
16910#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16911 bogus endian macros
16912#endif
e6cc62c6
VS
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext
16918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -s conftest.$ac_objext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
21d1c967 16929 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16930cat >conftest.$ac_ext <<_ACEOF
16931#line $LINENO "configure"
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
21d1c967
GD
16937#include <sys/types.h>
16938#include <sys/param.h>
e6cc62c6
VS
16939int
16940main ()
16941{
21d1c967
GD
16942
16943#if BYTE_ORDER != BIG_ENDIAN
16944 not big endian
16945#endif
e6cc62c6
VS
16946 ;
16947 return 0;
16948}
16949_ACEOF
16950rm -f conftest.$ac_objext
16951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16952 (eval $ac_compile) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
21d1c967 16962 ac_cv_c_bigendian=yes
3f345b47 16963else
e6cc62c6
VS
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967ac_cv_c_bigendian=no
3f345b47 16968fi
e6cc62c6 16969rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16970else
e6cc62c6
VS
16971 echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
3f345b47 16974fi
e6cc62c6 16975rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16976if test $ac_cv_c_bigendian = unknown; then
16977if test "$cross_compiling" = yes; then
16978 ac_cv_c_bigendian=unknown
10f2d63a 16979else
e6cc62c6
VS
16980 cat >conftest.$ac_ext <<_ACEOF
16981#line $LINENO "configure"
16982/* confdefs.h. */
16983_ACEOF
16984cat confdefs.h >>conftest.$ac_ext
16985cat >>conftest.$ac_ext <<_ACEOF
16986/* end confdefs.h. */
21d1c967
GD
16987main () {
16988 /* Are we little or big endian? From Harbison&Steele. */
16989 union
16990 {
16991 long l;
16992 char c[sizeof (long)];
16993 } u;
16994 u.l = 1;
16995 exit (u.c[sizeof (long) - 1] == 1);
16996}
e6cc62c6
VS
16997_ACEOF
16998rm -f conftest$ac_exeext
16999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17000 (eval $ac_link) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
21d1c967 17009 ac_cv_c_bigendian=no
3f345b47 17010else
e6cc62c6
VS
17011 echo "$as_me: program exited with status $ac_status" >&5
17012echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
17015( exit $ac_status )
17016ac_cv_c_bigendian=yes
247f5006 17017fi
e6cc62c6 17018rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17019fi
3f345b47 17020fi
8168de4c 17021fi
e6cc62c6
VS
17022echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17023echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17024if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17025 { 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
17026echo "$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
17027fi
17028if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17029 cat >>confdefs.h <<\_ACEOF
247f5006 17030#define WORDS_BIGENDIAN 1
e6cc62c6 17031_ACEOF
247f5006
VZ
17032
17033fi
17034
17035
e6cc62c6
VS
17036
17037ac_ext=cc
17038ac_cpp='$CXXCPP $CPPFLAGS'
17039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17042echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17043echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17044if test -z "$CXXCPP"; then
e6cc62c6
VS
17045 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 # Double quotes because CXXCPP needs to be expanded
17049 for CXXCPP in "$CXX -E" "/lib/cpp"
17050 do
17051 ac_preproc_ok=false
17052for ac_cxx_preproc_warn_flag in '' yes
17053do
17054 # Use a header file that comes with gcc, so configuring glibc
17055 # with a fresh cross-compiler works.
17056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057 # <limits.h> exists even on freestanding compilers.
17058 # On the NeXT, cc -E runs the code through the compiler's parser,
17059 # not just through cpp. "Syntax error" is here to catch this case.
17060 cat >conftest.$ac_ext <<_ACEOF
17061#line $LINENO "configure"
17062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
17067#ifdef __STDC__
17068# include <limits.h>
17069#else
17070# include <assert.h>
17071#endif
17072 Syntax error
17073_ACEOF
17074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } >/dev/null; then
17082 if test -s conftest.err; then
17083 ac_cpp_err=$ac_cxx_preproc_warn_flag
17084 else
17085 ac_cpp_err=
17086 fi
247f5006 17087else
e6cc62c6
VS
17088 ac_cpp_err=yes
17089fi
17090if test -z "$ac_cpp_err"; then
17091 :
17092else
17093 echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 # Broken: fails on valid input.
17097continue
17098fi
17099rm -f conftest.err conftest.$ac_ext
17100
17101 # OK, works on sane cases. Now check whether non-existent headers
17102 # can be detected and how.
17103 cat >conftest.$ac_ext <<_ACEOF
17104#line $LINENO "configure"
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110#include <ac_nonexistent.h>
17111_ACEOF
17112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_cxx_preproc_warn_flag
17122 else
17123 ac_cpp_err=
17124 fi
17125else
17126 ac_cpp_err=yes
17127fi
17128if test -z "$ac_cpp_err"; then
17129 # Broken: success on invalid input.
17130continue
17131else
17132 echo "$as_me: failed program was:" >&5
17133sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 # Passes both tests.
17136ac_preproc_ok=:
17137break
17138fi
17139rm -f conftest.err conftest.$ac_ext
17140
17141done
17142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17143rm -f conftest.err conftest.$ac_ext
17144if $ac_preproc_ok; then
17145 break
17146fi
17147
17148 done
17149 ac_cv_prog_CXXCPP=$CXXCPP
17150
17151fi
17152 CXXCPP=$ac_cv_prog_CXXCPP
17153else
17154 ac_cv_prog_CXXCPP=$CXXCPP
17155fi
17156echo "$as_me:$LINENO: result: $CXXCPP" >&5
17157echo "${ECHO_T}$CXXCPP" >&6
17158ac_preproc_ok=false
17159for ac_cxx_preproc_warn_flag in '' yes
17160do
17161 # Use a header file that comes with gcc, so configuring glibc
17162 # with a fresh cross-compiler works.
17163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164 # <limits.h> exists even on freestanding compilers.
17165 # On the NeXT, cc -E runs the code through the compiler's parser,
17166 # not just through cpp. "Syntax error" is here to catch this case.
17167 cat >conftest.$ac_ext <<_ACEOF
17168#line $LINENO "configure"
17169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174#ifdef __STDC__
17175# include <limits.h>
17176#else
17177# include <assert.h>
17178#endif
17179 Syntax error
17180_ACEOF
17181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } >/dev/null; then
17189 if test -s conftest.err; then
17190 ac_cpp_err=$ac_cxx_preproc_warn_flag
17191 else
17192 ac_cpp_err=
17193 fi
17194else
17195 ac_cpp_err=yes
17196fi
17197if test -z "$ac_cpp_err"; then
21d1c967 17198 :
698dcdb6 17199else
e6cc62c6
VS
17200 echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 # Broken: fails on valid input.
17204continue
17205fi
17206rm -f conftest.err conftest.$ac_ext
17207
17208 # OK, works on sane cases. Now check whether non-existent headers
17209 # can be detected and how.
17210 cat >conftest.$ac_ext <<_ACEOF
17211#line $LINENO "configure"
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217#include <ac_nonexistent.h>
17218_ACEOF
17219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } >/dev/null; then
17227 if test -s conftest.err; then
17228 ac_cpp_err=$ac_cxx_preproc_warn_flag
17229 else
17230 ac_cpp_err=
17231 fi
17232else
17233 ac_cpp_err=yes
247f5006 17234fi
e6cc62c6
VS
17235if test -z "$ac_cpp_err"; then
17236 # Broken: success on invalid input.
17237continue
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 # Passes both tests.
17243ac_preproc_ok=:
17244break
328a083c 17245fi
e6cc62c6
VS
17246rm -f conftest.err conftest.$ac_ext
17247
17248done
17249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17250rm -f conftest.err conftest.$ac_ext
17251if $ac_preproc_ok; then
17252 :
17253else
17254 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17255See \`config.log' for more details." >&5
17256echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17257See \`config.log' for more details." >&2;}
17258 { (exit 1); exit 1; }; }
90dd450c 17259fi
e6cc62c6
VS
17260
17261ac_ext=cc
17262ac_cpp='$CXXCPP $CPPFLAGS'
17263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17266
1e6feb95 17267
1725144d 17268
21d1c967 17269 if test "$cross_compiling" = "yes"; then
e6cc62c6 17270 cat >>confdefs.h <<\_ACEOF
21d1c967 17271#define wxUSE_IOSTREAMH 1
e6cc62c6 17272_ACEOF
ab9b9eab 17273
21d1c967 17274 else
e6cc62c6
VS
17275
17276
17277 ac_ext=cc
5c6fa7d2 17278ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17282
52127426 17283
247f5006 17284
e6cc62c6 17285for ac_header in iostream
21d1c967 17286do
e6cc62c6
VS
17287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17288if eval "test \"\${$as_ac_Header+set}\" = set"; then
17289 echo "$as_me:$LINENO: checking for $ac_header" >&5
17290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17291if eval "test \"\${$as_ac_Header+set}\" = set"; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293fi
17294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17296else
17297 # Is the header compilable?
17298echo "$as_me:$LINENO: checking $ac_header usability" >&5
17299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17300cat >conftest.$ac_ext <<_ACEOF
17301#line $LINENO "configure"
17302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
17307$ac_includes_default
17308#include <$ac_header>
17309_ACEOF
17310rm -f conftest.$ac_objext
17311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312 (eval $ac_compile) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -s conftest.$ac_objext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_header_compiler=yes
17323else
17324 echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327ac_header_compiler=no
17328fi
17329rm -f conftest.$ac_objext conftest.$ac_ext
17330echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17331echo "${ECHO_T}$ac_header_compiler" >&6
17332
17333# Is the header present?
17334echo "$as_me:$LINENO: checking $ac_header presence" >&5
17335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17336cat >conftest.$ac_ext <<_ACEOF
17337#line $LINENO "configure"
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343#include <$ac_header>
17344_ACEOF
17345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } >/dev/null; then
17353 if test -s conftest.err; then
17354 ac_cpp_err=$ac_cxx_preproc_warn_flag
17355 else
17356 ac_cpp_err=
17357 fi
17358else
17359 ac_cpp_err=yes
17360fi
17361if test -z "$ac_cpp_err"; then
17362 ac_header_preproc=yes
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 ac_header_preproc=no
17368fi
17369rm -f conftest.err conftest.$ac_ext
17370echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17371echo "${ECHO_T}$ac_header_preproc" >&6
17372
17373# So? What about this header?
17374case $ac_header_compiler:$ac_header_preproc in
17375 yes:no )
17376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17377echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17380 (
17381 cat <<\_ASBOX
17382## ------------------------------------ ##
17383## Report this to bug-autoconf@gnu.org. ##
17384## ------------------------------------ ##
17385_ASBOX
17386 ) |
17387 sed "s/^/$as_me: WARNING: /" >&2
17388 ;;
17389 no:yes )
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17396 (
17397 cat <<\_ASBOX
17398## ------------------------------------ ##
17399## Report this to bug-autoconf@gnu.org. ##
17400## ------------------------------------ ##
17401_ASBOX
17402 ) |
17403 sed "s/^/$as_me: WARNING: /" >&2
17404 ;;
17405esac
17406echo "$as_me:$LINENO: checking for $ac_header" >&5
17407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17408if eval "test \"\${$as_ac_Header+set}\" = set"; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410else
17411 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17412fi
e6cc62c6
VS
17413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17415
90dd450c 17416fi
e6cc62c6
VS
17417if test `eval echo '${'$as_ac_Header'}'` = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17420_ACEOF
17421
90dd450c 17422fi
e6cc62c6 17423
21d1c967 17424done
10f2d63a 17425
8284b0c5 17426
21d1c967
GD
17427 if test "$ac_cv_header_iostream" = "yes" ; then
17428 :
17429 else
e6cc62c6 17430 cat >>confdefs.h <<\_ACEOF
21d1c967 17431#define wxUSE_IOSTREAMH 1
e6cc62c6 17432_ACEOF
788deba1 17433
90dd450c 17434 fi
ab9b9eab 17435
21d1c967 17436 ac_ext=c
21d1c967 17437ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17441
21d1c967 17442 fi
ab9b9eab 17443
52127426 17444
8284b0c5 17445
e6cc62c6
VS
17446 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17447echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17448if test "${wx_cv_cpp_bool+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17450else
e6cc62c6
VS
17451
17452
17453
17454 ac_ext=cc
5c6fa7d2 17455ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17459
8284b0c5 17460
e6cc62c6
VS
17461 cat >conftest.$ac_ext <<_ACEOF
17462#line $LINENO "configure"
17463/* confdefs.h. */
17464_ACEOF
17465cat confdefs.h >>conftest.$ac_ext
17466cat >>conftest.$ac_ext <<_ACEOF
17467/* end confdefs.h. */
21d1c967 17468
e6cc62c6
VS
17469
17470int
17471main ()
17472{
21d1c967
GD
17473
17474 bool b = true;
17475
17476 return 0;
e6cc62c6
VS
17477
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext
17483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17484 (eval $ac_compile) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -s conftest.$ac_objext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494
21d1c967 17495 wx_cv_cpp_bool=yes
e6cc62c6 17496
698dcdb6 17497else
e6cc62c6
VS
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501
21d1c967 17502 wx_cv_cpp_bool=no
e6cc62c6
VS
17503
17504
698dcdb6 17505fi
e6cc62c6 17506rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17507
17508 ac_ext=c
21d1c967 17509ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17512ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17513
a0b9e27f 17514
e6cc62c6
VS
17515fi
17516echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17517echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17518
17519 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17520 cat >>confdefs.h <<\_ACEOF
21d1c967 17521#define HAVE_BOOL 1
e6cc62c6 17522_ACEOF
ab9b9eab 17523
21d1c967
GD
17524 fi
17525
52127426 17526
8284b0c5 17527
e6cc62c6
VS
17528 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17529echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17530if test "${wx_cv_explicit+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17532else
e6cc62c6
VS
17533
17534
17535
17536 ac_ext=cc
5c6fa7d2 17537ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17541
8284b0c5 17542
e6cc62c6
VS
17543 cat >conftest.$ac_ext <<_ACEOF
17544#line $LINENO "configure"
17545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
986ecc86
VZ
17550
17551 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17552
17553int
17554main ()
17555{
986ecc86
VZ
17556
17557 return 0;
e6cc62c6
VS
17558
17559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext
17564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -s conftest.$ac_objext'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575
17576 cat >conftest.$ac_ext <<_ACEOF
17577#line $LINENO "configure"
17578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
986ecc86
VZ
17583
17584 class Foo { public: explicit Foo(int) {} };
17585 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17586
17587int
17588main ()
17589{
986ecc86
VZ
17590
17591 TakeFoo(17);
17592 return 0;
e6cc62c6
VS
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext
17599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600 (eval $ac_compile) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
986ecc86
VZ
17610 wx_cv_explicit=no
17611else
e6cc62c6
VS
17612 echo "$as_me: failed program was:" >&5
17613sed 's/^/| /' conftest.$ac_ext >&5
17614
17615wx_cv_explicit=yes
17616
986ecc86 17617fi
e6cc62c6
VS
17618rm -f conftest.$ac_objext conftest.$ac_ext
17619
986ecc86 17620else
e6cc62c6
VS
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
17624wx_cv_explicit=no
17625
986ecc86 17626fi
e6cc62c6 17627rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17628
17629 ac_ext=c
986ecc86 17630ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17634
a0b9e27f 17635
e6cc62c6
VS
17636fi
17637echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17638echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17639
17640 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17641 cat >>confdefs.h <<\_ACEOF
986ecc86 17642#define HAVE_EXPLICIT 1
e6cc62c6 17643_ACEOF
986ecc86
VZ
17644
17645 fi
17646
8284b0c5 17647
e6cc62c6
VS
17648echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17649echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17650if test "${ac_cv_cxx_const_cast+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17652else
521196a2 17653
521196a2 17654
e6cc62c6
VS
17655 ac_ext=cc
17656ac_cpp='$CXXCPP $CPPFLAGS'
17657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17660
17661 cat >conftest.$ac_ext <<_ACEOF
17662#line $LINENO "configure"
17663/* confdefs.h. */
17664_ACEOF
17665cat confdefs.h >>conftest.$ac_ext
17666cat >>conftest.$ac_ext <<_ACEOF
17667/* end confdefs.h. */
17668
17669int
17670main ()
17671{
521196a2 17672int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17673 ;
17674 return 0;
17675}
17676_ACEOF
17677rm -f conftest.$ac_objext
17678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17679 (eval $ac_compile) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
521196a2
MB
17689 ac_cv_cxx_const_cast=yes
17690else
e6cc62c6
VS
17691 echo "$as_me: failed program was:" >&5
17692sed 's/^/| /' conftest.$ac_ext >&5
17693
17694ac_cv_cxx_const_cast=no
521196a2 17695fi
e6cc62c6 17696rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17697 ac_ext=c
521196a2 17698ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17702
17703
17704fi
e6cc62c6
VS
17705echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17706echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17707if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17708
17709cat >>confdefs.h <<\_ACEOF
17710#define HAVE_CONST_CAST
17711_ACEOF
521196a2
MB
17712
17713fi
17714
17715
e87b7833
MB
17716if test "$wxUSE_STL" = "yes"; then
17717 ac_ext=cc
17718ac_cpp='$CXXCPP $CPPFLAGS'
17719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17722
17723
17724 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17725echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17726 cat >conftest.$ac_ext <<_ACEOF
17727#line $LINENO "configure"
17728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
17733#include <string>
17734 #include <functional>
17735 #include <algorithm>
17736 #include <vector>
17737 #include <list>
17738int
17739main ()
17740{
17741std::vector<int> moo;
17742 std::list<int> foo;
17743 std::vector<int>::iterator it =
17744 std::find_if(moo.begin(), moo.end(),
17745 std::bind2nd(std::less<int>(), 3));
17746 ;
17747 return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext
17751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 echo "$as_me:$LINENO: result: yes" >&5
17763echo "${ECHO_T}yes" >&6
17764else
17765 echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768echo "$as_me:$LINENO: result: no" >&5
17769echo "${ECHO_T}no" >&6
17770 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17771echo "$as_me: error: Basic STL functionality missing" >&2;}
17772 { (exit 1); exit 1; }; }
17773fi
17774rm -f conftest.$ac_objext conftest.$ac_ext
17775
17776 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17777echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17779#line $LINENO "configure"
17780/* confdefs.h. */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h. */
17785#include <string>
17786int
17787main ()
17788{
17789std::wstring foo;
17790 ;
17791 return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17796 (eval $ac_compile) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 echo "$as_me:$LINENO: result: yes" >&5
17807echo "${ECHO_T}yes" >&6
17808 cat >>confdefs.h <<\_ACEOF
17809#define HAVE_STD_WSTRING 1
17810_ACEOF
17811
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816echo "$as_me:$LINENO: result: no" >&5
17817echo "${ECHO_T}no" >&6
17818fi
17819rm -f conftest.$ac_objext conftest.$ac_ext
17820
17821 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17822echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17824#line $LINENO "configure"
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830#include <string>
17831int
17832main ()
17833{
17834std::string foo, bar;
17835 foo.compare(bar);
17836 foo.compare(1, 1, bar);
17837 foo.compare(1, 1, bar, 1, 1);
17838 foo.compare("");
17839 foo.compare(1, 1, "");
17840 foo.compare(1, 1, "", 2);
17841 ;
17842 return 0;
17843}
17844_ACEOF
17845rm -f conftest.$ac_objext
17846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 echo "$as_me:$LINENO: result: yes" >&5
17858echo "${ECHO_T}yes" >&6
17859 cat >>confdefs.h <<\_ACEOF
17860#define HAVE_STD_STRING_COMPARE 1
17861_ACEOF
17862
17863else
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867echo "$as_me:$LINENO: result: no" >&5
17868echo "${ECHO_T}no" >&6
17869fi
17870rm -f conftest.$ac_objext conftest.$ac_ext
17871
17872 ac_ext=c
17873ac_cpp='$CPP $CPPFLAGS'
17874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878fi
17879
8284b0c5 17880
21d1c967
GD
17881SEARCH_INCLUDE="\
17882 /usr/local/include \
17883 \
17884 /usr/Motif-1.2/include \
17885 /usr/Motif-2.1/include \
17886 \
17887 /usr/include/Motif1.2 \
17888 /opt/xpm/include/X11 \
17889 /opt/GBxpm/include/ \
17890 /opt/GBxpm/X11/include/ \
17891 \
17892 /usr/Motif1.2/include \
17893 /usr/dt/include \
17894 /usr/openwin/include \
17895 \
17896 /usr/include/Xm \
17897 \
17898 /usr/X11R6/include \
17899 /usr/X11R6.4/include \
17900 /usr/X11R5/include \
17901 /usr/X11R4/include \
17902 \
17903 /usr/include/X11R6 \
17904 /usr/include/X11R5 \
17905 /usr/include/X11R4 \
17906 \
17907 /usr/local/X11R6/include \
17908 /usr/local/X11R5/include \
17909 /usr/local/X11R4/include \
17910 \
17911 /usr/local/include/X11R6 \
17912 /usr/local/include/X11R5 \
17913 /usr/local/include/X11R4 \
17914 \
17915 /usr/X11/include \
17916 /usr/include/X11 \
17917 /usr/local/X11/include \
17918 /usr/local/include/X11 \
17919 \
17920 /usr/X386/include \
17921 /usr/x386/include \
17922 /usr/XFree86/include/X11 \
17923 \
17924 X:/XFree86/include \
17925 X:/XFree86/include/X11 \
17926 \
17927 /usr/include/gtk \
17928 /usr/local/include/gtk \
17929 /usr/include/glib \
17930 /usr/local/include/glib \
17931 \
17932 /usr/include/qt \
17933 /usr/local/include/qt \
17934 \
17935 /usr/include/windows \
17936 /usr/include/wine \
17937 /usr/local/include/wine \
17938 \
17939 /usr/unsupported/include \
17940 /usr/athena/include \
17941 /usr/local/x11r5/include \
17942 /usr/lpp/Xamples/include \
17943 \
2b5f62a0 17944 /usr/openwin/share/include"
21d1c967
GD
17945
17946SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17947
8284b0c5 17948
e6cc62c6 17949cat >confcache <<\_ACEOF
21d1c967
GD
17950# This file is a shell script that caches the results of configure
17951# tests run on this system so they can be shared between configure
e6cc62c6
VS
17952# scripts and configure runs, see configure's option --config-cache.
17953# It is not useful on other systems. If it contains results you don't
17954# want to keep, you may remove or edit it.
21d1c967 17955#
e6cc62c6
VS
17956# config.status only pays attention to the cache file if you give it
17957# the --recheck option to rerun configure.
21d1c967 17958#
e6cc62c6
VS
17959# `ac_cv_env_foo' variables (set or unset) will be overridden when
17960# loading this file, other *unset* `ac_cv_foo' will be assigned the
17961# following values.
17962
17963_ACEOF
17964
21d1c967
GD
17965# The following way of writing the cache mishandles newlines in values,
17966# but we know of no workaround that is simple, portable, and efficient.
17967# So, don't put newlines in cache variables' values.
17968# Ultrix sh set writes to stderr and can't be redirected directly,
17969# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17970{
17971 (set) 2>&1 |
17972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17973 *ac_space=\ *)
17974 # `set' does not quote correctly, so add quotes (double-quote
17975 # substitution turns \\\\ into \\, and sed turns \\ into \).
17976 sed -n \
17977 "s/'/'\\\\''/g;
17978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17979 ;;
17980 *)
17981 # `set' quotes correctly as required by POSIX, so do not add quotes.
17982 sed -n \
17983 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17984 ;;
17985 esac;
17986} |
17987 sed '
17988 t clear
17989 : clear
17990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17991 t end
17992 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17993 : end' >>confcache
17994if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17995 if test -w $cache_file; then
e6cc62c6
VS
17996 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17997 cat confcache >$cache_file
21d1c967
GD
17998 else
17999 echo "not updating unwritable cache $cache_file"
18000 fi
ab9b9eab 18001fi
21d1c967 18002rm -f confcache
ab9b9eab 18003
fe0895cf 18004if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18005 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18006echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18007if test "${wx_cv_lib_glibc21+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18009else
18010
18011 cat >conftest.$ac_ext <<_ACEOF
18012#line $LINENO "configure"
18013/* confdefs.h. */
18014_ACEOF
18015cat confdefs.h >>conftest.$ac_ext
18016cat >>conftest.$ac_ext <<_ACEOF
18017/* end confdefs.h. */
21d1c967 18018#include <features.h>
e6cc62c6
VS
18019int
18020main ()
18021{
ab9b9eab 18022
21d1c967
GD
18023 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18024 #error not glibc2.1
18025 #endif
e6cc62c6
VS
18026
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext
18032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -s conftest.$ac_objext'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043
21d1c967 18044 wx_cv_lib_glibc21=yes
e6cc62c6 18045
698dcdb6 18046else
e6cc62c6
VS
18047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050
21d1c967 18051 wx_cv_lib_glibc21=no
e6cc62c6
VS
18052
18053
247f5006 18054fi
e6cc62c6 18055rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18056
e6cc62c6
VS
18057fi
18058echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18059echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18060 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18061 cat >>confdefs.h <<\_ACEOF
21d1c967 18062#define wxHAVE_GLIBC2 1
e6cc62c6 18063_ACEOF
1e487827 18064
90dd450c 18065 fi
ab9b9eab
VZ
18066fi
18067
5c0a20c3
VZ
18068if test "x$wx_cv_lib_glibc21" = "xyes"; then
18069 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18070 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18071#define _GNU_SOURCE 1
e6cc62c6 18072_ACEOF
5c0a20c3
VZ
18073
18074 fi
18075fi
18076
8284b0c5
MB
18077
18078
21d1c967
GD
18079REGEX_INCLUDE=
18080if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18081 cat >>confdefs.h <<\_ACEOF
21d1c967 18082#define wxUSE_REGEX 1
e6cc62c6 18083_ACEOF
698dcdb6 18084
8284b0c5 18085
21d1c967 18086 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18087 if test "${ac_cv_header_regex_h+set}" = set; then
18088 echo "$as_me:$LINENO: checking for regex.h" >&5
18089echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18090if test "${ac_cv_header_regex_h+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092fi
18093echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18094echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18095else
18096 # Is the header compilable?
18097echo "$as_me:$LINENO: checking regex.h usability" >&5
18098echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18099cat >conftest.$ac_ext <<_ACEOF
18100#line $LINENO "configure"
18101/* confdefs.h. */
18102_ACEOF
18103cat confdefs.h >>conftest.$ac_ext
18104cat >>conftest.$ac_ext <<_ACEOF
18105/* end confdefs.h. */
18106$ac_includes_default
247f5006 18107#include <regex.h>
e6cc62c6
VS
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18111 (eval $ac_compile) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -s conftest.$ac_objext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_header_compiler=yes
18122else
18123 echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126ac_header_compiler=no
18127fi
18128rm -f conftest.$ac_objext conftest.$ac_ext
18129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18130echo "${ECHO_T}$ac_header_compiler" >&6
18131
18132# Is the header present?
18133echo "$as_me:$LINENO: checking regex.h presence" >&5
18134echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18135cat >conftest.$ac_ext <<_ACEOF
18136#line $LINENO "configure"
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
18142#include <regex.h>
18143_ACEOF
18144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } >/dev/null; then
18152 if test -s conftest.err; then
18153 ac_cpp_err=$ac_c_preproc_warn_flag
18154 else
18155 ac_cpp_err=
18156 fi
18157else
18158 ac_cpp_err=yes
18159fi
18160if test -z "$ac_cpp_err"; then
18161 ac_header_preproc=yes
18162else
18163 echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_header_preproc=no
18167fi
18168rm -f conftest.err conftest.$ac_ext
18169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18170echo "${ECHO_T}$ac_header_preproc" >&6
18171
18172# So? What about this header?
18173case $ac_header_compiler:$ac_header_preproc in
18174 yes:no )
18175 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18176echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18178echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18179 (
18180 cat <<\_ASBOX
18181## ------------------------------------ ##
18182## Report this to bug-autoconf@gnu.org. ##
18183## ------------------------------------ ##
18184_ASBOX
18185 ) |
18186 sed "s/^/$as_me: WARNING: /" >&2
18187 ;;
18188 no:yes )
18189 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18190echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18192echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18194echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18195 (
18196 cat <<\_ASBOX
18197## ------------------------------------ ##
18198## Report this to bug-autoconf@gnu.org. ##
18199## ------------------------------------ ##
18200_ASBOX
18201 ) |
18202 sed "s/^/$as_me: WARNING: /" >&2
18203 ;;
18204esac
18205echo "$as_me:$LINENO: checking for regex.h" >&5
18206echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18207if test "${ac_cv_header_regex_h+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18211fi
e6cc62c6
VS
18212echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18213echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18214
698dcdb6 18215fi
e6cc62c6
VS
18216if test $ac_cv_header_regex_h = yes; then
18217
18218for ac_func in regcomp
21d1c967 18219do
e6cc62c6
VS
18220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18221echo "$as_me:$LINENO: checking for $ac_func" >&5
18222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18223if eval "test \"\${$as_ac_var+set}\" = set"; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226 cat >conftest.$ac_ext <<_ACEOF
18227#line $LINENO "configure"
18228/* confdefs.h. */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h. */
a0b9e27f 18233/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18237#ifdef __STDC__
18238# include <limits.h>
18239#else
18240# include <assert.h>
18241#endif
21d1c967 18242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18243#ifdef __cplusplus
18244extern "C"
18245{
18246#endif
21d1c967 18247/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18248 builtin and then its argument prototype would still apply. */
18249char $ac_func ();
21d1c967
GD
18250/* The GNU C library defines this for functions which it implements
18251 to always fail with ENOSYS. Some functions are actually named
18252 something starting with __ and the normal name is an alias. */
18253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18254choke me
18255#else
e6cc62c6
VS
18256char (*f) () = $ac_func;
18257#endif
18258#ifdef __cplusplus
18259}
21d1c967 18260#endif
90dd450c 18261
e6cc62c6
VS
18262int
18263main ()
18264{
18265return f != $ac_func;
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext conftest$ac_exeext
18271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 eval "$as_ac_var=yes"
18283else
18284 echo "$as_me: failed program was:" >&5
18285sed 's/^/| /' conftest.$ac_ext >&5
18286
18287eval "$as_ac_var=no"
18288fi
18289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18290fi
18291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18293if test `eval echo '${'$as_ac_var'}'` = yes; then
18294 cat >>confdefs.h <<_ACEOF
18295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18296_ACEOF
5c6fa7d2 18297
698dcdb6 18298fi
21d1c967
GD
18299done
18300
ab9b9eab
VZ
18301fi
18302
8284b0c5 18303
e6cc62c6 18304
21d1c967
GD
18305 if test "x$ac_cv_func_regcomp" != "xyes"; then
18306 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18307 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18308echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18309 { (exit 1); exit 1; }; }
21d1c967 18310 else
e6cc62c6
VS
18311 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18312echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18313 wxUSE_REGEX=builtin
18314 fi
18315 else
18316 wxUSE_REGEX=sys
18317 fi
ab9b9eab 18318 fi
90dd450c 18319
21d1c967
GD
18320 if test "$wxUSE_REGEX" = "builtin" ; then
18321 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18322 fi
21d1c967 18323fi
90dd450c 18324
8284b0c5 18325
21d1c967
GD
18326ZLIB_INCLUDE=
18327ZLIB_LINK=
18328if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18329 cat >>confdefs.h <<\_ACEOF
21d1c967 18330#define wxUSE_ZLIB 1
e6cc62c6 18331_ACEOF
21d1c967 18332
8284b0c5 18333
21d1c967 18334 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18335 if test "$USE_DARWIN" = 1; then
18336 system_zlib_h_ok="yes"
18337 else
e6cc62c6
VS
18338 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18339echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18340if test "${ac_cv_header_zlib_h+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18342else
18343 if test "$cross_compiling" = yes; then
89e6bf6d 18344 unset ac_cv_header_zlib_h
e6cc62c6 18345
d643b80e 18346else
e6cc62c6
VS
18347 cat >conftest.$ac_ext <<_ACEOF
18348#line $LINENO "configure"
18349/* confdefs.h. */
18350_ACEOF
18351cat confdefs.h >>conftest.$ac_ext
18352cat >>conftest.$ac_ext <<_ACEOF
18353/* end confdefs.h. */
18354
ef33c576 18355 #include <zlib.h>
d775acfa 18356 #include <stdio.h>
d643b80e 18357
d775acfa
VZ
18358 int main()
18359 {
18360 FILE *f=fopen("conftestval", "w");
18361 if (!f) exit(1);
18362 fprintf(f, "%s",
18363 ZLIB_VERSION[0] == '1' &&
18364 (ZLIB_VERSION[2] > '1' ||
18365 (ZLIB_VERSION[2] == '1' &&
18366 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18367 exit(0);
18368 }
e6cc62c6
VS
18369
18370_ACEOF
18371rm -f conftest$ac_exeext
18372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18373 (eval $ac_link) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
d643b80e
VZ
18382 ac_cv_header_zlib_h=`cat conftestval`
18383else
e6cc62c6
VS
18384 echo "$as_me: program exited with status $ac_status" >&5
18385echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388( exit $ac_status )
18389ac_cv_header_zlib_h=no
d643b80e 18390fi
e6cc62c6 18391rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18392fi
18393
d643b80e 18394fi
e6cc62c6
VS
18395echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18396echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18397 if test "${ac_cv_header_zlib_h+set}" = set; then
18398 echo "$as_me:$LINENO: checking for zlib.h" >&5
18399echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18400if test "${ac_cv_header_zlib_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402fi
18403echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18404echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18405else
e6cc62c6
VS
18406 # Is the header compilable?
18407echo "$as_me:$LINENO: checking zlib.h usability" >&5
18408echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18409cat >conftest.$ac_ext <<_ACEOF
18410#line $LINENO "configure"
18411/* confdefs.h. */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h. */
18416$ac_includes_default
89e6bf6d 18417#include <zlib.h>
e6cc62c6
VS
18418_ACEOF
18419rm -f conftest.$ac_objext
18420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18421 (eval $ac_compile) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -s conftest.$ac_objext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_header_compiler=yes
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_header_compiler=no
18437fi
18438rm -f conftest.$ac_objext conftest.$ac_ext
18439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18440echo "${ECHO_T}$ac_header_compiler" >&6
18441
18442# Is the header present?
18443echo "$as_me:$LINENO: checking zlib.h presence" >&5
18444echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18445cat >conftest.$ac_ext <<_ACEOF
18446#line $LINENO "configure"
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452#include <zlib.h>
18453_ACEOF
18454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } >/dev/null; then
18462 if test -s conftest.err; then
18463 ac_cpp_err=$ac_c_preproc_warn_flag
18464 else
18465 ac_cpp_err=
18466 fi
18467else
18468 ac_cpp_err=yes
18469fi
18470if test -z "$ac_cpp_err"; then
18471 ac_header_preproc=yes
18472else
18473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 ac_header_preproc=no
18477fi
18478rm -f conftest.err conftest.$ac_ext
18479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18480echo "${ECHO_T}$ac_header_preproc" >&6
18481
18482# So? What about this header?
18483case $ac_header_compiler:$ac_header_preproc in
18484 yes:no )
18485 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18486echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18488echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18489 (
18490 cat <<\_ASBOX
18491## ------------------------------------ ##
18492## Report this to bug-autoconf@gnu.org. ##
18493## ------------------------------------ ##
18494_ASBOX
18495 ) |
18496 sed "s/^/$as_me: WARNING: /" >&2
18497 ;;
18498 no:yes )
18499 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18500echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18502echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18503 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18504echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18505 (
18506 cat <<\_ASBOX
18507## ------------------------------------ ##
18508## Report this to bug-autoconf@gnu.org. ##
18509## ------------------------------------ ##
18510_ASBOX
18511 ) |
18512 sed "s/^/$as_me: WARNING: /" >&2
18513 ;;
18514esac
18515echo "$as_me:$LINENO: checking for zlib.h" >&5
18516echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18517if test "${ac_cv_header_zlib_h+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18519else
e6cc62c6
VS
18520 ac_cv_header_zlib_h=$ac_header_preproc
18521fi
18522echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18523echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18524
89e6bf6d
VZ
18525fi
18526
d643b80e 18527
e6cc62c6 18528
d775acfa
VZ
18529 system_zlib_h_ok=$ac_cv_header_zlib_h
18530 fi
18531
18532 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18533 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18534echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18535if test "${ac_cv_lib_z_deflate+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18537else
e6cc62c6 18538 ac_check_lib_save_LIBS=$LIBS
21d1c967 18539LIBS="-lz $LIBS"
e6cc62c6
VS
18540cat >conftest.$ac_ext <<_ACEOF
18541#line $LINENO "configure"
18542/* confdefs.h. */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h. */
18547
21d1c967 18548/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18549#ifdef __cplusplus
18550extern "C"
18551#endif
21d1c967 18552/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18553 builtin and then its argument prototype would still apply. */
18554char deflate ();
18555int
18556main ()
18557{
18558deflate ();
18559 ;
18560 return 0;
18561}
18562_ACEOF
18563rm -f conftest.$ac_objext conftest$ac_exeext
18564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18565 (eval $ac_link) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 ac_cv_lib_z_deflate=yes
18576else
18577 echo "$as_me: failed program was:" >&5
18578sed 's/^/| /' conftest.$ac_ext >&5
18579
18580ac_cv_lib_z_deflate=no
18581fi
18582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18583LIBS=$ac_check_lib_save_LIBS
18584fi
18585echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18586echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18587if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18588 ZLIB_LINK=" -lz"
a0b9e27f 18589fi
698dcdb6 18590
d643b80e 18591 fi
247f5006 18592
21d1c967
GD
18593 if test "x$ZLIB_LINK" = "x" ; then
18594 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18595 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18596echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18597 { (exit 1); exit 1; }; }
21d1c967 18598 else
e6cc62c6
VS
18599 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18600echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18601 wxUSE_ZLIB=builtin
18602 fi
18603 else
18604 wxUSE_ZLIB=sys
18605 fi
18606 fi
18607
18608 if test "$wxUSE_ZLIB" = "builtin" ; then
18609 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18610 fi
ab9b9eab
VZ
18611fi
18612
8284b0c5 18613
21d1c967
GD
18614PNG_INCLUDE=
18615PNG_LINK=
18616if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18617 cat >>confdefs.h <<\_ACEOF
21d1c967 18618#define wxUSE_LIBPNG 1
e6cc62c6 18619_ACEOF
90dd450c 18620
8284b0c5 18621
21d1c967 18622 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18623 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18624echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18625 wxUSE_LIBPNG=sys
18626 fi
90dd450c 18627
21d1c967 18628 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18629 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18630echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18631 wxUSE_LIBPNG=builtin
18632 fi
18633
18634 if test "$wxUSE_MGL" != 1 ; then
18635 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18636 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18637echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18638if test "${ac_cv_header_png_h+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18640else
18641 if test "$cross_compiling" = yes; then
89e6bf6d 18642 unset ac_cv_header_png_h
e6cc62c6 18643
5d3f766d 18644else
e6cc62c6
VS
18645 cat >conftest.$ac_ext <<_ACEOF
18646#line $LINENO "configure"
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
18652
ef33c576 18653 #include <png.h>
5d3f766d
VZ
18654 #include <stdio.h>
18655
18656 int main()
18657 {
18658 FILE *f=fopen("conftestval", "w");
18659 if (!f) exit(1);
18660 fprintf(f, "%s",
18661 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18662 exit(0);
18663 }
e6cc62c6
VS
18664
18665_ACEOF
18666rm -f conftest$ac_exeext
18667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668 (eval $ac_link) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
5d3f766d
VZ
18677 ac_cv_header_png_h=`cat conftestval`
18678else
e6cc62c6
VS
18679 echo "$as_me: program exited with status $ac_status" >&5
18680echo "$as_me: failed program was:" >&5
18681sed 's/^/| /' conftest.$ac_ext >&5
18682
18683( exit $ac_status )
18684ac_cv_header_png_h=no
5d3f766d 18685fi
e6cc62c6 18686rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18687fi
18688
5d3f766d 18689fi
e6cc62c6
VS
18690echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18691echo "${ECHO_T}$ac_cv_header_png_h" >&6
18692 if test "${ac_cv_header_png_h+set}" = set; then
18693 echo "$as_me:$LINENO: checking for png.h" >&5
18694echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18695if test "${ac_cv_header_png_h+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697fi
18698echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18699echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18700else
e6cc62c6
VS
18701 # Is the header compilable?
18702echo "$as_me:$LINENO: checking png.h usability" >&5
18703echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18704cat >conftest.$ac_ext <<_ACEOF
18705#line $LINENO "configure"
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
89e6bf6d 18712#include <png.h>
e6cc62c6
VS
18713_ACEOF
18714rm -f conftest.$ac_objext
18715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716 (eval $ac_compile) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_header_compiler=yes
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731ac_header_compiler=no
18732fi
18733rm -f conftest.$ac_objext conftest.$ac_ext
18734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18735echo "${ECHO_T}$ac_header_compiler" >&6
18736
18737# Is the header present?
18738echo "$as_me:$LINENO: checking png.h presence" >&5
18739echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18740cat >conftest.$ac_ext <<_ACEOF
18741#line $LINENO "configure"
18742/* confdefs.h. */
18743_ACEOF
18744cat confdefs.h >>conftest.$ac_ext
18745cat >>conftest.$ac_ext <<_ACEOF
18746/* end confdefs.h. */
18747#include <png.h>
18748_ACEOF
18749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } >/dev/null; then
18757 if test -s conftest.err; then
18758 ac_cpp_err=$ac_c_preproc_warn_flag
18759 else
18760 ac_cpp_err=
18761 fi
18762else
18763 ac_cpp_err=yes
18764fi
18765if test -z "$ac_cpp_err"; then
18766 ac_header_preproc=yes
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_header_preproc=no
18772fi
18773rm -f conftest.err conftest.$ac_ext
18774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18775echo "${ECHO_T}$ac_header_preproc" >&6
18776
18777# So? What about this header?
18778case $ac_header_compiler:$ac_header_preproc in
18779 yes:no )
18780 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18781echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18783echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18784 (
18785 cat <<\_ASBOX
18786## ------------------------------------ ##
18787## Report this to bug-autoconf@gnu.org. ##
18788## ------------------------------------ ##
18789_ASBOX
18790 ) |
18791 sed "s/^/$as_me: WARNING: /" >&2
18792 ;;
18793 no:yes )
18794 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18795echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18797echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18799echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18800 (
18801 cat <<\_ASBOX
18802## ------------------------------------ ##
18803## Report this to bug-autoconf@gnu.org. ##
18804## ------------------------------------ ##
18805_ASBOX
18806 ) |
18807 sed "s/^/$as_me: WARNING: /" >&2
18808 ;;
18809esac
18810echo "$as_me:$LINENO: checking for png.h" >&5
18811echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18812if test "${ac_cv_header_png_h+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18814else
e6cc62c6
VS
18815 ac_cv_header_png_h=$ac_header_preproc
18816fi
18817echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18818echo "${ECHO_T}$ac_cv_header_png_h" >&6
18819
89e6bf6d
VZ
18820fi
18821
5d3f766d 18822
e6cc62c6 18823
5d3f766d 18824 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18825 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18826echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18827if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18829else
e6cc62c6 18830 ac_check_lib_save_LIBS=$LIBS
21d1c967 18831LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18832cat >conftest.$ac_ext <<_ACEOF
18833#line $LINENO "configure"
18834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
18839
21d1c967 18840/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18841#ifdef __cplusplus
18842extern "C"
18843#endif
21d1c967 18844/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18845 builtin and then its argument prototype would still apply. */
18846char png_check_sig ();
18847int
18848main ()
18849{
18850png_check_sig ();
18851 ;
18852 return 0;
18853}
18854_ACEOF
18855rm -f conftest.$ac_objext conftest$ac_exeext
18856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -s conftest$ac_exeext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 ac_cv_lib_png_png_check_sig=yes
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872ac_cv_lib_png_png_check_sig=no
18873fi
18874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18875LIBS=$ac_check_lib_save_LIBS
18876fi
18877echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18878echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18879if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18880 PNG_LINK=" -lpng"
a0b9e27f 18881fi
90dd450c 18882
5d3f766d 18883 fi
247f5006 18884
21d1c967
GD
18885 if test "x$PNG_LINK" = "x" ; then
18886 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18887 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18888echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18889 { (exit 1); exit 1; }; }
21d1c967 18890 else
e6cc62c6
VS
18891 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18892echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18893 wxUSE_LIBPNG=builtin
18894 fi
18895 else
2b5f62a0 18896 wxUSE_LIBPNG=sys
21d1c967
GD
18897 fi
18898 fi
18899 fi
90dd450c 18900
21d1c967
GD
18901 if test "$wxUSE_LIBPNG" = "builtin" ; then
18902 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18903 fi
90dd450c 18904
21d1c967 18905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18906fi
18907
8284b0c5 18908
21d1c967
GD
18909JPEG_INCLUDE=
18910JPEG_LINK=
18911if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18912 cat >>confdefs.h <<\_ACEOF
21d1c967 18913#define wxUSE_LIBJPEG 1
e6cc62c6 18914_ACEOF
90dd450c 18915
8284b0c5 18916
21d1c967 18917 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18918 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18919echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18920 wxUSE_LIBJPEG=sys
18921 fi
90dd450c 18922
21d1c967
GD
18923 if test "$wxUSE_MGL" != 1 ; then
18924 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18925 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18926echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18927 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929else
18930 cat >conftest.$ac_ext <<_ACEOF
18931#line $LINENO "configure"
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
90dd450c 18937
21d1c967
GD
18938 #undef HAVE_STDLIB_H
18939 #include <stdio.h>
18940 #include <jpeglib.h>
90dd450c 18941
e6cc62c6
VS
18942int
18943main ()
18944{
18945
18946
18947 ;
18948 return 0;
18949}
18950_ACEOF
18951rm -f conftest.$ac_objext
18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest.$ac_objext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
21d1c967 18963 ac_cv_header_jpeglib_h=yes
90dd450c 18964else
e6cc62c6
VS
18965 echo "$as_me: failed program was:" >&5
18966sed 's/^/| /' conftest.$ac_ext >&5
18967
18968ac_cv_header_jpeglib_h=no
18969
90dd450c 18970fi
e6cc62c6
VS
18971rm -f conftest.$ac_objext conftest.$ac_ext
18972
90dd450c
VZ
18973fi
18974
e6cc62c6
VS
18975 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18976echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18977
21d1c967 18978 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18979 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18980echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18981if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18983else
e6cc62c6 18984 ac_check_lib_save_LIBS=$LIBS
21d1c967 18985LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18986cat >conftest.$ac_ext <<_ACEOF
18987#line $LINENO "configure"
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993
21d1c967 18994/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18995#ifdef __cplusplus
18996extern "C"
18997#endif
21d1c967 18998/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18999 builtin and then its argument prototype would still apply. */
19000char jpeg_read_header ();
19001int
19002main ()
19003{
19004jpeg_read_header ();
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext conftest$ac_exeext
19010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19011 (eval $ac_link) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_jpeg_jpeg_read_header=yes
19022else
19023 echo "$as_me: failed program was:" >&5
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
19026ac_cv_lib_jpeg_jpeg_read_header=no
19027fi
19028rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19029LIBS=$ac_check_lib_save_LIBS
19030fi
19031echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19032echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19033if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19034 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19035fi
19036
21d1c967 19037 fi
90dd450c 19038
21d1c967
GD
19039 if test "x$JPEG_LINK" = "x" ; then
19040 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19041 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19042echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19043 { (exit 1); exit 1; }; }
21d1c967 19044 else
e6cc62c6
VS
19045 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19046echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19047 wxUSE_LIBJPEG=builtin
19048 fi
19049 else
19050 wxUSE_LIBJPEG=sys
19051 fi
19052 fi
19053 fi
90dd450c 19054
21d1c967
GD
19055 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19056 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19057 fi
19058fi
90dd450c 19059
8284b0c5 19060
21d1c967
GD
19061TIFF_INCLUDE=
19062TIFF_LINK=
2b5f62a0 19063TIFF_PREREQ_LINKS=-lm
21d1c967 19064if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19065 cat >>confdefs.h <<\_ACEOF
21d1c967 19066#define wxUSE_LIBTIFF 1
e6cc62c6 19067_ACEOF
21d1c967 19068
8284b0c5 19069
21d1c967 19070 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19071 if test "$wxUSE_LIBJPEG" = "sys"; then
19072 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19073 fi
19074 if test "$wxUSE_ZLIB" = "sys"; then
19075 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19076 fi
e6cc62c6
VS
19077 if test "${ac_cv_header_tiffio_h+set}" = set; then
19078 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19079echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19080if test "${ac_cv_header_tiffio_h+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082fi
19083echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19084echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19085else
19086 # Is the header compilable?
19087echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19088echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19089cat >conftest.$ac_ext <<_ACEOF
19090#line $LINENO "configure"
19091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
19096$ac_includes_default
247f5006 19097#include <tiffio.h>
e6cc62c6
VS
19098_ACEOF
19099rm -f conftest.$ac_objext
19100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19101 (eval $ac_compile) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try='test -s conftest.$ac_objext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_header_compiler=yes
19112else
19113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116ac_header_compiler=no
19117fi
19118rm -f conftest.$ac_objext conftest.$ac_ext
19119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19120echo "${ECHO_T}$ac_header_compiler" >&6
19121
19122# Is the header present?
19123echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19124echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19125cat >conftest.$ac_ext <<_ACEOF
19126#line $LINENO "configure"
19127/* confdefs.h. */
19128_ACEOF
19129cat confdefs.h >>conftest.$ac_ext
19130cat >>conftest.$ac_ext <<_ACEOF
19131/* end confdefs.h. */
19132#include <tiffio.h>
19133_ACEOF
19134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } >/dev/null; then
19142 if test -s conftest.err; then
19143 ac_cpp_err=$ac_c_preproc_warn_flag
19144 else
19145 ac_cpp_err=
19146 fi
19147else
19148 ac_cpp_err=yes
19149fi
19150if test -z "$ac_cpp_err"; then
19151 ac_header_preproc=yes
19152else
19153 echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 ac_header_preproc=no
19157fi
19158rm -f conftest.err conftest.$ac_ext
19159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19160echo "${ECHO_T}$ac_header_preproc" >&6
19161
19162# So? What about this header?
19163case $ac_header_compiler:$ac_header_preproc in
19164 yes:no )
19165 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19166echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19168echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19169 (
19170 cat <<\_ASBOX
19171## ------------------------------------ ##
19172## Report this to bug-autoconf@gnu.org. ##
19173## ------------------------------------ ##
19174_ASBOX
19175 ) |
19176 sed "s/^/$as_me: WARNING: /" >&2
19177 ;;
19178 no:yes )
19179 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19180echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19182echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19184echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19185 (
19186 cat <<\_ASBOX
19187## ------------------------------------ ##
19188## Report this to bug-autoconf@gnu.org. ##
19189## ------------------------------------ ##
19190_ASBOX
19191 ) |
19192 sed "s/^/$as_me: WARNING: /" >&2
19193 ;;
19194esac
19195echo "$as_me:$LINENO: checking for tiffio.h" >&5
19196echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19197if test "${ac_cv_header_tiffio_h+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19201fi
e6cc62c6
VS
19202echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19203echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19204
21d1c967 19205fi
e6cc62c6
VS
19206if test $ac_cv_header_tiffio_h = yes; then
19207 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19208echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19209if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19211else
e6cc62c6 19212 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19213LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19214cat >conftest.$ac_ext <<_ACEOF
19215#line $LINENO "configure"
19216/* confdefs.h. */
19217_ACEOF
19218cat confdefs.h >>conftest.$ac_ext
19219cat >>conftest.$ac_ext <<_ACEOF
19220/* end confdefs.h. */
19221
ab9b9eab 19222/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19223#ifdef __cplusplus
19224extern "C"
19225#endif
ab9b9eab 19226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19227 builtin and then its argument prototype would still apply. */
19228char TIFFError ();
19229int
19230main ()
19231{
19232TIFFError ();
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237rm -f conftest.$ac_objext conftest$ac_exeext
19238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -s conftest$ac_exeext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_lib_tiff_TIFFError=yes
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254ac_cv_lib_tiff_TIFFError=no
19255fi
19256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19257LIBS=$ac_check_lib_save_LIBS
19258fi
19259echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19260echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19261if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19262 TIFF_LINK=" -ltiff"
a0b9e27f 19263fi
cd6d6d5b 19264
e6cc62c6 19265
a0b9e27f 19266fi
8284b0c5 19267
247f5006 19268
e6cc62c6 19269
21d1c967
GD
19270 if test "x$TIFF_LINK" = "x" ; then
19271 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19272 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19273echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19274 { (exit 1); exit 1; }; }
90dd450c 19275 else
e6cc62c6
VS
19276 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19277echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19278 wxUSE_LIBTIFF=builtin
d8356fa3 19279 fi
d8356fa3 19280 else
21d1c967 19281 wxUSE_LIBTIFF=sys
d8356fa3 19282 fi
21d1c967 19283 fi
d8356fa3 19284
21d1c967
GD
19285 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19286 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19287 fi
21d1c967 19288fi
10f2d63a 19289
8284b0c5 19290
672abd7a
VS
19291if test "$wxUSE_EXPAT" != "no"; then
19292 wxUSE_XML=1
19293 cat >>confdefs.h <<\_ACEOF
19294#define wxUSE_EXPAT 1
19295_ACEOF
19296
19297 cat >>confdefs.h <<\_ACEOF
19298#define wxUSE_XML 1
19299_ACEOF
19300
19301
19302 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19303 if test "${ac_cv_header_expat_h+set}" = set; then
19304 echo "$as_me:$LINENO: checking for expat.h" >&5
19305echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19306if test "${ac_cv_header_expat_h+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308fi
19309echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19310echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19311else
19312 # Is the header compilable?
19313echo "$as_me:$LINENO: checking expat.h usability" >&5
19314echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19315cat >conftest.$ac_ext <<_ACEOF
19316#line $LINENO "configure"
19317/* confdefs.h. */
19318_ACEOF
19319cat confdefs.h >>conftest.$ac_ext
19320cat >>conftest.$ac_ext <<_ACEOF
19321/* end confdefs.h. */
19322$ac_includes_default
19323#include <expat.h>
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19327 (eval $ac_compile) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_header_compiler=yes
19338else
19339 echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
19342ac_header_compiler=no
19343fi
19344rm -f conftest.$ac_objext conftest.$ac_ext
19345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19346echo "${ECHO_T}$ac_header_compiler" >&6
19347
19348# Is the header present?
19349echo "$as_me:$LINENO: checking expat.h presence" >&5
19350echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19351cat >conftest.$ac_ext <<_ACEOF
19352#line $LINENO "configure"
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358#include <expat.h>
19359_ACEOF
19360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } >/dev/null; then
19368 if test -s conftest.err; then
19369 ac_cpp_err=$ac_c_preproc_warn_flag
19370 else
19371 ac_cpp_err=
19372 fi
19373else
19374 ac_cpp_err=yes
19375fi
19376if test -z "$ac_cpp_err"; then
19377 ac_header_preproc=yes
19378else
19379 echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_header_preproc=no
19383fi
19384rm -f conftest.err conftest.$ac_ext
19385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19386echo "${ECHO_T}$ac_header_preproc" >&6
19387
19388# So? What about this header?
19389case $ac_header_compiler:$ac_header_preproc in
19390 yes:no )
19391 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19392echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19393 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19394echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19395 (
19396 cat <<\_ASBOX
19397## ------------------------------------ ##
19398## Report this to bug-autoconf@gnu.org. ##
19399## ------------------------------------ ##
19400_ASBOX
19401 ) |
19402 sed "s/^/$as_me: WARNING: /" >&2
19403 ;;
19404 no:yes )
19405 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19406echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19408echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19410echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19411 (
19412 cat <<\_ASBOX
19413## ------------------------------------ ##
19414## Report this to bug-autoconf@gnu.org. ##
19415## ------------------------------------ ##
19416_ASBOX
19417 ) |
19418 sed "s/^/$as_me: WARNING: /" >&2
19419 ;;
19420esac
19421echo "$as_me:$LINENO: checking for expat.h" >&5
19422echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19423if test "${ac_cv_header_expat_h+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425else
19426 ac_cv_header_expat_h=$ac_header_preproc
19427fi
19428echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19429echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19430
19431fi
5f0b6dff
VS
19432if test $ac_cv_header_expat_h = yes; then
19433 found_expat_h=1
19434fi
19435
19436
19437 if test "x$found_expat_h" = "x1"; then
19438 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19439echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19440if test "${wx_cv_expat_is_not_broken+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443
19444
672abd7a 19445
5f0b6dff
VS
19446 ac_ext=cc
19447ac_cpp='$CXXCPP $CPPFLAGS'
19448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19451
19452 cat >conftest.$ac_ext <<_ACEOF
19453#line $LINENO "configure"
19454/* confdefs.h. */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h. */
19459#include <expat.h>
19460int
19461main ()
19462{
672abd7a 19463
5f0b6dff
VS
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
19469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19470 (eval $ac_compile) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -s conftest.$ac_objext'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; }; then
19480 wx_cv_expat_is_not_broken=yes
19481else
19482 echo "$as_me: failed program was:" >&5
19483sed 's/^/| /' conftest.$ac_ext >&5
19484
19485wx_cv_expat_is_not_broken=no
19486
19487fi
19488rm -f conftest.$ac_objext conftest.$ac_ext
19489 ac_ext=c
19490ac_cpp='$CPP $CPPFLAGS'
19491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493ac_compiler_gnu=$ac_cv_c_compiler_gnu
19494
19495
19496
19497fi
19498echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19499echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19500 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19501 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19502echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19503if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 ac_check_lib_save_LIBS=$LIBS
19507LIBS="-lexpat $LIBS"
19508cat >conftest.$ac_ext <<_ACEOF
19509#line $LINENO "configure"
19510/* confdefs.h. */
19511_ACEOF
19512cat confdefs.h >>conftest.$ac_ext
19513cat >>conftest.$ac_ext <<_ACEOF
19514/* end confdefs.h. */
19515
19516/* Override any gcc2 internal prototype to avoid an error. */
19517#ifdef __cplusplus
19518extern "C"
19519#endif
19520/* We use char because int might match the return type of a gcc2
19521 builtin and then its argument prototype would still apply. */
19522char XML_ParserCreate ();
19523int
19524main ()
19525{
19526XML_ParserCreate ();
19527 ;
19528 return 0;
19529}
19530_ACEOF
19531rm -f conftest.$ac_objext conftest$ac_exeext
19532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -s conftest$ac_exeext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_lib_expat_XML_ParserCreate=yes
19544else
19545 echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
19548ac_cv_lib_expat_XML_ParserCreate=no
19549fi
19550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19551LIBS=$ac_check_lib_save_LIBS
19552fi
19553echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19554echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19555if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19556 EXPAT_LINK=" -lexpat"
19557fi
19558
5f0b6dff 19559 fi
672abd7a
VS
19560 fi
19561 if test "x$EXPAT_LINK" = "x" ; then
19562 if test "$wxUSE_EXPAT" = "sys" ; then
19563 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19564echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19565 { (exit 1); exit 1; }; }
19566 else
19567 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19568echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19569 wxUSE_EXPAT=builtin
19570 fi
19571 else
19572 wxUSE_EXPAT=sys
19573 fi
19574 fi
19575 if test "$wxUSE_EXPAT" = "builtin" ; then
19576
19577
19578subdirs="$subdirs src/expat"
19579
19580 fi
19581fi
19582
19583
19584
21d1c967 19585AFMINSTALL=
2b5f62a0 19586WIN32INSTALL=
90dd450c 19587
21d1c967
GD
19588TOOLKIT=
19589TOOLKIT_INCLUDE=
19590WIDGET_SET=
19591
19592if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19593
19594for ac_header in w32api.h
21d1c967 19595do
e6cc62c6
VS
19596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19597if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo "$as_me:$LINENO: checking for $ac_header" >&5
19599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19600if eval "test \"\${$as_ac_Header+set}\" = set"; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602fi
19603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19605else
19606 # Is the header compilable?
19607echo "$as_me:$LINENO: checking $ac_header usability" >&5
19608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19609cat >conftest.$ac_ext <<_ACEOF
19610#line $LINENO "configure"
19611/* confdefs.h. */
19612_ACEOF
19613cat confdefs.h >>conftest.$ac_ext
19614cat >>conftest.$ac_ext <<_ACEOF
19615/* end confdefs.h. */
19616$ac_includes_default
19617#include <$ac_header>
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621 (eval $ac_compile) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_header_compiler=yes
19632else
19633 echo "$as_me: failed program was:" >&5
19634sed 's/^/| /' conftest.$ac_ext >&5
19635
19636ac_header_compiler=no
19637fi
19638rm -f conftest.$ac_objext conftest.$ac_ext
19639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19640echo "${ECHO_T}$ac_header_compiler" >&6
19641
19642# Is the header present?
19643echo "$as_me:$LINENO: checking $ac_header presence" >&5
19644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19645cat >conftest.$ac_ext <<_ACEOF
19646#line $LINENO "configure"
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
19652#include <$ac_header>
19653_ACEOF
19654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } >/dev/null; then
19662 if test -s conftest.err; then
19663 ac_cpp_err=$ac_c_preproc_warn_flag
19664 else
19665 ac_cpp_err=
19666 fi
19667else
19668 ac_cpp_err=yes
19669fi
19670if test -z "$ac_cpp_err"; then
19671 ac_header_preproc=yes
19672else
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_header_preproc=no
19677fi
19678rm -f conftest.err conftest.$ac_ext
19679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19680echo "${ECHO_T}$ac_header_preproc" >&6
19681
19682# So? What about this header?
19683case $ac_header_compiler:$ac_header_preproc in
19684 yes:no )
19685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19689 (
19690 cat <<\_ASBOX
19691## ------------------------------------ ##
19692## Report this to bug-autoconf@gnu.org. ##
19693## ------------------------------------ ##
19694_ASBOX
19695 ) |
19696 sed "s/^/$as_me: WARNING: /" >&2
19697 ;;
19698 no:yes )
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705 (
19706 cat <<\_ASBOX
19707## ------------------------------------ ##
19708## Report this to bug-autoconf@gnu.org. ##
19709## ------------------------------------ ##
19710_ASBOX
19711 ) |
19712 sed "s/^/$as_me: WARNING: /" >&2
19713 ;;
19714esac
19715echo "$as_me:$LINENO: checking for $ac_header" >&5
19716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19717if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719else
19720 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19721fi
e6cc62c6
VS
19722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19724
21d1c967 19725fi
e6cc62c6
VS
19726if test `eval echo '${'$as_ac_Header'}'` = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19729_ACEOF
19730
21d1c967 19731fi
e6cc62c6 19732
21d1c967 19733done
f79bd02d 19734
e6cc62c6
VS
19735 if test "${ac_cv_header_windows_h+set}" = set; then
19736 echo "$as_me:$LINENO: checking for windows.h" >&5
19737echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19738if test "${ac_cv_header_windows_h+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19740fi
19741echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19742echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19743else
19744 # Is the header compilable?
19745echo "$as_me:$LINENO: checking windows.h usability" >&5
19746echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19747cat >conftest.$ac_ext <<_ACEOF
19748#line $LINENO "configure"
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h. */
19754$ac_includes_default
247f5006 19755#include <windows.h>
e6cc62c6
VS
19756_ACEOF
19757rm -f conftest.$ac_objext
19758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19759 (eval $ac_compile) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -s conftest.$ac_objext'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; }; then
19769 ac_header_compiler=yes
19770else
19771 echo "$as_me: failed program was:" >&5
19772sed 's/^/| /' conftest.$ac_ext >&5
19773
19774ac_header_compiler=no
19775fi
19776rm -f conftest.$ac_objext conftest.$ac_ext
19777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19778echo "${ECHO_T}$ac_header_compiler" >&6
19779
19780# Is the header present?
19781echo "$as_me:$LINENO: checking windows.h presence" >&5
19782echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19783cat >conftest.$ac_ext <<_ACEOF
19784#line $LINENO "configure"
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790#include <windows.h>
19791_ACEOF
19792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev/null; then
19800 if test -s conftest.err; then
19801 ac_cpp_err=$ac_c_preproc_warn_flag
19802 else
19803 ac_cpp_err=
19804 fi
19805else
19806 ac_cpp_err=yes
19807fi
19808if test -z "$ac_cpp_err"; then
19809 ac_header_preproc=yes
19810else
19811 echo "$as_me: failed program was:" >&5
19812sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 ac_header_preproc=no
19815fi
19816rm -f conftest.err conftest.$ac_ext
19817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19818echo "${ECHO_T}$ac_header_preproc" >&6
19819
19820# So? What about this header?
19821case $ac_header_compiler:$ac_header_preproc in
19822 yes:no )
19823 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19824echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19826echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19827 (
19828 cat <<\_ASBOX
19829## ------------------------------------ ##
19830## Report this to bug-autoconf@gnu.org. ##
19831## ------------------------------------ ##
19832_ASBOX
19833 ) |
19834 sed "s/^/$as_me: WARNING: /" >&2
19835 ;;
19836 no:yes )
19837 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19838echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19840echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19842echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19843 (
19844 cat <<\_ASBOX
19845## ------------------------------------ ##
19846## Report this to bug-autoconf@gnu.org. ##
19847## ------------------------------------ ##
19848_ASBOX
19849 ) |
19850 sed "s/^/$as_me: WARNING: /" >&2
19851 ;;
19852esac
19853echo "$as_me:$LINENO: checking for windows.h" >&5
19854echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19855if test "${ac_cv_header_windows_h+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19859fi
e6cc62c6
VS
19860echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19861echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19862
90dd450c 19863fi
e6cc62c6 19864if test $ac_cv_header_windows_h = yes; then
21d1c967 19865 :
90dd450c 19866else
21d1c967 19867
e6cc62c6
VS
19868 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19869echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19870 { (exit 1); exit 1; }; }
19871
5c6fa7d2 19872fi
7b4a847f 19873
5c6fa7d2 19874
e6cc62c6 19875
b3dfbbc9 19876 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19877
7bb2947d
MB
19878 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19879 LIBS="$LIBS -loleacc"
19880 fi
19881
21d1c967
GD
19882 case "${host}" in
19883 *-*-cygwin* )
b3dfbbc9 19884 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19885 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19886 esac
f79bd02d 19887
8647bec6
RG
19888 if test "$wxUSE_ODBC" = "sys" ; then
19889 wxUSE_ODBC = "yes"
21d1c967 19890 fi
8647bec6
RG
19891 if test "$wxUSE_ODBC" = "yes" ; then
19892 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19893 cat >>confdefs.h <<\_ACEOF
8647bec6 19894#define wxUSE_ODBC 1
e6cc62c6 19895_ACEOF
f79bd02d 19896
8647bec6 19897 fi
e6cc62c6 19898
21d1c967
GD
19899 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19900 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19901
19902 WIN32INSTALL=win32install
f79bd02d 19903fi
f79bd02d 19904
21d1c967
GD
19905if test "$wxUSE_GUI" = "yes"; then
19906 USE_GUI=1
f79bd02d 19907
21d1c967 19908 GUI_TK_LIBRARY=
f79bd02d 19909
21d1c967
GD
19910 WXGTK12=
19911 WXGTK127=
19912 WXGTK20=
f79bd02d 19913
21d1c967
GD
19914 if test "$wxUSE_MSW" = 1 ; then
19915 TOOLKIT=MSW
19916 GUIDIST=MSW_DIST
f79bd02d
JS
19917 fi
19918
21d1c967 19919 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19920 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19921echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19922
19923 gtk_version_cached=1
e6cc62c6
VS
19924 if test "${wx_cv_lib_gtk+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19926else
e6cc62c6 19927
21d1c967 19928 gtk_version_cached=0
e6cc62c6
VS
19929 echo "$as_me:$LINENO: result: " >&5
19930echo "${ECHO_T}" >&6
f79bd02d 19931
21d1c967
GD
19932 GTK_MODULES=
19933 if test "$wxUSE_THREADS" = "yes"; then
19934 GTK_MODULES=gthread
19935 fi
f79bd02d 19936
2b5f62a0 19937 wx_cv_lib_gtk=
21d1c967
GD
19938 if test "x$wxUSE_GTK2" = "xyes"; then
19939 # Check whether --enable-gtktest or --disable-gtktest was given.
19940if test "${enable_gtktest+set}" = set; then
19941 enableval="$enable_gtktest"
e6cc62c6 19942
f79bd02d 19943else
21d1c967 19944 enable_gtktest=yes
e6cc62c6 19945fi;
f79bd02d 19946
21d1c967
GD
19947 pkg_config_args=gtk+-2.0
19948 for module in . $GTK_MODULES
19949 do
19950 case "$module" in
e6cc62c6 19951 gthread)
21d1c967
GD
19952 pkg_config_args="$pkg_config_args gthread-2.0"
19953 ;;
19954 esac
19955 done
19956
19957 no_gtk=""
f79bd02d 19958
21d1c967
GD
19959 # Extract the first word of "pkg-config", so it can be a program name with args.
19960set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19961echo "$as_me:$LINENO: checking for $ac_word" >&5
19962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19963if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19965else
e6cc62c6
VS
19966 case $PKG_CONFIG in
19967 [\\/]* | ?:[\\/]*)
21d1c967
GD
19968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19969 ;;
21d1c967 19970 *)
e6cc62c6
VS
19971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19972for as_dir in $PATH
19973do
19974 IFS=$as_save_IFS
19975 test -z "$as_dir" && as_dir=.
19976 for ac_exec_ext in '' $ac_executable_extensions; do
19977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19980 break 2
19981 fi
19982done
19983done
19984
21d1c967
GD
19985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19986 ;;
19987esac
f79bd02d 19988fi
e6cc62c6
VS
19989PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19990
21d1c967 19991if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19992 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19993echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19994else
e6cc62c6
VS
19995 echo "$as_me:$LINENO: result: no" >&5
19996echo "${ECHO_T}no" >&6
f79bd02d
JS
19997fi
19998
8284b0c5 19999
21d1c967
GD
20000 if test x$PKG_CONFIG != xno ; then
20001 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20002 :
20003 else
20004 echo *** pkg-config too old; version 0.7 or better required.
20005 no_gtk=yes
20006 PKG_CONFIG=no
20007 fi
20008 else
20009 no_gtk=yes
20010 fi
f79bd02d 20011
21d1c967 20012 min_gtk_version=2.0.0
e6cc62c6
VS
20013 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20014echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20015
21d1c967
GD
20016 if test x$PKG_CONFIG != xno ; then
20017 ## don't try to run the test against uninstalled libtool libs
20018 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20019 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20020 enable_gtktest=no
20021 fi
f79bd02d 20022
21d1c967
GD
20023 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20024 :
20025 else
20026 no_gtk=yes
20027 fi
20028 fi
f79bd02d 20029
21d1c967
GD
20030 if test x"$no_gtk" = x ; then
20031 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20032 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20033 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20035 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20037 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20039 if test "x$enable_gtktest" = "xyes" ; then
20040 ac_save_CFLAGS="$CFLAGS"
20041 ac_save_LIBS="$LIBS"
20042 CFLAGS="$CFLAGS $GTK_CFLAGS"
20043 LIBS="$GTK_LIBS $LIBS"
20044 rm -f conf.gtktest
20045 if test "$cross_compiling" = yes; then
20046 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20047else
e6cc62c6
VS
20048 cat >conftest.$ac_ext <<_ACEOF
20049#line $LINENO "configure"
20050/* confdefs.h. */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h. */
f79bd02d 20055
21d1c967
GD
20056#include <gtk/gtk.h>
20057#include <stdio.h>
20058#include <stdlib.h>
f79bd02d 20059
e6cc62c6 20060int
21d1c967
GD
20061main ()
20062{
20063 int major, minor, micro;
20064 char *tmp_version;
f79bd02d 20065
21d1c967 20066 system ("touch conf.gtktest");
f79bd02d 20067
21d1c967
GD
20068 /* HP/UX 9 (%@#!) writes to sscanf strings */
20069 tmp_version = g_strdup("$min_gtk_version");
20070 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20071 printf("%s, bad version string\n", "$min_gtk_version");
20072 exit(1);
20073 }
f79bd02d 20074
21d1c967
GD
20075 if ((gtk_major_version != $gtk_config_major_version) ||
20076 (gtk_minor_version != $gtk_config_minor_version) ||
20077 (gtk_micro_version != $gtk_config_micro_version))
20078 {
e6cc62c6 20079 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20080 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20081 gtk_major_version, gtk_minor_version, gtk_micro_version);
20082 printf ("*** was found! If pkg-config was correct, then it is best\n");
20083 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20084 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20085 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20086 printf("*** required on your system.\n");
20087 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20088 printf("*** to point to the correct configuration files\n");
e6cc62c6 20089 }
21d1c967
GD
20090 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20091 (gtk_minor_version != GTK_MINOR_VERSION) ||
20092 (gtk_micro_version != GTK_MICRO_VERSION))
20093 {
20094 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20095 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20096 printf("*** library (version %d.%d.%d)\n",
20097 gtk_major_version, gtk_minor_version, gtk_micro_version);
20098 }
20099 else
20100 {
20101 if ((gtk_major_version > major) ||
20102 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20103 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20104 {
20105 return 0;
20106 }
20107 else
20108 {
20109 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20110 gtk_major_version, gtk_minor_version, gtk_micro_version);
20111 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20112 major, minor, micro);
20113 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20114 printf("***\n");
20115 printf("*** If you have already installed a sufficiently new version, this error\n");
20116 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20117 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20118 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20119 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20120 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20121 printf("*** so that the correct libraries are found at run-time))\n");
20122 }
20123 }
20124 return 1;
20125}
f79bd02d 20126
e6cc62c6
VS
20127_ACEOF
20128rm -f conftest$ac_exeext
20129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130 (eval $ac_link) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
21d1c967 20139 :
f79bd02d 20140else
e6cc62c6
VS
20141 echo "$as_me: program exited with status $ac_status" >&5
20142echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145( exit $ac_status )
20146no_gtk=yes
f79bd02d 20147fi
e6cc62c6 20148rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20149fi
21d1c967
GD
20150 CFLAGS="$ac_save_CFLAGS"
20151 LIBS="$ac_save_LIBS"
20152 fi
20153 fi
20154 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20155 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20156echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20157 wx_cv_lib_gtk=2.0
21d1c967 20158 else
e6cc62c6
VS
20159 echo "$as_me:$LINENO: result: no" >&5
20160echo "${ECHO_T}no" >&6
21d1c967
GD
20161 if test "$PKG_CONFIG" = "no" ; then
20162 echo "*** A new enough version of pkg-config was not found."
20163 echo "*** See http://pkgconfig.sourceforge.net"
20164 else
20165 if test -f conf.gtktest ; then
20166 :
20167 else
20168 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20169 ac_save_CFLAGS="$CFLAGS"
20170 ac_save_LIBS="$LIBS"
21d1c967
GD
20171 CFLAGS="$CFLAGS $GTK_CFLAGS"
20172 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20173 cat >conftest.$ac_ext <<_ACEOF
20174#line $LINENO "configure"
20175/* confdefs.h. */
20176_ACEOF
20177cat confdefs.h >>conftest.$ac_ext
20178cat >>conftest.$ac_ext <<_ACEOF
20179/* end confdefs.h. */
21d1c967
GD
20180
20181#include <gtk/gtk.h>
20182#include <stdio.h>
f79bd02d 20183
e6cc62c6
VS
20184int
20185main ()
20186{
20187 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20188 ;
20189 return 0;
20190}
20191_ACEOF
20192rm -f conftest.$ac_objext conftest$ac_exeext
20193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20194 (eval $ac_link) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -s conftest$ac_exeext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
21d1c967
GD
20204 echo "*** The test program compiled, but did not run. This usually means"
20205 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20206 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20207 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20208 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20209 echo "*** is required on your system"
20210 echo "***"
20211 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20212 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20213else
e6cc62c6
VS
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20218 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20219fi
e6cc62c6 20220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20221 CFLAGS="$ac_save_CFLAGS"
20222 LIBS="$ac_save_LIBS"
20223 fi
20224 fi
20225 GTK_CFLAGS=""
20226 GTK_LIBS=""
20227 :
20228 fi
e6cc62c6
VS
20229
20230
21d1c967 20231 rm -f conf.gtktest
f79bd02d 20232
2b5f62a0 20233 else
e6cc62c6
VS
20234
20235# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20236if test "${with_gtk_prefix+set}" = set; then
20237 withval="$with_gtk_prefix"
20238 gtk_config_prefix="$withval"
20239else
20240 gtk_config_prefix=""
e6cc62c6 20241fi;
f79bd02d 20242
21d1c967
GD
20243# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20244if test "${with_gtk_exec_prefix+set}" = set; then
20245 withval="$with_gtk_exec_prefix"
20246 gtk_config_exec_prefix="$withval"
20247else
20248 gtk_config_exec_prefix=""
e6cc62c6 20249fi;
21d1c967
GD
20250# Check whether --enable-gtktest or --disable-gtktest was given.
20251if test "${enable_gtktest+set}" = set; then
20252 enableval="$enable_gtktest"
e6cc62c6 20253
21d1c967
GD
20254else
20255 enable_gtktest=yes
e6cc62c6 20256fi;
21d1c967
GD
20257
20258 for module in . $GTK_MODULES
20259 do
20260 case "$module" in
e6cc62c6 20261 gthread)
21d1c967
GD
20262 gtk_config_args="$gtk_config_args gthread"
20263 ;;
20264 esac
20265 done
20266
20267 if test x$gtk_config_exec_prefix != x ; then
20268 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20269 if test x${GTK_CONFIG+set} != xset ; then
20270 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20271 fi
20272 fi
20273 if test x$gtk_config_prefix != x ; then
20274 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20275 if test x${GTK_CONFIG+set} != xset ; then
20276 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20277 fi
20278 fi
20279
20280 # Extract the first word of "gtk-config", so it can be a program name with args.
20281set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20282echo "$as_me:$LINENO: checking for $ac_word" >&5
20283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20284if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20286else
e6cc62c6
VS
20287 case $GTK_CONFIG in
20288 [\\/]* | ?:[\\/]*)
21d1c967
GD
20289 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20290 ;;
21d1c967 20291 *)
e6cc62c6
VS
20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293for as_dir in $PATH
20294do
20295 IFS=$as_save_IFS
20296 test -z "$as_dir" && as_dir=.
20297 for ac_exec_ext in '' $ac_executable_extensions; do
20298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20299 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20301 break 2
20302 fi
20303done
20304done
20305
21d1c967
GD
20306 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20307 ;;
20308esac
20309fi
e6cc62c6
VS
20310GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20311
21d1c967 20312if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20313 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20314echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20315else
e6cc62c6
VS
20316 echo "$as_me:$LINENO: result: no" >&5
20317echo "${ECHO_T}no" >&6
21d1c967
GD
20318fi
20319
20320 min_gtk_version=1.2.7
e6cc62c6
VS
20321 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20322echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20323 no_gtk=""
20324 if test "$GTK_CONFIG" = "no" ; then
20325 no_gtk=yes
20326 else
20327 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20328 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20329 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20331 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20333 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20335 if test "x$enable_gtktest" = "xyes" ; then
20336 ac_save_CFLAGS="$CFLAGS"
20337 ac_save_LIBS="$LIBS"
20338 CFLAGS="$CFLAGS $GTK_CFLAGS"
20339 LIBS="$GTK_LIBS $LIBS"
20340 rm -f conf.gtktest
20341 if test "$cross_compiling" = yes; then
20342 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20343else
e6cc62c6
VS
20344 cat >conftest.$ac_ext <<_ACEOF
20345#line $LINENO "configure"
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
f79bd02d 20351
21d1c967
GD
20352#include <gtk/gtk.h>
20353#include <stdio.h>
20354#include <stdlib.h>
f79bd02d 20355
e6cc62c6 20356int
21d1c967
GD
20357main ()
20358{
20359 int major, minor, micro;
20360 char *tmp_version;
20361
20362 system ("touch conf.gtktest");
20363
20364 /* HP/UX 9 (%@#!) writes to sscanf strings */
20365 tmp_version = g_strdup("$min_gtk_version");
20366 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20367 printf("%s, bad version string\n", "$min_gtk_version");
20368 exit(1);
20369 }
90dd450c 20370
21d1c967
GD
20371 if ((gtk_major_version != $gtk_config_major_version) ||
20372 (gtk_minor_version != $gtk_config_minor_version) ||
20373 (gtk_micro_version != $gtk_config_micro_version))
20374 {
e6cc62c6 20375 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20376 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20377 gtk_major_version, gtk_minor_version, gtk_micro_version);
20378 printf ("*** was found! If gtk-config was correct, then it is best\n");
20379 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20380 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20381 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20382 printf("*** required on your system.\n");
20383 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20384 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20385 printf("*** before re-running configure\n");
e6cc62c6 20386 }
21d1c967
GD
20387#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20388 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20389 (gtk_minor_version != GTK_MINOR_VERSION) ||
20390 (gtk_micro_version != GTK_MICRO_VERSION))
20391 {
20392 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20393 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20394 printf("*** library (version %d.%d.%d)\n",
20395 gtk_major_version, gtk_minor_version, gtk_micro_version);
20396 }
20397#endif /* defined (GTK_MAJOR_VERSION) ... */
20398 else
20399 {
20400 if ((gtk_major_version > major) ||
20401 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20402 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20403 {
20404 return 0;
20405 }
20406 else
20407 {
20408 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20409 gtk_major_version, gtk_minor_version, gtk_micro_version);
20410 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20411 major, minor, micro);
20412 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20413 printf("***\n");
20414 printf("*** If you have already installed a sufficiently new version, this error\n");
20415 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20416 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20417 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20418 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20419 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20420 printf("*** so that the correct libraries are found at run-time))\n");
20421 }
20422 }
20423 return 1;
20424}
20425
e6cc62c6
VS
20426_ACEOF
20427rm -f conftest$ac_exeext
20428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20429 (eval $ac_link) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20435 ac_status=$?
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; }; then
21d1c967
GD
20438 :
20439else
e6cc62c6
VS
20440 echo "$as_me: program exited with status $ac_status" >&5
20441echo "$as_me: failed program was:" >&5
20442sed 's/^/| /' conftest.$ac_ext >&5
20443
20444( exit $ac_status )
20445no_gtk=yes
21d1c967 20446fi
e6cc62c6 20447rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20448fi
21d1c967
GD
20449 CFLAGS="$ac_save_CFLAGS"
20450 LIBS="$ac_save_LIBS"
20451 fi
20452 fi
20453 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20454 echo "$as_me:$LINENO: result: yes" >&5
20455echo "${ECHO_T}yes" >&6
20456 wx_cv_lib_gtk=1.2.7
21d1c967 20457 else
e6cc62c6
VS
20458 echo "$as_me:$LINENO: result: no" >&5
20459echo "${ECHO_T}no" >&6
21d1c967
GD
20460 if test "$GTK_CONFIG" = "no" ; then
20461 echo "*** The gtk-config script installed by GTK could not be found"
20462 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20463 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20464 echo "*** full path to gtk-config."
20465 else
20466 if test -f conf.gtktest ; then
20467 :
20468 else
20469 echo "*** Could not run GTK test program, checking why..."
20470 CFLAGS="$CFLAGS $GTK_CFLAGS"
20471 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20472 cat >conftest.$ac_ext <<_ACEOF
20473#line $LINENO "configure"
20474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
21d1c967
GD
20479
20480#include <gtk/gtk.h>
20481#include <stdio.h>
20482
e6cc62c6
VS
20483int
20484main ()
20485{
20486 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext conftest$ac_exeext
20492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20493 (eval $ac_link) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } &&
20497 { ac_try='test -s conftest$ac_exeext'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
21d1c967
GD
20503 echo "*** The test program compiled, but did not run. This usually means"
20504 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20505 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20506 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20507 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20508 echo "*** is required on your system"
20509 echo "***"
20510 echo "*** If you have an old version installed, it is best to remove it, although"
20511 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20512 echo "***"
20513 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20514 echo "*** came with the system with the command"
20515 echo "***"
e6cc62c6 20516 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20517else
e6cc62c6
VS
20518 echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20522 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20523 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20524 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20525fi
e6cc62c6 20526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20527 CFLAGS="$ac_save_CFLAGS"
20528 LIBS="$ac_save_LIBS"
20529 fi
20530 fi
20531 GTK_CFLAGS=""
20532 GTK_LIBS=""
20533 :
20534 fi
e6cc62c6
VS
20535
20536
21d1c967
GD
20537 rm -f conf.gtktest
20538
21d1c967 20539
2b5f62a0 20540 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20541
20542# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20543if test "${with_gtk_prefix+set}" = set; then
20544 withval="$with_gtk_prefix"
20545 gtk_config_prefix="$withval"
20546else
20547 gtk_config_prefix=""
e6cc62c6 20548fi;
f79bd02d 20549
21d1c967
GD
20550# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20551if test "${with_gtk_exec_prefix+set}" = set; then
20552 withval="$with_gtk_exec_prefix"
20553 gtk_config_exec_prefix="$withval"
20554else
20555 gtk_config_exec_prefix=""
e6cc62c6 20556fi;
21d1c967
GD
20557# Check whether --enable-gtktest or --disable-gtktest was given.
20558if test "${enable_gtktest+set}" = set; then
20559 enableval="$enable_gtktest"
e6cc62c6 20560
90dd450c 20561else
21d1c967 20562 enable_gtktest=yes
e6cc62c6 20563fi;
21d1c967
GD
20564
20565 for module in . $GTK_MODULES
20566 do
20567 case "$module" in
e6cc62c6 20568 gthread)
21d1c967
GD
20569 gtk_config_args="$gtk_config_args gthread"
20570 ;;
20571 esac
20572 done
20573
20574 if test x$gtk_config_exec_prefix != x ; then
20575 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20576 if test x${GTK_CONFIG+set} != xset ; then
20577 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20578 fi
20579 fi
20580 if test x$gtk_config_prefix != x ; then
20581 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20582 if test x${GTK_CONFIG+set} != xset ; then
20583 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20584 fi
20585 fi
20586
20587 # Extract the first word of "gtk-config", so it can be a program name with args.
20588set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20589echo "$as_me:$LINENO: checking for $ac_word" >&5
20590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20591if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20593else
e6cc62c6
VS
20594 case $GTK_CONFIG in
20595 [\\/]* | ?:[\\/]*)
21d1c967
GD
20596 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20597 ;;
21d1c967 20598 *)
e6cc62c6
VS
20599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20600for as_dir in $PATH
20601do
20602 IFS=$as_save_IFS
20603 test -z "$as_dir" && as_dir=.
20604 for ac_exec_ext in '' $ac_executable_extensions; do
20605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20606 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20608 break 2
20609 fi
20610done
20611done
20612
21d1c967
GD
20613 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20614 ;;
20615esac
20616fi
e6cc62c6
VS
20617GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20618
21d1c967 20619if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20620 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20621echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20622else
e6cc62c6
VS
20623 echo "$as_me:$LINENO: result: no" >&5
20624echo "${ECHO_T}no" >&6
21d1c967
GD
20625fi
20626
20627 min_gtk_version=1.2.3
e6cc62c6
VS
20628 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20629echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20630 no_gtk=""
20631 if test "$GTK_CONFIG" = "no" ; then
20632 no_gtk=yes
20633 else
20634 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20635 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20636 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20637 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20638 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20640 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20642 if test "x$enable_gtktest" = "xyes" ; then
20643 ac_save_CFLAGS="$CFLAGS"
20644 ac_save_LIBS="$LIBS"
20645 CFLAGS="$CFLAGS $GTK_CFLAGS"
20646 LIBS="$GTK_LIBS $LIBS"
20647 rm -f conf.gtktest
20648 if test "$cross_compiling" = yes; then
20649 echo $ac_n "cross compiling; assumed OK... $ac_c"
20650else
e6cc62c6
VS
20651 cat >conftest.$ac_ext <<_ACEOF
20652#line $LINENO "configure"
20653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h. */
21d1c967
GD
20658
20659#include <gtk/gtk.h>
20660#include <stdio.h>
20661#include <stdlib.h>
20662
e6cc62c6 20663int
21d1c967
GD
20664main ()
20665{
20666 int major, minor, micro;
20667 char *tmp_version;
20668
20669 system ("touch conf.gtktest");
20670
20671 /* HP/UX 9 (%@#!) writes to sscanf strings */
20672 tmp_version = g_strdup("$min_gtk_version");
20673 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20674 printf("%s, bad version string\n", "$min_gtk_version");
20675 exit(1);
20676 }
20677
20678 if ((gtk_major_version != $gtk_config_major_version) ||
20679 (gtk_minor_version != $gtk_config_minor_version) ||
20680 (gtk_micro_version != $gtk_config_micro_version))
20681 {
e6cc62c6 20682 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20683 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20684 gtk_major_version, gtk_minor_version, gtk_micro_version);
20685 printf ("*** was found! If gtk-config was correct, then it is best\n");
20686 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20687 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20688 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20689 printf("*** required on your system.\n");
20690 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20691 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20692 printf("*** before re-running configure\n");
e6cc62c6 20693 }
21d1c967
GD
20694#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20695 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20696 (gtk_minor_version != GTK_MINOR_VERSION) ||
20697 (gtk_micro_version != GTK_MICRO_VERSION))
20698 {
20699 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20700 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20701 printf("*** library (version %d.%d.%d)\n",
20702 gtk_major_version, gtk_minor_version, gtk_micro_version);
20703 }
20704#endif /* defined (GTK_MAJOR_VERSION) ... */
20705 else
20706 {
20707 if ((gtk_major_version > major) ||
20708 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20709 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20710 {
20711 return 0;
20712 }
20713 else
20714 {
20715 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20716 gtk_major_version, gtk_minor_version, gtk_micro_version);
20717 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20718 major, minor, micro);
20719 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20720 printf("***\n");
20721 printf("*** If you have already installed a sufficiently new version, this error\n");
20722 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20723 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20724 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20725 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20726 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20727 printf("*** so that the correct libraries are found at run-time))\n");
20728 }
20729 }
20730 return 1;
20731}
20732
e6cc62c6
VS
20733_ACEOF
20734rm -f conftest$ac_exeext
20735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736 (eval $ac_link) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
21d1c967
GD
20745 :
20746else
e6cc62c6
VS
20747 echo "$as_me: program exited with status $ac_status" >&5
20748echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751( exit $ac_status )
20752no_gtk=yes
21d1c967 20753fi
e6cc62c6 20754rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20755fi
21d1c967
GD
20756 CFLAGS="$ac_save_CFLAGS"
20757 LIBS="$ac_save_LIBS"
20758 fi
20759 fi
20760 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20761 echo "$as_me:$LINENO: result: yes" >&5
20762echo "${ECHO_T}yes" >&6
20763 wx_cv_lib_gtk=1.2.3
21d1c967 20764 else
e6cc62c6
VS
20765 echo "$as_me:$LINENO: result: no" >&5
20766echo "${ECHO_T}no" >&6
21d1c967
GD
20767 if test "$GTK_CONFIG" = "no" ; then
20768 echo "*** The gtk-config script installed by GTK could not be found"
20769 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20770 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20771 echo "*** full path to gtk-config."
20772 else
20773 if test -f conf.gtktest ; then
20774 :
20775 else
20776 echo "*** Could not run GTK test program, checking why..."
20777 CFLAGS="$CFLAGS $GTK_CFLAGS"
20778 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20779 cat >conftest.$ac_ext <<_ACEOF
20780#line $LINENO "configure"
20781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
21d1c967
GD
20786
20787#include <gtk/gtk.h>
20788#include <stdio.h>
f79bd02d 20789
e6cc62c6
VS
20790int
20791main ()
20792{
20793 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext conftest$ac_exeext
20799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20800 (eval $ac_link) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try='test -s conftest$ac_exeext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
21d1c967
GD
20810 echo "*** The test program compiled, but did not run. This usually means"
20811 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20812 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20813 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20814 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20815 echo "*** is required on your system"
20816 echo "***"
20817 echo "*** If you have an old version installed, it is best to remove it, although"
20818 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20819 echo "***"
20820 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20821 echo "*** came with the system with the command"
20822 echo "***"
e6cc62c6 20823 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20824else
e6cc62c6
VS
20825 echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20829 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20830 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20831 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20832fi
e6cc62c6 20833rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20834 CFLAGS="$ac_save_CFLAGS"
20835 LIBS="$ac_save_LIBS"
20836 fi
20837 fi
20838 GTK_CFLAGS=""
20839 GTK_LIBS=""
20840 :
20841 fi
e6cc62c6
VS
20842
20843
21d1c967 20844 rm -f conf.gtktest
f79bd02d 20845
2b5f62a0 20846 fi
21d1c967
GD
20847 fi
20848
20849 if test -z "$wx_cv_lib_gtk"; then
20850 wx_cv_lib_gtk=none
20851 else
20852 wx_cv_cflags_gtk=$GTK_CFLAGS
20853 wx_cv_libs_gtk=$GTK_LIBS
20854 fi
e6cc62c6
VS
20855
20856
5c6fa7d2 20857fi
52127426 20858
8284b0c5 20859
21d1c967 20860 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20861 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20862echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20863 fi
20864
20865 case "$wx_cv_lib_gtk" in
20866 2.0) WXGTK20=1
2b5f62a0 20867 TOOLKIT_VERSION=2
21d1c967
GD
20868 ;;
20869 1.2.7) WXGTK127=1
20870 WXGTK12=1
20871 ;;
20872 1.2.3) WXGTK12=1
20873 ;;
e6cc62c6
VS
20874 *) { { echo "$as_me:$LINENO: error:
20875Please check that gtk-config is in path, the directory
20876where GTK+ libraries are installed (returned by
20877'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20878equivalent variable and GTK+ is version 1.2.3 or above.
20879 " >&5
20880echo "$as_me: error:
247f5006
VZ
20881Please check that gtk-config is in path, the directory
20882where GTK+ libraries are installed (returned by
20883'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20884equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20885 " >&2;}
20886 { (exit 1); exit 1; }; }
21d1c967
GD
20887 ;;
20888 esac
20889
b13cd66e
VZ
20890 if test "$WXGTK20" = 1; then
20891 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20892
f09359cf
VS
20893 succeeded=no
20894
20895 if test -z "$PKG_CONFIG"; then
20896 # Extract the first word of "pkg-config", so it can be a program name with args.
20897set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20898echo "$as_me:$LINENO: checking for $ac_word" >&5
20899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20900if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20902else
e6cc62c6
VS
20903 case $PKG_CONFIG in
20904 [\\/]* | ?:[\\/]*)
f09359cf
VS
20905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20906 ;;
f09359cf 20907 *)
e6cc62c6
VS
20908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909for as_dir in $PATH
20910do
20911 IFS=$as_save_IFS
20912 test -z "$as_dir" && as_dir=.
20913 for ac_exec_ext in '' $ac_executable_extensions; do
20914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20917 break 2
20918 fi
20919done
20920done
20921
f09359cf
VS
20922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20923 ;;
20924esac
20925fi
e6cc62c6
VS
20926PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20927
f09359cf 20928if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20929 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20930echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20931else
e6cc62c6
VS
20932 echo "$as_me:$LINENO: result: no" >&5
20933echo "${ECHO_T}no" >&6
f09359cf
VS
20934fi
20935
20936 fi
20937
20938 if test "$PKG_CONFIG" = "no" ; then
20939 echo "*** The pkg-config script could not be found. Make sure it is"
20940 echo "*** in your path, or set the PKG_CONFIG environment variable"
20941 echo "*** to the full path to pkg-config."
20942 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20943 else
20944 PKG_CONFIG_MIN_VERSION=0.9.0
20945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20946 echo "$as_me:$LINENO: checking for pangoft2" >&5
20947echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20948
20949 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20950 echo "$as_me:$LINENO: result: yes" >&5
20951echo "${ECHO_T}yes" >&6
f09359cf
VS
20952 succeeded=yes
20953
e6cc62c6
VS
20954 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20955echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20956 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20957 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20958echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20959
e6cc62c6
VS
20960 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20961echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20962 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20963 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20964echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20965 else
20966 PANGOFT2_CFLAGS=""
20967 PANGOFT2_LIBS=""
e6cc62c6 20968 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20969 ## do set a variable so people can do so.
20970 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20971
f09359cf
VS
20972 fi
20973
e6cc62c6
VS
20974
20975
f09359cf
VS
20976 else
20977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20979 fi
20980 fi
20981
20982 if test $succeeded = yes; then
e6cc62c6 20983
b13cd66e 20984 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20985 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20986
f09359cf 20987 else
e6cc62c6
VS
20988
20989 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20990echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20991 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20992
20993
f09359cf
VS
20994 fi
20995
b13cd66e 20996 fi
2b5f62a0
VZ
20997 else
20998 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20999 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21000echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21001 wxUSE_UNICODE=no
21002 fi
21003 fi
21004
21005 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21006
21007for ac_func in poll
2b5f62a0 21008do
e6cc62c6
VS
21009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21010echo "$as_me:$LINENO: checking for $ac_func" >&5
21011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21012if eval "test \"\${$as_ac_var+set}\" = set"; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21014else
21015 cat >conftest.$ac_ext <<_ACEOF
21016#line $LINENO "configure"
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
2b5f62a0 21022/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21026#ifdef __STDC__
21027# include <limits.h>
21028#else
21029# include <assert.h>
21030#endif
2b5f62a0 21031/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21032#ifdef __cplusplus
21033extern "C"
21034{
21035#endif
2b5f62a0 21036/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21037 builtin and then its argument prototype would still apply. */
21038char $ac_func ();
2b5f62a0
VZ
21039/* The GNU C library defines this for functions which it implements
21040 to always fail with ENOSYS. Some functions are actually named
21041 something starting with __ and the normal name is an alias. */
21042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21043choke me
21044#else
e6cc62c6
VS
21045char (*f) () = $ac_func;
21046#endif
21047#ifdef __cplusplus
21048}
2b5f62a0
VZ
21049#endif
21050
e6cc62c6
VS
21051int
21052main ()
21053{
21054return f != $ac_func;
21055 ;
21056 return 0;
21057}
21058_ACEOF
21059rm -f conftest.$ac_objext conftest$ac_exeext
21060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21061 (eval $ac_link) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -s conftest$ac_exeext'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 eval "$as_ac_var=yes"
21072else
21073 echo "$as_me: failed program was:" >&5
21074sed 's/^/| /' conftest.$ac_ext >&5
21075
21076eval "$as_ac_var=no"
21077fi
21078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21079fi
21080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21082if test `eval echo '${'$as_ac_var'}'` = yes; then
21083 cat >>confdefs.h <<_ACEOF
21084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21085_ACEOF
2b5f62a0 21086
2b5f62a0
VZ
21087fi
21088done
21089
f09359cf
VS
21090 fi
21091
21d1c967 21092 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21093 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21094
21095 AFMINSTALL=afminstall
21096 TOOLKIT=GTK
21097 GUIDIST=GTK_DIST
21098
e6cc62c6
VS
21099 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21100echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21101if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21103else
e6cc62c6 21104 ac_check_lib_save_LIBS=$LIBS
21d1c967 21105LIBS="-lgdk $LIBS"
e6cc62c6
VS
21106cat >conftest.$ac_ext <<_ACEOF
21107#line $LINENO "configure"
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113
5c6fa7d2 21114/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21115#ifdef __cplusplus
21116extern "C"
21117#endif
5c6fa7d2 21118/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21119 builtin and then its argument prototype would still apply. */
21120char gdk_im_open ();
21121int
21122main ()
21123{
21124gdk_im_open ();
21125 ;
21126 return 0;
21127}
21128_ACEOF
21129rm -f conftest.$ac_objext conftest$ac_exeext
21130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21131 (eval $ac_link) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -s conftest$ac_exeext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_lib_gdk_gdk_im_open=yes
21142else
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146ac_cv_lib_gdk_gdk_im_open=no
21147fi
21148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21149LIBS=$ac_check_lib_save_LIBS
21150fi
21151echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21152echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21153if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21154 cat >>confdefs.h <<\_ACEOF
21d1c967 21155#define HAVE_XIM 1
e6cc62c6 21156_ACEOF
21d1c967 21157
90dd450c 21158fi
1e6feb95 21159
21d1c967 21160 fi
1e6feb95 21161
21d1c967 21162 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21163 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21164echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21165 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21166 echo "$as_me:$LINENO: result: not found" >&5
21167echo "${ECHO_T}not found" >&6
21168 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21169echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21170 { (exit 1); exit 1; }; }
21d1c967 21171 else
e6cc62c6
VS
21172 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21173echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21174 fi
21175
e6cc62c6
VS
21176 echo "$as_me:$LINENO: checking for libmgl location" >&5
21177echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
21178 case "${host}" in
21179 *-*-linux* )
63a76696
VS
21180 if test "x$wxUSE_SHARED" = xyes ; then
21181 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21182 else
21183 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21184 fi
21d1c967
GD
21185 ;;
21186 *-pc-msdosdjgpp )
63a76696 21187 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21188 ;;
21189 *)
e6cc62c6
VS
21190 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21191echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21192 { (exit 1); exit 1; }; }
21d1c967 21193 esac
1e6feb95 21194
21d1c967 21195 mgl_lib_type=""
63a76696
VS
21196 mgl_os=""
21197
21198 for mgl_os_i in $mgl_os_candidates ; do
21199 if test "x$mgl_os" = x ; then
21200 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21201 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21202 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21203 mgl_lib_type=debug
21204 mgl_os=$mgl_os_i
21205 fi
21206 fi
21207 if test "x$mgl_lib_type" = x ; then
21208 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21209 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21210 mgl_lib_type=release
21211 mgl_os=$mgl_os_i
21212 fi
21213 fi
21d1c967 21214 fi
63a76696 21215 done
2224580a 21216
63a76696 21217 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21218 echo "$as_me:$LINENO: result: not found" >&5
21219echo "${ECHO_T}not found" >&6
21220 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21221echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21222 { (exit 1); exit 1; }; }
63a76696 21223 fi
e6cc62c6
VS
21224 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21225echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21226
1d1b75ac
VZ
21227 wxUSE_UNIVERSAL="yes"
21228
21d1c967
GD
21229 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21230 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21231
90dd450c 21232 AFMINSTALL=afminstall
21d1c967
GD
21233 TOOLKIT=MGL
21234 GUIDIST=MGL_DIST
21235 fi
dad6c0ea 21236
21d1c967 21237 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21238 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21239echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21240 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21241 echo "$as_me:$LINENO: result: not found" >&5
21242echo "${ECHO_T}not found" >&6
21243 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21244echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21245 { (exit 1); exit 1; }; }
21d1c967 21246 else
e6cc62c6
VS
21247 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21248echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21249 fi
f6bcfd97 21250
21d1c967 21251 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21252 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21253echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21254 else
e6cc62c6
VS
21255 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21256echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21257 { (exit 1); exit 1; }; }
90dd450c 21258 fi
0b2effe9 21259
21d1c967
GD
21260 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21261 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21262
1d1b75ac
VZ
21263 wxUSE_UNIVERSAL="yes"
21264
21d1c967
GD
21265 AFMINSTALL=afminstall
21266 TOOLKIT=MICROWIN
21267 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21268
21269 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21270 fi
f6bcfd97 21271
21d1c967 21272 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21273 echo "$as_me:$LINENO: checking for X" >&5
21274echo $ECHO_N "checking for X... $ECHO_C" >&6
21275
d8356fa3 21276
21d1c967
GD
21277# Check whether --with-x or --without-x was given.
21278if test "${with_x+set}" = set; then
21279 withval="$with_x"
2224580a 21280
e6cc62c6 21281fi;
21d1c967
GD
21282# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21283if test "x$with_x" = xno; then
21284 # The user explicitly disabled X.
21285 have_x=disabled
21286else
21287 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21288 # Both variables are already set.
21289 have_x=yes
21290 else
e6cc62c6
VS
21291 if test "${ac_cv_have_x+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21293else
21294 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21295ac_x_includes=no ac_x_libraries=no
21296rm -fr conftest.dir
21297if mkdir conftest.dir; then
21298 cd conftest.dir
21d1c967 21299 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21300 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21301acfindx:
21302 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21303_ACEOF
21d1c967
GD
21304 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21306 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21307 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21308 for ac_extension in a so sl; do
21309 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21310 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21311 ac_im_usrlibdir=$ac_im_libdir; break
21312 fi
21313 done
21314 # Screen out bogus values from the imake configuration. They are
21315 # bogus both because they are the default anyway, and because
21316 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21317 case $ac_im_incroot in
21d1c967 21318 /usr/include) ;;
e6cc62c6 21319 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21320 esac
e6cc62c6 21321 case $ac_im_usrlibdir in
21d1c967 21322 /usr/lib | /lib) ;;
e6cc62c6 21323 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21324 esac
21325 fi
21326 cd ..
e6cc62c6 21327 rm -fr conftest.dir
21d1c967 21328fi
10f2d63a 21329
e6cc62c6
VS
21330# Standard set of common directories for X headers.
21331# Check X11 before X11Rn because it is often a symlink to the current release.
21332ac_x_header_dirs='
21333/usr/X11/include
21334/usr/X11R6/include
21335/usr/X11R5/include
21336/usr/X11R4/include
21337
21338/usr/include/X11
21339/usr/include/X11R6
21340/usr/include/X11R5
21341/usr/include/X11R4
21342
21343/usr/local/X11/include
21344/usr/local/X11R6/include
21345/usr/local/X11R5/include
21346/usr/local/X11R4/include
21347
21348/usr/local/include/X11
21349/usr/local/include/X11R6
21350/usr/local/include/X11R5
21351/usr/local/include/X11R4
21352
21353/usr/X386/include
21354/usr/x386/include
21355/usr/XFree86/include/X11
21356
21357/usr/include
21358/usr/local/include
21359/usr/unsupported/include
21360/usr/athena/include
21361/usr/local/x11r5/include
21362/usr/lpp/Xamples/include
21363
21364/usr/openwin/include
21365/usr/openwin/share/include'
21366
21367if test "$ac_x_includes" = no; then
21368 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21369 # First, try using that file with no special directory specified.
e6cc62c6
VS
21370 cat >conftest.$ac_ext <<_ACEOF
21371#line $LINENO "configure"
21372/* confdefs.h. */
21373_ACEOF
21374cat confdefs.h >>conftest.$ac_ext
21375cat >>conftest.$ac_ext <<_ACEOF
21376/* end confdefs.h. */
21377#include <X11/Intrinsic.h>
21378_ACEOF
21379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } >/dev/null; then
21387 if test -s conftest.err; then
21388 ac_cpp_err=$ac_c_preproc_warn_flag
21389 else
21390 ac_cpp_err=
21391 fi
21392else
21393 ac_cpp_err=yes
21394fi
21395if test -z "$ac_cpp_err"; then
21d1c967
GD
21396 # We can compile using X headers with no special include directory.
21397ac_x_includes=
90dd450c 21398else
e6cc62c6
VS
21399 echo "$as_me: failed program was:" >&5
21400sed 's/^/| /' conftest.$ac_ext >&5
21401
21402 for ac_dir in $ac_x_header_dirs; do
21403 if test -r "$ac_dir/X11/Intrinsic.h"; then
21404 ac_x_includes=$ac_dir
21405 break
21406 fi
21407done
3a922bb4 21408fi
e6cc62c6
VS
21409rm -f conftest.err conftest.$ac_ext
21410fi # $ac_x_includes = no
10f2d63a 21411
e6cc62c6 21412if test "$ac_x_libraries" = no; then
21d1c967 21413 # Check for the libraries.
21d1c967
GD
21414 # See if we find them without any special options.
21415 # Don't add to $LIBS permanently.
e6cc62c6
VS
21416 ac_save_LIBS=$LIBS
21417 LIBS="-lXt $LIBS"
21418 cat >conftest.$ac_ext <<_ACEOF
21419#line $LINENO "configure"
21420/* confdefs.h. */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h. */
21425#include <X11/Intrinsic.h>
21426int
21427main ()
21428{
21429XtMalloc (0)
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext conftest$ac_exeext
21435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21436 (eval $ac_link) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -s conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 LIBS=$ac_save_LIBS
21d1c967
GD
21447# We can link X programs with no special library path.
21448ac_x_libraries=
3a922bb4 21449else
e6cc62c6
VS
21450 echo "$as_me: failed program was:" >&5
21451sed 's/^/| /' conftest.$ac_ext >&5
21452
21453LIBS=$ac_save_LIBS
21454for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21455do
e6cc62c6 21456 # Don't even attempt the hair of trying to link an X program!
21d1c967 21457 for ac_extension in a so sl; do
e6cc62c6 21458 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21459 ac_x_libraries=$ac_dir
21460 break 2
21461 fi
21462 done
21463done
3a922bb4 21464fi
e6cc62c6
VS
21465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21466fi # $ac_x_libraries = no
90dd450c 21467
e6cc62c6 21468if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21469 # Didn't find X anywhere. Cache the known absence of X.
21470 ac_cv_have_x="have_x=no"
21471else
21472 # Record where we found X for the cache.
21473 ac_cv_have_x="have_x=yes \
21474 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21475fi
21d1c967 21476fi
e6cc62c6 21477
21d1c967
GD
21478 fi
21479 eval "$ac_cv_have_x"
21480fi # $with_x != no
90dd450c 21481
21d1c967 21482if test "$have_x" != yes; then
e6cc62c6
VS
21483 echo "$as_me:$LINENO: result: $have_x" >&5
21484echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21485 no_x=yes
21486else
21487 # If each of the values was on the command line, it overrides each guess.
21488 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21489 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21490 # Update the cache value to reflect the command line values.
21491 ac_cv_have_x="have_x=yes \
21492 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21493 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21494echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21495fi
90dd450c 21496
21d1c967 21497if test "$no_x" = yes; then
90dd450c 21498 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21499
21500cat >>confdefs.h <<\_ACEOF
90dd450c 21501#define X_DISPLAY_MISSING 1
e6cc62c6 21502_ACEOF
90dd450c
VZ
21503
21504 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21505else
21506 if test -n "$x_includes"; then
21507 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21508 fi
3a922bb4 21509
90dd450c
VZ
21510 # It would also be nice to do this for all -L options, not just this one.
21511 if test -n "$x_libraries"; then
21512 X_LIBS="$X_LIBS -L$x_libraries"
21513 # For Solaris; some versions of Sun CC require a space after -R and
21514 # others require no space. Words are not sufficient . . . .
e6cc62c6 21515 case `(uname -sr) 2>/dev/null` in
90dd450c 21516 "SunOS 5"*)
e6cc62c6
VS
21517 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21518echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21519 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21520 cat >conftest.$ac_ext <<_ACEOF
21521#line $LINENO "configure"
21522/* confdefs.h. */
21523_ACEOF
21524cat confdefs.h >>conftest.$ac_ext
21525cat >>conftest.$ac_ext <<_ACEOF
21526/* end confdefs.h. */
21527
21528int
21529main ()
21530{
90dd450c 21531
e6cc62c6
VS
21532 ;
21533 return 0;
21534}
21535_ACEOF
21536rm -f conftest.$ac_objext conftest$ac_exeext
21537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21538 (eval $ac_link) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } &&
21542 { ac_try='test -s conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
90dd450c 21548 ac_R_nospace=yes
3a922bb4 21549else
e6cc62c6
VS
21550 echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
21553ac_R_nospace=no
3a922bb4 21554fi
e6cc62c6 21555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21556 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21557 echo "$as_me:$LINENO: result: no" >&5
21558echo "${ECHO_T}no" >&6
90dd450c
VZ
21559 X_LIBS="$X_LIBS -R$x_libraries"
21560 else
21561 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21562 cat >conftest.$ac_ext <<_ACEOF
21563#line $LINENO "configure"
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569
21570int
21571main ()
21572{
6f754473 21573
e6cc62c6
VS
21574 ;
21575 return 0;
21576}
21577_ACEOF
21578rm -f conftest.$ac_objext conftest$ac_exeext
21579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21580 (eval $ac_link) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } &&
21584 { ac_try='test -s conftest$ac_exeext'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
90dd450c
VZ
21590 ac_R_space=yes
21591else
e6cc62c6
VS
21592 echo "$as_me: failed program was:" >&5
21593sed 's/^/| /' conftest.$ac_ext >&5
21594
21595ac_R_space=no
90dd450c 21596fi
e6cc62c6 21597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21598 if test $ac_R_space = yes; then
e6cc62c6
VS
21599 echo "$as_me:$LINENO: result: yes" >&5
21600echo "${ECHO_T}yes" >&6
90dd450c
VZ
21601 X_LIBS="$X_LIBS -R $x_libraries"
21602 else
e6cc62c6
VS
21603 echo "$as_me:$LINENO: result: neither works" >&5
21604echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21605 fi
21606 fi
e6cc62c6 21607 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21608 esac
21609 fi
21610
21611 # Check for system-dependent libraries X programs must link with.
21612 # Do this before checking for the system-independent R6 libraries
21613 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21614
90dd450c
VZ
21615 if test "$ISC" = yes; then
21616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21617 else
e6cc62c6
VS
21618 # Martyn Johnson says this is needed for Ultrix, if the X
21619 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21620 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21621 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21622 cat >conftest.$ac_ext <<_ACEOF
21623#line $LINENO "configure"
21624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629
247f5006 21630/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21631#ifdef __cplusplus
21632extern "C"
21633#endif
247f5006 21634/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21635 builtin and then its argument prototype would still apply. */
21636char XOpenDisplay ();
21637int
21638main ()
21639{
21640XOpenDisplay ();
21641 ;
21642 return 0;
21643}
21644_ACEOF
21645rm -f conftest.$ac_objext conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
21651 { ac_try='test -s conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 :
21658else
21659 echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21661
e6cc62c6
VS
21662echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21663echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21664if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21666else
e6cc62c6
VS
21667 ac_check_lib_save_LIBS=$LIBS
21668LIBS="-ldnet $LIBS"
21669cat >conftest.$ac_ext <<_ACEOF
21670#line $LINENO "configure"
21671/* confdefs.h. */
21672_ACEOF
21673cat confdefs.h >>conftest.$ac_ext
21674cat >>conftest.$ac_ext <<_ACEOF
21675/* end confdefs.h. */
a0b9e27f 21676
e6cc62c6
VS
21677/* Override any gcc2 internal prototype to avoid an error. */
21678#ifdef __cplusplus
21679extern "C"
21680#endif
21681/* We use char because int might match the return type of a gcc2
21682 builtin and then its argument prototype would still apply. */
21683char dnet_ntoa ();
21684int
21685main ()
21686{
21687dnet_ntoa ();
21688 ;
21689 return 0;
21690}
21691_ACEOF
21692rm -f conftest.$ac_objext conftest$ac_exeext
21693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21694 (eval $ac_link) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } &&
21698 { ac_try='test -s conftest$ac_exeext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_lib_dnet_dnet_ntoa=yes
21705else
21706 echo "$as_me: failed program was:" >&5
21707sed 's/^/| /' conftest.$ac_ext >&5
21708
21709ac_cv_lib_dnet_dnet_ntoa=no
21710fi
21711rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21712LIBS=$ac_check_lib_save_LIBS
21713fi
21714echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21715echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21716if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21717 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21718fi
21719
90dd450c 21720 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21721 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21722echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21723if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21725else
e6cc62c6 21726 ac_check_lib_save_LIBS=$LIBS
90dd450c 21727LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21728cat >conftest.$ac_ext <<_ACEOF
21729#line $LINENO "configure"
21730/* confdefs.h. */
21731_ACEOF
21732cat confdefs.h >>conftest.$ac_ext
21733cat >>conftest.$ac_ext <<_ACEOF
21734/* end confdefs.h. */
21735
90dd450c 21736/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21737#ifdef __cplusplus
21738extern "C"
21739#endif
90dd450c 21740/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21741 builtin and then its argument prototype would still apply. */
21742char dnet_ntoa ();
21743int
21744main ()
21745{
21746dnet_ntoa ();
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest.$ac_objext conftest$ac_exeext
21752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21753 (eval $ac_link) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -s conftest$ac_exeext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21764else
21765 echo "$as_me: failed program was:" >&5
21766sed 's/^/| /' conftest.$ac_ext >&5
21767
21768ac_cv_lib_dnet_stub_dnet_ntoa=no
21769fi
21770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21771LIBS=$ac_check_lib_save_LIBS
21772fi
21773echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21774echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21775if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21776 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21777fi
21778
90dd450c 21779 fi
e6cc62c6
VS
21780fi
21781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21782 LIBS="$ac_xsave_LIBS"
978f1259 21783
90dd450c
VZ
21784 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21785 # to get the SysV transport functions.
e6cc62c6 21786 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21787 # needs -lnsl.
21788 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21789 # on Irix 5.2, according to T.E. Dickey.
21790 # The functions gethostbyname, getservbyname, and inet_addr are
21791 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21792 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21793echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21794if test "${ac_cv_func_gethostbyname+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797 cat >conftest.$ac_ext <<_ACEOF
21798#line $LINENO "configure"
21799/* confdefs.h. */
21800_ACEOF
21801cat confdefs.h >>conftest.$ac_ext
21802cat >>conftest.$ac_ext <<_ACEOF
21803/* end confdefs.h. */
90dd450c 21804/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21805 which can conflict with char gethostbyname (); below.
21806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21807 <limits.h> exists even on freestanding compilers. */
21808#ifdef __STDC__
21809# include <limits.h>
21810#else
21811# include <assert.h>
21812#endif
90dd450c 21813/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21814#ifdef __cplusplus
21815extern "C"
21816{
21817#endif
90dd450c 21818/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21819 builtin and then its argument prototype would still apply. */
21820char gethostbyname ();
90dd450c
VZ
21821/* The GNU C library defines this for functions which it implements
21822 to always fail with ENOSYS. Some functions are actually named
21823 something starting with __ and the normal name is an alias. */
21824#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21825choke me
21826#else
e6cc62c6
VS
21827char (*f) () = gethostbyname;
21828#endif
21829#ifdef __cplusplus
21830}
90dd450c 21831#endif
978f1259 21832
e6cc62c6
VS
21833int
21834main ()
21835{
21836return f != gethostbyname;
21837 ;
21838 return 0;
21839}
21840_ACEOF
21841rm -f conftest.$ac_objext conftest$ac_exeext
21842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21843 (eval $ac_link) 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -s conftest$ac_exeext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_gethostbyname=yes
21854else
21855 echo "$as_me: failed program was:" >&5
21856sed 's/^/| /' conftest.$ac_ext >&5
21857
21858ac_cv_func_gethostbyname=no
21859fi
21860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21861fi
21862echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21863echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21864
90dd450c 21865 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21866 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21867echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21868if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21870else
e6cc62c6 21871 ac_check_lib_save_LIBS=$LIBS
90dd450c 21872LIBS="-lnsl $LIBS"
e6cc62c6
VS
21873cat >conftest.$ac_ext <<_ACEOF
21874#line $LINENO "configure"
21875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
21880
90dd450c 21881/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21882#ifdef __cplusplus
21883extern "C"
21884#endif
90dd450c 21885/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21886 builtin and then its argument prototype would still apply. */
21887char gethostbyname ();
21888int
21889main ()
21890{
21891gethostbyname ();
21892 ;
21893 return 0;
21894}
21895_ACEOF
21896rm -f conftest.$ac_objext conftest$ac_exeext
21897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -s conftest$ac_exeext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_cv_lib_nsl_gethostbyname=yes
21909else
21910 echo "$as_me: failed program was:" >&5
21911sed 's/^/| /' conftest.$ac_ext >&5
21912
21913ac_cv_lib_nsl_gethostbyname=no
21914fi
21915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21916LIBS=$ac_check_lib_save_LIBS
21917fi
21918echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21919echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21920if test $ac_cv_lib_nsl_gethostbyname = yes; then
21921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21922fi
247f5006 21923
e6cc62c6
VS
21924 if test $ac_cv_lib_nsl_gethostbyname = no; then
21925 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21926echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21927if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21929else
e6cc62c6
VS
21930 ac_check_lib_save_LIBS=$LIBS
21931LIBS="-lbsd $LIBS"
21932cat >conftest.$ac_ext <<_ACEOF
21933#line $LINENO "configure"
21934/* confdefs.h. */
21935_ACEOF
21936cat confdefs.h >>conftest.$ac_ext
21937cat >>conftest.$ac_ext <<_ACEOF
21938/* end confdefs.h. */
21939
21940/* Override any gcc2 internal prototype to avoid an error. */
21941#ifdef __cplusplus
21942extern "C"
21943#endif
21944/* We use char because int might match the return type of a gcc2
21945 builtin and then its argument prototype would still apply. */
21946char gethostbyname ();
21947int
21948main ()
21949{
21950gethostbyname ();
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext conftest$ac_exeext
21956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 ac_cv_lib_bsd_gethostbyname=yes
21968else
21969 echo "$as_me: failed program was:" >&5
21970sed 's/^/| /' conftest.$ac_ext >&5
21971
21972ac_cv_lib_bsd_gethostbyname=no
21973fi
21974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21975LIBS=$ac_check_lib_save_LIBS
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21978echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21979if test $ac_cv_lib_bsd_gethostbyname = yes; then
21980 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21981fi
b12915c1 21982
e6cc62c6 21983 fi
90dd450c
VZ
21984 fi
21985
21986 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21987 # socket/setsockopt and other routines are undefined under SCO ODT
21988 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21989 # on later versions), says Simon Leinen: it contains gethostby*
21990 # variants that don't use the name server (or something). -lsocket
21991 # must be given before -lnsl if both are needed. We assume that
21992 # if connect needs -lnsl, so does gethostbyname.
21993 echo "$as_me:$LINENO: checking for connect" >&5
21994echo $ECHO_N "checking for connect... $ECHO_C" >&6
21995if test "${ac_cv_func_connect+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997else
21998 cat >conftest.$ac_ext <<_ACEOF
21999#line $LINENO "configure"
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
90dd450c 22005/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22006 which can conflict with char connect (); below.
22007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22008 <limits.h> exists even on freestanding compilers. */
22009#ifdef __STDC__
22010# include <limits.h>
22011#else
22012# include <assert.h>
22013#endif
90dd450c 22014/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22015#ifdef __cplusplus
22016extern "C"
22017{
22018#endif
90dd450c 22019/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22020 builtin and then its argument prototype would still apply. */
22021char connect ();
90dd450c
VZ
22022/* The GNU C library defines this for functions which it implements
22023 to always fail with ENOSYS. Some functions are actually named
22024 something starting with __ and the normal name is an alias. */
22025#if defined (__stub_connect) || defined (__stub___connect)
22026choke me
22027#else
e6cc62c6
VS
22028char (*f) () = connect;
22029#endif
22030#ifdef __cplusplus
22031}
90dd450c
VZ
22032#endif
22033
e6cc62c6
VS
22034int
22035main ()
22036{
22037return f != connect;
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext conftest$ac_exeext
22043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22044 (eval $ac_link) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); } &&
22048 { ac_try='test -s conftest$ac_exeext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ac_cv_func_connect=yes
22055else
22056 echo "$as_me: failed program was:" >&5
22057sed 's/^/| /' conftest.$ac_ext >&5
22058
22059ac_cv_func_connect=no
22060fi
22061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22062fi
22063echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22064echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22065
90dd450c 22066 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22067 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22068echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22069if test "${ac_cv_lib_socket_connect+set}" = set; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22071else
e6cc62c6 22072 ac_check_lib_save_LIBS=$LIBS
90dd450c 22073LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22074cat >conftest.$ac_ext <<_ACEOF
22075#line $LINENO "configure"
22076/* confdefs.h. */
22077_ACEOF
22078cat confdefs.h >>conftest.$ac_ext
22079cat >>conftest.$ac_ext <<_ACEOF
22080/* end confdefs.h. */
22081
90dd450c 22082/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22083#ifdef __cplusplus
22084extern "C"
22085#endif
90dd450c 22086/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22087 builtin and then its argument prototype would still apply. */
22088char connect ();
22089int
22090main ()
22091{
22092connect ();
22093 ;
22094 return 0;
22095}
22096_ACEOF
22097rm -f conftest.$ac_objext conftest$ac_exeext
22098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22099 (eval $ac_link) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } &&
22103 { ac_try='test -s conftest$ac_exeext'
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_cv_lib_socket_connect=yes
22110else
22111 echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114ac_cv_lib_socket_connect=no
22115fi
22116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22117LIBS=$ac_check_lib_save_LIBS
22118fi
22119echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22120echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22121if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22122 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22123fi
77e13408 22124
90dd450c 22125 fi
25d0687a 22126
e6cc62c6
VS
22127 # Guillermo Gomez says -lposix is necessary on A/UX.
22128 echo "$as_me:$LINENO: checking for remove" >&5
22129echo $ECHO_N "checking for remove... $ECHO_C" >&6
22130if test "${ac_cv_func_remove+set}" = set; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22132else
22133 cat >conftest.$ac_ext <<_ACEOF
22134#line $LINENO "configure"
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
90dd450c 22140/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22141 which can conflict with char remove (); below.
22142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22143 <limits.h> exists even on freestanding compilers. */
22144#ifdef __STDC__
22145# include <limits.h>
22146#else
22147# include <assert.h>
22148#endif
90dd450c 22149/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22150#ifdef __cplusplus
22151extern "C"
22152{
22153#endif
90dd450c 22154/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22155 builtin and then its argument prototype would still apply. */
22156char remove ();
90dd450c
VZ
22157/* The GNU C library defines this for functions which it implements
22158 to always fail with ENOSYS. Some functions are actually named
22159 something starting with __ and the normal name is an alias. */
22160#if defined (__stub_remove) || defined (__stub___remove)
22161choke me
22162#else
e6cc62c6
VS
22163char (*f) () = remove;
22164#endif
22165#ifdef __cplusplus
22166}
90dd450c 22167#endif
55e80573 22168
e6cc62c6
VS
22169int
22170main ()
22171{
22172return f != remove;
22173 ;
22174 return 0;
22175}
22176_ACEOF
22177rm -f conftest.$ac_objext conftest$ac_exeext
22178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22179 (eval $ac_link) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } &&
22183 { ac_try='test -s conftest$ac_exeext'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_func_remove=yes
22190else
22191 echo "$as_me: failed program was:" >&5
22192sed 's/^/| /' conftest.$ac_ext >&5
22193
22194ac_cv_func_remove=no
22195fi
22196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22197fi
22198echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22199echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22200
90dd450c 22201 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22202 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22203echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22204if test "${ac_cv_lib_posix_remove+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22206else
e6cc62c6 22207 ac_check_lib_save_LIBS=$LIBS
90dd450c 22208LIBS="-lposix $LIBS"
e6cc62c6
VS
22209cat >conftest.$ac_ext <<_ACEOF
22210#line $LINENO "configure"
22211/* confdefs.h. */
22212_ACEOF
22213cat confdefs.h >>conftest.$ac_ext
22214cat >>conftest.$ac_ext <<_ACEOF
22215/* end confdefs.h. */
22216
90dd450c 22217/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22218#ifdef __cplusplus
22219extern "C"
22220#endif
90dd450c 22221/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22222 builtin and then its argument prototype would still apply. */
22223char remove ();
22224int
22225main ()
22226{
22227remove ();
22228 ;
22229 return 0;
22230}
22231_ACEOF
22232rm -f conftest.$ac_objext conftest$ac_exeext
22233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22234 (eval $ac_link) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); } &&
22238 { ac_try='test -s conftest$ac_exeext'
22239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_lib_posix_remove=yes
22245else
22246 echo "$as_me: failed program was:" >&5
22247sed 's/^/| /' conftest.$ac_ext >&5
22248
22249ac_cv_lib_posix_remove=no
22250fi
22251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22252LIBS=$ac_check_lib_save_LIBS
22253fi
22254echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22255echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22256if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22258fi
f6bcfd97 22259
6fa882bd
RR
22260 fi
22261
90dd450c 22262 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22263 echo "$as_me:$LINENO: checking for shmat" >&5
22264echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22265if test "${ac_cv_func_shmat+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22267else
22268 cat >conftest.$ac_ext <<_ACEOF
22269#line $LINENO "configure"
22270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
90dd450c 22275/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22276 which can conflict with char shmat (); below.
22277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22278 <limits.h> exists even on freestanding compilers. */
22279#ifdef __STDC__
22280# include <limits.h>
22281#else
22282# include <assert.h>
22283#endif
90dd450c 22284/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22285#ifdef __cplusplus
22286extern "C"
22287{
22288#endif
90dd450c 22289/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22290 builtin and then its argument prototype would still apply. */
22291char shmat ();
90dd450c
VZ
22292/* The GNU C library defines this for functions which it implements
22293 to always fail with ENOSYS. Some functions are actually named
22294 something starting with __ and the normal name is an alias. */
22295#if defined (__stub_shmat) || defined (__stub___shmat)
22296choke me
22297#else
e6cc62c6
VS
22298char (*f) () = shmat;
22299#endif
22300#ifdef __cplusplus
22301}
90dd450c 22302#endif
10f2d63a 22303
e6cc62c6
VS
22304int
22305main ()
22306{
22307return f != shmat;
22308 ;
22309 return 0;
22310}
22311_ACEOF
22312rm -f conftest.$ac_objext conftest$ac_exeext
22313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22314 (eval $ac_link) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } &&
22318 { ac_try='test -s conftest$ac_exeext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22324 ac_cv_func_shmat=yes
22325else
22326 echo "$as_me: failed program was:" >&5
22327sed 's/^/| /' conftest.$ac_ext >&5
22328
22329ac_cv_func_shmat=no
22330fi
22331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22332fi
22333echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22334echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22335
90dd450c 22336 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22337 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22338echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22339if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22341else
e6cc62c6 22342 ac_check_lib_save_LIBS=$LIBS
90dd450c 22343LIBS="-lipc $LIBS"
e6cc62c6
VS
22344cat >conftest.$ac_ext <<_ACEOF
22345#line $LINENO "configure"
22346/* confdefs.h. */
22347_ACEOF
22348cat confdefs.h >>conftest.$ac_ext
22349cat >>conftest.$ac_ext <<_ACEOF
22350/* end confdefs.h. */
22351
8284b0c5 22352/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22353#ifdef __cplusplus
22354extern "C"
22355#endif
90dd450c 22356/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22357 builtin and then its argument prototype would still apply. */
22358char shmat ();
22359int
22360main ()
22361{
22362shmat ();
22363 ;
22364 return 0;
22365}
22366_ACEOF
22367rm -f conftest.$ac_objext conftest$ac_exeext
22368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -s conftest$ac_exeext'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }; then
22379 ac_cv_lib_ipc_shmat=yes
22380else
22381 echo "$as_me: failed program was:" >&5
22382sed 's/^/| /' conftest.$ac_ext >&5
22383
22384ac_cv_lib_ipc_shmat=no
22385fi
22386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22387LIBS=$ac_check_lib_save_LIBS
22388fi
22389echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22390echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22391if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22393fi
22394
d558c907 22395 fi
90dd450c 22396 fi
3a922bb4 22397
90dd450c 22398 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22399 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22400 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22401 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22402 # check for ICE first), but we must link in the order -lSM -lICE or
22403 # we get undefined symbols. So assume we have SM if we have ICE.
22404 # These have to be linked with before -lX11, unlike the other
22405 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22406 # John Interrante, Karl Berry
22407 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22408echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22409if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22411else
22412 ac_check_lib_save_LIBS=$LIBS
f09359cf 22413LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22414cat >conftest.$ac_ext <<_ACEOF
22415#line $LINENO "configure"
22416/* confdefs.h. */
22417_ACEOF
22418cat confdefs.h >>conftest.$ac_ext
22419cat >>conftest.$ac_ext <<_ACEOF
22420/* end confdefs.h. */
22421
90dd450c 22422/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22423#ifdef __cplusplus
22424extern "C"
22425#endif
90dd450c 22426/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22427 builtin and then its argument prototype would still apply. */
22428char IceConnectionNumber ();
22429int
22430main ()
22431{
22432IceConnectionNumber ();
22433 ;
22434 return 0;
22435}
22436_ACEOF
22437rm -f conftest.$ac_objext conftest$ac_exeext
22438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439 (eval $ac_link) 2>&5
22440 ac_status=$?
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -s conftest$ac_exeext'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; }; then
22449 ac_cv_lib_ICE_IceConnectionNumber=yes
22450else
22451 echo "$as_me: failed program was:" >&5
22452sed 's/^/| /' conftest.$ac_ext >&5
22453
22454ac_cv_lib_ICE_IceConnectionNumber=no
22455fi
22456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22457LIBS=$ac_check_lib_save_LIBS
22458fi
22459echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22460echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22461if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22463fi
10f2d63a 22464
e6cc62c6 22465 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22466
22467fi
22468
8284b0c5 22469
90dd450c 22470 if test "$no_x" = "yes"; then
e6cc62c6
VS
22471 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22472echo "$as_me: error: X11 not found" >&2;}
22473 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22474 fi
22475
22476 GUI_TK_LIBRARY="$X_LIBS"
22477 TOOLKIT_INCLUDE="$X_CFLAGS"
22478 AFMINSTALL=afminstall
22479 COMPILED_X_PROGRAM=0
22480
21d1c967 22481 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22482 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22483echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22484 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22485 echo "$as_me:$LINENO: result: not found" >&5
22486echo "${ECHO_T}not found" >&6
22487 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22488echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22489 { (exit 1); exit 1; }; }
90dd450c 22490 else
e6cc62c6
VS
22491 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22492echo "${ECHO_T}$MICROWIN" >&6
22493 cat >>confdefs.h <<\_ACEOF
21d1c967 22494#define wxUSE_NANOX 1
e6cc62c6 22495_ACEOF
21d1c967 22496
90dd450c
VZ
22497 fi
22498 fi
22499
22500 xpm_link=
e6cc62c6
VS
22501 echo "$as_me:$LINENO: checking for Xpm library" >&5
22502echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22503
90dd450c 22504ac_find_libraries=
2b5f62a0 22505for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22506 do
22507 for ac_extension in a so sl dylib; do
22508 if test -f "$ac_dir/libXpm.$ac_extension"; then
22509 ac_find_libraries=$ac_dir
22510 break 2
22511 fi
22512 done
22513 done
22514
22515 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22516
90dd450c
VZ
22517 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22518 result=$?
22519 if test $result = 0; then
22520 ac_path_to_link=""
22521 else
22522 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22523 fi
90dd450c 22524
21d1c967
GD
22525 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22526 xpm_link=" -lXpm"
e6cc62c6 22527 cat >>confdefs.h <<\_ACEOF
21d1c967 22528#define wxHAVE_LIB_XPM 1
e6cc62c6 22529_ACEOF
90dd450c 22530
e6cc62c6
VS
22531 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22532echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22533 else
e6cc62c6
VS
22534 cat >conftest.$ac_ext <<_ACEOF
22535#line $LINENO "configure"
22536/* confdefs.h. */
22537_ACEOF
22538cat confdefs.h >>conftest.$ac_ext
22539cat >>conftest.$ac_ext <<_ACEOF
22540/* end confdefs.h. */
90dd450c 22541
21d1c967 22542 #include <X11/xpm.h>
e6cc62c6
VS
22543
22544int
22545main ()
22546{
6f72b082 22547
21d1c967
GD
22548 int version;
22549 version = XpmLibraryVersion();
e6cc62c6
VS
22550
22551 ;
22552 return 0;
22553}
22554_ACEOF
22555rm -f conftest.$ac_objext
22556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>&5
22558 ac_status=$?
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } &&
22561 { ac_try='test -s conftest.$ac_objext'
22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; }; then
22567
21d1c967 22568 xpm_link=" -lXpm"
e6cc62c6 22569 cat >>confdefs.h <<\_ACEOF
21d1c967 22570#define wxHAVE_LIB_XPM 1
e6cc62c6 22571_ACEOF
90dd450c 22572
e6cc62c6
VS
22573 echo "$as_me:$LINENO: result: found in default search path" >&5
22574echo "${ECHO_T}found in default search path" >&6
21d1c967 22575 COMPILED_X_PROGRAM=0
e6cc62c6 22576
21d1c967 22577else
e6cc62c6
VS
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581
22582 echo "$as_me:$LINENO: result: no" >&5
22583echo "${ECHO_T}no" >&6
22584 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22585echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22586
22587
6f72b082 22588fi
e6cc62c6 22589rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22590 fi
90dd450c 22591
e6cc62c6
VS
22592 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22593echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22594if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22596else
e6cc62c6 22597 ac_check_lib_save_LIBS=$LIBS
f7f78039 22598LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22599cat >conftest.$ac_ext <<_ACEOF
22600#line $LINENO "configure"
22601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
22606
f7f78039 22607/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22608#ifdef __cplusplus
22609extern "C"
22610#endif
f7f78039 22611/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22612 builtin and then its argument prototype would still apply. */
22613char XShapeQueryExtension ();
22614int
22615main ()
22616{
22617XShapeQueryExtension ();
22618 ;
22619 return 0;
22620}
22621_ACEOF
22622rm -f conftest.$ac_objext conftest$ac_exeext
22623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
22628 { ac_try='test -s conftest$ac_exeext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_cv_lib_Xext_XShapeQueryExtension=yes
22635else
22636 echo "$as_me: failed program was:" >&5
22637sed 's/^/| /' conftest.$ac_ext >&5
22638
22639ac_cv_lib_Xext_XShapeQueryExtension=no
22640fi
22641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22642LIBS=$ac_check_lib_save_LIBS
22643fi
22644echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22645echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22646if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22647
f7f78039
MB
22648 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22649 wxHAVE_XEXT_LIB=1
e6cc62c6 22650
f7f78039
MB
22651fi
22652
22653
2b5f62a0 22654 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22655
2b5f62a0 22656 succeeded=no
90dd450c 22657
2b5f62a0
VZ
22658 if test -z "$PKG_CONFIG"; then
22659 # Extract the first word of "pkg-config", so it can be a program name with args.
22660set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22661echo "$as_me:$LINENO: checking for $ac_word" >&5
22662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22663if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22665else
e6cc62c6
VS
22666 case $PKG_CONFIG in
22667 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22669 ;;
2b5f62a0 22670 *)
e6cc62c6
VS
22671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22672for as_dir in $PATH
22673do
22674 IFS=$as_save_IFS
22675 test -z "$as_dir" && as_dir=.
22676 for ac_exec_ext in '' $ac_executable_extensions; do
22677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22680 break 2
22681 fi
22682done
22683done
22684
2b5f62a0
VZ
22685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22686 ;;
22687esac
22688fi
e6cc62c6
VS
22689PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22690
2b5f62a0 22691if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22692 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22693echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22694else
e6cc62c6
VS
22695 echo "$as_me:$LINENO: result: no" >&5
22696echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22697fi
22698
22699 fi
22700
22701 if test "$PKG_CONFIG" = "no" ; then
22702 echo "*** The pkg-config script could not be found. Make sure it is"
22703 echo "*** in your path, or set the PKG_CONFIG environment variable"
22704 echo "*** to the full path to pkg-config."
22705 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22706 else
22707 PKG_CONFIG_MIN_VERSION=0.9.0
22708 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22709 echo "$as_me:$LINENO: checking for pangox" >&5
22710echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22711
22712 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22713 echo "$as_me:$LINENO: result: yes" >&5
22714echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22715 succeeded=yes
22716
e6cc62c6
VS
22717 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22718echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22719 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22720 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22721echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22722
e6cc62c6
VS
22723 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22724echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22725 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22726 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22727echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22728 else
22729 PANGOX_CFLAGS=""
22730 PANGOX_LIBS=""
e6cc62c6 22731 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22732 ## do set a variable so people can do so.
22733 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22734
2b5f62a0
VZ
22735 fi
22736
e6cc62c6
VS
22737
22738
2b5f62a0
VZ
22739 else
22740 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22741 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22742 fi
22743 fi
22744
22745 if test $succeeded = yes; then
e6cc62c6 22746
2b5f62a0 22747 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22748 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22749
2b5f62a0 22750 else
e6cc62c6
VS
22751
22752 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22753echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22754 { (exit 1); exit 1; }; }
22755
22756
2b5f62a0
VZ
22757 fi
22758
e6cc62c6 22759
2b5f62a0
VZ
22760 succeeded=no
22761
22762 if test -z "$PKG_CONFIG"; then
22763 # Extract the first word of "pkg-config", so it can be a program name with args.
22764set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22765echo "$as_me:$LINENO: checking for $ac_word" >&5
22766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22767if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22769else
e6cc62c6
VS
22770 case $PKG_CONFIG in
22771 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22773 ;;
2b5f62a0 22774 *)
e6cc62c6
VS
22775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22776for as_dir in $PATH
22777do
22778 IFS=$as_save_IFS
22779 test -z "$as_dir" && as_dir=.
22780 for ac_exec_ext in '' $ac_executable_extensions; do
22781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22784 break 2
22785 fi
22786done
22787done
22788
2b5f62a0
VZ
22789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22790 ;;
22791esac
22792fi
e6cc62c6
VS
22793PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22794
2b5f62a0 22795if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22796 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22797echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22798else
e6cc62c6
VS
22799 echo "$as_me:$LINENO: result: no" >&5
22800echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22801fi
22802
22803 fi
22804
22805 if test "$PKG_CONFIG" = "no" ; then
22806 echo "*** The pkg-config script could not be found. Make sure it is"
22807 echo "*** in your path, or set the PKG_CONFIG environment variable"
22808 echo "*** to the full path to pkg-config."
22809 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22810 else
22811 PKG_CONFIG_MIN_VERSION=0.9.0
22812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22813 echo "$as_me:$LINENO: checking for pangoft2" >&5
22814echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22815
22816 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22817 echo "$as_me:$LINENO: result: yes" >&5
22818echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22819 succeeded=yes
22820
e6cc62c6
VS
22821 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22822echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22823 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22824 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22825echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22826
e6cc62c6
VS
22827 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22828echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22829 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22830 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22831echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22832 else
22833 PANGOFT2_CFLAGS=""
22834 PANGOFT2_LIBS=""
e6cc62c6 22835 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22836 ## do set a variable so people can do so.
22837 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22838
2b5f62a0
VZ
22839 fi
22840
e6cc62c6
VS
22841
22842
2b5f62a0
VZ
22843 else
22844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22846 fi
22847 fi
22848
22849 if test $succeeded = yes; then
e6cc62c6 22850
2b5f62a0 22851 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22852 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22853
2b5f62a0 22854 else
e6cc62c6
VS
22855
22856 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22857echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22858 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22859
22860
2b5f62a0
VZ
22861 fi
22862
e6cc62c6 22863
2b5f62a0
VZ
22864 succeeded=no
22865
22866 if test -z "$PKG_CONFIG"; then
22867 # Extract the first word of "pkg-config", so it can be a program name with args.
22868set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22869echo "$as_me:$LINENO: checking for $ac_word" >&5
22870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22871if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22873else
e6cc62c6
VS
22874 case $PKG_CONFIG in
22875 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22877 ;;
2b5f62a0 22878 *)
e6cc62c6
VS
22879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22880for as_dir in $PATH
22881do
22882 IFS=$as_save_IFS
22883 test -z "$as_dir" && as_dir=.
22884 for ac_exec_ext in '' $ac_executable_extensions; do
22885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22888 break 2
22889 fi
22890done
22891done
22892
2b5f62a0
VZ
22893 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22894 ;;
22895esac
22896fi
e6cc62c6
VS
22897PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22898
2b5f62a0 22899if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22900 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22901echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22902else
e6cc62c6
VS
22903 echo "$as_me:$LINENO: result: no" >&5
22904echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22905fi
22906
22907 fi
22908
22909 if test "$PKG_CONFIG" = "no" ; then
22910 echo "*** The pkg-config script could not be found. Make sure it is"
22911 echo "*** in your path, or set the PKG_CONFIG environment variable"
22912 echo "*** to the full path to pkg-config."
22913 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22914 else
22915 PKG_CONFIG_MIN_VERSION=0.9.0
22916 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22917 echo "$as_me:$LINENO: checking for pangoxft" >&5
22918echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22919
22920 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22921 echo "$as_me:$LINENO: result: yes" >&5
22922echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22923 succeeded=yes
22924
e6cc62c6
VS
22925 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22926echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22927 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22928 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22929echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22930
e6cc62c6
VS
22931 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22932echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22933 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22934 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22935echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22936 else
22937 PANGOXFT_CFLAGS=""
22938 PANGOXFT_LIBS=""
e6cc62c6 22939 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22940 ## do set a variable so people can do so.
22941 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22942
2b5f62a0
VZ
22943 fi
22944
e6cc62c6
VS
22945
22946
2b5f62a0
VZ
22947 else
22948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22950 fi
22951 fi
22952
22953 if test $succeeded = yes; then
e6cc62c6 22954
2b5f62a0 22955 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22956 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22957
2b5f62a0 22958 else
e6cc62c6
VS
22959
22960 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22961echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22962
22963
2b5f62a0
VZ
22964 fi
22965
22966 fi
22967
22968 wxUSE_UNIVERSAL="yes"
22969
22970 if test "$wxUSE_NANOX" = "yes"; then
22971 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22972 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
22973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22974 else
22975 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22976 fi
22977
22978 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22979 TOOLKIT=X11
22980 GUIDIST=X11_DIST
22981 fi
22982
21d1c967
GD
22983 if test "$wxUSE_MOTIF" = 1; then
22984 if test "$no_x" = yes; then
22985 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22986
22987cat >>confdefs.h <<\_ACEOF
21d1c967 22988#define X_DISPLAY_MISSING 1
e6cc62c6 22989_ACEOF
21d1c967
GD
22990
22991 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22992else
22993 if test -n "$x_includes"; then
22994 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22995 fi
22996
21d1c967
GD
22997 # It would also be nice to do this for all -L options, not just this one.
22998 if test -n "$x_libraries"; then
22999 X_LIBS="$X_LIBS -L$x_libraries"
23000 # For Solaris; some versions of Sun CC require a space after -R and
23001 # others require no space. Words are not sufficient . . . .
e6cc62c6 23002 case `(uname -sr) 2>/dev/null` in
21d1c967 23003 "SunOS 5"*)
e6cc62c6
VS
23004 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23005echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23006 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23007 cat >conftest.$ac_ext <<_ACEOF
23008#line $LINENO "configure"
23009/* confdefs.h. */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h. */
23014
23015int
23016main ()
23017{
21d1c967 23018
e6cc62c6
VS
23019 ;
23020 return 0;
23021}
23022_ACEOF
23023rm -f conftest.$ac_objext conftest$ac_exeext
23024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23025 (eval $ac_link) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -s conftest$ac_exeext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
21d1c967 23035 ac_R_nospace=yes
698dcdb6 23036else
e6cc62c6
VS
23037 echo "$as_me: failed program was:" >&5
23038sed 's/^/| /' conftest.$ac_ext >&5
23039
23040ac_R_nospace=no
10f2d63a 23041fi
e6cc62c6 23042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23043 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23044 echo "$as_me:$LINENO: result: no" >&5
23045echo "${ECHO_T}no" >&6
21d1c967
GD
23046 X_LIBS="$X_LIBS -R$x_libraries"
23047 else
23048 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23049 cat >conftest.$ac_ext <<_ACEOF
23050#line $LINENO "configure"
23051/* confdefs.h. */
23052_ACEOF
23053cat confdefs.h >>conftest.$ac_ext
23054cat >>conftest.$ac_ext <<_ACEOF
23055/* end confdefs.h. */
23056
23057int
23058main ()
23059{
f0c87536 23060
e6cc62c6
VS
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext conftest$ac_exeext
23066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067 (eval $ac_link) 2>&5
23068 ac_status=$?
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } &&
23071 { ac_try='test -s conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
21d1c967
GD
23077 ac_R_space=yes
23078else
e6cc62c6
VS
23079 echo "$as_me: failed program was:" >&5
23080sed 's/^/| /' conftest.$ac_ext >&5
23081
23082ac_R_space=no
21d1c967 23083fi
e6cc62c6 23084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23085 if test $ac_R_space = yes; then
e6cc62c6
VS
23086 echo "$as_me:$LINENO: result: yes" >&5
23087echo "${ECHO_T}yes" >&6
21d1c967
GD
23088 X_LIBS="$X_LIBS -R $x_libraries"
23089 else
e6cc62c6
VS
23090 echo "$as_me:$LINENO: result: neither works" >&5
23091echo "${ECHO_T}neither works" >&6
21d1c967
GD
23092 fi
23093 fi
e6cc62c6 23094 LIBS=$ac_xsave_LIBS
21d1c967
GD
23095 esac
23096 fi
90dd450c 23097
21d1c967
GD
23098 # Check for system-dependent libraries X programs must link with.
23099 # Do this before checking for the system-independent R6 libraries
23100 # (-lICE), since we may need -lsocket or whatever for X linking.
23101
23102 if test "$ISC" = yes; then
23103 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23104 else
e6cc62c6
VS
23105 # Martyn Johnson says this is needed for Ultrix, if the X
23106 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23107 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23108 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23109 cat >conftest.$ac_ext <<_ACEOF
23110#line $LINENO "configure"
23111/* confdefs.h. */
23112_ACEOF
23113cat confdefs.h >>conftest.$ac_ext
23114cat >>conftest.$ac_ext <<_ACEOF
23115/* end confdefs.h. */
23116
247f5006 23117/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23118#ifdef __cplusplus
23119extern "C"
23120#endif
247f5006 23121/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23122 builtin and then its argument prototype would still apply. */
23123char XOpenDisplay ();
23124int
23125main ()
23126{
23127XOpenDisplay ();
23128 ;
23129 return 0;
23130}
23131_ACEOF
23132rm -f conftest.$ac_objext conftest$ac_exeext
23133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23134 (eval $ac_link) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } &&
23138 { ac_try='test -s conftest$ac_exeext'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 :
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23148
e6cc62c6
VS
23149echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23150echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23151if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23153else
e6cc62c6
VS
23154 ac_check_lib_save_LIBS=$LIBS
23155LIBS="-ldnet $LIBS"
23156cat >conftest.$ac_ext <<_ACEOF
23157#line $LINENO "configure"
23158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
a0b9e27f 23163
e6cc62c6
VS
23164/* Override any gcc2 internal prototype to avoid an error. */
23165#ifdef __cplusplus
23166extern "C"
23167#endif
23168/* We use char because int might match the return type of a gcc2
23169 builtin and then its argument prototype would still apply. */
23170char dnet_ntoa ();
23171int
23172main ()
23173{
23174dnet_ntoa ();
23175 ;
23176 return 0;
23177}
23178_ACEOF
23179rm -f conftest.$ac_objext conftest$ac_exeext
23180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181 (eval $ac_link) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } &&
23185 { ac_try='test -s conftest$ac_exeext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23188 ac_status=$?
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_cv_lib_dnet_dnet_ntoa=yes
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196ac_cv_lib_dnet_dnet_ntoa=no
23197fi
23198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23199LIBS=$ac_check_lib_save_LIBS
23200fi
23201echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23202echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23203if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23205fi
0fb0dd83 23206
21d1c967 23207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23208 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23209echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23210if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23212else
e6cc62c6 23213 ac_check_lib_save_LIBS=$LIBS
21d1c967 23214LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23215cat >conftest.$ac_ext <<_ACEOF
23216#line $LINENO "configure"
23217/* confdefs.h. */
23218_ACEOF
23219cat confdefs.h >>conftest.$ac_ext
23220cat >>conftest.$ac_ext <<_ACEOF
23221/* end confdefs.h. */
23222
21d1c967 23223/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23224#ifdef __cplusplus
23225extern "C"
23226#endif
21d1c967 23227/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23228 builtin and then its argument prototype would still apply. */
23229char dnet_ntoa ();
23230int
23231main ()
23232{
23233dnet_ntoa ();
23234 ;
23235 return 0;
23236}
23237_ACEOF
23238rm -f conftest.$ac_objext conftest$ac_exeext
23239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23240 (eval $ac_link) 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); } &&
23244 { ac_try='test -s conftest$ac_exeext'
23245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23247 ac_status=$?
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23250 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23251else
23252 echo "$as_me: failed program was:" >&5
23253sed 's/^/| /' conftest.$ac_ext >&5
23254
23255ac_cv_lib_dnet_stub_dnet_ntoa=no
23256fi
23257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23258LIBS=$ac_check_lib_save_LIBS
23259fi
23260echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23261echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23262if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23263 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23264fi
23265
21d1c967 23266 fi
e6cc62c6
VS
23267fi
23268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23269 LIBS="$ac_xsave_LIBS"
90dd450c 23270
21d1c967
GD
23271 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23272 # to get the SysV transport functions.
e6cc62c6 23273 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23274 # needs -lnsl.
23275 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23276 # on Irix 5.2, according to T.E. Dickey.
23277 # The functions gethostbyname, getservbyname, and inet_addr are
23278 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23279 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23280echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23281if test "${ac_cv_func_gethostbyname+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 cat >conftest.$ac_ext <<_ACEOF
23285#line $LINENO "configure"
23286/* confdefs.h. */
23287_ACEOF
23288cat confdefs.h >>conftest.$ac_ext
23289cat >>conftest.$ac_ext <<_ACEOF
23290/* end confdefs.h. */
21d1c967 23291/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23292 which can conflict with char gethostbyname (); below.
23293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23294 <limits.h> exists even on freestanding compilers. */
23295#ifdef __STDC__
23296# include <limits.h>
23297#else
23298# include <assert.h>
23299#endif
21d1c967 23300/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23301#ifdef __cplusplus
23302extern "C"
23303{
23304#endif
21d1c967 23305/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23306 builtin and then its argument prototype would still apply. */
23307char gethostbyname ();
21d1c967
GD
23308/* The GNU C library defines this for functions which it implements
23309 to always fail with ENOSYS. Some functions are actually named
23310 something starting with __ and the normal name is an alias. */
23311#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23312choke me
23313#else
e6cc62c6
VS
23314char (*f) () = gethostbyname;
23315#endif
23316#ifdef __cplusplus
23317}
21d1c967 23318#endif
90dd450c 23319
e6cc62c6
VS
23320int
23321main ()
23322{
23323return f != gethostbyname;
23324 ;
23325 return 0;
23326}
23327_ACEOF
23328rm -f conftest.$ac_objext conftest$ac_exeext
23329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330 (eval $ac_link) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -s conftest$ac_exeext'
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_func_gethostbyname=yes
23341else
23342 echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345ac_cv_func_gethostbyname=no
23346fi
23347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23348fi
23349echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23350echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23351
21d1c967 23352 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23353 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23354echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23355if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23357else
e6cc62c6 23358 ac_check_lib_save_LIBS=$LIBS
21d1c967 23359LIBS="-lnsl $LIBS"
e6cc62c6
VS
23360cat >conftest.$ac_ext <<_ACEOF
23361#line $LINENO "configure"
23362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
23367
21d1c967 23368/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23369#ifdef __cplusplus
23370extern "C"
23371#endif
21d1c967 23372/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23373 builtin and then its argument prototype would still apply. */
23374char gethostbyname ();
23375int
23376main ()
23377{
23378gethostbyname ();
23379 ;
23380 return 0;
23381}
23382_ACEOF
23383rm -f conftest.$ac_objext conftest$ac_exeext
23384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23385 (eval $ac_link) 2>&5
23386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } &&
23389 { ac_try='test -s conftest$ac_exeext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 ac_cv_lib_nsl_gethostbyname=yes
23396else
23397 echo "$as_me: failed program was:" >&5
23398sed 's/^/| /' conftest.$ac_ext >&5
23399
23400ac_cv_lib_nsl_gethostbyname=no
23401fi
23402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23403LIBS=$ac_check_lib_save_LIBS
23404fi
23405echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23406echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23407if test $ac_cv_lib_nsl_gethostbyname = yes; then
23408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23409fi
247f5006 23410
e6cc62c6
VS
23411 if test $ac_cv_lib_nsl_gethostbyname = no; then
23412 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23413echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23414if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23416else
e6cc62c6
VS
23417 ac_check_lib_save_LIBS=$LIBS
23418LIBS="-lbsd $LIBS"
23419cat >conftest.$ac_ext <<_ACEOF
23420#line $LINENO "configure"
23421/* confdefs.h. */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h. */
23426
23427/* Override any gcc2 internal prototype to avoid an error. */
23428#ifdef __cplusplus
23429extern "C"
23430#endif
23431/* We use char because int might match the return type of a gcc2
23432 builtin and then its argument prototype would still apply. */
23433char gethostbyname ();
23434int
23435main ()
23436{
23437gethostbyname ();
23438 ;
23439 return 0;
23440}
23441_ACEOF
23442rm -f conftest.$ac_objext conftest$ac_exeext
23443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 ac_cv_lib_bsd_gethostbyname=yes
23455else
23456 echo "$as_me: failed program was:" >&5
23457sed 's/^/| /' conftest.$ac_ext >&5
23458
23459ac_cv_lib_bsd_gethostbyname=no
23460fi
23461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462LIBS=$ac_check_lib_save_LIBS
23463fi
23464echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23465echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23466if test $ac_cv_lib_bsd_gethostbyname = yes; then
23467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23468fi
90dd450c 23469
e6cc62c6 23470 fi
90dd450c
VZ
23471 fi
23472
21d1c967
GD
23473 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23474 # socket/setsockopt and other routines are undefined under SCO ODT
23475 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23476 # on later versions), says Simon Leinen: it contains gethostby*
23477 # variants that don't use the name server (or something). -lsocket
23478 # must be given before -lnsl if both are needed. We assume that
23479 # if connect needs -lnsl, so does gethostbyname.
23480 echo "$as_me:$LINENO: checking for connect" >&5
23481echo $ECHO_N "checking for connect... $ECHO_C" >&6
23482if test "${ac_cv_func_connect+set}" = set; then
23483 echo $ECHO_N "(cached) $ECHO_C" >&6
23484else
23485 cat >conftest.$ac_ext <<_ACEOF
23486#line $LINENO "configure"
23487/* confdefs.h. */
23488_ACEOF
23489cat confdefs.h >>conftest.$ac_ext
23490cat >>conftest.$ac_ext <<_ACEOF
23491/* end confdefs.h. */
21d1c967 23492/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23493 which can conflict with char connect (); below.
23494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23495 <limits.h> exists even on freestanding compilers. */
23496#ifdef __STDC__
23497# include <limits.h>
23498#else
23499# include <assert.h>
23500#endif
21d1c967 23501/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23502#ifdef __cplusplus
23503extern "C"
23504{
23505#endif
21d1c967 23506/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23507 builtin and then its argument prototype would still apply. */
23508char connect ();
21d1c967
GD
23509/* The GNU C library defines this for functions which it implements
23510 to always fail with ENOSYS. Some functions are actually named
23511 something starting with __ and the normal name is an alias. */
23512#if defined (__stub_connect) || defined (__stub___connect)
23513choke me
23514#else
e6cc62c6
VS
23515char (*f) () = connect;
23516#endif
23517#ifdef __cplusplus
23518}
21d1c967 23519#endif
90dd450c 23520
e6cc62c6
VS
23521int
23522main ()
23523{
23524return f != connect;
23525 ;
23526 return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext conftest$ac_exeext
23530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23531 (eval $ac_link) 2>&5
23532 ac_status=$?
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } &&
23535 { ac_try='test -s conftest$ac_exeext'
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; }; then
23541 ac_cv_func_connect=yes
23542else
23543 echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546ac_cv_func_connect=no
23547fi
23548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23549fi
23550echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23551echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23552
21d1c967 23553 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23554 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23555echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23556if test "${ac_cv_lib_socket_connect+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23558else
e6cc62c6 23559 ac_check_lib_save_LIBS=$LIBS
21d1c967 23560LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23561cat >conftest.$ac_ext <<_ACEOF
23562#line $LINENO "configure"
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568
21d1c967 23569/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23570#ifdef __cplusplus
23571extern "C"
23572#endif
21d1c967 23573/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23574 builtin and then its argument prototype would still apply. */
23575char connect ();
23576int
23577main ()
23578{
23579connect ();
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584rm -f conftest.$ac_objext conftest$ac_exeext
23585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23586 (eval $ac_link) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); } &&
23590 { ac_try='test -s conftest$ac_exeext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_lib_socket_connect=yes
23597else
23598 echo "$as_me: failed program was:" >&5
23599sed 's/^/| /' conftest.$ac_ext >&5
23600
23601ac_cv_lib_socket_connect=no
23602fi
23603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23604LIBS=$ac_check_lib_save_LIBS
23605fi
23606echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23607echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23608if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23609 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23610fi
90dd450c 23611
21d1c967 23612 fi
90dd450c 23613
e6cc62c6
VS
23614 # Guillermo Gomez says -lposix is necessary on A/UX.
23615 echo "$as_me:$LINENO: checking for remove" >&5
23616echo $ECHO_N "checking for remove... $ECHO_C" >&6
23617if test "${ac_cv_func_remove+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23619else
23620 cat >conftest.$ac_ext <<_ACEOF
23621#line $LINENO "configure"
23622/* confdefs.h. */
23623_ACEOF
23624cat confdefs.h >>conftest.$ac_ext
23625cat >>conftest.$ac_ext <<_ACEOF
23626/* end confdefs.h. */
21d1c967 23627/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23628 which can conflict with char remove (); below.
23629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23630 <limits.h> exists even on freestanding compilers. */
23631#ifdef __STDC__
23632# include <limits.h>
23633#else
23634# include <assert.h>
23635#endif
21d1c967 23636/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23637#ifdef __cplusplus
23638extern "C"
23639{
23640#endif
21d1c967 23641/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23642 builtin and then its argument prototype would still apply. */
23643char remove ();
21d1c967
GD
23644/* The GNU C library defines this for functions which it implements
23645 to always fail with ENOSYS. Some functions are actually named
23646 something starting with __ and the normal name is an alias. */
23647#if defined (__stub_remove) || defined (__stub___remove)
23648choke me
23649#else
e6cc62c6
VS
23650char (*f) () = remove;
23651#endif
23652#ifdef __cplusplus
23653}
21d1c967 23654#endif
90dd450c 23655
e6cc62c6
VS
23656int
23657main ()
23658{
23659return f != remove;
23660 ;
23661 return 0;
23662}
23663_ACEOF
23664rm -f conftest.$ac_objext conftest$ac_exeext
23665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23666 (eval $ac_link) 2>&5
23667 ac_status=$?
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } &&
23670 { ac_try='test -s conftest$ac_exeext'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; }; then
23676 ac_cv_func_remove=yes
23677else
23678 echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
23681ac_cv_func_remove=no
23682fi
23683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23684fi
23685echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23686echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23687
21d1c967 23688 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23689 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23690echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23691if test "${ac_cv_lib_posix_remove+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23693else
e6cc62c6 23694 ac_check_lib_save_LIBS=$LIBS
21d1c967 23695LIBS="-lposix $LIBS"
e6cc62c6
VS
23696cat >conftest.$ac_ext <<_ACEOF
23697#line $LINENO "configure"
23698/* confdefs.h. */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h. */
23703
21d1c967 23704/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23705#ifdef __cplusplus
23706extern "C"
23707#endif
21d1c967 23708/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23709 builtin and then its argument prototype would still apply. */
23710char remove ();
23711int
23712main ()
23713{
23714remove ();
23715 ;
23716 return 0;
23717}
23718_ACEOF
23719rm -f conftest.$ac_objext conftest$ac_exeext
23720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721 (eval $ac_link) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } &&
23725 { ac_try='test -s conftest$ac_exeext'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_cv_lib_posix_remove=yes
23732else
23733 echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735
23736ac_cv_lib_posix_remove=no
23737fi
23738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23739LIBS=$ac_check_lib_save_LIBS
23740fi
23741echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23742echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23743if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23745fi
19bc6aad 23746
90dd450c 23747 fi
19bc6aad 23748
21d1c967 23749 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23750 echo "$as_me:$LINENO: checking for shmat" >&5
23751echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23752if test "${ac_cv_func_shmat+set}" = set; then
23753 echo $ECHO_N "(cached) $ECHO_C" >&6
23754else
23755 cat >conftest.$ac_ext <<_ACEOF
23756#line $LINENO "configure"
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
21d1c967 23762/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23763 which can conflict with char shmat (); below.
23764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23765 <limits.h> exists even on freestanding compilers. */
23766#ifdef __STDC__
23767# include <limits.h>
23768#else
23769# include <assert.h>
23770#endif
21d1c967 23771/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23772#ifdef __cplusplus
23773extern "C"
23774{
23775#endif
21d1c967 23776/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23777 builtin and then its argument prototype would still apply. */
23778char shmat ();
21d1c967
GD
23779/* The GNU C library defines this for functions which it implements
23780 to always fail with ENOSYS. Some functions are actually named
23781 something starting with __ and the normal name is an alias. */
23782#if defined (__stub_shmat) || defined (__stub___shmat)
23783choke me
23784#else
e6cc62c6
VS
23785char (*f) () = shmat;
23786#endif
23787#ifdef __cplusplus
23788}
21d1c967 23789#endif
90dd450c 23790
e6cc62c6
VS
23791int
23792main ()
23793{
23794return f != shmat;
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext conftest$ac_exeext
23800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801 (eval $ac_link) 2>&5
23802 ac_status=$?
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } &&
23805 { ac_try='test -s conftest$ac_exeext'
23806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23808 ac_status=$?
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); }; }; then
23811 ac_cv_func_shmat=yes
23812else
23813 echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816ac_cv_func_shmat=no
23817fi
23818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23819fi
23820echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23821echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23822
21d1c967 23823 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23824 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23825echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23826if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23828else
e6cc62c6 23829 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23830LIBS="-lipc $LIBS"
e6cc62c6
VS
23831cat >conftest.$ac_ext <<_ACEOF
23832#line $LINENO "configure"
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
23838
5c6fa7d2 23839/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23840#ifdef __cplusplus
23841extern "C"
23842#endif
5c6fa7d2 23843/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23844 builtin and then its argument prototype would still apply. */
23845char shmat ();
23846int
23847main ()
23848{
23849shmat ();
23850 ;
23851 return 0;
23852}
23853_ACEOF
23854rm -f conftest.$ac_objext conftest$ac_exeext
23855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23856 (eval $ac_link) 2>&5
23857 ac_status=$?
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } &&
23860 { ac_try='test -s conftest$ac_exeext'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 ac_cv_lib_ipc_shmat=yes
23867else
23868 echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870
23871ac_cv_lib_ipc_shmat=no
23872fi
23873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23874LIBS=$ac_check_lib_save_LIBS
23875fi
23876echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23877echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23878if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23880fi
90dd450c 23881
90dd450c 23882 fi
21d1c967 23883 fi
10f2d63a 23884
21d1c967 23885 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23886 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23887 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23888 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23889 # check for ICE first), but we must link in the order -lSM -lICE or
23890 # we get undefined symbols. So assume we have SM if we have ICE.
23891 # These have to be linked with before -lX11, unlike the other
23892 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23893 # John Interrante, Karl Berry
23894 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23895echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23896if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23897 echo $ECHO_N "(cached) $ECHO_C" >&6
23898else
23899 ac_check_lib_save_LIBS=$LIBS
f09359cf 23900LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23901cat >conftest.$ac_ext <<_ACEOF
23902#line $LINENO "configure"
23903/* confdefs.h. */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h. */
23908
21d1c967 23909/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23910#ifdef __cplusplus
23911extern "C"
23912#endif
21d1c967 23913/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23914 builtin and then its argument prototype would still apply. */
23915char IceConnectionNumber ();
23916int
23917main ()
23918{
23919IceConnectionNumber ();
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext conftest$ac_exeext
23925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926 (eval $ac_link) 2>&5
23927 ac_status=$?
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } &&
23930 { ac_try='test -s conftest$ac_exeext'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; }; then
23936 ac_cv_lib_ICE_IceConnectionNumber=yes
23937else
23938 echo "$as_me: failed program was:" >&5
23939sed 's/^/| /' conftest.$ac_ext >&5
23940
23941ac_cv_lib_ICE_IceConnectionNumber=no
23942fi
23943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23944LIBS=$ac_check_lib_save_LIBS
23945fi
23946echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23947echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23948if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23949 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23950fi
21d1c967 23951
e6cc62c6 23952 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23953
10f2d63a
VZ
23954fi
23955
8284b0c5 23956
21d1c967 23957 if test "$no_x" = "yes"; then
e6cc62c6
VS
23958 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23959echo "$as_me: error: X11 not found" >&2;}
23960 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23961 fi
23962
2b5f62a0
VZ
23963 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23964 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23965 AFMINSTALL=afminstall
23966 COMPILED_X_PROGRAM=0
23967
e6cc62c6
VS
23968 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23969echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23970
21d1c967 23971ac_find_includes=
2b5f62a0 23972for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23973 do
23974 if test -f "$ac_dir/Xm/Xm.h"; then
23975 ac_find_includes=$ac_dir
23976 break
23977 fi
23978 done
23979
23980 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23981 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23982echo "${ECHO_T}found in $ac_find_includes" >&6
23983
2b5f62a0 23984 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23985 ac_path_to_include=""
23986 else
2b5f62a0
VZ
23987 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23988 result=$?
23989 if test $result = 0; then
23990 ac_path_to_include=""
23991 else
23992 ac_path_to_include=" -I$ac_find_includes"
23993 fi
dd0e4a90
VZ
23994 fi
23995
23996 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23997 else
e6cc62c6
VS
23998 cat >conftest.$ac_ext <<_ACEOF
23999#line $LINENO "configure"
24000/* confdefs.h. */
24001_ACEOF
24002cat confdefs.h >>conftest.$ac_ext
24003cat >>conftest.$ac_ext <<_ACEOF
24004/* end confdefs.h. */
21d1c967
GD
24005
24006 #include <Xm/Xm.h>
e6cc62c6
VS
24007
24008int
24009main ()
24010{
21d1c967
GD
24011
24012 int version;
24013 version = xmUseVersion;
e6cc62c6
VS
24014
24015 ;
24016 return 0;
24017}
24018_ACEOF
24019rm -f conftest.$ac_objext
24020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24021 (eval $ac_compile) 2>&5
24022 ac_status=$?
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } &&
24025 { ac_try='test -s conftest.$ac_objext'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031
24032 echo "$as_me:$LINENO: result: found in default search path" >&5
24033echo "${ECHO_T}found in default search path" >&6
21d1c967 24034 COMPILED_X_PROGRAM=1
e6cc62c6 24035
10f2d63a 24036else
e6cc62c6
VS
24037 echo "$as_me: failed program was:" >&5
24038sed 's/^/| /' conftest.$ac_ext >&5
24039
24040
24041 echo "$as_me:$LINENO: result: no" >&5
24042echo "${ECHO_T}no" >&6
24043 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24044echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24045 { (exit 1); exit 1; }; }
24046
24047
10f2d63a 24048fi
e6cc62c6 24049rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24050 fi
10f2d63a 24051
21d1c967 24052 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24053 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24054echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24055
21d1c967 24056ac_find_libraries=
2b5f62a0 24057for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24058 do
24059 for ac_extension in a so sl dylib; do
24060 if test -f "$ac_dir/libXm.$ac_extension"; then
24061 ac_find_libraries=$ac_dir
24062 break 2
24063 fi
24064 done
24065 done
24066
24067 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24068 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24069echo "${ECHO_T}found at $ac_find_libraries" >&6
24070
21d1c967 24071
21d1c967
GD
24072 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24073 result=$?
24074 if test $result = 0; then
24075 ac_path_to_link=""
24076 else
24077 ac_path_to_link=" -L$ac_find_libraries"
24078 fi
24079
21d1c967 24080 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24081 else
dd0e4a90
VZ
24082 save_CFLAGS=$CFLAGS
24083 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24084
e6cc62c6
VS
24085 cat >conftest.$ac_ext <<_ACEOF
24086#line $LINENO "configure"
24087/* confdefs.h. */
24088_ACEOF
24089cat confdefs.h >>conftest.$ac_ext
24090cat >>conftest.$ac_ext <<_ACEOF
24091/* end confdefs.h. */
21d1c967
GD
24092
24093 #include <Xm/Xm.h>
e6cc62c6
VS
24094
24095int
24096main ()
24097{
21d1c967
GD
24098
24099 int version;
24100 version = xmUseVersion;
e6cc62c6
VS
24101
24102 ;
24103 return 0;
24104}
24105_ACEOF
24106rm -f conftest.$ac_objext
24107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24108 (eval $ac_compile) 2>&5
24109 ac_status=$?
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } &&
24112 { ac_try='test -s conftest.$ac_objext'
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; }; then
24118
24119 echo "$as_me:$LINENO: result: found in default search path" >&5
24120echo "${ECHO_T}found in default search path" >&6
21d1c967 24121 COMPILED_X_PROGRAM=1
e6cc62c6 24122
d836ee96 24123else
e6cc62c6
VS
24124 echo "$as_me: failed program was:" >&5
24125sed 's/^/| /' conftest.$ac_ext >&5
24126
24127
24128 echo "$as_me:$LINENO: result: no" >&5
24129echo "${ECHO_T}no" >&6
24130 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24131echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24132 { (exit 1); exit 1; }; }
24133
24134
d836ee96 24135fi
e6cc62c6 24136rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24137
24138 CFLAGS=$save_CFLAGS
21d1c967
GD
24139 fi
24140 fi
24141
24142 xpm_link=
e6cc62c6
VS
24143 echo "$as_me:$LINENO: checking for Xpm library" >&5
24144echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24145
21d1c967 24146ac_find_libraries=
2b5f62a0 24147for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24148 do
24149 for ac_extension in a so sl dylib; do
24150 if test -f "$ac_dir/libXpm.$ac_extension"; then
24151 ac_find_libraries=$ac_dir
24152 break 2
24153 fi
24154 done
24155 done
24156
24157 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24158
21d1c967
GD
24159 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24160 result=$?
24161 if test $result = 0; then
24162 ac_path_to_link=""
24163 else
24164 ac_path_to_link=" -L$ac_find_libraries"
24165 fi
24166
24167 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24168
21d1c967 24169 xpm_link=" -lXpm"
e6cc62c6 24170 cat >>confdefs.h <<\_ACEOF
21d1c967 24171#define wxHAVE_LIB_XPM 1
e6cc62c6 24172_ACEOF
90dd450c 24173
e6cc62c6
VS
24174 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24175echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24176 else
dd0e4a90
VZ
24177 save_CFLAGS=$CFLAGS
24178 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24179
e6cc62c6
VS
24180 cat >conftest.$ac_ext <<_ACEOF
24181#line $LINENO "configure"
24182/* confdefs.h. */
24183_ACEOF
24184cat confdefs.h >>conftest.$ac_ext
24185cat >>conftest.$ac_ext <<_ACEOF
24186/* end confdefs.h. */
21d1c967
GD
24187
24188 #include <X11/xpm.h>
e6cc62c6
VS
24189
24190int
24191main ()
24192{
21d1c967
GD
24193
24194 int version;
24195 version = XpmLibraryVersion();
e6cc62c6
VS
24196
24197 ;
24198 return 0;
24199}
24200_ACEOF
24201rm -f conftest.$ac_objext
24202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24203 (eval $ac_compile) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } &&
24207 { ac_try='test -s conftest.$ac_objext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213
21d1c967 24214 xpm_link=" -lXpm"
e6cc62c6 24215 cat >>confdefs.h <<\_ACEOF
21d1c967 24216#define wxHAVE_LIB_XPM 1
e6cc62c6 24217_ACEOF
21d1c967 24218
e6cc62c6
VS
24219 echo "$as_me:$LINENO: result: found in default search path" >&5
24220echo "${ECHO_T}found in default search path" >&6
21d1c967 24221 COMPILED_X_PROGRAM=0
e6cc62c6 24222
d836ee96 24223else
e6cc62c6
VS
24224 echo "$as_me: failed program was:" >&5
24225sed 's/^/| /' conftest.$ac_ext >&5
24226
24227
24228 echo "$as_me:$LINENO: result: no" >&5
24229echo "${ECHO_T}no" >&6
24230 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24231echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24232
24233
d836ee96 24234fi
e6cc62c6 24235rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24236
24237 CFLAGS=$save_CFLAGS
21d1c967
GD
24238 fi
24239
e6cc62c6
VS
24240 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24241echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24242 libp_link=""
24243 libsm_ice_link=""
24244 libs_found=0
24245 for libp in "" " -lXp"; do
24246 if test "$libs_found" = "0"; then
24247 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24248 if test "$libs_found" = "0"; then
6a30f1c8
MB
24249 save_LIBS="$LIBS"
24250 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24251 save_CFLAGS=$CFLAGS
24252 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24253
e6cc62c6
VS
24254 cat >conftest.$ac_ext <<_ACEOF
24255#line $LINENO "configure"
24256/* confdefs.h. */
24257_ACEOF
24258cat confdefs.h >>conftest.$ac_ext
24259cat >>conftest.$ac_ext <<_ACEOF
24260/* end confdefs.h. */
17234b26 24261
6a30f1c8
MB
24262 #include <Xm/Xm.h>
24263 #include <Xm/List.h>
e6cc62c6
VS
24264
24265int
24266main ()
24267{
6a30f1c8
MB
24268
24269 XmString string = NULL;
24270 Widget w = NULL;
24271 int position = 0;
24272 XmListAddItem(w, string, position);
e6cc62c6
VS
24273
24274 ;
24275 return 0;
24276}
24277_ACEOF
24278rm -f conftest.$ac_objext conftest$ac_exeext
24279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280 (eval $ac_link) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } &&
24284 { ac_try='test -s conftest$ac_exeext'
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290
6a30f1c8
MB
24291 libp_link="$libp"
24292 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24293 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24294echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24295 libs_found=1
e6cc62c6 24296
6a30f1c8 24297else
e6cc62c6
VS
24298 echo "$as_me: failed program was:" >&5
24299sed 's/^/| /' conftest.$ac_ext >&5
24300
24301
24302
6a30f1c8 24303fi
e6cc62c6 24304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24305
6a30f1c8 24306 LIBS="$save_LIBS"
dd0e4a90 24307 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24308 fi
24309 done
24310 fi
24311 done
24312
24313 if test "$libs_found" = "0"; then
e6cc62c6
VS
24314 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24315echo "${ECHO_T}can't find the right libraries" >&6
24316 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24317echo "$as_me: error: can't link a simple motif program" >&2;}
24318 { (exit 1); exit 1; }; }
6a30f1c8
MB
24319 fi
24320
da494b40
MB
24321 save_CFLAGS=$CFLAGS
24322 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24323 echo "$as_me:$LINENO: checking for Motif 2" >&5
24324echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24325 cat >conftest.$ac_ext <<_ACEOF
24326#line $LINENO "configure"
24327/* confdefs.h. */
24328_ACEOF
24329cat confdefs.h >>conftest.$ac_ext
24330cat >>conftest.$ac_ext <<_ACEOF
24331/* end confdefs.h. */
da494b40
MB
24332
24333 #include <Xm/Xm.h>
e6cc62c6
VS
24334
24335int
24336main ()
24337{
da494b40
MB
24338
24339 #if XmVersion < 2000
24340 #error "Not Motif 2"
24341 #endif
e6cc62c6
VS
24342
24343 ;
24344 return 0;
24345}
24346_ACEOF
24347rm -f conftest.$ac_objext
24348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24349 (eval $ac_compile) 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } &&
24353 { ac_try='test -s conftest.$ac_objext'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; }; then
24359
24360 cat >>confdefs.h <<\_ACEOF
da494b40 24361#define __WXMOTIF20__ 1
e6cc62c6
VS
24362_ACEOF
24363
24364 echo "$as_me:$LINENO: result: found" >&5
24365echo "${ECHO_T}found" >&6
da494b40 24366
da494b40 24367else
e6cc62c6
VS
24368 echo "$as_me: failed program was:" >&5
24369sed 's/^/| /' conftest.$ac_ext >&5
24370
24371
24372 cat >>confdefs.h <<\_ACEOF
da494b40 24373#define __WXMOTIF20__ 0
e6cc62c6
VS
24374_ACEOF
24375
24376 echo "$as_me:$LINENO: result: not found" >&5
24377echo "${ECHO_T}not found" >&6
da494b40 24378
da494b40 24379fi
e6cc62c6 24380rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24381 CFLAGS=$save_CFLAGS
24382
6a30f1c8 24383 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24384 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24385 TOOLKIT=MOTIF
24386 GUIDIST=MOTIF_DIST
f7f78039
MB
24387 wxHAVE_XEXT_LIB=1
24388 fi
24389
24390 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24391 test "$wxHAVE_XEXT_LIB" = 1; then
24392 save_CFLAGS="$CFLAGS"
24393 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24394
e6cc62c6
VS
24395 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24396echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24397 cat >conftest.$ac_ext <<_ACEOF
24398#line $LINENO "configure"
24399/* confdefs.h. */
24400_ACEOF
24401cat confdefs.h >>conftest.$ac_ext
24402cat >>conftest.$ac_ext <<_ACEOF
24403/* end confdefs.h. */
24404
24405 #include <X11/Xlib.h>
f7f78039 24406 #include <X11/extensions/shape.h>
e6cc62c6
VS
24407
24408int
24409main ()
24410{
f7f78039
MB
24411
24412 int dummy1, dummy2;
24413 XShapeQueryExtension((Display*)NULL,
24414 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24415
24416 ;
24417 return 0;
24418}
24419_ACEOF
24420rm -f conftest.$ac_objext
24421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24422 (eval $ac_compile) 2>&5
24423 ac_status=$?
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); } &&
24426 { ac_try='test -s conftest.$ac_objext'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; }; then
24432
24433 cat >>confdefs.h <<\_ACEOF
f7f78039 24434#define HAVE_XSHAPE 1
e6cc62c6
VS
24435_ACEOF
24436
24437 echo "$as_me:$LINENO: result: found" >&5
24438echo "${ECHO_T}found" >&6
f7f78039 24439
f7f78039 24440else
e6cc62c6
VS
24441 echo "$as_me: failed program was:" >&5
24442sed 's/^/| /' conftest.$ac_ext >&5
24443
24444
24445 echo "$as_me:$LINENO: result: not found" >&5
24446echo "${ECHO_T}not found" >&6
24447
f7f78039 24448fi
e6cc62c6 24449rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24450 CFLAGS="$save_CFLAGS"
21d1c967
GD
24451 fi
24452
24453 if test "$wxUSE_MAC" = 1; then
0c98a14e 24454 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24455
0c98a14e 24456 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24457 TOOLKIT=MAC
24458 GUIDIST=MACX_DIST
cf615ebb 24459 WXBASEPORT="_carbon"
21d1c967
GD
24460 fi
24461
ac0c4cc3
DE
24462 if test "$wxUSE_COCOA" = 1; then
24463 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24464 TOOLKIT=COCOA
24465 GUIDIST=COCOA_DIST
24466 fi
24467
21d1c967
GD
24468 if test "$wxUSE_PM" = 1; then
24469 TOOLKIT=PM
24470 GUIDIST=GTK_DIST
e6cc62c6
VS
24471 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24472echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24473 wxUSE_THREADS="no"
21d1c967
GD
24474 fi
24475
24476 if test "$TOOLKIT" = "PM" ; then
24477 TOOLKIT_DIR="os2"
24478 else
24479 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24480 fi
24481
24482 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24483
24484 if test "$wxUSE_UNIVERSAL" = "yes"; then
24485 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24486
24487 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24488 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24489
24490 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24491 if test "$wxUSE_X11" = 1; then
24492 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24493 else
24494 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24495 fi
24496 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24497 WIDGET_SET=univ
24498 else
24499 ALL_OBJECTS="\$(GUIOBJS)"
24500 ALL_SOURCES="\$(ALL_SOURCES)"
24501 ALL_HEADERS="\$(ALL_HEADERS)"
24502 fi
24503
24504 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24505
24506 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24507 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24508 fi
24509
24510 if test "$wxUSE_HTML" = "yes"; then
24511 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24512 fi
24513
24514 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24515 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24516 fi
24517 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24518 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24519 fi
24520 if test "$wxUSE_LIBPNG" = "builtin" ; then
24521 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24522 fi
24523
24524 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24525 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24526else
21d1c967
GD
24527 USE_GUI=0
24528
24529 TOOLKIT_DIR="base"
24530
24531 if test "$USE_WIN32" = 1 ; then
24532 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24533 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24534
24535 TOOLKIT="MSW"
24536 else
24537 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24538 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24539 fi
24540
24541 ALL_SOURCES="\$(ALL_SOURCES)"
24542 ALL_HEADERS="\$(ALL_HEADERS)"
24543
24544 PORT_FILES="\${top_srcdir}/src/files.lst"
24545
24546 GUIDIST="BASE_DIST"
24547 DISTDIR="wxBase"
d836ee96
VZ
24548fi
24549
8284b0c5 24550
8647bec6
RG
24551
24552
24553IODBC_C_SRC=""
24554
24555
24556if test "$TOOLKIT" != "MSW" ; then
24557
bb41dcbe 24558 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24559
bb41dcbe 24560 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24561 echo "$as_me:$LINENO: checking for sql.h" >&5
24562echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24563if test "${ac_cv_header_sql_h+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24565fi
24566echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24567echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24568else
24569 # Is the header compilable?
24570echo "$as_me:$LINENO: checking sql.h usability" >&5
24571echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24572cat >conftest.$ac_ext <<_ACEOF
24573#line $LINENO "configure"
24574/* confdefs.h. */
24575_ACEOF
24576cat confdefs.h >>conftest.$ac_ext
24577cat >>conftest.$ac_ext <<_ACEOF
24578/* end confdefs.h. */
24579$ac_includes_default
8647bec6 24580#include <sql.h>
e6cc62c6
VS
24581_ACEOF
24582rm -f conftest.$ac_objext
24583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24584 (eval $ac_compile) 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } &&
24588 { ac_try='test -s conftest.$ac_objext'
24589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); }; }; then
24594 ac_header_compiler=yes
24595else
24596 echo "$as_me: failed program was:" >&5
24597sed 's/^/| /' conftest.$ac_ext >&5
24598
24599ac_header_compiler=no
24600fi
24601rm -f conftest.$ac_objext conftest.$ac_ext
24602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24603echo "${ECHO_T}$ac_header_compiler" >&6
24604
24605# Is the header present?
24606echo "$as_me:$LINENO: checking sql.h presence" >&5
24607echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24608cat >conftest.$ac_ext <<_ACEOF
24609#line $LINENO "configure"
24610/* confdefs.h. */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h. */
24615#include <sql.h>
24616_ACEOF
24617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24619 ac_status=$?
24620 grep -v '^ *+' conftest.er1 >conftest.err
24621 rm -f conftest.er1
24622 cat conftest.err >&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } >/dev/null; then
24625 if test -s conftest.err; then
24626 ac_cpp_err=$ac_c_preproc_warn_flag
24627 else
24628 ac_cpp_err=
24629 fi
24630else
24631 ac_cpp_err=yes
24632fi
24633if test -z "$ac_cpp_err"; then
24634 ac_header_preproc=yes
24635else
24636 echo "$as_me: failed program was:" >&5
24637sed 's/^/| /' conftest.$ac_ext >&5
24638
24639 ac_header_preproc=no
24640fi
24641rm -f conftest.err conftest.$ac_ext
24642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24643echo "${ECHO_T}$ac_header_preproc" >&6
24644
24645# So? What about this header?
24646case $ac_header_compiler:$ac_header_preproc in
24647 yes:no )
24648 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24649echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24650 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24651echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24652 (
24653 cat <<\_ASBOX
24654## ------------------------------------ ##
24655## Report this to bug-autoconf@gnu.org. ##
24656## ------------------------------------ ##
24657_ASBOX
24658 ) |
24659 sed "s/^/$as_me: WARNING: /" >&2
24660 ;;
24661 no:yes )
24662 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24663echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24664 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24665echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24666 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24667echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24668 (
24669 cat <<\_ASBOX
24670## ------------------------------------ ##
24671## Report this to bug-autoconf@gnu.org. ##
24672## ------------------------------------ ##
24673_ASBOX
24674 ) |
24675 sed "s/^/$as_me: WARNING: /" >&2
24676 ;;
24677esac
24678echo "$as_me:$LINENO: checking for sql.h" >&5
24679echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24680if test "${ac_cv_header_sql_h+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24682else
e6cc62c6
VS
24683 ac_cv_header_sql_h=$ac_header_preproc
24684fi
24685echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24686echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24687
bb41dcbe
VS
24688fi
24689if test $ac_cv_header_sql_h = yes; then
24690 found_sql_h=1
8647bec6
RG
24691fi
24692
e6cc62c6 24693
bb41dcbe
VS
24694 if test "x$found_sql_h" = "x1" ; then
24695 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24696echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24697if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24698 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24699else
bb41dcbe
VS
24700 ac_check_lib_save_LIBS=$LIBS
24701LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24702cat >conftest.$ac_ext <<_ACEOF
24703#line $LINENO "configure"
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
8647bec6 24710/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24711#ifdef __cplusplus
24712extern "C"
24713#endif
8647bec6 24714/* We use char because int might match the return type of a gcc2
e6cc62c6 24715 builtin and then its argument prototype would still apply. */
bb41dcbe 24716char iodbc ();
e6cc62c6
VS
24717int
24718main ()
24719{
bb41dcbe 24720iodbc ();
e6cc62c6
VS
24721 ;
24722 return 0;
24723}
24724_ACEOF
24725rm -f conftest.$ac_objext conftest$ac_exeext
24726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24727 (eval $ac_link) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } &&
24731 { ac_try='test -s conftest$ac_exeext'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; }; then
bb41dcbe 24737 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24738else
e6cc62c6
VS
24739 echo "$as_me: failed program was:" >&5
24740sed 's/^/| /' conftest.$ac_ext >&5
24741
bb41dcbe 24742ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24743fi
e6cc62c6 24744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24745LIBS=$ac_check_lib_save_LIBS
24746fi
24747echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24748echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24749if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24750 ODBC_LINK=" -liodbc"
24751else
24752
24753 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24754echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24755if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757else
24758 ac_check_lib_save_LIBS=$LIBS
24759LIBS="-lSQLAllocEnv $LIBS"
24760cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24761#line $LINENO "configure"
24762/* confdefs.h. */
24763_ACEOF
24764cat confdefs.h >>conftest.$ac_ext
24765cat >>conftest.$ac_ext <<_ACEOF
24766/* end confdefs.h. */
24767
8647bec6 24768/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24769#ifdef __cplusplus
24770extern "C"
24771#endif
8647bec6 24772/* We use char because int might match the return type of a gcc2
e6cc62c6 24773 builtin and then its argument prototype would still apply. */
bb41dcbe 24774char unixodbc ();
e6cc62c6
VS
24775int
24776main ()
24777{
bb41dcbe 24778unixodbc ();
e6cc62c6
VS
24779 ;
24780 return 0;
24781}
24782_ACEOF
24783rm -f conftest.$ac_objext conftest$ac_exeext
24784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24785 (eval $ac_link) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } &&
24789 { ac_try='test -s conftest$ac_exeext'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
bb41dcbe 24795 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24796else
e6cc62c6
VS
24797 echo "$as_me: failed program was:" >&5
24798sed 's/^/| /' conftest.$ac_ext >&5
24799
bb41dcbe 24800ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24801fi
e6cc62c6 24802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24803LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24804fi
bb41dcbe
VS
24805echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24806echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24807if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24808 ODBC_LINK=" -lunixodbc"
24809else
24810
24811 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24812echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24813if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
24815else
24816 ac_check_lib_save_LIBS=$LIBS
24817LIBS="-lSQLAllocEnv $LIBS"
24818cat >conftest.$ac_ext <<_ACEOF
24819#line $LINENO "configure"
24820/* confdefs.h. */
24821_ACEOF
24822cat confdefs.h >>conftest.$ac_ext
24823cat >>conftest.$ac_ext <<_ACEOF
24824/* end confdefs.h. */
e6cc62c6 24825
bb41dcbe
VS
24826/* Override any gcc2 internal prototype to avoid an error. */
24827#ifdef __cplusplus
24828extern "C"
24829#endif
24830/* We use char because int might match the return type of a gcc2
24831 builtin and then its argument prototype would still apply. */
24832char odbc ();
24833int
24834main ()
24835{
24836odbc ();
24837 ;
24838 return 0;
24839}
24840_ACEOF
24841rm -f conftest.$ac_objext conftest$ac_exeext
24842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24843 (eval $ac_link) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -s conftest$ac_exeext'
24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; }; then
24853 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24854else
bb41dcbe
VS
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858ac_cv_lib_SQLAllocEnv_odbc=no
24859fi
24860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24861LIBS=$ac_check_lib_save_LIBS
24862fi
24863echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24864echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24865if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24866 ODBC_LINK=" -lodbc"
24867fi
24868
24869
24870fi
e6cc62c6 24871
e6cc62c6 24872
8647bec6 24873fi
e6cc62c6 24874
fd3d7534 24875 fi
bb41dcbe
VS
24876 if test "x$ODBC_LINK" = "x" ; then
24877 if test "$wxUSE_ODBC" = "sys" ; then
24878 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24879echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24880 { (exit 1); exit 1; }; }
24881 else
24882 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24883echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24884 wxUSE_ODBC=builtin
24885 fi
24886 else
24887 wxUSE_ODBC=sys
8647bec6 24888 fi
8647bec6 24889 fi
bb41dcbe
VS
24890 if test "$wxUSE_ODBC" != "no" ; then
24891 cat >>confdefs.h <<\_ACEOF
24892#define wxUSE_ODBC 1
24893_ACEOF
e6cc62c6 24894
bb41dcbe
VS
24895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24896
24897 WXODBCFLAG="-D_IODBC_"
24898 fi
6232543b 24899fi
21d1c967
GD
24900
24901if test "$wxUSE_REGEX" = "builtin" ; then
24902 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24903fi
21d1c967
GD
24904if test "$wxUSE_ZLIB" = "builtin" ; then
24905 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24906fi
24907
8284b0c5 24908
4d264332 24909USE_OPENGL=0
21d1c967 24910if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24911 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24912 OPENGL_LIBS="-framework OpenGL -framework AGL"
24913 elif test "$wxUSE_MSW" = 1; then
24914 OPENGL_LIBS="-lopengl32 -lglu32"
24915 else
01aa5863
VS
24916
24917
24918ac_find_includes=
24919for ac_dir in $SEARCH_INCLUDE /usr/include;
24920 do
24921 if test -f "$ac_dir/GL/gl.h"; then
24922 ac_find_includes=$ac_dir
24923 break
24924 fi
24925 done
24926
24927 if test "$ac_find_includes" != "" ; then
24928 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24929echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24930
24931 if test "x$ac_find_includes" = "x/usr/include"; then
24932 ac_path_to_include=""
24933 else
24934 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24935 result=$?
24936 if test $result = 0; then
24937 ac_path_to_include=""
24938 else
24939 ac_path_to_include=" -I$ac_find_includes"
24940 fi
24941 fi
24942
24943 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24944 fi
24945
e6cc62c6
VS
24946 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24947 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24948echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24949if test "${ac_cv_header_GL_gl_h+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24951fi
24952echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24953echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24954else
24955 # Is the header compilable?
24956echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24957echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24958cat >conftest.$ac_ext <<_ACEOF
24959#line $LINENO "configure"
24960/* confdefs.h. */
24961_ACEOF
24962cat confdefs.h >>conftest.$ac_ext
24963cat >>conftest.$ac_ext <<_ACEOF
24964/* end confdefs.h. */
24965$ac_includes_default
21d1c967 24966#include <GL/gl.h>
e6cc62c6
VS
24967_ACEOF
24968rm -f conftest.$ac_objext
24969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970 (eval $ac_compile) 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } &&
24974 { ac_try='test -s conftest.$ac_objext'
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 ac_header_compiler=yes
24981else
24982 echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985ac_header_compiler=no
24986fi
24987rm -f conftest.$ac_objext conftest.$ac_ext
24988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24989echo "${ECHO_T}$ac_header_compiler" >&6
24990
24991# Is the header present?
24992echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24993echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24994cat >conftest.$ac_ext <<_ACEOF
24995#line $LINENO "configure"
24996/* confdefs.h. */
24997_ACEOF
24998cat confdefs.h >>conftest.$ac_ext
24999cat >>conftest.$ac_ext <<_ACEOF
25000/* end confdefs.h. */
25001#include <GL/gl.h>
25002_ACEOF
25003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } >/dev/null; then
25011 if test -s conftest.err; then
25012 ac_cpp_err=$ac_c_preproc_warn_flag
25013 else
25014 ac_cpp_err=
25015 fi
25016else
25017 ac_cpp_err=yes
25018fi
25019if test -z "$ac_cpp_err"; then
25020 ac_header_preproc=yes
25021else
25022 echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 ac_header_preproc=no
25026fi
25027rm -f conftest.err conftest.$ac_ext
25028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25029echo "${ECHO_T}$ac_header_preproc" >&6
25030
25031# So? What about this header?
25032case $ac_header_compiler:$ac_header_preproc in
25033 yes:no )
25034 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25035echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25037echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25038 (
25039 cat <<\_ASBOX
25040## ------------------------------------ ##
25041## Report this to bug-autoconf@gnu.org. ##
25042## ------------------------------------ ##
25043_ASBOX
25044 ) |
25045 sed "s/^/$as_me: WARNING: /" >&2
25046 ;;
25047 no:yes )
25048 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25049echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25050 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25051echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25052 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25053echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25054 (
25055 cat <<\_ASBOX
25056## ------------------------------------ ##
25057## Report this to bug-autoconf@gnu.org. ##
25058## ------------------------------------ ##
25059_ASBOX
25060 ) |
25061 sed "s/^/$as_me: WARNING: /" >&2
25062 ;;
25063esac
25064echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25065echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25066if test "${ac_cv_header_GL_gl_h+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25070fi
e6cc62c6
VS
25071echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25072echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25073
698dcdb6 25074fi
e6cc62c6
VS
25075if test $ac_cv_header_GL_gl_h = yes; then
25076
89e3b3e4
VZ
25077 found_gl=0
25078
e6cc62c6
VS
25079 echo "$as_me:$LINENO: checking for -lGL" >&5
25080echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25081
21d1c967 25082ac_find_libraries=
2b5f62a0 25083for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25084 do
25085 for ac_extension in a so sl dylib; do
25086 if test -f "$ac_dir/libGL.$ac_extension"; then
25087 ac_find_libraries=$ac_dir
25088 break 2
25089 fi
25090 done
25091 done
25092
25093 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25094
21d1c967
GD
25095 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25096 result=$?
25097 if test $result = 0; then
25098 ac_path_to_link=""
25099 else
25100 ac_path_to_link=" -L$ac_find_libraries"
25101 fi
25102
89e3b3e4
VZ
25103 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25104 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25105 fi
89e3b3e4 25106
e6cc62c6 25107
89e3b3e4
VZ
25108ac_find_libraries=
25109for ac_dir in $SEARCH_LIB /usr/lib;
25110 do
25111 for ac_extension in a so sl dylib; do
25112 if test -f "$ac_dir/libGLU.$ac_extension"; then
25113 ac_find_libraries=$ac_dir
25114 break 2
25115 fi
25116 done
25117 done
25118
25119 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25120
89e3b3e4
VZ
25121 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25122 result=$?
25123 if test $result = 0; then
25124 ac_path_to_link=""
25125 else
25126 ac_path_to_link=" -L$ac_find_libraries"
25127 fi
25128
25129 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25130 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25131 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25132 fi
25133
25134 found_gl=1
25135 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25136 echo "$as_me:$LINENO: result: yes" >&5
25137echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25138 fi
25139 fi
25140
bb41dcbe 25141 if test "$found_gl" != 1; then
e6cc62c6
VS
25142 echo "$as_me:$LINENO: result: no" >&5
25143echo "${ECHO_T}no" >&6
25144 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25145echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25146
21d1c967 25147ac_find_libraries=
2b5f62a0 25148for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25149 do
25150 for ac_extension in a so sl dylib; do
25151 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25152 ac_find_libraries=$ac_dir
25153 break 2
25154 fi
25155 done
25156 done
25157
25158 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25159
21d1c967
GD
25160 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25161 result=$?
25162 if test $result = 0; then
25163 ac_path_to_link=""
25164 else
25165 ac_path_to_link=" -L$ac_find_libraries"
25166 fi
25167
25168 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25169 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25170 echo "$as_me:$LINENO: result: yes" >&5
25171echo "${ECHO_T}yes" >&6
21d1c967 25172 else
e6cc62c6
VS
25173 echo "$as_me:$LINENO: result: no" >&5
25174echo "${ECHO_T}no" >&6
21d1c967
GD
25175 fi
25176 fi
e6cc62c6 25177
5c6fa7d2 25178fi
52127426 25179
8284b0c5 25180
e6cc62c6 25181
21d1c967 25182 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25183 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25184echo "$as_me: error: OpenGL libraries not available" >&2;}
25185 { (exit 1); exit 1; }; }
21d1c967
GD
25186 fi
25187 fi
90dd450c 25188
21d1c967 25189 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25190 USE_OPENGL=1
e6cc62c6 25191 cat >>confdefs.h <<\_ACEOF
21d1c967 25192#define wxUSE_OPENGL 1
e6cc62c6 25193_ACEOF
21d1c967 25194
e6cc62c6 25195 cat >>confdefs.h <<\_ACEOF
21d1c967 25196#define wxUSE_GLCANVAS 1
e6cc62c6 25197_ACEOF
21d1c967 25198
520755bb 25199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25200 fi
10f2d63a 25201fi
21d1c967
GD
25202
25203if test -z "$TOOLKIT_VPATH" ; then
25204 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25205fi
21d1c967
GD
25206
25207if test -n "$TOOLKIT" ; then
25208 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25209fi
25210
fe0895cf 25211UNICODE=0
21d1c967
GD
25212lib_unicode_suffix=
25213if test "$wxUSE_UNICODE" = "yes"; then
25214 lib_unicode_suffix=u
fe0895cf 25215 UNICODE=1
90dd450c 25216fi
698dcdb6 25217
21d1c967 25218lib_debug_suffix=
6c67131a 25219DEBUG_FLAG=0
21d1c967
GD
25220if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25221 lib_debug_suffix=d
6c67131a
VS
25222 DEBUG_FLAG=1
25223fi
25224
25225DEBUG_INFO=0
25226if test "$wxUSE_DEBUG_INFO" = "yes"; then
25227 DEBUG_INFO=1
21d1c967 25228fi
698dcdb6 25229
1cbb95a2 25230WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25231
25232TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25233TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25234
25235if test "$cross_compiling" = "yes"; then
25236 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25237 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25238 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25239fi
25240
25241WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25242WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25243WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25244WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25245
25246WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25247WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25248
25249WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25250WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25251WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25252WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25253
25254case "${host}" in
25255 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25256 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25257 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25258 ;;
25259
25260 *-*-darwin* )
e6cc62c6 25261
05159a27
GD
25262 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25263 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25264
25265 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25266 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25267 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25268 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25269
21d1c967 25270 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25271 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25272 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25273 fi
25274 ;;
25275esac
25276
25277WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25278WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25279
25280WXCONFIG_LIBS="-l${WX_LIBRARY}"
25281WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25282
25283if test "$wxUSE_OPENGL" = "yes"; then
25284 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25285 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25286fi
25287
8284b0c5
MB
25288
25289
21d1c967
GD
25290if test "$wxUSE_SHARED" = "yes"; then
25291 case "${host}" in
25292 *-pc-os2_emx | *-pc-os2-emx | \
25293 *-pc-msdosdjgpp )
25294 wxUSE_SHARED=no
e6cc62c6
VS
25295 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25296echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25297 ;;
25298 esac
25299fi
25300
fe0895cf 25301SHARED=0
2b5f62a0 25302if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25303 SHARED=1
2b5f62a0 25304
e6cc62c6 25305
2b5f62a0
VZ
25306 found_versioning=no
25307
e6cc62c6 25308
2b5f62a0 25309 if test $found_versioning = no ; then
e6cc62c6
VS
25310 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25311echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25312if test "${wx_cv_version_script+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25314else
e6cc62c6 25315
2b5f62a0
VZ
25316 echo "VER_1 { *; };" >conftest.sym
25317 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25318
2b5f62a0
VZ
25319 if { ac_try='
25320 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25321 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25327 if test -s conftest.stderr ; then
25328 wx_cv_version_script=no
25329 else
25330 wx_cv_version_script=yes
25331 fi
25332 else
25333 wx_cv_version_script=no
25334 fi
25335 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25336
e6cc62c6
VS
25337fi
25338echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25339echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25340 if test $wx_cv_version_script = yes ; then
e6cc62c6 25341 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25342 fi
25343 fi
21d1c967 25344
21d1c967 25345
21d1c967 25346 case "${host}" in
fe0895cf 25347 *-*-linux* | *-*-gnu* )
e6cc62c6 25348 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
0f1bc9c2
VS
25349 SAMPLES_RPATH_POSTLINK="\"libnames=\`cd \$(LIBDIRNAME) ; ls -1 | grep '\.so\.[0-9][0-9]*\$'\` ; \\\\
25350inst_cmd='install_name_tool ' ; \\\\
25351for i in \$libnames ; do \\\\
25352 inst_cmd=\"\$inst_cmd -change \$(prefix)/lib/\\$i \$(LIBDIRNAME)/\\$i\" ; \\\\
25353done ; \\\\
25354echo \$inst_cmd\""
25355
21d1c967
GD
25356 ;;
25357
25358 *-*-solaris2* )
25359 if test "$GCC" = yes ; then
25360 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25361
25362 saveLdflags="$LDFLAGS"
25363 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25364 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25365echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25366 cat >conftest.$ac_ext <<_ACEOF
25367#line $LINENO "configure"
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373
25374int
25375main ()
25376{
fe0895cf 25377
e6cc62c6
VS
25378 ;
25379 return 0;
25380}
25381_ACEOF
25382rm -f conftest.$ac_objext conftest$ac_exeext
25383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25384 (eval $ac_link) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } &&
25388 { ac_try='test -s conftest$ac_exeext'
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; }; then
25394
25395 echo "$as_me:$LINENO: result: yes" >&5
25396echo "${ECHO_T}yes" >&6
25397 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25398
25399else
25400 echo "$as_me: failed program was:" >&5
25401sed 's/^/| /' conftest.$ac_ext >&5
25402
25403
25404 echo "$as_me:$LINENO: result: no" >&5
25405echo "${ECHO_T}no" >&6
25406 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25407echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25408 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25409 cat >conftest.$ac_ext <<_ACEOF
25410#line $LINENO "configure"
25411/* confdefs.h. */
25412_ACEOF
25413cat confdefs.h >>conftest.$ac_ext
25414cat >>conftest.$ac_ext <<_ACEOF
25415/* end confdefs.h. */
25416
25417int
25418main ()
25419{
25420
25421 ;
25422 return 0;
25423}
25424_ACEOF
25425rm -f conftest.$ac_objext conftest$ac_exeext
25426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25427 (eval $ac_link) 2>&5
25428 ac_status=$?
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } &&
25431 { ac_try='test -s conftest$ac_exeext'
25432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437
25438 echo "$as_me:$LINENO: result: yes" >&5
25439echo "${ECHO_T}yes" >&6
25440 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25441else
25442 echo "$as_me: failed program was:" >&5
25443sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25444
fe0895cf 25445
e6cc62c6
VS
25446 echo "$as_me:$LINENO: result: no" >&5
25447echo "${ECHO_T}no" >&6
25448
fe0895cf 25449fi
e6cc62c6
VS
25450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25451
25452fi
25453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25454 LDFLAGS="$saveLdflags"
21d1c967
GD
25455 else
25456 SHARED_LD="${CXX} -G -o"
25457 PIC_FLAG="-KPIC"
e6cc62c6 25458 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25459 fi
25460 ;;
0f1bc9c2
VS
25461
25462 powerpc-*-darwin* )
25463 SAMPLES_RPATH_POSTLINK="libnames=\`cd \$(LIBDIRNAME) ; ls -1 | grep '\.so\.0-90-9*\$'\` ; \\
25464inst_cmd='install_name_tool ' ; \\
25465for i in \$libnames ; do \\
25466 inst_cmd=\"\$inst_cmd -change \$(prefix)/lib/\\$i \$(LIBDIRNAME)/\\$i\" ; \\
25467done ; \\
25468echo \$inst_cmd "
25469 ;;
25470
21d1c967
GD
25471 esac
25472
25473 if test "x$WX_TARGET_LIBRARY" = "x"; then
25474 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25475 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25476 fi
25477
25478 WX_TARGET_LIBRARY_TYPE="so"
25479 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25480fi
10f2d63a 25481
21d1c967
GD
25482if test "$wxUSE_SHARED" = "no"; then
25483
25484 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25485 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25486 fi
25487
ac0c4cc3 25488 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25489 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25490 fi
25491
25492 if test "$wxUSE_OPENGL" = "yes"; then
25493 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25494 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25495 else
25496 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25497 fi
25498
25499 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25500 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25501
25502 WX_TARGET_LIBRARY_TYPE="a"
25503 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25504
25505 STATIC_FLAG="yes"
25506else
25507 STATIC_FLAG="no"
90dd450c 25508fi
1e487827 25509
93fac604
VZ
25510MACRESCOMP="@#"
25511MACSETFILE="@#"
36825681 25512MACRESWXCONFIG="#"
21d1c967 25513if test "$wxUSE_MAC" = 1; then
e6cc62c6 25514 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25515 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25516 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25517 # Extract the first word of "Rez", so it can be a program name with args.
25518set dummy Rez; ac_word=$2
e6cc62c6
VS
25519echo "$as_me:$LINENO: checking for $ac_word" >&5
25520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25521if test "${ac_cv_prog_RESCOMP+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25523else
21d1c967
GD
25524 if test -n "$RESCOMP"; then
25525 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25526else
e6cc62c6
VS
25527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25528for as_dir in $PATH
25529do
25530 IFS=$as_save_IFS
25531 test -z "$as_dir" && as_dir=.
25532 for ac_exec_ext in '' $ac_executable_extensions; do
25533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25534 ac_cv_prog_RESCOMP="Rez"
25535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25536 break 2
25537 fi
25538done
25539done
25540
21d1c967 25541 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25542fi
b93d0d08 25543fi
e6cc62c6 25544RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25545if test -n "$RESCOMP"; then
e6cc62c6
VS
25546 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25547echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25548else
e6cc62c6
VS
25549 echo "$as_me:$LINENO: result: no" >&5
25550echo "${ECHO_T}no" >&6
90dd450c 25551fi
b93d0d08 25552
21d1c967
GD
25553 # Extract the first word of "DeRez", so it can be a program name with args.
25554set dummy DeRez; ac_word=$2
e6cc62c6
VS
25555echo "$as_me:$LINENO: checking for $ac_word" >&5
25556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25557if test "${ac_cv_prog_DEREZ+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25559else
21d1c967
GD
25560 if test -n "$DEREZ"; then
25561 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25562else
e6cc62c6
VS
25563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25564for as_dir in $PATH
25565do
25566 IFS=$as_save_IFS
25567 test -z "$as_dir" && as_dir=.
25568 for ac_exec_ext in '' $ac_executable_extensions; do
25569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25570 ac_cv_prog_DEREZ="DeRez"
25571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25572 break 2
25573 fi
25574done
25575done
25576
21d1c967 25577 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25578fi
90dd450c 25579fi
e6cc62c6 25580DEREZ=$ac_cv_prog_DEREZ
21d1c967 25581if test -n "$DEREZ"; then
e6cc62c6
VS
25582 echo "$as_me:$LINENO: result: $DEREZ" >&5
25583echo "${ECHO_T}$DEREZ" >&6
90dd450c 25584else
e6cc62c6
VS
25585 echo "$as_me:$LINENO: result: no" >&5
25586echo "${ECHO_T}no" >&6
3a922bb4 25587fi
698dcdb6 25588
36825681
GD
25589 # Extract the first word of "SetFile", so it can be a program name with args.
25590set dummy SetFile; ac_word=$2
e6cc62c6
VS
25591echo "$as_me:$LINENO: checking for $ac_word" >&5
25592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25593if test "${ac_cv_prog_SETFILE+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25595else
25596 if test -n "$SETFILE"; then
25597 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25598else
e6cc62c6
VS
25599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25600for as_dir in $PATH
25601do
25602 IFS=$as_save_IFS
25603 test -z "$as_dir" && as_dir=.
25604 for ac_exec_ext in '' $ac_executable_extensions; do
25605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25606 ac_cv_prog_SETFILE="SetFile"
25607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25608 break 2
25609 fi
25610done
25611done
25612
36825681
GD
25613 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25614fi
25615fi
e6cc62c6 25616SETFILE=$ac_cv_prog_SETFILE
36825681 25617if test -n "$SETFILE"; then
e6cc62c6
VS
25618 echo "$as_me:$LINENO: result: $SETFILE" >&5
25619echo "${ECHO_T}$SETFILE" >&6
36825681 25620else
e6cc62c6
VS
25621 echo "$as_me:$LINENO: result: no" >&5
25622echo "${ECHO_T}no" >&6
36825681
GD
25623fi
25624
21d1c967 25625 MACOSX_BUNDLE="bundle"
36825681
GD
25626 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25627 MACSETFILE="\$(SETFILE)"
9711d31e 25628 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25629elif test "$wxUSE_COCOA" = 1; then
25630 # Extract the first word of "Rez", so it can be a program name with args.
25631set dummy Rez; ac_word=$2
e6cc62c6
VS
25632echo "$as_me:$LINENO: checking for $ac_word" >&5
25633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25634if test "${ac_cv_prog_RESCOMP+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25636else
25637 if test -n "$RESCOMP"; then
25638 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25639else
e6cc62c6
VS
25640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25641for as_dir in $PATH
25642do
25643 IFS=$as_save_IFS
25644 test -z "$as_dir" && as_dir=.
25645 for ac_exec_ext in '' $ac_executable_extensions; do
25646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25647 ac_cv_prog_RESCOMP="Rez"
25648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25649 break 2
25650 fi
25651done
25652done
25653
64440d77
DE
25654 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25655fi
25656fi
e6cc62c6 25657RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25658if test -n "$RESCOMP"; then
e6cc62c6
VS
25659 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25660echo "${ECHO_T}$RESCOMP" >&6
64440d77 25661else
e6cc62c6
VS
25662 echo "$as_me:$LINENO: result: no" >&5
25663echo "${ECHO_T}no" >&6
64440d77
DE
25664fi
25665
25666 # Extract the first word of "DeRez", so it can be a program name with args.
25667set dummy DeRez; ac_word=$2
e6cc62c6
VS
25668echo "$as_me:$LINENO: checking for $ac_word" >&5
25669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25670if test "${ac_cv_prog_DEREZ+set}" = set; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25672else
25673 if test -n "$DEREZ"; then
25674 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25675else
e6cc62c6
VS
25676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25677for as_dir in $PATH
25678do
25679 IFS=$as_save_IFS
25680 test -z "$as_dir" && as_dir=.
25681 for ac_exec_ext in '' $ac_executable_extensions; do
25682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25683 ac_cv_prog_DEREZ="DeRez"
25684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25685 break 2
25686 fi
25687done
25688done
25689
64440d77
DE
25690 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25691fi
25692fi
e6cc62c6 25693DEREZ=$ac_cv_prog_DEREZ
64440d77 25694if test -n "$DEREZ"; then
e6cc62c6
VS
25695 echo "$as_me:$LINENO: result: $DEREZ" >&5
25696echo "${ECHO_T}$DEREZ" >&6
64440d77 25697else
e6cc62c6
VS
25698 echo "$as_me:$LINENO: result: no" >&5
25699echo "${ECHO_T}no" >&6
64440d77
DE
25700fi
25701
25702 # Extract the first word of "SetFile", so it can be a program name with args.
25703set dummy SetFile; ac_word=$2
e6cc62c6
VS
25704echo "$as_me:$LINENO: checking for $ac_word" >&5
25705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25706if test "${ac_cv_prog_SETFILE+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25708else
25709 if test -n "$SETFILE"; then
25710 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25711else
e6cc62c6
VS
25712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25713for as_dir in $PATH
25714do
25715 IFS=$as_save_IFS
25716 test -z "$as_dir" && as_dir=.
25717 for ac_exec_ext in '' $ac_executable_extensions; do
25718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25719 ac_cv_prog_SETFILE="SetFile"
25720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25721 break 2
25722 fi
25723done
25724done
25725
64440d77
DE
25726 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25727fi
25728fi
e6cc62c6 25729SETFILE=$ac_cv_prog_SETFILE
64440d77 25730if test -n "$SETFILE"; then
e6cc62c6
VS
25731 echo "$as_me:$LINENO: result: $SETFILE" >&5
25732echo "${ECHO_T}$SETFILE" >&6
64440d77 25733else
e6cc62c6
VS
25734 echo "$as_me:$LINENO: result: no" >&5
25735echo "${ECHO_T}no" >&6
64440d77
DE
25736fi
25737
25738 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25739 MACSETFILE="\$(SETFILE)"
9711d31e 25740 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25741else
25742 if test "$wxUSE_PM" = 1; then
36825681 25743 MACRESCOMP="emxbind -ep"
90dd450c 25744 fi
4f14bcd8 25745fi
10f2d63a 25746
8284b0c5 25747
e6cc62c6
VS
25748echo "$as_me:$LINENO: checking for mode_t" >&5
25749echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25750if test "${ac_cv_type_mode_t+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25752else
e6cc62c6
VS
25753 cat >conftest.$ac_ext <<_ACEOF
25754#line $LINENO "configure"
25755/* confdefs.h. */
25756_ACEOF
25757cat confdefs.h >>conftest.$ac_ext
25758cat >>conftest.$ac_ext <<_ACEOF
25759/* end confdefs.h. */
25760$ac_includes_default
25761int
25762main ()
25763{
25764if ((mode_t *) 0)
25765 return 0;
25766if (sizeof (mode_t))
25767 return 0;
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772rm -f conftest.$ac_objext
25773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774 (eval $ac_compile) 2>&5
25775 ac_status=$?
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } &&
25778 { ac_try='test -s conftest.$ac_objext'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25781 ac_status=$?
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; }; then
25784 ac_cv_type_mode_t=yes
a0b9e27f 25785else
e6cc62c6
VS
25786 echo "$as_me: failed program was:" >&5
25787sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25788
e6cc62c6 25789ac_cv_type_mode_t=no
a0b9e27f 25790fi
e6cc62c6 25791rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25792fi
e6cc62c6
VS
25793echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25794echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25795if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25796 :
25797else
a0b9e27f 25798
e6cc62c6
VS
25799cat >>confdefs.h <<_ACEOF
25800#define mode_t int
25801_ACEOF
8284b0c5
MB
25802
25803fi
25804
e6cc62c6
VS
25805echo "$as_me:$LINENO: checking for off_t" >&5
25806echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25807if test "${ac_cv_type_off_t+set}" = set; then
25808 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25809else
e6cc62c6
VS
25810 cat >conftest.$ac_ext <<_ACEOF
25811#line $LINENO "configure"
25812/* confdefs.h. */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h. */
25817$ac_includes_default
25818int
25819main ()
25820{
25821if ((off_t *) 0)
25822 return 0;
25823if (sizeof (off_t))
25824 return 0;
25825 ;
25826 return 0;
25827}
25828_ACEOF
25829rm -f conftest.$ac_objext
25830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25831 (eval $ac_compile) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } &&
25835 { ac_try='test -s conftest.$ac_objext'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; }; then
25841 ac_cv_type_off_t=yes
5c6fa7d2 25842else
e6cc62c6
VS
25843 echo "$as_me: failed program was:" >&5
25844sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25845
e6cc62c6 25846ac_cv_type_off_t=no
8284b0c5 25847fi
e6cc62c6 25848rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25849fi
e6cc62c6
VS
25850echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25851echo "${ECHO_T}$ac_cv_type_off_t" >&6
25852if test $ac_cv_type_off_t = yes; then
25853 :
247f5006
VZ
25854else
25855
e6cc62c6 25856cat >>confdefs.h <<_ACEOF
90dd450c 25857#define off_t long
e6cc62c6 25858_ACEOF
10f2d63a 25859
90dd450c 25860fi
10f2d63a 25861
e6cc62c6
VS
25862echo "$as_me:$LINENO: checking for pid_t" >&5
25863echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25864if test "${ac_cv_type_pid_t+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25866else
e6cc62c6
VS
25867 cat >conftest.$ac_ext <<_ACEOF
25868#line $LINENO "configure"
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874$ac_includes_default
25875int
25876main ()
25877{
25878if ((pid_t *) 0)
25879 return 0;
25880if (sizeof (pid_t))
25881 return 0;
25882 ;
25883 return 0;
25884}
25885_ACEOF
25886rm -f conftest.$ac_objext
25887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25888 (eval $ac_compile) 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
25892 { ac_try='test -s conftest.$ac_objext'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
90dd450c 25898 ac_cv_type_pid_t=yes
698dcdb6 25899else
e6cc62c6
VS
25900 echo "$as_me: failed program was:" >&5
25901sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25902
e6cc62c6
VS
25903ac_cv_type_pid_t=no
25904fi
25905rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25906fi
e6cc62c6
VS
25907echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25908echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25909if test $ac_cv_type_pid_t = yes; then
25910 :
25911else
25912
25913cat >>confdefs.h <<_ACEOF
90dd450c 25914#define pid_t int
e6cc62c6 25915_ACEOF
10f2d63a 25916
7b4a847f
RR
25917fi
25918
e6cc62c6
VS
25919echo "$as_me:$LINENO: checking for size_t" >&5
25920echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25921if test "${ac_cv_type_size_t+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25923else
e6cc62c6
VS
25924 cat >conftest.$ac_ext <<_ACEOF
25925#line $LINENO "configure"
25926/* confdefs.h. */
25927_ACEOF
25928cat confdefs.h >>conftest.$ac_ext
25929cat >>conftest.$ac_ext <<_ACEOF
25930/* end confdefs.h. */
25931$ac_includes_default
25932int
25933main ()
25934{
25935if ((size_t *) 0)
25936 return 0;
25937if (sizeof (size_t))
25938 return 0;
25939 ;
25940 return 0;
25941}
25942_ACEOF
25943rm -f conftest.$ac_objext
25944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945 (eval $ac_compile) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } &&
25949 { ac_try='test -s conftest.$ac_objext'
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; }; then
90dd450c 25955 ac_cv_type_size_t=yes
18dbb1f6 25956else
e6cc62c6
VS
25957 echo "$as_me: failed program was:" >&5
25958sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25959
e6cc62c6 25960ac_cv_type_size_t=no
a0b9e27f 25961fi
e6cc62c6
VS
25962rm -f conftest.$ac_objext conftest.$ac_ext
25963fi
25964echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25965echo "${ECHO_T}$ac_cv_type_size_t" >&6
25966if test $ac_cv_type_size_t = yes; then
25967 :
25968else
25969
25970cat >>confdefs.h <<_ACEOF
90dd450c 25971#define size_t unsigned
e6cc62c6 25972_ACEOF
90dd450c
VZ
25973
25974fi
25975
e6cc62c6
VS
25976echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25977echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25978if test "${ac_cv_type_uid_t+set}" = set; then
25979 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25980else
e6cc62c6
VS
25981 cat >conftest.$ac_ext <<_ACEOF
25982#line $LINENO "configure"
25983/* confdefs.h. */
25984_ACEOF
25985cat confdefs.h >>conftest.$ac_ext
25986cat >>conftest.$ac_ext <<_ACEOF
25987/* end confdefs.h. */
90dd450c 25988#include <sys/types.h>
e6cc62c6
VS
25989
25990_ACEOF
90dd450c 25991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25992 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25993 ac_cv_type_uid_t=yes
b3e8d00a 25994else
90dd450c 25995 ac_cv_type_uid_t=no
b3e8d00a 25996fi
90dd450c 25997rm -f conftest*
b3e8d00a 25998
4f14bcd8 25999fi
e6cc62c6
VS
26000echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26001echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26002if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26003
26004cat >>confdefs.h <<\_ACEOF
90dd450c 26005#define uid_t int
e6cc62c6 26006_ACEOF
247f5006 26007
e6cc62c6
VS
26008
26009cat >>confdefs.h <<\_ACEOF
90dd450c 26010#define gid_t int
e6cc62c6 26011_ACEOF
4f14bcd8 26012
b3e8d00a 26013fi
b3e8d00a 26014
8284b0c5
MB
26015
26016
e6cc62c6
VS
26017
26018ac_ext=cc
4f14bcd8 26019ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26023
26024echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26025echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26026if test "${wx_cv_size_t_is_uint+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26028else
26029
26030 cat >conftest.$ac_ext <<_ACEOF
26031#line $LINENO "configure"
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
90dd450c 26037#include <stddef.h>
e6cc62c6
VS
26038int
26039main ()
26040{
90dd450c
VZ
26041
26042 return 0; }
26043
26044 struct Foo { void foo(size_t); void foo(unsigned int); };
26045
26046 int bar() {
e6cc62c6
VS
26047
26048 ;
26049 return 0;
26050}
26051_ACEOF
26052rm -f conftest.$ac_objext
26053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26054 (eval $ac_compile) 2>&5
26055 ac_status=$?
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } &&
26058 { ac_try='test -s conftest.$ac_objext'
26059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); }; }; then
90dd450c 26064 wx_cv_size_t_is_uint=no
698dcdb6 26065else
e6cc62c6
VS
26066 echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069wx_cv_size_t_is_uint=yes
8284b0c5 26070
247f5006 26071fi
e6cc62c6
VS
26072rm -f conftest.$ac_objext conftest.$ac_ext
26073
a0b9e27f 26074
e6cc62c6
VS
26075fi
26076echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26077echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26078
90dd450c 26079if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26080 cat >>confdefs.h <<\_ACEOF
90dd450c 26081#define wxSIZE_T_IS_UINT 1
e6cc62c6 26082_ACEOF
698dcdb6 26083
90dd450c 26084else
e6cc62c6
VS
26085 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26086echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26087if test "${wx_cv_size_t_is_ulong+set}" = set; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26089else
e6cc62c6
VS
26090 cat >conftest.$ac_ext <<_ACEOF
26091#line $LINENO "configure"
26092/* confdefs.h. */
26093_ACEOF
26094cat confdefs.h >>conftest.$ac_ext
26095cat >>conftest.$ac_ext <<_ACEOF
26096/* end confdefs.h. */
90dd450c 26097#include <stddef.h>
e6cc62c6
VS
26098int
26099main ()
26100{
90dd450c
VZ
26101
26102 return 0; }
26103
26104 struct Foo { void foo(size_t); void foo(unsigned long); };
26105
26106 int bar() {
e6cc62c6
VS
26107
26108 ;
26109 return 0;
26110}
26111_ACEOF
26112rm -f conftest.$ac_objext
26113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26114 (eval $ac_compile) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } &&
26118 { ac_try='test -s conftest.$ac_objext'
26119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; }; then
90dd450c 26124 wx_cv_size_t_is_ulong=no
698dcdb6 26125else
e6cc62c6
VS
26126 echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
26129wx_cv_size_t_is_ulong=yes
26130
247f5006 26131fi
e6cc62c6 26132rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26133
e6cc62c6
VS
26134fi
26135echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26136echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26137
90dd450c 26138 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26139 cat >>confdefs.h <<\_ACEOF
90dd450c 26140#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26141_ACEOF
4f14bcd8
GD
26142
26143 fi
90dd450c 26144fi
1e487827 26145
90dd450c 26146ac_ext=c
4f14bcd8 26147ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26151
5c6fa7d2 26152
8284b0c5 26153
e6cc62c6
VS
26154echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26155echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26156if test "${wx_cv_struct_pw_gecos+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26158else
e6cc62c6
VS
26159
26160 cat >conftest.$ac_ext <<_ACEOF
26161#line $LINENO "configure"
26162/* confdefs.h. */
26163_ACEOF
26164cat confdefs.h >>conftest.$ac_ext
26165cat >>conftest.$ac_ext <<_ACEOF
26166/* end confdefs.h. */
90dd450c 26167#include <pwd.h>
e6cc62c6
VS
26168int
26169main ()
26170{
f6bcfd97 26171
90dd450c
VZ
26172 char *p;
26173 struct passwd *pw;
26174 p = pw->pw_gecos;
e6cc62c6
VS
26175
26176 ;
26177 return 0;
26178}
26179_ACEOF
26180rm -f conftest.$ac_objext
26181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182 (eval $ac_compile) 2>&5
26183 ac_status=$?
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); } &&
26186 { ac_try='test -s conftest.$ac_objext'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192
90dd450c 26193 wx_cv_struct_pw_gecos=yes
e6cc62c6 26194
10f2d63a 26195else
e6cc62c6
VS
26196 echo "$as_me: failed program was:" >&5
26197sed 's/^/| /' conftest.$ac_ext >&5
26198
26199
90dd450c 26200 wx_cv_struct_pw_gecos=no
e6cc62c6 26201
247f5006
VZ
26202
26203fi
e6cc62c6 26204rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26205
e6cc62c6
VS
26206
26207fi
26208echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26209echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26210
90dd450c 26211if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26212 cat >>confdefs.h <<\_ACEOF
90dd450c 26213#define HAVE_PW_GECOS 1
e6cc62c6 26214_ACEOF
c521c494 26215
90dd450c 26216fi
4f14bcd8 26217
8284b0c5 26218
d29b553b 26219if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26220 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26221#define wxUSE_WCHAR_T 1
e6cc62c6 26222_ACEOF
d74f4b5a 26223
8284b0c5 26224
d74f4b5a
VZ
26225 WCSLEN_FOUND=0
26226 WCHAR_LINK=
e6cc62c6
VS
26227
26228for ac_func in wcslen
7a30264c 26229do
e6cc62c6
VS
26230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26231echo "$as_me:$LINENO: checking for $ac_func" >&5
26232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26233if eval "test \"\${$as_ac_var+set}\" = set"; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26235else
26236 cat >conftest.$ac_ext <<_ACEOF
26237#line $LINENO "configure"
26238/* confdefs.h. */
26239_ACEOF
26240cat confdefs.h >>conftest.$ac_ext
26241cat >>conftest.$ac_ext <<_ACEOF
26242/* end confdefs.h. */
7a30264c 26243/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26244 which can conflict with char $ac_func (); below.
26245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26246 <limits.h> exists even on freestanding compilers. */
26247#ifdef __STDC__
26248# include <limits.h>
26249#else
26250# include <assert.h>
26251#endif
4f14bcd8 26252/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26253#ifdef __cplusplus
26254extern "C"
26255{
26256#endif
4f14bcd8 26257/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26258 builtin and then its argument prototype would still apply. */
26259char $ac_func ();
7a30264c
VZ
26260/* The GNU C library defines this for functions which it implements
26261 to always fail with ENOSYS. Some functions are actually named
26262 something starting with __ and the normal name is an alias. */
26263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26264choke me
26265#else
e6cc62c6
VS
26266char (*f) () = $ac_func;
26267#endif
26268#ifdef __cplusplus
26269}
7a30264c
VZ
26270#endif
26271
e6cc62c6
VS
26272int
26273main ()
26274{
26275return f != $ac_func;
26276 ;
26277 return 0;
26278}
26279_ACEOF
26280rm -f conftest.$ac_objext conftest$ac_exeext
26281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26282 (eval $ac_link) 2>&5
26283 ac_status=$?
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } &&
26286 { ac_try='test -s conftest$ac_exeext'
26287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288 (eval $ac_try) 2>&5
26289 ac_status=$?
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; }; then
26292 eval "$as_ac_var=yes"
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297eval "$as_ac_var=no"
26298fi
26299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26300fi
26301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26303if test `eval echo '${'$as_ac_var'}'` = yes; then
26304 cat >>confdefs.h <<_ACEOF
26305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26306_ACEOF
d74f4b5a 26307 WCSLEN_FOUND=1
7a30264c
VZ
26308fi
26309done
9d8deca0 26310
8284b0c5 26311
d74f4b5a 26312 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26313 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26314 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26315echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26316if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26318else
e6cc62c6 26319 ac_check_lib_save_LIBS=$LIBS
7a30264c 26320LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26321cat >conftest.$ac_ext <<_ACEOF
26322#line $LINENO "configure"
26323/* confdefs.h. */
26324_ACEOF
26325cat confdefs.h >>conftest.$ac_ext
26326cat >>conftest.$ac_ext <<_ACEOF
26327/* end confdefs.h. */
26328
4f14bcd8 26329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26330#ifdef __cplusplus
26331extern "C"
26332#endif
4f14bcd8 26333/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26334 builtin and then its argument prototype would still apply. */
26335char wcslen ();
26336int
26337main ()
26338{
26339wcslen ();
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext conftest$ac_exeext
26345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26346 (eval $ac_link) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -s conftest$ac_exeext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26356 ac_cv_lib_msvcrt_wcslen=yes
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361ac_cv_lib_msvcrt_wcslen=no
26362fi
26363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26364LIBS=$ac_check_lib_save_LIBS
26365fi
26366echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26367echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26368if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26369 WCHAR_OK=1
d29b553b 26370fi
698dcdb6 26371
7a30264c 26372 else
e6cc62c6
VS
26373 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26374echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26375if test "${ac_cv_lib_w_wcslen+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26377else
e6cc62c6 26378 ac_check_lib_save_LIBS=$LIBS
7a30264c 26379LIBS="-lw $LIBS"
e6cc62c6
VS
26380cat >conftest.$ac_ext <<_ACEOF
26381#line $LINENO "configure"
26382/* confdefs.h. */
26383_ACEOF
26384cat confdefs.h >>conftest.$ac_ext
26385cat >>conftest.$ac_ext <<_ACEOF
26386/* end confdefs.h. */
26387
4f14bcd8 26388/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26389#ifdef __cplusplus
26390extern "C"
26391#endif
4f14bcd8 26392/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26393 builtin and then its argument prototype would still apply. */
26394char wcslen ();
26395int
26396main ()
26397{
26398wcslen ();
26399 ;
26400 return 0;
26401}
26402_ACEOF
26403rm -f conftest.$ac_objext conftest$ac_exeext
26404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26405 (eval $ac_link) 2>&5
26406 ac_status=$?
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } &&
26409 { ac_try='test -s conftest$ac_exeext'
26410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411 (eval $ac_try) 2>&5
26412 ac_status=$?
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); }; }; then
26415 ac_cv_lib_w_wcslen=yes
26416else
26417 echo "$as_me: failed program was:" >&5
26418sed 's/^/| /' conftest.$ac_ext >&5
26419
26420ac_cv_lib_w_wcslen=no
26421fi
26422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26423LIBS=$ac_check_lib_save_LIBS
26424fi
26425echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26426echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26427if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26428
7a30264c 26429 WCHAR_LINK=" -lw"
d74f4b5a 26430 WCSLEN_FOUND=1
e6cc62c6 26431
4f14bcd8 26432fi
10f2d63a 26433
7a30264c 26434 fi
d29b553b 26435 fi
95c8801c 26436
d74f4b5a 26437 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26438 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26439#define HAVE_WCSLEN 1
e6cc62c6 26440_ACEOF
10f2d63a 26441
d74f4b5a 26442 fi
52127426 26443
e6cc62c6
VS
26444
26445for ac_func in wcsrtombs
eb4efbdc 26446do
e6cc62c6
VS
26447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26448echo "$as_me:$LINENO: checking for $ac_func" >&5
26449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26450if eval "test \"\${$as_ac_var+set}\" = set"; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452else
26453 cat >conftest.$ac_ext <<_ACEOF
26454#line $LINENO "configure"
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
eb4efbdc 26460/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26461 which can conflict with char $ac_func (); below.
26462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26463 <limits.h> exists even on freestanding compilers. */
26464#ifdef __STDC__
26465# include <limits.h>
26466#else
26467# include <assert.h>
26468#endif
eb4efbdc 26469/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26470#ifdef __cplusplus
26471extern "C"
26472{
26473#endif
4f14bcd8 26474/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26475 builtin and then its argument prototype would still apply. */
26476char $ac_func ();
10f2d63a
VZ
26477/* The GNU C library defines this for functions which it implements
26478 to always fail with ENOSYS. Some functions are actually named
26479 something starting with __ and the normal name is an alias. */
247f5006 26480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26481choke me
26482#else
e6cc62c6
VS
26483char (*f) () = $ac_func;
26484#endif
26485#ifdef __cplusplus
26486}
10f2d63a
VZ
26487#endif
26488
e6cc62c6
VS
26489int
26490main ()
26491{
26492return f != $ac_func;
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497rm -f conftest.$ac_objext conftest$ac_exeext
26498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499 (eval $ac_link) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
26503 { ac_try='test -s conftest$ac_exeext'
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
26509 eval "$as_ac_var=yes"
26510else
26511 echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514eval "$as_ac_var=no"
26515fi
26516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26517fi
26518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26520if test `eval echo '${'$as_ac_var'}'` = yes; then
26521 cat >>confdefs.h <<_ACEOF
26522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26523_ACEOF
270a909e 26524
4f14bcd8 26525fi
247f5006 26526done
1e487827 26527
af15babd 26528else
e6cc62c6
VS
26529 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26530echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26531fi
52127426 26532
8284b0c5 26533
e6cc62c6
VS
26534
26535ac_ext=cc
247f5006 26536ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26540
af15babd 26541
247f5006
VZ
26542
26543for ac_func in vsnprintf
26544do
e6cc62c6
VS
26545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26546echo "$as_me:$LINENO: checking for $ac_func" >&5
26547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26548if eval "test \"\${$as_ac_var+set}\" = set"; then
26549 echo $ECHO_N "(cached) $ECHO_C" >&6
26550else
26551 cat >conftest.$ac_ext <<_ACEOF
26552#line $LINENO "configure"
26553/* confdefs.h. */
26554_ACEOF
26555cat confdefs.h >>conftest.$ac_ext
26556cat >>conftest.$ac_ext <<_ACEOF
26557/* end confdefs.h. */
247f5006 26558/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26559 which can conflict with char $ac_func (); below.
26560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26561 <limits.h> exists even on freestanding compilers. */
26562#ifdef __STDC__
26563# include <limits.h>
26564#else
26565# include <assert.h>
26566#endif
247f5006
VZ
26567/* Override any gcc2 internal prototype to avoid an error. */
26568#ifdef __cplusplus
26569extern "C"
e6cc62c6 26570{
247f5006
VZ
26571#endif
26572/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26573 builtin and then its argument prototype would still apply. */
26574char $ac_func ();
247f5006
VZ
26575/* The GNU C library defines this for functions which it implements
26576 to always fail with ENOSYS. Some functions are actually named
26577 something starting with __ and the normal name is an alias. */
26578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26579choke me
26580#else
e6cc62c6
VS
26581char (*f) () = $ac_func;
26582#endif
26583#ifdef __cplusplus
26584}
247f5006 26585#endif
af15babd 26586
e6cc62c6
VS
26587int
26588main ()
26589{
26590return f != $ac_func;
26591 ;
26592 return 0;
26593}
26594_ACEOF
26595rm -f conftest.$ac_objext conftest$ac_exeext
26596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26597 (eval $ac_link) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -s conftest$ac_exeext'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607 eval "$as_ac_var=yes"
26608else
26609 echo "$as_me: failed program was:" >&5
26610sed 's/^/| /' conftest.$ac_ext >&5
26611
26612eval "$as_ac_var=no"
26613fi
26614rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26615fi
26616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26617echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26618if test `eval echo '${'$as_ac_var'}'` = yes; then
26619 cat >>confdefs.h <<_ACEOF
26620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26621_ACEOF
52127426 26622
5c6fa7d2 26623fi
247f5006 26624done
8284b0c5 26625
4f14bcd8 26626
8d90d2f2 26627if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26628 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26629echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26630if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26632else
e6cc62c6
VS
26633
26634 cat >conftest.$ac_ext <<_ACEOF
26635#line $LINENO "configure"
26636/* confdefs.h. */
26637_ACEOF
26638cat confdefs.h >>conftest.$ac_ext
26639cat >>conftest.$ac_ext <<_ACEOF
26640/* end confdefs.h. */
8d90d2f2
VZ
26641
26642 #include <stdio.h>
26643 #include <stdarg.h>
e6cc62c6
VS
26644
26645int
26646main ()
26647{
8d90d2f2
VZ
26648
26649 char *buf;
26650 va_list ap;
26651 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26652
26653 ;
26654 return 0;
26655}
26656_ACEOF
26657rm -f conftest.$ac_objext
26658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26659 (eval $ac_compile) 2>&5
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); } &&
26663 { ac_try='test -s conftest.$ac_objext'
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; }; then
8d90d2f2
VZ
26669 wx_cv_func_vsnprintf_decl=yes
26670else
e6cc62c6
VS
26671 echo "$as_me: failed program was:" >&5
26672sed 's/^/| /' conftest.$ac_ext >&5
26673
26674wx_cv_func_vsnprintf_decl=no
26675
8d90d2f2 26676fi
e6cc62c6
VS
26677rm -f conftest.$ac_objext conftest.$ac_ext
26678
8d90d2f2 26679
e6cc62c6
VS
26680fi
26681echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26682echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26683
26684 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26685 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26686#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26687_ACEOF
8d90d2f2
VZ
26688
26689 fi
26690fi
26691
247f5006 26692if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26693
26694
26695
26696for ac_func in fputwc wprintf vswprintf
d74f4b5a 26697do
e6cc62c6
VS
26698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26699echo "$as_me:$LINENO: checking for $ac_func" >&5
26700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26701if eval "test \"\${$as_ac_var+set}\" = set"; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26703else
26704 cat >conftest.$ac_ext <<_ACEOF
26705#line $LINENO "configure"
26706/* confdefs.h. */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h. */
d74f4b5a 26711/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26712 which can conflict with char $ac_func (); below.
26713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26714 <limits.h> exists even on freestanding compilers. */
26715#ifdef __STDC__
26716# include <limits.h>
26717#else
26718# include <assert.h>
26719#endif
d74f4b5a 26720/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26721#ifdef __cplusplus
26722extern "C"
e6cc62c6 26723{
247f5006 26724#endif
d74f4b5a 26725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26726 builtin and then its argument prototype would still apply. */
26727char $ac_func ();
d74f4b5a
VZ
26728/* The GNU C library defines this for functions which it implements
26729 to always fail with ENOSYS. Some functions are actually named
26730 something starting with __ and the normal name is an alias. */
26731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26732choke me
26733#else
e6cc62c6
VS
26734char (*f) () = $ac_func;
26735#endif
26736#ifdef __cplusplus
26737}
d74f4b5a
VZ
26738#endif
26739
e6cc62c6
VS
26740int
26741main ()
26742{
26743return f != $ac_func;
26744 ;
26745 return 0;
26746}
26747_ACEOF
26748rm -f conftest.$ac_objext conftest$ac_exeext
26749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26750 (eval $ac_link) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } &&
26754 { ac_try='test -s conftest$ac_exeext'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 eval "$as_ac_var=yes"
26761else
26762 echo "$as_me: failed program was:" >&5
26763sed 's/^/| /' conftest.$ac_ext >&5
26764
26765eval "$as_ac_var=no"
26766fi
26767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26768fi
26769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26771if test `eval echo '${'$as_ac_var'}'` = yes; then
26772 cat >>confdefs.h <<_ACEOF
26773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26774_ACEOF
d74f4b5a 26775
d74f4b5a
VZ
26776fi
26777done
26778
8d90d2f2 26779
e6cc62c6
VS
26780 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26781echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26782 cat >conftest.$ac_ext <<_ACEOF
26783#line $LINENO "configure"
26784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
79668cae 26789#include <wchar.h>
e6cc62c6
VS
26790int
26791main ()
26792{
79668cae 26793&_vsnwprintf;
e6cc62c6
VS
26794 ;
26795 return 0;
26796}
26797_ACEOF
26798rm -f conftest.$ac_objext
26799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26800 (eval $ac_compile) 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
26804 { ac_try='test -s conftest.$ac_objext'
26805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806 (eval $ac_try) 2>&5
26807 ac_status=$?
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; }; then
26810 echo "$as_me:$LINENO: result: yes" >&5
26811echo "${ECHO_T}yes" >&6
26812 cat >>confdefs.h <<\_ACEOF
79668cae 26813#define HAVE__VSNWPRINTF 1
e6cc62c6 26814_ACEOF
79668cae
MB
26815
26816else
e6cc62c6
VS
26817 echo "$as_me: failed program was:" >&5
26818sed 's/^/| /' conftest.$ac_ext >&5
26819
26820echo "$as_me:$LINENO: result: no" >&5
26821echo "${ECHO_T}no" >&6
79668cae 26822fi
e6cc62c6 26823rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26824fi
26825
247f5006
VZ
26826ac_ext=c
26827ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26830ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26831
26832
26833
26834
4f14bcd8 26835if test "$TOOLKIT" != "MSW"; then
af15babd 26836
8284b0c5
MB
26837
26838
e6cc62c6
VS
26839
26840ac_ext=cc
4f14bcd8 26841ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26845
52127426 26846
e6cc62c6
VS
26847
26848
26849# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26850if test "${with_libiconv_prefix+set}" = set; then
26851 withval="$with_libiconv_prefix"
e6cc62c6 26852
b040e242
VS
26853 for dir in `echo "$withval" | tr : ' '`; do
26854 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26855 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26856 done
b040e242 26857
e6cc62c6 26858fi;
b040e242 26859
e6cc62c6
VS
26860 echo "$as_me:$LINENO: checking for iconv" >&5
26861echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26862if test "${am_cv_func_iconv+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26864else
e6cc62c6 26865
b040e242
VS
26866 am_cv_func_iconv="no, consider installing GNU libiconv"
26867 am_cv_lib_iconv=no
e6cc62c6
VS
26868 cat >conftest.$ac_ext <<_ACEOF
26869#line $LINENO "configure"
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
b040e242 26875#include <stdlib.h>
4f14bcd8 26876#include <iconv.h>
e6cc62c6
VS
26877int
26878main ()
26879{
b040e242
VS
26880iconv_t cd = iconv_open("","");
26881 iconv(cd,NULL,NULL,NULL,NULL);
26882 iconv_close(cd);
e6cc62c6
VS
26883 ;
26884 return 0;
26885}
26886_ACEOF
26887rm -f conftest.$ac_objext conftest$ac_exeext
26888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26889 (eval $ac_link) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); } &&
26893 { ac_try='test -s conftest$ac_exeext'
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
b040e242 26899 am_cv_func_iconv=yes
af15babd 26900else
e6cc62c6
VS
26901 echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
b040e242 26904fi
e6cc62c6 26905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26906 if test "$am_cv_func_iconv" != yes; then
26907 am_save_LIBS="$LIBS"
26908 LIBS="$LIBS -liconv"
e6cc62c6
VS
26909 cat >conftest.$ac_ext <<_ACEOF
26910#line $LINENO "configure"
26911/* confdefs.h. */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h. */
b040e242
VS
26916#include <stdlib.h>
26917#include <iconv.h>
e6cc62c6
VS
26918int
26919main ()
26920{
b040e242
VS
26921iconv_t cd = iconv_open("","");
26922 iconv(cd,NULL,NULL,NULL,NULL);
26923 iconv_close(cd);
e6cc62c6
VS
26924 ;
26925 return 0;
26926}
26927_ACEOF
26928rm -f conftest.$ac_objext conftest$ac_exeext
26929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26930 (eval $ac_link) 2>&5
26931 ac_status=$?
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } &&
26934 { ac_try='test -s conftest$ac_exeext'
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; }; then
b040e242
VS
26940 am_cv_lib_iconv=yes
26941 am_cv_func_iconv=yes
26942else
e6cc62c6
VS
26943 echo "$as_me: failed program was:" >&5
26944sed 's/^/| /' conftest.$ac_ext >&5
26945
af15babd 26946fi
e6cc62c6 26947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26948 LIBS="$am_save_LIBS"
26949 fi
247f5006 26950
e6cc62c6
VS
26951fi
26952echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26953echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26954 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26955
26956cat >>confdefs.h <<\_ACEOF
b040e242 26957#define HAVE_ICONV 1
e6cc62c6 26958_ACEOF
b040e242 26959
e6cc62c6
VS
26960 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26961echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26962if test "${wx_cv_func_iconv_const+set}" = set; then
26963 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26964else
e6cc62c6
VS
26965 cat >conftest.$ac_ext <<_ACEOF
26966#line $LINENO "configure"
26967/* confdefs.h. */
26968_ACEOF
26969cat confdefs.h >>conftest.$ac_ext
26970cat >>conftest.$ac_ext <<_ACEOF
26971/* end confdefs.h. */
b040e242
VS
26972
26973#include <stdlib.h>
26974#include <iconv.h>
26975extern
26976#ifdef __cplusplus
26977"C"
26978#endif
26979#if defined(__STDC__) || defined(__cplusplus)
26980size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26981#else
26982size_t iconv();
26983#endif
af15babd 26984
e6cc62c6
VS
26985int
26986main ()
26987{
26988
26989 ;
26990 return 0;
26991}
26992_ACEOF
26993rm -f conftest.$ac_objext
26994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26995 (eval $ac_compile) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } &&
26999 { ac_try='test -s conftest.$ac_objext'
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
b7043674 27005 wx_cv_func_iconv_const="no"
b040e242 27006else
e6cc62c6
VS
27007 echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010wx_cv_func_iconv_const="yes"
27011
247f5006 27012fi
e6cc62c6 27013rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27014
e6cc62c6
VS
27015fi
27016echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27017echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27018
27019 iconv_const=
1c405bb5 27020 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27021 iconv_const="const"
27022 fi
27023
e6cc62c6
VS
27024
27025cat >>confdefs.h <<_ACEOF
f09359cf 27026#define ICONV_CONST $iconv_const
e6cc62c6 27027_ACEOF
b040e242
VS
27028
27029 fi
27030 LIBICONV=
27031 if test "$am_cv_lib_iconv" = yes; then
27032 LIBICONV="-liconv"
27033 fi
e6cc62c6 27034
b040e242
VS
27035
27036LIBS="$LIBICONV $LIBS"
4f14bcd8 27037ac_ext=c
4f14bcd8 27038ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27041ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27042
5c6fa7d2 27043
8284b0c5 27044if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27045
27046for ac_func in sigaction
af15babd 27047do
e6cc62c6
VS
27048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27049echo "$as_me:$LINENO: checking for $ac_func" >&5
27050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27051if eval "test \"\${$as_ac_var+set}\" = set"; then
27052 echo $ECHO_N "(cached) $ECHO_C" >&6
27053else
27054 cat >conftest.$ac_ext <<_ACEOF
27055#line $LINENO "configure"
27056/* confdefs.h. */
27057_ACEOF
27058cat confdefs.h >>conftest.$ac_ext
27059cat >>conftest.$ac_ext <<_ACEOF
27060/* end confdefs.h. */
af15babd 27061/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27062 which can conflict with char $ac_func (); below.
27063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27064 <limits.h> exists even on freestanding compilers. */
27065#ifdef __STDC__
27066# include <limits.h>
27067#else
27068# include <assert.h>
27069#endif
af15babd 27070/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27071#ifdef __cplusplus
27072extern "C"
27073{
27074#endif
af15babd 27075/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27076 builtin and then its argument prototype would still apply. */
27077char $ac_func ();
af15babd
VZ
27078/* The GNU C library defines this for functions which it implements
27079 to always fail with ENOSYS. Some functions are actually named
27080 something starting with __ and the normal name is an alias. */
27081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27082choke me
27083#else
e6cc62c6
VS
27084char (*f) () = $ac_func;
27085#endif
27086#ifdef __cplusplus
27087}
af15babd
VZ
27088#endif
27089
e6cc62c6
VS
27090int
27091main ()
27092{
27093return f != $ac_func;
27094 ;
27095 return 0;
27096}
27097_ACEOF
27098rm -f conftest.$ac_objext conftest$ac_exeext
27099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27100 (eval $ac_link) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -s conftest$ac_exeext'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; }; then
27110 eval "$as_ac_var=yes"
27111else
27112 echo "$as_me: failed program was:" >&5
27113sed 's/^/| /' conftest.$ac_ext >&5
27114
27115eval "$as_ac_var=no"
27116fi
27117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27118fi
27119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27121if test `eval echo '${'$as_ac_var'}'` = yes; then
27122 cat >>confdefs.h <<_ACEOF
27123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27124_ACEOF
7b4a847f 27125
4f14bcd8
GD
27126fi
27127done
27128
8284b0c5 27129
4f14bcd8 27130 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27131 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27132echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27133 wxUSE_ON_FATAL_EXCEPTION=no
27134 fi
27135
27136 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27137
27138
27139 ac_ext=cc
5c6fa7d2 27140ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27144
5c6fa7d2 27145
e6cc62c6
VS
27146 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27147echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27148if test "${wx_cv_type_sa_handler+set}" = set; then
27149 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27150else
e6cc62c6
VS
27151
27152 cat >conftest.$ac_ext <<_ACEOF
27153#line $LINENO "configure"
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
4f14bcd8 27159#include <signal.h>
e6cc62c6
VS
27160int
27161main ()
27162{
4f14bcd8
GD
27163
27164 extern void testSigHandler(int);
27165
27166 struct sigaction sa;
27167 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27168
27169 ;
27170 return 0;
27171}
27172_ACEOF
27173rm -f conftest.$ac_objext
27174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27175 (eval $ac_compile) 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
27179 { ac_try='test -s conftest.$ac_objext'
27180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185
4f14bcd8 27186 wx_cv_type_sa_handler=int
e6cc62c6 27187
af15babd 27188else
e6cc62c6
VS
27189 echo "$as_me: failed program was:" >&5
27190sed 's/^/| /' conftest.$ac_ext >&5
27191
27192
4f14bcd8 27193 wx_cv_type_sa_handler=void
e6cc62c6 27194
247f5006 27195fi
e6cc62c6 27196rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27197
e6cc62c6
VS
27198fi
27199echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27200echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27201
27202 ac_ext=c
4f14bcd8 27203ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27206ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27207
8284b0c5 27208
e6cc62c6 27209 cat >>confdefs.h <<_ACEOF
4f14bcd8 27210#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27211_ACEOF
af15babd 27212
4f14bcd8
GD
27213 fi
27214fi
af15babd 27215
e6cc62c6
VS
27216
27217
a1d22ad7 27218for ac_func in mkstemp mktemp
af15babd 27219do
e6cc62c6
VS
27220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27221echo "$as_me:$LINENO: checking for $ac_func" >&5
27222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27223if eval "test \"\${$as_ac_var+set}\" = set"; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27225else
27226 cat >conftest.$ac_ext <<_ACEOF
27227#line $LINENO "configure"
27228/* confdefs.h. */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h. */
af15babd 27233/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27234 which can conflict with char $ac_func (); below.
27235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27236 <limits.h> exists even on freestanding compilers. */
27237#ifdef __STDC__
27238# include <limits.h>
27239#else
27240# include <assert.h>
27241#endif
af15babd 27242/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27243#ifdef __cplusplus
27244extern "C"
27245{
27246#endif
af15babd 27247/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27248 builtin and then its argument prototype would still apply. */
27249char $ac_func ();
af15babd
VZ
27250/* The GNU C library defines this for functions which it implements
27251 to always fail with ENOSYS. Some functions are actually named
27252 something starting with __ and the normal name is an alias. */
27253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27254choke me
27255#else
e6cc62c6
VS
27256char (*f) () = $ac_func;
27257#endif
27258#ifdef __cplusplus
27259}
af15babd
VZ
27260#endif
27261
e6cc62c6
VS
27262int
27263main ()
27264{
27265return f != $ac_func;
27266 ;
27267 return 0;
27268}
27269_ACEOF
27270rm -f conftest.$ac_objext conftest$ac_exeext
27271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27272 (eval $ac_link) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } &&
27276 { ac_try='test -s conftest$ac_exeext'
27277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278 (eval $ac_try) 2>&5
27279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 eval "$as_ac_var=yes"
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287eval "$as_ac_var=no"
27288fi
27289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27290fi
27291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27293if test `eval echo '${'$as_ac_var'}'` = yes; then
27294 cat >>confdefs.h <<_ACEOF
27295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27296_ACEOF
ade35f11 27297 break
ade35f11
VZ
27298fi
27299done
27300
8284b0c5 27301
e6cc62c6
VS
27302echo "$as_me:$LINENO: checking for statfs" >&5
27303echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27304if test "${wx_cv_func_statfs+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27306else
e6cc62c6
VS
27307 cat >conftest.$ac_ext <<_ACEOF
27308#line $LINENO "configure"
27309/* confdefs.h. */
27310_ACEOF
27311cat confdefs.h >>conftest.$ac_ext
27312cat >>conftest.$ac_ext <<_ACEOF
27313/* end confdefs.h. */
4f14bcd8
GD
27314
27315 #if defined(__BSD__)
27316 #include <sys/param.h>
27317 #include <sys/mount.h>
27318 #else
27319 #include <sys/vfs.h>
27320 #endif
e6cc62c6
VS
27321
27322int
27323main ()
27324{
4f14bcd8
GD
27325
27326 long l;
27327 struct statfs fs;
27328 statfs("/", &fs);
27329 l = fs.f_bsize;
27330 l += fs.f_blocks;
27331 l += fs.f_bavail;
e6cc62c6
VS
27332
27333 ;
27334 return 0;
27335}
27336_ACEOF
27337rm -f conftest.$ac_objext
27338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27339 (eval $ac_compile) 2>&5
27340 ac_status=$?
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } &&
27343 { ac_try='test -s conftest.$ac_objext'
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27349
4f14bcd8 27350 wx_cv_func_statfs=yes
e6cc62c6 27351
4f14bcd8 27352else
e6cc62c6
VS
27353 echo "$as_me: failed program was:" >&5
27354sed 's/^/| /' conftest.$ac_ext >&5
27355
27356
4f14bcd8 27357 wx_cv_func_statfs=no
e6cc62c6 27358
8284b0c5 27359
247f5006 27360fi
e6cc62c6 27361rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27362
e6cc62c6
VS
27363fi
27364echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27365echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27366
27367if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27368 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27369 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27370#define HAVE_STATFS 1
e6cc62c6 27371_ACEOF
4f14bcd8
GD
27372
27373else
e6cc62c6
VS
27374 echo "$as_me:$LINENO: checking for statvfs" >&5
27375echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27376if test "${wx_cv_func_statvfs+set}" = set; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27378else
e6cc62c6
VS
27379 cat >conftest.$ac_ext <<_ACEOF
27380#line $LINENO "configure"
27381/* confdefs.h. */
27382_ACEOF
27383cat confdefs.h >>conftest.$ac_ext
27384cat >>conftest.$ac_ext <<_ACEOF
27385/* end confdefs.h. */
af15babd 27386
54ab82b3
VZ
27387 #include <stddef.h>
27388 #include <sys/statvfs.h>
e6cc62c6
VS
27389
27390int
27391main ()
27392{
af15babd 27393
54ab82b3 27394 statvfs("/", NULL);
e6cc62c6
VS
27395
27396 ;
27397 return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext
27401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27402 (eval $ac_compile) 2>&5
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } &&
27406 { ac_try='test -s conftest.$ac_objext'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; }; then
54ab82b3 27412 wx_cv_func_statvfs=yes
af15babd 27413else
e6cc62c6
VS
27414 echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417wx_cv_func_statvfs=no
27418
247f5006 27419fi
e6cc62c6 27420rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27421
e6cc62c6
VS
27422fi
27423echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27424echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27425
4f14bcd8 27426 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27427
27428
27429 ac_ext=cc
54ab82b3 27430ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27434
27435
e6cc62c6
VS
27436 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27437echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27438if test "${wx_cv_type_statvfs_t+set}" = set; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27440else
e6cc62c6
VS
27441 cat >conftest.$ac_ext <<_ACEOF
27442#line $LINENO "configure"
27443/* confdefs.h. */
27444_ACEOF
27445cat confdefs.h >>conftest.$ac_ext
27446cat >>conftest.$ac_ext <<_ACEOF
27447/* end confdefs.h. */
54ab82b3
VZ
27448
27449 #include <sys/statvfs.h>
e6cc62c6
VS
27450
27451int
27452main ()
27453{
54ab82b3
VZ
27454
27455 long l;
27456 statvfs_t fs;
27457 statvfs("/", &fs);
27458 l = fs.f_bsize;
27459 l += fs.f_blocks;
27460 l += fs.f_bavail;
e6cc62c6
VS
27461
27462 ;
27463 return 0;
27464}
27465_ACEOF
27466rm -f conftest.$ac_objext
27467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27468 (eval $ac_compile) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } &&
27472 { ac_try='test -s conftest.$ac_objext'
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
54ab82b3
VZ
27478 wx_cv_type_statvfs_t=statvfs_t
27479else
e6cc62c6
VS
27480 echo "$as_me: failed program was:" >&5
27481sed 's/^/| /' conftest.$ac_ext >&5
27482
27483
27484 cat >conftest.$ac_ext <<_ACEOF
27485#line $LINENO "configure"
27486/* confdefs.h. */
27487_ACEOF
27488cat confdefs.h >>conftest.$ac_ext
27489cat >>conftest.$ac_ext <<_ACEOF
27490/* end confdefs.h. */
54ab82b3
VZ
27491
27492 #include <sys/statvfs.h>
e6cc62c6
VS
27493
27494int
27495main ()
27496{
54ab82b3
VZ
27497
27498 long l;
65d8ef1e 27499 struct statvfs fs;
54ab82b3
VZ
27500 statvfs("/", &fs);
27501 l = fs.f_bsize;
27502 l += fs.f_blocks;
27503 l += fs.f_bavail;
e6cc62c6
VS
27504
27505 ;
27506 return 0;
27507}
27508_ACEOF
27509rm -f conftest.$ac_objext
27510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27511 (eval $ac_compile) 2>&5
27512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -s conftest.$ac_objext'
27516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517 (eval $ac_try) 2>&5
27518 ac_status=$?
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; }; then
54ab82b3
VZ
27521 wx_cv_type_statvfs_t="struct statvfs"
27522else
e6cc62c6
VS
27523 echo "$as_me: failed program was:" >&5
27524sed 's/^/| /' conftest.$ac_ext >&5
27525
27526wx_cv_type_statvfs_t="unknown"
27527
54ab82b3 27528fi
e6cc62c6
VS
27529rm -f conftest.$ac_objext conftest.$ac_ext
27530
27531
54ab82b3 27532fi
e6cc62c6 27533rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27534
e6cc62c6
VS
27535fi
27536echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27537echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27538
27539 ac_ext=c
54ab82b3 27540ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27543ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27544
27545
27546 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27547 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27548#define HAVE_STATVFS 1
e6cc62c6 27549_ACEOF
af15babd 27550
54ab82b3 27551 fi
4f14bcd8 27552 else
54ab82b3 27553 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27554 fi
27555fi
af15babd 27556
54ab82b3 27557if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27558 cat >>confdefs.h <<_ACEOF
54ab82b3 27559#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27560_ACEOF
54ab82b3
VZ
27561
27562else
e6cc62c6
VS
27563 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27564echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27565fi
27566
4f14bcd8 27567if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27568
27569
27570for ac_func in fcntl flock
af15babd 27571do
e6cc62c6
VS
27572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27573echo "$as_me:$LINENO: checking for $ac_func" >&5
27574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27575if eval "test \"\${$as_ac_var+set}\" = set"; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27577else
27578 cat >conftest.$ac_ext <<_ACEOF
27579#line $LINENO "configure"
27580/* confdefs.h. */
27581_ACEOF
27582cat confdefs.h >>conftest.$ac_ext
27583cat >>conftest.$ac_ext <<_ACEOF
27584/* end confdefs.h. */
af15babd 27585/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27586 which can conflict with char $ac_func (); below.
27587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27588 <limits.h> exists even on freestanding compilers. */
27589#ifdef __STDC__
27590# include <limits.h>
27591#else
27592# include <assert.h>
27593#endif
af15babd 27594/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27595#ifdef __cplusplus
27596extern "C"
27597{
27598#endif
af15babd 27599/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27600 builtin and then its argument prototype would still apply. */
27601char $ac_func ();
af15babd
VZ
27602/* The GNU C library defines this for functions which it implements
27603 to always fail with ENOSYS. Some functions are actually named
27604 something starting with __ and the normal name is an alias. */
27605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27606choke me
27607#else
e6cc62c6
VS
27608char (*f) () = $ac_func;
27609#endif
27610#ifdef __cplusplus
27611}
af15babd
VZ
27612#endif
27613
e6cc62c6
VS
27614int
27615main ()
27616{
27617return f != $ac_func;
27618 ;
27619 return 0;
27620}
27621_ACEOF
27622rm -f conftest.$ac_objext conftest$ac_exeext
27623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27624 (eval $ac_link) 2>&5
27625 ac_status=$?
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
27628 { ac_try='test -s conftest$ac_exeext'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27631 ac_status=$?
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; }; then
27634 eval "$as_ac_var=yes"
27635else
27636 echo "$as_me: failed program was:" >&5
27637sed 's/^/| /' conftest.$ac_ext >&5
27638
27639eval "$as_ac_var=no"
27640fi
27641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27642fi
27643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27645if test `eval echo '${'$as_ac_var'}'` = yes; then
27646 cat >>confdefs.h <<_ACEOF
27647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27648_ACEOF
4f14bcd8 27649 break
af15babd
VZ
27650fi
27651done
27652
8284b0c5 27653
4f14bcd8 27654 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27655 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27656echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27657 wxUSE_SNGLINST_CHECKER=no
27658 fi
27659fi
af15babd 27660
e6cc62c6 27661
4f14bcd8 27662for ac_func in timegm
af15babd 27663do
e6cc62c6
VS
27664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27665echo "$as_me:$LINENO: checking for $ac_func" >&5
27666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27667if eval "test \"\${$as_ac_var+set}\" = set"; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27669else
27670 cat >conftest.$ac_ext <<_ACEOF
27671#line $LINENO "configure"
27672/* confdefs.h. */
27673_ACEOF
27674cat confdefs.h >>conftest.$ac_ext
27675cat >>conftest.$ac_ext <<_ACEOF
27676/* end confdefs.h. */
af15babd 27677/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27678 which can conflict with char $ac_func (); below.
27679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27680 <limits.h> exists even on freestanding compilers. */
27681#ifdef __STDC__
27682# include <limits.h>
27683#else
27684# include <assert.h>
27685#endif
af15babd 27686/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27687#ifdef __cplusplus
27688extern "C"
27689{
27690#endif
af15babd 27691/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27692 builtin and then its argument prototype would still apply. */
27693char $ac_func ();
af15babd
VZ
27694/* The GNU C library defines this for functions which it implements
27695 to always fail with ENOSYS. Some functions are actually named
27696 something starting with __ and the normal name is an alias. */
247f5006
VZ
27697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27698choke me
27699#else
e6cc62c6
VS
27700char (*f) () = $ac_func;
27701#endif
27702#ifdef __cplusplus
27703}
247f5006
VZ
27704#endif
27705
e6cc62c6
VS
27706int
27707main ()
27708{
27709return f != $ac_func;
27710 ;
27711 return 0;
27712}
27713_ACEOF
27714rm -f conftest.$ac_objext conftest$ac_exeext
27715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27716 (eval $ac_link) 2>&5
27717 ac_status=$?
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } &&
27720 { ac_try='test -s conftest$ac_exeext'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; }; then
27726 eval "$as_ac_var=yes"
27727else
27728 echo "$as_me: failed program was:" >&5
27729sed 's/^/| /' conftest.$ac_ext >&5
27730
27731eval "$as_ac_var=no"
27732fi
27733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27734fi
27735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27737if test `eval echo '${'$as_ac_var'}'` = yes; then
27738 cat >>confdefs.h <<_ACEOF
27739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27740_ACEOF
703e0a69 27741
af15babd
VZ
27742fi
27743done
27744
8284b0c5 27745
e6cc62c6
VS
27746
27747
4f14bcd8 27748for ac_func in putenv setenv
10f2d63a 27749do
e6cc62c6
VS
27750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27751echo "$as_me:$LINENO: checking for $ac_func" >&5
27752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27753if eval "test \"\${$as_ac_var+set}\" = set"; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755else
27756 cat >conftest.$ac_ext <<_ACEOF
27757#line $LINENO "configure"
27758/* confdefs.h. */
27759_ACEOF
27760cat confdefs.h >>conftest.$ac_ext
27761cat >>conftest.$ac_ext <<_ACEOF
27762/* end confdefs.h. */
af15babd 27763/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27764 which can conflict with char $ac_func (); below.
27765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27766 <limits.h> exists even on freestanding compilers. */
27767#ifdef __STDC__
27768# include <limits.h>
27769#else
27770# include <assert.h>
27771#endif
af15babd 27772/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27773#ifdef __cplusplus
27774extern "C"
27775{
27776#endif
af15babd 27777/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27778 builtin and then its argument prototype would still apply. */
27779char $ac_func ();
af15babd
VZ
27780/* The GNU C library defines this for functions which it implements
27781 to always fail with ENOSYS. Some functions are actually named
27782 something starting with __ and the normal name is an alias. */
27783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27784choke me
27785#else
e6cc62c6
VS
27786char (*f) () = $ac_func;
27787#endif
27788#ifdef __cplusplus
27789}
af15babd
VZ
27790#endif
27791
e6cc62c6
VS
27792int
27793main ()
27794{
27795return f != $ac_func;
27796 ;
27797 return 0;
27798}
27799_ACEOF
27800rm -f conftest.$ac_objext conftest$ac_exeext
27801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802 (eval $ac_link) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 eval "$as_ac_var=yes"
27813else
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
27817eval "$as_ac_var=no"
27818fi
27819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27820fi
27821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27823if test `eval echo '${'$as_ac_var'}'` = yes; then
27824 cat >>confdefs.h <<_ACEOF
27825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27826_ACEOF
4f14bcd8 27827 break
af15babd 27828fi
af15babd
VZ
27829done
27830
8284b0c5 27831
4f14bcd8
GD
27832HAVE_SOME_SLEEP_FUNC=0
27833if test "$USE_BEOS" = 1; then
e6cc62c6 27834 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27835#define HAVE_SLEEP 1
e6cc62c6 27836_ACEOF
af15babd 27837
4f14bcd8 27838 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27839fi
27840
4f14bcd8 27841if test "$USE_DARWIN" = 1; then
e6cc62c6 27842 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27843#define HAVE_USLEEP 1
e6cc62c6 27844_ACEOF
10f2d63a 27845
4f14bcd8 27846 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27847fi
27848
4f14bcd8
GD
27849if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27850 POSIX4_LINK=
e6cc62c6
VS
27851
27852for ac_func in nanosleep
4f14bcd8 27853do
e6cc62c6
VS
27854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27855echo "$as_me:$LINENO: checking for $ac_func" >&5
27856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27857if eval "test \"\${$as_ac_var+set}\" = set"; then
27858 echo $ECHO_N "(cached) $ECHO_C" >&6
27859else
27860 cat >conftest.$ac_ext <<_ACEOF
27861#line $LINENO "configure"
27862/* confdefs.h. */
27863_ACEOF
27864cat confdefs.h >>conftest.$ac_ext
27865cat >>conftest.$ac_ext <<_ACEOF
27866/* end confdefs.h. */
4f14bcd8 27867/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27868 which can conflict with char $ac_func (); below.
27869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27870 <limits.h> exists even on freestanding compilers. */
27871#ifdef __STDC__
27872# include <limits.h>
27873#else
27874# include <assert.h>
27875#endif
10f2d63a 27876/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27877#ifdef __cplusplus
27878extern "C"
27879{
27880#endif
10f2d63a 27881/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27882 builtin and then its argument prototype would still apply. */
27883char $ac_func ();
4f14bcd8
GD
27884/* The GNU C library defines this for functions which it implements
27885 to always fail with ENOSYS. Some functions are actually named
27886 something starting with __ and the normal name is an alias. */
27887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27888choke me
27889#else
e6cc62c6
VS
27890char (*f) () = $ac_func;
27891#endif
27892#ifdef __cplusplus
27893}
4f14bcd8
GD
27894#endif
27895
e6cc62c6
VS
27896int
27897main ()
27898{
27899return f != $ac_func;
27900 ;
27901 return 0;
27902}
27903_ACEOF
27904rm -f conftest.$ac_objext conftest$ac_exeext
27905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27906 (eval $ac_link) 2>&5
27907 ac_status=$?
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); } &&
27910 { ac_try='test -s conftest$ac_exeext'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27913 ac_status=$?
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 eval "$as_ac_var=yes"
27917else
27918 echo "$as_me: failed program was:" >&5
27919sed 's/^/| /' conftest.$ac_ext >&5
27920
27921eval "$as_ac_var=no"
27922fi
27923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27924fi
27925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27927if test `eval echo '${'$as_ac_var'}'` = yes; then
27928 cat >>confdefs.h <<_ACEOF
27929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27930_ACEOF
27931 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27932#define HAVE_NANOSLEEP 1
e6cc62c6 27933_ACEOF
4f14bcd8 27934
10f2d63a 27935else
e6cc62c6
VS
27936
27937 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27938echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27939if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27940 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27941else
e6cc62c6 27942 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27943LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27944cat >conftest.$ac_ext <<_ACEOF
27945#line $LINENO "configure"
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951
10f2d63a 27952/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27953#ifdef __cplusplus
27954extern "C"
27955#endif
10f2d63a 27956/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27957 builtin and then its argument prototype would still apply. */
27958char nanosleep ();
27959int
27960main ()
27961{
27962nanosleep ();
27963 ;
27964 return 0;
27965}
27966_ACEOF
27967rm -f conftest.$ac_objext conftest$ac_exeext
27968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27969 (eval $ac_link) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -s conftest$ac_exeext'
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
27979 ac_cv_lib_posix4_nanosleep=yes
27980else
27981 echo "$as_me: failed program was:" >&5
27982sed 's/^/| /' conftest.$ac_ext >&5
27983
27984ac_cv_lib_posix4_nanosleep=no
27985fi
27986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27987LIBS=$ac_check_lib_save_LIBS
27988fi
27989echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27990echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27991if test $ac_cv_lib_posix4_nanosleep = yes; then
27992
27993 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27994#define HAVE_NANOSLEEP 1
e6cc62c6 27995_ACEOF
4f14bcd8 27996
3d63bc3a 27997 POSIX4_LINK=" -lposix4"
e6cc62c6 27998
10f2d63a 27999else
10f2d63a 28000
e6cc62c6
VS
28001
28002for ac_func in usleep
4f14bcd8 28003do
e6cc62c6
VS
28004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005echo "$as_me:$LINENO: checking for $ac_func" >&5
28006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007if eval "test \"\${$as_ac_var+set}\" = set"; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28009else
28010 cat >conftest.$ac_ext <<_ACEOF
28011#line $LINENO "configure"
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
4f14bcd8 28017/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28018 which can conflict with char $ac_func (); below.
28019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020 <limits.h> exists even on freestanding compilers. */
28021#ifdef __STDC__
28022# include <limits.h>
28023#else
28024# include <assert.h>
28025#endif
4f14bcd8 28026/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28027#ifdef __cplusplus
28028extern "C"
28029{
28030#endif
4f14bcd8 28031/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28032 builtin and then its argument prototype would still apply. */
28033char $ac_func ();
4f14bcd8
GD
28034/* The GNU C library defines this for functions which it implements
28035 to always fail with ENOSYS. Some functions are actually named
28036 something starting with __ and the normal name is an alias. */
28037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28038choke me
28039#else
e6cc62c6
VS
28040char (*f) () = $ac_func;
28041#endif
28042#ifdef __cplusplus
28043}
4f14bcd8
GD
28044#endif
28045
e6cc62c6
VS
28046int
28047main ()
28048{
28049return f != $ac_func;
28050 ;
28051 return 0;
28052}
28053_ACEOF
28054rm -f conftest.$ac_objext conftest$ac_exeext
28055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28056 (eval $ac_link) 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } &&
28060 { ac_try='test -s conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
28066 eval "$as_ac_var=yes"
28067else
28068 echo "$as_me: failed program was:" >&5
28069sed 's/^/| /' conftest.$ac_ext >&5
28070
28071eval "$as_ac_var=no"
28072fi
28073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28074fi
28075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077if test `eval echo '${'$as_ac_var'}'` = yes; then
28078 cat >>confdefs.h <<_ACEOF
28079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28080_ACEOF
28081 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28082#define HAVE_USLEEP 1
e6cc62c6 28083_ACEOF
4f14bcd8 28084
698dcdb6 28085else
e6cc62c6
VS
28086 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28087echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28088
10f2d63a 28089fi
4f14bcd8 28090done
10f2d63a 28091
e6cc62c6
VS
28092
28093
6232543b 28094fi
10f2d63a 28095
e6cc62c6
VS
28096
28097
1e487827 28098fi
4f14bcd8 28099done
703e0a69 28100
10f2d63a
VZ
28101fi
28102
e6cc62c6
VS
28103
28104
4f14bcd8 28105for ac_func in uname gethostname
70846f0a 28106do
e6cc62c6
VS
28107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28108echo "$as_me:$LINENO: checking for $ac_func" >&5
28109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28110if eval "test \"\${$as_ac_var+set}\" = set"; then
28111 echo $ECHO_N "(cached) $ECHO_C" >&6
28112else
28113 cat >conftest.$ac_ext <<_ACEOF
28114#line $LINENO "configure"
28115/* confdefs.h. */
28116_ACEOF
28117cat confdefs.h >>conftest.$ac_ext
28118cat >>conftest.$ac_ext <<_ACEOF
28119/* end confdefs.h. */
70846f0a 28120/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28121 which can conflict with char $ac_func (); below.
28122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28123 <limits.h> exists even on freestanding compilers. */
28124#ifdef __STDC__
28125# include <limits.h>
28126#else
28127# include <assert.h>
28128#endif
70846f0a 28129/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28130#ifdef __cplusplus
28131extern "C"
28132{
28133#endif
70846f0a 28134/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28135 builtin and then its argument prototype would still apply. */
28136char $ac_func ();
70846f0a
VZ
28137/* The GNU C library defines this for functions which it implements
28138 to always fail with ENOSYS. Some functions are actually named
28139 something starting with __ and the normal name is an alias. */
28140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28141choke me
28142#else
e6cc62c6
VS
28143char (*f) () = $ac_func;
28144#endif
28145#ifdef __cplusplus
28146}
70846f0a
VZ
28147#endif
28148
e6cc62c6
VS
28149int
28150main ()
28151{
28152return f != $ac_func;
28153 ;
28154 return 0;
28155}
28156_ACEOF
28157rm -f conftest.$ac_objext conftest$ac_exeext
28158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28159 (eval $ac_link) 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } &&
28163 { ac_try='test -s conftest$ac_exeext'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28166 ac_status=$?
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28169 eval "$as_ac_var=yes"
28170else
28171 echo "$as_me: failed program was:" >&5
28172sed 's/^/| /' conftest.$ac_ext >&5
28173
28174eval "$as_ac_var=no"
28175fi
28176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28177fi
28178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180if test `eval echo '${'$as_ac_var'}'` = yes; then
28181 cat >>confdefs.h <<_ACEOF
28182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28183_ACEOF
4f14bcd8 28184 break
70846f0a
VZ
28185fi
28186done
28187
8284b0c5
MB
28188
28189
e6cc62c6
VS
28190
28191ac_ext=cc
4f14bcd8 28192ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28196
8284b0c5 28197
4f14bcd8
GD
28198
28199for ac_func in strtok_r
10f2d63a 28200do
e6cc62c6
VS
28201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28202echo "$as_me:$LINENO: checking for $ac_func" >&5
28203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28204if eval "test \"\${$as_ac_var+set}\" = set"; then
28205 echo $ECHO_N "(cached) $ECHO_C" >&6
28206else
28207 cat >conftest.$ac_ext <<_ACEOF
28208#line $LINENO "configure"
28209/* confdefs.h. */
28210_ACEOF
28211cat confdefs.h >>conftest.$ac_ext
28212cat >>conftest.$ac_ext <<_ACEOF
28213/* end confdefs.h. */
4f14bcd8 28214/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28215 which can conflict with char $ac_func (); below.
28216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28217 <limits.h> exists even on freestanding compilers. */
28218#ifdef __STDC__
28219# include <limits.h>
28220#else
28221# include <assert.h>
28222#endif
4f14bcd8
GD
28223/* Override any gcc2 internal prototype to avoid an error. */
28224#ifdef __cplusplus
28225extern "C"
e6cc62c6 28226{
4f14bcd8
GD
28227#endif
28228/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28229 builtin and then its argument prototype would still apply. */
28230char $ac_func ();
4f14bcd8
GD
28231/* The GNU C library defines this for functions which it implements
28232 to always fail with ENOSYS. Some functions are actually named
28233 something starting with __ and the normal name is an alias. */
28234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235choke me
28236#else
e6cc62c6
VS
28237char (*f) () = $ac_func;
28238#endif
28239#ifdef __cplusplus
28240}
4f14bcd8
GD
28241#endif
28242
e6cc62c6
VS
28243int
28244main ()
28245{
28246return f != $ac_func;
28247 ;
28248 return 0;
28249}
28250_ACEOF
28251rm -f conftest.$ac_objext conftest$ac_exeext
28252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253 (eval $ac_link) 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); } &&
28257 { ac_try='test -s conftest$ac_exeext'
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 eval "$as_ac_var=yes"
28264else
28265 echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268eval "$as_ac_var=no"
28269fi
28270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28271fi
28272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28274if test `eval echo '${'$as_ac_var'}'` = yes; then
28275 cat >>confdefs.h <<_ACEOF
28276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28277_ACEOF
4f14bcd8 28278
10f2d63a
VZ
28279fi
28280done
28281
8284b0c5 28282
4f14bcd8 28283ac_ext=c
4f14bcd8 28284ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28288
5c6fa7d2 28289
8284b0c5 28290INET_LINK=
e6cc62c6 28291
4f14bcd8
GD
28292for ac_func in inet_addr
28293do
e6cc62c6
VS
28294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28295echo "$as_me:$LINENO: checking for $ac_func" >&5
28296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28297if eval "test \"\${$as_ac_var+set}\" = set"; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299else
28300 cat >conftest.$ac_ext <<_ACEOF
28301#line $LINENO "configure"
28302/* confdefs.h. */
28303_ACEOF
28304cat confdefs.h >>conftest.$ac_ext
28305cat >>conftest.$ac_ext <<_ACEOF
28306/* end confdefs.h. */
4f14bcd8 28307/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28308 which can conflict with char $ac_func (); below.
28309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28310 <limits.h> exists even on freestanding compilers. */
28311#ifdef __STDC__
28312# include <limits.h>
28313#else
28314# include <assert.h>
28315#endif
10f2d63a 28316/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28317#ifdef __cplusplus
28318extern "C"
28319{
28320#endif
10f2d63a 28321/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28322 builtin and then its argument prototype would still apply. */
28323char $ac_func ();
4f14bcd8
GD
28324/* The GNU C library defines this for functions which it implements
28325 to always fail with ENOSYS. Some functions are actually named
28326 something starting with __ and the normal name is an alias. */
28327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28328choke me
28329#else
e6cc62c6
VS
28330char (*f) () = $ac_func;
28331#endif
28332#ifdef __cplusplus
28333}
4f14bcd8
GD
28334#endif
28335
e6cc62c6
VS
28336int
28337main ()
28338{
28339return f != $ac_func;
28340 ;
28341 return 0;
28342}
28343_ACEOF
28344rm -f conftest.$ac_objext conftest$ac_exeext
28345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28346 (eval $ac_link) 2>&5
28347 ac_status=$?
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } &&
28350 { ac_try='test -s conftest$ac_exeext'
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; }; then
28356 eval "$as_ac_var=yes"
28357else
28358 echo "$as_me: failed program was:" >&5
28359sed 's/^/| /' conftest.$ac_ext >&5
28360
28361eval "$as_ac_var=no"
28362fi
28363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28364fi
28365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28367if test `eval echo '${'$as_ac_var'}'` = yes; then
28368 cat >>confdefs.h <<_ACEOF
28369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28370_ACEOF
28371 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28372#define HAVE_INET_ADDR 1
e6cc62c6 28373_ACEOF
10f2d63a
VZ
28374
28375else
e6cc62c6
VS
28376
28377 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28378echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28379if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28381else
e6cc62c6 28382 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28383LIBS="-lnsl $LIBS"
e6cc62c6
VS
28384cat >conftest.$ac_ext <<_ACEOF
28385#line $LINENO "configure"
28386/* confdefs.h. */
28387_ACEOF
28388cat confdefs.h >>conftest.$ac_ext
28389cat >>conftest.$ac_ext <<_ACEOF
28390/* end confdefs.h. */
28391
10f2d63a 28392/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28393#ifdef __cplusplus
28394extern "C"
28395#endif
10f2d63a 28396/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28397 builtin and then its argument prototype would still apply. */
28398char inet_addr ();
28399int
28400main ()
28401{
28402inet_addr ();
28403 ;
28404 return 0;
28405}
28406_ACEOF
28407rm -f conftest.$ac_objext conftest$ac_exeext
28408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28409 (eval $ac_link) 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } &&
28413 { ac_try='test -s conftest$ac_exeext'
28414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415 (eval $ac_try) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); }; }; then
28419 ac_cv_lib_nsl_inet_addr=yes
28420else
28421 echo "$as_me: failed program was:" >&5
28422sed 's/^/| /' conftest.$ac_ext >&5
28423
28424ac_cv_lib_nsl_inet_addr=no
28425fi
28426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28427LIBS=$ac_check_lib_save_LIBS
28428fi
28429echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28430echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28431if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28432 INET_LINK="nsl"
10f2d63a 28433else
e6cc62c6
VS
28434 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28435echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28436if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28437 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28438else
e6cc62c6 28439 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28440LIBS="-lresolv $LIBS"
e6cc62c6
VS
28441cat >conftest.$ac_ext <<_ACEOF
28442#line $LINENO "configure"
28443/* confdefs.h. */
28444_ACEOF
28445cat confdefs.h >>conftest.$ac_ext
28446cat >>conftest.$ac_ext <<_ACEOF
28447/* end confdefs.h. */
28448
5c6fa7d2 28449/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28450#ifdef __cplusplus
28451extern "C"
28452#endif
5c6fa7d2 28453/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28454 builtin and then its argument prototype would still apply. */
28455char inet_addr ();
28456int
28457main ()
28458{
28459inet_addr ();
28460 ;
28461 return 0;
28462}
28463_ACEOF
28464rm -f conftest.$ac_objext conftest$ac_exeext
28465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28466 (eval $ac_link) 2>&5
28467 ac_status=$?
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); } &&
28470 { ac_try='test -s conftest$ac_exeext'
28471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28472 (eval $ac_try) 2>&5
28473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; }; then
28476 ac_cv_lib_resolv_inet_addr=yes
28477else
28478 echo "$as_me: failed program was:" >&5
28479sed 's/^/| /' conftest.$ac_ext >&5
28480
28481ac_cv_lib_resolv_inet_addr=no
28482fi
28483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28484LIBS=$ac_check_lib_save_LIBS
28485fi
28486echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28487echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28488if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28489 INET_LINK="resolv"
698dcdb6 28490else
e6cc62c6
VS
28491 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28492echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28493if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28495else
e6cc62c6 28496 ac_check_lib_save_LIBS=$LIBS
3c011993 28497LIBS="-lsocket $LIBS"
e6cc62c6
VS
28498cat >conftest.$ac_ext <<_ACEOF
28499#line $LINENO "configure"
28500/* confdefs.h. */
28501_ACEOF
28502cat confdefs.h >>conftest.$ac_ext
28503cat >>conftest.$ac_ext <<_ACEOF
28504/* end confdefs.h. */
28505
3c011993 28506/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28507#ifdef __cplusplus
28508extern "C"
28509#endif
3c011993 28510/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28511 builtin and then its argument prototype would still apply. */
28512char inet_addr ();
28513int
28514main ()
28515{
28516inet_addr ();
28517 ;
28518 return 0;
28519}
28520_ACEOF
28521rm -f conftest.$ac_objext conftest$ac_exeext
28522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28523 (eval $ac_link) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } &&
28527 { ac_try='test -s conftest$ac_exeext'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; }; then
28533 ac_cv_lib_socket_inet_addr=yes
28534else
28535 echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538ac_cv_lib_socket_inet_addr=no
28539fi
28540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28541LIBS=$ac_check_lib_save_LIBS
28542fi
28543echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28544echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28545if test $ac_cv_lib_socket_inet_addr = yes; then
28546 INET_LINK="socket"
4f14bcd8 28547
8284b0c5 28548fi
e6cc62c6 28549
698dcdb6 28550
7b4a847f 28551fi
e6cc62c6
VS
28552
28553
a0b9e27f 28554fi
579d8138 28555
e6cc62c6
VS
28556
28557
5c6fa7d2 28558fi
e6cc62c6
VS
28559done
28560
28561
28562
28563for ac_func in inet_aton
28564do
28565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28566echo "$as_me:$LINENO: checking for $ac_func" >&5
28567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28568if eval "test \"\${$as_ac_var+set}\" = set"; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571 cat >conftest.$ac_ext <<_ACEOF
28572#line $LINENO "configure"
28573/* confdefs.h. */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h. */
28578/* System header to define __stub macros and hopefully few prototypes,
28579 which can conflict with char $ac_func (); below.
28580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28581 <limits.h> exists even on freestanding compilers. */
28582#ifdef __STDC__
28583# include <limits.h>
28584#else
28585# include <assert.h>
28586#endif
28587/* Override any gcc2 internal prototype to avoid an error. */
28588#ifdef __cplusplus
28589extern "C"
28590{
28591#endif
28592/* We use char because int might match the return type of a gcc2
28593 builtin and then its argument prototype would still apply. */
28594char $ac_func ();
28595/* The GNU C library defines this for functions which it implements
28596 to always fail with ENOSYS. Some functions are actually named
28597 something starting with __ and the normal name is an alias. */
28598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28599choke me
28600#else
28601char (*f) () = $ac_func;
28602#endif
28603#ifdef __cplusplus
28604}
28605#endif
28606
28607int
28608main ()
28609{
28610return f != $ac_func;
28611 ;
28612 return 0;
28613}
28614_ACEOF
28615rm -f conftest.$ac_objext conftest$ac_exeext
28616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28617 (eval $ac_link) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); } &&
28621 { ac_try='test -s conftest$ac_exeext'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; }; then
28627 eval "$as_ac_var=yes"
28628else
28629 echo "$as_me: failed program was:" >&5
28630sed 's/^/| /' conftest.$ac_ext >&5
28631
28632eval "$as_ac_var=no"
28633fi
28634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28635fi
28636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28638if test `eval echo '${'$as_ac_var'}'` = yes; then
28639 cat >>confdefs.h <<_ACEOF
28640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28641_ACEOF
28642 cat >>confdefs.h <<\_ACEOF
28643#define HAVE_INET_ATON 1
28644_ACEOF
28645
28646else
28647
28648 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28649echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28650echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28651if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28653else
28654 ac_check_lib_save_LIBS=$LIBS
28655LIBS="-l$INET_LINK $LIBS"
28656cat >conftest.$ac_ext <<_ACEOF
28657#line $LINENO "configure"
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
28663
28664/* Override any gcc2 internal prototype to avoid an error. */
28665#ifdef __cplusplus
28666extern "C"
28667#endif
28668/* We use char because int might match the return type of a gcc2
28669 builtin and then its argument prototype would still apply. */
28670char inet_aton ();
28671int
28672main ()
28673{
28674inet_aton ();
28675 ;
28676 return 0;
28677}
28678_ACEOF
28679rm -f conftest.$ac_objext conftest$ac_exeext
28680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28681 (eval $ac_link) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -s conftest$ac_exeext'
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; }; then
28691 eval "$as_ac_Lib=yes"
28692else
28693 echo "$as_me: failed program was:" >&5
28694sed 's/^/| /' conftest.$ac_ext >&5
28695
28696eval "$as_ac_Lib=no"
28697fi
28698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28699LIBS=$ac_check_lib_save_LIBS
28700fi
28701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28702echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28703if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28704 cat >>confdefs.h <<\_ACEOF
28705#define HAVE_INET_ATON 1
28706_ACEOF
52127426 28707
a0b9e27f 28708fi
247f5006 28709
8284b0c5 28710
698dcdb6 28711fi
4f14bcd8
GD
28712done
28713
8284b0c5 28714
e6cc62c6
VS
28715if test "x$INET_LINK" != "x"; then
28716 cat >>confdefs.h <<\_ACEOF
28717#define HAVE_INET_ADDR 1
28718_ACEOF
28719
28720 INET_LINK=" -l$INET_LINK"
28721fi
28722
28723fi
a0b9e27f 28724
a0b9e27f 28725
4f14bcd8 28726
edd891e2
VS
28727EXTRALIBS_ESD=
28728echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28729echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28730if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732else
28733 ac_check_lib_save_LIBS=$LIBS
28734LIBS="-lesd $LIBS"
28735cat >conftest.$ac_ext <<_ACEOF
28736#line $LINENO "configure"
28737/* confdefs.h. */
28738_ACEOF
28739cat confdefs.h >>conftest.$ac_ext
28740cat >>conftest.$ac_ext <<_ACEOF
28741/* end confdefs.h. */
28742
28743/* Override any gcc2 internal prototype to avoid an error. */
28744#ifdef __cplusplus
28745extern "C"
28746#endif
28747/* We use char because int might match the return type of a gcc2
28748 builtin and then its argument prototype would still apply. */
28749char esd_close ();
28750int
28751main ()
28752{
28753esd_close ();
28754 ;
28755 return 0;
28756}
28757_ACEOF
28758rm -f conftest.$ac_objext conftest$ac_exeext
28759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28760 (eval $ac_link) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
28764 { ac_try='test -s conftest$ac_exeext'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; }; then
28770 ac_cv_lib_esd_esd_close=yes
28771else
28772 echo "$as_me: failed program was:" >&5
28773sed 's/^/| /' conftest.$ac_ext >&5
28774
28775ac_cv_lib_esd_esd_close=no
28776fi
28777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28778LIBS=$ac_check_lib_save_LIBS
28779fi
28780echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28781echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28782if test $ac_cv_lib_esd_esd_close = yes; then
28783
28784
28785for ac_header in esd.h
28786do
28787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28788if eval "test \"\${$as_ac_Header+set}\" = set"; then
28789 echo "$as_me:$LINENO: checking for $ac_header" >&5
28790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28791if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793fi
edd891e2
VS
28794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28796else
28797 # Is the header compilable?
edd891e2
VS
28798echo "$as_me:$LINENO: checking $ac_header usability" >&5
28799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28800cat >conftest.$ac_ext <<_ACEOF
28801#line $LINENO "configure"
28802/* confdefs.h. */
28803_ACEOF
28804cat confdefs.h >>conftest.$ac_ext
28805cat >>conftest.$ac_ext <<_ACEOF
28806/* end confdefs.h. */
28807$ac_includes_default
edd891e2 28808#include <$ac_header>
e6cc62c6
VS
28809_ACEOF
28810rm -f conftest.$ac_objext
28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28812 (eval $ac_compile) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); } &&
28816 { ac_try='test -s conftest.$ac_objext'
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
28822 ac_header_compiler=yes
28823else
28824 echo "$as_me: failed program was:" >&5
28825sed 's/^/| /' conftest.$ac_ext >&5
28826
28827ac_header_compiler=no
28828fi
28829rm -f conftest.$ac_objext conftest.$ac_ext
28830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28831echo "${ECHO_T}$ac_header_compiler" >&6
28832
28833# Is the header present?
edd891e2
VS
28834echo "$as_me:$LINENO: checking $ac_header presence" >&5
28835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
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. */
edd891e2 28843#include <$ac_header>
e6cc62c6
VS
28844_ACEOF
28845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28847 ac_status=$?
28848 grep -v '^ *+' conftest.er1 >conftest.err
28849 rm -f conftest.er1
28850 cat conftest.err >&5
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); } >/dev/null; then
28853 if test -s conftest.err; then
28854 ac_cpp_err=$ac_c_preproc_warn_flag
28855 else
28856 ac_cpp_err=
28857 fi
a0b9e27f 28858else
e6cc62c6
VS
28859 ac_cpp_err=yes
28860fi
28861if test -z "$ac_cpp_err"; then
28862 ac_header_preproc=yes
28863else
28864 echo "$as_me: failed program was:" >&5
28865sed 's/^/| /' conftest.$ac_ext >&5
28866
28867 ac_header_preproc=no
28868fi
28869rm -f conftest.err conftest.$ac_ext
28870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28871echo "${ECHO_T}$ac_header_preproc" >&6
28872
28873# So? What about this header?
28874case $ac_header_compiler:$ac_header_preproc in
28875 yes:no )
edd891e2
VS
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28880 (
28881 cat <<\_ASBOX
28882## ------------------------------------ ##
28883## Report this to bug-autoconf@gnu.org. ##
28884## ------------------------------------ ##
28885_ASBOX
28886 ) |
28887 sed "s/^/$as_me: WARNING: /" >&2
28888 ;;
28889 no:yes )
edd891e2
VS
28890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28896 (
28897 cat <<\_ASBOX
28898## ------------------------------------ ##
28899## Report this to bug-autoconf@gnu.org. ##
28900## ------------------------------------ ##
28901_ASBOX
28902 ) |
28903 sed "s/^/$as_me: WARNING: /" >&2
28904 ;;
28905esac
edd891e2
VS
28906echo "$as_me:$LINENO: checking for $ac_header" >&5
28907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28908if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
edd891e2 28911 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28912fi
edd891e2
VS
28913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28915
e6cc62c6 28916fi
edd891e2
VS
28917if test `eval echo '${'$as_ac_Header'}'` = yes; then
28918 cat >>confdefs.h <<_ACEOF
28919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28920_ACEOF
e6cc62c6 28921
edd891e2 28922 EXTRALIBS_ESD="-lesd"
4f14bcd8 28923
a0b9e27f 28924fi
247f5006 28925
edd891e2 28926done
8284b0c5 28927
4f14bcd8 28928
6232543b 28929fi
10f2d63a 28930
703e0a69 28931
8284b0c5 28932
e6cc62c6
VS
28933
28934
28935cat >confcache <<\_ACEOF
4f14bcd8
GD
28936# This file is a shell script that caches the results of configure
28937# tests run on this system so they can be shared between configure
e6cc62c6
VS
28938# scripts and configure runs, see configure's option --config-cache.
28939# It is not useful on other systems. If it contains results you don't
28940# want to keep, you may remove or edit it.
4f14bcd8 28941#
e6cc62c6
VS
28942# config.status only pays attention to the cache file if you give it
28943# the --recheck option to rerun configure.
4f14bcd8 28944#
e6cc62c6
VS
28945# `ac_cv_env_foo' variables (set or unset) will be overridden when
28946# loading this file, other *unset* `ac_cv_foo' will be assigned the
28947# following values.
28948
28949_ACEOF
28950
4f14bcd8
GD
28951# The following way of writing the cache mishandles newlines in values,
28952# but we know of no workaround that is simple, portable, and efficient.
28953# So, don't put newlines in cache variables' values.
28954# Ultrix sh set writes to stderr and can't be redirected directly,
28955# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28956{
28957 (set) 2>&1 |
28958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28959 *ac_space=\ *)
28960 # `set' does not quote correctly, so add quotes (double-quote
28961 # substitution turns \\\\ into \\, and sed turns \\ into \).
28962 sed -n \
28963 "s/'/'\\\\''/g;
28964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28965 ;;
28966 *)
28967 # `set' quotes correctly as required by POSIX, so do not add quotes.
28968 sed -n \
28969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28970 ;;
28971 esac;
28972} |
28973 sed '
28974 t clear
28975 : clear
28976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28977 t end
28978 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28979 : end' >>confcache
28980if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28981 if test -w $cache_file; then
e6cc62c6
VS
28982 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28983 cat confcache >$cache_file
f6bcfd97 28984 else
4f14bcd8 28985 echo "not updating unwritable cache $cache_file"
f6bcfd97 28986 fi
4f14bcd8
GD
28987fi
28988rm -f confcache
f6bcfd97 28989
8284b0c5 28990
009fead0 28991CPP_MT_FLAG=
4f14bcd8
GD
28992if test "$TOOLKIT" != "MSW"; then
28993
e6cc62c6 28994
7274f1c7 28995 THREADS_LINK=
009fead0 28996 THREADS_CFLAGS=
7274f1c7
RL
28997
28998 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28999 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29000 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29001echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29002 wxUSE_THREADS="no"
29003 fi
4f14bcd8 29004 fi
4f14bcd8 29005
7274f1c7 29006 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29007
29008
009fead0
VZ
29009 THREAD_OPTS="-pthread"
29010 case "${host}" in
29011 *-*-solaris2* | *-*-sunos4* )
29012 if test "x$GCC" = "xyes"; then
126be6b4 29013 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29014 else
29015 THREAD_OPTS="-mt $THREAD_OPTS"
29016 fi
29017 ;;
29018 *-*-freebsd*)
29019 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29020 ;;
17234b26
MB
29021 *-*-darwin* | *-*-cygwin* )
29022 THREAD_OPTS=""
4101db81 29023 ;;
8f4a9a10 29024 *-*-aix*)
009fead0
VZ
29025 THREAD_OPTS="pthreads"
29026 ;;
4f5a7f74
VZ
29027 *-hp-hpux* )
29028 if test "x$GCC" != "xyes"; then
29029 THREAD_OPTS=""
29030 fi
89e3b3e4
VZ
29031 ;;
29032
29033 *-*-irix* )
29034 if test "x$GCC" = "xyes"; then
29035 THREAD_OPTS=""
29036 fi
29037 ;;
29038
29039 *-*-*UnixWare*)
29040 if test "x$GCC" != "xyes"; then
29041 THREAD_OPTS="-Ethread"
29042 fi
29043 ;;
009fead0 29044 esac
4f14bcd8 29045
02a1dfba 29046 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29047
009fead0
VZ
29048 THREADS_OK=no
29049 for flag in $THREAD_OPTS; do
29050 case $flag in
29051 none)
e6cc62c6
VS
29052 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29053echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29054 ;;
698dcdb6 29055
009fead0 29056 -*)
e6cc62c6
VS
29057 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29058echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29059 THREADS_CFLAGS="$flag"
29060 ;;
698dcdb6 29061
009fead0 29062 *)
e6cc62c6
VS
29063 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29064echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29065 THREADS_LINK="-l$flag"
29066 ;;
29067 esac
10f2d63a 29068
009fead0
VZ
29069 save_LIBS="$LIBS"
29070 save_CFLAGS="$CFLAGS"
29071 LIBS="$THREADS_LINK $LIBS"
04727afd 29072 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29073
e6cc62c6
VS
29074 cat >conftest.$ac_ext <<_ACEOF
29075#line $LINENO "configure"
29076/* confdefs.h. */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h. */
009fead0 29081#include <pthread.h>
e6cc62c6
VS
29082int
29083main ()
29084{
009fead0 29085pthread_create(0,0,0,0);
e6cc62c6
VS
29086 ;
29087 return 0;
29088}
29089_ACEOF
29090rm -f conftest.$ac_objext conftest$ac_exeext
29091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092 (eval $ac_link) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -s conftest$ac_exeext'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; }; then
009fead0 29102 THREADS_OK=yes
10f2d63a 29103else
e6cc62c6
VS
29104 echo "$as_me: failed program was:" >&5
29105sed 's/^/| /' conftest.$ac_ext >&5
29106
6232543b 29107fi
e6cc62c6 29108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29109
009fead0
VZ
29110 LIBS="$save_LIBS"
29111 CFLAGS="$save_CFLAGS"
d9b9876f 29112
e6cc62c6
VS
29113 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29114echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29115 if test "x$THREADS_OK" = "xyes"; then
29116 break;
29117 fi
d9b9876f 29118
009fead0
VZ
29119 THREADS_LINK=""
29120 THREADS_CFLAGS=""
29121 done
4f14bcd8 29122
009fead0
VZ
29123 if test "x$THREADS_OK" != "xyes"; then
29124 wxUSE_THREADS=no
e6cc62c6
VS
29125 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29126echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29127 else
db82f09e
VZ
29128 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29129 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29130
e6cc62c6
VS
29131 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29132echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29133 flag=no
29134 case "${host}" in
2b5f62a0
VZ
29135 *-aix*)
29136 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29137 flag="-D_THREAD_SAFE"
29138 ;;
29139 *-freebsd*)
009fead0
VZ
29140 flag="-D_THREAD_SAFE"
29141 ;;
06313569
GD
29142 *-hp-hpux* )
29143 flag="-D_REENTRANT"
4f5a7f74
VZ
29144 if test "x$GCC" != "xyes"; then
29145 flag="$flag -D_RWSTD_MULTI_THREAD"
29146 fi
06313569 29147 ;;
009fead0
VZ
29148 *solaris* | alpha*-osf*)
29149 flag="-D_REENTRANT"
29150 ;;
29151 esac
e6cc62c6
VS
29152 echo "$as_me:$LINENO: result: ${flag}" >&5
29153echo "${ECHO_T}${flag}" >&6
009fead0 29154 if test "x$flag" != xno; then
04727afd 29155 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29156 fi
29157
009fead0 29158 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29159 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29160 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29161 fi
29162 fi
4f14bcd8 29163 fi
4f14bcd8 29164
7274f1c7 29165 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29166
29167for ac_func in thr_setconcurrency
4f14bcd8 29168do
e6cc62c6
VS
29169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29170echo "$as_me:$LINENO: checking for $ac_func" >&5
29171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29172if eval "test \"\${$as_ac_var+set}\" = set"; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29174else
29175 cat >conftest.$ac_ext <<_ACEOF
29176#line $LINENO "configure"
29177/* confdefs.h. */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h. */
4f14bcd8 29182/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29183 which can conflict with char $ac_func (); below.
29184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29185 <limits.h> exists even on freestanding compilers. */
29186#ifdef __STDC__
29187# include <limits.h>
29188#else
29189# include <assert.h>
29190#endif
4f14bcd8 29191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29192#ifdef __cplusplus
29193extern "C"
29194{
29195#endif
4f14bcd8 29196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29197 builtin and then its argument prototype would still apply. */
29198char $ac_func ();
4f14bcd8
GD
29199/* The GNU C library defines this for functions which it implements
29200 to always fail with ENOSYS. Some functions are actually named
29201 something starting with __ and the normal name is an alias. */
29202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29203choke me
29204#else
e6cc62c6
VS
29205char (*f) () = $ac_func;
29206#endif
29207#ifdef __cplusplus
29208}
4f14bcd8
GD
29209#endif
29210
e6cc62c6
VS
29211int
29212main ()
29213{
29214return f != $ac_func;
29215 ;
29216 return 0;
29217}
29218_ACEOF
29219rm -f conftest.$ac_objext conftest$ac_exeext
29220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29221 (eval $ac_link) 2>&5
29222 ac_status=$?
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); } &&
29225 { ac_try='test -s conftest$ac_exeext'
29226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227 (eval $ac_try) 2>&5
29228 ac_status=$?
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29231 eval "$as_ac_var=yes"
29232else
29233 echo "$as_me: failed program was:" >&5
29234sed 's/^/| /' conftest.$ac_ext >&5
29235
29236eval "$as_ac_var=no"
29237fi
29238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29239fi
29240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29242if test `eval echo '${'$as_ac_var'}'` = yes; then
29243 cat >>confdefs.h <<_ACEOF
29244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29245_ACEOF
698dcdb6 29246
10f2d63a 29247fi
4f14bcd8 29248done
10f2d63a 29249
8284b0c5 29250
e6cc62c6
VS
29251
29252for ac_header in sched.h
4f14bcd8 29253do
e6cc62c6
VS
29254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255if eval "test \"\${$as_ac_Header+set}\" = set"; then
29256 echo "$as_me:$LINENO: checking for $ac_header" >&5
29257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29258if eval "test \"\${$as_ac_Header+set}\" = set"; then
29259 echo $ECHO_N "(cached) $ECHO_C" >&6
29260fi
29261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29263else
29264 # Is the header compilable?
29265echo "$as_me:$LINENO: checking $ac_header usability" >&5
29266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29267cat >conftest.$ac_ext <<_ACEOF
29268#line $LINENO "configure"
29269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
29274$ac_includes_default
29275#include <$ac_header>
29276_ACEOF
29277rm -f conftest.$ac_objext
29278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29279 (eval $ac_compile) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } &&
29283 { ac_try='test -s conftest.$ac_objext'
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; }; then
29289 ac_header_compiler=yes
29290else
29291 echo "$as_me: failed program was:" >&5
29292sed 's/^/| /' conftest.$ac_ext >&5
29293
29294ac_header_compiler=no
29295fi
29296rm -f conftest.$ac_objext conftest.$ac_ext
29297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29298echo "${ECHO_T}$ac_header_compiler" >&6
29299
29300# Is the header present?
29301echo "$as_me:$LINENO: checking $ac_header presence" >&5
29302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29303cat >conftest.$ac_ext <<_ACEOF
29304#line $LINENO "configure"
29305/* confdefs.h. */
29306_ACEOF
29307cat confdefs.h >>conftest.$ac_ext
29308cat >>conftest.$ac_ext <<_ACEOF
29309/* end confdefs.h. */
29310#include <$ac_header>
29311_ACEOF
29312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29314 ac_status=$?
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } >/dev/null; then
29320 if test -s conftest.err; then
29321 ac_cpp_err=$ac_c_preproc_warn_flag
29322 else
29323 ac_cpp_err=
29324 fi
29325else
29326 ac_cpp_err=yes
29327fi
29328if test -z "$ac_cpp_err"; then
29329 ac_header_preproc=yes
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
29334 ac_header_preproc=no
29335fi
29336rm -f conftest.err conftest.$ac_ext
29337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29338echo "${ECHO_T}$ac_header_preproc" >&6
29339
29340# So? What about this header?
29341case $ac_header_compiler:$ac_header_preproc in
29342 yes:no )
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29347 (
29348 cat <<\_ASBOX
29349## ------------------------------------ ##
29350## Report this to bug-autoconf@gnu.org. ##
29351## ------------------------------------ ##
29352_ASBOX
29353 ) |
29354 sed "s/^/$as_me: WARNING: /" >&2
29355 ;;
29356 no:yes )
29357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29363 (
29364 cat <<\_ASBOX
29365## ------------------------------------ ##
29366## Report this to bug-autoconf@gnu.org. ##
29367## ------------------------------------ ##
29368_ASBOX
29369 ) |
29370 sed "s/^/$as_me: WARNING: /" >&2
29371 ;;
29372esac
29373echo "$as_me:$LINENO: checking for $ac_header" >&5
29374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29375if eval "test \"\${$as_ac_Header+set}\" = set"; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29377else
29378 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29379fi
e6cc62c6
VS
29380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29382
10f2d63a 29383fi
e6cc62c6
VS
29384if test `eval echo '${'$as_ac_Header'}'` = yes; then
29385 cat >>confdefs.h <<_ACEOF
29386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29387_ACEOF
29388
f6bcfd97 29389fi
e6cc62c6 29390
4f14bcd8 29391done
f6bcfd97 29392
009fead0 29393 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29394 echo "$as_me:$LINENO: checking for sched_yield" >&5
29395echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29396if test "${ac_cv_func_sched_yield+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399 cat >conftest.$ac_ext <<_ACEOF
29400#line $LINENO "configure"
29401/* confdefs.h. */
29402_ACEOF
29403cat confdefs.h >>conftest.$ac_ext
29404cat >>conftest.$ac_ext <<_ACEOF
29405/* end confdefs.h. */
009fead0 29406/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29407 which can conflict with char sched_yield (); below.
29408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29409 <limits.h> exists even on freestanding compilers. */
29410#ifdef __STDC__
29411# include <limits.h>
29412#else
29413# include <assert.h>
29414#endif
4f14bcd8 29415/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29416#ifdef __cplusplus
29417extern "C"
29418{
29419#endif
4f14bcd8 29420/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29421 builtin and then its argument prototype would still apply. */
29422char sched_yield ();
009fead0
VZ
29423/* The GNU C library defines this for functions which it implements
29424 to always fail with ENOSYS. Some functions are actually named
29425 something starting with __ and the normal name is an alias. */
29426#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29427choke me
29428#else
e6cc62c6
VS
29429char (*f) () = sched_yield;
29430#endif
29431#ifdef __cplusplus
29432}
009fead0
VZ
29433#endif
29434
e6cc62c6
VS
29435int
29436main ()
29437{
29438return f != sched_yield;
29439 ;
29440 return 0;
29441}
29442_ACEOF
29443rm -f conftest.$ac_objext conftest$ac_exeext
29444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29445 (eval $ac_link) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } &&
29449 { ac_try='test -s conftest$ac_exeext'
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
29455 ac_cv_func_sched_yield=yes
29456else
29457 echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
29460ac_cv_func_sched_yield=no
29461fi
29462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29463fi
29464echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29465echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29466if test $ac_cv_func_sched_yield = yes; then
29467 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29468#define HAVE_SCHED_YIELD 1
e6cc62c6 29469_ACEOF
10f2d63a 29470
4f14bcd8 29471else
009fead0 29472
e6cc62c6
VS
29473 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29474echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29475if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29476 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29477else
e6cc62c6 29478 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29479LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29480cat >conftest.$ac_ext <<_ACEOF
29481#line $LINENO "configure"
29482/* confdefs.h. */
29483_ACEOF
29484cat confdefs.h >>conftest.$ac_ext
29485cat >>conftest.$ac_ext <<_ACEOF
29486/* end confdefs.h. */
29487
4f14bcd8 29488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29489#ifdef __cplusplus
29490extern "C"
29491#endif
4f14bcd8 29492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29493 builtin and then its argument prototype would still apply. */
29494char sched_yield ();
29495int
29496main ()
29497{
29498sched_yield ();
29499 ;
29500 return 0;
29501}
29502_ACEOF
29503rm -f conftest.$ac_objext conftest$ac_exeext
29504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29505 (eval $ac_link) 2>&5
29506 ac_status=$?
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } &&
29509 { ac_try='test -s conftest$ac_exeext'
29510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511 (eval $ac_try) 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; }; then
29515 ac_cv_lib_posix4_sched_yield=yes
29516else
29517 echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520ac_cv_lib_posix4_sched_yield=no
29521fi
29522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29523LIBS=$ac_check_lib_save_LIBS
29524fi
29525echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29526echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29527if test $ac_cv_lib_posix4_sched_yield = yes; then
29528 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29529#define HAVE_SCHED_YIELD 1
e6cc62c6 29530_ACEOF
3d63bc3a 29531 POSIX4_LINK=" -lposix4"
4f14bcd8 29532else
e6cc62c6
VS
29533 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29534echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29535
54276ccf
VZ
29536fi
29537
e6cc62c6
VS
29538
29539
4f14bcd8 29540fi
698dcdb6 29541
009fead0 29542 fi
10f2d63a 29543
7274f1c7 29544 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29545 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29546echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29547if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550 cat >conftest.$ac_ext <<_ACEOF
29551#line $LINENO "configure"
29552/* confdefs.h. */
29553_ACEOF
29554cat confdefs.h >>conftest.$ac_ext
29555cat >>conftest.$ac_ext <<_ACEOF
29556/* end confdefs.h. */
009fead0 29557/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29558 which can conflict with char pthread_attr_getschedpolicy (); below.
29559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29560 <limits.h> exists even on freestanding compilers. */
29561#ifdef __STDC__
29562# include <limits.h>
29563#else
29564# include <assert.h>
29565#endif
4f14bcd8 29566/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29567#ifdef __cplusplus
29568extern "C"
29569{
29570#endif
4f14bcd8 29571/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29572 builtin and then its argument prototype would still apply. */
29573char pthread_attr_getschedpolicy ();
009fead0
VZ
29574/* The GNU C library defines this for functions which it implements
29575 to always fail with ENOSYS. Some functions are actually named
29576 something starting with __ and the normal name is an alias. */
29577#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29578choke me
29579#else
e6cc62c6
VS
29580char (*f) () = pthread_attr_getschedpolicy;
29581#endif
29582#ifdef __cplusplus
29583}
009fead0
VZ
29584#endif
29585
e6cc62c6
VS
29586int
29587main ()
29588{
29589return f != pthread_attr_getschedpolicy;
29590 ;
29591 return 0;
29592}
29593_ACEOF
29594rm -f conftest.$ac_objext conftest$ac_exeext
29595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29596 (eval $ac_link) 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } &&
29600 { ac_try='test -s conftest$ac_exeext'
29601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29602 (eval $ac_try) 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; }; then
29606 ac_cv_func_pthread_attr_getschedpolicy=yes
29607else
29608 echo "$as_me: failed program was:" >&5
29609sed 's/^/| /' conftest.$ac_ext >&5
29610
29611ac_cv_func_pthread_attr_getschedpolicy=no
29612fi
29613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29614fi
29615echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29616echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29617if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29618 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29619echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29620if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622else
29623 cat >conftest.$ac_ext <<_ACEOF
29624#line $LINENO "configure"
29625/* confdefs.h. */
29626_ACEOF
29627cat confdefs.h >>conftest.$ac_ext
29628cat >>conftest.$ac_ext <<_ACEOF
29629/* end confdefs.h. */
a0b9e27f 29630/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29631 which can conflict with char pthread_attr_setschedparam (); below.
29632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29633 <limits.h> exists even on freestanding compilers. */
29634#ifdef __STDC__
29635# include <limits.h>
29636#else
29637# include <assert.h>
29638#endif
422107f9 29639/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29640#ifdef __cplusplus
29641extern "C"
29642{
29643#endif
422107f9 29644/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29645 builtin and then its argument prototype would still apply. */
29646char pthread_attr_setschedparam ();
009fead0
VZ
29647/* The GNU C library defines this for functions which it implements
29648 to always fail with ENOSYS. Some functions are actually named
29649 something starting with __ and the normal name is an alias. */
29650#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29651choke me
29652#else
e6cc62c6
VS
29653char (*f) () = pthread_attr_setschedparam;
29654#endif
29655#ifdef __cplusplus
29656}
009fead0
VZ
29657#endif
29658
e6cc62c6
VS
29659int
29660main ()
29661{
29662return f != pthread_attr_setschedparam;
29663 ;
29664 return 0;
29665}
29666_ACEOF
29667rm -f conftest.$ac_objext conftest$ac_exeext
29668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29669 (eval $ac_link) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); } &&
29673 { ac_try='test -s conftest$ac_exeext'
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 ac_cv_func_pthread_attr_setschedparam=yes
29680else
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684ac_cv_func_pthread_attr_setschedparam=no
29685fi
29686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29687fi
29688echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29689echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29690if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29691 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29692echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29693if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29694 echo $ECHO_N "(cached) $ECHO_C" >&6
29695else
29696 cat >conftest.$ac_ext <<_ACEOF
29697#line $LINENO "configure"
29698/* confdefs.h. */
29699_ACEOF
29700cat confdefs.h >>conftest.$ac_ext
29701cat >>conftest.$ac_ext <<_ACEOF
29702/* end confdefs.h. */
ef33c576 29703/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29704 which can conflict with char sched_get_priority_max (); below.
29705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29706 <limits.h> exists even on freestanding compilers. */
29707#ifdef __STDC__
29708# include <limits.h>
29709#else
29710# include <assert.h>
29711#endif
4f14bcd8 29712/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29713#ifdef __cplusplus
29714extern "C"
29715{
29716#endif
4f14bcd8 29717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29718 builtin and then its argument prototype would still apply. */
29719char sched_get_priority_max ();
009fead0
VZ
29720/* The GNU C library defines this for functions which it implements
29721 to always fail with ENOSYS. Some functions are actually named
29722 something starting with __ and the normal name is an alias. */
29723#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29724choke me
29725#else
e6cc62c6
VS
29726char (*f) () = sched_get_priority_max;
29727#endif
29728#ifdef __cplusplus
29729}
009fead0
VZ
29730#endif
29731
e6cc62c6
VS
29732int
29733main ()
29734{
29735return f != sched_get_priority_max;
29736 ;
29737 return 0;
29738}
29739_ACEOF
29740rm -f conftest.$ac_objext conftest$ac_exeext
29741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29742 (eval $ac_link) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); } &&
29746 { ac_try='test -s conftest$ac_exeext'
29747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748 (eval $ac_try) 2>&5
29749 ac_status=$?
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; }; then
29752 ac_cv_func_sched_get_priority_max=yes
29753else
29754 echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
29757ac_cv_func_sched_get_priority_max=no
29758fi
29759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29760fi
29761echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29762echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29763if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29764 HAVE_PRIOR_FUNCS=1
29765else
e6cc62c6
VS
29766 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29767echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29768if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29769 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29770else
e6cc62c6 29771 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29772LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29773cat >conftest.$ac_ext <<_ACEOF
29774#line $LINENO "configure"
29775/* confdefs.h. */
29776_ACEOF
29777cat confdefs.h >>conftest.$ac_ext
29778cat >>conftest.$ac_ext <<_ACEOF
29779/* end confdefs.h. */
29780
422107f9 29781/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29782#ifdef __cplusplus
29783extern "C"
29784#endif
422107f9 29785/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29786 builtin and then its argument prototype would still apply. */
29787char sched_get_priority_max ();
29788int
29789main ()
29790{
29791sched_get_priority_max ();
29792 ;
29793 return 0;
29794}
29795_ACEOF
29796rm -f conftest.$ac_objext conftest$ac_exeext
29797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29798 (eval $ac_link) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
29802 { ac_try='test -s conftest$ac_exeext'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808 ac_cv_lib_posix4_sched_get_priority_max=yes
29809else
29810 echo "$as_me: failed program was:" >&5
29811sed 's/^/| /' conftest.$ac_ext >&5
29812
29813ac_cv_lib_posix4_sched_get_priority_max=no
29814fi
29815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29816LIBS=$ac_check_lib_save_LIBS
29817fi
29818echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29819echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29820if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29821
7274f1c7
RL
29822 HAVE_PRIOR_FUNCS=1
29823 POSIX4_LINK=" -lposix4"
e6cc62c6 29824
4f14bcd8 29825fi
463abc64 29826
e6cc62c6 29827
328a083c 29828fi
463abc64 29829
e6cc62c6 29830
7b4a847f 29831fi
579d8138 29832
e6cc62c6 29833
5c6fa7d2 29834fi
52127426 29835
8284b0c5 29836
7274f1c7 29837 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29838 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29839#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29840_ACEOF
463abc64 29841
7274f1c7 29842 else
e6cc62c6
VS
29843 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29844echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29845 fi
463abc64 29846
e6cc62c6
VS
29847 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29848echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29849if test "${ac_cv_func_pthread_cancel+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29851else
29852 cat >conftest.$ac_ext <<_ACEOF
29853#line $LINENO "configure"
29854/* confdefs.h. */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h. */
009fead0 29859/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29860 which can conflict with char pthread_cancel (); below.
29861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29862 <limits.h> exists even on freestanding compilers. */
29863#ifdef __STDC__
29864# include <limits.h>
29865#else
29866# include <assert.h>
29867#endif
422107f9 29868/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29869#ifdef __cplusplus
29870extern "C"
29871{
29872#endif
422107f9 29873/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29874 builtin and then its argument prototype would still apply. */
29875char pthread_cancel ();
009fead0
VZ
29876/* The GNU C library defines this for functions which it implements
29877 to always fail with ENOSYS. Some functions are actually named
29878 something starting with __ and the normal name is an alias. */
29879#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29880choke me
29881#else
e6cc62c6
VS
29882char (*f) () = pthread_cancel;
29883#endif
29884#ifdef __cplusplus
29885}
009fead0
VZ
29886#endif
29887
e6cc62c6
VS
29888int
29889main ()
29890{
29891return f != pthread_cancel;
29892 ;
29893 return 0;
29894}
29895_ACEOF
29896rm -f conftest.$ac_objext conftest$ac_exeext
29897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29898 (eval $ac_link) 2>&5
29899 ac_status=$?
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); } &&
29902 { ac_try='test -s conftest$ac_exeext'
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_cv_func_pthread_cancel=yes
29909else
29910 echo "$as_me: failed program was:" >&5
29911sed 's/^/| /' conftest.$ac_ext >&5
29912
29913ac_cv_func_pthread_cancel=no
29914fi
29915rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29916fi
29917echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29918echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29919if test $ac_cv_func_pthread_cancel = yes; then
29920 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29921#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29922_ACEOF
4f14bcd8 29923
698dcdb6 29924else
e6cc62c6
VS
29925 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29926echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29927fi
29928
5c6fa7d2 29929
e6cc62c6
VS
29930 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29931echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29932if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29934else
e6cc62c6
VS
29935
29936 cat >conftest.$ac_ext <<_ACEOF
29937#line $LINENO "configure"
29938/* confdefs.h. */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h. */
4f14bcd8 29943#include <pthread.h>
e6cc62c6
VS
29944int
29945main ()
29946{
4f14bcd8 29947
7274f1c7
RL
29948 pthread_cleanup_push(NULL, NULL);
29949 pthread_cleanup_pop(0);
e6cc62c6
VS
29950
29951 ;
29952 return 0;
29953}
29954_ACEOF
29955rm -f conftest.$ac_objext
29956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29957 (eval $ac_compile) 2>&5
29958 ac_status=$?
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); } &&
29961 { ac_try='test -s conftest.$ac_objext'
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; }; then
29967
7274f1c7 29968 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29969
4f14bcd8 29970else
e6cc62c6
VS
29971 echo "$as_me: failed program was:" >&5
29972sed 's/^/| /' conftest.$ac_ext >&5
29973
29974
7274f1c7 29975 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29976
247f5006 29977fi
e6cc62c6 29978rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29979
e6cc62c6
VS
29980fi
29981echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29982echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29983
7274f1c7 29984 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29985 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29986#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29987_ACEOF
c7a2bf27 29988
7274f1c7 29989 fi
4f14bcd8 29990
e6cc62c6
VS
29991
29992 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29993echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29994if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29996else
e6cc62c6
VS
29997
29998 cat >conftest.$ac_ext <<_ACEOF
29999#line $LINENO "configure"
30000/* confdefs.h. */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h. */
4f14bcd8 30005#include <pthread.h>
e6cc62c6
VS
30006int
30007main ()
30008{
4f14bcd8 30009
7274f1c7
RL
30010 pthread_mutexattr_t attr;
30011 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30012
30013 ;
30014 return 0;
30015}
30016_ACEOF
30017rm -f conftest.$ac_objext
30018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30019 (eval $ac_compile) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } &&
30023 { ac_try='test -s conftest.$ac_objext'
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029
7274f1c7 30030 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30031
3fed1840 30032else
e6cc62c6
VS
30033 echo "$as_me: failed program was:" >&5
30034sed 's/^/| /' conftest.$ac_ext >&5
30035
30036
7274f1c7 30037 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30038
30039
247f5006 30040fi
e6cc62c6 30041rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30042
e6cc62c6
VS
30043fi
30044echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30045echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30046
7274f1c7 30047 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30048 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30049#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30050_ACEOF
4f14bcd8 30051
7274f1c7 30052 else
e6cc62c6
VS
30053 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30054echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30055if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
30057else
30058
30059 cat >conftest.$ac_ext <<_ACEOF
30060#line $LINENO "configure"
30061/* confdefs.h. */
30062_ACEOF
30063cat confdefs.h >>conftest.$ac_ext
30064cat >>conftest.$ac_ext <<_ACEOF
30065/* end confdefs.h. */
4f14bcd8 30066#include <pthread.h>
e6cc62c6
VS
30067int
30068main ()
30069{
4f14bcd8 30070
7274f1c7 30071 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30072
30073 ;
30074 return 0;
30075}
30076_ACEOF
30077rm -f conftest.$ac_objext
30078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30079 (eval $ac_compile) 2>&5
30080 ac_status=$?
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082 (exit $ac_status); } &&
30083 { ac_try='test -s conftest.$ac_objext'
30084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30085 (eval $ac_try) 2>&5
30086 ac_status=$?
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); }; }; then
30089
7274f1c7 30090 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30091
698dcdb6 30092else
e6cc62c6
VS
30093 echo "$as_me: failed program was:" >&5
30094sed 's/^/| /' conftest.$ac_ext >&5
30095
30096
7274f1c7 30097 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30098
30099
247f5006 30100fi
e6cc62c6 30101rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30102
e6cc62c6
VS
30103fi
30104echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30105echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30106 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30107 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30108#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30109_ACEOF
3fed1840 30110
7274f1c7 30111 else
e6cc62c6
VS
30112 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30113echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30114 fi
30115 fi
7274f1c7 30116 fi
3fed1840 30117
a0b9e27f
MB
30118else
30119 if test "$wxUSE_THREADS" = "yes" ; then
30120 case "${host}" in
30121 *-*-mingw32* )
e6cc62c6
VS
30122 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30123echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30124if test "${wx_cv_cflags_mthread+set}" = set; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30126else
e6cc62c6 30127
ca8e52b3
VZ
30128 CFLAGS_OLD="$CFLAGS"
30129 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30130 cat >conftest.$ac_ext <<_ACEOF
30131#line $LINENO "configure"
30132/* confdefs.h. */
30133_ACEOF
30134cat confdefs.h >>conftest.$ac_ext
30135cat >>conftest.$ac_ext <<_ACEOF
30136/* end confdefs.h. */
30137
30138int
30139main ()
30140{
ca8e52b3 30141
e6cc62c6
VS
30142 ;
30143 return 0;
30144}
30145_ACEOF
30146rm -f conftest.$ac_objext
30147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30148 (eval $ac_compile) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
30152 { ac_try='test -s conftest.$ac_objext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
ca8e52b3
VZ
30158 wx_cv_cflags_mthread=yes
30159else
e6cc62c6
VS
30160 echo "$as_me: failed program was:" >&5
30161sed 's/^/| /' conftest.$ac_ext >&5
30162
30163wx_cv_cflags_mthread=no
30164
ca8e52b3 30165fi
e6cc62c6
VS
30166rm -f conftest.$ac_objext conftest.$ac_ext
30167
ca8e52b3 30168
e6cc62c6
VS
30169fi
30170echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30171echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30172
30173 if test "$wx_cv_cflags_mthread" = "yes"; then
30174 CXXFLAGS="$CXXFLAGS -mthreads"
30175 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30176 LDFLAGS="$LDFLAGS -mthreads"
30177 else
30178 CFLAGS="$CFLAGS_OLD"
30179 fi
a0b9e27f
MB
30180 ;;
30181 esac
30182 fi
4f14bcd8
GD
30183fi
30184
30185if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30186 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30187#define wxUSE_THREADS 1
e6cc62c6 30188_ACEOF
7b6058cd 30189
8284b0c5 30190
4f14bcd8 30191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30192else
4f14bcd8 30193 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30194 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30195echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30196 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30197 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30198 echo "$as_me:$LINENO: result: yes" >&5
30199echo "${ECHO_T}yes" >&6
4f14bcd8 30200 else
e6cc62c6
VS
30201 echo "$as_me:$LINENO: result: no" >&5
30202echo "${ECHO_T}no" >&6
4f14bcd8
GD
30203 fi
30204 fi
30205fi
30206
30207if test "$WXGTK20" = 1 ; then
e6cc62c6 30208 cat >>confdefs.h <<_ACEOF
4f14bcd8 30209#define __WXGTK20__ $WXGTK20
e6cc62c6 30210_ACEOF
4f14bcd8
GD
30211
30212 WXGTK12=1
10f2d63a 30213fi
4f14bcd8
GD
30214
30215if test "$WXGTK12" = 1 ; then
e6cc62c6 30216 cat >>confdefs.h <<_ACEOF
4f14bcd8 30217#define __WXGTK12__ $WXGTK12
e6cc62c6 30218_ACEOF
4f14bcd8 30219
10f2d63a 30220fi
698dcdb6 30221
4f14bcd8 30222if test "$WXGTK127" = 1 ; then
e6cc62c6 30223 cat >>confdefs.h <<_ACEOF
4f14bcd8 30224#define __WXGTK127__ $WXGTK127
e6cc62c6 30225_ACEOF
4f14bcd8 30226
698dcdb6 30227fi
10f2d63a 30228
4f14bcd8
GD
30229WXDEBUG=
30230
30231if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30232 WXDEBUG="-g"
30233 wxUSE_OPTIMISE=no
698dcdb6 30234fi
4f14bcd8
GD
30235
30236if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30237 wxUSE_DEBUG_INFO=yes
30238 WXDEBUG="-ggdb"
10f2d63a
VZ
30239fi
30240
4f14bcd8 30241if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30242 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30243#define WXDEBUG 1
e6cc62c6 30244_ACEOF
4f14bcd8
GD
30245
30246 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30247else
4f14bcd8
GD
30248 if test "$wxUSE_GTK" = 1 ; then
30249 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30250 fi
30251fi
30252
30253if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30254 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30255#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30256_ACEOF
4f14bcd8 30257
e6cc62c6 30258 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30259#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30260_ACEOF
4f14bcd8 30261
e6cc62c6 30262 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30263#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30264_ACEOF
4f14bcd8
GD
30265
30266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30267fi
30268
30269if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30270 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30271fi
30272
30273PROFILE=
30274if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30275 PROFILE=" -pg"
10f2d63a
VZ
30276fi
30277
009fead0
VZ
30278CODE_GEN_FLAGS=
30279CODE_GEN_FLAGS_CXX=
88e30f2b 30280if test "$GCC" = "yes" ; then
4f14bcd8
GD
30281 if test "$wxUSE_NO_RTTI" = "yes" ; then
30282 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30283 fi
4f14bcd8
GD
30284 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30285 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30286 fi
30287 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30288 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30289 fi
1d1b75ac 30290
2b5f62a0 30291 case "${host}" in
1d1b75ac
VZ
30292 powerpc*-*-aix* )
30293 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30294 ;;
2b5f62a0
VZ
30295 *-hppa* )
30296 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30297 ;;
1d1b75ac 30298 esac
4f14bcd8
GD
30299fi
30300
af7b5345 30301OPTIMISE=
4f14bcd8 30302if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30303 if test "$GCC" = yes ; then
30304 OPTIMISE="-O0"
30305 fi
4f14bcd8
GD
30306else
30307 if test "$GCC" = yes ; then
30308 OPTIMISE="-O2"
af7b5345
VZ
30309
30310 case "${host}" in
4f14bcd8
GD
30311 i586-*-*|i686-*-* )
30312 OPTIMISE="${OPTIMISE} "
30313 ;;
30314 esac
30315 else
30316 OPTIMISE="-O"
30317 fi
30318fi
30319
8d90d2f2 30320
4f14bcd8 30321if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 30322 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30323#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 30324_ACEOF
4f14bcd8 30325
8284b0c5 30326
4f14bcd8
GD
30327 WXWIN_COMPATIBILITY_2_2="yes"
30328fi
30329
65d8ef1e 30330if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30331 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30332#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30333_ACEOF
4f14bcd8 30334
8d90d2f2
VZ
30335
30336 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30337fi
30338
65d8ef1e 30339if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30340 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30341#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30342_ACEOF
65d8ef1e
VS
30343
30344fi
30345
8284b0c5 30346
10f2d63a 30347if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30348 cat >>confdefs.h <<\_ACEOF
10f2d63a 30349#define wxUSE_GUI 1
e6cc62c6 30350_ACEOF
10f2d63a 30351
8284b0c5 30352
10f2d63a 30353 else
e6cc62c6 30354 cat >>confdefs.h <<\_ACEOF
10f2d63a 30355#define wxUSE_NOGUI 1
e6cc62c6 30356_ACEOF
10f2d63a
VZ
30357
30358fi
30359
8284b0c5 30360
10f2d63a 30361if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30362 cat >>confdefs.h <<\_ACEOF
10f2d63a 30363#define wxUSE_UNIX 1
e6cc62c6 30364_ACEOF
10f2d63a
VZ
30365
30366fi
30367
8284b0c5 30368
df5168c4
MB
30369if test "$wxUSE_STL" = "yes"; then
30370 cat >>confdefs.h <<\_ACEOF
30371#define wxUSE_STL 1
30372_ACEOF
30373
30374fi
30375
10f2d63a 30376if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30377 cat >>confdefs.h <<\_ACEOF
10f2d63a 30378#define wxUSE_APPLE_IEEE 1
e6cc62c6 30379_ACEOF
10f2d63a
VZ
30380
30381fi
30382
1e6feb95 30383if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30384 cat >>confdefs.h <<\_ACEOF
1e6feb95 30385#define wxUSE_TIMER 1
e6cc62c6 30386_ACEOF
1e6feb95
VZ
30387
30388fi
30389
10f2d63a 30390if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30391 cat >>confdefs.h <<\_ACEOF
10f2d63a 30392#define wxUSE_WAVE 1
e6cc62c6 30393_ACEOF
10f2d63a
VZ
30394
30395fi
30396
1e6feb95 30397if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30398 cat >>confdefs.h <<\_ACEOF
1e6feb95 30399#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30400_ACEOF
1e6feb95
VZ
30401
30402fi
30403
30404if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30405 cat >>confdefs.h <<\_ACEOF
1e6feb95 30406#define wxUSE_STOPWATCH 1
e6cc62c6 30407_ACEOF
1e6feb95
VZ
30408
30409fi
30410
30411if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30412 cat >>confdefs.h <<\_ACEOF
1e6feb95 30413#define wxUSE_DATETIME 1
e6cc62c6 30414_ACEOF
1e6feb95
VZ
30415
30416fi
30417
10f2d63a 30418if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30419 cat >>confdefs.h <<\_ACEOF
10f2d63a 30420#define wxUSE_FILE 1
e6cc62c6 30421_ACEOF
10f2d63a
VZ
30422
30423fi
30424
1e6feb95 30425if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30426 cat >>confdefs.h <<\_ACEOF
1e6feb95 30427#define wxUSE_FFILE 1
e6cc62c6 30428_ACEOF
1e6feb95
VZ
30429
30430fi
30431
24528b0c 30432if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30433 cat >>confdefs.h <<\_ACEOF
24528b0c 30434#define wxUSE_FILESYSTEM 1
e6cc62c6 30435_ACEOF
24528b0c
VS
30436
30437fi
30438
10f2d63a 30439if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30440 cat >>confdefs.h <<\_ACEOF
10f2d63a 30441#define wxUSE_FS_ZIP 1
e6cc62c6 30442_ACEOF
10f2d63a
VZ
30443
30444fi
30445
30446if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30447 cat >>confdefs.h <<\_ACEOF
10f2d63a 30448#define wxUSE_ZIPSTREAM 1
e6cc62c6 30449_ACEOF
10f2d63a
VZ
30450
30451fi
30452
eb4efbdc 30453if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30454 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30455#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30456_ACEOF
eb4efbdc
VZ
30457
30458fi
30459
4f3c5f06 30460if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30461 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30462#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30463_ACEOF
4f3c5f06
VZ
30464
30465fi
30466
10f2d63a 30467if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30468 cat >>confdefs.h <<\_ACEOF
10f2d63a 30469#define wxUSE_BUSYINFO 1
e6cc62c6 30470_ACEOF
10f2d63a
VZ
30471
30472fi
30473
30474if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
10f2d63a 30476#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30477_ACEOF
10f2d63a
VZ
30478
30479fi
30480
a3a584a7 30481if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30482 cat >>confdefs.h <<\_ACEOF
a3a584a7 30483#define wxUSE_TEXTBUFFER 1
e6cc62c6 30484_ACEOF
a3a584a7
VZ
30485
30486fi
30487
10f2d63a 30488if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30489 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30490 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30491echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30492 else
e6cc62c6 30493 cat >>confdefs.h <<\_ACEOF
10f2d63a 30494#define wxUSE_TEXTFILE 1
e6cc62c6 30495_ACEOF
10f2d63a
VZ
30496
30497 fi
30498fi
30499
30500if test "$wxUSE_CONFIG" = "yes" ; then
30501 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30502 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30503echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30504 else
e6cc62c6 30505 cat >>confdefs.h <<\_ACEOF
10f2d63a 30506#define wxUSE_CONFIG 1
e6cc62c6 30507_ACEOF
10f2d63a
VZ
30508
30509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30510 fi
30511fi
30512
30513if test "$wxUSE_INTL" = "yes" ; then
30514 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30515 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30516echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30517 else
e6cc62c6 30518 cat >>confdefs.h <<\_ACEOF
10f2d63a 30519#define wxUSE_INTL 1
e6cc62c6 30520_ACEOF
10f2d63a
VZ
30521
30522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30523 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30524 fi
30525fi
30526
30527if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30528 cat >>confdefs.h <<\_ACEOF
10f2d63a 30529#define wxUSE_LOG 1
e6cc62c6 30530_ACEOF
10f2d63a 30531
8284b0c5 30532
d73be714 30533 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30534 cat >>confdefs.h <<\_ACEOF
d73be714 30535#define wxUSE_LOGGUI 1
e6cc62c6 30536_ACEOF
d73be714
VZ
30537
30538 fi
30539
30540 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30541 cat >>confdefs.h <<\_ACEOF
d73be714 30542#define wxUSE_LOGWINDOW 1
e6cc62c6 30543_ACEOF
69d27ff7
MB
30544
30545 fi
30546
30547 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30548 cat >>confdefs.h <<\_ACEOF
69d27ff7 30549#define wxUSE_LOG_DIALOG 1
e6cc62c6 30550_ACEOF
d73be714
VZ
30551
30552 fi
10f2d63a
VZ
30553fi
30554
30555if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30556 cat >>confdefs.h <<\_ACEOF
10f2d63a 30557#define wxUSE_LONGLONG 1
e6cc62c6 30558_ACEOF
10f2d63a
VZ
30559
30560fi
30561
e8f65ba6 30562if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30563 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30564#define wxUSE_GEOMETRY 1
e6cc62c6 30565_ACEOF
e8f65ba6
RR
30566
30567fi
30568
10f2d63a 30569if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30570 cat >>confdefs.h <<\_ACEOF
10f2d63a 30571#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30572_ACEOF
10f2d63a 30573
70f7a477 30574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30575fi
30576
30577if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30578 cat >>confdefs.h <<\_ACEOF
10f2d63a 30579#define wxUSE_STREAMS 1
e6cc62c6 30580_ACEOF
10f2d63a
VZ
30581
30582fi
30583
5c6fa7d2 30584
8284b0c5 30585if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30586
30587for ac_func in strptime
83307f33 30588do
e6cc62c6
VS
30589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30590echo "$as_me:$LINENO: checking for $ac_func" >&5
30591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30592if eval "test \"\${$as_ac_var+set}\" = set"; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595 cat >conftest.$ac_ext <<_ACEOF
30596#line $LINENO "configure"
30597/* confdefs.h. */
30598_ACEOF
30599cat confdefs.h >>conftest.$ac_ext
30600cat >>conftest.$ac_ext <<_ACEOF
30601/* end confdefs.h. */
83307f33 30602/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30603 which can conflict with char $ac_func (); below.
30604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30605 <limits.h> exists even on freestanding compilers. */
30606#ifdef __STDC__
30607# include <limits.h>
30608#else
30609# include <assert.h>
30610#endif
83307f33 30611/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30612#ifdef __cplusplus
30613extern "C"
30614{
30615#endif
83307f33 30616/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30617 builtin and then its argument prototype would still apply. */
30618char $ac_func ();
83307f33
VZ
30619/* The GNU C library defines this for functions which it implements
30620 to always fail with ENOSYS. Some functions are actually named
30621 something starting with __ and the normal name is an alias. */
30622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30623choke me
30624#else
e6cc62c6
VS
30625char (*f) () = $ac_func;
30626#endif
30627#ifdef __cplusplus
30628}
83307f33
VZ
30629#endif
30630
e6cc62c6
VS
30631int
30632main ()
30633{
30634return f != $ac_func;
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30641 (eval $ac_link) 2>&5
30642 ac_status=$?
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } &&
30645 { ac_try='test -s conftest$ac_exeext'
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30648 ac_status=$?
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; }; then
30651 eval "$as_ac_var=yes"
30652else
30653 echo "$as_me: failed program was:" >&5
30654sed 's/^/| /' conftest.$ac_ext >&5
30655
30656eval "$as_ac_var=no"
30657fi
30658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30659fi
30660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30662if test `eval echo '${'$as_ac_var'}'` = yes; then
30663 cat >>confdefs.h <<_ACEOF
30664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30665_ACEOF
83307f33 30666
83307f33
VZ
30667fi
30668done
30669
5c6fa7d2 30670
e6cc62c6
VS
30671 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30672echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30673if test "${wx_cv_var_timezone+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30675else
e6cc62c6
VS
30676
30677 cat >conftest.$ac_ext <<_ACEOF
30678#line $LINENO "configure"
30679/* confdefs.h. */
30680_ACEOF
30681cat confdefs.h >>conftest.$ac_ext
30682cat >>conftest.$ac_ext <<_ACEOF
30683/* end confdefs.h. */
360d6699 30684
b4085ce6 30685 #include <time.h>
e6cc62c6
VS
30686
30687int
30688main ()
30689{
360d6699
VZ
30690
30691 int tz;
4f11a343 30692 tz = timezone;
e6cc62c6
VS
30693
30694 ;
30695 return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext
30699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30700 (eval $ac_compile) 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); } &&
30704 { ac_try='test -s conftest.$ac_objext'
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; }; then
30710
4f11a343 30711 wx_cv_var_timezone=timezone
e6cc62c6 30712
360d6699 30713else
e6cc62c6
VS
30714 echo "$as_me: failed program was:" >&5
30715sed 's/^/| /' conftest.$ac_ext >&5
30716
30717
30718 cat >conftest.$ac_ext <<_ACEOF
30719#line $LINENO "configure"
30720/* confdefs.h. */
30721_ACEOF
30722cat confdefs.h >>conftest.$ac_ext
30723cat >>conftest.$ac_ext <<_ACEOF
30724/* end confdefs.h. */
360d6699 30725
b4085ce6 30726 #include <time.h>
e6cc62c6
VS
30727
30728int
30729main ()
30730{
360d6699
VZ
30731
30732 int tz;
30733 tz = _timezone;
e6cc62c6
VS
30734
30735 ;
30736 return 0;
30737}
30738_ACEOF
30739rm -f conftest.$ac_objext
30740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30741 (eval $ac_compile) 2>&5
30742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } &&
30745 { ac_try='test -s conftest.$ac_objext'
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
30751
360d6699 30752 wx_cv_var_timezone=_timezone
e6cc62c6 30753
5357c8e8 30754else
e6cc62c6
VS
30755 echo "$as_me: failed program was:" >&5
30756sed 's/^/| /' conftest.$ac_ext >&5
30757
30758
30759 cat >conftest.$ac_ext <<_ACEOF
30760#line $LINENO "configure"
30761/* confdefs.h. */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h. */
5357c8e8 30766
b4085ce6 30767 #include <time.h>
e6cc62c6
VS
30768
30769int
30770main ()
30771{
5357c8e8
VZ
30772
30773 int tz;
4f11a343 30774 tz = __timezone;
e6cc62c6
VS
30775
30776 ;
30777 return 0;
30778}
30779_ACEOF
30780rm -f conftest.$ac_objext
30781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30782 (eval $ac_compile) 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
30786 { ac_try='test -s conftest.$ac_objext'
30787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30788 (eval $ac_try) 2>&5
30789 ac_status=$?
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); }; }; then
30792
4f11a343 30793 wx_cv_var_timezone=__timezone
e6cc62c6 30794
360d6699 30795else
e6cc62c6
VS
30796 echo "$as_me: failed program was:" >&5
30797sed 's/^/| /' conftest.$ac_ext >&5
30798
30799
f9bc1684 30800 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30801 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30802echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30803 fi
e6cc62c6
VS
30804
30805
7b4a847f 30806fi
e6cc62c6
VS
30807rm -f conftest.$ac_objext conftest.$ac_ext
30808
30809
5c6fa7d2 30810fi
e6cc62c6
VS
30811rm -f conftest.$ac_objext conftest.$ac_ext
30812
30813
247f5006 30814fi
e6cc62c6 30815rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30816
e6cc62c6
VS
30817
30818fi
30819echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30820echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30821
f9bc1684 30822 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30823 cat >>confdefs.h <<_ACEOF
360d6699 30824#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30825_ACEOF
360d6699 30826
f9bc1684 30827 fi
698dcdb6 30828
e6cc62c6
VS
30829
30830for ac_func in localtime
afc31813 30831do
e6cc62c6
VS
30832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30833echo "$as_me:$LINENO: checking for $ac_func" >&5
30834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30835if eval "test \"\${$as_ac_var+set}\" = set"; then
30836 echo $ECHO_N "(cached) $ECHO_C" >&6
30837else
30838 cat >conftest.$ac_ext <<_ACEOF
30839#line $LINENO "configure"
30840/* confdefs.h. */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h. */
afc31813 30845/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30846 which can conflict with char $ac_func (); below.
30847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30848 <limits.h> exists even on freestanding compilers. */
30849#ifdef __STDC__
30850# include <limits.h>
30851#else
30852# include <assert.h>
30853#endif
afc31813 30854/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30855#ifdef __cplusplus
30856extern "C"
30857{
30858#endif
afc31813 30859/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30860 builtin and then its argument prototype would still apply. */
30861char $ac_func ();
afc31813
VZ
30862/* The GNU C library defines this for functions which it implements
30863 to always fail with ENOSYS. Some functions are actually named
30864 something starting with __ and the normal name is an alias. */
30865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30866choke me
30867#else
e6cc62c6
VS
30868char (*f) () = $ac_func;
30869#endif
30870#ifdef __cplusplus
30871}
afc31813
VZ
30872#endif
30873
e6cc62c6
VS
30874int
30875main ()
30876{
30877return f != $ac_func;
30878 ;
30879 return 0;
30880}
30881_ACEOF
30882rm -f conftest.$ac_objext conftest$ac_exeext
30883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30884 (eval $ac_link) 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
30888 { ac_try='test -s conftest$ac_exeext'
30889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30890 (eval $ac_try) 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 eval "$as_ac_var=yes"
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899eval "$as_ac_var=no"
30900fi
30901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30902fi
30903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30905if test `eval echo '${'$as_ac_var'}'` = yes; then
30906 cat >>confdefs.h <<_ACEOF
30907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30908_ACEOF
afc31813 30909
afc31813
VZ
30910fi
30911done
30912
5c6fa7d2 30913
8284b0c5 30914 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30915 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30916echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30917if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30919else
e6cc62c6
VS
30920
30921 cat >conftest.$ac_ext <<_ACEOF
30922#line $LINENO "configure"
30923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
0470b1e6 30928
b4085ce6 30929 #include <time.h>
e6cc62c6
VS
30930
30931int
30932main ()
30933{
0470b1e6
VZ
30934
30935 struct tm tm;
30936 tm.tm_gmtoff++;
e6cc62c6
VS
30937
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942rm -f conftest.$ac_objext
30943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30944 (eval $ac_compile) 2>&5
30945 ac_status=$?
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
30948 { ac_try='test -s conftest.$ac_objext'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; }; then
30954
f03a98d8 30955 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30956
0470b1e6 30957else
e6cc62c6
VS
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961wx_cv_struct_tm_has_gmtoff=no
30962
247f5006 30963fi
e6cc62c6 30964rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30965
e6cc62c6
VS
30966fi
30967echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30968echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30969 fi
30970
30971 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30972 cat >>confdefs.h <<\_ACEOF
6232543b 30973#define WX_GMTOFF_IN_TM 1
e6cc62c6 30974_ACEOF
0470b1e6 30975
3fcdd07b
VZ
30976 fi
30977
e6cc62c6
VS
30978
30979
30980for ac_func in gettimeofday ftime
3fcdd07b 30981do
e6cc62c6
VS
30982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30983echo "$as_me:$LINENO: checking for $ac_func" >&5
30984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30985if eval "test \"\${$as_ac_var+set}\" = set"; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30987else
30988 cat >conftest.$ac_ext <<_ACEOF
30989#line $LINENO "configure"
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
3fcdd07b 30995/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30996 which can conflict with char $ac_func (); below.
30997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30998 <limits.h> exists even on freestanding compilers. */
30999#ifdef __STDC__
31000# include <limits.h>
31001#else
31002# include <assert.h>
31003#endif
3fcdd07b 31004/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31005#ifdef __cplusplus
31006extern "C"
31007{
31008#endif
3fcdd07b 31009/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31010 builtin and then its argument prototype would still apply. */
31011char $ac_func ();
3fcdd07b
VZ
31012/* The GNU C library defines this for functions which it implements
31013 to always fail with ENOSYS. Some functions are actually named
31014 something starting with __ and the normal name is an alias. */
31015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31016choke me
31017#else
e6cc62c6
VS
31018char (*f) () = $ac_func;
31019#endif
31020#ifdef __cplusplus
31021}
3fcdd07b
VZ
31022#endif
31023
e6cc62c6
VS
31024int
31025main ()
31026{
31027return f != $ac_func;
31028 ;
31029 return 0;
31030}
31031_ACEOF
31032rm -f conftest.$ac_objext conftest$ac_exeext
31033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31034 (eval $ac_link) 2>&5
31035 ac_status=$?
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); } &&
31038 { ac_try='test -s conftest$ac_exeext'
31039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040 (eval $ac_try) 2>&5
31041 ac_status=$?
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; }; then
31044 eval "$as_ac_var=yes"
31045else
31046 echo "$as_me: failed program was:" >&5
31047sed 's/^/| /' conftest.$ac_ext >&5
31048
31049eval "$as_ac_var=no"
31050fi
31051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31052fi
31053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31055if test `eval echo '${'$as_ac_var'}'` = yes; then
31056 cat >>confdefs.h <<_ACEOF
31057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31058_ACEOF
3fcdd07b 31059 break
3fcdd07b
VZ
31060fi
31061done
31062
698dcdb6 31063
8284b0c5 31064 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31065 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31066echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31067if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31068 echo $ECHO_N "(cached) $ECHO_C" >&6
31069else
31070
31071
31072
31073 ac_ext=cc
5c6fa7d2 31074ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31078
8284b0c5 31079
e6cc62c6
VS
31080 cat >conftest.$ac_ext <<_ACEOF
31081#line $LINENO "configure"
31082/* confdefs.h. */
31083_ACEOF
31084cat confdefs.h >>conftest.$ac_ext
31085cat >>conftest.$ac_ext <<_ACEOF
31086/* end confdefs.h. */
afc31813
VZ
31087
31088 #include <sys/time.h>
31089 #include <unistd.h>
e6cc62c6
VS
31090
31091int
31092main ()
31093{
afc31813
VZ
31094
31095 struct timeval tv;
776862b4 31096 gettimeofday(&tv, NULL);
e6cc62c6
VS
31097
31098 ;
31099 return 0;
31100}
31101_ACEOF
31102rm -f conftest.$ac_objext
31103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31104 (eval $ac_compile) 2>&5
31105 ac_status=$?
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); } &&
31108 { ac_try='test -s conftest.$ac_objext'
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31111 ac_status=$?
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; }; then
afc31813 31114 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31115else
e6cc62c6
VS
31116 echo "$as_me: failed program was:" >&5
31117sed 's/^/| /' conftest.$ac_ext >&5
31118
31119cat >conftest.$ac_ext <<_ACEOF
31120#line $LINENO "configure"
31121/* confdefs.h. */
31122_ACEOF
31123cat confdefs.h >>conftest.$ac_ext
31124cat >>conftest.$ac_ext <<_ACEOF
31125/* end confdefs.h. */
afc31813
VZ
31126
31127 #include <sys/time.h>
31128 #include <unistd.h>
e6cc62c6
VS
31129
31130int
31131main ()
31132{
afc31813
VZ
31133
31134 struct timeval tv;
31135 gettimeofday(&tv);
e6cc62c6
VS
31136
31137 ;
31138 return 0;
31139}
31140_ACEOF
31141rm -f conftest.$ac_objext
31142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31143 (eval $ac_compile) 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } &&
31147 { ac_try='test -s conftest.$ac_objext'
31148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31149 (eval $ac_try) 2>&5
31150 ac_status=$?
31151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152 (exit $ac_status); }; }; then
afc31813 31153 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31154else
e6cc62c6
VS
31155 echo "$as_me: failed program was:" >&5
31156sed 's/^/| /' conftest.$ac_ext >&5
31157
31158
31159 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31160echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31161 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31162
31163
10f2d63a 31164fi
e6cc62c6
VS
31165rm -f conftest.$ac_objext conftest.$ac_ext
31166
10f2d63a 31167fi
e6cc62c6 31168rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31169 ac_ext=c
10f2d63a 31170ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31174
a0b9e27f 31175
e6cc62c6
VS
31176fi
31177echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31178echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31179
afc31813 31180 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31181 cat >>confdefs.h <<\_ACEOF
afc31813 31182#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31183_ACEOF
afc31813
VZ
31184
31185 fi
31186 fi
31187
afc31813
VZ
31188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31189fi
31190
8284b0c5 31191
52127426 31192if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31193 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31194 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31195echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31196 wxUSE_SOCKETS="no"
31197 fi
3879ecda
VZ
31198 if test "$wxUSE_COCOA" = "1"; then
31199 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31200echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31201 wxUSE_SOCKETS="no"
31202 fi
0feee163 31203fi
b089607b 31204
0feee163
VZ
31205if test "$wxUSE_SOCKETS" = "yes"; then
31206 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31207 echo "$as_me:$LINENO: checking for socket" >&5
31208echo $ECHO_N "checking for socket... $ECHO_C" >&6
31209if test "${ac_cv_func_socket+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31211else
31212 cat >conftest.$ac_ext <<_ACEOF
31213#line $LINENO "configure"
31214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
c63c7106 31219/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31220 which can conflict with char socket (); below.
31221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222 <limits.h> exists even on freestanding compilers. */
31223#ifdef __STDC__
31224# include <limits.h>
31225#else
31226# include <assert.h>
31227#endif
c63c7106 31228/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31229#ifdef __cplusplus
31230extern "C"
31231{
31232#endif
c63c7106 31233/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31234 builtin and then its argument prototype would still apply. */
31235char socket ();
c63c7106
VZ
31236/* The GNU C library defines this for functions which it implements
31237 to always fail with ENOSYS. Some functions are actually named
31238 something starting with __ and the normal name is an alias. */
31239#if defined (__stub_socket) || defined (__stub___socket)
31240choke me
31241#else
e6cc62c6
VS
31242char (*f) () = socket;
31243#endif
31244#ifdef __cplusplus
31245}
c63c7106
VZ
31246#endif
31247
e6cc62c6
VS
31248int
31249main ()
31250{
31251return f != socket;
31252 ;
31253 return 0;
31254}
31255_ACEOF
31256rm -f conftest.$ac_objext conftest$ac_exeext
31257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31258 (eval $ac_link) 2>&5
31259 ac_status=$?
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); } &&
31262 { ac_try='test -s conftest$ac_exeext'
31263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31264 (eval $ac_try) 2>&5
31265 ac_status=$?
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); }; }; then
31268 ac_cv_func_socket=yes
31269else
31270 echo "$as_me: failed program was:" >&5
31271sed 's/^/| /' conftest.$ac_ext >&5
31272
31273ac_cv_func_socket=no
31274fi
31275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31276fi
31277echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31278echo "${ECHO_T}$ac_cv_func_socket" >&6
31279if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31280 :
31281else
e6cc62c6
VS
31282 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31283echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31284if test "${ac_cv_lib_socket_socket+set}" = set; then
31285 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31286else
e6cc62c6 31287 ac_check_lib_save_LIBS=$LIBS
c63c7106 31288LIBS="-lsocket $LIBS"
e6cc62c6
VS
31289cat >conftest.$ac_ext <<_ACEOF
31290#line $LINENO "configure"
31291/* confdefs.h. */
31292_ACEOF
31293cat confdefs.h >>conftest.$ac_ext
31294cat >>conftest.$ac_ext <<_ACEOF
31295/* end confdefs.h. */
31296
c63c7106 31297/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31298#ifdef __cplusplus
31299extern "C"
31300#endif
c63c7106 31301/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31302 builtin and then its argument prototype would still apply. */
31303char socket ();
31304int
31305main ()
31306{
31307socket ();
31308 ;
31309 return 0;
31310}
31311_ACEOF
31312rm -f conftest.$ac_objext conftest$ac_exeext
31313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31314 (eval $ac_link) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); } &&
31318 { ac_try='test -s conftest$ac_exeext'
31319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320 (eval $ac_try) 2>&5
31321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; }; then
31324 ac_cv_lib_socket_socket=yes
31325else
31326 echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
31329ac_cv_lib_socket_socket=no
31330fi
31331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31332LIBS=$ac_check_lib_save_LIBS
31333fi
31334echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31335echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31336if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31337 if test "$INET_LINK" != " -lsocket"; then
31338 INET_LINK="$INET_LINK -lsocket"
31339 fi
c63c7106 31340else
afc31813 31341
e6cc62c6
VS
31342 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31343echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31344 wxUSE_SOCKETS=no
e6cc62c6
VS
31345
31346
6232543b 31347fi
b089607b 31348
e6cc62c6 31349
1e487827 31350fi
afc31813 31351
3a922bb4 31352 fi
0feee163 31353fi
51a9faba 31354
0feee163
VZ
31355if test "$wxUSE_SOCKETS" = "yes" ; then
31356 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31357 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31358echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31359if test "${wx_cv_type_getsockname3+set}" = set; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31361else
e6cc62c6
VS
31362
31363 cat >conftest.$ac_ext <<_ACEOF
31364#line $LINENO "configure"
31365/* confdefs.h. */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h. */
51a9faba 31370
3a922bb4
RL
31371 #include <sys/types.h>
31372 #include <sys/socket.h>
e6cc62c6
VS
31373
31374int
31375main ()
31376{
51a9faba 31377
3a922bb4
RL
31378 socklen_t len;
31379 getsockname(0, 0, &len);
e6cc62c6
VS
31380
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext
31386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31387 (eval $ac_compile) 2>&5
31388 ac_status=$?
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } &&
31391 { ac_try='test -s conftest.$ac_objext'
31392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31393 (eval $ac_try) 2>&5
31394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
51a9faba 31397 wx_cv_type_getsockname3=socklen_t
afc31813 31398else
e6cc62c6
VS
31399 echo "$as_me: failed program was:" >&5
31400sed 's/^/| /' conftest.$ac_ext >&5
31401
31402
9711d31e
GD
31403 CFLAGS_OLD="$CFLAGS"
31404 if test "$GCC" = yes ; then
31405 CFLAGS="$CFLAGS -Werror"
31406 fi
31407
e6cc62c6
VS
31408 cat >conftest.$ac_ext <<_ACEOF
31409#line $LINENO "configure"
31410/* confdefs.h. */
31411_ACEOF
31412cat confdefs.h >>conftest.$ac_ext
31413cat >>conftest.$ac_ext <<_ACEOF
31414/* end confdefs.h. */
51a9faba 31415
9711d31e
GD
31416 #include <sys/types.h>
31417 #include <sys/socket.h>
e6cc62c6
VS
31418
31419int
31420main ()
31421{
51a9faba 31422
9711d31e
GD
31423 size_t len;
31424 getsockname(0, 0, &len);
e6cc62c6
VS
31425
31426 ;
31427 return 0;
31428}
31429_ACEOF
31430rm -f conftest.$ac_objext
31431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31432 (eval $ac_compile) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); } &&
31436 { ac_try='test -s conftest.$ac_objext'
31437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31438 (eval $ac_try) 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; }; then
51a9faba 31442 wx_cv_type_getsockname3=size_t
afc31813 31443else
e6cc62c6
VS
31444 echo "$as_me: failed program was:" >&5
31445sed 's/^/| /' conftest.$ac_ext >&5
31446
31447cat >conftest.$ac_ext <<_ACEOF
31448#line $LINENO "configure"
31449/* confdefs.h. */
31450_ACEOF
31451cat confdefs.h >>conftest.$ac_ext
31452cat >>conftest.$ac_ext <<_ACEOF
31453/* end confdefs.h. */
51a9faba 31454
9711d31e
GD
31455 #include <sys/types.h>
31456 #include <sys/socket.h>
e6cc62c6
VS
31457
31458int
31459main ()
31460{
51a9faba 31461
9711d31e
GD
31462 int len;
31463 getsockname(0, 0, &len);
e6cc62c6
VS
31464
31465 ;
31466 return 0;
31467}
31468_ACEOF
31469rm -f conftest.$ac_objext
31470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31471 (eval $ac_compile) 2>&5
31472 ac_status=$?
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } &&
31475 { ac_try='test -s conftest.$ac_objext'
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; }; then
51a9faba 31481 wx_cv_type_getsockname3=int
afc31813 31482else
e6cc62c6
VS
31483 echo "$as_me: failed program was:" >&5
31484sed 's/^/| /' conftest.$ac_ext >&5
31485
31486wx_cv_type_getsockname3=unknown
31487
afc31813 31488fi
e6cc62c6
VS
31489rm -f conftest.$ac_objext conftest.$ac_ext
31490
afc31813 31491fi
e6cc62c6 31492rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31493
31494 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31495
31496
247f5006 31497fi
e6cc62c6 31498rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31499
e6cc62c6
VS
31500fi
31501echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31502echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31503
3a922bb4
RL
31504 if test "$wx_cv_type_getsockname3" = "unknown"; then
31505 wxUSE_SOCKETS=no
e6cc62c6
VS
31506 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31507echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31508 else
e6cc62c6 31509 cat >>confdefs.h <<_ACEOF
51a9faba 31510#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31511_ACEOF
51a9faba 31512
3a922bb4 31513 fi
51a9faba
VZ
31514 fi
31515fi
afc31813 31516
51a9faba 31517if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31518 cat >>confdefs.h <<\_ACEOF
afc31813 31519#define wxUSE_SOCKETS 1
e6cc62c6 31520_ACEOF
afc31813 31521
70f7a477 31522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31523fi
31524
3879ecda
VZ
31525if test "$wxUSE_PROTOCOL" = "yes"; then
31526 if test "$wxUSE_SOCKETS" != "yes"; then
31527 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31528echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31529 wxUSE_PROTOCOL=no
31530 fi
31531fi
31532
31533if test "$wxUSE_PROTOCOL" = "yes"; then
31534 cat >>confdefs.h <<\_ACEOF
31535#define wxUSE_PROTOCOL 1
31536_ACEOF
31537
31538
31539 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31540 cat >>confdefs.h <<\_ACEOF
31541#define wxUSE_PROTOCOL_HTTP 1
31542_ACEOF
31543
31544 fi
31545 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31546 cat >>confdefs.h <<\_ACEOF
31547#define wxUSE_PROTOCOL_FTP 1
31548_ACEOF
31549
31550 fi
31551 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31552 cat >>confdefs.h <<\_ACEOF
31553#define wxUSE_PROTOCOL_FILE 1
31554_ACEOF
31555
31556 fi
31557else
31558 if test "$wxUSE_FS_INET" = "yes"; then
31559 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31560echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31561 wxUSE_FS_INET="no"
31562 fi
31563fi
31564
31565if test "$wxUSE_URL" = "yes"; then
31566 if test "$wxUSE_PROTOCOL" != "yes"; then
31567 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31568echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31569 wxUSE_URL=no
31570 fi
31571 if test "$wxUSE_URL" = "yes"; then
31572 cat >>confdefs.h <<\_ACEOF
31573#define wxUSE_URL 1
31574_ACEOF
31575
31576 fi
31577fi
31578
31579if test "$wxUSE_FS_INET" = "yes"; then
31580 cat >>confdefs.h <<\_ACEOF
31581#define wxUSE_FS_INET 1
31582_ACEOF
31583
31584fi
31585
8284b0c5 31586
dc3d889d
VZ
31587if test "$wxUSE_GUI" = "yes"; then
31588
ac0c4cc3 31589 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31590 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31591echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31592 wxUSE_JOYSTICK=no
156b2523
GD
31593 fi
31594
131f235d 31595 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31596 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31597
31598for ac_header in linux/joystick.h
10f2d63a 31599do
e6cc62c6
VS
31600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31601if eval "test \"\${$as_ac_Header+set}\" = set"; then
31602 echo "$as_me:$LINENO: checking for $ac_header" >&5
31603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31604if eval "test \"\${$as_ac_Header+set}\" = set"; then
31605 echo $ECHO_N "(cached) $ECHO_C" >&6
31606fi
31607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31609else
31610 # Is the header compilable?
31611echo "$as_me:$LINENO: checking $ac_header usability" >&5
31612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31613cat >conftest.$ac_ext <<_ACEOF
31614#line $LINENO "configure"
31615/* confdefs.h. */
31616_ACEOF
31617cat confdefs.h >>conftest.$ac_ext
31618cat >>conftest.$ac_ext <<_ACEOF
31619/* end confdefs.h. */
31620$ac_includes_default
31621#include <$ac_header>
31622_ACEOF
31623rm -f conftest.$ac_objext
31624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31625 (eval $ac_compile) 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } &&
31629 { ac_try='test -s conftest.$ac_objext'
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; }; then
31635 ac_header_compiler=yes
31636else
31637 echo "$as_me: failed program was:" >&5
31638sed 's/^/| /' conftest.$ac_ext >&5
31639
31640ac_header_compiler=no
31641fi
31642rm -f conftest.$ac_objext conftest.$ac_ext
31643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31644echo "${ECHO_T}$ac_header_compiler" >&6
31645
31646# Is the header present?
31647echo "$as_me:$LINENO: checking $ac_header presence" >&5
31648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31649cat >conftest.$ac_ext <<_ACEOF
31650#line $LINENO "configure"
31651/* confdefs.h. */
31652_ACEOF
31653cat confdefs.h >>conftest.$ac_ext
31654cat >>conftest.$ac_ext <<_ACEOF
31655/* end confdefs.h. */
31656#include <$ac_header>
31657_ACEOF
31658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31660 ac_status=$?
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } >/dev/null; then
31666 if test -s conftest.err; then
31667 ac_cpp_err=$ac_c_preproc_warn_flag
31668 else
31669 ac_cpp_err=
31670 fi
31671else
31672 ac_cpp_err=yes
31673fi
31674if test -z "$ac_cpp_err"; then
31675 ac_header_preproc=yes
31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
31680 ac_header_preproc=no
31681fi
31682rm -f conftest.err conftest.$ac_ext
31683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31684echo "${ECHO_T}$ac_header_preproc" >&6
31685
31686# So? What about this header?
31687case $ac_header_compiler:$ac_header_preproc in
31688 yes:no )
31689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31693 (
31694 cat <<\_ASBOX
31695## ------------------------------------ ##
31696## Report this to bug-autoconf@gnu.org. ##
31697## ------------------------------------ ##
31698_ASBOX
31699 ) |
31700 sed "s/^/$as_me: WARNING: /" >&2
31701 ;;
31702 no:yes )
31703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31709 (
31710 cat <<\_ASBOX
31711## ------------------------------------ ##
31712## Report this to bug-autoconf@gnu.org. ##
31713## ------------------------------------ ##
31714_ASBOX
31715 ) |
31716 sed "s/^/$as_me: WARNING: /" >&2
31717 ;;
31718esac
31719echo "$as_me:$LINENO: checking for $ac_header" >&5
31720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31721if eval "test \"\${$as_ac_Header+set}\" = set"; then
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31723else
31724 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31725fi
e6cc62c6
VS
31726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31728
10f2d63a 31729fi
e6cc62c6
VS
31730if test `eval echo '${'$as_ac_Header'}'` = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31733_ACEOF
31734
247f5006 31735fi
e6cc62c6 31736
10f2d63a
VZ
31737done
31738
3a922bb4
RL
31739 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31740 wxUSE_JOYSTICK=no
e6cc62c6
VS
31741 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31742echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31743 fi
31744 fi
31745 fi
b089607b 31746
3a922bb4 31747 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31748 cat >>confdefs.h <<\_ACEOF
10f2d63a 31749#define wxUSE_JOYSTICK 1
e6cc62c6 31750_ACEOF
10f2d63a 31751
3a922bb4
RL
31752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31753 fi
dc3d889d
VZ
31754fi
31755
8284b0c5 31756
b089607b
VZ
31757if test "$TOOLKIT" != "MSW"; then
31758
3a922bb4
RL
31759 HAVE_DL_FUNCS=0
31760 HAVE_SHL_FUNCS=0
0b9ab0bd 31761 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31762 if test "$USE_DARWIN" = 1; then
31763 HAVE_DL_FUNCS=1
31764 else
e6cc62c6
VS
31765
31766for ac_func in dlopen
10f2d63a 31767do
e6cc62c6
VS
31768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31769echo "$as_me:$LINENO: checking for $ac_func" >&5
31770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31771if eval "test \"\${$as_ac_var+set}\" = set"; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773else
31774 cat >conftest.$ac_ext <<_ACEOF
31775#line $LINENO "configure"
31776/* confdefs.h. */
31777_ACEOF
31778cat confdefs.h >>conftest.$ac_ext
31779cat >>conftest.$ac_ext <<_ACEOF
31780/* end confdefs.h. */
10f2d63a 31781/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31782 which can conflict with char $ac_func (); below.
31783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31784 <limits.h> exists even on freestanding compilers. */
31785#ifdef __STDC__
31786# include <limits.h>
31787#else
31788# include <assert.h>
31789#endif
10f2d63a 31790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31791#ifdef __cplusplus
31792extern "C"
31793{
31794#endif
10f2d63a 31795/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31796 builtin and then its argument prototype would still apply. */
31797char $ac_func ();
10f2d63a
VZ
31798/* The GNU C library defines this for functions which it implements
31799 to always fail with ENOSYS. Some functions are actually named
31800 something starting with __ and the normal name is an alias. */
31801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31802choke me
31803#else
e6cc62c6
VS
31804char (*f) () = $ac_func;
31805#endif
31806#ifdef __cplusplus
31807}
10f2d63a
VZ
31808#endif
31809
e6cc62c6
VS
31810int
31811main ()
31812{
31813return f != $ac_func;
31814 ;
31815 return 0;
31816}
31817_ACEOF
31818rm -f conftest.$ac_objext conftest$ac_exeext
31819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31820 (eval $ac_link) 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); } &&
31824 { ac_try='test -s conftest$ac_exeext'
31825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31826 (eval $ac_try) 2>&5
31827 ac_status=$?
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); }; }; then
31830 eval "$as_ac_var=yes"
31831else
31832 echo "$as_me: failed program was:" >&5
31833sed 's/^/| /' conftest.$ac_ext >&5
31834
31835eval "$as_ac_var=no"
31836fi
31837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31838fi
31839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31841if test `eval echo '${'$as_ac_var'}'` = yes; then
31842 cat >>confdefs.h <<_ACEOF
31843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31844_ACEOF
31845
31846 cat >>confdefs.h <<\_ACEOF
10f2d63a 31847#define HAVE_DLOPEN 1
e6cc62c6 31848_ACEOF
10f2d63a 31849
3a922bb4 31850 HAVE_DL_FUNCS=1
e6cc62c6 31851
10f2d63a 31852else
e6cc62c6
VS
31853
31854 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31855echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31856if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31857 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31858else
e6cc62c6 31859 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31860LIBS="-ldl $LIBS"
e6cc62c6
VS
31861cat >conftest.$ac_ext <<_ACEOF
31862#line $LINENO "configure"
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
31868
10f2d63a 31869/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31870#ifdef __cplusplus
31871extern "C"
31872#endif
10f2d63a 31873/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31874 builtin and then its argument prototype would still apply. */
31875char dlopen ();
31876int
31877main ()
31878{
31879dlopen ();
31880 ;
31881 return 0;
31882}
31883_ACEOF
31884rm -f conftest.$ac_objext conftest$ac_exeext
31885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31886 (eval $ac_link) 2>&5
31887 ac_status=$?
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } &&
31890 { ac_try='test -s conftest$ac_exeext'
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
31896 ac_cv_lib_dl_dlopen=yes
31897else
31898 echo "$as_me: failed program was:" >&5
31899sed 's/^/| /' conftest.$ac_ext >&5
31900
31901ac_cv_lib_dl_dlopen=no
31902fi
31903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31904LIBS=$ac_check_lib_save_LIBS
31905fi
31906echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31907echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31908if test $ac_cv_lib_dl_dlopen = yes; then
31909
31910 cat >>confdefs.h <<\_ACEOF
10f2d63a 31911#define HAVE_DLOPEN 1
e6cc62c6 31912_ACEOF
10f2d63a 31913
3a922bb4 31914 HAVE_DL_FUNCS=1
3d63bc3a 31915 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31916
10f2d63a 31917else
10f2d63a 31918
e6cc62c6
VS
31919
31920for ac_func in shl_load
10f2d63a 31921do
e6cc62c6
VS
31922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31923echo "$as_me:$LINENO: checking for $ac_func" >&5
31924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31925if eval "test \"\${$as_ac_var+set}\" = set"; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31927else
31928 cat >conftest.$ac_ext <<_ACEOF
31929#line $LINENO "configure"
31930/* confdefs.h. */
31931_ACEOF
31932cat confdefs.h >>conftest.$ac_ext
31933cat >>conftest.$ac_ext <<_ACEOF
31934/* end confdefs.h. */
10f2d63a 31935/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31936 which can conflict with char $ac_func (); below.
31937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31938 <limits.h> exists even on freestanding compilers. */
31939#ifdef __STDC__
31940# include <limits.h>
31941#else
31942# include <assert.h>
31943#endif
10f2d63a 31944/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31945#ifdef __cplusplus
31946extern "C"
31947{
31948#endif
10f2d63a 31949/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31950 builtin and then its argument prototype would still apply. */
31951char $ac_func ();
10f2d63a
VZ
31952/* The GNU C library defines this for functions which it implements
31953 to always fail with ENOSYS. Some functions are actually named
31954 something starting with __ and the normal name is an alias. */
31955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31956choke me
31957#else
e6cc62c6
VS
31958char (*f) () = $ac_func;
31959#endif
31960#ifdef __cplusplus
31961}
10f2d63a
VZ
31962#endif
31963
e6cc62c6
VS
31964int
31965main ()
31966{
31967return f != $ac_func;
31968 ;
31969 return 0;
31970}
31971_ACEOF
31972rm -f conftest.$ac_objext conftest$ac_exeext
31973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31974 (eval $ac_link) 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try='test -s conftest$ac_exeext'
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
31984 eval "$as_ac_var=yes"
31985else
31986 echo "$as_me: failed program was:" >&5
31987sed 's/^/| /' conftest.$ac_ext >&5
31988
31989eval "$as_ac_var=no"
31990fi
31991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31992fi
31993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31995if test `eval echo '${'$as_ac_var'}'` = yes; then
31996 cat >>confdefs.h <<_ACEOF
31997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31998_ACEOF
31999
32000 cat >>confdefs.h <<\_ACEOF
10f2d63a 32001#define HAVE_SHL_LOAD 1
e6cc62c6 32002_ACEOF
10f2d63a 32003
3a922bb4 32004 HAVE_SHL_FUNCS=1
e6cc62c6 32005
10f2d63a 32006else
e6cc62c6
VS
32007
32008 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32009echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32010if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32012else
e6cc62c6 32013 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32014LIBS="-lshl_load $LIBS"
e6cc62c6
VS
32015cat >conftest.$ac_ext <<_ACEOF
32016#line $LINENO "configure"
32017/* confdefs.h. */
32018_ACEOF
32019cat confdefs.h >>conftest.$ac_ext
32020cat >>conftest.$ac_ext <<_ACEOF
32021/* end confdefs.h. */
32022
8284b0c5 32023/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32024#ifdef __cplusplus
32025extern "C"
32026#endif
f6bcfd97 32027/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32028 builtin and then its argument prototype would still apply. */
32029char dld ();
32030int
32031main ()
32032{
32033dld ();
32034 ;
32035 return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext conftest$ac_exeext
32039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32040 (eval $ac_link) 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); } &&
32044 { ac_try='test -s conftest$ac_exeext'
32045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32046 (eval $ac_try) 2>&5
32047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_lib_shl_load_dld=yes
32051else
32052 echo "$as_me: failed program was:" >&5
32053sed 's/^/| /' conftest.$ac_ext >&5
32054
32055ac_cv_lib_shl_load_dld=no
32056fi
32057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32058LIBS=$ac_check_lib_save_LIBS
32059fi
32060echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32061echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32062if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32063
3a922bb4 32064 HAVE_SHL_FUNCS=1
3d63bc3a 32065 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32066
f6bcfd97
BP
32067fi
32068
e6cc62c6 32069
10f2d63a
VZ
32070fi
32071done
32072
e6cc62c6 32073
10f2d63a
VZ
32074fi
32075
e6cc62c6 32076
10f2d63a
VZ
32077fi
32078done
32079
5c6fa7d2 32080
8284b0c5 32081 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32082
32083for ac_func in dlerror
f6bcfd97 32084do
e6cc62c6
VS
32085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32086echo "$as_me:$LINENO: checking for $ac_func" >&5
32087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32088if eval "test \"\${$as_ac_var+set}\" = set"; then
32089 echo $ECHO_N "(cached) $ECHO_C" >&6
32090else
32091 cat >conftest.$ac_ext <<_ACEOF
32092#line $LINENO "configure"
32093/* confdefs.h. */
32094_ACEOF
32095cat confdefs.h >>conftest.$ac_ext
32096cat >>conftest.$ac_ext <<_ACEOF
32097/* end confdefs.h. */
f6bcfd97 32098/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32099 which can conflict with char $ac_func (); below.
32100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32101 <limits.h> exists even on freestanding compilers. */
32102#ifdef __STDC__
32103# include <limits.h>
32104#else
32105# include <assert.h>
32106#endif
f6bcfd97 32107/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32108#ifdef __cplusplus
32109extern "C"
32110{
32111#endif
f6bcfd97 32112/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32113 builtin and then its argument prototype would still apply. */
32114char $ac_func ();
f6bcfd97
BP
32115/* The GNU C library defines this for functions which it implements
32116 to always fail with ENOSYS. Some functions are actually named
32117 something starting with __ and the normal name is an alias. */
32118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32119choke me
32120#else
e6cc62c6
VS
32121char (*f) () = $ac_func;
32122#endif
32123#ifdef __cplusplus
32124}
f6bcfd97
BP
32125#endif
32126
e6cc62c6
VS
32127int
32128main ()
32129{
32130return f != $ac_func;
32131 ;
32132 return 0;
32133}
32134_ACEOF
32135rm -f conftest.$ac_objext conftest$ac_exeext
32136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32137 (eval $ac_link) 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } &&
32141 { ac_try='test -s conftest$ac_exeext'
32142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32143 (eval $ac_try) 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; }; then
32147 eval "$as_ac_var=yes"
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152eval "$as_ac_var=no"
32153fi
32154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32155fi
32156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32158if test `eval echo '${'$as_ac_var'}'` = yes; then
32159 cat >>confdefs.h <<_ACEOF
32160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32161_ACEOF
32162 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32163#define HAVE_DLERROR 1
e6cc62c6 32164_ACEOF
f6bcfd97
BP
32165
32166else
e6cc62c6
VS
32167 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32168echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32169if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32171else
e6cc62c6 32172 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32173LIBS="-ldl $LIBS"
e6cc62c6
VS
32174cat >conftest.$ac_ext <<_ACEOF
32175#line $LINENO "configure"
32176/* confdefs.h. */
32177_ACEOF
32178cat confdefs.h >>conftest.$ac_ext
32179cat >>conftest.$ac_ext <<_ACEOF
32180/* end confdefs.h. */
32181
f6bcfd97 32182/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32183#ifdef __cplusplus
32184extern "C"
32185#endif
f6bcfd97 32186/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32187 builtin and then its argument prototype would still apply. */
32188char dlerror ();
32189int
32190main ()
32191{
32192dlerror ();
32193 ;
32194 return 0;
32195}
32196_ACEOF
32197rm -f conftest.$ac_objext conftest$ac_exeext
32198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32199 (eval $ac_link) 2>&5
32200 ac_status=$?
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); } &&
32203 { ac_try='test -s conftest$ac_exeext'
32204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205 (eval $ac_try) 2>&5
32206 ac_status=$?
32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208 (exit $ac_status); }; }; then
32209 ac_cv_lib_dl_dlerror=yes
32210else
32211 echo "$as_me: failed program was:" >&5
32212sed 's/^/| /' conftest.$ac_ext >&5
32213
32214ac_cv_lib_dl_dlerror=no
32215fi
32216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32217LIBS=$ac_check_lib_save_LIBS
32218fi
32219echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32220echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32221if test $ac_cv_lib_dl_dlerror = yes; then
32222 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32223#define HAVE_DLERROR 1
e6cc62c6 32224_ACEOF
f6bcfd97 32225
f6bcfd97
BP
32226fi
32227
32228fi
32229done
32230
3a922bb4
RL
32231 fi
32232 fi
f6bcfd97 32233
3a922bb4
RL
32234 if test "$HAVE_DL_FUNCS" = 0; then
32235 if test "$HAVE_SHL_FUNCS" = 0; then
32236 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32237 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32238echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32239 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32240 wxUSE_DYNLIB_CLASS=no
32241 else
e6cc62c6
VS
32242 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32243echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32244 fi
32245 fi
10f2d63a
VZ
32246 fi
32247 fi
32248fi
32249
0b9ab0bd 32250if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32251 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32252#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32253_ACEOF
0b9ab0bd 32254
1948bb32
VS
32255fi
32256if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32257 cat >>confdefs.h <<\_ACEOF
10f2d63a 32258#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32259_ACEOF
10f2d63a
VZ
32260
32261fi
32262
8284b0c5 32263
1e6feb95 32264if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32265 cat >>confdefs.h <<\_ACEOF
1e6feb95 32266#define wxUSE_FONTMAP 1
e6cc62c6 32267_ACEOF
1e6feb95
VZ
32268
32269fi
32270
10f2d63a 32271if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32272 cat >>confdefs.h <<\_ACEOF
10f2d63a 32273#define wxUSE_UNICODE 1
e6cc62c6 32274_ACEOF
10f2d63a 32275
8284b0c5 32276
eb854003 32277 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32278 wxUSE_UNICODE_MSLU=no
32279 fi
a72a4bfa 32280
eb854003 32281 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32282 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32283echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32284if test "${ac_cv_lib_unicows_main+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32286else
e6cc62c6 32287 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32288LIBS="-lunicows $LIBS"
e6cc62c6
VS
32289cat >conftest.$ac_ext <<_ACEOF
32290#line $LINENO "configure"
32291/* confdefs.h. */
32292_ACEOF
32293cat confdefs.h >>conftest.$ac_ext
32294cat >>conftest.$ac_ext <<_ACEOF
32295/* end confdefs.h. */
a72a4bfa 32296
8284b0c5 32297
e6cc62c6
VS
32298int
32299main ()
32300{
32301main ();
32302 ;
32303 return 0;
32304}
32305_ACEOF
32306rm -f conftest.$ac_objext conftest$ac_exeext
32307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32308 (eval $ac_link) 2>&5
32309 ac_status=$?
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); } &&
32312 { ac_try='test -s conftest$ac_exeext'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32315 ac_status=$?
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32318 ac_cv_lib_unicows_main=yes
32319else
32320 echo "$as_me: failed program was:" >&5
32321sed 's/^/| /' conftest.$ac_ext >&5
32322
32323ac_cv_lib_unicows_main=no
32324fi
32325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32326LIBS=$ac_check_lib_save_LIBS
32327fi
32328echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32329echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32330if test $ac_cv_lib_unicows_main = yes; then
32331
32332 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32333#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32334_ACEOF
32335
a72a4bfa 32336
a72a4bfa 32337else
a72a4bfa 32338
e6cc62c6
VS
32339 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32340 Applications will only run on Windows NT/2000/XP!" >&5
32341echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32342 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32343 wxUSE_UNICODE_MSLU=no
e6cc62c6 32344
a72a4bfa
VS
32345fi
32346
32347 fi
10f2d63a
VZ
32348fi
32349
10f2d63a 32350if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32351 cat >>confdefs.h <<\_ACEOF
10f2d63a 32352#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32353_ACEOF
10f2d63a
VZ
32354
32355fi
32356
8284b0c5 32357
10f2d63a 32358if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32359 cat >>confdefs.h <<\_ACEOF
10f2d63a 32360#define wxUSE_POSTSCRIPT 1
e6cc62c6 32361_ACEOF
10f2d63a
VZ
32362
32363fi
32364
e6cc62c6 32365cat >>confdefs.h <<\_ACEOF
10f2d63a 32366#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32367_ACEOF
10f2d63a 32368
8284b0c5 32369
e6cc62c6 32370cat >>confdefs.h <<\_ACEOF
10f2d63a 32371#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32372_ACEOF
10f2d63a 32373
8284b0c5
MB
32374
32375
10f2d63a 32376if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32377 cat >>confdefs.h <<\_ACEOF
10f2d63a 32378#define wxUSE_CONSTRAINTS 1
e6cc62c6 32379_ACEOF
10f2d63a
VZ
32380
32381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32382fi
32383
3879ecda 32384if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32385 cat >>confdefs.h <<\_ACEOF
10f2d63a 32386#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32387_ACEOF
10f2d63a 32388
1772d20c 32389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32390fi
32391
32392if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32393 cat >>confdefs.h <<\_ACEOF
10f2d63a 32394#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32395_ACEOF
10f2d63a
VZ
32396
32397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32398 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32400 fi
32401fi
32402
32403if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32404 cat >>confdefs.h <<\_ACEOF
10f2d63a 32405#define wxUSE_HELP 1
e6cc62c6 32406_ACEOF
10f2d63a
VZ
32407
32408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32409
77e13408 32410 if test "$wxUSE_MSW" = 1; then
031d8228 32411 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32412 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32413#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32414_ACEOF
29fd3c0c 32415
3e44f09d 32416 fi
3379ed37 32417 fi
031d8228
VS
32418
32419 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32420 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32421 cat >>confdefs.h <<\_ACEOF
031d8228 32422#define wxUSE_WXHTML_HELP 1
e6cc62c6 32423_ACEOF
031d8228
VS
32424
32425 else
e6cc62c6
VS
32426 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32427echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32428 wxUSE_WXHTML_HELP=no
32429 fi
32430 fi
10f2d63a
VZ
32431fi
32432
32433if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32434 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32435 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32436echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32437 else
e6cc62c6 32438 cat >>confdefs.h <<\_ACEOF
10f2d63a 32439#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32440_ACEOF
10f2d63a
VZ
32441
32442 fi
32443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32444fi
32445
e6cc62c6
VS
32446if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32447 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32448echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32449 { (exit 1); exit 1; }; }
32450fi
32451
32452
32453if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32454 -o "$wxUSE_CLIPBOARD" = "yes" \
32455 -o "$wxUSE_OLE" = "yes" \
32456 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32457
32458for ac_header in ole2.h
32459do
32460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32461if eval "test \"\${$as_ac_Header+set}\" = set"; then
32462 echo "$as_me:$LINENO: checking for $ac_header" >&5
32463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32464if eval "test \"\${$as_ac_Header+set}\" = set"; then
32465 echo $ECHO_N "(cached) $ECHO_C" >&6
32466fi
32467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32469else
32470 # Is the header compilable?
32471echo "$as_me:$LINENO: checking $ac_header usability" >&5
32472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32473cat >conftest.$ac_ext <<_ACEOF
32474#line $LINENO "configure"
32475/* confdefs.h. */
32476_ACEOF
32477cat confdefs.h >>conftest.$ac_ext
32478cat >>conftest.$ac_ext <<_ACEOF
32479/* end confdefs.h. */
32480$ac_includes_default
32481#include <$ac_header>
32482_ACEOF
32483rm -f conftest.$ac_objext
32484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32485 (eval $ac_compile) 2>&5
32486 ac_status=$?
32487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } &&
32489 { ac_try='test -s conftest.$ac_objext'
32490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32491 (eval $ac_try) 2>&5
32492 ac_status=$?
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); }; }; then
32495 ac_header_compiler=yes
32496else
32497 echo "$as_me: failed program was:" >&5
32498sed 's/^/| /' conftest.$ac_ext >&5
32499
32500ac_header_compiler=no
32501fi
32502rm -f conftest.$ac_objext conftest.$ac_ext
32503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32504echo "${ECHO_T}$ac_header_compiler" >&6
32505
32506# Is the header present?
32507echo "$as_me:$LINENO: checking $ac_header presence" >&5
32508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32509cat >conftest.$ac_ext <<_ACEOF
32510#line $LINENO "configure"
32511/* confdefs.h. */
32512_ACEOF
32513cat confdefs.h >>conftest.$ac_ext
32514cat >>conftest.$ac_ext <<_ACEOF
32515/* end confdefs.h. */
32516#include <$ac_header>
32517_ACEOF
32518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32520 ac_status=$?
32521 grep -v '^ *+' conftest.er1 >conftest.err
32522 rm -f conftest.er1
32523 cat conftest.err >&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } >/dev/null; then
32526 if test -s conftest.err; then
32527 ac_cpp_err=$ac_c_preproc_warn_flag
32528 else
32529 ac_cpp_err=
32530 fi
32531else
32532 ac_cpp_err=yes
32533fi
32534if test -z "$ac_cpp_err"; then
32535 ac_header_preproc=yes
32536else
32537 echo "$as_me: failed program was:" >&5
32538sed 's/^/| /' conftest.$ac_ext >&5
32539
32540 ac_header_preproc=no
32541fi
32542rm -f conftest.err conftest.$ac_ext
32543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32544echo "${ECHO_T}$ac_header_preproc" >&6
32545
32546# So? What about this header?
32547case $ac_header_compiler:$ac_header_preproc in
32548 yes:no )
32549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32553 (
32554 cat <<\_ASBOX
32555## ------------------------------------ ##
32556## Report this to bug-autoconf@gnu.org. ##
32557## ------------------------------------ ##
32558_ASBOX
32559 ) |
32560 sed "s/^/$as_me: WARNING: /" >&2
32561 ;;
32562 no:yes )
32563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32569 (
32570 cat <<\_ASBOX
32571## ------------------------------------ ##
32572## Report this to bug-autoconf@gnu.org. ##
32573## ------------------------------------ ##
32574_ASBOX
32575 ) |
32576 sed "s/^/$as_me: WARNING: /" >&2
32577 ;;
32578esac
32579echo "$as_me:$LINENO: checking for $ac_header" >&5
32580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32581if eval "test \"\${$as_ac_Header+set}\" = set"; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
32584 eval "$as_ac_Header=$ac_header_preproc"
32585fi
32586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32588
10f2d63a 32589fi
e6cc62c6
VS
32590if test `eval echo '${'$as_ac_Header'}'` = yes; then
32591 cat >>confdefs.h <<_ACEOF
32592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32593_ACEOF
10f2d63a 32594
10f2d63a 32595fi
e6cc62c6 32596
10f2d63a
VZ
32597done
32598
8284b0c5 32599
2b9bdf71
VZ
32600 if test "$ac_cv_header_ole2_h" = "yes" ; then
32601 if test "$GCC" = yes ; then
8284b0c5
MB
32602
32603
e6cc62c6
VS
32604 ac_ext=cc
32605ac_cpp='$CXXCPP $CPPFLAGS'
32606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32609
32610
32611 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32612echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32613 cat >conftest.$ac_ext <<_ACEOF
32614#line $LINENO "configure"
32615/* confdefs.h. */
32616_ACEOF
32617cat confdefs.h >>conftest.$ac_ext
32618cat >>conftest.$ac_ext <<_ACEOF
32619/* end confdefs.h. */
8284b0c5
MB
32620#include <windows.h>
32621 #include <ole2.h>
e6cc62c6
VS
32622int
32623main ()
32624{
8284b0c5 32625
e6cc62c6
VS
32626 ;
32627 return 0;
32628}
32629_ACEOF
32630rm -f conftest.$ac_objext
32631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32632 (eval $ac_compile) 2>&5
32633 ac_status=$?
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
32636 { ac_try='test -s conftest.$ac_objext'
32637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638 (eval $ac_try) 2>&5
32639 ac_status=$?
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; }; then
32642 echo "$as_me:$LINENO: result: no" >&5
32643echo "${ECHO_T}no" >&6
32644else
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648echo "$as_me:$LINENO: result: yes" >&5
32649echo "${ECHO_T}yes" >&6
8284b0c5
MB
32650 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32651fi
e6cc62c6 32652rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32653 ac_ext=c
8284b0c5 32654ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32658
2b9bdf71 32659 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32660 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32661 cat >>confdefs.h <<\_ACEOF
4f11a343 32662#define wxUSE_OLE 1
e6cc62c6 32663_ACEOF
4f11a343 32664
8284b0c5 32665
2b9bdf71
VZ
32666 fi
32667
e6cc62c6 32668 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32669#define wxUSE_DATAOBJ 1
e6cc62c6 32670_ACEOF
2b9bdf71
VZ
32671
32672 else
e6cc62c6
VS
32673 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32674echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32675
32676 wxUSE_CLIPBOARD=no
32677 wxUSE_DRAG_AND_DROP=no
32678 wxUSE_DATAOBJ=no
3bce6687
JS
32679 wxUSE_OLE=no
32680 fi
32681
32682 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32683 cat >>confdefs.h <<\_ACEOF
3bce6687 32684#define wxUSE_METAFILE 1
e6cc62c6 32685_ACEOF
3bce6687
JS
32686
32687
e6cc62c6 32688 cat >>confdefs.h <<\_ACEOF
3bce6687 32689#define wxUSE_ENH_METAFILE 1
e6cc62c6 32690_ACEOF
3bce6687
JS
32691
32692 fi
32693fi
32694
2b9bdf71
VZ
32695if test "$wxUSE_IPC" = "yes"; then
32696 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32697 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32698echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32699 fi
32700
e6cc62c6 32701 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32702#define wxUSE_IPC 1
e6cc62c6 32703_ACEOF
2b9bdf71
VZ
32704
32705fi
32706
32707if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32708 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32709 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32710echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32711 wxUSE_CLIPBOARD=no
32712 fi
32713
32714 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32715 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32716#define wxUSE_CLIPBOARD 1
e6cc62c6 32717_ACEOF
2b9bdf71 32718
8284b0c5 32719
e6cc62c6 32720 cat >>confdefs.h <<\_ACEOF
673f4220 32721#define wxUSE_DATAOBJ 1
e6cc62c6 32722_ACEOF
673f4220 32723
6c657b52 32724 fi
2b9bdf71
VZ
32725fi
32726
32727if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32728 if test "$wxUSE_GTK" = 1; then
32729 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32730 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32731echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32732 wxUSE_DRAG_AND_DROP=no
32733 fi
32734 fi
32735
2b9bdf71 32736 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32737 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32738echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32739 wxUSE_DRAG_AND_DROP=no
32740 fi
32741
f79bd02d 32742 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32743 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32744echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32745 wxUSE_DRAG_AND_DROP=no
32746 fi
32747
6c657b52 32748 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32749 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32750echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32751 wxUSE_DRAG_AND_DROP=no
32752 fi
32753
10f2d63a 32754 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32755 cat >>confdefs.h <<\_ACEOF
10f2d63a 32756#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32757_ACEOF
10f2d63a
VZ
32758
32759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32760 fi
32761
32762fi
32763
32764if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32765 cat >>confdefs.h <<\_ACEOF
10f2d63a 32766#define wxUSE_SPLINES 1
e6cc62c6 32767_ACEOF
10f2d63a
VZ
32768
32769fi
32770
8284b0c5 32771
1e6feb95
VZ
32772USES_CONTROLS=0
32773if test "$wxUSE_CONTROLS" = "yes"; then
32774 USES_CONTROLS=1
32775fi
32776
10f2d63a 32777if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32778 cat >>confdefs.h <<\_ACEOF
10f2d63a 32779#define wxUSE_ACCEL 1
e6cc62c6 32780_ACEOF
10f2d63a 32781
1e6feb95
VZ
32782 USES_CONTROLS=1
32783fi
32784
32785if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32786 cat >>confdefs.h <<\_ACEOF
1e6feb95 32787#define wxUSE_BUTTON 1
e6cc62c6 32788_ACEOF
1e6feb95
VZ
32789
32790 USES_CONTROLS=1
32791fi
32792
32793if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32794 cat >>confdefs.h <<\_ACEOF
1e6feb95 32795#define wxUSE_BMPBUTTON 1
e6cc62c6 32796_ACEOF
1e6feb95
VZ
32797
32798 USES_CONTROLS=1
32799fi
32800
32801if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32802 cat >>confdefs.h <<\_ACEOF
1e6feb95 32803#define wxUSE_CALENDARCTRL 1
e6cc62c6 32804_ACEOF
1e6feb95
VZ
32805
32806 USES_CONTROLS=1
32807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32808fi
32809
32810if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32811 cat >>confdefs.h <<\_ACEOF
10f2d63a 32812#define wxUSE_CARET 1
e6cc62c6 32813_ACEOF
10f2d63a 32814
1e6feb95 32815 USES_CONTROLS=1
10f2d63a
VZ
32816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32817fi
32818
32819if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32820 cat >>confdefs.h <<\_ACEOF
10f2d63a 32821#define wxUSE_COMBOBOX 1
e6cc62c6 32822_ACEOF
10f2d63a 32823
1e6feb95 32824 USES_CONTROLS=1
10f2d63a
VZ
32825fi
32826
32827if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32828 cat >>confdefs.h <<\_ACEOF
10f2d63a 32829#define wxUSE_CHOICE 1
e6cc62c6 32830_ACEOF
10f2d63a 32831
1e6feb95 32832 USES_CONTROLS=1
10f2d63a
VZ
32833fi
32834
32835if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32836 cat >>confdefs.h <<\_ACEOF
10f2d63a 32837#define wxUSE_CHECKBOX 1
e6cc62c6 32838_ACEOF
10f2d63a 32839
1e6feb95 32840 USES_CONTROLS=1
10f2d63a
VZ
32841fi
32842
32843if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32844 cat >>confdefs.h <<\_ACEOF
10f2d63a 32845#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32846_ACEOF
10f2d63a 32847
1e6feb95 32848 USES_CONTROLS=1
10f2d63a
VZ
32849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32850fi
32851
da494b40 32852if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32853 cat >>confdefs.h <<\_ACEOF
da494b40 32854#define wxUSE_DISPLAY 1
e6cc62c6 32855_ACEOF
da494b40
MB
32856
32857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32858fi
32859
10f2d63a 32860if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32861 cat >>confdefs.h <<\_ACEOF
10f2d63a 32862#define wxUSE_GAUGE 1
e6cc62c6 32863_ACEOF
10f2d63a 32864
1e6feb95 32865 USES_CONTROLS=1
10f2d63a
VZ
32866fi
32867
d6a55c4b 32868if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32869 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32870#define wxUSE_GRID 1
e6cc62c6 32871_ACEOF
10f2d63a 32872
1e6feb95 32873 USES_CONTROLS=1
d6a55c4b 32874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32875fi
32876
32877if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32878 cat >>confdefs.h <<\_ACEOF
10f2d63a 32879#define wxUSE_IMAGLIST 1
e6cc62c6 32880_ACEOF
10f2d63a
VZ
32881
32882fi
32883
32884if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
10f2d63a 32886#define wxUSE_LISTBOX 1
e6cc62c6 32887_ACEOF
10f2d63a 32888
1e6feb95 32889 USES_CONTROLS=1
10f2d63a
VZ
32890fi
32891
32892if test "$wxUSE_LISTCTRL" = "yes"; then
32893 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32894 cat >>confdefs.h <<\_ACEOF
10f2d63a 32895#define wxUSE_LISTCTRL 1
e6cc62c6 32896_ACEOF
10f2d63a 32897
1e6feb95 32898 USES_CONTROLS=1
10f2d63a
VZ
32899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32900 else
e6cc62c6
VS
32901 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32902echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32903 fi
32904fi
32905
32906if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32907 cat >>confdefs.h <<\_ACEOF
10f2d63a 32908#define wxUSE_NOTEBOOK 1
e6cc62c6 32909_ACEOF
10f2d63a 32910
1e6feb95 32911 USES_CONTROLS=1
10f2d63a
VZ
32912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32913fi
32914
24176f2c 32915
10f2d63a 32916if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32917 cat >>confdefs.h <<\_ACEOF
10f2d63a 32918#define wxUSE_RADIOBOX 1
e6cc62c6 32919_ACEOF
10f2d63a 32920
1e6feb95 32921 USES_CONTROLS=1
10f2d63a
VZ
32922fi
32923
32924if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
10f2d63a 32926#define wxUSE_RADIOBTN 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
1e6feb95 32929 USES_CONTROLS=1
10f2d63a
VZ
32930fi
32931
32932if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
10f2d63a 32934#define wxUSE_SASH 1
e6cc62c6 32935_ACEOF
10f2d63a
VZ
32936
32937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32938fi
32939
32940if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32941 cat >>confdefs.h <<\_ACEOF
10f2d63a 32942#define wxUSE_SCROLLBAR 1
e6cc62c6 32943_ACEOF
10f2d63a 32944
1e6feb95 32945 USES_CONTROLS=1
741a9306 32946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32947fi
32948
32949if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32950 cat >>confdefs.h <<\_ACEOF
10f2d63a 32951#define wxUSE_SLIDER 1
e6cc62c6 32952_ACEOF
10f2d63a 32953
1e6feb95 32954 USES_CONTROLS=1
10f2d63a
VZ
32955fi
32956
32957if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32958 cat >>confdefs.h <<\_ACEOF
10f2d63a 32959#define wxUSE_SPINBTN 1
e6cc62c6 32960_ACEOF
10f2d63a 32961
1e6feb95 32962 USES_CONTROLS=1
10f2d63a
VZ
32963fi
32964
56cfaa52 32965if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32966 cat >>confdefs.h <<\_ACEOF
56cfaa52 32967#define wxUSE_SPINCTRL 1
e6cc62c6 32968_ACEOF
56cfaa52 32969
1e6feb95 32970 USES_CONTROLS=1
56cfaa52
RR
32971fi
32972
10f2d63a 32973if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32974 cat >>confdefs.h <<\_ACEOF
10f2d63a 32975#define wxUSE_SPLITTER 1
e6cc62c6 32976_ACEOF
10f2d63a
VZ
32977
32978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32979fi
32980
32981if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32982 cat >>confdefs.h <<\_ACEOF
10f2d63a 32983#define wxUSE_STATBMP 1
e6cc62c6 32984_ACEOF
10f2d63a 32985
1e6feb95 32986 USES_CONTROLS=1
10f2d63a
VZ
32987fi
32988
32989if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32990 cat >>confdefs.h <<\_ACEOF
10f2d63a 32991#define wxUSE_STATBOX 1
e6cc62c6 32992_ACEOF
10f2d63a 32993
1e6feb95
VZ
32994 USES_CONTROLS=1
32995fi
32996
32997if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32998 cat >>confdefs.h <<\_ACEOF
1e6feb95 32999#define wxUSE_STATTEXT 1
e6cc62c6 33000_ACEOF
1e6feb95
VZ
33001
33002 USES_CONTROLS=1
10f2d63a
VZ
33003fi
33004
33005if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
10f2d63a 33007#define wxUSE_STATLINE 1
e6cc62c6 33008_ACEOF
10f2d63a 33009
89e6bf6d 33010 USES_CONTROLS=1
10f2d63a
VZ
33011fi
33012
33013if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 33014 cat >>confdefs.h <<\_ACEOF
10f2d63a 33015#define wxUSE_STATUSBAR 1
e6cc62c6 33016_ACEOF
10f2d63a 33017
1e6feb95 33018 USES_CONTROLS=1
698dcdb6 33019
2286341c 33020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33021fi
33022
33023if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33024 cat >>confdefs.h <<\_ACEOF
10f2d63a 33025#define wxUSE_TAB_DIALOG 1
e6cc62c6 33026_ACEOF
10f2d63a
VZ
33027
33028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33029fi
33030
1e6feb95 33031if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33032 cat >>confdefs.h <<\_ACEOF
1e6feb95 33033#define wxUSE_TEXTCTRL 1
e6cc62c6 33034_ACEOF
1e6feb95
VZ
33035
33036 USES_CONTROLS=1
33037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33038fi
33039
1db8dc4a 33040if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33041 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33042 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33043echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33044 wxUSE_TOGGLEBTN=no
33045 fi
33046 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33047 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33048echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33049 wxUSE_TOGGLEBTN=no
33050 fi
33051
33052 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33053 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33054#define wxUSE_TOGGLEBTN 1
e6cc62c6 33055_ACEOF
1db8dc4a 33056
1e6feb95 33057 USES_CONTROLS=1
a45d7ab7 33058 fi
1db8dc4a
VZ
33059fi
33060
360d6699 33061if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33062 cat >>confdefs.h <<\_ACEOF
360d6699 33063#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33064_ACEOF
360d6699
VZ
33065
33066 wxUSE_TOOLBAR="yes"
1e6feb95 33067 USES_CONTROLS=1
360d6699
VZ
33068fi
33069
10f2d63a 33070if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33071 cat >>confdefs.h <<\_ACEOF
10f2d63a 33072#define wxUSE_TOOLBAR 1
e6cc62c6 33073_ACEOF
10f2d63a 33074
1e6feb95 33075 USES_CONTROLS=1
698dcdb6 33076
360d6699
VZ
33077 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33078 wxUSE_TOOLBAR_NATIVE="yes"
33079 fi
33080
1e6feb95 33081 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33082 cat >>confdefs.h <<\_ACEOF
360d6699 33083#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33084_ACEOF
360d6699 33085
1e6feb95
VZ
33086 USES_CONTROLS=1
33087 fi
33088
33089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33090fi
33091
10f2d63a
VZ
33092if test "$wxUSE_TOOLTIPS" = "yes"; then
33093 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33094 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33095echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33096 else
89e6bf6d 33097 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33098 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33099echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33100 else
e6cc62c6 33101 cat >>confdefs.h <<\_ACEOF
10f2d63a 33102#define wxUSE_TOOLTIPS 1
e6cc62c6 33103_ACEOF
10f2d63a
VZ
33104
33105 fi
33106 fi
33107fi
33108
33109if test "$wxUSE_TREECTRL" = "yes"; then
33110 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33111 cat >>confdefs.h <<\_ACEOF
10f2d63a 33112#define wxUSE_TREECTRL 1
e6cc62c6 33113_ACEOF
10f2d63a 33114
1e6feb95 33115 USES_CONTROLS=1
10f2d63a
VZ
33116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33117 else
e6cc62c6
VS
33118 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33119echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33120 fi
33121fi
33122
9f41d601 33123if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33124 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33125 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33126echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33127 else
485cf710 33128 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33129 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33130echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33131 else
3c011993 33132 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33133 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33134echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33135 else
e6cc62c6 33136 cat >>confdefs.h <<\_ACEOF
9f41d601 33137#define wxUSE_POPUPWIN 1
e6cc62c6 33138_ACEOF
9f41d601 33139
8284b0c5 33140
3c011993
VZ
33141 USES_CONTROLS=1
33142 fi
485cf710 33143 fi
6abe4b65 33144 fi
9f41d601
RR
33145fi
33146
dd964dcc 33147if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33148 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33149 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33150echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33151 else
e6cc62c6 33152 cat >>confdefs.h <<\_ACEOF
dd964dcc 33153#define wxUSE_TIPWINDOW 1
e6cc62c6 33154_ACEOF
dd964dcc 33155
3c011993 33156 fi
dd964dcc
VZ
33157fi
33158
1e6feb95 33159if test "$USES_CONTROLS" = 1; then
e6cc62c6 33160 cat >>confdefs.h <<\_ACEOF
1e6feb95 33161#define wxUSE_CONTROLS 1
e6cc62c6 33162_ACEOF
10f2d63a 33163
10f2d63a
VZ
33164fi
33165
8284b0c5 33166
1e6feb95 33167
24fd6d87 33168if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33169 cat >>confdefs.h <<\_ACEOF
24fd6d87 33170#define wxUSE_DRAGIMAGE 1
e6cc62c6 33171_ACEOF
24fd6d87
VZ
33172
33173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33174fi
33175
7bb2947d 33176if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 33177 cat >>confdefs.h <<\_ACEOF
7bb2947d 33178#define wxUSE_ACCESSIBILITY 1
e6cc62c6 33179_ACEOF
7bb2947d
MB
33180
33181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33182fi
33183
1e6feb95 33184if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33185 cat >>confdefs.h <<\_ACEOF
1e6feb95 33186#define wxUSE_MENUS 1
e6cc62c6 33187_ACEOF
10f2d63a 33188
1e6feb95 33189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33190fi
33191
1e6feb95 33192if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33193 cat >>confdefs.h <<\_ACEOF
1e6feb95 33194#define wxUSE_METAFILE 1
e6cc62c6 33195_ACEOF
10f2d63a 33196
10f2d63a
VZ
33197fi
33198
1e6feb95 33199if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33200 cat >>confdefs.h <<\_ACEOF
1e6feb95 33201#define wxUSE_MIMETYPE 1
e6cc62c6 33202_ACEOF
10f2d63a 33203
10f2d63a
VZ
33204fi
33205
3e44f09d 33206if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33207 cat >>confdefs.h <<\_ACEOF
3e44f09d 33208#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33209_ACEOF
3e44f09d 33210
131f235d
VS
33211if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33212 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
33213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33214fi
33215
3e44f09d
VZ
33216fi
33217
10f2d63a 33218if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33219 cat >>confdefs.h <<\_ACEOF
10f2d63a 33220#define wxUSE_MINIFRAME 1
e6cc62c6 33221_ACEOF
10f2d63a
VZ
33222
33223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33224fi
33225
4d264332 33226USE_HTML=0
10f2d63a 33227if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33228 cat >>confdefs.h <<\_ACEOF
10f2d63a 33229#define wxUSE_HTML 1
e6cc62c6 33230_ACEOF
10f2d63a 33231
4d264332 33232 USE_HTML=1
c74dc163 33233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33234fi
33235
33236if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33237 cat >>confdefs.h <<\_ACEOF
1e487827 33238#define wxUSE_VALIDATORS 1
e6cc62c6 33239_ACEOF
703e0a69 33240
698dcdb6
VZ
33241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33242fi
33243
edae8572 33244if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33245 cat >>confdefs.h <<\_ACEOF
edae8572 33246#define wxUSE_PALETTE 1
e6cc62c6 33247_ACEOF
edae8572
VZ
33248
33249fi
33250
698dcdb6 33251if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33252 cat >>confdefs.h <<\_ACEOF
698dcdb6 33253#define wxUSE_IMAGE 1
e6cc62c6 33254_ACEOF
698dcdb6
VZ
33255
33256fi
33257
33258if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33259 cat >>confdefs.h <<\_ACEOF
698dcdb6 33260#define wxUSE_GIF 1
e6cc62c6 33261_ACEOF
698dcdb6
VZ
33262
33263fi
33264
33265if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33266 cat >>confdefs.h <<\_ACEOF
698dcdb6 33267#define wxUSE_PCX 1
e6cc62c6 33268_ACEOF
698dcdb6
VZ
33269
33270fi
33271
4b6b4dfc 33272if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33273 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33274#define wxUSE_IFF 1
e6cc62c6 33275_ACEOF
4b6b4dfc
RR
33276
33277fi
33278
698dcdb6 33279if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33280 cat >>confdefs.h <<\_ACEOF
698dcdb6 33281#define wxUSE_PNM 1
e6cc62c6 33282_ACEOF
698dcdb6
VZ
33283
33284fi
33285
33286if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33287 cat >>confdefs.h <<\_ACEOF
698dcdb6 33288#define wxUSE_XPM 1
e6cc62c6 33289_ACEOF
698dcdb6
VZ
33290
33291fi
33292
658974ae 33293if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33294 cat >>confdefs.h <<\_ACEOF
658974ae 33295#define wxUSE_ICO_CUR 1
e6cc62c6 33296_ACEOF
658974ae
VS
33297
33298fi
33299
a72a4bfa
VS
33300if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33301 LIBS=" -lunicows $LIBS"
33302fi
33303
8284b0c5 33304
1e6feb95 33305if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33306 cat >>confdefs.h <<\_ACEOF
1e6feb95 33307#define wxUSE_CHOICEDLG 1
e6cc62c6 33308_ACEOF
1e6feb95
VZ
33309
33310fi
33311
33312if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33313 cat >>confdefs.h <<\_ACEOF
1e6feb95 33314#define wxUSE_COLOURDLG 1
e6cc62c6 33315_ACEOF
1e6feb95
VZ
33316
33317fi
33318
33319if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33320 cat >>confdefs.h <<\_ACEOF
1e6feb95 33321#define wxUSE_FILEDLG 1
e6cc62c6 33322_ACEOF
1e6feb95
VZ
33323
33324fi
33325
8db37e06 33326if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33327 cat >>confdefs.h <<\_ACEOF
8db37e06 33328#define wxUSE_FINDREPLDLG 1
e6cc62c6 33329_ACEOF
8db37e06
VZ
33330
33331fi
33332
1e6feb95 33333if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33334 cat >>confdefs.h <<\_ACEOF
1e6feb95 33335#define wxUSE_FONTDLG 1
e6cc62c6 33336_ACEOF
1e6feb95
VZ
33337
33338fi
33339
33340if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33341 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33342 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33343echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33344 else
e6cc62c6 33345 cat >>confdefs.h <<\_ACEOF
1e6feb95 33346#define wxUSE_DIRDLG 1
e6cc62c6 33347_ACEOF
1e6feb95 33348
1e6feb95
VZ
33349 fi
33350fi
33351
33352if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33353 cat >>confdefs.h <<\_ACEOF
1e6feb95 33354#define wxUSE_MSGDLG 1
e6cc62c6 33355_ACEOF
1e6feb95
VZ
33356
33357fi
33358
33359if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33360 cat >>confdefs.h <<\_ACEOF
1e6feb95 33361#define wxUSE_NUMBERDLG 1
e6cc62c6 33362_ACEOF
1e6feb95
VZ
33363
33364fi
33365
33366if test "$wxUSE_PROGRESSDLG" = "yes"; then
33367 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33368 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33369echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33370 else
e6cc62c6 33371 cat >>confdefs.h <<\_ACEOF
1e6feb95 33372#define wxUSE_PROGRESSDLG 1
e6cc62c6 33373_ACEOF
1e6feb95
VZ
33374
33375 fi
33376fi
33377
cbca9943 33378if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33379 cat >>confdefs.h <<\_ACEOF
cbca9943 33380#define wxUSE_SPLASH 1
e6cc62c6 33381_ACEOF
cbca9943
VZ
33382
33383fi
33384
1e6feb95
VZ
33385if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33386 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33387 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33388echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33389 else
e6cc62c6 33390 cat >>confdefs.h <<\_ACEOF
1e6feb95 33391#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33392_ACEOF
1e6feb95 33393
7b4a847f
RR
33394 fi
33395fi
579d8138 33396
8284b0c5 33397if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33398 cat >>confdefs.h <<\_ACEOF
8284b0c5 33399#define wxUSE_TEXTDLG 1
e6cc62c6 33400_ACEOF
8284b0c5
MB
33401
33402fi
33403
33404if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33405 cat >>confdefs.h <<\_ACEOF
8284b0c5 33406#define wxUSE_WIZARDDLG 1
e6cc62c6 33407_ACEOF
8284b0c5
MB
33408
33409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33410fi
33411
33412
33413if test "$cross_compiling" = "yes"; then
33414 OSINFO="\"$host\""
33415else
33416 OSINFO=`uname -s -r -m`
33417 OSINFO="\"$OSINFO\""
33418fi
33419
e6cc62c6 33420cat >>confdefs.h <<_ACEOF
8284b0c5 33421#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33422_ACEOF
8284b0c5
MB
33423
33424
33425
33426if test "x$prefix" != "xNONE"; then
33427 wxPREFIX=$prefix
33428else
33429 wxPREFIX=$ac_default_prefix
33430fi
33431
e6cc62c6 33432cat >>confdefs.h <<_ACEOF
8284b0c5 33433#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33434_ACEOF
8284b0c5
MB
33435
33436
e6cc62c6 33437top_builddir_wxconfig=`pwd`
52c71b80 33438
8284b0c5
MB
33439
33440
edd891e2
VS
33441CORE_BASE_LIBS="net base"
33442CORE_GUI_LIBS="adv core"
33443
33444if test "$wxUSE_XML" = "yes" ; then
33445 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33446fi
45293562
VS
33447if test "$wxUSE_ODBC" != "no" ; then
33448 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33449 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33450fi
33451if test "$wxUSE_HTML" = "yes" ; then
33452 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33453fi
33454
33455
33456
33457
33458
33459
33460
8284b0c5
MB
33461
33462if test "$wxUSE_MAC" = 1 ; then
33463 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33464fi
ac0c4cc3
DE
33465if test "$wxUSE_COCOA" = 1 ; then
33466 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33467fi
8284b0c5
MB
33468
33469
2b5f62a0
VZ
33470LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33471
33472have_cos=0
33473have_floor=0
e6cc62c6 33474
2b5f62a0
VZ
33475for ac_func in cos
33476do
e6cc62c6
VS
33477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33478echo "$as_me:$LINENO: checking for $ac_func" >&5
33479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33480if eval "test \"\${$as_ac_var+set}\" = set"; then
33481 echo $ECHO_N "(cached) $ECHO_C" >&6
33482else
33483 cat >conftest.$ac_ext <<_ACEOF
33484#line $LINENO "configure"
33485/* confdefs.h. */
33486_ACEOF
33487cat confdefs.h >>conftest.$ac_ext
33488cat >>conftest.$ac_ext <<_ACEOF
33489/* end confdefs.h. */
2b5f62a0 33490/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33491 which can conflict with char $ac_func (); below.
33492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33493 <limits.h> exists even on freestanding compilers. */
33494#ifdef __STDC__
33495# include <limits.h>
33496#else
33497# include <assert.h>
33498#endif
2b5f62a0 33499/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33500#ifdef __cplusplus
33501extern "C"
33502{
33503#endif
2b5f62a0 33504/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33505 builtin and then its argument prototype would still apply. */
33506char $ac_func ();
2b5f62a0
VZ
33507/* The GNU C library defines this for functions which it implements
33508 to always fail with ENOSYS. Some functions are actually named
33509 something starting with __ and the normal name is an alias. */
33510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33511choke me
33512#else
e6cc62c6
VS
33513char (*f) () = $ac_func;
33514#endif
33515#ifdef __cplusplus
33516}
2b5f62a0
VZ
33517#endif
33518
e6cc62c6
VS
33519int
33520main ()
33521{
33522return f != $ac_func;
33523 ;
33524 return 0;
33525}
33526_ACEOF
33527rm -f conftest.$ac_objext conftest$ac_exeext
33528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33529 (eval $ac_link) 2>&5
33530 ac_status=$?
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
33533 { ac_try='test -s conftest$ac_exeext'
33534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535 (eval $ac_try) 2>&5
33536 ac_status=$?
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; }; then
33539 eval "$as_ac_var=yes"
33540else
33541 echo "$as_me: failed program was:" >&5
33542sed 's/^/| /' conftest.$ac_ext >&5
33543
33544eval "$as_ac_var=no"
33545fi
33546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33547fi
33548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33550if test `eval echo '${'$as_ac_var'}'` = yes; then
33551 cat >>confdefs.h <<_ACEOF
33552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33553_ACEOF
2b5f62a0 33554 have_cos=1
2b5f62a0
VZ
33555fi
33556done
33557
e6cc62c6 33558
2b5f62a0
VZ
33559for ac_func in floor
33560do
e6cc62c6
VS
33561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33562echo "$as_me:$LINENO: checking for $ac_func" >&5
33563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33564if eval "test \"\${$as_ac_var+set}\" = set"; then
33565 echo $ECHO_N "(cached) $ECHO_C" >&6
33566else
33567 cat >conftest.$ac_ext <<_ACEOF
33568#line $LINENO "configure"
33569/* confdefs.h. */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h. */
2b5f62a0 33574/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33575 which can conflict with char $ac_func (); below.
33576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33577 <limits.h> exists even on freestanding compilers. */
33578#ifdef __STDC__
33579# include <limits.h>
33580#else
33581# include <assert.h>
33582#endif
2b5f62a0 33583/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33584#ifdef __cplusplus
33585extern "C"
33586{
33587#endif
2b5f62a0 33588/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33589 builtin and then its argument prototype would still apply. */
33590char $ac_func ();
2b5f62a0
VZ
33591/* The GNU C library defines this for functions which it implements
33592 to always fail with ENOSYS. Some functions are actually named
33593 something starting with __ and the normal name is an alias. */
33594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33595choke me
33596#else
e6cc62c6
VS
33597char (*f) () = $ac_func;
33598#endif
33599#ifdef __cplusplus
33600}
2b5f62a0
VZ
33601#endif
33602
e6cc62c6
VS
33603int
33604main ()
33605{
33606return f != $ac_func;
33607 ;
33608 return 0;
33609}
33610_ACEOF
33611rm -f conftest.$ac_objext conftest$ac_exeext
33612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33613 (eval $ac_link) 2>&5
33614 ac_status=$?
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); } &&
33617 { ac_try='test -s conftest$ac_exeext'
33618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619 (eval $ac_try) 2>&5
33620 ac_status=$?
33621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622 (exit $ac_status); }; }; then
33623 eval "$as_ac_var=yes"
33624else
33625 echo "$as_me: failed program was:" >&5
33626sed 's/^/| /' conftest.$ac_ext >&5
33627
33628eval "$as_ac_var=no"
33629fi
33630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33631fi
33632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33634if test `eval echo '${'$as_ac_var'}'` = yes; then
33635 cat >>confdefs.h <<_ACEOF
33636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33637_ACEOF
2b5f62a0 33638 have_floor=1
2b5f62a0
VZ
33639fi
33640done
33641
e6cc62c6
VS
33642echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33643echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33644if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33645 echo "$as_me:$LINENO: result: yes" >&5
33646echo "${ECHO_T}yes" >&6
2b5f62a0 33647else
e6cc62c6
VS
33648 echo "$as_me:$LINENO: result: no" >&5
33649echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33650 LIBS="$LIBS -lm"
33651 # use different functions to avoid configure caching
33652 have_sin=0
33653 have_ceil=0
e6cc62c6
VS
33654
33655for ac_func in sin
2b5f62a0 33656do
e6cc62c6
VS
33657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33658echo "$as_me:$LINENO: checking for $ac_func" >&5
33659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33660if eval "test \"\${$as_ac_var+set}\" = set"; then
33661 echo $ECHO_N "(cached) $ECHO_C" >&6
33662else
33663 cat >conftest.$ac_ext <<_ACEOF
33664#line $LINENO "configure"
33665/* confdefs.h. */
33666_ACEOF
33667cat confdefs.h >>conftest.$ac_ext
33668cat >>conftest.$ac_ext <<_ACEOF
33669/* end confdefs.h. */
2b5f62a0 33670/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33671 which can conflict with char $ac_func (); below.
33672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33673 <limits.h> exists even on freestanding compilers. */
33674#ifdef __STDC__
33675# include <limits.h>
33676#else
33677# include <assert.h>
33678#endif
2b5f62a0 33679/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33680#ifdef __cplusplus
33681extern "C"
33682{
33683#endif
2b5f62a0 33684/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33685 builtin and then its argument prototype would still apply. */
33686char $ac_func ();
2b5f62a0
VZ
33687/* The GNU C library defines this for functions which it implements
33688 to always fail with ENOSYS. Some functions are actually named
33689 something starting with __ and the normal name is an alias. */
33690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33691choke me
33692#else
e6cc62c6
VS
33693char (*f) () = $ac_func;
33694#endif
33695#ifdef __cplusplus
33696}
2b5f62a0
VZ
33697#endif
33698
e6cc62c6
VS
33699int
33700main ()
33701{
33702return f != $ac_func;
33703 ;
33704 return 0;
33705}
33706_ACEOF
33707rm -f conftest.$ac_objext conftest$ac_exeext
33708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33709 (eval $ac_link) 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } &&
33713 { ac_try='test -s conftest$ac_exeext'
33714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33715 (eval $ac_try) 2>&5
33716 ac_status=$?
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); }; }; then
33719 eval "$as_ac_var=yes"
33720else
33721 echo "$as_me: failed program was:" >&5
33722sed 's/^/| /' conftest.$ac_ext >&5
33723
33724eval "$as_ac_var=no"
33725fi
33726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33727fi
33728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33729echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33730if test `eval echo '${'$as_ac_var'}'` = yes; then
33731 cat >>confdefs.h <<_ACEOF
33732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33733_ACEOF
2b5f62a0 33734 have_sin=1
2b5f62a0
VZ
33735fi
33736done
33737
e6cc62c6
VS
33738
33739for ac_func in ceil
2b5f62a0 33740do
e6cc62c6
VS
33741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33742echo "$as_me:$LINENO: checking for $ac_func" >&5
33743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33744if eval "test \"\${$as_ac_var+set}\" = set"; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33746else
33747 cat >conftest.$ac_ext <<_ACEOF
33748#line $LINENO "configure"
33749/* confdefs.h. */
33750_ACEOF
33751cat confdefs.h >>conftest.$ac_ext
33752cat >>conftest.$ac_ext <<_ACEOF
33753/* end confdefs.h. */
2b5f62a0 33754/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33755 which can conflict with char $ac_func (); below.
33756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33757 <limits.h> exists even on freestanding compilers. */
33758#ifdef __STDC__
33759# include <limits.h>
33760#else
33761# include <assert.h>
33762#endif
2b5f62a0 33763/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33764#ifdef __cplusplus
33765extern "C"
33766{
33767#endif
2b5f62a0 33768/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33769 builtin and then its argument prototype would still apply. */
33770char $ac_func ();
2b5f62a0
VZ
33771/* The GNU C library defines this for functions which it implements
33772 to always fail with ENOSYS. Some functions are actually named
33773 something starting with __ and the normal name is an alias. */
33774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33775choke me
33776#else
e6cc62c6
VS
33777char (*f) () = $ac_func;
33778#endif
33779#ifdef __cplusplus
33780}
2b5f62a0
VZ
33781#endif
33782
e6cc62c6
VS
33783int
33784main ()
33785{
33786return f != $ac_func;
33787 ;
33788 return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext conftest$ac_exeext
33792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33793 (eval $ac_link) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } &&
33797 { ac_try='test -s conftest$ac_exeext'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 eval "$as_ac_var=yes"
33804else
33805 echo "$as_me: failed program was:" >&5
33806sed 's/^/| /' conftest.$ac_ext >&5
33807
33808eval "$as_ac_var=no"
33809fi
33810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33811fi
33812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33814if test `eval echo '${'$as_ac_var'}'` = yes; then
33815 cat >>confdefs.h <<_ACEOF
33816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33817_ACEOF
2b5f62a0 33818 have_ceil=1
2b5f62a0
VZ
33819fi
33820done
33821
e6cc62c6
VS
33822 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33823echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33824 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33825 echo "$as_me:$LINENO: result: yes" >&5
33826echo "${ECHO_T}yes" >&6
2b5f62a0 33827 else
e6cc62c6
VS
33828 echo "$as_me:$LINENO: result: no" >&5
33829echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33830 # not sure we should warn the user, crash, etc.
33831 fi
33832fi
8284b0c5
MB
33833
33834if test "$wxUSE_GUI" = "yes"; then
33835
e6cc62c6 33836
8284b0c5
MB
33837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33838 drawing dynamic erase event exec font image \
1dd02ac0 33839 minimal propsize rotate shaped widgets render"
b625909c
VS
33840
33841 if test "$wxUSE_MONOLITHIC" != "yes"; then
33842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33843 fi
8284b0c5
MB
33844else
33845 SAMPLES_SUBDIRS="console"
33846fi
33847
33848
e6cc62c6 33849INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33850-I\${top_srcdir}/include \
33851$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33852$TOOLKIT_INCLUDE"
33853
fddeb06b
VS
33854if test "$GXX" = yes ; then
33855 CXXWARNINGS="-Wall"
33856 fi
33857
33858EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33859
95318f7d 33860CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33861CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33862CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33863
33864
fddeb06b 33865LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33866EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33867EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33868EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33869if test "$wxUSE_GUI" = "yes"; then
33870 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33871fi
34b08d2c
VS
33872if test "$wxUSE_OPENGL" = "yes"; then
33873 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33874fi
fddeb06b
VS
33875
33876LDFLAGS="$LDFLAGS $PROFILE"
33877
8284b0c5
MB
33878if test "$wxUSE_GTK" = 1; then
33879 WXCONFIG_INCLUDE=
33880else
33881 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33882fi
33883
67c13b6c
VS
33884WXCONFIG_EXTRALIBS="$LIBS"
33885
33886if test "$wxUSE_REGEX" = "builtin" ; then
33887 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33888fi
33889if test "$wxUSE_EXPAT" = "builtin" ; then
33890 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33891fi
33892if test "$wxUSE_ODBC" = "builtin" ; then
33893 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33894fi
33895if test "$wxUSE_LIBTIFF" = "builtin" ; then
33896 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33897fi
33898if test "$wxUSE_LIBJPEG" = "builtin" ; then
33899 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33900fi
33901if test "$wxUSE_LIBPNG" = "builtin" ; then
33902 wxconfig_3rdparty="$wxconfig_3rdparty png"
33903fi
33904if test "$wxUSE_ZLIB" = "builtin" ; then
33905 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33906fi
bb41dcbe
VS
33907if test "$wxUSE_ODBC" = "builtin" ; then
33908 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33909fi
67c13b6c
VS
33910
33911for i in $wxconfig_3rdparty ; do
33912 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33913done
33914
33915
fe0895cf
VS
33916if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33917 WXUNIV=1
33918else
33919 WXUNIV=0
8284b0c5
MB
33920fi
33921
8284b0c5
MB
33922
33923
33924
33925
33926
33927
33928
672abd7a 33929
9747f85d
VS
33930if test $wxUSE_MONOLITHIC = "yes" ; then
33931 MONOLITHIC=1
33932else
33933 MONOLITHIC=0
33934fi
8284b0c5 33935
bb41dcbe
VS
33936if test $wxUSE_ODBC != "no" ; then
33937 USE_ODBC=1
33938else
33939 USE_ODBC=0
33940fi
33941
029b47ad
VS
33942if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33943 OFFICIAL_BUILD=1
33944else
33945 OFFICIAL_BUILD=0
33946fi
33947
8ee2dd05
VS
33948
33949
33950
8284b0c5
MB
33951
33952
33953
33954
33955
33956
c74dc163 33957
34b08d2c 33958
672abd7a 33959
cf615ebb 33960
6c67131a
VS
33961
33962
bb41dcbe 33963
fe0895cf 33964TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33965
33966
33967
33968
33969
ea66c762 33970
0f1bc9c2 33971
fe0895cf 33972 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33973
33974 if test -n "$ac_tool_prefix"; then
33975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33976set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33977echo "$as_me:$LINENO: checking for $ac_word" >&5
33978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33979if test "${ac_cv_prog_RANLIB+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33981else
fe0895cf
VS
33982 if test -n "$RANLIB"; then
33983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33984else
e6cc62c6
VS
33985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33986for as_dir in $PATH
33987do
33988 IFS=$as_save_IFS
33989 test -z "$as_dir" && as_dir=.
33990 for ac_exec_ext in '' $ac_executable_extensions; do
33991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33994 break 2
33995 fi
33996done
33997done
33998
10f2d63a 33999fi
10f2d63a 34000fi
e6cc62c6 34001RANLIB=$ac_cv_prog_RANLIB
fe0895cf 34002if test -n "$RANLIB"; then
e6cc62c6
VS
34003 echo "$as_me:$LINENO: result: $RANLIB" >&5
34004echo "${ECHO_T}$RANLIB" >&6
34005else
34006 echo "$as_me:$LINENO: result: no" >&5
34007echo "${ECHO_T}no" >&6
34008fi
34009
34010fi
34011if test -z "$ac_cv_prog_RANLIB"; then
34012 ac_ct_RANLIB=$RANLIB
34013 # Extract the first word of "ranlib", so it can be a program name with args.
34014set dummy ranlib; ac_word=$2
34015echo "$as_me:$LINENO: checking for $ac_word" >&5
34016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34017if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34019else
34020 if test -n "$ac_ct_RANLIB"; then
34021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34022else
34023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34024for as_dir in $PATH
34025do
34026 IFS=$as_save_IFS
34027 test -z "$as_dir" && as_dir=.
34028 for ac_exec_ext in '' $ac_executable_extensions; do
34029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34030 ac_cv_prog_ac_ct_RANLIB="ranlib"
34031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34032 break 2
34033 fi
34034done
34035done
34036
34037 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34038fi
34039fi
34040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34041if test -n "$ac_ct_RANLIB"; then
34042 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34043echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34044else
e6cc62c6
VS
34045 echo "$as_me:$LINENO: result: no" >&5
34046echo "${ECHO_T}no" >&6
34047fi
34048
34049 RANLIB=$ac_ct_RANLIB
34050else
34051 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34052fi
665bbe97 34053
fe0895cf
VS
34054 # Find a good install program. We prefer a C program (faster),
34055# so one script is as good as another. But avoid the broken or
34056# incompatible versions:
34057# SysV /etc/install, /usr/sbin/install
34058# SunOS /usr/etc/install
34059# IRIX /sbin/install
34060# AIX /bin/install
e6cc62c6 34061# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34062# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34063# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34064# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34065# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34066echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34067echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34068if test -z "$INSTALL"; then
e6cc62c6
VS
34069if test "${ac_cv_path_install+set}" = set; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34071else
34072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34073for as_dir in $PATH
34074do
34075 IFS=$as_save_IFS
34076 test -z "$as_dir" && as_dir=.
34077 # Account for people who put trailing slashes in PATH elements.
34078case $as_dir/ in
34079 ./ | .// | /cC/* | \
34080 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34081 /usr/ucb/* ) ;;
34082 *)
34083 # OSF1 and SCO ODT 3.0 have their own names for install.
34084 # Don't use installbsd from OSF since it installs stuff as root
34085 # by default.
34086 for ac_prog in ginstall scoinst install; do
34087 for ac_exec_ext in '' $ac_executable_extensions; do
34088 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34089 if test $ac_prog = install &&
34090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34091 # AIX install. It has an incompatible calling convention.
34092 :
34093 elif test $ac_prog = install &&
34094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34095 # program-specific install script used by HP pwplus--don't use.
34096 :
34097 else
34098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34099 break 3
34100 fi
34101 fi
fe0895cf 34102 done
e6cc62c6
VS
34103 done
34104 ;;
34105esac
34106done
34107
fe0895cf
VS
34108
34109fi
34110 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34111 INSTALL=$ac_cv_path_install
fe0895cf
VS
34112 else
34113 # As a last resort, use the slow shell script. We don't cache a
34114 # path for INSTALL within a source directory, because that will
34115 # break other packages using the cache if that directory is
34116 # removed, or if the path is relative.
e6cc62c6 34117 INSTALL=$ac_install_sh
fe0895cf
VS
34118 fi
34119fi
e6cc62c6
VS
34120echo "$as_me:$LINENO: result: $INSTALL" >&5
34121echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34122
34123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34124# It thinks the first close brace ends the variable substitution.
34125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34126
e6cc62c6 34127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34128
34129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34130
e6cc62c6
VS
34131 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34132echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34133LN_S=$as_ln_s
34134if test "$LN_S" = "ln -s"; then
34135 echo "$as_me:$LINENO: result: yes" >&5
34136echo "${ECHO_T}yes" >&6
fe0895cf 34137else
e6cc62c6
VS
34138 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34139echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34140fi
34141
34142
e6cc62c6
VS
34143 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34144echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34145set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34146if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34147 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34148else
e6cc62c6 34149 cat >conftest.make <<\_ACEOF
fe0895cf 34150all:
e6cc62c6
VS
34151 @echo 'ac_maketemp="$(MAKE)"'
34152_ACEOF
fe0895cf 34153# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34154eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34155if test -n "$ac_maketemp"; then
34156 eval ac_cv_prog_make_${ac_make}_set=yes
34157else
34158 eval ac_cv_prog_make_${ac_make}_set=no
34159fi
e6cc62c6 34160rm -f conftest.make
fe0895cf
VS
34161fi
34162if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34163 echo "$as_me:$LINENO: result: yes" >&5
34164echo "${ECHO_T}yes" >&6
fe0895cf
VS
34165 SET_MAKE=
34166else
e6cc62c6
VS
34167 echo "$as_me:$LINENO: result: no" >&5
34168echo "${ECHO_T}no" >&6
fe0895cf
VS
34169 SET_MAKE="MAKE=${MAKE-make}"
34170fi
34171
e6cc62c6
VS
34172
34173
fe0895cf
VS
34174 if test "$build" != "$host" ; then
34175 AR=$host_alias-ar
34176 STRIP=$host_alias-strip
34177 else
34178 # Extract the first word of "ar", so it can be a program name with args.
34179set dummy ar; ac_word=$2
e6cc62c6
VS
34180echo "$as_me:$LINENO: checking for $ac_word" >&5
34181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34182if test "${ac_cv_prog_AR+set}" = set; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34184else
34185 if test -n "$AR"; then
34186 ac_cv_prog_AR="$AR" # Let the user override the test.
34187else
e6cc62c6
VS
34188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34189for as_dir in $PATH
34190do
34191 IFS=$as_save_IFS
34192 test -z "$as_dir" && as_dir=.
34193 for ac_exec_ext in '' $ac_executable_extensions; do
34194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34195 ac_cv_prog_AR="ar"
34196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34197 break 2
34198 fi
34199done
34200done
34201
fe0895cf
VS
34202 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34203fi
34204fi
e6cc62c6 34205AR=$ac_cv_prog_AR
fe0895cf 34206if test -n "$AR"; then
e6cc62c6
VS
34207 echo "$as_me:$LINENO: result: $AR" >&5
34208echo "${ECHO_T}$AR" >&6
fe0895cf 34209else
e6cc62c6
VS
34210 echo "$as_me:$LINENO: result: no" >&5
34211echo "${ECHO_T}no" >&6
fe0895cf
VS
34212fi
34213
34214 # Extract the first word of "strip", so it can be a program name with args.
34215set dummy strip; ac_word=$2
e6cc62c6
VS
34216echo "$as_me:$LINENO: checking for $ac_word" >&5
34217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34218if test "${ac_cv_prog_STRIP+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34220else
34221 if test -n "$STRIP"; then
34222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34223else
e6cc62c6
VS
34224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225for as_dir in $PATH
34226do
34227 IFS=$as_save_IFS
34228 test -z "$as_dir" && as_dir=.
34229 for ac_exec_ext in '' $ac_executable_extensions; do
34230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34231 ac_cv_prog_STRIP="strip"
34232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34233 break 2
34234 fi
34235done
34236done
34237
fe0895cf
VS
34238 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34239fi
34240fi
e6cc62c6 34241STRIP=$ac_cv_prog_STRIP
fe0895cf 34242if test -n "$STRIP"; then
e6cc62c6
VS
34243 echo "$as_me:$LINENO: result: $STRIP" >&5
34244echo "${ECHO_T}$STRIP" >&6
fe0895cf 34245else
e6cc62c6
VS
34246 echo "$as_me:$LINENO: result: no" >&5
34247echo "${ECHO_T}no" >&6
fe0895cf
VS
34248fi
34249
34250 fi
34251
34252 case ${host} in
34253 *-hp-hpux* )
34254 INSTALL_DIR="mkdir"
34255 ;;
34256 *) INSTALL_DIR="$INSTALL -d"
34257 ;;
34258 esac
e6cc62c6 34259
fe0895cf 34260
6b9d41a5
VS
34261 LDFLAGS_GUI=
34262 case ${host} in
34263 *-*-cygwin* | *-*-mingw32* )
34264 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34265 esac
34266
34267
fe0895cf 34268 fi
e6cc62c6
VS
34269
34270 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34271echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34272if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34273 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34274else
e6cc62c6 34275
fe0895cf
VS
34276 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34277 egrep -s GNU > /dev/null); then
34278 bakefile_cv_prog_makeisgnu="yes"
34279 else
34280 bakefile_cv_prog_makeisgnu="no"
34281 fi
fe0895cf 34282
e6cc62c6 34283fi
49b0a3aa
VS
34284echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34285echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34286
34287 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34288 IF_GNU_MAKE=""
34289 else
34290 IF_GNU_MAKE="#"
34291 fi
fe0895cf 34292
e6cc62c6
VS
34293
34294
fe0895cf
VS
34295 PLATFORM_UNIX=0
34296 PLATFORM_WIN32=0
34297 PLATFORM_MSDOS=0
34298 PLATFORM_MAC=0
34299 PLATFORM_MACOSX=0
e6cc62c6 34300
fe0895cf
VS
34301 case "${host}" in
34302 *-*-cygwin* | *-*-mingw32* )
34303 PLATFORM_WIN32=1
34304 ;;
34305 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34306 PLATFORM_MSDOS=1
34307 ;;
34308 powerpc-*-darwin* )
34309 PLATFORM_MAC=1
34310 PLATFORM_MACOSX=1
34311 ;;
34312 * )
34313 PLATFORM_UNIX=1
34314 ;;
34315 esac
34316
fe0895cf 34317
e6cc62c6
VS
34318
34319
34320
34321
34322
34323
fe0895cf 34324 SO_SUFFIX="so"
131f235d 34325 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34326 EXEEXT=""
34327 DLLPREFIX=lib
131f235d 34328 DLLPREFIX_MODULE=
e6cc62c6 34329
fe0895cf
VS
34330 case "${host}" in
34331 *-hp-hpux* )
34332 SO_SUFFIX="sl"
131f235d 34333 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34334 ;;
34335 *-*-aix* )
34336 SO_SUFFIX="a"
131f235d 34337 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34338 ;;
34339 *-*-cygwin* | *-*-mingw32* )
34340 SO_SUFFIX="dll"
131f235d 34341 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34342 EXEEXT=".exe"
34343 DLLPREFIX=""
34344 ;;
34345 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34346 EXEEXT=".exe"
34347 DLLPREFIX=""
34348 ;;
34349 powerpc-*-darwin* )
34350 SO_SUFFIX="dylib"
131f235d 34351 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34352 ;;
34353 esac
34354
fe0895cf 34355
e6cc62c6
VS
34356
34357
34358
34359
131f235d
VS
34360
34361
fe0895cf
VS
34362 SHARED_LD_CC="\$(CC) -shared -o"
34363 SHARED_LD_CXX="\$(CXX) -shared -o"
34364
34365 if test "x$GCC" = "xyes"; then
34366 PIC_FLAG="-fPIC"
34367 fi
34368
34369 case "${host}" in
34370 *-hp-hpux* )
34371 if test "x$GCC" = "xyes"; then
34372 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34373 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34374 else
34375 LDFLAGS="$LDFLAGS -L/usr/lib"
34376
34377 SHARED_LD_CC="${CC} -b -o"
34378 SHARED_LD_CXX="${CXX} -b -o"
34379 PIC_FLAG="+Z"
34380 fi
34381 ;;
34382
34383 *-*-linux* )
34384 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34385 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34386echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34387if test "${bakefile_cv_prog_icc+set}" = set; then
34388 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34389else
fe0895cf 34390
e6cc62c6
VS
34391 cat >conftest.$ac_ext <<_ACEOF
34392#line $LINENO "configure"
34393/* confdefs.h. */
34394_ACEOF
34395cat confdefs.h >>conftest.$ac_ext
34396cat >>conftest.$ac_ext <<_ACEOF
34397/* end confdefs.h. */
34398
34399int
34400main ()
34401{
fe0895cf
VS
34402
34403 #ifndef __INTEL_COMPILER
34404 #error Not icc
34405 #endif
e6cc62c6
VS
34406
34407 ;
34408 return 0;
34409}
34410_ACEOF
34411rm -f conftest.$ac_objext
34412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34413 (eval $ac_compile) 2>&5
34414 ac_status=$?
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); } &&
34417 { ac_try='test -s conftest.$ac_objext'
34418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419 (eval $ac_try) 2>&5
34420 ac_status=$?
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); }; }; then
fe0895cf
VS
34423 bakefile_cv_prog_icc=yes
34424else
e6cc62c6
VS
34425 echo "$as_me: failed program was:" >&5
34426sed 's/^/| /' conftest.$ac_ext >&5
34427
34428bakefile_cv_prog_icc=no
34429
fe0895cf 34430fi
e6cc62c6 34431rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34432
e6cc62c6
VS
34433fi
34434echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34435echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34436 if test "$bakefile_cv_prog_icc" = "yes"; then
34437 PIC_FLAG="-KPIC"
34438 fi
34439 fi
34440 ;;
34441
34442 *-*-solaris2* )
34443 if test "x$GCC" != xyes ; then
34444 SHARED_LD_CC="${CC} -G -o"
34445 SHARED_LD_CXX="${CXX} -G -o"
34446 PIC_FLAG="-KPIC"
34447 fi
34448 ;;
34449
34450 *-*-darwin* )
34451 CFLAGS="$CFLAGS -fno-common"
34452 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34453
34454
fe0895cf
VS
34455 cat <<EOF >shared-ld-sh
34456#!/bin/sh
34457#-----------------------------------------------------------------------------
34458#-- Name: distrib/mac/shared-ld-sh
34459#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34460#-- Author: Gilles Depeyrot
34461#-- Copyright: (c) 2002 Gilles Depeyrot
34462#-- Licence: any use permitted
34463#-----------------------------------------------------------------------------
34464
34465verbose=0
34466args=""
34467objects=""
131f235d 34468linking_flag="-dynamiclib"
fe0895cf
VS
34469
34470while test \${#} -gt 0; do
34471 case \${1} in
34472
34473 -v)
34474 verbose=1
34475 ;;
34476
34477 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34478 # collect these options and values
34479 args="\${args} \${1} \${2}"
34480 shift
34481 ;;
34482
34483 -l*|-L*|-flat_namespace)
34484 # collect these options
34485 args="\${args} \${1}"
34486 ;;
34487
131f235d
VS
34488 -dynamiclib|-bundle)
34489 linking_flag="\${1}"
fe0895cf
VS
34490 ;;
34491
34492 -*)
34493 echo "shared-ld: unhandled option '\${1}'"
34494 exit 1
34495 ;;
34496
4d264332 34497 *.o | *.a | *.dylib)
fe0895cf
VS
34498 # collect object files
34499 objects="\${objects} \${1}"
34500 ;;
34501
34502 *)
34503 echo "shared-ld: unhandled argument '\${1}'"
34504 exit 1
34505 ;;
34506
34507 esac
34508 shift
34509done
34510
34511#
34512# Link one module containing all the others
34513#
34514if test \${verbose} = 1; then
34515 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34516fi
34517c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34518status=\$?
34519if test \${status} != 0; then
34520 exit \${status}
34521fi
34522
34523#
34524# Link the shared library from the single module created
34525#
34526if test \${verbose} = 1; then
131f235d 34527 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34528fi
131f235d 34529c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34530status=\$?
34531if test \${status} != 0; then
34532 exit \${status}
34533fi
34534
34535#
34536# Remove intermediate module
34537#
34538rm -f master.\$\$.o
34539
34540exit 0
34541EOF
34542 chmod +x shared-ld-sh
34543
131f235d
VS
34544 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34545 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34546 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34547 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34548 PIC_FLAG="-dynamic -fPIC"
34549 ;;
34550
34551 *-*-aix* )
34552 if test "x$GCC" != "xyes"; then
34553 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34554set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34555echo "$as_me:$LINENO: checking for $ac_word" >&5
34556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34557if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34559else
34560 if test -n "$AIX_CXX_LD"; then
34561 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34562else
e6cc62c6
VS
34563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34564for as_dir in $PATH
34565do
34566 IFS=$as_save_IFS
34567 test -z "$as_dir" && as_dir=.
34568 for ac_exec_ext in '' $ac_executable_extensions; do
34569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34570 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34572 break 2
34573 fi
34574done
34575done
34576
fe0895cf
VS
34577 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34578fi
34579fi
e6cc62c6 34580AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34581if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34582 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34583echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34584else
e6cc62c6
VS
34585 echo "$as_me:$LINENO: result: no" >&5
34586echo "${ECHO_T}no" >&6
fe0895cf
VS
34587fi
34588
34589 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34590 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34591 fi
34592 ;;
34593
34594 *-*-beos* )
34595 SHARED_LD_CC="${LD} -shared -o"
34596 SHARED_LD_CXX="${LD} -shared -o"
34597 ;;
34598
34599 *-*-irix* )
34600 if test "x$GCC" != "xyes"; then
34601 PIC_FLAG="-KPIC"
34602 fi
34603 ;;
e6cc62c6 34604
fe0895cf
VS
34605 *-*-cygwin* | *-*-mingw32* )
34606 PIC_FLAG=""
34607 ;;
e6cc62c6 34608
fe0895cf
VS
34609 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34610 *-*-sunos4* | \
34611 *-*-osf* | \
34612 *-*-dgux5* | \
34613 *-*-sysv5* )
34614 ;;
34615
34616 *)
e6cc62c6
VS
34617 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34618echo "$as_me: error: unknown system type $host." >&2;}
34619 { (exit 1); exit 1; }; }
fe0895cf
VS
34620 esac
34621
131f235d
VS
34622 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34623 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34624 fi
34625 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34626 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34627 fi
34628
34629
34630
fe0895cf 34631
e6cc62c6
VS
34632
34633
34634
34635
fe0895cf
VS
34636 USE_SOVERSION=0
34637 USE_SOVERLINUX=0
34638 USE_SOVERSOLARIS=0
34639 USE_SOSYMLINKS=0
34640 USE_MACVERSION=0
34641 SONAME_FLAG=
34642
34643 case "${host}" in
34644 *-*-linux* )
34645 SONAME_FLAG="-Wl,-soname,"
34646 USE_SOVERSION=1
34647 USE_SOVERLINUX=1
34648 USE_SOSYMLINKS=1
34649 ;;
34650
34651 *-*-solaris2* )
34652 SONAME_FLAG="-h "
34653 USE_SOVERSION=1
34654 USE_SOVERSOLARIS=1
34655 USE_SOSYMLINKS=1
34656 ;;
34657
34658 *-*-darwin* )
34659 USE_MACVERSION=1
34660 USE_SOVERSION=1
34661 USE_SOSYMLINKS=1
e6cc62c6 34662 ;;
fe0895cf
VS
34663 esac
34664
fe0895cf 34665
e6cc62c6
VS
34666
34667
34668
34669
34670
34671
34672
49b0a3aa
VS
34673 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34674echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34675 DEPS_TRACKING=0
34676
fe0895cf 34677 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34678 DEPSMODE=gcc
34679 DEPS_TRACKING=1
3e5c3c83
VS
34680 case "${host}" in
34681 powerpc-*-darwin* )
34682 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34683 ;;
34684 * )
34685 DEPSFLAG_GCC="-MMD"
34686 ;;
34687 esac
49b0a3aa
VS
34688 echo "$as_me:$LINENO: result: gcc" >&5
34689echo "${ECHO_T}gcc" >&6
34690 else
34691 echo "$as_me:$LINENO: result: none" >&5
34692echo "${ECHO_T}none" >&6
34693 fi
34694
34695 if test $DEPS_TRACKING = 1 ; then
34696 cat <<EOF >bk-deps
34697#!/bin/sh
34698
45842500
VS
34699# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34700# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34701#
34702# Permission is given to use this file in any way.
34703
34704DEPSMODE=$DEPSMODE
34705DEPSDIR=.deps
3e5c3c83 34706DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34707
34708mkdir -p \$DEPSDIR
34709
34710if test \$DEPSMODE = gcc ; then
3e5c3c83 34711 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34712 status=\${?}
34713 if test \${status} != 0 ; then
34714 exit \${status}
34715 fi
34716 # move created file to the location we want it in:
34717 while test \${#} -gt 0; do
34718 case "\${1}" in
34719 -o )
34720 shift
34721 objfile=\${1}
34722 ;;
34723 -* )
34724 ;;
34725 * )
34726 srcfile=\${1}
34727 ;;
34728 esac
34729 shift
34730 done
34731 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34732 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34733 if test -f \$depfile ; then
34734 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34735 rm -f \$depfile
34736 else
34737 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34738 if test -f \$depfile ; then
4c8b7f4b 34739 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34740 rm -f \$depfile
34741 fi
34742 fi
49b0a3aa
VS
34743 exit 0
34744else
34745 \${*}
34746 exit \${?}
34747fi
34748EOF
34749 chmod +x bk-deps
fe0895cf 34750 fi
fe0895cf 34751
e6cc62c6
VS
34752
34753
34754
fe0895cf
VS
34755 RESCOMP=
34756 SETFILE=
34757
e6cc62c6 34758 case ${host} in
fe0895cf
VS
34759 *-*-cygwin* | *-*-mingw32* )
34760 if test "$build" != "$host" ; then
34761 RESCOMP=$host_alias-windres
34762 else
34763 # Extract the first word of "windres", so it can be a program name with args.
34764set dummy windres; ac_word=$2
e6cc62c6
VS
34765echo "$as_me:$LINENO: checking for $ac_word" >&5
34766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34767if test "${ac_cv_prog_RESCOMP+set}" = set; then
34768 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34769else
34770 if test -n "$RESCOMP"; then
34771 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34772else
e6cc62c6
VS
34773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34774for as_dir in $PATH
34775do
34776 IFS=$as_save_IFS
34777 test -z "$as_dir" && as_dir=.
34778 for ac_exec_ext in '' $ac_executable_extensions; do
34779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34780 ac_cv_prog_RESCOMP="windres"
34781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34782 break 2
34783 fi
34784done
34785done
34786
fe0895cf
VS
34787 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34788fi
34789fi
e6cc62c6 34790RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34791if test -n "$RESCOMP"; then
e6cc62c6
VS
34792 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34793echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34794else
e6cc62c6
VS
34795 echo "$as_me:$LINENO: result: no" >&5
34796echo "${ECHO_T}no" >&6
fe0895cf
VS
34797fi
34798
34799 fi
34800 ;;
e6cc62c6 34801
fe0895cf
VS
34802 *-*-darwin* )
34803 # Extract the first word of "Rez", so it can be a program name with args.
34804set dummy Rez; ac_word=$2
e6cc62c6
VS
34805echo "$as_me:$LINENO: checking for $ac_word" >&5
34806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34807if test "${ac_cv_prog_RESCOMP+set}" = set; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34809else
34810 if test -n "$RESCOMP"; then
34811 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34812else
e6cc62c6
VS
34813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34814for as_dir in $PATH
34815do
34816 IFS=$as_save_IFS
34817 test -z "$as_dir" && as_dir=.
34818 for ac_exec_ext in '' $ac_executable_extensions; do
34819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34820 ac_cv_prog_RESCOMP="Rez"
34821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34822 break 2
34823 fi
34824done
34825done
34826
fe0895cf
VS
34827 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34828fi
34829fi
e6cc62c6 34830RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34831if test -n "$RESCOMP"; then
e6cc62c6
VS
34832 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34833echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34834else
e6cc62c6
VS
34835 echo "$as_me:$LINENO: result: no" >&5
34836echo "${ECHO_T}no" >&6
fe0895cf
VS
34837fi
34838
34839 # Extract the first word of "SetFile", so it can be a program name with args.
34840set dummy SetFile; ac_word=$2
e6cc62c6
VS
34841echo "$as_me:$LINENO: checking for $ac_word" >&5
34842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34843if test "${ac_cv_prog_SETFILE+set}" = set; then
34844 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34845else
34846 if test -n "$SETFILE"; then
34847 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34848else
e6cc62c6
VS
34849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34850for as_dir in $PATH
34851do
34852 IFS=$as_save_IFS
34853 test -z "$as_dir" && as_dir=.
34854 for ac_exec_ext in '' $ac_executable_extensions; do
34855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34856 ac_cv_prog_SETFILE="SetFile"
34857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34858 break 2
34859 fi
34860done
34861done
34862
fe0895cf
VS
34863 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34864fi
34865fi
e6cc62c6 34866SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34867if test -n "$SETFILE"; then
e6cc62c6
VS
34868 echo "$as_me:$LINENO: result: $SETFILE" >&5
34869echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34870else
e6cc62c6
VS
34871 echo "$as_me:$LINENO: result: no" >&5
34872echo "${ECHO_T}no" >&6
fe0895cf
VS
34873fi
34874
34875 ;;
34876 esac
34877
fe0895cf
VS
34878
34879
e6cc62c6
VS
34880
34881
34882
34883
45842500 34884
45842500
VS
34885 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34886if test "${enable_precomp_headers+set}" = set; then
34887 enableval="$enable_precomp_headers"
34888 bk_use_pch="$enableval"
34889fi;
34890
34891 GCC_PCH=0
34892
34893 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34894 if test "x$GCC" = "xyes"; then
34895 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34896echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34897 cat >conftest.$ac_ext <<_ACEOF
34898#line $LINENO "configure"
34899/* confdefs.h. */
34900_ACEOF
34901cat confdefs.h >>conftest.$ac_ext
34902cat >>conftest.$ac_ext <<_ACEOF
34903/* end confdefs.h. */
34904
34905int
34906main ()
34907{
34908
34909 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) || \
34910 (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
34911 #error "no pch support"
34912 #endif
34913
34914 ;
34915 return 0;
34916}
34917_ACEOF
34918rm -f conftest.$ac_objext
34919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34920 (eval $ac_compile) 2>&5
34921 ac_status=$?
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } &&
34924 { ac_try='test -s conftest.$ac_objext'
34925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34926 (eval $ac_try) 2>&5
34927 ac_status=$?
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); }; }; then
34930
34931 echo "$as_me:$LINENO: result: yes" >&5
34932echo "${ECHO_T}yes" >&6
34933 CPPFLAGS="-fpch-deps $CPPFLAGS"
34934 GCC_PCH=1
34935
34936else
34937 echo "$as_me: failed program was:" >&5
34938sed 's/^/| /' conftest.$ac_ext >&5
34939
34940
34941 echo "$as_me:$LINENO: result: no" >&5
34942echo "${ECHO_T}no" >&6
34943
34944fi
34945rm -f conftest.$ac_objext conftest.$ac_ext
34946 if test $GCC_PCH = 1 ; then
34947 cat <<EOF >bk-make-pch
34948#!/bin/sh
34949
34950# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34951# script. It is used to generated precompiled headers.
34952#
34953# Permission is given to use this file in any way.
34954
34955outfile="\${1}"
34956header="\${2}"
34957shift
34958shift
34959
34960compiler=
34961headerfile=
34962while test \${#} -gt 0; do
34963 case "\${1}" in
34964 -I* )
34965 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34966 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34967 headerfile="\${incdir}/\${header}"
34968 fi
34969 ;;
34970 esac
34971 compiler="\${compiler} \${1}"
34972 shift
34973done
34974
34975if test "x\${headerfile}" = "x" ; then
34976 echo "error: can't find header \${header} in include paths" >2
34977else
34978 if test -f \${outfile} ; then
34979 rm -f \${outfile}
34980 else
34981 mkdir -p \`dirname \${outfile}\`
34982 fi
34983 depsfile=".deps/\`basename \${outfile}\`.d"
34984 mkdir -p .deps
34985 # can do this because gcc is >= 3.4:
34986 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34987 exit \${?}
34988fi
34989EOF
34990 chmod +x bk-make-pch
34991 fi
34992 fi
34993 fi
34994
34995
34996
34997
34998
d78c94f2 34999 COND_BUILD_DEBUG="#"
6f628073 35000 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35001 COND_BUILD_DEBUG=""
6f628073
VS
35002 fi
35003
6c67131a
VS
35004 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35005 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35006 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35007 fi
35008
35009 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35010 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35011 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35012 fi
35013
d78c94f2 35014 COND_BUILD_RELEASE="#"
6f628073 35015 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35016 COND_BUILD_RELEASE=""
6b9d41a5
VS
35017 fi
35018
6c67131a
VS
35019 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35020 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35021 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35022 fi
35023
35024 COND_DEBUG_FLAG_1="#"
35025 if test "x$DEBUG_FLAG" = "x1" ; then
35026 COND_DEBUG_FLAG_1=""
35027 fi
35028
35029 COND_DEBUG_INFO_0="#"
35030 if test "x$DEBUG_INFO" = "x0" ; then
35031 COND_DEBUG_INFO_0=""
35032 fi
35033
35034 COND_DEBUG_INFO_1="#"
35035 if test "x$DEBUG_INFO" = "x1" ; then
35036 COND_DEBUG_INFO_1=""
35037 fi
35038
f95cd8fa
VS
35039 COND_DEPS_TRACKING_0="#"
35040 if test "x$DEPS_TRACKING" = "x0" ; then
35041 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35042 fi
35043
8ee2dd05
VS
35044 COND_DEPS_TRACKING_1="#"
35045 if test "x$DEPS_TRACKING" = "x1" ; then
35046 COND_DEPS_TRACKING_1=""
35047 fi
35048
45842500
VS
35049 COND_GCC_PCH_1="#"
35050 if test "x$GCC_PCH" = "x1" ; then
35051 COND_GCC_PCH_1=""
35052 fi
35053
6f628073
VS
35054 COND_MONOLITHIC_0="#"
35055 if test "x$MONOLITHIC" = "x0" ; then
35056 COND_MONOLITHIC_0=""
6b9d41a5
VS
35057 fi
35058
6f628073
VS
35059 COND_MONOLITHIC_0_SHARED_0="#"
35060 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35061 COND_MONOLITHIC_0_SHARED_0=""
35062 fi
35063
35064 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35065 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35066 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35067 fi
e6cc62c6 35068
8772a1a7
VS
35069 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35070 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35071 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35072 fi
35073
250700e4
RD
35074 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35075 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35076 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35077 fi
35078
8ee2dd05
VS
35079 COND_MONOLITHIC_0_SHARED_1="#"
35080 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35081 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35082 fi
e6cc62c6 35083
6f628073
VS
35084 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35085 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35086 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35087 fi
35088
8772a1a7
VS
35089 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35090 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35091 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35092 fi
35093
250700e4
RD
35094 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35095 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35096 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35097 fi
35098
3af038c0
VS
35099 COND_MONOLITHIC_1="#"
35100 if test "x$MONOLITHIC" = "x1" ; then
35101 COND_MONOLITHIC_1=""
35102 fi
35103
6f628073
VS
35104 COND_MONOLITHIC_1_SHARED_0="#"
35105 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35106 COND_MONOLITHIC_1_SHARED_0=""
35107 fi
35108
35109 COND_MONOLITHIC_1_SHARED_1="#"
35110 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35111 COND_MONOLITHIC_1_SHARED_1=""
35112 fi
35113
3af038c0
VS
35114 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35115 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35116 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35117 fi
35118
35119 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35120 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35121 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35122 fi
35123
6f628073
VS
35124 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35125 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35126 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35127 fi
35128
3af038c0
VS
35129 COND_PLATFORM_MACOSX_1="#"
35130 if test "x$PLATFORM_MACOSX" = "x1" ; then
35131 COND_PLATFORM_MACOSX_1=""
35132 fi
35133
250700e4
RD
35134 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35135 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35136 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35137 fi
35138
35139 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35140 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35141 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35142 fi
35143
35144 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35145 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35146 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35147 fi
35148
8ee2dd05
VS
35149 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35150 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35151 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35152 fi
35153
45842500
VS
35154 COND_PLATFORM_MAC_1="#"
35155 if test "x$PLATFORM_MAC" = "x1" ; then
35156 COND_PLATFORM_MAC_1=""
35157 fi
35158
8772a1a7
VS
35159 COND_PLATFORM_UNIX_0="#"
35160 if test "x$PLATFORM_UNIX" = "x0" ; then
35161 COND_PLATFORM_UNIX_0=""
35162 fi
35163
3af038c0
VS
35164 COND_PLATFORM_UNIX_1="#"
35165 if test "x$PLATFORM_UNIX" = "x1" ; then
35166 COND_PLATFORM_UNIX_1=""
35167 fi
35168
35169 COND_PLATFORM_WIN32_0="#"
35170 if test "x$PLATFORM_WIN32" = "x0" ; then
35171 COND_PLATFORM_WIN32_0=""
35172 fi
35173
35174 COND_PLATFORM_WIN32_1="#"
35175 if test "x$PLATFORM_WIN32" = "x1" ; then
35176 COND_PLATFORM_WIN32_1=""
35177 fi
35178
45842500
VS
35179 COND_SHARED_0="#"
35180 if test "x$SHARED" = "x0" ; then
35181 COND_SHARED_0=""
35182 fi
35183
250700e4
RD
35184 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35185 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35186 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35187 fi
35188
52a5a009
VS
35189 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35190 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35191 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35192 fi
35193
35194 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35195 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35196 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35197 fi
35198
35199 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35200 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35201 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35202 fi
35203
35204 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35205 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35206 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35207 fi
35208
35209 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35210 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35211 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35212 fi
35213
35214 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35215 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35216 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35217 fi
35218
35219 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35220 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35221 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35222 fi
35223
45842500
VS
35224 COND_SHARED_1="#"
35225 if test "x$SHARED" = "x1" ; then
35226 COND_SHARED_1=""
35227 fi
35228
250700e4
RD
35229 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35230 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35231 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35232 fi
35233
6f628073
VS
35234 COND_TOOLKIT_COCOA="#"
35235 if test "x$TOOLKIT" = "xCOCOA" ; then
35236 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35237 fi
35238
6f628073
VS
35239 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35240 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35241 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35242 fi
35243
6f628073
VS
35244 COND_TOOLKIT_GTK="#"
35245 if test "x$TOOLKIT" = "xGTK" ; then
35246 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35247 fi
35248
6f628073
VS
35249 COND_TOOLKIT_GTK_USE_GUI_1="#"
35250 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35251 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35252 fi
35253
6f628073
VS
35254 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35255 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35256 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35257 fi
35258
3af038c0
VS
35259 COND_TOOLKIT_MAC="#"
35260 if test "x$TOOLKIT" = "xMAC" ; then
35261 COND_TOOLKIT_MAC=""
35262 fi
35263
8772a1a7
VS
35264 COND_TOOLKIT_MAC_USE_GUI_1="#"
35265 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35266 COND_TOOLKIT_MAC_USE_GUI_1=""
35267 fi
35268
6f628073
VS
35269 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35270 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35271 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35272 fi
35273
6f628073
VS
35274 COND_TOOLKIT_MGL="#"
35275 if test "x$TOOLKIT" = "xMGL" ; then
35276 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35277 fi
35278
6f628073
VS
35279 COND_TOOLKIT_MGL_USE_GUI_1="#"
35280 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35281 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35282 fi
35283
6f628073
VS
35284 COND_TOOLKIT_MOTIF="#"
35285 if test "x$TOOLKIT" = "xMOTIF" ; then
35286 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35287 fi
35288
6f628073
VS
35289 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35290 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35291 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35292 fi
e6cc62c6 35293
6f628073
VS
35294 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35295 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35296 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35297 fi
35298
6f628073
VS
35299 COND_TOOLKIT_MSW="#"
35300 if test "x$TOOLKIT" = "xMSW" ; then
35301 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35302 fi
35303
6f628073
VS
35304 COND_TOOLKIT_MSW_USE_GUI_1="#"
35305 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35306 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35307 fi
e6cc62c6 35308
6f628073
VS
35309 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35310 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35311 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35312 fi
e6cc62c6 35313
6f628073
VS
35314 COND_TOOLKIT_OS2="#"
35315 if test "x$TOOLKIT" = "xOS2" ; then
35316 COND_TOOLKIT_OS2=""
9747f85d
VS
35317 fi
35318
8772a1a7
VS
35319 COND_TOOLKIT_OS2_USE_GUI_1="#"
35320 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35321 COND_TOOLKIT_OS2_USE_GUI_1=""
35322 fi
35323
6f628073
VS
35324 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35325 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35326 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35327 fi
35328
6f628073
VS
35329 COND_TOOLKIT_X11="#"
35330 if test "x$TOOLKIT" = "xX11" ; then
35331 COND_TOOLKIT_X11=""
9747f85d
VS
35332 fi
35333
6f628073
VS
35334 COND_TOOLKIT_X11_USE_GUI_1="#"
35335 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35336 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35337 fi
35338
3af038c0
VS
35339 COND_UNICODE_1="#"
35340 if test "x$UNICODE" = "x1" ; then
35341 COND_UNICODE_1=""
35342 fi
35343
35344 COND_USE_GUI_0="#"
35345 if test "x$USE_GUI" = "x0" ; then
35346 COND_USE_GUI_0=""
35347 fi
35348
35349 COND_USE_GUI_1="#"
35350 if test "x$USE_GUI" = "x1" ; then
35351 COND_USE_GUI_1=""
35352 fi
35353
e6cc62c6 35354 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35355 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35356 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35357 fi
e6cc62c6
VS
35358
35359 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35360 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35361 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35362 fi
35363
66a96744
VS
35364 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35365 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35366 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35367 fi
35368
35369 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35370 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35371 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35372 fi
35373
35374 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35375 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35376 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35377 fi
35378
6f628073
VS
35379 COND_USE_SOSYMLINKS_1="#"
35380 if test "x$USE_SOSYMLINKS" = "x1" ; then
35381 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35382 fi
35383
6f628073
VS
35384 COND_USE_SOVERLINUX_1="#"
35385 if test "x$USE_SOVERLINUX" = "x1" ; then
35386 COND_USE_SOVERLINUX_1=""
b625909c
VS
35387 fi
35388
6f628073
VS
35389 COND_USE_SOVERSION_0="#"
35390 if test "x$USE_SOVERSION" = "x0" ; then
35391 COND_USE_SOVERSION_0=""
fddeb06b 35392 fi
fe0895cf 35393
6f628073
VS
35394 COND_USE_SOVERSOLARIS_1="#"
35395 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35396 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35397 fi
fe0895cf 35398
3af038c0
VS
35399 COND_WXUNIV_1="#"
35400 if test "x$WXUNIV" = "x1" ; then
35401 COND_WXUNIV_1=""
35402 fi
35403
66a96744
VS
35404 COND_WXUSE_EXPAT_BUILTIN="#"
35405 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35406 COND_WXUSE_EXPAT_BUILTIN=""
35407 fi
35408
02980527
VS
35409 COND_WXUSE_LIBJPEG_BUILTIN="#"
35410 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35411 COND_WXUSE_LIBJPEG_BUILTIN=""
35412 fi
35413
35414 COND_WXUSE_LIBPNG_BUILTIN="#"
35415 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35416 COND_WXUSE_LIBPNG_BUILTIN=""
35417 fi
35418
35419 COND_WXUSE_LIBTIFF_BUILTIN="#"
35420 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35421 COND_WXUSE_LIBTIFF_BUILTIN=""
35422 fi
35423
35424 COND_WXUSE_ODBC_BUILTIN="#"
35425 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35426 COND_WXUSE_ODBC_BUILTIN=""
35427 fi
35428
35429 COND_WXUSE_REGEX_BUILTIN="#"
35430 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35431 COND_WXUSE_REGEX_BUILTIN=""
35432 fi
35433
35434 COND_WXUSE_ZLIB_BUILTIN="#"
35435 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35436 COND_WXUSE_ZLIB_BUILTIN=""
35437 fi
35438
1772d20c 35439
fe0895cf 35440
fe0895cf 35441
fe0895cf 35442
45842500
VS
35443if test $GCC_PCH = 1 ; then
35444 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35445else
35446 case "${host}" in
35447 powerpc-*-darwin* )
35448 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35449 ;;
35450 *)
35451 ;;
35452 esac
35453fi
fe0895cf
VS
35454
35455
fddeb06b 35456SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
fe0895cf 35551
f0290fca
VS
35552
35553
67c13b6c 35554
e6cc62c6
VS
35555
35556
35557echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35558echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35559set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35560if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35561 echo $ECHO_N "(cached) $ECHO_C" >&6
35562else
35563 cat >conftest.make <<\_ACEOF
35564all:
35565 @echo 'ac_maketemp="$(MAKE)"'
35566_ACEOF
35567# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35568eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35569if test -n "$ac_maketemp"; then
35570 eval ac_cv_prog_make_${ac_make}_set=yes
35571else
35572 eval ac_cv_prog_make_${ac_make}_set=no
35573fi
35574rm -f conftest.make
35575fi
35576if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35577 echo "$as_me:$LINENO: result: yes" >&5
35578echo "${ECHO_T}yes" >&6
35579 SET_MAKE=
35580else
35581 echo "$as_me:$LINENO: result: no" >&5
35582echo "${ECHO_T}no" >&6
35583 SET_MAKE="MAKE=${MAKE-make}"
35584fi
35585
35586
35587if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35588 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35589fi
35590
35591 ac_config_headers="$ac_config_headers setup.h"
35592
35593
81345eef 35594 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35595
35596
35597 ac_config_commands="$ac_config_commands default"
35598
35599
9de9b8f0 35600
6c3e36af
VZ
35601if test "$wxUSE_GUI" = "yes"; then
35602 SUBDIRS="samples demos utils contrib"
35603else SUBDIRS="samples utils"
35604fi
e6cc62c6 35605
166263e6 35606for subdir in `echo $SUBDIRS`; do
9747f85d 35607 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35608 if test "$wxUSE_GUI" = "yes"; then
166263e6 35609 if test ${subdir} = "samples"; then
8772a1a7
VS
35610 makefiles="samples/Makefile.in $makefiles"
35611 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35612 if test -d $srcdir/samples/$sample; then
35613 makefiles="samples/$sample/Makefile.in $makefiles"
35614 fi
35615 done
35616 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35617 fi
6c3e36af 35618 else if test ${subdir} = "samples"; then
8772a1a7 35619 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35620 else makefiles="utils/HelpGen/Makefile.in \
35621 utils/HelpGen/src/Makefile.in \
35622 utils/makegen/Makefile.in"
35623 fi
35624 fi
35625
9747f85d
VS
35626 for mkin in $makefiles ; do
35627 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35628 ac_config_files="$ac_config_files $mk"
e6cc62c6 35629
9747f85d
VS
35630 done
35631 fi
35632done
e6cc62c6 35633
9de9b8f0 35634
e6cc62c6
VS
35635cat >confcache <<\_ACEOF
35636# This file is a shell script that caches the results of configure
35637# tests run on this system so they can be shared between configure
35638# scripts and configure runs, see configure's option --config-cache.
35639# It is not useful on other systems. If it contains results you don't
35640# want to keep, you may remove or edit it.
35641#
35642# config.status only pays attention to the cache file if you give it
35643# the --recheck option to rerun configure.
35644#
35645# `ac_cv_env_foo' variables (set or unset) will be overridden when
35646# loading this file, other *unset* `ac_cv_foo' will be assigned the
35647# following values.
35648
35649_ACEOF
35650
35651# The following way of writing the cache mishandles newlines in values,
35652# but we know of no workaround that is simple, portable, and efficient.
35653# So, don't put newlines in cache variables' values.
35654# Ultrix sh set writes to stderr and can't be redirected directly,
35655# and sets the high bit in the cache file unless we assign to the vars.
35656{
35657 (set) 2>&1 |
35658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35659 *ac_space=\ *)
35660 # `set' does not quote correctly, so add quotes (double-quote
35661 # substitution turns \\\\ into \\, and sed turns \\ into \).
35662 sed -n \
35663 "s/'/'\\\\''/g;
35664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35665 ;;
35666 *)
35667 # `set' quotes correctly as required by POSIX, so do not add quotes.
35668 sed -n \
35669 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35670 ;;
35671 esac;
35672} |
35673 sed '
35674 t clear
35675 : clear
35676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35677 t end
35678 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35679 : end' >>confcache
35680if diff $cache_file confcache >/dev/null 2>&1; then :; else
35681 if test -w $cache_file; then
35682 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35683 cat confcache >$cache_file
35684 else
35685 echo "not updating unwritable cache $cache_file"
35686 fi
35687fi
35688rm -f confcache
35689
35690test "x$prefix" = xNONE && prefix=$ac_default_prefix
35691# Let make expand exec_prefix.
35692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35693
35694# VPATH may cause trouble with some makes, so we remove $(srcdir),
35695# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35696# trailing colons and then remove the whole line if VPATH becomes empty
35697# (actually we leave an empty line to preserve line numbers).
35698if test "x$srcdir" = x.; then
35699 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35700s/:*\$(srcdir):*/:/;
35701s/:*\${srcdir}:*/:/;
35702s/:*@srcdir@:*/:/;
35703s/^\([^=]*=[ ]*\):*/\1/;
35704s/:*$//;
35705s/^[^=]*=[ ]*$//;
35706}'
35707fi
35708
35709DEFS=-DHAVE_CONFIG_H
35710
35711ac_libobjs=
35712ac_ltlibobjs=
35713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35714 # 1. Remove the extension, and $U if already installed.
35715 ac_i=`echo "$ac_i" |
35716 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35717 # 2. Add them.
35718 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35719 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35720done
35721LIBOBJS=$ac_libobjs
35722
35723LTLIBOBJS=$ac_ltlibobjs
35724
35725
35726
35727: ${CONFIG_STATUS=./config.status}
35728ac_clean_files_save=$ac_clean_files
35729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35730{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35731echo "$as_me: creating $CONFIG_STATUS" >&6;}
35732cat >$CONFIG_STATUS <<_ACEOF
35733#! $SHELL
35734# Generated by $as_me.
35735# Run this file to recreate the current configuration.
35736# Compiler output produced by configure, useful for debugging
35737# configure, is in config.log if it exists.
35738
35739debug=false
35740ac_cs_recheck=false
35741ac_cs_silent=false
35742SHELL=\${CONFIG_SHELL-$SHELL}
35743_ACEOF
35744
35745cat >>$CONFIG_STATUS <<\_ACEOF
35746## --------------------- ##
35747## M4sh Initialization. ##
35748## --------------------- ##
35749
35750# Be Bourne compatible
35751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35752 emulate sh
35753 NULLCMD=:
35754 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35755 # is contrary to our usage. Disable this feature.
35756 alias -g '${1+"$@"}'='"$@"'
35757elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35758 set -o posix
35759fi
35760
35761# Support unset when possible.
35762if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35763 as_unset=unset
35764else
35765 as_unset=false
35766fi
35767
35768
35769# Work around bugs in pre-3.0 UWIN ksh.
35770$as_unset ENV MAIL MAILPATH
35771PS1='$ '
35772PS2='> '
35773PS4='+ '
35774
35775# NLS nuisances.
35776for as_var in \
35777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35779 LC_TELEPHONE LC_TIME
35780do
35781 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35782 eval $as_var=C; export $as_var
35783 else
35784 $as_unset $as_var
35785 fi
35786done
35787
35788# Required to use basename.
35789if expr a : '\(a\)' >/dev/null 2>&1; then
35790 as_expr=expr
35791else
35792 as_expr=false
35793fi
35794
35795if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35796 as_basename=basename
35797else
35798 as_basename=false
35799fi
35800
35801
35802# Name of the executable.
35803as_me=`$as_basename "$0" ||
35804$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35805 X"$0" : 'X\(//\)$' \| \
35806 X"$0" : 'X\(/\)$' \| \
35807 . : '\(.\)' 2>/dev/null ||
35808echo X/"$0" |
35809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35810 /^X\/\(\/\/\)$/{ s//\1/; q; }
35811 /^X\/\(\/\).*/{ s//\1/; q; }
35812 s/.*/./; q'`
35813
35814
35815# PATH needs CR, and LINENO needs CR and PATH.
35816# Avoid depending upon Character Ranges.
35817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35820as_cr_digits='0123456789'
35821as_cr_alnum=$as_cr_Letters$as_cr_digits
35822
35823# The user is always right.
35824if test "${PATH_SEPARATOR+set}" != set; then
35825 echo "#! /bin/sh" >conf$$.sh
35826 echo "exit 0" >>conf$$.sh
35827 chmod +x conf$$.sh
35828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35829 PATH_SEPARATOR=';'
35830 else
35831 PATH_SEPARATOR=:
35832 fi
35833 rm -f conf$$.sh
35834fi
35835
35836
35837 as_lineno_1=$LINENO
35838 as_lineno_2=$LINENO
35839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35840 test "x$as_lineno_1" != "x$as_lineno_2" &&
35841 test "x$as_lineno_3" = "x$as_lineno_2" || {
35842 # Find who we are. Look in the path if we contain no path at all
35843 # relative or not.
35844 case $0 in
35845 *[\\/]* ) as_myself=$0 ;;
35846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35847for as_dir in $PATH
35848do
35849 IFS=$as_save_IFS
35850 test -z "$as_dir" && as_dir=.
35851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35852done
35853
35854 ;;
35855 esac
35856 # We did not find ourselves, most probably we were run as `sh COMMAND'
35857 # in which case we are not to be found in the path.
35858 if test "x$as_myself" = x; then
35859 as_myself=$0
35860 fi
35861 if test ! -f "$as_myself"; then
35862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35863echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35864 { (exit 1); exit 1; }; }
35865 fi
35866 case $CONFIG_SHELL in
35867 '')
35868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35869for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35870do
35871 IFS=$as_save_IFS
35872 test -z "$as_dir" && as_dir=.
35873 for as_base in sh bash ksh sh5; do
35874 case $as_dir in
35875 /*)
35876 if ("$as_dir/$as_base" -c '
35877 as_lineno_1=$LINENO
35878 as_lineno_2=$LINENO
35879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35880 test "x$as_lineno_1" != "x$as_lineno_2" &&
35881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35882 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35883 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35884 CONFIG_SHELL=$as_dir/$as_base
35885 export CONFIG_SHELL
35886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35887 fi;;
35888 esac
35889 done
35890done
35891;;
35892 esac
35893
35894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35895 # uniformly replaced by the line number. The first 'sed' inserts a
35896 # line-number line before each line; the second 'sed' does the real
35897 # work. The second script uses 'N' to pair each line-number line
35898 # with the numbered line, and appends trailing '-' during
35899 # substitution so that $LINENO is not a special case at line end.
35900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35902 sed '=' <$as_myself |
35903 sed '
35904 N
35905 s,$,-,
35906 : loop
35907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35908 t loop
35909 s,-$,,
35910 s,^['$as_cr_digits']*\n,,
35911 ' >$as_me.lineno &&
35912 chmod +x $as_me.lineno ||
35913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35914echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35915 { (exit 1); exit 1; }; }
35916
35917 # Don't try to exec as it changes $[0], causing all sort of problems
35918 # (the dirname of $[0] is not the place where we might find the
35919 # original and so on. Autoconf is especially sensible to this).
35920 . ./$as_me.lineno
35921 # Exit status is that of the last command.
35922 exit
35923}
35924
35925
35926case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35927 *c*,-n*) ECHO_N= ECHO_C='
35928' ECHO_T=' ' ;;
35929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35931esac
35932
35933if expr a : '\(a\)' >/dev/null 2>&1; then
35934 as_expr=expr
35935else
35936 as_expr=false
35937fi
35938
35939rm -f conf$$ conf$$.exe conf$$.file
35940echo >conf$$.file
35941if ln -s conf$$.file conf$$ 2>/dev/null; then
35942 # We could just check for DJGPP; but this test a) works b) is more generic
35943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35944 if test -f conf$$.exe; then
35945 # Don't use ln at all; we don't have any links
35946 as_ln_s='cp -p'
35947 else
35948 as_ln_s='ln -s'
35949 fi
35950elif ln conf$$.file conf$$ 2>/dev/null; then
35951 as_ln_s=ln
35952else
35953 as_ln_s='cp -p'
35954fi
35955rm -f conf$$ conf$$.exe conf$$.file
35956
35957if mkdir -p . 2>/dev/null; then
35958 as_mkdir_p=:
35959else
35960 as_mkdir_p=false
35961fi
35962
35963as_executable_p="test -f"
35964
35965# Sed expression to map a string onto a valid CPP name.
35966as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35967
35968# Sed expression to map a string onto a valid variable name.
35969as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35970
35971
35972# IFS
35973# We need space, tab and new line, in precisely that order.
35974as_nl='
35975'
35976IFS=" $as_nl"
35977
35978# CDPATH.
35979$as_unset CDPATH
35980
35981exec 6>&1
35982
35983# Open the log real soon, to keep \$[0] and so on meaningful, and to
35984# report actual input values of CONFIG_FILES etc. instead of their
35985# values after options handling. Logging --version etc. is OK.
35986exec 5>>config.log
35987{
35988 echo
35989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35990## Running $as_me. ##
35991_ASBOX
35992} >&5
35993cat >&5 <<_CSEOF
35994
35995This file was extended by wxWindows $as_me 2.5.0, which was
35996generated by GNU Autoconf 2.57. Invocation command line was
35997
35998 CONFIG_FILES = $CONFIG_FILES
35999 CONFIG_HEADERS = $CONFIG_HEADERS
36000 CONFIG_LINKS = $CONFIG_LINKS
36001 CONFIG_COMMANDS = $CONFIG_COMMANDS
36002 $ $0 $@
36003
36004_CSEOF
36005echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36006echo >&5
36007_ACEOF
36008
36009# Files that config.status was made for.
36010if test -n "$ac_config_files"; then
36011 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36012fi
36013
36014if test -n "$ac_config_headers"; then
36015 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36016fi
36017
36018if test -n "$ac_config_links"; then
36019 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36020fi
36021
36022if test -n "$ac_config_commands"; then
36023 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36024fi
36025
36026cat >>$CONFIG_STATUS <<\_ACEOF
36027
36028ac_cs_usage="\
36029\`$as_me' instantiates files from templates according to the
36030current configuration.
36031
36032Usage: $0 [OPTIONS] [FILE]...
36033
36034 -h, --help print this help, then exit
36035 -V, --version print version number, then exit
36036 -q, --quiet do not print progress messages
36037 -d, --debug don't remove temporary files
36038 --recheck update $as_me by reconfiguring in the same conditions
36039 --file=FILE[:TEMPLATE]
36040 instantiate the configuration file FILE
36041 --header=FILE[:TEMPLATE]
36042 instantiate the configuration header FILE
36043
36044Configuration files:
36045$config_files
36046
36047Configuration headers:
36048$config_headers
36049
36050Configuration commands:
36051$config_commands
36052
36053Report bugs to <bug-autoconf@gnu.org>."
36054_ACEOF
36055
36056cat >>$CONFIG_STATUS <<_ACEOF
36057ac_cs_version="\\
36058wxWindows config.status 2.5.0
36059configured by $0, generated by GNU Autoconf 2.57,
36060 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36061
36062Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36063Free Software Foundation, Inc.
36064This config.status script is free software; the Free Software Foundation
36065gives unlimited permission to copy, distribute and modify it."
36066srcdir=$srcdir
36067INSTALL="$INSTALL"
36068_ACEOF
36069
36070cat >>$CONFIG_STATUS <<\_ACEOF
36071# If no file are specified by the user, then we need to provide default
36072# value. By we need to know if files were specified by the user.
36073ac_need_defaults=:
36074while test $# != 0
36075do
36076 case $1 in
36077 --*=*)
36078 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36079 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36080 ac_shift=:
36081 ;;
36082 -*)
36083 ac_option=$1
36084 ac_optarg=$2
36085 ac_shift=shift
36086 ;;
36087 *) # This is not an option, so the user has probably given explicit
36088 # arguments.
36089 ac_option=$1
36090 ac_need_defaults=false;;
36091 esac
36092
36093 case $ac_option in
36094 # Handling of the options.
36095_ACEOF
36096cat >>$CONFIG_STATUS <<\_ACEOF
36097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36098 ac_cs_recheck=: ;;
36099 --version | --vers* | -V )
36100 echo "$ac_cs_version"; exit 0 ;;
36101 --he | --h)
36102 # Conflict between --help and --header
36103 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36104Try \`$0 --help' for more information." >&5
36105echo "$as_me: error: ambiguous option: $1
36106Try \`$0 --help' for more information." >&2;}
36107 { (exit 1); exit 1; }; };;
36108 --help | --hel | -h )
36109 echo "$ac_cs_usage"; exit 0 ;;
36110 --debug | --d* | -d )
36111 debug=: ;;
36112 --file | --fil | --fi | --f )
36113 $ac_shift
36114 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36115 ac_need_defaults=false;;
36116 --header | --heade | --head | --hea )
36117 $ac_shift
36118 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36119 ac_need_defaults=false;;
36120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36122 ac_cs_silent=: ;;
36123
36124 # This is an error.
36125 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36126Try \`$0 --help' for more information." >&5
36127echo "$as_me: error: unrecognized option: $1
36128Try \`$0 --help' for more information." >&2;}
36129 { (exit 1); exit 1; }; } ;;
36130
36131 *) ac_config_targets="$ac_config_targets $1" ;;
36132
36133 esac
36134 shift
36135done
36136
36137ac_configure_extra_args=
36138
36139if $ac_cs_silent; then
36140 exec 6>/dev/null
36141 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36142fi
36143
e6cc62c6
VS
36144_ACEOF
36145cat >>$CONFIG_STATUS <<_ACEOF
36146if \$ac_cs_recheck; then
36147 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36148 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36149fi
36150
e6cc62c6 36151_ACEOF
fe0895cf 36152
e6cc62c6 36153cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36154#
e6cc62c6 36155# INIT-COMMANDS section.
10f2d63a 36156#
10f2d63a 36157
a0b9e27f 36158
e6cc62c6
VS
36159 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36160 LN_S="${LN_S}"
10f2d63a 36161
10f2d63a 36162
10f2d63a 36163
e6cc62c6 36164_ACEOF
8284b0c5 36165
52127426 36166
247f5006 36167
e6cc62c6
VS
36168cat >>$CONFIG_STATUS <<\_ACEOF
36169for ac_config_target in $ac_config_targets
247f5006 36170do
e6cc62c6
VS
36171 case "$ac_config_target" in
36172 # Handling of arguments.
81345eef
VZ
36173 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36174 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36175 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36176 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36177 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36178 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36180echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36181 { (exit 1); exit 1; }; };;
247f5006
VZ
36182 esac
36183done
36184
e6cc62c6
VS
36185# If the user did not use the arguments to specify the items to instantiate,
36186# then the envvar interface is used. Set only those that are not.
36187# We use the long form for the default assignment because of an extremely
36188# bizarre bug on SunOS 4.1.3.
36189if $ac_need_defaults; then
36190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36193fi
36194
36195# Have a temporary directory for convenience. Make it in the build tree
36196# simply because there is no reason to put it here, and in addition,
36197# creating and moving files from /tmp can sometimes cause problems.
36198# Create a temporary directory, and hook for its removal unless debugging.
36199$debug ||
36200{
36201 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36202 trap '{ (exit 1); exit 1; }' 1 2 13 15
36203}
247f5006 36204
e6cc62c6 36205# Create a (secure) tmp directory for tmp files.
247f5006 36206
e6cc62c6
VS
36207{
36208 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36209 test -n "$tmp" && test -d "$tmp"
36210} ||
36211{
36212 tmp=./confstat$$-$RANDOM
36213 (umask 077 && mkdir $tmp)
36214} ||
36215{
36216 echo "$me: cannot create a temporary directory in ." >&2
36217 { (exit 1); exit 1; }
36218}
36219
36220_ACEOF
36221
36222cat >>$CONFIG_STATUS <<_ACEOF
36223
36224#
36225# CONFIG_FILES section.
36226#
247f5006 36227
e6cc62c6
VS
36228# No need to generate the scripts if there are no CONFIG_FILES.
36229# This happens for instance when ./config.status config.h
36230if test -n "\$CONFIG_FILES"; then
36231 # Protect against being on the right side of a sed subst in config.status.
36232 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36233 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36234s,@SHELL@,$SHELL,;t t
36235s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36236s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36237s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36238s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36239s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36240s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36241s,@exec_prefix@,$exec_prefix,;t t
36242s,@prefix@,$prefix,;t t
36243s,@program_transform_name@,$program_transform_name,;t t
36244s,@bindir@,$bindir,;t t
36245s,@sbindir@,$sbindir,;t t
36246s,@libexecdir@,$libexecdir,;t t
36247s,@datadir@,$datadir,;t t
36248s,@sysconfdir@,$sysconfdir,;t t
36249s,@sharedstatedir@,$sharedstatedir,;t t
36250s,@localstatedir@,$localstatedir,;t t
36251s,@libdir@,$libdir,;t t
36252s,@includedir@,$includedir,;t t
36253s,@oldincludedir@,$oldincludedir,;t t
36254s,@infodir@,$infodir,;t t
36255s,@mandir@,$mandir,;t t
36256s,@build_alias@,$build_alias,;t t
36257s,@host_alias@,$host_alias,;t t
36258s,@target_alias@,$target_alias,;t t
36259s,@DEFS@,$DEFS,;t t
36260s,@ECHO_C@,$ECHO_C,;t t
36261s,@ECHO_N@,$ECHO_N,;t t
36262s,@ECHO_T@,$ECHO_T,;t t
36263s,@LIBS@,$LIBS,;t t
36264s,@build@,$build,;t t
36265s,@build_cpu@,$build_cpu,;t t
36266s,@build_vendor@,$build_vendor,;t t
36267s,@build_os@,$build_os,;t t
36268s,@host@,$host,;t t
36269s,@host_cpu@,$host_cpu,;t t
36270s,@host_vendor@,$host_vendor,;t t
36271s,@host_os@,$host_os,;t t
36272s,@target@,$target,;t t
36273s,@target_cpu@,$target_cpu,;t t
36274s,@target_vendor@,$target_vendor,;t t
36275s,@target_os@,$target_os,;t t
36276s,@CC@,$CC,;t t
36277s,@CFLAGS@,$CFLAGS,;t t
36278s,@LDFLAGS@,$LDFLAGS,;t t
36279s,@CPPFLAGS@,$CPPFLAGS,;t t
36280s,@ac_ct_CC@,$ac_ct_CC,;t t
36281s,@EXEEXT@,$EXEEXT,;t t
36282s,@OBJEXT@,$OBJEXT,;t t
36283s,@CPP@,$CPP,;t t
36284s,@EGREP@,$EGREP,;t t
36285s,@CXX@,$CXX,;t t
36286s,@CXXFLAGS@,$CXXFLAGS,;t t
36287s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36288s,@RANLIB@,$RANLIB,;t t
36289s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36290s,@AR@,$AR,;t t
36291s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36292s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36293s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36294s,@STRIP@,$STRIP,;t t
36295s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36296s,@YACC@,$YACC,;t t
36297s,@LEX@,$LEX,;t t
36298s,@LEXLIB@,$LEXLIB,;t t
36299s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36300s,@LN_S@,$LN_S,;t t
36301s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36302s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36303s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36304s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36305s,@GTK_LIBS@,$GTK_LIBS,;t t
36306s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36307s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36308s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36309s,@X_CFLAGS@,$X_CFLAGS,;t t
36310s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36311s,@X_LIBS@,$X_LIBS,;t t
36312s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36313s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36314s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36315s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36316s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36317s,@RESCOMP@,$RESCOMP,;t t
36318s,@DEREZ@,$DEREZ,;t t
36319s,@SETFILE@,$SETFILE,;t t
36320s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36321s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36322s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36323s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36324s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36325s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36326s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36327s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36328s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36329s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36330s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36331s,@VENDOR@,$VENDOR,;t t
36332s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36333s,@WXUNIV@,$WXUNIV,;t t
36334s,@MONOLITHIC@,$MONOLITHIC,;t t
36335s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36336s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36337s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36338s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36339s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36340s,@UNICODE@,$UNICODE,;t t
36341s,@BUILD@,$BUILD,;t t
6c67131a
VS
36342s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36343s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36344s,@SHARED@,$SHARED,;t t
36345s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36346s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36347s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36348s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36349s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36350s,@SET_MAKE@,$SET_MAKE,;t t
36351s,@MAKE_SET@,$MAKE_SET,;t t
36352s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36353s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36354s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36355s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36356s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36357s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36358s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36359s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36360s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36361s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36362s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36363s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36364s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36365s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36366s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36367s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36368s,@PIC_FLAG@,$PIC_FLAG,;t t
36369s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36370s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36371s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36372s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36373s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36374s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36375s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36376s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36377s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36378s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36379s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36380s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36381s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36382s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36383s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36384s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36385s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36386s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36387s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36388s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36389s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36390s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36391s,@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 36392s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
8ee2dd05 36393s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36394s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36395s,@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 36396s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
3af038c0 36397s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36398s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36399s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36400s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36401s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36402s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36403s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36404s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36405s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36406s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36407s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36408s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36409s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36410s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36411s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36412s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36413s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36414s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36415s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36416s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36417s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36418s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36419s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36420s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36421s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36422s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36423s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36424s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36425s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36426s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36427s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36428s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36429s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36430s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36431s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36432s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36433s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36434s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36435s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36436s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36437s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36438s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36439s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36440s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36441s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36442s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36443s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36444s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36445s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36446s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36447s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36448s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36449s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36450s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36451s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36452s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36453s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36454s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36455s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36456s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36457s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36458s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36459s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36460s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36461s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36462s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36463s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36464s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36465s,@LEX_STEM@,$LEX_STEM,;t t
36466s,@PATH_IFS@,$PATH_IFS,;t t
36467s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36468s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36469s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36470s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36471s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36472s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36473s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36474s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36475s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36476s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36477s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36478s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36479s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36480s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36481s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36482s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36483s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36484s,@WX_ALL@,$WX_ALL,;t t
36485s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36486s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36487s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36488s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36489s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36490s,@USE_GUI@,$USE_GUI,;t t
36491s,@AFMINSTALL@,$AFMINSTALL,;t t
36492s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36493s,@TOOLKIT@,$TOOLKIT,;t t
36494s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36495s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36496s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36497s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36498s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36499s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36500s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36501s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36502s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36503s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36504s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36505s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36506s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36507s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36508s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36509s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36510s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36511s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36512s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36513s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36514s,@GUIDIST@,$GUIDIST,;t t
36515s,@PORT_FILES@,$PORT_FILES,;t t
36516s,@DISTDIR@,$DISTDIR,;t t
36517s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36518s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36519s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36520s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36521s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36522s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36523s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36524s,@RESFLAGS@,$RESFLAGS,;t t
36525s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36526s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36527s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36528s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36529s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36530s,@MACRESCOMP@,$MACRESCOMP,;t t
36531s,@MACSETFILE@,$MACSETFILE,;t t
36532s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36533s,@GCC@,$GCC,;t t
36534s,@DLLTOOL@,$DLLTOOL,;t t
36535s,@AS@,$AS,;t t
36536s,@NM@,$NM,;t t
36537s,@LD@,$LD,;t t
36538s,@MAKEINFO@,$MAKEINFO,;t t
36539s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36540s,@LIBOBJS@,$LIBOBJS,;t t
36541s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36542CEOF
36543
e6cc62c6
VS
36544_ACEOF
36545
36546 cat >>$CONFIG_STATUS <<\_ACEOF
36547 # Split the substitutions into bite-sized pieces for seds with
36548 # small command number limits, like on Digital OSF/1 and HP-UX.
36549 ac_max_sed_lines=48
36550 ac_sed_frag=1 # Number of current file.
36551 ac_beg=1 # First line for current file.
36552 ac_end=$ac_max_sed_lines # Line after last line for current file.
36553 ac_more_lines=:
36554 ac_sed_cmds=
36555 while $ac_more_lines; do
36556 if test $ac_beg -gt 1; then
36557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36558 else
e6cc62c6
VS
36559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36560 fi
36561 if test ! -s $tmp/subs.frag; then
36562 ac_more_lines=false
36563 else
36564 # The purpose of the label and of the branching condition is to
36565 # speed up the sed processing (if there are no `@' at all, there
36566 # is no need to browse any of the substitutions).
36567 # These are the two extra sed commands mentioned above.
36568 (echo ':t
36569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36570 if test -z "$ac_sed_cmds"; then
36571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36572 else
36573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36574 fi
36575 ac_sed_frag=`expr $ac_sed_frag + 1`
36576 ac_beg=$ac_end
36577 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36578 fi
e6cc62c6
VS
36579 done
36580 if test -z "$ac_sed_cmds"; then
36581 ac_sed_cmds=cat
10f2d63a 36582 fi
e6cc62c6 36583fi # test -n "$CONFIG_FILES"
10f2d63a 36584
e6cc62c6
VS
36585_ACEOF
36586cat >>$CONFIG_STATUS <<\_ACEOF
36587for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36589 case $ac_file in
36590 - | *:- | *:-:* ) # input from stdin
36591 cat >$tmp/stdin
36592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36596 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36597 esac
247f5006 36598
e6cc62c6
VS
36599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36602 X"$ac_file" : 'X\(//\)[^/]' \| \
36603 X"$ac_file" : 'X\(//\)$' \| \
36604 X"$ac_file" : 'X\(/\)' \| \
36605 . : '\(.\)' 2>/dev/null ||
36606echo X"$ac_file" |
36607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36609 /^X\(\/\/\)$/{ s//\1/; q; }
36610 /^X\(\/\).*/{ s//\1/; q; }
36611 s/.*/./; q'`
36612 { if $as_mkdir_p; then
36613 mkdir -p "$ac_dir"
a0b9e27f 36614 else
e6cc62c6
VS
36615 as_dir="$ac_dir"
36616 as_dirs=
36617 while test ! -d "$as_dir"; do
36618 as_dirs="$as_dir $as_dirs"
36619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36621 X"$as_dir" : 'X\(//\)[^/]' \| \
36622 X"$as_dir" : 'X\(//\)$' \| \
36623 X"$as_dir" : 'X\(/\)' \| \
36624 . : '\(.\)' 2>/dev/null ||
36625echo X"$as_dir" |
36626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36628 /^X\(\/\/\)$/{ s//\1/; q; }
36629 /^X\(\/\).*/{ s//\1/; q; }
36630 s/.*/./; q'`
36631 done
36632 test ! -n "$as_dirs" || mkdir $as_dirs
36633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36634echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36635 { (exit 1); exit 1; }; }; }
36636
36637 ac_builddir=.
36638
36639if test "$ac_dir" != .; then
36640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36641 # A "../" for each directory in $ac_dir_suffix.
36642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36643else
36644 ac_dir_suffix= ac_top_builddir=
36645fi
247f5006 36646
e6cc62c6
VS
36647case $srcdir in
36648 .) # No --srcdir option. We are building in place.
36649 ac_srcdir=.
36650 if test -z "$ac_top_builddir"; then
36651 ac_top_srcdir=.
36652 else
36653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36654 fi ;;
36655 [\\/]* | ?:[\\/]* ) # Absolute path.
36656 ac_srcdir=$srcdir$ac_dir_suffix;
36657 ac_top_srcdir=$srcdir ;;
247f5006 36658 *) # Relative path.
e6cc62c6
VS
36659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36661esac
36662# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36663# absolute.
36664ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36665ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36666ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36667ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36668
247f5006 36669
e6cc62c6
VS
36670 case $INSTALL in
36671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36672 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36673 esac
247f5006 36674
e6cc62c6
VS
36675 if test x"$ac_file" != x-; then
36676 { echo "$as_me:$LINENO: creating $ac_file" >&5
36677echo "$as_me: creating $ac_file" >&6;}
36678 rm -f "$ac_file"
36679 fi
36680 # Let's still pretend it is `configure' which instantiates (i.e., don't
36681 # use $as_me), people would be surprised to read:
36682 # /* config.h. Generated by config.status. */
36683 if test x"$ac_file" = x-; then
36684 configure_input=
36685 else
36686 configure_input="$ac_file. "
36687 fi
36688 configure_input=$configure_input"Generated from `echo $ac_file_in |
36689 sed 's,.*/,,'` by configure."
36690
36691 # First look for the input files in the build tree, otherwise in the
36692 # src tree.
36693 ac_file_inputs=`IFS=:
36694 for f in $ac_file_in; do
36695 case $f in
36696 -) echo $tmp/stdin ;;
36697 [\\/$]*)
36698 # Absolute (can't be DOS-style, as IFS=:)
36699 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36700echo "$as_me: error: cannot find input file: $f" >&2;}
36701 { (exit 1); exit 1; }; }
36702 echo $f;;
36703 *) # Relative
36704 if test -f "$f"; then
36705 # Build tree
36706 echo $f
36707 elif test -f "$srcdir/$f"; then
36708 # Source tree
36709 echo $srcdir/$f
36710 else
36711 # /dev/null tree
36712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36713echo "$as_me: error: cannot find input file: $f" >&2;}
36714 { (exit 1); exit 1; }; }
36715 fi;;
36716 esac
36717 done` || { (exit 1); exit 1; }
36718_ACEOF
36719cat >>$CONFIG_STATUS <<_ACEOF
36720 sed "$ac_vpsub
36721$extrasub
36722_ACEOF
36723cat >>$CONFIG_STATUS <<\_ACEOF
36724:t
36725/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36726s,@configure_input@,$configure_input,;t t
36727s,@srcdir@,$ac_srcdir,;t t
36728s,@abs_srcdir@,$ac_abs_srcdir,;t t
36729s,@top_srcdir@,$ac_top_srcdir,;t t
36730s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36731s,@builddir@,$ac_builddir,;t t
36732s,@abs_builddir@,$ac_abs_builddir,;t t
36733s,@top_builddir@,$ac_top_builddir,;t t
36734s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36735s,@INSTALL@,$ac_INSTALL,;t t
36736" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36737 rm -f $tmp/stdin
36738 if test x"$ac_file" != x-; then
36739 mv $tmp/out $ac_file
36740 else
36741 cat $tmp/out
36742 rm -f $tmp/out
36743 fi
36744
36745done
36746_ACEOF
36747cat >>$CONFIG_STATUS <<\_ACEOF
36748
36749#
36750# CONFIG_HEADER section.
36751#
10f2d63a
VZ
36752
36753# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36754# NAME is the cpp macro being defined and VALUE is the value it is being given.
36755#
36756# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36757ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36758ac_dB='[ ].*$,\1#\2'
36759ac_dC=' '
36760ac_dD=',;t'
36761# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36762ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36763ac_uB='$,\1#\2define\3'
10f2d63a 36764ac_uC=' '
e6cc62c6
VS
36765ac_uD=',;t'
36766
36767for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36769 case $ac_file in
36770 - | *:- | *:-:* ) # input from stdin
36771 cat >$tmp/stdin
36772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36776 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36777 esac
36778
e6cc62c6
VS
36779 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36780echo "$as_me: creating $ac_file" >&6;}
36781
36782 # First look for the input files in the build tree, otherwise in the
36783 # src tree.
36784 ac_file_inputs=`IFS=:
36785 for f in $ac_file_in; do
36786 case $f in
36787 -) echo $tmp/stdin ;;
36788 [\\/$]*)
36789 # Absolute (can't be DOS-style, as IFS=:)
36790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36791echo "$as_me: error: cannot find input file: $f" >&2;}
36792 { (exit 1); exit 1; }; }
36793 echo $f;;
36794 *) # Relative
36795 if test -f "$f"; then
36796 # Build tree
36797 echo $f
36798 elif test -f "$srcdir/$f"; then
36799 # Source tree
36800 echo $srcdir/$f
36801 else
36802 # /dev/null tree
36803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36804echo "$as_me: error: cannot find input file: $f" >&2;}
36805 { (exit 1); exit 1; }; }
36806 fi;;
36807 esac
36808 done` || { (exit 1); exit 1; }
36809 # Remove the trailing spaces.
36810 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36811
36812_ACEOF
36813
36814# Transform confdefs.h into two sed scripts, `conftest.defines' and
36815# `conftest.undefs', that substitutes the proper values into
36816# config.h.in to produce config.h. The first handles `#define'
36817# templates, and the second `#undef' templates.
36818# And first: Protect against being on the right side of a sed subst in
36819# config.status. Protect against being in an unquoted here document
36820# in config.status.
36821rm -f conftest.defines conftest.undefs
36822# Using a here document instead of a string reduces the quoting nightmare.
36823# Putting comments in sed scripts is not portable.
36824#
36825# `end' is used to avoid that the second main sed command (meant for
36826# 0-ary CPP macros) applies to n-ary macro definitions.
36827# See the Autoconf documentation for `clear'.
36828cat >confdef2sed.sed <<\_ACEOF
36829s/[\\&,]/\\&/g
36830s,[\\$`],\\&,g
36831t clear
36832: clear
36833s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36834t end
36835s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36836: end
36837_ACEOF
36838# If some macros were called several times there might be several times
36839# the same #defines, which is useless. Nevertheless, we may not want to
36840# sort them, since we want the *last* AC-DEFINE to be honored.
36841uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36842sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36843rm -f confdef2sed.sed
10f2d63a
VZ
36844
36845# This sed command replaces #undef with comments. This is necessary, for
36846# example, in the case of _POSIX_SOURCE, which is predefined and required
36847# on some systems where configure will not decide to define it.
e6cc62c6
VS
36848cat >>conftest.undefs <<\_ACEOF
36849s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36850_ACEOF
36851
36852# Break up conftest.defines because some shells have a limit on the size
36853# of here documents, and old seds have small limits too (100 cmds).
36854echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36855echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36856echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36857echo ' :' >>$CONFIG_STATUS
36858rm -f conftest.tail
36859while grep . conftest.defines >/dev/null
36860do
36861 # Write a limited-size here document to $tmp/defines.sed.
36862 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36863 # Speed up: don't consider the non `#define' lines.
36864 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36865 # Work around the forget-to-reset-the-flag bug.
36866 echo 't clr' >>$CONFIG_STATUS
36867 echo ': clr' >>$CONFIG_STATUS
36868 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36869 echo 'CEOF
36870 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36871 rm -f $tmp/in
36872 mv $tmp/out $tmp/in
36873' >>$CONFIG_STATUS
36874 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36875 rm -f conftest.defines
36876 mv conftest.tail conftest.defines
36877done
36878rm -f conftest.defines
36879echo ' fi # grep' >>$CONFIG_STATUS
36880echo >>$CONFIG_STATUS
10f2d63a 36881
e6cc62c6
VS
36882# Break up conftest.undefs because some shells have a limit on the size
36883# of here documents, and old seds have small limits too (100 cmds).
36884echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36885rm -f conftest.tail
e6cc62c6 36886while grep . conftest.undefs >/dev/null
10f2d63a 36887do
e6cc62c6
VS
36888 # Write a limited-size here document to $tmp/undefs.sed.
36889 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36890 # Speed up: don't consider the non `#undef'
36891 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36892 # Work around the forget-to-reset-the-flag bug.
36893 echo 't clr' >>$CONFIG_STATUS
36894 echo ': clr' >>$CONFIG_STATUS
36895 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36896 echo 'CEOF
e6cc62c6
VS
36897 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36898 rm -f $tmp/in
36899 mv $tmp/out $tmp/in
36900' >>$CONFIG_STATUS
36901 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36902 rm -f conftest.undefs
36903 mv conftest.tail conftest.undefs
10f2d63a 36904done
e6cc62c6
VS
36905rm -f conftest.undefs
36906
36907cat >>$CONFIG_STATUS <<\_ACEOF
36908 # Let's still pretend it is `configure' which instantiates (i.e., don't
36909 # use $as_me), people would be surprised to read:
36910 # /* config.h. Generated by config.status. */
36911 if test x"$ac_file" = x-; then
36912 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36913 else
e6cc62c6 36914 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36915 fi
e6cc62c6
VS
36916 cat $tmp/in >>$tmp/config.h
36917 rm -f $tmp/in
36918 if test x"$ac_file" != x-; then
36919 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36921echo "$as_me: $ac_file is unchanged" >&6;}
36922 else
36923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36924$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36925 X"$ac_file" : 'X\(//\)[^/]' \| \
36926 X"$ac_file" : 'X\(//\)$' \| \
36927 X"$ac_file" : 'X\(/\)' \| \
36928 . : '\(.\)' 2>/dev/null ||
36929echo X"$ac_file" |
36930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36932 /^X\(\/\/\)$/{ s//\1/; q; }
36933 /^X\(\/\).*/{ s//\1/; q; }
36934 s/.*/./; q'`
36935 { if $as_mkdir_p; then
36936 mkdir -p "$ac_dir"
36937 else
36938 as_dir="$ac_dir"
36939 as_dirs=
36940 while test ! -d "$as_dir"; do
36941 as_dirs="$as_dir $as_dirs"
36942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36944 X"$as_dir" : 'X\(//\)[^/]' \| \
36945 X"$as_dir" : 'X\(//\)$' \| \
36946 X"$as_dir" : 'X\(/\)' \| \
36947 . : '\(.\)' 2>/dev/null ||
36948echo X"$as_dir" |
36949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36951 /^X\(\/\/\)$/{ s//\1/; q; }
36952 /^X\(\/\).*/{ s//\1/; q; }
36953 s/.*/./; q'`
36954 done
36955 test ! -n "$as_dirs" || mkdir $as_dirs
36956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36957echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36958 { (exit 1); exit 1; }; }; }
a0b9e27f 36959
e6cc62c6
VS
36960 rm -f $ac_file
36961 mv $tmp/config.h $ac_file
36962 fi
36963 else
36964 cat $tmp/config.h
36965 rm -f $tmp/config.h
36966 fi
36967done
36968_ACEOF
36969cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36970
e6cc62c6
VS
36971#
36972# CONFIG_COMMANDS section.
36973#
36974for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36975 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36976 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36977 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36978$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36979 X"$ac_dest" : 'X\(//\)[^/]' \| \
36980 X"$ac_dest" : 'X\(//\)$' \| \
36981 X"$ac_dest" : 'X\(/\)' \| \
36982 . : '\(.\)' 2>/dev/null ||
36983echo X"$ac_dest" |
36984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36986 /^X\(\/\/\)$/{ s//\1/; q; }
36987 /^X\(\/\).*/{ s//\1/; q; }
36988 s/.*/./; q'`
36989 ac_builddir=.
36990
36991if test "$ac_dir" != .; then
36992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36993 # A "../" for each directory in $ac_dir_suffix.
36994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36995else
36996 ac_dir_suffix= ac_top_builddir=
36997fi
36998
36999case $srcdir in
37000 .) # No --srcdir option. We are building in place.
37001 ac_srcdir=.
37002 if test -z "$ac_top_builddir"; then
37003 ac_top_srcdir=.
37004 else
37005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37006 fi ;;
37007 [\\/]* | ?:[\\/]* ) # Absolute path.
37008 ac_srcdir=$srcdir$ac_dir_suffix;
37009 ac_top_srcdir=$srcdir ;;
37010 *) # Relative path.
37011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37013esac
37014# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37015# absolute.
37016ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37017ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37018ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37019ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37020
37021
37022 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37023echo "$as_me: executing $ac_dest commands" >&6;}
37024 case $ac_dest in
37025 default )
652d930d 37026 if test ! -h wx-config; then
991a5759 37027 chmod +x wx-config
3a922bb4
RL
37028 mv wx-config wx${TOOLCHAIN_NAME}-config
37029 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37030 fi
665bbe97 37031
00cf1208
RR
37032 if test ! -d lib; then
37033 mkdir lib
37034 fi
37035 if test ! -d lib/wx; then
37036 mkdir lib/wx
37037 fi
37038 if test ! -d lib/wx/include; then
37039 mkdir lib/wx/include
37040 fi
3a922bb4
RL
37041 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37042 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37043 fi
3a922bb4
RL
37044 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37045 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37046 fi
37047 if test -f setup.h; then
3a922bb4 37048 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37049 fi
e6cc62c6
VS
37050 ;;
37051 esac
37052done
37053_ACEOF
2224580a 37054
e6cc62c6 37055cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37056
e6cc62c6
VS
37057{ (exit 0); exit 0; }
37058_ACEOF
37059chmod +x $CONFIG_STATUS
37060ac_clean_files=$ac_clean_files_save
37061
37062
37063# configure is writing to config.log, and then calls config.status.
37064# config.status does its own redirection, appending to config.log.
37065# Unfortunately, on DOS this fails, as config.log is still kept open
37066# by configure, so config.status won't be able to write to it; its
37067# output is simply discarded. So we exec the FD to /dev/null,
37068# effectively closing config.log, so it can be properly (re)opened and
37069# appended to by config.status. When coming back to configure, we
37070# need to make the FD available again.
37071if test "$no_create" != yes; then
37072 ac_cs_success=:
37073 ac_config_status_args=
37074 test "$silent" = yes &&
37075 ac_config_status_args="$ac_config_status_args --quiet"
37076 exec 5>/dev/null
37077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37078 exec 5>>config.log
37079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37080 # would make configure fail if this is the last instruction.
37081 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37082fi
37083
672abd7a
VS
37084#
37085# CONFIG_SUBDIRS section.
37086#
37087if test "$no_recursion" != yes; then
37088
37089 # Remove --cache-file and --srcdir arguments so they do not pile up.
37090 ac_sub_configure_args=
37091 ac_prev=
37092 for ac_arg in $ac_configure_args; do
37093 if test -n "$ac_prev"; then
37094 ac_prev=
37095 continue
37096 fi
37097 case $ac_arg in
37098 -cache-file | --cache-file | --cache-fil | --cache-fi \
37099 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37100 ac_prev=cache_file ;;
37101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37103 | --c=*)
37104 ;;
37105 --config-cache | -C)
37106 ;;
37107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37108 ac_prev=srcdir ;;
37109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37110 ;;
37111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37112 ac_prev=prefix ;;
37113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37114 ;;
37115 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37116 esac
37117 done
37118
37119 # Always prepend --prefix to ensure using the same prefix
37120 # in subdir configurations.
37121 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37122
37123 ac_popdir=`pwd`
37124 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37125
37126 # Do not complain, so a configure script can configure whichever
37127 # parts of a large source tree are present.
37128 test -d $srcdir/$ac_dir || continue
37129
37130 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37131echo "$as_me: configuring in $ac_dir" >&6;}
37132 { if $as_mkdir_p; then
37133 mkdir -p "$ac_dir"
37134 else
37135 as_dir="$ac_dir"
37136 as_dirs=
37137 while test ! -d "$as_dir"; do
37138 as_dirs="$as_dir $as_dirs"
37139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37141 X"$as_dir" : 'X\(//\)[^/]' \| \
37142 X"$as_dir" : 'X\(//\)$' \| \
37143 X"$as_dir" : 'X\(/\)' \| \
37144 . : '\(.\)' 2>/dev/null ||
37145echo X"$as_dir" |
37146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37148 /^X\(\/\/\)$/{ s//\1/; q; }
37149 /^X\(\/\).*/{ s//\1/; q; }
37150 s/.*/./; q'`
37151 done
37152 test ! -n "$as_dirs" || mkdir $as_dirs
37153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37154echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37155 { (exit 1); exit 1; }; }; }
37156
37157 ac_builddir=.
37158
37159if test "$ac_dir" != .; then
37160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37161 # A "../" for each directory in $ac_dir_suffix.
37162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37163else
37164 ac_dir_suffix= ac_top_builddir=
37165fi
37166
37167case $srcdir in
37168 .) # No --srcdir option. We are building in place.
37169 ac_srcdir=.
37170 if test -z "$ac_top_builddir"; then
37171 ac_top_srcdir=.
37172 else
37173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37174 fi ;;
37175 [\\/]* | ?:[\\/]* ) # Absolute path.
37176 ac_srcdir=$srcdir$ac_dir_suffix;
37177 ac_top_srcdir=$srcdir ;;
37178 *) # Relative path.
37179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37180 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37181esac
37182# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37183# absolute.
37184ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37185ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37186ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37187ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37188
37189
37190 cd $ac_dir
37191
37192 # Check for guested configure; otherwise get Cygnus style configure.
37193 if test -f $ac_srcdir/configure.gnu; then
37194 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37195 elif test -f $ac_srcdir/configure; then
37196 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37197 elif test -f $ac_srcdir/configure.in; then
37198 ac_sub_configure=$ac_configure
37199 else
37200 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37201echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37202 ac_sub_configure=
37203 fi
37204
37205 # The recursion is here.
37206 if test -n "$ac_sub_configure"; then
37207 # Make the cache file name correct relative to the subdirectory.
37208 case $cache_file in
37209 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37210 *) # Relative path.
37211 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37212 esac
37213
37214 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37215echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37216 # The eval makes quoting arguments work.
37217 eval $ac_sub_configure $ac_sub_configure_args \
37218 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37219 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37220echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37221 { (exit 1); exit 1; }; }
37222 fi
37223
37224 cd $ac_popdir
37225 done
37226fi
37227
8284b0c5 37228
2b5f62a0
VZ
37229echo
37230echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37231echo ""
37232echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37233echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37234
37235echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37236echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37237echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37238
0c98a14e
GD
37239echo " What level of wxWindows compatibility should be enabled?"
37240echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
37241echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37242echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37243
2b5f62a0
VZ
37244echo " Which libraries should wxWindows use?"
37245echo " jpeg ${wxUSE_LIBJPEG-none}"
37246echo " png ${wxUSE_LIBPNG-none}"
37247echo " regex ${wxUSE_REGEX}"
37248echo " tiff ${wxUSE_LIBTIFF-none}"
37249echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37250echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37251echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37252
37253echo ""
37254