]> git.saurik.com Git - wxWidgets.git/blame - configure
added support for gcc precompiled headers
[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"
45842500 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 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_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=
d6a55c4b 1664
10f2d63a
VZ
1665case "${host}" in
1666 *-hp-hpux* )
1667 USE_HPUX=1
1668 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1669 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1670 SO_SUFFIX=sl
e6cc62c6 1671 cat >>confdefs.h <<\_ACEOF
10f2d63a 1672#define __HPUX__ 1
e6cc62c6 1673_ACEOF
10f2d63a
VZ
1674
1675 ;;
1676 *-*-linux* )
1677 USE_LINUX=1
e6cc62c6 1678 cat >>confdefs.h <<\_ACEOF
10f2d63a 1679#define __LINUX__ 1
e6cc62c6 1680_ACEOF
10f2d63a
VZ
1681
1682 TMP=`uname -m`
1683 if test "x$TMP" = "xalpha"; then
1684 USE_ALPHA=1
e6cc62c6 1685 cat >>confdefs.h <<\_ACEOF
10f2d63a 1686#define __ALPHA__ 1
e6cc62c6 1687_ACEOF
fe0895cf
VS
1688
1689 fi
1690 DEFAULT_DEFAULT_wxUSE_GTK=1
1691 ;;
1692 *-*-gnu* )
1693 USE_GNU=1
e6cc62c6 1694 cat >>confdefs.h <<\_ACEOF
fe0895cf 1695#define __GNU__ 1
e6cc62c6 1696_ACEOF
fe0895cf
VS
1697
1698 TMP=`uname -m`
1699 if test "x$TMP" = "xalpha"; then
1700 USE_ALPHA=1
e6cc62c6 1701 cat >>confdefs.h <<\_ACEOF
fe0895cf 1702#define __ALPHA__ 1
e6cc62c6 1703_ACEOF
10f2d63a
VZ
1704
1705 fi
1706 DEFAULT_DEFAULT_wxUSE_GTK=1
1707 ;;
1708 *-*-irix5* | *-*-irix6* )
1709 USE_SGI=1
1710 USE_SVR4=1
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
10f2d63a 1712#define __SGI__ 1
e6cc62c6 1713_ACEOF
10f2d63a 1714
e6cc62c6 1715 cat >>confdefs.h <<\_ACEOF
10f2d63a 1716#define __SVR4__ 1
e6cc62c6 1717_ACEOF
10f2d63a
VZ
1718
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1720 ;;
1721 *-*-solaris2* )
1722 USE_SUN=1
1723 USE_SOLARIS=1
1724 USE_SVR4=1
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SUN__ 1
e6cc62c6 1727_ACEOF
10f2d63a 1728
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __SOLARIS__ 1
e6cc62c6 1731_ACEOF
10f2d63a 1732
e6cc62c6 1733 cat >>confdefs.h <<\_ACEOF
10f2d63a 1734#define __SVR4__ 1
e6cc62c6 1735_ACEOF
10f2d63a
VZ
1736
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1738 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1739 ;;
1740 *-*-sunos4* )
1741 USE_SUN=1
1742 USE_SUNOS=1
1743 USE_BSD=1
e6cc62c6 1744 cat >>confdefs.h <<\_ACEOF
10f2d63a 1745#define __SUN__ 1
e6cc62c6 1746_ACEOF
10f2d63a 1747
e6cc62c6 1748 cat >>confdefs.h <<\_ACEOF
10f2d63a 1749#define __SUNOS__ 1
e6cc62c6 1750_ACEOF
10f2d63a 1751
e6cc62c6 1752 cat >>confdefs.h <<\_ACEOF
10f2d63a 1753#define __BSD__ 1
e6cc62c6 1754_ACEOF
10f2d63a
VZ
1755
1756 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1757 ;;
f6bcfd97 1758 *-*-freebsd*)
10f2d63a
VZ
1759 USE_BSD=1
1760 USE_FREEBSD=1
e6cc62c6 1761 cat >>confdefs.h <<\_ACEOF
10f2d63a 1762#define __FREEBSD__ 1
e6cc62c6 1763_ACEOF
10f2d63a 1764
e6cc62c6 1765 cat >>confdefs.h <<\_ACEOF
10f2d63a 1766#define __BSD__ 1
e6cc62c6 1767_ACEOF
95c8801c
VS
1768
1769 DEFAULT_DEFAULT_wxUSE_GTK=1
1770 ;;
1771 *-*-openbsd*)
1772 USE_BSD=1
1773 USE_OPENBSD=1
e6cc62c6 1774 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1775#define __OPENBSD__ 1
e6cc62c6 1776_ACEOF
95c8801c 1777
e6cc62c6 1778 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1779#define __BSD__ 1
e6cc62c6 1780_ACEOF
f6bcfd97
BP
1781
1782 DEFAULT_DEFAULT_wxUSE_GTK=1
1783 ;;
1784 *-*-netbsd*)
1785 USE_BSD=1
1786 USE_NETBSD=1
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1788#define __NETBSD__ 1
e6cc62c6 1789_ACEOF
f6bcfd97 1790
e6cc62c6 1791 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1792#define __BSD__ 1
e6cc62c6 1793_ACEOF
10f2d63a
VZ
1794
1795 DEFAULT_DEFAULT_wxUSE_GTK=1
1796 ;;
1797 *-*-osf* )
1798 USE_ALPHA=1
1799 USE_OSF=1
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __ALPHA__ 1
e6cc62c6 1802_ACEOF
10f2d63a 1803
e6cc62c6 1804 cat >>confdefs.h <<\_ACEOF
10f2d63a 1805#define __OSF__ 1
e6cc62c6 1806_ACEOF
10f2d63a
VZ
1807
1808 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1809 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1810 ;;
1811 *-*-dgux5* )
1812 USE_ALPHA=1
1813 USE_SVR4=1
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __ALPHA__ 1
e6cc62c6 1816_ACEOF
10f2d63a 1817
e6cc62c6 1818 cat >>confdefs.h <<\_ACEOF
10f2d63a 1819#define __SVR4__ 1
e6cc62c6 1820_ACEOF
10f2d63a
VZ
1821
1822 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1823 ;;
1824 *-*-sysv5* )
1825 USE_SYSV=1
1826 USE_SVR4=1
e6cc62c6 1827 cat >>confdefs.h <<\_ACEOF
10f2d63a 1828#define __SYSV__ 1
e6cc62c6 1829_ACEOF
10f2d63a 1830
e6cc62c6 1831 cat >>confdefs.h <<\_ACEOF
10f2d63a 1832#define __SVR4__ 1
e6cc62c6 1833_ACEOF
10f2d63a
VZ
1834
1835 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1836 ;;
1837 *-*-aix* )
1838 USE_AIX=1
1839 USE_SYSV=1
1840 USE_SVR4=1
2b5f62a0 1841 SO_SUFFIX=a
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __AIX__ 1
e6cc62c6 1844_ACEOF
10f2d63a 1845
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __SYSV__ 1
e6cc62c6 1848_ACEOF
10f2d63a 1849
e6cc62c6 1850 cat >>confdefs.h <<\_ACEOF
10f2d63a 1851#define __SVR4__ 1
e6cc62c6 1852_ACEOF
10f2d63a
VZ
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 ;;
1856
89e3b3e4
VZ
1857 *-*-*UnixWare*)
1858 USE_SYSV=1
1859 USE_SVR4=1
1860 USE_UNIXWARE=1
e6cc62c6 1861 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1862#define __UNIXWARE__ 1
e6cc62c6 1863_ACEOF
89e3b3e4
VZ
1864
1865 ;;
1866
1c8183e2 1867 *-*-cygwin* | *-*-mingw32* )
17234b26 1868 SO_SUFFIX=dll
cf27ef00 1869 PROGRAM_EXT=".exe"
7b7a7637 1870 RESCOMP=windres
10f2d63a
VZ
1871 DEFAULT_DEFAULT_wxUSE_MSW=1
1872 ;;
1873
f9bc1684
VS
1874 *-pc-msdosdjgpp )
1875 USE_UNIX=0
1876 USE_DOS=1
e6cc62c6 1877 cat >>confdefs.h <<\_ACEOF
f9bc1684 1878#define __DOS__ 1
e6cc62c6 1879_ACEOF
f9bc1684
VS
1880
1881 PROGRAM_EXT=".exe"
1882 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1883 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1884 ;;
1885
6fa882bd 1886 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1887 cat >>confdefs.h <<\_ACEOF
10f2d63a 1888#define __EMX__ 1
e6cc62c6 1889_ACEOF
10f2d63a 1890
cf27ef00 1891 PROGRAM_EXT=".exe"
e07802fc 1892 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1893 ;;
1894
d08b457b
GD
1895 powerpc-*-darwin* )
1896 USE_BSD=1
f11bdd03 1897 USE_DARWIN=1
3a922bb4 1898 SO_SUFFIX=dylib
e6cc62c6 1899 cat >>confdefs.h <<\_ACEOF
f11bdd03 1900#define __BSD__ 1
e6cc62c6 1901_ACEOF
b4085ce6 1902
e6cc62c6 1903 cat >>confdefs.h <<\_ACEOF
f11bdd03 1904#define __DARWIN__ 1
e6cc62c6 1905_ACEOF
d08b457b 1906
e6cc62c6 1907 cat >>confdefs.h <<\_ACEOF
d08b457b 1908#define __POWERPC__ 1
e6cc62c6 1909_ACEOF
82d43113 1910
e6cc62c6 1911 cat >>confdefs.h <<\_ACEOF
82d43113 1912#define TARGET_CARBON 1
e6cc62c6 1913_ACEOF
b4085ce6
GD
1914
1915 DEFAULT_DEFAULT_wxUSE_MAC=1
1916 ;;
1917
b12915c1
VZ
1918 *-*-beos* )
1919 USE_BEOS=1
e6cc62c6 1920 cat >>confdefs.h <<\_ACEOF
b12915c1 1921#define __BEOS__ 1
e6cc62c6 1922_ACEOF
b12915c1
VZ
1923
1924 ;;
1925
10f2d63a 1926 *)
e6cc62c6
VS
1927 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1928echo "$as_me: error: unknown system type ${host}." >&2;}
1929 { (exit 1); exit 1; }; }
10f2d63a
VZ
1930esac
1931
8284b0c5
MB
1932
1933
1934
1935 wx_arg_cache_file="configarg.cache"
1936 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1937 rm -f ${wx_arg_cache_file}.tmp
1938 touch ${wx_arg_cache_file}.tmp
1939 touch ${wx_arg_cache_file}
e6cc62c6 1940
10f2d63a
VZ
1941
1942DEBUG_CONFIGURE=0
1943if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1944 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1945 DEFAULT_wxUSE_STL=no
1e6feb95 1946
d8356fa3
VZ
1947 DEFAULT_wxUSE_NANOX=no
1948
10f2d63a
VZ
1949 DEFAULT_wxUSE_THREADS=yes
1950
1951 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1952 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1953 DEFAULT_wxUSE_PROFILE=no
1954 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1955 DEFAULT_wxUSE_NO_RTTI=no
1956 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1957 DEFAULT_wxUSE_PERMISSIVE=no
1958 DEFAULT_wxUSE_DEBUG_FLAG=yes
1959 DEFAULT_wxUSE_DEBUG_INFO=yes
1960 DEFAULT_wxUSE_DEBUG_GDB=yes
1961 DEFAULT_wxUSE_MEM_TRACING=no
1962 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1963 DEFAULT_wxUSE_DMALLOC=no
1964 DEFAULT_wxUSE_APPLE_IEEE=no
1965
1966 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1967 DEFAULT_wxUSE_LOGWINDOW=no
1968 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1969 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1970
1971 DEFAULT_wxUSE_GUI=yes
1e6feb95 1972 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1973
3e44f09d 1974 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1975 DEFAULT_wxUSE_XML=no
1976 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1977 DEFAULT_wxUSE_ZLIB=no
1978 DEFAULT_wxUSE_LIBPNG=no
1979 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1980 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1981 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1982 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1983
eb4efbdc 1984 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1985 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1986 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1987 DEFAULT_wxUSE_CMDLINE_PARSER=no
1988 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1989 DEFAULT_wxUSE_TIMER=no
1990 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1991 DEFAULT_wxUSE_FILE=no
1e6feb95 1992 DEFAULT_wxUSE_FFILE=no
a3a584a7 1993 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1994 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1995 DEFAULT_wxUSE_WAVE=no
1996 DEFAULT_wxUSE_INTL=no
1997 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1998 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1999 DEFAULT_wxUSE_STREAMS=no
2000 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2001 DEFAULT_wxUSE_OLE=no
2002 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2003 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2004 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2005 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2006 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2007 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2008 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2009
2010 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2011 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2012 DEFAULT_wxUSE_POSTSCRIPT=no
2013
10f2d63a
VZ
2014 DEFAULT_wxUSE_CLIPBOARD=no
2015 DEFAULT_wxUSE_TOOLTIPS=no
2016 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2017 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2018 DEFAULT_wxUSE_SPLINES=no
2019
2020 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2021 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2022 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2023
10f2d63a
VZ
2024 DEFAULT_wxUSE_RESOURCES=no
2025 DEFAULT_wxUSE_CONSTRAINTS=no
2026 DEFAULT_wxUSE_IPC=no
2027 DEFAULT_wxUSE_HELP=no
29fd3c0c 2028 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2029 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2030 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2031 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2032 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2033 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2034 DEFAULT_wxUSE_PROTOCOL=no
2035 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2036 DEFAULT_wxUSE_PROTOCOL_FTP=no
2037 DEFAULT_wxUSE_PROTOCOL_FILE=no
2038 DEFAULT_wxUSE_URL=no
3bd8fb5f 2039
10f2d63a 2040 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2041 DEFAULT_wxUSE_CHOICEDLG=no
2042 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2043 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2044 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2045 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2046 DEFAULT_wxUSE_FONTDLG=no
2047 DEFAULT_wxUSE_MSGDLG=no
2048 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2049 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2050 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2051 DEFAULT_wxUSE_STARTUP_TIPS=no
2052 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2053 DEFAULT_wxUSE_WIZARDDLG=no
2054
1e6feb95 2055 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2056 DEFAULT_wxUSE_MINIFRAME=no
2057 DEFAULT_wxUSE_HTML=no
24528b0c 2058 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2059 DEFAULT_wxUSE_FS_INET=no
2060 DEFAULT_wxUSE_FS_ZIP=no
2061 DEFAULT_wxUSE_BUSYINFO=no
2062 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2063 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2064
2065 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2066 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2067 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2068 DEFAULT_wxUSE_CALCTRL=no
2069 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2070 DEFAULT_wxUSE_CHECKBOX=no
2071 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2072 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2073 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2074 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2075 DEFAULT_wxUSE_GAUGE=no
2076 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_IMAGLIST=no
2078 DEFAULT_wxUSE_LISTBOX=no
2079 DEFAULT_wxUSE_LISTCTRL=no
2080 DEFAULT_wxUSE_NOTEBOOK=no
2081 DEFAULT_wxUSE_RADIOBOX=no
2082 DEFAULT_wxUSE_RADIOBTN=no
2083 DEFAULT_wxUSE_SASH=no
2084 DEFAULT_wxUSE_SCROLLBAR=no
2085 DEFAULT_wxUSE_SLIDER=no
2086 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2087 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_SPLITTER=no
2089 DEFAULT_wxUSE_STATBMP=no
2090 DEFAULT_wxUSE_STATBOX=no
2091 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2092 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2093 DEFAULT_wxUSE_STATUSBAR=yes
2094 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2095 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2096 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2097 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2098 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2099 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2100 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2101 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2102 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2103
2104 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2105 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2106 DEFAULT_wxUSE_WCSRTOMBS=no
2107
edae8572 2108 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2109 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_GIF=no
2111 DEFAULT_wxUSE_PCX=no
2112 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2113 DEFAULT_wxUSE_IFF=no
0046ff7c 2114 DEFAULT_wxUSE_XPM=no
658974ae 2115 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2116 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2117
e9e0dc15 2118 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2119 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2120else
1e6feb95 2121 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2122 DEFAULT_wxUSE_STL=no
1e6feb95 2123
d8356fa3
VZ
2124 DEFAULT_wxUSE_NANOX=no
2125
10f2d63a
VZ
2126 DEFAULT_wxUSE_THREADS=yes
2127
2128 DEFAULT_wxUSE_SHARED=yes
2129 DEFAULT_wxUSE_OPTIMISE=yes
2130 DEFAULT_wxUSE_PROFILE=no
2131 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2132 DEFAULT_wxUSE_NO_RTTI=no
2133 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2134 DEFAULT_wxUSE_PERMISSIVE=no
2135 DEFAULT_wxUSE_DEBUG_FLAG=no
2136 DEFAULT_wxUSE_DEBUG_INFO=no
2137 DEFAULT_wxUSE_DEBUG_GDB=no
2138 DEFAULT_wxUSE_MEM_TRACING=no
2139 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2140 DEFAULT_wxUSE_DMALLOC=no
2141 DEFAULT_wxUSE_APPLE_IEEE=yes
2142
2143 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2144 DEFAULT_wxUSE_LOGWINDOW=yes
2145 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2146 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2147
2148 DEFAULT_wxUSE_GUI=yes
2149
831b3152 2150 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2151 DEFAULT_wxUSE_XML=yes
2152 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2153 DEFAULT_wxUSE_ZLIB=yes
2154 DEFAULT_wxUSE_LIBPNG=yes
2155 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2156 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2157 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2158 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2159
eb4efbdc 2160 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2161 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2162 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2163 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2164 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2165 DEFAULT_wxUSE_TIMER=yes
2166 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2167 DEFAULT_wxUSE_FILE=yes
1e6feb95 2168 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2169 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2170 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2171 DEFAULT_wxUSE_WAVE=no
2172 DEFAULT_wxUSE_INTL=yes
2173 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2174 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2175 DEFAULT_wxUSE_STREAMS=yes
2176 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2177 DEFAULT_wxUSE_OLE=yes
2178 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2179 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2180 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2181 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2182 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2183 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2184 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2185
2186 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2187 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2188 DEFAULT_wxUSE_POSTSCRIPT=yes
2189
10f2d63a
VZ
2190 DEFAULT_wxUSE_CLIPBOARD=yes
2191 DEFAULT_wxUSE_TOOLTIPS=yes
2192 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2193 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2194 DEFAULT_wxUSE_SPLINES=yes
2195
2196 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2197 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2198 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2199
2b5f62a0 2200 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2201 DEFAULT_wxUSE_CONSTRAINTS=yes
2202 DEFAULT_wxUSE_IPC=yes
2203 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2204 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2205 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2206 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2207 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2208 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2209 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2210 DEFAULT_wxUSE_PROTOCOL=yes
2211 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2212 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2213 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2214 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2215
2216 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2217 DEFAULT_wxUSE_CHOICEDLG=yes
2218 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2219 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2220 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2221 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2222 DEFAULT_wxUSE_FONTDLG=yes
2223 DEFAULT_wxUSE_MSGDLG=yes
2224 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2225 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2226 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2227 DEFAULT_wxUSE_STARTUP_TIPS=yes
2228 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2229 DEFAULT_wxUSE_WIZARDDLG=yes
2230
1e6feb95 2231 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2232 DEFAULT_wxUSE_MINIFRAME=yes
2233 DEFAULT_wxUSE_HTML=yes
24528b0c 2234 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2235 DEFAULT_wxUSE_FS_INET=yes
2236 DEFAULT_wxUSE_FS_ZIP=yes
2237 DEFAULT_wxUSE_BUSYINFO=yes
2238 DEFAULT_wxUSE_ZIPSTREAM=yes
2239 DEFAULT_wxUSE_VALIDATORS=yes
2240
2241 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2242 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2243 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2244 DEFAULT_wxUSE_CALCTRL=yes
2245 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2246 DEFAULT_wxUSE_CHECKBOX=yes
2247 DEFAULT_wxUSE_CHECKLST=yes
2248 DEFAULT_wxUSE_CHOICE=yes
2249 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2250 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2251 DEFAULT_wxUSE_GAUGE=yes
2252 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2253 DEFAULT_wxUSE_IMAGLIST=yes
2254 DEFAULT_wxUSE_LISTBOX=yes
2255 DEFAULT_wxUSE_LISTCTRL=yes
2256 DEFAULT_wxUSE_NOTEBOOK=yes
2257 DEFAULT_wxUSE_RADIOBOX=yes
2258 DEFAULT_wxUSE_RADIOBTN=yes
2259 DEFAULT_wxUSE_SASH=yes
2260 DEFAULT_wxUSE_SCROLLBAR=yes
2261 DEFAULT_wxUSE_SLIDER=yes
2262 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2263 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2264 DEFAULT_wxUSE_SPLITTER=yes
2265 DEFAULT_wxUSE_STATBMP=yes
2266 DEFAULT_wxUSE_STATBOX=yes
2267 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2268 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_STATUSBAR=yes
2270 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2271 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2272 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2273 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2274 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2275 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2276 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2277 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2278 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2279
2280 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2281 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2282 DEFAULT_wxUSE_WCSRTOMBS=no
2283
edae8572 2284 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2285 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2286 DEFAULT_wxUSE_GIF=yes
2287 DEFAULT_wxUSE_PCX=yes
cc0e8480 2288 DEFAULT_wxUSE_IFF=no
10f2d63a 2289 DEFAULT_wxUSE_PNM=yes
0046ff7c 2290 DEFAULT_wxUSE_XPM=yes
658974ae 2291 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2292 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2293
e9e0dc15 2294 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2295 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2296fi
2297
8284b0c5
MB
2298
2299
10f2d63a 2300for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2301 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2302 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2303 has_toolkit_in_cache=1
2304 eval "DEFAULT_$LINE"
2305 eval "CACHE_$toolkit=1"
2306 fi
2307done
2308
8284b0c5
MB
2309
2310
5005acfe 2311 enablestring=
e6cc62c6
VS
2312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2313echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2314 no_cache=0
2315 # Check whether --enable-gui or --disable-gui was given.
2316if test "${enable_gui+set}" = set; then
2317 enableval="$enable_gui"
e6cc62c6 2318
10f2d63a
VZ
2319 if test "$enableval" = yes; then
2320 ac_cv_use_gui='wxUSE_GUI=yes'
2321 else
2322 ac_cv_use_gui='wxUSE_GUI=no'
2323 fi
e6cc62c6 2324
10f2d63a 2325else
e6cc62c6 2326
10f2d63a
VZ
2327 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2328 if test "x$LINE" != x ; then
2329 eval "DEFAULT_$LINE"
2330 else
2331 no_cache=1
2332 fi
2333
2334 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2335
e6cc62c6 2336fi;
10f2d63a
VZ
2337
2338 eval "$ac_cv_use_gui"
2339 if test "$no_cache" != 1; then
2340 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2341 fi
2342
2343 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2344 echo "$as_me:$LINENO: result: yes" >&5
2345echo "${ECHO_T}yes" >&6
10f2d63a 2346 else
e6cc62c6
VS
2347 echo "$as_me:$LINENO: result: no" >&5
2348echo "${ECHO_T}no" >&6
10f2d63a 2349 fi
e6cc62c6 2350
10f2d63a 2351
9747f85d
VS
2352 enablestring=
2353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2354echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2355 no_cache=0
2356 # Check whether --enable-monolithic or --disable-monolithic was given.
2357if test "${enable_monolithic+set}" = set; then
2358 enableval="$enable_monolithic"
2359
2360 if test "$enableval" = yes; then
2361 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2362 else
2363 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2364 fi
2365
2366else
2367
2368 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2369 if test "x$LINE" != x ; then
2370 eval "DEFAULT_$LINE"
2371 else
2372 no_cache=1
2373 fi
2374
2375 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2376
2377fi;
2378
2379 eval "$ac_cv_use_monolithic"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_MONOLITHIC" = yes; then
2385 echo "$as_me:$LINENO: result: yes" >&5
2386echo "${ECHO_T}yes" >&6
2387 else
2388 echo "$as_me:$LINENO: result: no" >&5
2389echo "${ECHO_T}no" >&6
2390 fi
2391
2392
b12915c1 2393if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2394
8284b0c5 2395
5005acfe 2396 enablestring=
e6cc62c6
VS
2397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2398echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2399 no_cache=0
2400 # Check whether --enable-universal or --disable-universal was given.
2401if test "${enable_universal+set}" = set; then
2402 enableval="$enable_universal"
e6cc62c6 2403
1e6feb95
VZ
2404 if test "$enableval" = yes; then
2405 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2406 else
2407 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2408 fi
e6cc62c6 2409
1e6feb95 2410else
e6cc62c6 2411
1e6feb95
VZ
2412 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2413 if test "x$LINE" != x ; then
2414 eval "DEFAULT_$LINE"
2415 else
2416 no_cache=1
2417 fi
2418
2419 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2420
e6cc62c6 2421fi;
1e6feb95
VZ
2422
2423 eval "$ac_cv_use_universal"
2424 if test "$no_cache" != 1; then
2425 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2426 fi
2427
2428 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2429 echo "$as_me:$LINENO: result: yes" >&5
2430echo "${ECHO_T}yes" >&6
1e6feb95 2431 else
e6cc62c6
VS
2432 echo "$as_me:$LINENO: result: no" >&5
2433echo "${ECHO_T}no" >&6
1e6feb95 2434 fi
e6cc62c6
VS
2435
2436
10f2d63a
VZ
2437# Check whether --with-gtk or --without-gtk was given.
2438if test "${with_gtk+set}" = set; then
2439 withval="$with_gtk"
2440 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2441fi;
10f2d63a
VZ
2442
2443# Check whether --with-motif or --without-motif was given.
2444if test "${with_motif+set}" = set; then
2445 withval="$with_motif"
2446 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2447fi;
10f2d63a 2448
b4085ce6
GD
2449# Check whether --with-mac or --without-mac was given.
2450if test "${with_mac+set}" = set; then
2451 withval="$with_mac"
2452 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2453fi;
b4085ce6 2454
ac0c4cc3
DE
2455# Check whether --with-cocoa or --without-cocoa was given.
2456if test "${with_cocoa+set}" = set; then
2457 withval="$with_cocoa"
2458 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2459fi;
ac0c4cc3 2460
10f2d63a
VZ
2461# Check whether --with-wine or --without-wine was given.
2462if test "${with_wine+set}" = set; then
2463 withval="$with_wine"
89e6bf6d 2464 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2465fi;
10f2d63a 2466
77e13408
RL
2467# Check whether --with-msw or --without-msw was given.
2468if test "${with_msw+set}" = set; then
2469 withval="$with_msw"
b4efce5e 2470 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2471fi;
10f2d63a 2472
e07802fc
VZ
2473# Check whether --with-pm or --without-pm was given.
2474if test "${with_pm+set}" = set; then
2475 withval="$with_pm"
2476 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2477fi;
698dcdb6 2478
1e6feb95
VZ
2479# Check whether --with-mgl or --without-mgl was given.
2480if test "${with_mgl+set}" = set; then
2481 withval="$with_mgl"
6c657b52 2482 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2483fi;
1e6feb95 2484
1725144d
RR
2485# Check whether --with-microwin or --without-microwin was given.
2486if test "${with_microwin+set}" = set; then
2487 withval="$with_microwin"
2488 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2489fi;
1725144d 2490
f79bd02d
JS
2491# Check whether --with-x11 or --without-x11 was given.
2492if test "${with_x11+set}" = set; then
2493 withval="$with_x11"
3c011993 2494 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2495fi;
a0b9e27f 2496
5005acfe 2497 enablestring=
e6cc62c6
VS
2498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2499echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2500 no_cache=0
ba875e66
VZ
2501 # Check whether --enable-nanox or --disable-nanox was given.
2502if test "${enable_nanox+set}" = set; then
2503 enableval="$enable_nanox"
e6cc62c6 2504
d8356fa3 2505 if test "$enableval" = yes; then
ba875e66 2506 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2507 else
ba875e66 2508 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2509 fi
e6cc62c6 2510
d8356fa3 2511else
e6cc62c6 2512
d8356fa3
VZ
2513 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
ba875e66 2520 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2521
e6cc62c6 2522fi;
d8356fa3 2523
ba875e66 2524 eval "$ac_cv_use_nanox"
d8356fa3 2525 if test "$no_cache" != 1; then
ba875e66 2526 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2527 fi
2528
2529 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2530 echo "$as_me:$LINENO: result: yes" >&5
2531echo "${ECHO_T}yes" >&6
d8356fa3 2532 else
e6cc62c6
VS
2533 echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6
d8356fa3 2535 fi
e6cc62c6 2536
8284b0c5 2537
d74f4b5a 2538
5005acfe 2539 enablestring=
e6cc62c6
VS
2540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2541echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2542 no_cache=0
2543 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2544if test "${enable_gtk2+set}" = set; then
2545 enableval="$enable_gtk2"
e6cc62c6 2546
d74f4b5a
VZ
2547 if test "$enableval" = yes; then
2548 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2549 else
2550 ac_cv_use_gtk2='wxUSE_GTK2=no'
2551 fi
e6cc62c6 2552
10f2d63a 2553else
e6cc62c6 2554
d74f4b5a
VZ
2555 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2556 if test "x$LINE" != x ; then
2557 eval "DEFAULT_$LINE"
2558 else
2559 no_cache=1
2560 fi
2561
2562 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2563
e6cc62c6 2564fi;
328a083c 2565
d74f4b5a
VZ
2566 eval "$ac_cv_use_gtk2"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2572 echo "$as_me:$LINENO: result: yes" >&5
2573echo "${ECHO_T}yes" >&6
d74f4b5a 2574 else
e6cc62c6
VS
2575 echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6
d74f4b5a 2577 fi
d74f4b5a 2578
5c6fa7d2 2579
e6cc62c6
VS
2580
2581 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2582echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2583 no_cache=0
e6cc62c6
VS
2584
2585# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2586if test "${with_libpng+set}" = set; then
2587 withval="$with_libpng"
e6cc62c6 2588
10f2d63a 2589 if test "$withval" = yes; then
b12915c1 2590 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2591 elif test "$withval" = no; then
b12915c1 2592 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2593 elif test "$withval" = sys; then
2594 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2595 elif test "$withval" = builtin; then
2596 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2597 else
e6cc62c6
VS
2598 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2599echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2600 { (exit 1); exit 1; }; }
10f2d63a 2601 fi
e6cc62c6 2602
10f2d63a 2603else
e6cc62c6 2604
b12915c1 2605 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2606 if test "x$LINE" != x ; then
2607 eval "DEFAULT_$LINE"
2608 else
2609 no_cache=1
2610 fi
2611
b12915c1 2612 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2613
e6cc62c6 2614fi;
10f2d63a 2615
b12915c1 2616 eval "$ac_cv_use_libpng"
10f2d63a 2617 if test "$no_cache" != 1; then
b12915c1 2618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2619 fi
2620
b12915c1 2621 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2622 echo "$as_me:$LINENO: result: yes" >&5
2623echo "${ECHO_T}yes" >&6
422107f9 2624 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2625 echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
422107f9 2627 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2628 echo "$as_me:$LINENO: result: system version" >&5
2629echo "${ECHO_T}system version" >&6
4f14bcd8 2630 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2631 echo "$as_me:$LINENO: result: builtin version" >&5
2632echo "${ECHO_T}builtin version" >&6
422107f9 2633 else
e6cc62c6
VS
2634 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2635echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2636 { (exit 1); exit 1; }; }
10f2d63a 2637 fi
10f2d63a 2638
e6cc62c6
VS
2639
2640 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2641echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2642 no_cache=0
e6cc62c6
VS
2643
2644# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2645if test "${with_libjpeg+set}" = set; then
2646 withval="$with_libjpeg"
e6cc62c6 2647
10f2d63a 2648 if test "$withval" = yes; then
b12915c1 2649 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2650 elif test "$withval" = no; then
b12915c1 2651 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2652 elif test "$withval" = sys; then
2653 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2654 elif test "$withval" = builtin; then
2655 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2656 else
e6cc62c6
VS
2657 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2658echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2659 { (exit 1); exit 1; }; }
10f2d63a 2660 fi
e6cc62c6 2661
10f2d63a 2662else
e6cc62c6 2663
b12915c1 2664 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2665 if test "x$LINE" != x ; then
2666 eval "DEFAULT_$LINE"
2667 else
2668 no_cache=1
2669 fi
2670
b12915c1 2671 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2672
e6cc62c6 2673fi;
10f2d63a 2674
b12915c1 2675 eval "$ac_cv_use_libjpeg"
10f2d63a 2676 if test "$no_cache" != 1; then
b12915c1 2677 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2678 fi
2679
b12915c1 2680 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2681 echo "$as_me:$LINENO: result: yes" >&5
2682echo "${ECHO_T}yes" >&6
422107f9 2683 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2684 echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
422107f9 2686 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2687 echo "$as_me:$LINENO: result: system version" >&5
2688echo "${ECHO_T}system version" >&6
4f14bcd8 2689 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2690 echo "$as_me:$LINENO: result: builtin version" >&5
2691echo "${ECHO_T}builtin version" >&6
422107f9 2692 else
e6cc62c6
VS
2693 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2694echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2695 { (exit 1); exit 1; }; }
10f2d63a 2696 fi
10f2d63a 2697
e6cc62c6
VS
2698
2699 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2700echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2701 no_cache=0
e6cc62c6
VS
2702
2703# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2704if test "${with_libtiff+set}" = set; then
2705 withval="$with_libtiff"
e6cc62c6 2706
10f2d63a 2707 if test "$withval" = yes; then
b12915c1 2708 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2709 elif test "$withval" = no; then
b12915c1 2710 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2711 elif test "$withval" = sys; then
2712 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2713 elif test "$withval" = builtin; then
2714 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2715 else
e6cc62c6
VS
2716 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2717echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2718 { (exit 1); exit 1; }; }
10f2d63a 2719 fi
e6cc62c6 2720
10f2d63a 2721else
e6cc62c6 2722
b12915c1 2723 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
b12915c1 2730 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2731
e6cc62c6 2732fi;
10f2d63a 2733
b12915c1 2734 eval "$ac_cv_use_libtiff"
10f2d63a 2735 if test "$no_cache" != 1; then
b12915c1 2736 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2737 fi
2738
b12915c1 2739 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2740 echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6
0dcf9893 2742 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
0dcf9893 2745 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2746 echo "$as_me:$LINENO: result: system version" >&5
2747echo "${ECHO_T}system version" >&6
4f14bcd8 2748 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2749 echo "$as_me:$LINENO: result: builtin version" >&5
2750echo "${ECHO_T}builtin version" >&6
0dcf9893 2751 else
e6cc62c6
VS
2752 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2753echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2754 { (exit 1); exit 1; }; }
10f2d63a 2755 fi
10f2d63a 2756
e6cc62c6
VS
2757
2758 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2759echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2760 no_cache=0
e6cc62c6
VS
2761
2762# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2763if test "${with_opengl+set}" = set; then
2764 withval="$with_opengl"
e6cc62c6 2765
10f2d63a 2766 if test "$withval" = yes; then
b12915c1 2767 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2768 else
b12915c1 2769 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2770 fi
e6cc62c6 2771
10f2d63a 2772else
e6cc62c6 2773
b12915c1 2774 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
b12915c1 2781 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2782
e6cc62c6 2783fi;
10f2d63a 2784
b12915c1 2785 eval "$ac_cv_use_opengl"
10f2d63a 2786 if test "$no_cache" != 1; then
b12915c1 2787 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2788 fi
2789
b12915c1 2790 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2791 echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
10f2d63a 2793 else
e6cc62c6
VS
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
10f2d63a 2796 fi
e6cc62c6 2797
10f2d63a 2798
b12915c1
VZ
2799fi
2800
5c6fa7d2 2801
e6cc62c6
VS
2802 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2803echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2804 no_cache=0
e6cc62c6
VS
2805
2806# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2807if test "${with_dmalloc+set}" = set; then
2808 withval="$with_dmalloc"
e6cc62c6 2809
c7a2bf27 2810 if test "$withval" = yes; then
b12915c1 2811 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2812 else
b12915c1 2813 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2814 fi
e6cc62c6 2815
c7a2bf27 2816else
e6cc62c6 2817
b12915c1 2818 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
b12915c1 2825 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2826
e6cc62c6 2827fi;
c7a2bf27 2828
b12915c1 2829 eval "$ac_cv_use_dmalloc"
c7a2bf27 2830 if test "$no_cache" != 1; then
b12915c1 2831 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2832 fi
2833
b12915c1 2834 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2835 echo "$as_me:$LINENO: result: yes" >&5
2836echo "${ECHO_T}yes" >&6
c7a2bf27 2837 else
e6cc62c6
VS
2838 echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
c7a2bf27 2840 fi
c7a2bf27 2841
e6cc62c6
VS
2842
2843 echo "$as_me:$LINENO: checking for --with-regex" >&5
2844echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2845 no_cache=0
e6cc62c6
VS
2846
2847# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2848if test "${with_regex+set}" = set; then
2849 withval="$with_regex"
e6cc62c6 2850
3e44f09d
VZ
2851 if test "$withval" = yes; then
2852 ac_cv_use_regex='wxUSE_REGEX=yes'
2853 elif test "$withval" = no; then
2854 ac_cv_use_regex='wxUSE_REGEX=no'
2855 elif test "$withval" = sys; then
2856 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2857 elif test "$withval" = builtin; then
2858 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2859 else
e6cc62c6
VS
2860 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2861echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2862 { (exit 1); exit 1; }; }
3e44f09d 2863 fi
e6cc62c6 2864
3e44f09d 2865else
e6cc62c6 2866
3e44f09d
VZ
2867 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2868 if test "x$LINE" != x ; then
2869 eval "DEFAULT_$LINE"
2870 else
2871 no_cache=1
2872 fi
2873
2874 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2875
e6cc62c6 2876fi;
3e44f09d
VZ
2877
2878 eval "$ac_cv_use_regex"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2884 echo "$as_me:$LINENO: result: yes" >&5
2885echo "${ECHO_T}yes" >&6
3e44f09d 2886 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2887 echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
3e44f09d 2889 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2890 echo "$as_me:$LINENO: result: system version" >&5
2891echo "${ECHO_T}system version" >&6
4f14bcd8 2892 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2893 echo "$as_me:$LINENO: result: builtin version" >&5
2894echo "${ECHO_T}builtin version" >&6
3e44f09d 2895 else
e6cc62c6
VS
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
3e44f09d 2899 fi
3e44f09d 2900
e6cc62c6
VS
2901
2902 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2903echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2904 no_cache=0
e6cc62c6
VS
2905
2906# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2907if test "${with_zlib+set}" = set; then
2908 withval="$with_zlib"
e6cc62c6 2909
10f2d63a 2910 if test "$withval" = yes; then
b12915c1 2911 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2912 elif test "$withval" = no; then
b12915c1 2913 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2914 elif test "$withval" = sys; then
2915 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2916 elif test "$withval" = builtin; then
2917 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2918 else
e6cc62c6
VS
2919 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2920echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2921 { (exit 1); exit 1; }; }
10f2d63a 2922 fi
e6cc62c6 2923
10f2d63a 2924else
e6cc62c6 2925
b12915c1 2926 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2927 if test "x$LINE" != x ; then
2928 eval "DEFAULT_$LINE"
2929 else
2930 no_cache=1
2931 fi
2932
b12915c1 2933 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2934
e6cc62c6 2935fi;
10f2d63a 2936
b12915c1 2937 eval "$ac_cv_use_zlib"
10f2d63a 2938 if test "$no_cache" != 1; then
b12915c1 2939 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2940 fi
2941
b12915c1 2942 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2943 echo "$as_me:$LINENO: result: yes" >&5
2944echo "${ECHO_T}yes" >&6
422107f9 2945 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2946 echo "$as_me:$LINENO: result: no" >&5
2947echo "${ECHO_T}no" >&6
422107f9 2948 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2949 echo "$as_me:$LINENO: result: system version" >&5
2950echo "${ECHO_T}system version" >&6
4f14bcd8 2951 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2952 echo "$as_me:$LINENO: result: builtin version" >&5
2953echo "${ECHO_T}builtin version" >&6
422107f9 2954 else
e6cc62c6
VS
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
10f2d63a 2958 fi
10f2d63a 2959
e6cc62c6
VS
2960
2961 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2962echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2963 no_cache=0
e6cc62c6
VS
2964
2965# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2966if test "${with_odbc+set}" = set; then
2967 withval="$with_odbc"
e6cc62c6 2968
10f2d63a
VZ
2969 if test "$withval" = yes; then
2970 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2971 elif test "$withval" = no; then
10f2d63a 2972 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2973 elif test "$withval" = sys; then
2974 ac_cv_use_odbc='wxUSE_ODBC=sys'
2975 elif test "$withval" = builtin; then
2976 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2977 else
e6cc62c6
VS
2978 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2979echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2980 { (exit 1); exit 1; }; }
10f2d63a 2981 fi
e6cc62c6 2982
10f2d63a 2983else
e6cc62c6 2984
10f2d63a
VZ
2985 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2986 if test "x$LINE" != x ; then
2987 eval "DEFAULT_$LINE"
2988 else
2989 no_cache=1
2990 fi
2991
2992 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2993
e6cc62c6 2994fi;
10f2d63a
VZ
2995
2996 eval "$ac_cv_use_odbc"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3002 echo "$as_me:$LINENO: result: yes" >&5
3003echo "${ECHO_T}yes" >&6
8647bec6 3004 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3005 echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
8647bec6 3007 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3008 echo "$as_me:$LINENO: result: system version" >&5
3009echo "${ECHO_T}system version" >&6
8647bec6 3010 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3011 echo "$as_me:$LINENO: result: builtin version" >&5
3012echo "${ECHO_T}builtin version" >&6
8647bec6 3013 else
e6cc62c6
VS
3014 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3015echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3016 { (exit 1); exit 1; }; }
10f2d63a 3017 fi
e6cc62c6 3018
52127426 3019
672abd7a
VS
3020 echo "$as_me:$LINENO: checking for --with-expat" >&5
3021echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3022 no_cache=0
3023
3024# Check whether --with-expat or --without-expat was given.
3025if test "${with_expat+set}" = set; then
3026 withval="$with_expat"
3027
3028 if test "$withval" = yes; then
3029 ac_cv_use_expat='wxUSE_EXPAT=yes'
3030 elif test "$withval" = no; then
3031 ac_cv_use_expat='wxUSE_EXPAT=no'
3032 elif test "$withval" = sys; then
3033 ac_cv_use_expat='wxUSE_EXPAT=sys'
3034 elif test "$withval" = builtin; then
3035 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3036 else
3037 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3038echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3039 { (exit 1); exit 1; }; }
3040 fi
3041
3042else
3043
3044 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3052
3053fi;
3054
3055 eval "$ac_cv_use_expat"
3056 if test "$no_cache" != 1; then
3057 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3058 fi
3059
3060 if test "$wxUSE_EXPAT" = yes; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062echo "${ECHO_T}yes" >&6
3063 elif test "$wxUSE_EXPAT" = no; then
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066 elif test "$wxUSE_EXPAT" = sys; then
3067 echo "$as_me:$LINENO: result: system version" >&5
3068echo "${ECHO_T}system version" >&6
3069 elif test "$wxUSE_EXPAT" = builtin; then
3070 echo "$as_me:$LINENO: result: builtin version" >&5
3071echo "${ECHO_T}builtin version" >&6
3072 else
3073 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3074echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3075 { (exit 1); exit 1; }; }
3076 fi
3077
3078
8284b0c5
MB
3079
3080
5005acfe 3081 enablestring=
e6cc62c6
VS
3082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3083echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3084 no_cache=0
3085 # Check whether --enable-shared or --disable-shared was given.
3086if test "${enable_shared+set}" = set; then
3087 enableval="$enable_shared"
e6cc62c6 3088
10f2d63a
VZ
3089 if test "$enableval" = yes; then
3090 ac_cv_use_shared='wxUSE_SHARED=yes'
3091 else
3092 ac_cv_use_shared='wxUSE_SHARED=no'
3093 fi
e6cc62c6 3094
10f2d63a 3095else
e6cc62c6 3096
10f2d63a
VZ
3097 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3105
e6cc62c6 3106fi;
10f2d63a
VZ
3107
3108 eval "$ac_cv_use_shared"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3114 echo "$as_me:$LINENO: result: yes" >&5
3115echo "${ECHO_T}yes" >&6
10f2d63a 3116 else
e6cc62c6
VS
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
10f2d63a 3119 fi
e6cc62c6 3120
10f2d63a 3121
5005acfe 3122 enablestring=
e6cc62c6
VS
3123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3124echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3125 no_cache=0
3126 # Check whether --enable-optimise or --disable-optimise was given.
3127if test "${enable_optimise+set}" = set; then
3128 enableval="$enable_optimise"
e6cc62c6 3129
10f2d63a
VZ
3130 if test "$enableval" = yes; then
3131 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3132 else
3133 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3134 fi
e6cc62c6 3135
10f2d63a 3136else
e6cc62c6 3137
10f2d63a
VZ
3138 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3146
e6cc62c6 3147fi;
10f2d63a
VZ
3148
3149 eval "$ac_cv_use_optimise"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3155 echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
10f2d63a 3157 else
e6cc62c6
VS
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
10f2d63a 3160 fi
e6cc62c6 3161
10f2d63a 3162
5005acfe 3163 enablestring=
e6cc62c6
VS
3164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3165echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3166 no_cache=0
3167 # Check whether --enable-debug or --disable-debug was given.
3168if test "${enable_debug+set}" = set; then
3169 enableval="$enable_debug"
e6cc62c6 3170
10f2d63a
VZ
3171 if test "$enableval" = yes; then
3172 ac_cv_use_debug='wxUSE_DEBUG=yes'
3173 else
3174 ac_cv_use_debug='wxUSE_DEBUG=no'
3175 fi
e6cc62c6 3176
10f2d63a 3177else
e6cc62c6 3178
10f2d63a
VZ
3179 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3187
e6cc62c6 3188fi;
10f2d63a
VZ
3189
3190 eval "$ac_cv_use_debug"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3196 echo "$as_me:$LINENO: result: yes" >&5
3197echo "${ECHO_T}yes" >&6
10f2d63a 3198 else
e6cc62c6
VS
3199 echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6
10f2d63a 3201 fi
e6cc62c6 3202
52127426 3203
df5168c4
MB
3204 enablestring=
3205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3206echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3207 no_cache=0
3208 # Check whether --enable-stl or --disable-stl was given.
3209if test "${enable_stl+set}" = set; then
3210 enableval="$enable_stl"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_stl='wxUSE_STL=yes'
3214 else
3215 ac_cv_use_stl='wxUSE_STL=no'
3216 fi
3217
3218else
3219
3220 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3228
3229fi;
3230
3231 eval "$ac_cv_use_stl"
3232 if test "$no_cache" != 1; then
3233 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3234 fi
3235
3236 if test "$wxUSE_STL" = yes; then
3237 echo "$as_me:$LINENO: result: yes" >&5
3238echo "${ECHO_T}yes" >&6
3239 else
3240 echo "$as_me:$LINENO: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242 fi
3243
3244
10f2d63a
VZ
3245if test "$wxUSE_DEBUG" = "yes"; then
3246 DEFAULT_wxUSE_DEBUG_FLAG=yes
3247 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3248 BUILD=debug
10f2d63a
VZ
3249elif test "$wxUSE_DEBUG" = "no"; then
3250 DEFAULT_wxUSE_DEBUG_FLAG=no
3251 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3252 BUILD=release
10f2d63a
VZ
3253fi
3254
8284b0c5 3255
5005acfe 3256 enablestring=
e6cc62c6
VS
3257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3258echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3259 no_cache=0
3260 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3261if test "${enable_debug_flag+set}" = set; then
3262 enableval="$enable_debug_flag"
e6cc62c6 3263
10f2d63a
VZ
3264 if test "$enableval" = yes; then
3265 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3266 else
3267 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3268 fi
e6cc62c6 3269
10f2d63a 3270else
e6cc62c6 3271
10f2d63a
VZ
3272 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3280
e6cc62c6 3281fi;
10f2d63a
VZ
3282
3283 eval "$ac_cv_use_debug_flag"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
10f2d63a 3291 else
e6cc62c6
VS
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
10f2d63a 3294 fi
e6cc62c6 3295
10f2d63a 3296
5005acfe 3297 enablestring=
e6cc62c6
VS
3298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3299echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3300 no_cache=0
3301 # Check whether --enable-debug_info or --disable-debug_info was given.
3302if test "${enable_debug_info+set}" = set; then
3303 enableval="$enable_debug_info"
e6cc62c6 3304
10f2d63a
VZ
3305 if test "$enableval" = yes; then
3306 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3307 else
3308 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3309 fi
e6cc62c6 3310
10f2d63a 3311else
e6cc62c6 3312
10f2d63a
VZ
3313 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3314 if test "x$LINE" != x ; then
3315 eval "DEFAULT_$LINE"
3316 else
3317 no_cache=1
3318 fi
3319
3320 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3321
e6cc62c6 3322fi;
10f2d63a
VZ
3323
3324 eval "$ac_cv_use_debug_info"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3330 echo "$as_me:$LINENO: result: yes" >&5
3331echo "${ECHO_T}yes" >&6
10f2d63a 3332 else
e6cc62c6
VS
3333 echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6
10f2d63a 3335 fi
e6cc62c6 3336
10f2d63a 3337
5005acfe 3338 enablestring=
e6cc62c6
VS
3339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3340echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3341 no_cache=0
3342 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3343if test "${enable_debug_gdb+set}" = set; then
3344 enableval="$enable_debug_gdb"
e6cc62c6 3345
10f2d63a
VZ
3346 if test "$enableval" = yes; then
3347 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3348 else
3349 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3350 fi
e6cc62c6 3351
10f2d63a 3352else
e6cc62c6 3353
10f2d63a
VZ
3354 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3362
e6cc62c6 3363fi;
10f2d63a
VZ
3364
3365 eval "$ac_cv_use_debug_gdb"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3371 echo "$as_me:$LINENO: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
10f2d63a 3373 else
e6cc62c6
VS
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
10f2d63a 3376 fi
e6cc62c6 3377
10f2d63a 3378
5005acfe 3379 enablestring=
e6cc62c6
VS
3380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3381echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3382 no_cache=0
3383 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3384if test "${enable_debug_cntxt+set}" = set; then
3385 enableval="$enable_debug_cntxt"
e6cc62c6 3386
10f2d63a
VZ
3387 if test "$enableval" = yes; then
3388 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3389 else
3390 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3391 fi
e6cc62c6 3392
10f2d63a 3393else
e6cc62c6 3394
10f2d63a
VZ
3395 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3396 if test "x$LINE" != x ; then
3397 eval "DEFAULT_$LINE"
3398 else
3399 no_cache=1
3400 fi
3401
3402 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3403
e6cc62c6 3404fi;
10f2d63a
VZ
3405
3406 eval "$ac_cv_use_debug_cntxt"
3407 if test "$no_cache" != 1; then
3408 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3409 fi
3410
3411 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3412 echo "$as_me:$LINENO: result: yes" >&5
3413echo "${ECHO_T}yes" >&6
10f2d63a 3414 else
e6cc62c6
VS
3415 echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6
10f2d63a 3417 fi
e6cc62c6 3418
10f2d63a 3419
5005acfe 3420 enablestring=
e6cc62c6
VS
3421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3422echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3423 no_cache=0
3424 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3425if test "${enable_mem_tracing+set}" = set; then
3426 enableval="$enable_mem_tracing"
e6cc62c6 3427
10f2d63a
VZ
3428 if test "$enableval" = yes; then
3429 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3430 else
3431 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3432 fi
e6cc62c6 3433
10f2d63a 3434else
e6cc62c6 3435
10f2d63a
VZ
3436 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3444
e6cc62c6 3445fi;
10f2d63a
VZ
3446
3447 eval "$ac_cv_use_mem_tracing"
3448 if test "$no_cache" != 1; then
3449 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3450 fi
3451
3452 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3453 echo "$as_me:$LINENO: result: yes" >&5
3454echo "${ECHO_T}yes" >&6
10f2d63a 3455 else
e6cc62c6
VS
3456 echo "$as_me:$LINENO: result: no" >&5
3457echo "${ECHO_T}no" >&6
10f2d63a 3458 fi
e6cc62c6 3459
10f2d63a 3460
5005acfe 3461 enablestring=
e6cc62c6
VS
3462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3463echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3464 no_cache=0
3465 # Check whether --enable-profile or --disable-profile was given.
3466if test "${enable_profile+set}" = set; then
3467 enableval="$enable_profile"
e6cc62c6 3468
10f2d63a
VZ
3469 if test "$enableval" = yes; then
3470 ac_cv_use_profile='wxUSE_PROFILE=yes'
3471 else
3472 ac_cv_use_profile='wxUSE_PROFILE=no'
3473 fi
e6cc62c6 3474
10f2d63a 3475else
e6cc62c6 3476
10f2d63a
VZ
3477 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3478 if test "x$LINE" != x ; then
3479 eval "DEFAULT_$LINE"
3480 else
3481 no_cache=1
3482 fi
3483
3484 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3485
e6cc62c6 3486fi;
10f2d63a
VZ
3487
3488 eval "$ac_cv_use_profile"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3494 echo "$as_me:$LINENO: result: yes" >&5
3495echo "${ECHO_T}yes" >&6
10f2d63a 3496 else
e6cc62c6
VS
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
10f2d63a 3499 fi
e6cc62c6 3500
10f2d63a 3501
5005acfe 3502 enablestring=
e6cc62c6
VS
3503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3504echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3505 no_cache=0
3506 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3507if test "${enable_no_rtti+set}" = set; then
3508 enableval="$enable_no_rtti"
e6cc62c6 3509
10f2d63a
VZ
3510 if test "$enableval" = yes; then
3511 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3512 else
3513 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3514 fi
e6cc62c6 3515
10f2d63a 3516else
e6cc62c6 3517
10f2d63a
VZ
3518 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3526
e6cc62c6 3527fi;
10f2d63a
VZ
3528
3529 eval "$ac_cv_use_no_rtti"
3530 if test "$no_cache" != 1; then
3531 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3532 fi
3533
3534 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3535 echo "$as_me:$LINENO: result: yes" >&5
3536echo "${ECHO_T}yes" >&6
10f2d63a 3537 else
e6cc62c6
VS
3538 echo "$as_me:$LINENO: result: no" >&5
3539echo "${ECHO_T}no" >&6
10f2d63a 3540 fi
e6cc62c6 3541
10f2d63a 3542
5005acfe 3543 enablestring=
e6cc62c6
VS
3544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3545echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3546 no_cache=0
3547 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3548if test "${enable_no_exceptions+set}" = set; then
3549 enableval="$enable_no_exceptions"
e6cc62c6 3550
10f2d63a
VZ
3551 if test "$enableval" = yes; then
3552 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3553 else
3554 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3555 fi
e6cc62c6 3556
10f2d63a 3557else
e6cc62c6 3558
10f2d63a
VZ
3559 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3567
e6cc62c6 3568fi;
10f2d63a
VZ
3569
3570 eval "$ac_cv_use_no_exceptions"
3571 if test "$no_cache" != 1; then
3572 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3573 fi
3574
3575 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3576 echo "$as_me:$LINENO: result: yes" >&5
3577echo "${ECHO_T}yes" >&6
10f2d63a 3578 else
e6cc62c6
VS
3579 echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
10f2d63a 3581 fi
e6cc62c6 3582
10f2d63a 3583
5005acfe 3584 enablestring=
e6cc62c6
VS
3585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3586echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3587 no_cache=0
3588 # Check whether --enable-permissive or --disable-permissive was given.
3589if test "${enable_permissive+set}" = set; then
3590 enableval="$enable_permissive"
e6cc62c6 3591
10f2d63a
VZ
3592 if test "$enableval" = yes; then
3593 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3594 else
3595 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3596 fi
e6cc62c6 3597
10f2d63a 3598else
e6cc62c6 3599
10f2d63a
VZ
3600 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3608
e6cc62c6 3609fi;
10f2d63a
VZ
3610
3611 eval "$ac_cv_use_permissive"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3617 echo "$as_me:$LINENO: result: yes" >&5
3618echo "${ECHO_T}yes" >&6
10f2d63a 3619 else
e6cc62c6
VS
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
10f2d63a 3622 fi
e6cc62c6 3623
10f2d63a 3624
5005acfe 3625 enablestring=
e6cc62c6
VS
3626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3627echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3628 no_cache=0
3629 # Check whether --enable-no_deps or --disable-no_deps was given.
3630if test "${enable_no_deps+set}" = set; then
3631 enableval="$enable_no_deps"
e6cc62c6 3632
10f2d63a
VZ
3633 if test "$enableval" = yes; then
3634 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3635 else
3636 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3637 fi
e6cc62c6 3638
10f2d63a 3639else
e6cc62c6 3640
10f2d63a
VZ
3641 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3649
e6cc62c6 3650fi;
10f2d63a
VZ
3651
3652 eval "$ac_cv_use_no_deps"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3658 echo "$as_me:$LINENO: result: yes" >&5
3659echo "${ECHO_T}yes" >&6
10f2d63a 3660 else
e6cc62c6
VS
3661 echo "$as_me:$LINENO: result: no" >&5
3662echo "${ECHO_T}no" >&6
10f2d63a 3663 fi
e6cc62c6 3664
52127426 3665
8284b0c5 3666
5005acfe 3667 enablestring=
e6cc62c6
VS
3668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3669echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3670 no_cache=0
3671 # Check whether --enable-compat20 or --disable-compat20 was given.
3672if test "${enable_compat20+set}" = set; then
3673 enableval="$enable_compat20"
e6cc62c6 3674
54276ccf
VZ
3675 if test "$enableval" = yes; then
3676 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3677 else
3678 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3679 fi
e6cc62c6 3680
54276ccf 3681else
e6cc62c6 3682
54276ccf
VZ
3683 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3691
e6cc62c6 3692fi;
54276ccf
VZ
3693
3694 eval "$ac_cv_use_compat20"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
54276ccf 3702 else
e6cc62c6
VS
3703 echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
54276ccf 3705 fi
e6cc62c6 3706
54276ccf 3707
65d8ef1e 3708 enablestring=
e6cc62c6
VS
3709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3710echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3711 no_cache=0
3712 # Check whether --enable-compat22 or --disable-compat22 was given.
3713if test "${enable_compat22+set}" = set; then
3714 enableval="$enable_compat22"
e6cc62c6 3715
54276ccf
VZ
3716 if test "$enableval" = yes; then
3717 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3718 else
3719 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3720 fi
e6cc62c6 3721
54276ccf 3722else
e6cc62c6 3723
54276ccf
VZ
3724 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3732
e6cc62c6 3733fi;
54276ccf
VZ
3734
3735 eval "$ac_cv_use_compat22"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3741 echo "$as_me:$LINENO: result: yes" >&5
3742echo "${ECHO_T}yes" >&6
54276ccf 3743 else
e6cc62c6
VS
3744 echo "$as_me:$LINENO: result: no" >&5
3745echo "${ECHO_T}no" >&6
54276ccf 3746 fi
e6cc62c6 3747
54276ccf 3748
65d8ef1e 3749 enablestring=disable
e6cc62c6
VS
3750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3751echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3752 no_cache=0
3753 # Check whether --enable-compat24 or --disable-compat24 was given.
3754if test "${enable_compat24+set}" = set; then
3755 enableval="$enable_compat24"
e6cc62c6 3756
65d8ef1e
VS
3757 if test "$enableval" = yes; then
3758 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3759 else
3760 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3761 fi
e6cc62c6 3762
65d8ef1e 3763else
e6cc62c6 3764
65d8ef1e
VS
3765 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3766 if test "x$LINE" != x ; then
3767 eval "DEFAULT_$LINE"
3768 else
3769 no_cache=1
3770 fi
3771
3772 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3773
e6cc62c6 3774fi;
65d8ef1e
VS
3775
3776 eval "$ac_cv_use_compat24"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3782 echo "$as_me:$LINENO: result: yes" >&5
3783echo "${ECHO_T}yes" >&6
65d8ef1e 3784 else
e6cc62c6
VS
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
65d8ef1e 3787 fi
e6cc62c6 3788
65d8ef1e 3789
3bd8fb5f
RD
3790# Check whether --enable-rpath or --disable-rpath was given.
3791if test "${enable_rpath+set}" = set; then
3792 enableval="$enable_rpath"
3793 wxRPATH_DIR="$enableval"
e6cc62c6 3794fi;
3bd8fb5f
RD
3795
3796if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3797 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3798fi
3799
8284b0c5
MB
3800
3801
3802
5005acfe 3803 enablestring=
e6cc62c6
VS
3804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3805echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3806 no_cache=0
3807 # Check whether --enable-intl or --disable-intl was given.
3808if test "${enable_intl+set}" = set; then
3809 enableval="$enable_intl"
e6cc62c6 3810
10f2d63a
VZ
3811 if test "$enableval" = yes; then
3812 ac_cv_use_intl='wxUSE_INTL=yes'
3813 else
3814 ac_cv_use_intl='wxUSE_INTL=no'
3815 fi
e6cc62c6 3816
10f2d63a 3817else
e6cc62c6 3818
10f2d63a
VZ
3819 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3827
e6cc62c6 3828fi;
10f2d63a
VZ
3829
3830 eval "$ac_cv_use_intl"
3831 if test "$no_cache" != 1; then
3832 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3833 fi
3834
3835 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3836 echo "$as_me:$LINENO: result: yes" >&5
3837echo "${ECHO_T}yes" >&6
10f2d63a 3838 else
e6cc62c6
VS
3839 echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
10f2d63a 3841 fi
e6cc62c6 3842
10f2d63a 3843
5005acfe 3844 enablestring=
e6cc62c6
VS
3845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3846echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3847 no_cache=0
3848 # Check whether --enable-config or --disable-config was given.
3849if test "${enable_config+set}" = set; then
3850 enableval="$enable_config"
e6cc62c6 3851
10f2d63a
VZ
3852 if test "$enableval" = yes; then
3853 ac_cv_use_config='wxUSE_CONFIG=yes'
3854 else
3855 ac_cv_use_config='wxUSE_CONFIG=no'
3856 fi
e6cc62c6 3857
10f2d63a 3858else
e6cc62c6 3859
10f2d63a
VZ
3860 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3861 if test "x$LINE" != x ; then
3862 eval "DEFAULT_$LINE"
3863 else
3864 no_cache=1
3865 fi
3866
3867 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3868
e6cc62c6 3869fi;
10f2d63a
VZ
3870
3871 eval "$ac_cv_use_config"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6
10f2d63a 3879 else
e6cc62c6
VS
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
10f2d63a 3882 fi
e6cc62c6 3883
52127426 3884
8284b0c5 3885
5005acfe 3886 enablestring=
e6cc62c6
VS
3887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3888echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3889 no_cache=0
3890 # Check whether --enable-protocols or --disable-protocols was given.
3891if test "${enable_protocols+set}" = set; then
3892 enableval="$enable_protocols"
e6cc62c6 3893
a1622950
VZ
3894 if test "$enableval" = yes; then
3895 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3896 else
3897 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3898 fi
e6cc62c6 3899
a1622950 3900else
e6cc62c6 3901
a1622950
VZ
3902 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3910
e6cc62c6 3911fi;
a1622950
VZ
3912
3913 eval "$ac_cv_use_protocols"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3919 echo "$as_me:$LINENO: result: yes" >&5
3920echo "${ECHO_T}yes" >&6
a1622950 3921 else
e6cc62c6
VS
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
a1622950 3924 fi
e6cc62c6 3925
a1622950 3926
5005acfe 3927 enablestring=
e6cc62c6
VS
3928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3929echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3930 no_cache=0
3931 # Check whether --enable-ftp or --disable-ftp was given.
3932if test "${enable_ftp+set}" = set; then
3933 enableval="$enable_ftp"
e6cc62c6 3934
a1622950
VZ
3935 if test "$enableval" = yes; then
3936 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3937 else
3938 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3939 fi
e6cc62c6 3940
a1622950 3941else
e6cc62c6 3942
a1622950
VZ
3943 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3944 if test "x$LINE" != x ; then
3945 eval "DEFAULT_$LINE"
3946 else
3947 no_cache=1
3948 fi
3949
3950 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3951
e6cc62c6 3952fi;
a1622950
VZ
3953
3954 eval "$ac_cv_use_ftp"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3960 echo "$as_me:$LINENO: result: yes" >&5
3961echo "${ECHO_T}yes" >&6
a1622950 3962 else
e6cc62c6
VS
3963 echo "$as_me:$LINENO: result: no" >&5
3964echo "${ECHO_T}no" >&6
a1622950 3965 fi
e6cc62c6 3966
a1622950 3967
5005acfe 3968 enablestring=
e6cc62c6
VS
3969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3970echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3971 no_cache=0
3972 # Check whether --enable-http or --disable-http was given.
3973if test "${enable_http+set}" = set; then
3974 enableval="$enable_http"
e6cc62c6 3975
a1622950
VZ
3976 if test "$enableval" = yes; then
3977 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3978 else
3979 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3980 fi
e6cc62c6 3981
a1622950 3982else
e6cc62c6 3983
a1622950
VZ
3984 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3992
e6cc62c6 3993fi;
a1622950
VZ
3994
3995 eval "$ac_cv_use_http"
3996 if test "$no_cache" != 1; then
3997 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3998 fi
3999
4000 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4001 echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6
a1622950 4003 else
e6cc62c6
VS
4004 echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
a1622950 4006 fi
e6cc62c6 4007
a1622950 4008
5005acfe 4009 enablestring=
e6cc62c6
VS
4010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4011echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4012 no_cache=0
4013 # Check whether --enable-fileproto or --disable-fileproto was given.
4014if test "${enable_fileproto+set}" = set; then
4015 enableval="$enable_fileproto"
e6cc62c6 4016
a1622950
VZ
4017 if test "$enableval" = yes; then
4018 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4019 else
4020 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4021 fi
e6cc62c6 4022
a1622950 4023else
e6cc62c6 4024
a1622950
VZ
4025 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4033
e6cc62c6 4034fi;
a1622950
VZ
4035
4036 eval "$ac_cv_use_fileproto"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4042 echo "$as_me:$LINENO: result: yes" >&5
4043echo "${ECHO_T}yes" >&6
a1622950 4044 else
e6cc62c6
VS
4045 echo "$as_me:$LINENO: result: no" >&5
4046echo "${ECHO_T}no" >&6
a1622950 4047 fi
e6cc62c6 4048
a1622950 4049
5005acfe 4050 enablestring=
e6cc62c6
VS
4051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4052echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4053 no_cache=0
4054 # Check whether --enable-sockets or --disable-sockets was given.
4055if test "${enable_sockets+set}" = set; then
4056 enableval="$enable_sockets"
e6cc62c6 4057
10f2d63a
VZ
4058 if test "$enableval" = yes; then
4059 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4060 else
4061 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4062 fi
e6cc62c6 4063
10f2d63a 4064else
e6cc62c6 4065
10f2d63a
VZ
4066 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4074
e6cc62c6 4075fi;
10f2d63a
VZ
4076
4077 eval "$ac_cv_use_sockets"
4078 if test "$no_cache" != 1; then
4079 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4080 fi
4081
4082 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4083 echo "$as_me:$LINENO: result: yes" >&5
4084echo "${ECHO_T}yes" >&6
10f2d63a 4085 else
e6cc62c6
VS
4086 echo "$as_me:$LINENO: result: no" >&5
4087echo "${ECHO_T}no" >&6
10f2d63a 4088 fi
e6cc62c6 4089
8284b0c5 4090
5005acfe 4091 enablestring=
e6cc62c6
VS
4092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4093echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4094 no_cache=0
4095 # Check whether --enable-ole or --disable-ole was given.
4096if test "${enable_ole+set}" = set; then
4097 enableval="$enable_ole"
e6cc62c6 4098
3bce6687
JS
4099 if test "$enableval" = yes; then
4100 ac_cv_use_ole='wxUSE_OLE=yes'
4101 else
4102 ac_cv_use_ole='wxUSE_OLE=no'
4103 fi
e6cc62c6 4104
3bce6687 4105else
e6cc62c6 4106
3bce6687
JS
4107 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4115
e6cc62c6 4116fi;
3bce6687
JS
4117
4118 eval "$ac_cv_use_ole"
4119 if test "$no_cache" != 1; then
4120 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4121 fi
4122
4123 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4124 echo "$as_me:$LINENO: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
3bce6687 4126 else
e6cc62c6
VS
4127 echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
3bce6687 4129 fi
e6cc62c6 4130
3bce6687 4131
5005acfe 4132 enablestring=
e6cc62c6
VS
4133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4134echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4135 no_cache=0
4136 # Check whether --enable-dataobj or --disable-dataobj was given.
4137if test "${enable_dataobj+set}" = set; then
4138 enableval="$enable_dataobj"
e6cc62c6 4139
3bce6687
JS
4140 if test "$enableval" = yes; then
4141 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4142 else
4143 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4144 fi
e6cc62c6 4145
3bce6687 4146else
e6cc62c6 4147
3bce6687
JS
4148 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4156
e6cc62c6 4157fi;
3bce6687
JS
4158
4159 eval "$ac_cv_use_dataobj"
4160 if test "$no_cache" != 1; then
4161 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4162 fi
4163
4164 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4165 echo "$as_me:$LINENO: result: yes" >&5
4166echo "${ECHO_T}yes" >&6
3bce6687 4167 else
e6cc62c6
VS
4168 echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6
3bce6687 4170 fi
e6cc62c6 4171
3bce6687 4172
52127426 4173
5005acfe 4174 enablestring=
e6cc62c6
VS
4175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4176echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4177 no_cache=0
eb4efbdc
VZ
4178 # Check whether --enable-ipc or --disable-ipc was given.
4179if test "${enable_ipc+set}" = set; then
4180 enableval="$enable_ipc"
e6cc62c6 4181
10f2d63a 4182 if test "$enableval" = yes; then
eb4efbdc 4183 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4184 else
eb4efbdc 4185 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4186 fi
e6cc62c6 4187
10f2d63a 4188else
e6cc62c6 4189
eb4efbdc 4190 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
eb4efbdc 4197 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4198
e6cc62c6 4199fi;
10f2d63a 4200
eb4efbdc 4201 eval "$ac_cv_use_ipc"
10f2d63a 4202 if test "$no_cache" != 1; then
eb4efbdc 4203 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4204 fi
4205
eb4efbdc 4206 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4207 echo "$as_me:$LINENO: result: yes" >&5
4208echo "${ECHO_T}yes" >&6
10f2d63a 4209 else
e6cc62c6
VS
4210 echo "$as_me:$LINENO: result: no" >&5
4211echo "${ECHO_T}no" >&6
10f2d63a 4212 fi
e6cc62c6 4213
52127426 4214
8284b0c5 4215
5005acfe 4216 enablestring=
e6cc62c6
VS
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4219 no_cache=0
4220 # Check whether --enable-cmdline or --disable-cmdline was given.
4221if test "${enable_cmdline+set}" = set; then
4222 enableval="$enable_cmdline"
e6cc62c6 4223
1e6feb95
VZ
4224 if test "$enableval" = yes; then
4225 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4226 else
4227 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4228 fi
e6cc62c6 4229
1e6feb95 4230else
e6cc62c6 4231
1e6feb95
VZ
4232 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4240
e6cc62c6 4241fi;
1e6feb95
VZ
4242
4243 eval "$ac_cv_use_cmdline"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
1e6feb95 4251 else
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
1e6feb95 4254 fi
e6cc62c6 4255
1e6feb95 4256
5005acfe 4257 enablestring=
e6cc62c6
VS
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4260 no_cache=0
4261 # Check whether --enable-datetime or --disable-datetime was given.
4262if test "${enable_datetime+set}" = set; then
4263 enableval="$enable_datetime"
e6cc62c6 4264
1e6feb95
VZ
4265 if test "$enableval" = yes; then
4266 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4267 else
4268 ac_cv_use_datetime='wxUSE_DATETIME=no'
4269 fi
e6cc62c6 4270
1e6feb95 4271else
e6cc62c6 4272
1e6feb95
VZ
4273 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4281
e6cc62c6 4282fi;
1e6feb95
VZ
4283
4284 eval "$ac_cv_use_datetime"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
1e6feb95 4292 else
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
1e6feb95 4295 fi
e6cc62c6 4296
1e6feb95 4297
5005acfe 4298 enablestring=
e6cc62c6
VS
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4301 no_cache=0
4302 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4303if test "${enable_stopwatch+set}" = set; then
4304 enableval="$enable_stopwatch"
e6cc62c6 4305
1e6feb95
VZ
4306 if test "$enableval" = yes; then
4307 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4308 else
4309 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4310 fi
e6cc62c6 4311
1e6feb95 4312else
e6cc62c6 4313
1e6feb95
VZ
4314 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4322
e6cc62c6 4323fi;
1e6feb95
VZ
4324
4325 eval "$ac_cv_use_stopwatch"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
1e6feb95 4333 else
e6cc62c6
VS
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
1e6feb95 4336 fi
e6cc62c6 4337
1e6feb95 4338
5005acfe 4339 enablestring=
e6cc62c6
VS
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4342 no_cache=0
eb4efbdc
VZ
4343 # Check whether --enable-dialupman or --disable-dialupman was given.
4344if test "${enable_dialupman+set}" = set; then
4345 enableval="$enable_dialupman"
e6cc62c6 4346
10f2d63a 4347 if test "$enableval" = yes; then
eb4efbdc 4348 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4349 else
eb4efbdc 4350 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4351 fi
e6cc62c6 4352
10f2d63a 4353else
e6cc62c6 4354
eb4efbdc 4355 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
eb4efbdc 4362 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4363
e6cc62c6 4364fi;
10f2d63a 4365
eb4efbdc 4366 eval "$ac_cv_use_dialupman"
10f2d63a 4367 if test "$no_cache" != 1; then
eb4efbdc 4368 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4369 fi
4370
eb4efbdc 4371 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
10f2d63a 4374 else
e6cc62c6
VS
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
10f2d63a 4377 fi
e6cc62c6 4378
10f2d63a 4379
5005acfe 4380 enablestring=
e6cc62c6
VS
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4383 no_cache=0
4384 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4385if test "${enable_apple_ieee+set}" = set; then
4386 enableval="$enable_apple_ieee"
e6cc62c6 4387
10f2d63a
VZ
4388 if test "$enableval" = yes; then
4389 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4390 else
4391 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4392 fi
e6cc62c6 4393
10f2d63a 4394else
e6cc62c6 4395
10f2d63a
VZ
4396 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4404
e6cc62c6 4405fi;
10f2d63a
VZ
4406
4407 eval "$ac_cv_use_apple_ieee"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
10f2d63a 4415 else
e6cc62c6
VS
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
10f2d63a 4418 fi
e6cc62c6 4419
10f2d63a 4420
5005acfe 4421 enablestring=
e6cc62c6
VS
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4424 no_cache=0
1e6feb95
VZ
4425 # Check whether --enable-timer or --disable-timer was given.
4426if test "${enable_timer+set}" = set; then
4427 enableval="$enable_timer"
e6cc62c6 4428
10f2d63a 4429 if test "$enableval" = yes; then
1e6feb95 4430 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4431 else
1e6feb95 4432 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4433 fi
e6cc62c6 4434
10f2d63a 4435else
e6cc62c6 4436
1e6feb95 4437 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
1e6feb95 4444 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4445
e6cc62c6 4446fi;
10f2d63a 4447
1e6feb95 4448 eval "$ac_cv_use_timer"
10f2d63a 4449 if test "$no_cache" != 1; then
1e6feb95 4450 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4451 fi
4452
1e6feb95 4453 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
10f2d63a 4456 else
e6cc62c6
VS
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
10f2d63a 4459 fi
e6cc62c6 4460
10f2d63a 4461
5005acfe 4462 enablestring=
e6cc62c6
VS
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4465 no_cache=0
4466 # Check whether --enable-wave or --disable-wave was given.
4467if test "${enable_wave+set}" = set; then
4468 enableval="$enable_wave"
e6cc62c6 4469
10f2d63a
VZ
4470 if test "$enableval" = yes; then
4471 ac_cv_use_wave='wxUSE_WAVE=yes'
4472 else
4473 ac_cv_use_wave='wxUSE_WAVE=no'
4474 fi
e6cc62c6 4475
10f2d63a 4476else
e6cc62c6 4477
10f2d63a
VZ
4478 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4486
e6cc62c6 4487fi;
10f2d63a
VZ
4488
4489 eval "$ac_cv_use_wave"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
10f2d63a 4497 else
e6cc62c6
VS
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
10f2d63a 4500 fi
e6cc62c6 4501
10f2d63a 4502
5005acfe 4503 enablestring=
e6cc62c6
VS
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4506 no_cache=0
4507 # Check whether --enable-fraction or --disable-fraction was given.
4508if test "${enable_fraction+set}" = set; then
4509 enableval="$enable_fraction"
e6cc62c6 4510
10f2d63a
VZ
4511 if test "$enableval" = yes; then
4512 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4513 else
4514 ac_cv_use_fraction='wxUSE_FRACTION=no'
4515 fi
e6cc62c6 4516
10f2d63a 4517else
e6cc62c6 4518
10f2d63a
VZ
4519 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4527
e6cc62c6 4528fi;
10f2d63a
VZ
4529
4530 eval "$ac_cv_use_fraction"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
10f2d63a 4538 else
e6cc62c6
VS
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
10f2d63a 4541 fi
e6cc62c6 4542
10f2d63a 4543
5005acfe 4544 enablestring=
e6cc62c6
VS
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4547 no_cache=0
4548 # Check whether --enable-dynlib or --disable-dynlib was given.
4549if test "${enable_dynlib+set}" = set; then
4550 enableval="$enable_dynlib"
e6cc62c6 4551
10f2d63a
VZ
4552 if test "$enableval" = yes; then
4553 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4554 else
4555 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4556 fi
e6cc62c6 4557
10f2d63a 4558else
e6cc62c6 4559
10f2d63a
VZ
4560 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4568
e6cc62c6 4569fi;
10f2d63a
VZ
4570
4571 eval "$ac_cv_use_dynlib"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
10f2d63a 4579 else
e6cc62c6
VS
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
10f2d63a 4582 fi
e6cc62c6 4583
10f2d63a 4584
5005acfe 4585 enablestring=
e6cc62c6
VS
4586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4587echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4588 no_cache=0
4589 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4590if test "${enable_dynamicloader+set}" = set; then
4591 enableval="$enable_dynamicloader"
e6cc62c6 4592
0b9ab0bd
RL
4593 if test "$enableval" = yes; then
4594 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4595 else
4596 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4597 fi
e6cc62c6 4598
0b9ab0bd 4599else
e6cc62c6 4600
0b9ab0bd
RL
4601 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4609
e6cc62c6 4610fi;
0b9ab0bd
RL
4611
4612 eval "$ac_cv_use_dynamicloader"
4613 if test "$no_cache" != 1; then
4614 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4615 fi
4616
4617 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4618 echo "$as_me:$LINENO: result: yes" >&5
4619echo "${ECHO_T}yes" >&6
0b9ab0bd 4620 else
e6cc62c6
VS
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
0b9ab0bd 4623 fi
e6cc62c6 4624
0b9ab0bd 4625
5005acfe 4626 enablestring=
e6cc62c6
VS
4627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4628echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4629 no_cache=0
4630 # Check whether --enable-longlong or --disable-longlong was given.
4631if test "${enable_longlong+set}" = set; then
4632 enableval="$enable_longlong"
e6cc62c6 4633
10f2d63a
VZ
4634 if test "$enableval" = yes; then
4635 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4636 else
4637 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4638 fi
e6cc62c6 4639
10f2d63a 4640else
e6cc62c6 4641
10f2d63a
VZ
4642 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4643 if test "x$LINE" != x ; then
4644 eval "DEFAULT_$LINE"
4645 else
4646 no_cache=1
4647 fi
4648
4649 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4650
e6cc62c6 4651fi;
10f2d63a
VZ
4652
4653 eval "$ac_cv_use_longlong"
4654 if test "$no_cache" != 1; then
4655 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4656 fi
4657
4658 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4659 echo "$as_me:$LINENO: result: yes" >&5
4660echo "${ECHO_T}yes" >&6
10f2d63a 4661 else
e6cc62c6
VS
4662 echo "$as_me:$LINENO: result: no" >&5
4663echo "${ECHO_T}no" >&6
10f2d63a 4664 fi
e6cc62c6 4665
10f2d63a 4666
5005acfe 4667 enablestring=
e6cc62c6
VS
4668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4669echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4670 no_cache=0
4671 # Check whether --enable-geometry or --disable-geometry was given.
4672if test "${enable_geometry+set}" = set; then
4673 enableval="$enable_geometry"
e6cc62c6 4674
e8f65ba6
RR
4675 if test "$enableval" = yes; then
4676 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4677 else
4678 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4679 fi
e6cc62c6 4680
e8f65ba6 4681else
e6cc62c6 4682
e8f65ba6
RR
4683 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4684 if test "x$LINE" != x ; then
4685 eval "DEFAULT_$LINE"
4686 else
4687 no_cache=1
4688 fi
4689
4690 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4691
e6cc62c6 4692fi;
e8f65ba6
RR
4693
4694 eval "$ac_cv_use_geometry"
4695 if test "$no_cache" != 1; then
4696 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4697 fi
4698
4699 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4700 echo "$as_me:$LINENO: result: yes" >&5
4701echo "${ECHO_T}yes" >&6
e8f65ba6 4702 else
e6cc62c6
VS
4703 echo "$as_me:$LINENO: result: no" >&5
4704echo "${ECHO_T}no" >&6
e8f65ba6 4705 fi
e6cc62c6 4706
e8f65ba6 4707
5005acfe 4708 enablestring=
e6cc62c6
VS
4709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4710echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4711 no_cache=0
4712 # Check whether --enable-log or --disable-log was given.
4713if test "${enable_log+set}" = set; then
4714 enableval="$enable_log"
e6cc62c6 4715
10f2d63a
VZ
4716 if test "$enableval" = yes; then
4717 ac_cv_use_log='wxUSE_LOG=yes'
4718 else
4719 ac_cv_use_log='wxUSE_LOG=no'
4720 fi
e6cc62c6 4721
10f2d63a 4722else
e6cc62c6 4723
10f2d63a
VZ
4724 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4725 if test "x$LINE" != x ; then
4726 eval "DEFAULT_$LINE"
4727 else
4728 no_cache=1
4729 fi
4730
4731 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4732
e6cc62c6 4733fi;
10f2d63a
VZ
4734
4735 eval "$ac_cv_use_log"
4736 if test "$no_cache" != 1; then
4737 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4738 fi
4739
4740 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4741 echo "$as_me:$LINENO: result: yes" >&5
4742echo "${ECHO_T}yes" >&6
10f2d63a 4743 else
e6cc62c6
VS
4744 echo "$as_me:$LINENO: result: no" >&5
4745echo "${ECHO_T}no" >&6
10f2d63a 4746 fi
e6cc62c6 4747
10f2d63a 4748
5005acfe 4749 enablestring=
e6cc62c6
VS
4750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4751echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4752 no_cache=0
4753 # Check whether --enable-streams or --disable-streams was given.
4754if test "${enable_streams+set}" = set; then
4755 enableval="$enable_streams"
e6cc62c6 4756
10f2d63a
VZ
4757 if test "$enableval" = yes; then
4758 ac_cv_use_streams='wxUSE_STREAMS=yes'
4759 else
4760 ac_cv_use_streams='wxUSE_STREAMS=no'
4761 fi
e6cc62c6 4762
10f2d63a 4763else
e6cc62c6 4764
10f2d63a
VZ
4765 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4766 if test "x$LINE" != x ; then
4767 eval "DEFAULT_$LINE"
4768 else
4769 no_cache=1
4770 fi
4771
4772 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4773
e6cc62c6 4774fi;
10f2d63a
VZ
4775
4776 eval "$ac_cv_use_streams"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4782 echo "$as_me:$LINENO: result: yes" >&5
4783echo "${ECHO_T}yes" >&6
10f2d63a 4784 else
e6cc62c6
VS
4785 echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6
10f2d63a 4787 fi
e6cc62c6 4788
10f2d63a 4789
5005acfe 4790 enablestring=
e6cc62c6
VS
4791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4792echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4793 no_cache=0
4794 # Check whether --enable-file or --disable-file was given.
4795if test "${enable_file+set}" = set; then
4796 enableval="$enable_file"
e6cc62c6 4797
10f2d63a
VZ
4798 if test "$enableval" = yes; then
4799 ac_cv_use_file='wxUSE_FILE=yes'
4800 else
4801 ac_cv_use_file='wxUSE_FILE=no'
4802 fi
e6cc62c6 4803
10f2d63a 4804else
e6cc62c6 4805
10f2d63a
VZ
4806 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4814
e6cc62c6 4815fi;
10f2d63a
VZ
4816
4817 eval "$ac_cv_use_file"
4818 if test "$no_cache" != 1; then
4819 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4820 fi
4821
4822 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4823 echo "$as_me:$LINENO: result: yes" >&5
4824echo "${ECHO_T}yes" >&6
10f2d63a 4825 else
e6cc62c6
VS
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
10f2d63a 4828 fi
e6cc62c6 4829
10f2d63a 4830
5005acfe 4831 enablestring=
e6cc62c6
VS
4832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4833echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4834 no_cache=0
1e6feb95
VZ
4835 # Check whether --enable-ffile or --disable-ffile was given.
4836if test "${enable_ffile+set}" = set; then
4837 enableval="$enable_ffile"
e6cc62c6 4838
10f2d63a 4839 if test "$enableval" = yes; then
1e6feb95 4840 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4841 else
1e6feb95 4842 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4843 fi
e6cc62c6 4844
10f2d63a 4845else
e6cc62c6 4846
1e6feb95 4847 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4848 if test "x$LINE" != x ; then
4849 eval "DEFAULT_$LINE"
4850 else
4851 no_cache=1
4852 fi
4853
1e6feb95 4854 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4855
e6cc62c6 4856fi;
10f2d63a 4857
1e6feb95 4858 eval "$ac_cv_use_ffile"
10f2d63a 4859 if test "$no_cache" != 1; then
1e6feb95 4860 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4861 fi
4862
1e6feb95 4863 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4864 echo "$as_me:$LINENO: result: yes" >&5
4865echo "${ECHO_T}yes" >&6
10f2d63a 4866 else
e6cc62c6
VS
4867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
10f2d63a 4869 fi
e6cc62c6 4870
10f2d63a 4871
5005acfe 4872 enablestring=
e6cc62c6
VS
4873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4874echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4875 no_cache=0
4876 # Check whether --enable-textbuf or --disable-textbuf was given.
4877if test "${enable_textbuf+set}" = set; then
4878 enableval="$enable_textbuf"
e6cc62c6 4879
a3a584a7
VZ
4880 if test "$enableval" = yes; then
4881 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4882 else
4883 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4884 fi
e6cc62c6 4885
a3a584a7 4886else
e6cc62c6 4887
a3a584a7
VZ
4888 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4889 if test "x$LINE" != x ; then
4890 eval "DEFAULT_$LINE"
4891 else
4892 no_cache=1
4893 fi
4894
4895 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4896
e6cc62c6 4897fi;
a3a584a7
VZ
4898
4899 eval "$ac_cv_use_textbuf"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4905 echo "$as_me:$LINENO: result: yes" >&5
4906echo "${ECHO_T}yes" >&6
a3a584a7 4907 else
e6cc62c6
VS
4908 echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6
a3a584a7 4910 fi
e6cc62c6 4911
a3a584a7 4912
5005acfe 4913 enablestring=
e6cc62c6
VS
4914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4915echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4916 no_cache=0
1e6feb95
VZ
4917 # Check whether --enable-textfile or --disable-textfile was given.
4918if test "${enable_textfile+set}" = set; then
4919 enableval="$enable_textfile"
e6cc62c6 4920
10f2d63a 4921 if test "$enableval" = yes; then
1e6feb95 4922 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4923 else
1e6feb95 4924 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4925 fi
e6cc62c6 4926
10f2d63a 4927else
e6cc62c6 4928
1e6feb95 4929 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
1e6feb95 4936 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4937
e6cc62c6 4938fi;
10f2d63a 4939
1e6feb95 4940 eval "$ac_cv_use_textfile"
10f2d63a 4941 if test "$no_cache" != 1; then
1e6feb95 4942 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4943 fi
4944
1e6feb95 4945 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4946 echo "$as_me:$LINENO: result: yes" >&5
4947echo "${ECHO_T}yes" >&6
10f2d63a 4948 else
e6cc62c6
VS
4949 echo "$as_me:$LINENO: result: no" >&5
4950echo "${ECHO_T}no" >&6
10f2d63a 4951 fi
e6cc62c6 4952
10f2d63a 4953
5005acfe 4954 enablestring=
e6cc62c6
VS
4955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4956echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4957 no_cache=0
1e6feb95
VZ
4958 # Check whether --enable-fontmap or --disable-fontmap was given.
4959if test "${enable_fontmap+set}" = set; then
4960 enableval="$enable_fontmap"
e6cc62c6 4961
10f2d63a 4962 if test "$enableval" = yes; then
1e6feb95 4963 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4964 else
1e6feb95 4965 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4966 fi
e6cc62c6 4967
10f2d63a 4968else
e6cc62c6 4969
1e6feb95 4970 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
1e6feb95 4977 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4978
e6cc62c6 4979fi;
10f2d63a 4980
1e6feb95 4981 eval "$ac_cv_use_fontmap"
10f2d63a 4982 if test "$no_cache" != 1; then
1e6feb95 4983 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4984 fi
4985
1e6feb95 4986 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4987 echo "$as_me:$LINENO: result: yes" >&5
4988echo "${ECHO_T}yes" >&6
10f2d63a 4989 else
e6cc62c6
VS
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
10f2d63a 4992 fi
e6cc62c6 4993
10f2d63a 4994
5005acfe 4995 enablestring=
e6cc62c6
VS
4996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4997echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4998 no_cache=0
1e6feb95
VZ
4999 # Check whether --enable-unicode or --disable-unicode was given.
5000if test "${enable_unicode+set}" = set; then
5001 enableval="$enable_unicode"
e6cc62c6 5002
1e6feb95
VZ
5003 if test "$enableval" = yes; then
5004 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5005 else
5006 ac_cv_use_unicode='wxUSE_UNICODE=no'
5007 fi
e6cc62c6 5008
1e6feb95 5009else
e6cc62c6 5010
1e6feb95
VZ
5011 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 else
5015 no_cache=1
5016 fi
5017
5018 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 5019
e6cc62c6 5020fi;
1e6feb95
VZ
5021
5022 eval "$ac_cv_use_unicode"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5028 echo "$as_me:$LINENO: result: yes" >&5
5029echo "${ECHO_T}yes" >&6
1e6feb95 5030 else
e6cc62c6
VS
5031 echo "$as_me:$LINENO: result: no" >&5
5032echo "${ECHO_T}no" >&6
1e6feb95 5033 fi
e6cc62c6 5034
1e6feb95 5035
5005acfe 5036 enablestring=
e6cc62c6
VS
5037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5038echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5039 no_cache=0
5040 # Check whether --enable-mslu or --disable-mslu was given.
5041if test "${enable_mslu+set}" = set; then
5042 enableval="$enable_mslu"
e6cc62c6 5043
a72a4bfa
VS
5044 if test "$enableval" = yes; then
5045 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5046 else
5047 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5048 fi
e6cc62c6 5049
a72a4bfa 5050else
e6cc62c6 5051
a72a4bfa
VS
5052 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5053 if test "x$LINE" != x ; then
5054 eval "DEFAULT_$LINE"
5055 else
5056 no_cache=1
5057 fi
5058
5059 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5060
e6cc62c6 5061fi;
a72a4bfa
VS
5062
5063 eval "$ac_cv_use_mslu"
5064 if test "$no_cache" != 1; then
5065 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5066 fi
5067
5068 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5069 echo "$as_me:$LINENO: result: yes" >&5
5070echo "${ECHO_T}yes" >&6
a72a4bfa 5071 else
e6cc62c6
VS
5072 echo "$as_me:$LINENO: result: no" >&5
5073echo "${ECHO_T}no" >&6
a72a4bfa 5074 fi
e6cc62c6 5075
a72a4bfa 5076
5005acfe 5077 enablestring=
e6cc62c6
VS
5078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5079echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5080 no_cache=0
5081 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5082if test "${enable_wxprintfv+set}" = set; then
5083 enableval="$enable_wxprintfv"
e6cc62c6 5084
1e6feb95 5085 if test "$enableval" = yes; then
10f2d63a
VZ
5086 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5087 else
5088 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5089 fi
e6cc62c6 5090
10f2d63a 5091else
e6cc62c6 5092
10f2d63a
VZ
5093 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5101
e6cc62c6 5102fi;
10f2d63a
VZ
5103
5104 eval "$ac_cv_use_wxprintfv"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5110 echo "$as_me:$LINENO: result: yes" >&5
5111echo "${ECHO_T}yes" >&6
10f2d63a 5112 else
e6cc62c6
VS
5113 echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
10f2d63a 5115 fi
e6cc62c6 5116
10f2d63a 5117
5005acfe 5118 enablestring=
e6cc62c6
VS
5119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5120echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5121 no_cache=0
5122 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5123if test "${enable_std_iostreams+set}" = set; then
5124 enableval="$enable_std_iostreams"
e6cc62c6 5125
10f2d63a
VZ
5126 if test "$enableval" = yes; then
5127 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5128 else
5129 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5130 fi
e6cc62c6 5131
10f2d63a 5132else
e6cc62c6 5133
10f2d63a
VZ
5134 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5135 if test "x$LINE" != x ; then
5136 eval "DEFAULT_$LINE"
5137 else
5138 no_cache=1
5139 fi
5140
5141 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5142
e6cc62c6 5143fi;
10f2d63a
VZ
5144
5145 eval "$ac_cv_use_std_iostreams"
5146 if test "$no_cache" != 1; then
5147 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5148 fi
5149
5150 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5151 echo "$as_me:$LINENO: result: yes" >&5
5152echo "${ECHO_T}yes" >&6
10f2d63a 5153 else
e6cc62c6
VS
5154 echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6
10f2d63a 5156 fi
e6cc62c6 5157
10f2d63a 5158
5005acfe 5159 enablestring=
e6cc62c6
VS
5160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5161echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5162 no_cache=0
5163 # Check whether --enable-filesystem or --disable-filesystem was given.
5164if test "${enable_filesystem+set}" = set; then
5165 enableval="$enable_filesystem"
e6cc62c6 5166
24528b0c
VS
5167 if test "$enableval" = yes; then
5168 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5169 else
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5171 fi
e6cc62c6 5172
24528b0c 5173else
e6cc62c6 5174
24528b0c
VS
5175 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5183
e6cc62c6 5184fi;
24528b0c
VS
5185
5186 eval "$ac_cv_use_filesystem"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5192 echo "$as_me:$LINENO: result: yes" >&5
5193echo "${ECHO_T}yes" >&6
24528b0c 5194 else
e6cc62c6
VS
5195 echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6
24528b0c 5197 fi
e6cc62c6 5198
24528b0c 5199
5005acfe 5200 enablestring=
e6cc62c6
VS
5201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5202echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5203 no_cache=0
5204 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5205if test "${enable_fs_inet+set}" = set; then
5206 enableval="$enable_fs_inet"
e6cc62c6 5207
10f2d63a
VZ
5208 if test "$enableval" = yes; then
5209 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5210 else
5211 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5212 fi
e6cc62c6 5213
10f2d63a 5214else
e6cc62c6 5215
10f2d63a
VZ
5216 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5217 if test "x$LINE" != x ; then
5218 eval "DEFAULT_$LINE"
5219 else
5220 no_cache=1
5221 fi
5222
5223 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5224
e6cc62c6 5225fi;
10f2d63a
VZ
5226
5227 eval "$ac_cv_use_fs_inet"
5228 if test "$no_cache" != 1; then
5229 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5230 fi
5231
5232 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5233 echo "$as_me:$LINENO: result: yes" >&5
5234echo "${ECHO_T}yes" >&6
10f2d63a 5235 else
e6cc62c6
VS
5236 echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6
10f2d63a 5238 fi
e6cc62c6 5239
10f2d63a 5240
5005acfe 5241 enablestring=
e6cc62c6
VS
5242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5243echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5244 no_cache=0
5245 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5246if test "${enable_fs_zip+set}" = set; then
5247 enableval="$enable_fs_zip"
e6cc62c6 5248
10f2d63a
VZ
5249 if test "$enableval" = yes; then
5250 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5251 else
5252 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5253 fi
e6cc62c6 5254
10f2d63a 5255else
e6cc62c6 5256
10f2d63a
VZ
5257 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5265
e6cc62c6 5266fi;
10f2d63a
VZ
5267
5268 eval "$ac_cv_use_fs_zip"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5274 echo "$as_me:$LINENO: result: yes" >&5
5275echo "${ECHO_T}yes" >&6
10f2d63a 5276 else
e6cc62c6
VS
5277 echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
10f2d63a 5279 fi
e6cc62c6 5280
10f2d63a 5281
5005acfe 5282 enablestring=
e6cc62c6
VS
5283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5284echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5285 no_cache=0
5286 # Check whether --enable-zipstream or --disable-zipstream was given.
5287if test "${enable_zipstream+set}" = set; then
5288 enableval="$enable_zipstream"
e6cc62c6 5289
10f2d63a
VZ
5290 if test "$enableval" = yes; then
5291 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5292 else
5293 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5294 fi
e6cc62c6 5295
10f2d63a 5296else
e6cc62c6 5297
10f2d63a
VZ
5298 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5299 if test "x$LINE" != x ; then
5300 eval "DEFAULT_$LINE"
5301 else
5302 no_cache=1
5303 fi
5304
5305 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5306
e6cc62c6 5307fi;
10f2d63a
VZ
5308
5309 eval "$ac_cv_use_zipstream"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5315 echo "$as_me:$LINENO: result: yes" >&5
5316echo "${ECHO_T}yes" >&6
10f2d63a 5317 else
e6cc62c6
VS
5318 echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6
10f2d63a 5320 fi
e6cc62c6 5321
8284b0c5 5322
52127426 5323
5005acfe 5324 enablestring=
e6cc62c6
VS
5325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5326echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5327 no_cache=0
5328 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5329if test "${enable_catch_segvs+set}" = set; then
5330 enableval="$enable_catch_segvs"
e6cc62c6 5331
eb4efbdc
VZ
5332 if test "$enableval" = yes; then
5333 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5334 else
5335 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5336 fi
e6cc62c6 5337
eb4efbdc 5338else
e6cc62c6 5339
eb4efbdc
VZ
5340 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5341 if test "x$LINE" != x ; then
5342 eval "DEFAULT_$LINE"
5343 else
5344 no_cache=1
5345 fi
5346
5347 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5348
e6cc62c6 5349fi;
eb4efbdc
VZ
5350
5351 eval "$ac_cv_use_catch_segvs"
5352 if test "$no_cache" != 1; then
5353 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5354 fi
5355
5356 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5357 echo "$as_me:$LINENO: result: yes" >&5
5358echo "${ECHO_T}yes" >&6
eb4efbdc 5359 else
e6cc62c6
VS
5360 echo "$as_me:$LINENO: result: no" >&5
5361echo "${ECHO_T}no" >&6
eb4efbdc 5362 fi
e6cc62c6 5363
eb4efbdc 5364
5005acfe 5365 enablestring=
e6cc62c6
VS
5366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5367echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5368 no_cache=0
5369 # Check whether --enable-snglinst or --disable-snglinst was given.
5370if test "${enable_snglinst+set}" = set; then
5371 enableval="$enable_snglinst"
e6cc62c6 5372
4f3c5f06
VZ
5373 if test "$enableval" = yes; then
5374 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5375 else
5376 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5377 fi
e6cc62c6 5378
4f3c5f06 5379else
e6cc62c6 5380
4f3c5f06
VZ
5381 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5382 if test "x$LINE" != x ; then
5383 eval "DEFAULT_$LINE"
5384 else
5385 no_cache=1
5386 fi
5387
5388 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5389
e6cc62c6 5390fi;
4f3c5f06
VZ
5391
5392 eval "$ac_cv_use_snglinst"
5393 if test "$no_cache" != 1; then
5394 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5395 fi
5396
5397 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5398 echo "$as_me:$LINENO: result: yes" >&5
5399echo "${ECHO_T}yes" >&6
4f3c5f06 5400 else
e6cc62c6
VS
5401 echo "$as_me:$LINENO: result: no" >&5
5402echo "${ECHO_T}no" >&6
4f3c5f06 5403 fi
e6cc62c6 5404
52127426 5405
8284b0c5 5406
5005acfe 5407 enablestring=
e6cc62c6
VS
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5410 no_cache=0
5411 # Check whether --enable-mimetype or --disable-mimetype was given.
5412if test "${enable_mimetype+set}" = set; then
5413 enableval="$enable_mimetype"
e6cc62c6 5414
1e6feb95
VZ
5415 if test "$enableval" = yes; then
5416 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5417 else
5418 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5419 fi
e6cc62c6 5420
1e6feb95 5421else
e6cc62c6 5422
1e6feb95
VZ
5423 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5431
e6cc62c6 5432fi;
1e6feb95
VZ
5433
5434 eval "$ac_cv_use_mimetype"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
1e6feb95 5442 else
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
1e6feb95 5445 fi
e6cc62c6 5446
1e6feb95 5447
5005acfe 5448 enablestring=
e6cc62c6
VS
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5451 no_cache=0
5452 # Check whether --enable-system_options or --disable-system_options was given.
5453if test "${enable_system_options+set}" = set; then
5454 enableval="$enable_system_options"
e6cc62c6 5455
3e44f09d
VZ
5456 if test "$enableval" = yes; then
5457 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5458 else
5459 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5460 fi
e6cc62c6 5461
3e44f09d 5462else
e6cc62c6 5463
3e44f09d
VZ
5464 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5472
e6cc62c6 5473fi;
3e44f09d
VZ
5474
5475 eval "$ac_cv_use_system_options"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
3e44f09d 5483 else
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
3e44f09d 5486 fi
e6cc62c6 5487
8284b0c5 5488
52127426 5489
5005acfe 5490 enablestring=
e6cc62c6
VS
5491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5492echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5493 no_cache=0
5494 # Check whether --enable-url or --disable-url was given.
5495if test "${enable_url+set}" = set; then
5496 enableval="$enable_url"
e6cc62c6 5497
4cdb0ab0
VS
5498 if test "$enableval" = yes; then
5499 ac_cv_use_url='wxUSE_URL=yes'
5500 else
5501 ac_cv_use_url='wxUSE_URL=no'
5502 fi
e6cc62c6 5503
4cdb0ab0 5504else
e6cc62c6 5505
4cdb0ab0
VS
5506 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5507 if test "x$LINE" != x ; then
5508 eval "DEFAULT_$LINE"
5509 else
5510 no_cache=1
5511 fi
5512
5513 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5514
e6cc62c6 5515fi;
4cdb0ab0
VS
5516
5517 eval "$ac_cv_use_url"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5523 echo "$as_me:$LINENO: result: yes" >&5
5524echo "${ECHO_T}yes" >&6
4cdb0ab0 5525 else
e6cc62c6
VS
5526 echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
4cdb0ab0 5528 fi
e6cc62c6 5529
4cdb0ab0 5530
5005acfe 5531 enablestring=
e6cc62c6
VS
5532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5533echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5534 no_cache=0
5535 # Check whether --enable-protocol or --disable-protocol was given.
5536if test "${enable_protocol+set}" = set; then
5537 enableval="$enable_protocol"
e6cc62c6 5538
4cdb0ab0
VS
5539 if test "$enableval" = yes; then
5540 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5541 else
5542 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5543 fi
e6cc62c6 5544
4cdb0ab0 5545else
e6cc62c6 5546
4cdb0ab0
VS
5547 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5548 if test "x$LINE" != x ; then
5549 eval "DEFAULT_$LINE"
5550 else
5551 no_cache=1
5552 fi
5553
5554 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5555
e6cc62c6 5556fi;
4cdb0ab0
VS
5557
5558 eval "$ac_cv_use_protocol"
5559 if test "$no_cache" != 1; then
5560 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5561 fi
5562
5563 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5564 echo "$as_me:$LINENO: result: yes" >&5
5565echo "${ECHO_T}yes" >&6
4cdb0ab0 5566 else
e6cc62c6
VS
5567 echo "$as_me:$LINENO: result: no" >&5
5568echo "${ECHO_T}no" >&6
4cdb0ab0 5569 fi
e6cc62c6 5570
4cdb0ab0 5571
5005acfe 5572 enablestring=
e6cc62c6
VS
5573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5574echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5575 no_cache=0
5576 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5577if test "${enable_protocol_http+set}" = set; then
5578 enableval="$enable_protocol_http"
e6cc62c6 5579
4cdb0ab0
VS
5580 if test "$enableval" = yes; then
5581 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5582 else
5583 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5584 fi
e6cc62c6 5585
4cdb0ab0 5586else
e6cc62c6 5587
4cdb0ab0
VS
5588 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5589 if test "x$LINE" != x ; then
5590 eval "DEFAULT_$LINE"
5591 else
5592 no_cache=1
5593 fi
5594
5595 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5596
e6cc62c6 5597fi;
4cdb0ab0
VS
5598
5599 eval "$ac_cv_use_protocol_http"
5600 if test "$no_cache" != 1; then
5601 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5602 fi
5603
5604 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5605 echo "$as_me:$LINENO: result: yes" >&5
5606echo "${ECHO_T}yes" >&6
4cdb0ab0 5607 else
e6cc62c6
VS
5608 echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6
4cdb0ab0 5610 fi
e6cc62c6 5611
4cdb0ab0 5612
5005acfe 5613 enablestring=
e6cc62c6
VS
5614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5615echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5616 no_cache=0
5617 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5618if test "${enable_protocol_ftp+set}" = set; then
5619 enableval="$enable_protocol_ftp"
e6cc62c6 5620
4cdb0ab0
VS
5621 if test "$enableval" = yes; then
5622 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5623 else
5624 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5625 fi
e6cc62c6 5626
4cdb0ab0 5627else
e6cc62c6 5628
4cdb0ab0
VS
5629 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5630 if test "x$LINE" != x ; then
5631 eval "DEFAULT_$LINE"
5632 else
5633 no_cache=1
5634 fi
5635
5636 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5637
e6cc62c6 5638fi;
4cdb0ab0
VS
5639
5640 eval "$ac_cv_use_protocol_ftp"
5641 if test "$no_cache" != 1; then
5642 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5643 fi
5644
5645 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5646 echo "$as_me:$LINENO: result: yes" >&5
5647echo "${ECHO_T}yes" >&6
4cdb0ab0 5648 else
e6cc62c6
VS
5649 echo "$as_me:$LINENO: result: no" >&5
5650echo "${ECHO_T}no" >&6
4cdb0ab0 5651 fi
e6cc62c6 5652
4cdb0ab0 5653
5005acfe 5654 enablestring=
e6cc62c6
VS
5655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5656echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5657 no_cache=0
5658 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5659if test "${enable_protocol_file+set}" = set; then
5660 enableval="$enable_protocol_file"
e6cc62c6 5661
4cdb0ab0
VS
5662 if test "$enableval" = yes; then
5663 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5664 else
5665 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5666 fi
e6cc62c6 5667
4cdb0ab0 5668else
e6cc62c6 5669
4cdb0ab0
VS
5670 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5671 if test "x$LINE" != x ; then
5672 eval "DEFAULT_$LINE"
5673 else
5674 no_cache=1
5675 fi
5676
5677 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5678
e6cc62c6 5679fi;
4cdb0ab0
VS
5680
5681 eval "$ac_cv_use_protocol_file"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5687 echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
4cdb0ab0 5689 else
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
4cdb0ab0 5692 fi
e6cc62c6 5693
52127426 5694
8284b0c5
MB
5695
5696
5697
5005acfe 5698 enablestring=
e6cc62c6
VS
5699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5700echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5701 no_cache=0
5702 # Check whether --enable-threads or --disable-threads was given.
5703if test "${enable_threads+set}" = set; then
5704 enableval="$enable_threads"
e6cc62c6 5705
10f2d63a
VZ
5706 if test "$enableval" = yes; then
5707 ac_cv_use_threads='wxUSE_THREADS=yes'
5708 else
5709 ac_cv_use_threads='wxUSE_THREADS=no'
5710 fi
e6cc62c6 5711
10f2d63a 5712else
e6cc62c6 5713
10f2d63a
VZ
5714 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5722
e6cc62c6 5723fi;
10f2d63a
VZ
5724
5725 eval "$ac_cv_use_threads"
5726 if test "$no_cache" != 1; then
5727 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5728 fi
5729
5730 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
10f2d63a 5733 else
e6cc62c6
VS
5734 echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6
10f2d63a 5736 fi
e6cc62c6 5737
10f2d63a 5738
b12915c1
VZ
5739if test "$wxUSE_GUI" = "yes"; then
5740
8284b0c5
MB
5741
5742
5005acfe 5743 enablestring=
e6cc62c6
VS
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5746 no_cache=0
5747 # Check whether --enable-docview or --disable-docview was given.
5748if test "${enable_docview+set}" = set; then
5749 enableval="$enable_docview"
e6cc62c6 5750
10f2d63a
VZ
5751 if test "$enableval" = yes; then
5752 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5753 else
5754 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5755 fi
e6cc62c6 5756
10f2d63a 5757else
e6cc62c6 5758
10f2d63a
VZ
5759 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
5766 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5767
e6cc62c6 5768fi;
10f2d63a
VZ
5769
5770 eval "$ac_cv_use_docview"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
10f2d63a 5778 else
e6cc62c6
VS
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
10f2d63a 5781 fi
e6cc62c6 5782
10f2d63a 5783
5005acfe 5784 enablestring=
e6cc62c6
VS
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5787 no_cache=0
5788 # Check whether --enable-help or --disable-help was given.
5789if test "${enable_help+set}" = set; then
5790 enableval="$enable_help"
e6cc62c6 5791
10f2d63a
VZ
5792 if test "$enableval" = yes; then
5793 ac_cv_use_help='wxUSE_HELP=yes'
5794 else
5795 ac_cv_use_help='wxUSE_HELP=no'
5796 fi
e6cc62c6 5797
10f2d63a 5798else
e6cc62c6 5799
10f2d63a
VZ
5800 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5808
e6cc62c6 5809fi;
10f2d63a
VZ
5810
5811 eval "$ac_cv_use_help"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
10f2d63a 5819 else
e6cc62c6
VS
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
10f2d63a 5822 fi
e6cc62c6 5823
10f2d63a 5824
5005acfe 5825 enablestring=
e6cc62c6
VS
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5828 no_cache=0
5829 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5830if test "${enable_mshtmlhelp+set}" = set; then
5831 enableval="$enable_mshtmlhelp"
e6cc62c6 5832
29fd3c0c
VS
5833 if test "$enableval" = yes; then
5834 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5835 else
5836 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5837 fi
e6cc62c6 5838
29fd3c0c 5839else
e6cc62c6 5840
29fd3c0c
VS
5841 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5849
e6cc62c6 5850fi;
29fd3c0c
VS
5851
5852 eval "$ac_cv_use_mshtmlhelp"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
29fd3c0c 5860 else
e6cc62c6
VS
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
29fd3c0c 5863 fi
e6cc62c6 5864
29fd3c0c 5865
5005acfe 5866 enablestring=
e6cc62c6
VS
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5869 no_cache=0
5870 # Check whether --enable-html or --disable-html was given.
5871if test "${enable_html+set}" = set; then
5872 enableval="$enable_html"
e6cc62c6 5873
3379ed37
VZ
5874 if test "$enableval" = yes; then
5875 ac_cv_use_html='wxUSE_HTML=yes'
5876 else
5877 ac_cv_use_html='wxUSE_HTML=no'
5878 fi
e6cc62c6 5879
3379ed37 5880else
e6cc62c6 5881
3379ed37
VZ
5882 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5890
e6cc62c6 5891fi;
3379ed37
VZ
5892
5893 eval "$ac_cv_use_html"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
3379ed37 5901 else
e6cc62c6
VS
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
3379ed37 5904 fi
e6cc62c6 5905
3379ed37 5906
5005acfe 5907 enablestring=
e6cc62c6
VS
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5910 no_cache=0
5911 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5912if test "${enable_htmlhelp+set}" = set; then
5913 enableval="$enable_htmlhelp"
e6cc62c6 5914
3379ed37
VZ
5915 if test "$enableval" = yes; then
5916 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5917 else
5918 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5919 fi
e6cc62c6 5920
3379ed37 5921else
e6cc62c6 5922
3379ed37
VZ
5923 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5931
e6cc62c6 5932fi;
3379ed37
VZ
5933
5934 eval "$ac_cv_use_htmlhelp"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
3379ed37 5942 else
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
3379ed37 5945 fi
e6cc62c6 5946
3379ed37 5947
5005acfe 5948 enablestring=
e6cc62c6
VS
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5951 no_cache=0
5952 # Check whether --enable-constraints or --disable-constraints was given.
5953if test "${enable_constraints+set}" = set; then
5954 enableval="$enable_constraints"
e6cc62c6 5955
10f2d63a
VZ
5956 if test "$enableval" = yes; then
5957 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5958 else
5959 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5960 fi
e6cc62c6 5961
10f2d63a 5962else
e6cc62c6 5963
10f2d63a
VZ
5964 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5972
e6cc62c6 5973fi;
10f2d63a
VZ
5974
5975 eval "$ac_cv_use_constraints"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
10f2d63a 5983 else
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
10f2d63a 5986 fi
e6cc62c6 5987
10f2d63a 5988
5005acfe 5989 enablestring=
e6cc62c6
VS
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5992 no_cache=0
5993 # Check whether --enable-printarch or --disable-printarch was given.
5994if test "${enable_printarch+set}" = set; then
5995 enableval="$enable_printarch"
e6cc62c6 5996
10f2d63a
VZ
5997 if test "$enableval" = yes; then
5998 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5999 else
6000 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6001 fi
e6cc62c6 6002
10f2d63a 6003else
e6cc62c6 6004
10f2d63a
VZ
6005 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6013
e6cc62c6 6014fi;
10f2d63a
VZ
6015
6016 eval "$ac_cv_use_printarch"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
10f2d63a 6024 else
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
10f2d63a 6027 fi
e6cc62c6 6028
10f2d63a 6029
5005acfe 6030 enablestring=
e6cc62c6
VS
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6033 no_cache=0
6034 # Check whether --enable-mdi or --disable-mdi was given.
6035if test "${enable_mdi+set}" = set; then
6036 enableval="$enable_mdi"
e6cc62c6 6037
10f2d63a
VZ
6038 if test "$enableval" = yes; then
6039 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6040 else
6041 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6042 fi
e6cc62c6 6043
10f2d63a 6044else
e6cc62c6 6045
10f2d63a
VZ
6046 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6054
e6cc62c6 6055fi;
10f2d63a
VZ
6056
6057 eval "$ac_cv_use_mdi"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
10f2d63a 6065 else
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
10f2d63a 6068 fi
e6cc62c6 6069
698dcdb6 6070
5005acfe 6071 enablestring=
e6cc62c6
VS
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6074 no_cache=0
6075 # Check whether --enable-loggui or --disable-loggui was given.
6076if test "${enable_loggui+set}" = set; then
6077 enableval="$enable_loggui"
e6cc62c6 6078
1e6feb95
VZ
6079 if test "$enableval" = yes; then
6080 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6081 else
6082 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6083 fi
e6cc62c6 6084
1e6feb95 6085else
e6cc62c6 6086
1e6feb95
VZ
6087 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6095
e6cc62c6 6096fi;
1e6feb95
VZ
6097
6098 eval "$ac_cv_use_loggui"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
1e6feb95 6106 else
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
1e6feb95 6109 fi
e6cc62c6 6110
1e6feb95 6111
5005acfe 6112 enablestring=
e6cc62c6
VS
6113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6114echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6115 no_cache=0
6116 # Check whether --enable-logwin or --disable-logwin was given.
6117if test "${enable_logwin+set}" = set; then
6118 enableval="$enable_logwin"
e6cc62c6 6119
1e6feb95
VZ
6120 if test "$enableval" = yes; then
6121 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6122 else
6123 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6124 fi
e6cc62c6 6125
1e6feb95 6126else
e6cc62c6 6127
1e6feb95
VZ
6128 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6129 if test "x$LINE" != x ; then
6130 eval "DEFAULT_$LINE"
6131 else
6132 no_cache=1
6133 fi
6134
6135 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6136
e6cc62c6 6137fi;
1e6feb95
VZ
6138
6139 eval "$ac_cv_use_logwin"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6145 echo "$as_me:$LINENO: result: yes" >&5
6146echo "${ECHO_T}yes" >&6
1e6feb95 6147 else
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
1e6feb95 6150 fi
e6cc62c6 6151
1e6feb95 6152
5005acfe 6153 enablestring=
e6cc62c6
VS
6154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6155echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6156 no_cache=0
6157 # Check whether --enable-logdialog or --disable-logdialog was given.
6158if test "${enable_logdialog+set}" = set; then
6159 enableval="$enable_logdialog"
e6cc62c6 6160
69d27ff7
MB
6161 if test "$enableval" = yes; then
6162 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6163 else
6164 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6165 fi
e6cc62c6 6166
69d27ff7 6167else
e6cc62c6 6168
69d27ff7
MB
6169 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6170 if test "x$LINE" != x ; then
6171 eval "DEFAULT_$LINE"
6172 else
6173 no_cache=1
6174 fi
6175
6176 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6177
e6cc62c6 6178fi;
69d27ff7
MB
6179
6180 eval "$ac_cv_use_logdialog"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6186 echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
69d27ff7 6188 else
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
69d27ff7 6191 fi
e6cc62c6 6192
8284b0c5 6193
52127426 6194
5005acfe 6195 enablestring=
e6cc62c6
VS
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6198 no_cache=0
6199 # Check whether --enable-postscript or --disable-postscript was given.
6200if test "${enable_postscript+set}" = set; then
6201 enableval="$enable_postscript"
e6cc62c6 6202
10f2d63a
VZ
6203 if test "$enableval" = yes; then
6204 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6205 else
6206 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6207 fi
e6cc62c6 6208
10f2d63a 6209else
e6cc62c6 6210
10f2d63a
VZ
6211 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6219
e6cc62c6 6220fi;
10f2d63a
VZ
6221
6222 eval "$ac_cv_use_postscript"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
10f2d63a 6230 else
e6cc62c6
VS
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
10f2d63a 6233 fi
e6cc62c6 6234
8284b0c5
MB
6235
6236
52127426 6237
8284b0c5 6238
5005acfe 6239 enablestring=
e6cc62c6
VS
6240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6241echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6242 no_cache=0
3c907f20
VZ
6243 # Check whether --enable-prologio or --disable-prologio was given.
6244if test "${enable_prologio+set}" = set; then
6245 enableval="$enable_prologio"
e6cc62c6 6246
10f2d63a 6247 if test "$enableval" = yes; then
3c907f20 6248 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6249 else
3c907f20 6250 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6251 fi
e6cc62c6 6252
10f2d63a 6253else
e6cc62c6 6254
3c907f20 6255 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
3c907f20 6262 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6263
e6cc62c6 6264fi;
10f2d63a 6265
3c907f20 6266 eval "$ac_cv_use_prologio"
10f2d63a 6267 if test "$no_cache" != 1; then
3c907f20 6268 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6269 fi
6270
3c907f20 6271 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6272 echo "$as_me:$LINENO: result: yes" >&5
6273echo "${ECHO_T}yes" >&6
10f2d63a 6274 else
e6cc62c6
VS
6275 echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6
10f2d63a 6277 fi
e6cc62c6 6278
8284b0c5 6279
5005acfe 6280 enablestring=
e6cc62c6
VS
6281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6282echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6283 no_cache=0
3c907f20
VZ
6284 # Check whether --enable-resources or --disable-resources was given.
6285if test "${enable_resources+set}" = set; then
6286 enableval="$enable_resources"
e6cc62c6 6287
10f2d63a 6288 if test "$enableval" = yes; then
3c907f20 6289 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6290 else
3c907f20 6291 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6292 fi
e6cc62c6 6293
10f2d63a 6294else
e6cc62c6 6295
3c907f20 6296 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
3c907f20 6303 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6304
e6cc62c6 6305fi;
10f2d63a 6306
3c907f20 6307 eval "$ac_cv_use_resources"
10f2d63a 6308 if test "$no_cache" != 1; then
3c907f20 6309 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6310 fi
6311
3c907f20 6312 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6313 echo "$as_me:$LINENO: result: yes" >&5
6314echo "${ECHO_T}yes" >&6
10f2d63a 6315 else
e6cc62c6
VS
6316 echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
10f2d63a 6318 fi
e6cc62c6 6319
8284b0c5
MB
6320
6321
52127426 6322
5005acfe 6323 enablestring=
e6cc62c6
VS
6324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6325echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6326 no_cache=0
6327 # Check whether --enable-clipboard or --disable-clipboard was given.
6328if test "${enable_clipboard+set}" = set; then
6329 enableval="$enable_clipboard"
e6cc62c6 6330
10f2d63a
VZ
6331 if test "$enableval" = yes; then
6332 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6333 else
6334 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6335 fi
e6cc62c6 6336
10f2d63a 6337else
e6cc62c6 6338
10f2d63a
VZ
6339 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6340 if test "x$LINE" != x ; then
6341 eval "DEFAULT_$LINE"
6342 else
6343 no_cache=1
6344 fi
6345
6346 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6347
e6cc62c6 6348fi;
10f2d63a
VZ
6349
6350 eval "$ac_cv_use_clipboard"
6351 if test "$no_cache" != 1; then
6352 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6353 fi
6354
6355 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6356 echo "$as_me:$LINENO: result: yes" >&5
6357echo "${ECHO_T}yes" >&6
10f2d63a 6358 else
e6cc62c6
VS
6359 echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6
10f2d63a 6361 fi
e6cc62c6 6362
10f2d63a 6363
5005acfe 6364 enablestring=
e6cc62c6
VS
6365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6366echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6367 no_cache=0
6368 # Check whether --enable-dnd or --disable-dnd was given.
6369if test "${enable_dnd+set}" = set; then
6370 enableval="$enable_dnd"
e6cc62c6 6371
10f2d63a
VZ
6372 if test "$enableval" = yes; then
6373 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6374 else
6375 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6376 fi
e6cc62c6 6377
10f2d63a 6378else
e6cc62c6 6379
10f2d63a
VZ
6380 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6381 if test "x$LINE" != x ; then
6382 eval "DEFAULT_$LINE"
6383 else
6384 no_cache=1
6385 fi
6386
6387 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6388
e6cc62c6 6389fi;
10f2d63a
VZ
6390
6391 eval "$ac_cv_use_dnd"
6392 if test "$no_cache" != 1; then
6393 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6394 fi
6395
6396 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6397 echo "$as_me:$LINENO: result: yes" >&5
6398echo "${ECHO_T}yes" >&6
10f2d63a 6399 else
e6cc62c6
VS
6400 echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
10f2d63a 6402 fi
e6cc62c6 6403
10f2d63a 6404
5005acfe 6405 enablestring=
e6cc62c6
VS
6406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6407echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6408 no_cache=0
6409 # Check whether --enable-metafile or --disable-metafile was given.
6410if test "${enable_metafile+set}" = set; then
6411 enableval="$enable_metafile"
e6cc62c6 6412
b64f0a5f
RL
6413 if test "$enableval" = yes; then
6414 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6415 else
6416 ac_cv_use_metafile='wxUSE_METAFILE=no'
6417 fi
e6cc62c6 6418
b64f0a5f 6419else
e6cc62c6 6420
b64f0a5f
RL
6421 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6429
e6cc62c6 6430fi;
b64f0a5f
RL
6431
6432 eval "$ac_cv_use_metafile"
6433 if test "$no_cache" != 1; then
6434 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6435 fi
6436
6437 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6438 echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6
b64f0a5f 6440 else
e6cc62c6
VS
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
b64f0a5f 6443 fi
e6cc62c6 6444
52127426 6445
8284b0c5 6446
52127426 6447
8284b0c5 6448
5005acfe 6449 enablestring=
e6cc62c6
VS
6450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6451echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6452 no_cache=0
6453 # Check whether --enable-controls or --disable-controls was given.
6454if test "${enable_controls+set}" = set; then
6455 enableval="$enable_controls"
e6cc62c6 6456
10f2d63a
VZ
6457 if test "$enableval" = yes; then
6458 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6459 else
6460 ac_cv_use_controls='wxUSE_CONTROLS=no'
6461 fi
e6cc62c6 6462
10f2d63a 6463else
e6cc62c6 6464
10f2d63a
VZ
6465 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6473
e6cc62c6 6474fi;
10f2d63a
VZ
6475
6476 eval "$ac_cv_use_controls"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6482 echo "$as_me:$LINENO: result: yes" >&5
6483echo "${ECHO_T}yes" >&6
10f2d63a 6484 else
e6cc62c6
VS
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
10f2d63a 6487 fi
e6cc62c6 6488
10f2d63a
VZ
6489
6490if test "$wxUSE_CONTROLS" = "yes"; then
6491 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6492 DEFAULT_wxUSE_BMPBUTTON=yes
6493 DEFAULT_wxUSE_BUTTON=yes
6494 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6495 DEFAULT_wxUSE_CARET=yes
6496 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6497 DEFAULT_wxUSE_CHECKBOX=yes
6498 DEFAULT_wxUSE_CHECKLISTBOX=yes
6499 DEFAULT_wxUSE_CHOICE=yes
6500 DEFAULT_wxUSE_GAUGE=yes
6501 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6502 DEFAULT_wxUSE_IMAGLIST=yes
6503 DEFAULT_wxUSE_LISTBOX=yes
6504 DEFAULT_wxUSE_LISTCTRL=yes
6505 DEFAULT_wxUSE_NOTEBOOK=yes
6506 DEFAULT_wxUSE_RADIOBOX=yes
6507 DEFAULT_wxUSE_RADIOBTN=yes
6508 DEFAULT_wxUSE_SASH=yes
6509 DEFAULT_wxUSE_SCROLLBAR=yes
6510 DEFAULT_wxUSE_SLIDER=yes
6511 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6512 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6513 DEFAULT_wxUSE_SPLITTER=yes
6514 DEFAULT_wxUSE_STATBMP=yes
6515 DEFAULT_wxUSE_STATBOX=yes
6516 DEFAULT_wxUSE_STATLINE=yes
6517 DEFAULT_wxUSE_STATUSBAR=yes
6518 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6519 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6520 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6521 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6522 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6523 DEFAULT_wxUSE_TOOLTIPS=yes
6524 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6525 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6526 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6527elif test "$wxUSE_CONTROLS" = "no"; then
6528 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6529 DEFAULT_wxUSE_BMPBUTTON=no
6530 DEFAULT_wxUSE_BUTTON=no
6531 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6532 DEFAULT_wxUSE_CARET=no
6533 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6534 DEFAULT_wxUSE_CHECKBOX=no
6535 DEFAULT_wxUSE_CHECKLISTBOX=no
6536 DEFAULT_wxUSE_CHOICE=no
6537 DEFAULT_wxUSE_GAUGE=no
6538 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6539 DEFAULT_wxUSE_IMAGLIST=no
6540 DEFAULT_wxUSE_LISTBOX=no
6541 DEFAULT_wxUSE_LISTCTRL=no
6542 DEFAULT_wxUSE_NOTEBOOK=no
6543 DEFAULT_wxUSE_RADIOBOX=no
6544 DEFAULT_wxUSE_RADIOBTN=no
6545 DEFAULT_wxUSE_SASH=no
6546 DEFAULT_wxUSE_SCROLLBAR=no
6547 DEFAULT_wxUSE_SLIDER=no
6548 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6549 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6550 DEFAULT_wxUSE_SPLITTER=no
6551 DEFAULT_wxUSE_STATBMP=no
6552 DEFAULT_wxUSE_STATBOX=no
6553 DEFAULT_wxUSE_STATLINE=no
6554 DEFAULT_wxUSE_STATUSBAR=no
6555 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6556 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6557 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6558 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6559 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6560 DEFAULT_wxUSE_TOOLTIPS=no
6561 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6562 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6563 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6564fi
6565
ac0c4cc3
DE
6566## FIXME: This is a blatant hack
6567if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6568 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6569 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6570 # Generic notebook requires tab dialog
6571 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6572 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6573 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6574 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6575 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6576fi
6577
8284b0c5 6578
5005acfe 6579 enablestring=
e6cc62c6
VS
6580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6581echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6582 no_cache=0
6583 # Check whether --enable-accel or --disable-accel was given.
6584if test "${enable_accel+set}" = set; then
6585 enableval="$enable_accel"
e6cc62c6 6586
10f2d63a
VZ
6587 if test "$enableval" = yes; then
6588 ac_cv_use_accel='wxUSE_ACCEL=yes'
6589 else
6590 ac_cv_use_accel='wxUSE_ACCEL=no'
6591 fi
e6cc62c6 6592
10f2d63a 6593else
e6cc62c6 6594
10f2d63a
VZ
6595 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6596 if test "x$LINE" != x ; then
6597 eval "DEFAULT_$LINE"
6598 else
6599 no_cache=1
6600 fi
6601
6602 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6603
e6cc62c6 6604fi;
10f2d63a
VZ
6605
6606 eval "$ac_cv_use_accel"
6607 if test "$no_cache" != 1; then
6608 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6609 fi
6610
6611 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6612 echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
10f2d63a 6614 else
e6cc62c6
VS
6615 echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
10f2d63a 6617 fi
e6cc62c6 6618
10f2d63a 6619
5005acfe 6620 enablestring=
e6cc62c6
VS
6621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6622echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6623 no_cache=0
1e6feb95
VZ
6624 # Check whether --enable-button or --disable-button was given.
6625if test "${enable_button+set}" = set; then
6626 enableval="$enable_button"
e6cc62c6 6627
10f2d63a 6628 if test "$enableval" = yes; then
1e6feb95 6629 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6630 else
1e6feb95 6631 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6632 fi
e6cc62c6 6633
10f2d63a 6634else
e6cc62c6 6635
1e6feb95 6636 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
1e6feb95 6643 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6644
e6cc62c6 6645fi;
10f2d63a 6646
1e6feb95 6647 eval "$ac_cv_use_button"
10f2d63a 6648 if test "$no_cache" != 1; then
1e6feb95 6649 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6650 fi
6651
1e6feb95 6652 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6653 echo "$as_me:$LINENO: result: yes" >&5
6654echo "${ECHO_T}yes" >&6
10f2d63a 6655 else
e6cc62c6
VS
6656 echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6
10f2d63a 6658 fi
e6cc62c6 6659
10f2d63a 6660
5005acfe 6661 enablestring=
e6cc62c6
VS
6662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6663echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6664 no_cache=0
6665 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6666if test "${enable_bmpbutton+set}" = set; then
6667 enableval="$enable_bmpbutton"
e6cc62c6 6668
10f2d63a
VZ
6669 if test "$enableval" = yes; then
6670 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6671 else
6672 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6673 fi
e6cc62c6 6674
10f2d63a 6675else
e6cc62c6 6676
10f2d63a
VZ
6677 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6685
e6cc62c6 6686fi;
10f2d63a
VZ
6687
6688 eval "$ac_cv_use_bmpbutton"
6689 if test "$no_cache" != 1; then
6690 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6691 fi
6692
6693 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6694 echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6
10f2d63a 6696 else
e6cc62c6
VS
6697 echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6
10f2d63a 6699 fi
e6cc62c6 6700
10f2d63a 6701
5005acfe 6702 enablestring=
e6cc62c6
VS
6703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6704echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6705 no_cache=0
6706 # Check whether --enable-calendar or --disable-calendar was given.
6707if test "${enable_calendar+set}" = set; then
6708 enableval="$enable_calendar"
e6cc62c6 6709
1e6feb95
VZ
6710 if test "$enableval" = yes; then
6711 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6712 else
6713 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6714 fi
e6cc62c6 6715
1e6feb95 6716else
e6cc62c6 6717
1e6feb95
VZ
6718 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6726
e6cc62c6 6727fi;
1e6feb95
VZ
6728
6729 eval "$ac_cv_use_calendar"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6735 echo "$as_me:$LINENO: result: yes" >&5
6736echo "${ECHO_T}yes" >&6
1e6feb95 6737 else
e6cc62c6
VS
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
1e6feb95 6740 fi
e6cc62c6 6741
1e6feb95 6742
5005acfe 6743 enablestring=
e6cc62c6
VS
6744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6745echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6746 no_cache=0
6747 # Check whether --enable-caret or --disable-caret was given.
6748if test "${enable_caret+set}" = set; then
6749 enableval="$enable_caret"
e6cc62c6 6750
1e6feb95
VZ
6751 if test "$enableval" = yes; then
6752 ac_cv_use_caret='wxUSE_CARET=yes'
6753 else
6754 ac_cv_use_caret='wxUSE_CARET=no'
6755 fi
e6cc62c6 6756
1e6feb95 6757else
e6cc62c6 6758
1e6feb95
VZ
6759 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6767
e6cc62c6 6768fi;
1e6feb95
VZ
6769
6770 eval "$ac_cv_use_caret"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6776 echo "$as_me:$LINENO: result: yes" >&5
6777echo "${ECHO_T}yes" >&6
1e6feb95 6778 else
e6cc62c6
VS
6779 echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6
1e6feb95 6781 fi
e6cc62c6 6782
1e6feb95 6783
5005acfe 6784 enablestring=
e6cc62c6
VS
6785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6786echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6787 no_cache=0
6788 # Check whether --enable-checkbox or --disable-checkbox was given.
6789if test "${enable_checkbox+set}" = set; then
6790 enableval="$enable_checkbox"
e6cc62c6 6791
10f2d63a
VZ
6792 if test "$enableval" = yes; then
6793 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6794 else
6795 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6796 fi
e6cc62c6 6797
10f2d63a 6798else
e6cc62c6 6799
10f2d63a
VZ
6800 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6801 if test "x$LINE" != x ; then
6802 eval "DEFAULT_$LINE"
6803 else
6804 no_cache=1
6805 fi
6806
6807 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6808
e6cc62c6 6809fi;
10f2d63a
VZ
6810
6811 eval "$ac_cv_use_checkbox"
6812 if test "$no_cache" != 1; then
6813 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6814 fi
6815
6816 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6817 echo "$as_me:$LINENO: result: yes" >&5
6818echo "${ECHO_T}yes" >&6
10f2d63a 6819 else
e6cc62c6
VS
6820 echo "$as_me:$LINENO: result: no" >&5
6821echo "${ECHO_T}no" >&6
10f2d63a 6822 fi
e6cc62c6 6823
10f2d63a 6824
5005acfe 6825 enablestring=
e6cc62c6
VS
6826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6827echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6828 no_cache=0
6829 # Check whether --enable-checklst or --disable-checklst was given.
6830if test "${enable_checklst+set}" = set; then
6831 enableval="$enable_checklst"
e6cc62c6 6832
10f2d63a
VZ
6833 if test "$enableval" = yes; then
6834 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6835 else
6836 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6837 fi
e6cc62c6 6838
10f2d63a 6839else
e6cc62c6 6840
10f2d63a
VZ
6841 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6842 if test "x$LINE" != x ; then
6843 eval "DEFAULT_$LINE"
6844 else
6845 no_cache=1
6846 fi
6847
6848 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6849
e6cc62c6 6850fi;
10f2d63a
VZ
6851
6852 eval "$ac_cv_use_checklst"
6853 if test "$no_cache" != 1; then
6854 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6855 fi
6856
6857 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6858 echo "$as_me:$LINENO: result: yes" >&5
6859echo "${ECHO_T}yes" >&6
10f2d63a 6860 else
e6cc62c6
VS
6861 echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
10f2d63a 6863 fi
e6cc62c6 6864
10f2d63a 6865
5005acfe 6866 enablestring=
e6cc62c6
VS
6867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6868echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6869 no_cache=0
6870 # Check whether --enable-choice or --disable-choice was given.
6871if test "${enable_choice+set}" = set; then
6872 enableval="$enable_choice"
e6cc62c6 6873
10f2d63a
VZ
6874 if test "$enableval" = yes; then
6875 ac_cv_use_choice='wxUSE_CHOICE=yes'
6876 else
6877 ac_cv_use_choice='wxUSE_CHOICE=no'
6878 fi
e6cc62c6 6879
10f2d63a 6880else
e6cc62c6 6881
10f2d63a
VZ
6882 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6883 if test "x$LINE" != x ; then
6884 eval "DEFAULT_$LINE"
6885 else
6886 no_cache=1
6887 fi
6888
6889 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6890
e6cc62c6 6891fi;
10f2d63a
VZ
6892
6893 eval "$ac_cv_use_choice"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6896 fi
6897
6898 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6899 echo "$as_me:$LINENO: result: yes" >&5
6900echo "${ECHO_T}yes" >&6
10f2d63a 6901 else
e6cc62c6
VS
6902 echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6
10f2d63a 6904 fi
e6cc62c6 6905
10f2d63a 6906
5005acfe 6907 enablestring=
e6cc62c6
VS
6908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6909echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6910 no_cache=0
6911 # Check whether --enable-combobox or --disable-combobox was given.
6912if test "${enable_combobox+set}" = set; then
6913 enableval="$enable_combobox"
e6cc62c6 6914
10f2d63a
VZ
6915 if test "$enableval" = yes; then
6916 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6917 else
6918 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6919 fi
e6cc62c6 6920
10f2d63a 6921else
e6cc62c6 6922
10f2d63a
VZ
6923 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6924 if test "x$LINE" != x ; then
6925 eval "DEFAULT_$LINE"
6926 else
6927 no_cache=1
6928 fi
6929
6930 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6931
e6cc62c6 6932fi;
10f2d63a
VZ
6933
6934 eval "$ac_cv_use_combobox"
6935 if test "$no_cache" != 1; then
6936 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6937 fi
6938
6939 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6940 echo "$as_me:$LINENO: result: yes" >&5
6941echo "${ECHO_T}yes" >&6
10f2d63a 6942 else
e6cc62c6
VS
6943 echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6
10f2d63a 6945 fi
e6cc62c6 6946
10f2d63a 6947
da494b40 6948 enablestring=
e6cc62c6
VS
6949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6950echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6951 no_cache=0
6952 # Check whether --enable-display or --disable-display was given.
6953if test "${enable_display+set}" = set; then
6954 enableval="$enable_display"
e6cc62c6 6955
da494b40
MB
6956 if test "$enableval" = yes; then
6957 ac_cv_use_display='wxUSE_DISPLAY=yes'
6958 else
6959 ac_cv_use_display='wxUSE_DISPLAY=no'
6960 fi
e6cc62c6 6961
da494b40 6962else
e6cc62c6 6963
da494b40
MB
6964 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6965 if test "x$LINE" != x ; then
6966 eval "DEFAULT_$LINE"
6967 else
6968 no_cache=1
6969 fi
6970
6971 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6972
e6cc62c6 6973fi;
da494b40
MB
6974
6975 eval "$ac_cv_use_display"
6976 if test "$no_cache" != 1; then
6977 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6978 fi
6979
6980 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6981 echo "$as_me:$LINENO: result: yes" >&5
6982echo "${ECHO_T}yes" >&6
da494b40 6983 else
e6cc62c6
VS
6984 echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6
da494b40 6986 fi
e6cc62c6 6987
da494b40 6988
5005acfe 6989 enablestring=
e6cc62c6
VS
6990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6991echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6992 no_cache=0
6993 # Check whether --enable-gauge or --disable-gauge was given.
6994if test "${enable_gauge+set}" = set; then
6995 enableval="$enable_gauge"
e6cc62c6 6996
10f2d63a
VZ
6997 if test "$enableval" = yes; then
6998 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6999 else
7000 ac_cv_use_gauge='wxUSE_GAUGE=no'
7001 fi
e6cc62c6 7002
10f2d63a 7003else
e6cc62c6 7004
10f2d63a
VZ
7005 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7006 if test "x$LINE" != x ; then
7007 eval "DEFAULT_$LINE"
7008 else
7009 no_cache=1
7010 fi
7011
7012 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7013
e6cc62c6 7014fi;
10f2d63a
VZ
7015
7016 eval "$ac_cv_use_gauge"
7017 if test "$no_cache" != 1; then
7018 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7019 fi
7020
7021 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7022 echo "$as_me:$LINENO: result: yes" >&5
7023echo "${ECHO_T}yes" >&6
10f2d63a 7024 else
e6cc62c6
VS
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
10f2d63a 7027 fi
e6cc62c6 7028
10f2d63a 7029
5005acfe 7030 enablestring=
e6cc62c6
VS
7031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7032echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7033 no_cache=0
7034 # Check whether --enable-grid or --disable-grid was given.
7035if test "${enable_grid+set}" = set; then
7036 enableval="$enable_grid"
e6cc62c6 7037
10f2d63a
VZ
7038 if test "$enableval" = yes; then
7039 ac_cv_use_grid='wxUSE_GRID=yes'
7040 else
7041 ac_cv_use_grid='wxUSE_GRID=no'
7042 fi
e6cc62c6 7043
10f2d63a 7044else
e6cc62c6 7045
10f2d63a
VZ
7046 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7054
e6cc62c6 7055fi;
10f2d63a
VZ
7056
7057 eval "$ac_cv_use_grid"
7058 if test "$no_cache" != 1; then
7059 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7060 fi
7061
7062 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7063 echo "$as_me:$LINENO: result: yes" >&5
7064echo "${ECHO_T}yes" >&6
10f2d63a 7065 else
e6cc62c6
VS
7066 echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
10f2d63a 7068 fi
e6cc62c6 7069
10f2d63a 7070
5005acfe 7071 enablestring=
e6cc62c6
VS
7072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7073echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7074 no_cache=0
7075 # Check whether --enable-imaglist or --disable-imaglist was given.
7076if test "${enable_imaglist+set}" = set; then
7077 enableval="$enable_imaglist"
e6cc62c6 7078
10f2d63a
VZ
7079 if test "$enableval" = yes; then
7080 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7081 else
7082 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7083 fi
e6cc62c6 7084
10f2d63a 7085else
e6cc62c6 7086
10f2d63a
VZ
7087 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7088 if test "x$LINE" != x ; then
7089 eval "DEFAULT_$LINE"
7090 else
7091 no_cache=1
7092 fi
7093
7094 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7095
e6cc62c6 7096fi;
10f2d63a
VZ
7097
7098 eval "$ac_cv_use_imaglist"
7099 if test "$no_cache" != 1; then
7100 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7101 fi
7102
7103 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7104 echo "$as_me:$LINENO: result: yes" >&5
7105echo "${ECHO_T}yes" >&6
10f2d63a 7106 else
e6cc62c6
VS
7107 echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
10f2d63a 7109 fi
e6cc62c6 7110
10f2d63a 7111
5005acfe 7112 enablestring=
e6cc62c6
VS
7113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7114echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7115 no_cache=0
7116 # Check whether --enable-listbox or --disable-listbox was given.
7117if test "${enable_listbox+set}" = set; then
7118 enableval="$enable_listbox"
e6cc62c6 7119
10f2d63a
VZ
7120 if test "$enableval" = yes; then
7121 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7122 else
7123 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7124 fi
e6cc62c6 7125
10f2d63a 7126else
e6cc62c6 7127
10f2d63a
VZ
7128 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7129 if test "x$LINE" != x ; then
7130 eval "DEFAULT_$LINE"
7131 else
7132 no_cache=1
7133 fi
7134
7135 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7136
e6cc62c6 7137fi;
10f2d63a
VZ
7138
7139 eval "$ac_cv_use_listbox"
7140 if test "$no_cache" != 1; then
7141 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7142 fi
7143
7144 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7145 echo "$as_me:$LINENO: result: yes" >&5
7146echo "${ECHO_T}yes" >&6
10f2d63a 7147 else
e6cc62c6
VS
7148 echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6
10f2d63a 7150 fi
e6cc62c6 7151
10f2d63a 7152
5005acfe 7153 enablestring=
e6cc62c6
VS
7154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7155echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7156 no_cache=0
7157 # Check whether --enable-listctrl or --disable-listctrl was given.
7158if test "${enable_listctrl+set}" = set; then
7159 enableval="$enable_listctrl"
e6cc62c6 7160
10f2d63a
VZ
7161 if test "$enableval" = yes; then
7162 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7163 else
7164 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7165 fi
e6cc62c6 7166
10f2d63a 7167else
e6cc62c6 7168
10f2d63a
VZ
7169 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7170 if test "x$LINE" != x ; then
7171 eval "DEFAULT_$LINE"
7172 else
7173 no_cache=1
7174 fi
7175
7176 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7177
e6cc62c6 7178fi;
10f2d63a
VZ
7179
7180 eval "$ac_cv_use_listctrl"
7181 if test "$no_cache" != 1; then
7182 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7183 fi
7184
7185 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7186 echo "$as_me:$LINENO: result: yes" >&5
7187echo "${ECHO_T}yes" >&6
10f2d63a 7188 else
e6cc62c6
VS
7189 echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6
10f2d63a 7191 fi
e6cc62c6 7192
10f2d63a 7193
5005acfe 7194 enablestring=
e6cc62c6
VS
7195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7196echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7197 no_cache=0
7198 # Check whether --enable-notebook or --disable-notebook was given.
7199if test "${enable_notebook+set}" = set; then
7200 enableval="$enable_notebook"
e6cc62c6 7201
10f2d63a
VZ
7202 if test "$enableval" = yes; then
7203 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7204 else
7205 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7206 fi
e6cc62c6 7207
10f2d63a 7208else
e6cc62c6 7209
10f2d63a
VZ
7210 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7211 if test "x$LINE" != x ; then
7212 eval "DEFAULT_$LINE"
7213 else
7214 no_cache=1
7215 fi
7216
7217 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7218
e6cc62c6 7219fi;
10f2d63a
VZ
7220
7221 eval "$ac_cv_use_notebook"
7222 if test "$no_cache" != 1; then
7223 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7224 fi
7225
7226 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7227 echo "$as_me:$LINENO: result: yes" >&5
7228echo "${ECHO_T}yes" >&6
10f2d63a 7229 else
e6cc62c6
VS
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
10f2d63a 7232 fi
e6cc62c6 7233
10f2d63a 7234
5005acfe 7235 enablestring=
e6cc62c6
VS
7236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7237echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7238 no_cache=0
7239 # Check whether --enable-radiobox or --disable-radiobox was given.
7240if test "${enable_radiobox+set}" = set; then
7241 enableval="$enable_radiobox"
e6cc62c6 7242
10f2d63a
VZ
7243 if test "$enableval" = yes; then
7244 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7245 else
7246 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7247 fi
e6cc62c6 7248
10f2d63a 7249else
e6cc62c6 7250
10f2d63a
VZ
7251 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7252 if test "x$LINE" != x ; then
7253 eval "DEFAULT_$LINE"
7254 else
7255 no_cache=1
7256 fi
7257
7258 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7259
e6cc62c6 7260fi;
10f2d63a
VZ
7261
7262 eval "$ac_cv_use_radiobox"
7263 if test "$no_cache" != 1; then
7264 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7265 fi
7266
7267 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7268 echo "$as_me:$LINENO: result: yes" >&5
7269echo "${ECHO_T}yes" >&6
10f2d63a 7270 else
e6cc62c6
VS
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
10f2d63a 7273 fi
e6cc62c6 7274
10f2d63a 7275
5005acfe 7276 enablestring=
e6cc62c6
VS
7277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7278echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7279 no_cache=0
7280 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7281if test "${enable_radiobtn+set}" = set; then
7282 enableval="$enable_radiobtn"
e6cc62c6 7283
10f2d63a
VZ
7284 if test "$enableval" = yes; then
7285 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7286 else
7287 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7288 fi
e6cc62c6 7289
10f2d63a 7290else
e6cc62c6 7291
10f2d63a
VZ
7292 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7293 if test "x$LINE" != x ; then
7294 eval "DEFAULT_$LINE"
7295 else
7296 no_cache=1
7297 fi
7298
7299 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7300
e6cc62c6 7301fi;
10f2d63a
VZ
7302
7303 eval "$ac_cv_use_radiobtn"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7309 echo "$as_me:$LINENO: result: yes" >&5
7310echo "${ECHO_T}yes" >&6
10f2d63a 7311 else
e6cc62c6
VS
7312 echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
10f2d63a 7314 fi
e6cc62c6 7315
10f2d63a 7316
5005acfe 7317 enablestring=
e6cc62c6
VS
7318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7319echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7320 no_cache=0
7321 # Check whether --enable-sash or --disable-sash was given.
7322if test "${enable_sash+set}" = set; then
7323 enableval="$enable_sash"
e6cc62c6 7324
10f2d63a
VZ
7325 if test "$enableval" = yes; then
7326 ac_cv_use_sash='wxUSE_SASH=yes'
7327 else
7328 ac_cv_use_sash='wxUSE_SASH=no'
7329 fi
e6cc62c6 7330
10f2d63a 7331else
e6cc62c6 7332
10f2d63a
VZ
7333 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7341
e6cc62c6 7342fi;
10f2d63a
VZ
7343
7344 eval "$ac_cv_use_sash"
7345 if test "$no_cache" != 1; then
7346 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7347 fi
7348
7349 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7350 echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6
10f2d63a 7352 else
e6cc62c6
VS
7353 echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6
10f2d63a 7355 fi
e6cc62c6 7356
10f2d63a 7357
5005acfe 7358 enablestring=
e6cc62c6
VS
7359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7360echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7361 no_cache=0
7362 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7363if test "${enable_scrollbar+set}" = set; then
7364 enableval="$enable_scrollbar"
e6cc62c6 7365
10f2d63a
VZ
7366 if test "$enableval" = yes; then
7367 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7368 else
7369 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7370 fi
e6cc62c6 7371
10f2d63a 7372else
e6cc62c6 7373
10f2d63a
VZ
7374 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7382
e6cc62c6 7383fi;
10f2d63a
VZ
7384
7385 eval "$ac_cv_use_scrollbar"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7391 echo "$as_me:$LINENO: result: yes" >&5
7392echo "${ECHO_T}yes" >&6
10f2d63a 7393 else
e6cc62c6
VS
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
10f2d63a 7396 fi
e6cc62c6 7397
10f2d63a 7398
5005acfe 7399 enablestring=
e6cc62c6
VS
7400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7401echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7402 no_cache=0
7403 # Check whether --enable-slider or --disable-slider was given.
7404if test "${enable_slider+set}" = set; then
7405 enableval="$enable_slider"
e6cc62c6 7406
10f2d63a
VZ
7407 if test "$enableval" = yes; then
7408 ac_cv_use_slider='wxUSE_SLIDER=yes'
7409 else
7410 ac_cv_use_slider='wxUSE_SLIDER=no'
7411 fi
e6cc62c6 7412
10f2d63a 7413else
e6cc62c6 7414
10f2d63a
VZ
7415 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7423
e6cc62c6 7424fi;
10f2d63a
VZ
7425
7426 eval "$ac_cv_use_slider"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7432 echo "$as_me:$LINENO: result: yes" >&5
7433echo "${ECHO_T}yes" >&6
10f2d63a 7434 else
e6cc62c6
VS
7435 echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
10f2d63a 7437 fi
e6cc62c6 7438
10f2d63a 7439
5005acfe 7440 enablestring=
e6cc62c6
VS
7441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7442echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7443 no_cache=0
7444 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7445if test "${enable_spinbtn+set}" = set; then
7446 enableval="$enable_spinbtn"
e6cc62c6 7447
10f2d63a
VZ
7448 if test "$enableval" = yes; then
7449 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7450 else
7451 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7452 fi
e6cc62c6 7453
10f2d63a 7454else
e6cc62c6 7455
10f2d63a
VZ
7456 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7457 if test "x$LINE" != x ; then
7458 eval "DEFAULT_$LINE"
7459 else
7460 no_cache=1
7461 fi
7462
7463 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7464
e6cc62c6 7465fi;
10f2d63a
VZ
7466
7467 eval "$ac_cv_use_spinbtn"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7473 echo "$as_me:$LINENO: result: yes" >&5
7474echo "${ECHO_T}yes" >&6
10f2d63a 7475 else
e6cc62c6
VS
7476 echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
10f2d63a 7478 fi
e6cc62c6 7479
10f2d63a 7480
5005acfe 7481 enablestring=
e6cc62c6
VS
7482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7483echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7484 no_cache=0
7485 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7486if test "${enable_spinctrl+set}" = set; then
7487 enableval="$enable_spinctrl"
e6cc62c6 7488
56cfaa52
RR
7489 if test "$enableval" = yes; then
7490 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7491 else
7492 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7493 fi
e6cc62c6 7494
56cfaa52 7495else
e6cc62c6 7496
56cfaa52
RR
7497 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7498 if test "x$LINE" != x ; then
7499 eval "DEFAULT_$LINE"
7500 else
7501 no_cache=1
7502 fi
7503
7504 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7505
e6cc62c6 7506fi;
56cfaa52
RR
7507
7508 eval "$ac_cv_use_spinctrl"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7514 echo "$as_me:$LINENO: result: yes" >&5
7515echo "${ECHO_T}yes" >&6
56cfaa52 7516 else
e6cc62c6
VS
7517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
56cfaa52 7519 fi
e6cc62c6 7520
56cfaa52 7521
5005acfe 7522 enablestring=
e6cc62c6
VS
7523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7524echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7525 no_cache=0
7526 # Check whether --enable-splitter or --disable-splitter was given.
7527if test "${enable_splitter+set}" = set; then
7528 enableval="$enable_splitter"
e6cc62c6 7529
10f2d63a
VZ
7530 if test "$enableval" = yes; then
7531 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7532 else
7533 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7534 fi
e6cc62c6 7535
10f2d63a 7536else
e6cc62c6 7537
10f2d63a
VZ
7538 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7546
e6cc62c6 7547fi;
10f2d63a
VZ
7548
7549 eval "$ac_cv_use_splitter"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7555 echo "$as_me:$LINENO: result: yes" >&5
7556echo "${ECHO_T}yes" >&6
10f2d63a 7557 else
e6cc62c6
VS
7558 echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6
10f2d63a 7560 fi
e6cc62c6 7561
10f2d63a 7562
5005acfe 7563 enablestring=
e6cc62c6
VS
7564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7565echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7566 no_cache=0
7567 # Check whether --enable-statbmp or --disable-statbmp was given.
7568if test "${enable_statbmp+set}" = set; then
7569 enableval="$enable_statbmp"
e6cc62c6 7570
10f2d63a
VZ
7571 if test "$enableval" = yes; then
7572 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7573 else
7574 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7575 fi
e6cc62c6 7576
10f2d63a 7577else
e6cc62c6 7578
10f2d63a
VZ
7579 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7587
e6cc62c6 7588fi;
10f2d63a
VZ
7589
7590 eval "$ac_cv_use_statbmp"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7596 echo "$as_me:$LINENO: result: yes" >&5
7597echo "${ECHO_T}yes" >&6
10f2d63a 7598 else
e6cc62c6
VS
7599 echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6
10f2d63a 7601 fi
e6cc62c6 7602
10f2d63a 7603
5005acfe 7604 enablestring=
e6cc62c6
VS
7605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7606echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7607 no_cache=0
7608 # Check whether --enable-statbox or --disable-statbox was given.
7609if test "${enable_statbox+set}" = set; then
7610 enableval="$enable_statbox"
e6cc62c6 7611
10f2d63a
VZ
7612 if test "$enableval" = yes; then
7613 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7614 else
7615 ac_cv_use_statbox='wxUSE_STATBOX=no'
7616 fi
e6cc62c6 7617
10f2d63a 7618else
e6cc62c6 7619
10f2d63a
VZ
7620 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7621 if test "x$LINE" != x ; then
7622 eval "DEFAULT_$LINE"
7623 else
7624 no_cache=1
7625 fi
7626
7627 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7628
e6cc62c6 7629fi;
10f2d63a
VZ
7630
7631 eval "$ac_cv_use_statbox"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7637 echo "$as_me:$LINENO: result: yes" >&5
7638echo "${ECHO_T}yes" >&6
10f2d63a 7639 else
e6cc62c6
VS
7640 echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
10f2d63a 7642 fi
e6cc62c6 7643
10f2d63a 7644
5005acfe 7645 enablestring=
e6cc62c6
VS
7646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7647echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7648 no_cache=0
7649 # Check whether --enable-statline or --disable-statline was given.
7650if test "${enable_statline+set}" = set; then
7651 enableval="$enable_statline"
e6cc62c6 7652
10f2d63a
VZ
7653 if test "$enableval" = yes; then
7654 ac_cv_use_statline='wxUSE_STATLINE=yes'
7655 else
7656 ac_cv_use_statline='wxUSE_STATLINE=no'
7657 fi
e6cc62c6 7658
10f2d63a 7659else
e6cc62c6 7660
10f2d63a
VZ
7661 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7662 if test "x$LINE" != x ; then
7663 eval "DEFAULT_$LINE"
7664 else
7665 no_cache=1
7666 fi
7667
7668 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7669
e6cc62c6 7670fi;
10f2d63a
VZ
7671
7672 eval "$ac_cv_use_statline"
7673 if test "$no_cache" != 1; then
7674 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7675 fi
7676
7677 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7678 echo "$as_me:$LINENO: result: yes" >&5
7679echo "${ECHO_T}yes" >&6
10f2d63a 7680 else
e6cc62c6
VS
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
10f2d63a 7683 fi
e6cc62c6 7684
10f2d63a 7685
5005acfe 7686 enablestring=
e6cc62c6
VS
7687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7688echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7689 no_cache=0
7690 # Check whether --enable-stattext or --disable-stattext was given.
7691if test "${enable_stattext+set}" = set; then
7692 enableval="$enable_stattext"
e6cc62c6 7693
1e6feb95
VZ
7694 if test "$enableval" = yes; then
7695 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7696 else
7697 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7698 fi
e6cc62c6 7699
1e6feb95 7700else
e6cc62c6 7701
1e6feb95
VZ
7702 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7703 if test "x$LINE" != x ; then
7704 eval "DEFAULT_$LINE"
7705 else
7706 no_cache=1
7707 fi
7708
7709 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7710
e6cc62c6 7711fi;
1e6feb95
VZ
7712
7713 eval "$ac_cv_use_stattext"
7714 if test "$no_cache" != 1; then
7715 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7716 fi
7717
7718 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7719 echo "$as_me:$LINENO: result: yes" >&5
7720echo "${ECHO_T}yes" >&6
1e6feb95 7721 else
e6cc62c6
VS
7722 echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6
1e6feb95 7724 fi
e6cc62c6 7725
1e6feb95 7726
5005acfe 7727 enablestring=
e6cc62c6
VS
7728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7729echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7730 no_cache=0
7731 # Check whether --enable-statusbar or --disable-statusbar was given.
7732if test "${enable_statusbar+set}" = set; then
7733 enableval="$enable_statusbar"
e6cc62c6 7734
10f2d63a
VZ
7735 if test "$enableval" = yes; then
7736 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7737 else
7738 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7739 fi
e6cc62c6 7740
10f2d63a 7741else
e6cc62c6 7742
10f2d63a
VZ
7743 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7744 if test "x$LINE" != x ; then
7745 eval "DEFAULT_$LINE"
7746 else
7747 no_cache=1
7748 fi
7749
7750 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7751
e6cc62c6 7752fi;
10f2d63a
VZ
7753
7754 eval "$ac_cv_use_statusbar"
7755 if test "$no_cache" != 1; then
7756 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7757 fi
7758
7759 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7760 echo "$as_me:$LINENO: result: yes" >&5
7761echo "${ECHO_T}yes" >&6
10f2d63a 7762 else
e6cc62c6
VS
7763 echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6
10f2d63a 7765 fi
e6cc62c6 7766
10f2d63a 7767
5005acfe 7768 enablestring=
e6cc62c6
VS
7769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7770echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7771 no_cache=0
7772 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7773if test "${enable_tabdialog+set}" = set; then
7774 enableval="$enable_tabdialog"
e6cc62c6 7775
10f2d63a
VZ
7776 if test "$enableval" = yes; then
7777 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7778 else
7779 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7780 fi
e6cc62c6 7781
10f2d63a 7782else
e6cc62c6 7783
10f2d63a
VZ
7784 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7785 if test "x$LINE" != x ; then
7786 eval "DEFAULT_$LINE"
7787 else
7788 no_cache=1
7789 fi
7790
7791 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7792
e6cc62c6 7793fi;
10f2d63a
VZ
7794
7795 eval "$ac_cv_use_tabdialog"
7796 if test "$no_cache" != 1; then
7797 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7798 fi
7799
7800 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7801 echo "$as_me:$LINENO: result: yes" >&5
7802echo "${ECHO_T}yes" >&6
10f2d63a 7803 else
e6cc62c6
VS
7804 echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6
10f2d63a 7806 fi
e6cc62c6 7807
10f2d63a 7808
5005acfe 7809 enablestring=
e6cc62c6
VS
7810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7811echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7812 no_cache=0
7813 # Check whether --enable-textctrl or --disable-textctrl was given.
7814if test "${enable_textctrl+set}" = set; then
7815 enableval="$enable_textctrl"
e6cc62c6 7816
1e6feb95
VZ
7817 if test "$enableval" = yes; then
7818 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7819 else
7820 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7821 fi
e6cc62c6 7822
1e6feb95 7823else
e6cc62c6 7824
1e6feb95
VZ
7825 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7826 if test "x$LINE" != x ; then
7827 eval "DEFAULT_$LINE"
7828 else
7829 no_cache=1
7830 fi
7831
7832 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7833
e6cc62c6 7834fi;
1e6feb95
VZ
7835
7836 eval "$ac_cv_use_textctrl"
7837 if test "$no_cache" != 1; then
7838 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7839 fi
7840
7841 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7842 echo "$as_me:$LINENO: result: yes" >&5
7843echo "${ECHO_T}yes" >&6
1e6feb95 7844 else
e6cc62c6
VS
7845 echo "$as_me:$LINENO: result: no" >&5
7846echo "${ECHO_T}no" >&6
1e6feb95 7847 fi
e6cc62c6 7848
1e6feb95 7849
5005acfe 7850 enablestring=
e6cc62c6
VS
7851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7852echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7853 no_cache=0
7854 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7855if test "${enable_togglebtn+set}" = set; then
7856 enableval="$enable_togglebtn"
e6cc62c6 7857
1db8dc4a
VZ
7858 if test "$enableval" = yes; then
7859 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7860 else
7861 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7862 fi
e6cc62c6 7863
1db8dc4a 7864else
e6cc62c6 7865
1db8dc4a
VZ
7866 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7874
e6cc62c6 7875fi;
1db8dc4a
VZ
7876
7877 eval "$ac_cv_use_togglebtn"
7878 if test "$no_cache" != 1; then
7879 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7880 fi
7881
7882 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7883 echo "$as_me:$LINENO: result: yes" >&5
7884echo "${ECHO_T}yes" >&6
1db8dc4a 7885 else
e6cc62c6
VS
7886 echo "$as_me:$LINENO: result: no" >&5
7887echo "${ECHO_T}no" >&6
1db8dc4a 7888 fi
e6cc62c6 7889
1db8dc4a 7890
5005acfe 7891 enablestring=
e6cc62c6
VS
7892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7893echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7894 no_cache=0
7895 # Check whether --enable-toolbar or --disable-toolbar was given.
7896if test "${enable_toolbar+set}" = set; then
7897 enableval="$enable_toolbar"
e6cc62c6 7898
10f2d63a
VZ
7899 if test "$enableval" = yes; then
7900 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7901 else
7902 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7903 fi
e6cc62c6 7904
10f2d63a 7905else
e6cc62c6 7906
10f2d63a
VZ
7907 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7915
e6cc62c6 7916fi;
10f2d63a
VZ
7917
7918 eval "$ac_cv_use_toolbar"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7924 echo "$as_me:$LINENO: result: yes" >&5
7925echo "${ECHO_T}yes" >&6
10f2d63a 7926 else
e6cc62c6
VS
7927 echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
10f2d63a 7929 fi
e6cc62c6 7930
10f2d63a 7931
5005acfe 7932 enablestring=
e6cc62c6
VS
7933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7934echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7935 no_cache=0
7936 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7937if test "${enable_tbarnative+set}" = set; then
7938 enableval="$enable_tbarnative"
e6cc62c6 7939
360d6699
VZ
7940 if test "$enableval" = yes; then
7941 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7942 else
7943 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7944 fi
e6cc62c6 7945
360d6699 7946else
e6cc62c6 7947
360d6699
VZ
7948 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7956
e6cc62c6 7957fi;
360d6699
VZ
7958
7959 eval "$ac_cv_use_tbarnative"
7960 if test "$no_cache" != 1; then
7961 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7962 fi
7963
7964 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7965 echo "$as_me:$LINENO: result: yes" >&5
7966echo "${ECHO_T}yes" >&6
360d6699 7967 else
e6cc62c6
VS
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
360d6699 7970 fi
e6cc62c6 7971
360d6699 7972
5005acfe 7973 enablestring=
e6cc62c6
VS
7974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7975echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7976 no_cache=0
7977 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7978if test "${enable_tbarsmpl+set}" = set; then
7979 enableval="$enable_tbarsmpl"
e6cc62c6 7980
360d6699
VZ
7981 if test "$enableval" = yes; then
7982 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7983 else
7984 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7985 fi
e6cc62c6 7986
360d6699 7987else
e6cc62c6 7988
360d6699
VZ
7989 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7997
e6cc62c6 7998fi;
360d6699
VZ
7999
8000 eval "$ac_cv_use_tbarsmpl"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8006 echo "$as_me:$LINENO: result: yes" >&5
8007echo "${ECHO_T}yes" >&6
360d6699 8008 else
e6cc62c6
VS
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
360d6699 8011 fi
e6cc62c6 8012
360d6699 8013
5005acfe 8014 enablestring=
e6cc62c6
VS
8015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8016echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8017 no_cache=0
8018 # Check whether --enable-treectrl or --disable-treectrl was given.
8019if test "${enable_treectrl+set}" = set; then
8020 enableval="$enable_treectrl"
e6cc62c6 8021
10f2d63a
VZ
8022 if test "$enableval" = yes; then
8023 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8024 else
8025 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8026 fi
e6cc62c6 8027
10f2d63a 8028else
e6cc62c6 8029
10f2d63a
VZ
8030 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8038
e6cc62c6 8039fi;
10f2d63a 8040
1e6feb95
VZ
8041 eval "$ac_cv_use_treectrl"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8047 echo "$as_me:$LINENO: result: yes" >&5
8048echo "${ECHO_T}yes" >&6
1e6feb95 8049 else
e6cc62c6
VS
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
1e6feb95 8052 fi
e6cc62c6 8053
1e6feb95 8054
5005acfe 8055 enablestring=
e6cc62c6
VS
8056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8057echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8058 no_cache=0
8059 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8060if test "${enable_tipwindow+set}" = set; then
8061 enableval="$enable_tipwindow"
e6cc62c6 8062
9926e4a4
VZ
8063 if test "$enableval" = yes; then
8064 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8065 else
8066 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8067 fi
e6cc62c6 8068
9926e4a4 8069else
e6cc62c6 8070
9926e4a4
VZ
8071 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8072 if test "x$LINE" != x ; then
8073 eval "DEFAULT_$LINE"
8074 else
8075 no_cache=1
8076 fi
8077
8078 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8079
e6cc62c6 8080fi;
9926e4a4
VZ
8081
8082 eval "$ac_cv_use_tipwindow"
8083 if test "$no_cache" != 1; then
8084 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8085 fi
8086
8087 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8088 echo "$as_me:$LINENO: result: yes" >&5
8089echo "${ECHO_T}yes" >&6
9926e4a4 8090 else
e6cc62c6
VS
8091 echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
9926e4a4 8093 fi
e6cc62c6 8094
9926e4a4 8095
5005acfe 8096 enablestring=
e6cc62c6
VS
8097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8098echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8099 no_cache=0
8100 # Check whether --enable-popupwin or --disable-popupwin was given.
8101if test "${enable_popupwin+set}" = set; then
8102 enableval="$enable_popupwin"
e6cc62c6 8103
9f41d601
RR
8104 if test "$enableval" = yes; then
8105 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8106 else
8107 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8108 fi
e6cc62c6 8109
9f41d601 8110else
e6cc62c6 8111
9f41d601
RR
8112 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8120
e6cc62c6 8121fi;
9f41d601
RR
8122
8123 eval "$ac_cv_use_popupwin"
8124 if test "$no_cache" != 1; then
8125 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8126 fi
8127
8128 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8129 echo "$as_me:$LINENO: result: yes" >&5
8130echo "${ECHO_T}yes" >&6
9f41d601 8131 else
e6cc62c6
VS
8132 echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
9f41d601 8134 fi
e6cc62c6 8135
52127426 8136
8284b0c5
MB
8137
8138
5005acfe 8139 enablestring=
e6cc62c6
VS
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8142 no_cache=0
8143 # Check whether --enable-commondlg or --disable-commondlg was given.
8144if test "${enable_commondlg+set}" = set; then
8145 enableval="$enable_commondlg"
e6cc62c6 8146
1e6feb95
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8149 else
8150 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8151 fi
e6cc62c6 8152
1e6feb95 8153else
e6cc62c6 8154
1e6feb95
VZ
8155 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8163
e6cc62c6 8164fi;
1e6feb95
VZ
8165
8166 eval "$ac_cv_use_commondlg"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
1e6feb95 8174 else
e6cc62c6
VS
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
1e6feb95 8177 fi
e6cc62c6 8178
1e6feb95 8179
5005acfe 8180 enablestring=
e6cc62c6
VS
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8183 no_cache=0
8184 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8185if test "${enable_choicedlg+set}" = set; then
8186 enableval="$enable_choicedlg"
e6cc62c6 8187
1e6feb95
VZ
8188 if test "$enableval" = yes; then
8189 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8190 else
8191 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8192 fi
e6cc62c6 8193
1e6feb95 8194else
e6cc62c6 8195
1e6feb95
VZ
8196 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8204
e6cc62c6 8205fi;
1e6feb95
VZ
8206
8207 eval "$ac_cv_use_choicedlg"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
1e6feb95 8215 else
e6cc62c6
VS
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
1e6feb95 8218 fi
e6cc62c6 8219
1e6feb95 8220
5005acfe 8221 enablestring=
e6cc62c6
VS
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8224 no_cache=0
8225 # Check whether --enable-coldlg or --disable-coldlg was given.
8226if test "${enable_coldlg+set}" = set; then
8227 enableval="$enable_coldlg"
e6cc62c6 8228
1e6feb95
VZ
8229 if test "$enableval" = yes; then
8230 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8231 else
8232 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8233 fi
e6cc62c6 8234
1e6feb95 8235else
e6cc62c6 8236
1e6feb95
VZ
8237 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8245
e6cc62c6 8246fi;
1e6feb95
VZ
8247
8248 eval "$ac_cv_use_coldlg"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
1e6feb95 8256 else
e6cc62c6
VS
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
1e6feb95 8259 fi
e6cc62c6 8260
1e6feb95 8261
5005acfe 8262 enablestring=
e6cc62c6
VS
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8265 no_cache=0
8266 # Check whether --enable-filedlg or --disable-filedlg was given.
8267if test "${enable_filedlg+set}" = set; then
8268 enableval="$enable_filedlg"
e6cc62c6 8269
1e6feb95
VZ
8270 if test "$enableval" = yes; then
8271 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8272 else
8273 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8274 fi
e6cc62c6 8275
1e6feb95 8276else
e6cc62c6 8277
1e6feb95
VZ
8278 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8286
e6cc62c6 8287fi;
1e6feb95
VZ
8288
8289 eval "$ac_cv_use_filedlg"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
1e6feb95 8297 else
e6cc62c6
VS
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
1e6feb95 8300 fi
e6cc62c6 8301
1e6feb95 8302
5005acfe 8303 enablestring=
e6cc62c6
VS
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8306 no_cache=0
69d27ff7
MB
8307 # Check whether --enable-finddlg or --disable-finddlg was given.
8308if test "${enable_finddlg+set}" = set; then
8309 enableval="$enable_finddlg"
e6cc62c6 8310
8db37e06 8311 if test "$enableval" = yes; then
69d27ff7 8312 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8313 else
69d27ff7 8314 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8315 fi
e6cc62c6 8316
8db37e06 8317else
e6cc62c6 8318
8db37e06
VZ
8319 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
69d27ff7 8326 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8327
e6cc62c6 8328fi;
8db37e06 8329
69d27ff7 8330 eval "$ac_cv_use_finddlg"
8db37e06 8331 if test "$no_cache" != 1; then
69d27ff7 8332 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8333 fi
8334
8335 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8db37e06 8338 else
e6cc62c6
VS
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8db37e06 8341 fi
e6cc62c6 8342
8db37e06 8343
5005acfe 8344 enablestring=
e6cc62c6
VS
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8347 no_cache=0
8348 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8349if test "${enable_fontdlg+set}" = set; then
8350 enableval="$enable_fontdlg"
e6cc62c6 8351
1e6feb95
VZ
8352 if test "$enableval" = yes; then
8353 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8354 else
8355 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8356 fi
e6cc62c6 8357
1e6feb95 8358else
e6cc62c6 8359
1e6feb95
VZ
8360 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8368
e6cc62c6 8369fi;
1e6feb95
VZ
8370
8371 eval "$ac_cv_use_fontdlg"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
1e6feb95 8379 else
e6cc62c6
VS
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
1e6feb95 8382 fi
e6cc62c6 8383
1e6feb95 8384
5005acfe 8385 enablestring=
e6cc62c6
VS
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8388 no_cache=0
8389 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8390if test "${enable_dirdlg+set}" = set; then
8391 enableval="$enable_dirdlg"
e6cc62c6 8392
1e6feb95
VZ
8393 if test "$enableval" = yes; then
8394 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8395 else
8396 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8397 fi
e6cc62c6 8398
1e6feb95 8399else
e6cc62c6 8400
1e6feb95
VZ
8401 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8409
e6cc62c6 8410fi;
1e6feb95
VZ
8411
8412 eval "$ac_cv_use_dirdlg"
10f2d63a 8413 if test "$no_cache" != 1; then
1e6feb95 8414 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8415 fi
8416
1e6feb95 8417 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
10f2d63a 8420 else
e6cc62c6
VS
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
10f2d63a 8423 fi
e6cc62c6 8424
698dcdb6 8425
5005acfe 8426 enablestring=
e6cc62c6
VS
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8429 no_cache=0
1e6feb95
VZ
8430 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8431if test "${enable_msgdlg+set}" = set; then
8432 enableval="$enable_msgdlg"
e6cc62c6 8433
10f2d63a 8434 if test "$enableval" = yes; then
1e6feb95 8435 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8436 else
1e6feb95 8437 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8438 fi
e6cc62c6 8439
10f2d63a 8440else
e6cc62c6 8441
1e6feb95 8442 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
1e6feb95 8449 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8450
e6cc62c6 8451fi;
10f2d63a 8452
1e6feb95 8453 eval "$ac_cv_use_msgdlg"
10f2d63a 8454 if test "$no_cache" != 1; then
1e6feb95 8455 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8456 fi
8457
1e6feb95 8458 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
10f2d63a 8461 else
e6cc62c6
VS
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
10f2d63a 8464 fi
e6cc62c6 8465
10f2d63a 8466
5005acfe 8467 enablestring=
e6cc62c6
VS
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8470 no_cache=0
1e6feb95
VZ
8471 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8472if test "${enable_numberdlg+set}" = set; then
8473 enableval="$enable_numberdlg"
e6cc62c6 8474
10f2d63a 8475 if test "$enableval" = yes; then
1e6feb95 8476 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8477 else
1e6feb95 8478 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8479 fi
e6cc62c6 8480
10f2d63a 8481else
e6cc62c6 8482
1e6feb95 8483 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
1e6feb95 8490 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8491
e6cc62c6 8492fi;
10f2d63a 8493
1e6feb95 8494 eval "$ac_cv_use_numberdlg"
10f2d63a 8495 if test "$no_cache" != 1; then
1e6feb95 8496 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8497 fi
8498
1e6feb95 8499 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
10f2d63a 8502 else
e6cc62c6
VS
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
10f2d63a 8505 fi
e6cc62c6 8506
10f2d63a 8507
5005acfe 8508 enablestring=
e6cc62c6
VS
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8511 no_cache=0
8512 # Check whether --enable-splash or --disable-splash was given.
8513if test "${enable_splash+set}" = set; then
8514 enableval="$enable_splash"
e6cc62c6 8515
cbca9943
VZ
8516 if test "$enableval" = yes; then
8517 ac_cv_use_splash='wxUSE_SPLASH=yes'
8518 else
8519 ac_cv_use_splash='wxUSE_SPLASH=no'
8520 fi
e6cc62c6 8521
cbca9943 8522else
e6cc62c6 8523
cbca9943
VZ
8524 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
8531 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8532
e6cc62c6 8533fi;
cbca9943
VZ
8534
8535 eval "$ac_cv_use_splash"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
cbca9943 8543 else
e6cc62c6
VS
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
cbca9943 8546 fi
e6cc62c6 8547
cbca9943 8548
5005acfe 8549 enablestring=
e6cc62c6
VS
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8552 no_cache=0
8553 # Check whether --enable-textdlg or --disable-textdlg was given.
8554if test "${enable_textdlg+set}" = set; then
8555 enableval="$enable_textdlg"
e6cc62c6 8556
10f2d63a
VZ
8557 if test "$enableval" = yes; then
8558 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8559 else
8560 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8561 fi
e6cc62c6 8562
10f2d63a 8563else
e6cc62c6 8564
10f2d63a
VZ
8565 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8573
e6cc62c6 8574fi;
10f2d63a
VZ
8575
8576 eval "$ac_cv_use_textdlg"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
10f2d63a 8584 else
e6cc62c6
VS
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
10f2d63a 8587 fi
e6cc62c6 8588
10f2d63a 8589
5005acfe 8590 enablestring=
e6cc62c6
VS
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8593 no_cache=0
8594 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8595if test "${enable_tipdlg+set}" = set; then
8596 enableval="$enable_tipdlg"
e6cc62c6 8597
10f2d63a
VZ
8598 if test "$enableval" = yes; then
8599 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8600 else
8601 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8602 fi
e6cc62c6 8603
10f2d63a 8604else
e6cc62c6 8605
10f2d63a
VZ
8606 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8614
e6cc62c6 8615fi;
10f2d63a
VZ
8616
8617 eval "$ac_cv_use_tipdlg"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
10f2d63a 8625 else
e6cc62c6
VS
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
10f2d63a 8628 fi
e6cc62c6 8629
10f2d63a 8630
5005acfe 8631 enablestring=
e6cc62c6
VS
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8634 no_cache=0
8635 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8636if test "${enable_progressdlg+set}" = set; then
8637 enableval="$enable_progressdlg"
e6cc62c6 8638
10f2d63a
VZ
8639 if test "$enableval" = yes; then
8640 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8641 else
8642 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8643 fi
e6cc62c6 8644
10f2d63a 8645else
e6cc62c6 8646
10f2d63a
VZ
8647 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8655
e6cc62c6 8656fi;
10f2d63a
VZ
8657
8658 eval "$ac_cv_use_progressdlg"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
10f2d63a 8666 else
e6cc62c6
VS
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
10f2d63a 8669 fi
e6cc62c6 8670
10f2d63a 8671
5005acfe 8672 enablestring=
e6cc62c6
VS
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8675 no_cache=0
8676 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8677if test "${enable_wizarddlg+set}" = set; then
8678 enableval="$enable_wizarddlg"
e6cc62c6 8679
b1f5d087
VZ
8680 if test "$enableval" = yes; then
8681 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8682 else
8683 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8684 fi
e6cc62c6 8685
b1f5d087 8686else
e6cc62c6 8687
b1f5d087
VZ
8688 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8696
e6cc62c6 8697fi;
b1f5d087
VZ
8698
8699 eval "$ac_cv_use_wizarddlg"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
b1f5d087 8707 else
e6cc62c6
VS
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
b1f5d087 8710 fi
e6cc62c6 8711
8284b0c5
MB
8712
8713
52127426 8714
5005acfe 8715 enablestring=
e6cc62c6
VS
8716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8717echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8718 no_cache=0
8719 # Check whether --enable-menus or --disable-menus was given.
8720if test "${enable_menus+set}" = set; then
8721 enableval="$enable_menus"
e6cc62c6 8722
1e6feb95
VZ
8723 if test "$enableval" = yes; then
8724 ac_cv_use_menus='wxUSE_MENUS=yes'
8725 else
8726 ac_cv_use_menus='wxUSE_MENUS=no'
8727 fi
e6cc62c6 8728
1e6feb95 8729else
e6cc62c6 8730
1e6feb95
VZ
8731 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8732 if test "x$LINE" != x ; then
8733 eval "DEFAULT_$LINE"
8734 else
8735 no_cache=1
8736 fi
8737
8738 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8739
e6cc62c6 8740fi;
1e6feb95
VZ
8741
8742 eval "$ac_cv_use_menus"
8743 if test "$no_cache" != 1; then
8744 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8745 fi
8746
8747 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8748 echo "$as_me:$LINENO: result: yes" >&5
8749echo "${ECHO_T}yes" >&6
1e6feb95 8750 else
e6cc62c6
VS
8751 echo "$as_me:$LINENO: result: no" >&5
8752echo "${ECHO_T}no" >&6
1e6feb95 8753 fi
e6cc62c6 8754
1e6feb95 8755
5005acfe 8756 enablestring=
e6cc62c6
VS
8757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8758echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8759 no_cache=0
8760 # Check whether --enable-miniframe or --disable-miniframe was given.
8761if test "${enable_miniframe+set}" = set; then
8762 enableval="$enable_miniframe"
e6cc62c6 8763
10f2d63a
VZ
8764 if test "$enableval" = yes; then
8765 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8766 else
8767 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8768 fi
e6cc62c6 8769
10f2d63a 8770else
e6cc62c6 8771
10f2d63a
VZ
8772 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8773 if test "x$LINE" != x ; then
8774 eval "DEFAULT_$LINE"
8775 else
8776 no_cache=1
8777 fi
8778
8779 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8780
e6cc62c6 8781fi;
10f2d63a
VZ
8782
8783 eval "$ac_cv_use_miniframe"
8784 if test "$no_cache" != 1; then
8785 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8786 fi
8787
8788 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8789 echo "$as_me:$LINENO: result: yes" >&5
8790echo "${ECHO_T}yes" >&6
10f2d63a 8791 else
e6cc62c6
VS
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
10f2d63a 8794 fi
e6cc62c6 8795
10f2d63a 8796
5005acfe 8797 enablestring=
e6cc62c6
VS
8798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8799echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8800 no_cache=0
8801 # Check whether --enable-tooltips or --disable-tooltips was given.
8802if test "${enable_tooltips+set}" = set; then
8803 enableval="$enable_tooltips"
e6cc62c6 8804
10f2d63a
VZ
8805 if test "$enableval" = yes; then
8806 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8807 else
8808 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8809 fi
e6cc62c6 8810
10f2d63a 8811else
e6cc62c6 8812
10f2d63a
VZ
8813 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8814 if test "x$LINE" != x ; then
8815 eval "DEFAULT_$LINE"
8816 else
8817 no_cache=1
8818 fi
8819
8820 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8821
e6cc62c6 8822fi;
10f2d63a
VZ
8823
8824 eval "$ac_cv_use_tooltips"
8825 if test "$no_cache" != 1; then
8826 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8827 fi
8828
8829 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8830 echo "$as_me:$LINENO: result: yes" >&5
8831echo "${ECHO_T}yes" >&6
10f2d63a 8832 else
e6cc62c6
VS
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
10f2d63a 8835 fi
e6cc62c6 8836
10f2d63a 8837
5005acfe 8838 enablestring=
e6cc62c6
VS
8839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8840echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8841 no_cache=0
8842 # Check whether --enable-splines or --disable-splines was given.
8843if test "${enable_splines+set}" = set; then
8844 enableval="$enable_splines"
e6cc62c6 8845
10f2d63a
VZ
8846 if test "$enableval" = yes; then
8847 ac_cv_use_splines='wxUSE_SPLINES=yes'
8848 else
8849 ac_cv_use_splines='wxUSE_SPLINES=no'
8850 fi
e6cc62c6 8851
10f2d63a 8852else
e6cc62c6 8853
10f2d63a
VZ
8854 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8855 if test "x$LINE" != x ; then
8856 eval "DEFAULT_$LINE"
8857 else
8858 no_cache=1
8859 fi
8860
8861 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8862
e6cc62c6 8863fi;
10f2d63a
VZ
8864
8865 eval "$ac_cv_use_splines"
8866 if test "$no_cache" != 1; then
8867 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8868 fi
8869
8870 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8871 echo "$as_me:$LINENO: result: yes" >&5
8872echo "${ECHO_T}yes" >&6
10f2d63a 8873 else
e6cc62c6
VS
8874 echo "$as_me:$LINENO: result: no" >&5
8875echo "${ECHO_T}no" >&6
10f2d63a 8876 fi
e6cc62c6 8877
10f2d63a 8878
5005acfe 8879 enablestring=
e6cc62c6
VS
8880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8881echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8882 no_cache=0
8883 # Check whether --enable-validators or --disable-validators was given.
8884if test "${enable_validators+set}" = set; then
8885 enableval="$enable_validators"
e6cc62c6 8886
10f2d63a
VZ
8887 if test "$enableval" = yes; then
8888 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8889 else
8890 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8891 fi
e6cc62c6 8892
10f2d63a 8893else
e6cc62c6 8894
10f2d63a
VZ
8895 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8896 if test "x$LINE" != x ; then
8897 eval "DEFAULT_$LINE"
8898 else
8899 no_cache=1
8900 fi
8901
8902 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8903
e6cc62c6 8904fi;
10f2d63a
VZ
8905
8906 eval "$ac_cv_use_validators"
8907 if test "$no_cache" != 1; then
8908 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8909 fi
8910
8911 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
10f2d63a 8914 else
e6cc62c6
VS
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
10f2d63a 8917 fi
e6cc62c6 8918
10f2d63a 8919
5005acfe 8920 enablestring=
e6cc62c6
VS
8921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8922echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8923 no_cache=0
8924 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8925if test "${enable_busyinfo+set}" = set; then
8926 enableval="$enable_busyinfo"
e6cc62c6 8927
10f2d63a
VZ
8928 if test "$enableval" = yes; then
8929 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8930 else
8931 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8932 fi
e6cc62c6 8933
10f2d63a 8934else
e6cc62c6 8935
10f2d63a
VZ
8936 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8937 if test "x$LINE" != x ; then
8938 eval "DEFAULT_$LINE"
8939 else
8940 no_cache=1
8941 fi
8942
8943 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8944
e6cc62c6 8945fi;
10f2d63a
VZ
8946
8947 eval "$ac_cv_use_busyinfo"
8948 if test "$no_cache" != 1; then
8949 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8950 fi
8951
8952 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8953 echo "$as_me:$LINENO: result: yes" >&5
8954echo "${ECHO_T}yes" >&6
10f2d63a 8955 else
e6cc62c6
VS
8956 echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
10f2d63a 8958 fi
e6cc62c6 8959
10f2d63a 8960
5005acfe 8961 enablestring=
e6cc62c6
VS
8962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8963echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8964 no_cache=0
8965 # Check whether --enable-joystick or --disable-joystick was given.
8966if test "${enable_joystick+set}" = set; then
8967 enableval="$enable_joystick"
e6cc62c6 8968
f6bcfd97
BP
8969 if test "$enableval" = yes; then
8970 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8971 else
8972 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8973 fi
e6cc62c6 8974
f6bcfd97 8975else
e6cc62c6 8976
f6bcfd97
BP
8977 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8978 if test "x$LINE" != x ; then
8979 eval "DEFAULT_$LINE"
8980 else
8981 no_cache=1
8982 fi
8983
8984 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8985
e6cc62c6 8986fi;
f6bcfd97
BP
8987
8988 eval "$ac_cv_use_joystick"
8989 if test "$no_cache" != 1; then
8990 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8991 fi
8992
8993 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8994 echo "$as_me:$LINENO: result: yes" >&5
8995echo "${ECHO_T}yes" >&6
f6bcfd97 8996 else
e6cc62c6
VS
8997 echo "$as_me:$LINENO: result: no" >&5
8998echo "${ECHO_T}no" >&6
f6bcfd97 8999 fi
e6cc62c6 9000
698dcdb6 9001
5005acfe 9002 enablestring=
e6cc62c6
VS
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9005 no_cache=0
9006 # Check whether --enable-metafile or --disable-metafile was given.
9007if test "${enable_metafile+set}" = set; then
9008 enableval="$enable_metafile"
e6cc62c6 9009
1e6feb95
VZ
9010 if test "$enableval" = yes; then
9011 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9012 else
9013 ac_cv_use_metafile='wxUSE_METAFILE=no'
9014 fi
e6cc62c6 9015
1e6feb95 9016else
e6cc62c6 9017
1e6feb95
VZ
9018 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9026
e6cc62c6 9027fi;
1e6feb95
VZ
9028
9029 eval "$ac_cv_use_metafile"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
1e6feb95 9037 else
e6cc62c6
VS
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
1e6feb95 9040 fi
e6cc62c6 9041
1e6feb95 9042
5005acfe 9043 enablestring=
e6cc62c6
VS
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9046 no_cache=0
9047 # Check whether --enable-dragimage or --disable-dragimage was given.
9048if test "${enable_dragimage+set}" = set; then
9049 enableval="$enable_dragimage"
e6cc62c6 9050
24fd6d87
VZ
9051 if test "$enableval" = yes; then
9052 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9053 else
9054 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9055 fi
e6cc62c6 9056
24fd6d87 9057else
e6cc62c6 9058
24fd6d87
VZ
9059 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9067
e6cc62c6 9068fi;
24fd6d87
VZ
9069
9070 eval "$ac_cv_use_dragimage"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
24fd6d87 9078 else
e6cc62c6
VS
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
24fd6d87 9081 fi
e6cc62c6 9082
52127426 9083
7bb2947d 9084 enablestring=
e6cc62c6
VS
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9087 no_cache=0
9088 # Check whether --enable-accessibility or --disable-accessibility was given.
9089if test "${enable_accessibility+set}" = set; then
9090 enableval="$enable_accessibility"
e6cc62c6 9091
7bb2947d
MB
9092 if test "$enableval" = yes; then
9093 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9094 else
9095 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9096 fi
e6cc62c6 9097
7bb2947d 9098else
e6cc62c6 9099
7bb2947d
MB
9100 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9108
e6cc62c6 9109fi;
7bb2947d
MB
9110
9111 eval "$ac_cv_use_accessibility"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
7bb2947d 9119 else
e6cc62c6
VS
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
7bb2947d 9122 fi
e6cc62c6 9123
7bb2947d 9124
8284b0c5
MB
9125
9126
5005acfe 9127 enablestring=
e6cc62c6
VS
9128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9129echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9130 no_cache=0
9131 # Check whether --enable-palette or --disable-palette was given.
9132if test "${enable_palette+set}" = set; then
9133 enableval="$enable_palette"
e6cc62c6 9134
edae8572
VZ
9135 if test "$enableval" = yes; then
9136 ac_cv_use_palette='wxUSE_PALETTE=yes'
9137 else
9138 ac_cv_use_palette='wxUSE_PALETTE=no'
9139 fi
e6cc62c6 9140
edae8572 9141else
e6cc62c6 9142
edae8572
VZ
9143 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9144 if test "x$LINE" != x ; then
9145 eval "DEFAULT_$LINE"
9146 else
9147 no_cache=1
9148 fi
9149
9150 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9151
e6cc62c6 9152fi;
edae8572
VZ
9153
9154 eval "$ac_cv_use_palette"
9155 if test "$no_cache" != 1; then
9156 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9157 fi
9158
9159 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9160 echo "$as_me:$LINENO: result: yes" >&5
9161echo "${ECHO_T}yes" >&6
edae8572 9162 else
e6cc62c6
VS
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
edae8572 9165 fi
e6cc62c6 9166
edae8572 9167
5005acfe 9168 enablestring=
e6cc62c6
VS
9169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9170echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9171 no_cache=0
9172 # Check whether --enable-image or --disable-image was given.
9173if test "${enable_image+set}" = set; then
9174 enableval="$enable_image"
e6cc62c6 9175
0046ff7c
VS
9176 if test "$enableval" = yes; then
9177 ac_cv_use_image='wxUSE_IMAGE=yes'
9178 else
9179 ac_cv_use_image='wxUSE_IMAGE=no'
9180 fi
e6cc62c6 9181
0046ff7c 9182else
e6cc62c6 9183
0046ff7c
VS
9184 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9185 if test "x$LINE" != x ; then
9186 eval "DEFAULT_$LINE"
9187 else
9188 no_cache=1
9189 fi
9190
9191 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9192
e6cc62c6 9193fi;
0046ff7c
VS
9194
9195 eval "$ac_cv_use_image"
9196 if test "$no_cache" != 1; then
9197 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9198 fi
9199
9200 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9201 echo "$as_me:$LINENO: result: yes" >&5
9202echo "${ECHO_T}yes" >&6
0046ff7c 9203 else
e6cc62c6
VS
9204 echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
0046ff7c 9206 fi
e6cc62c6 9207
0046ff7c 9208
5005acfe 9209 enablestring=
e6cc62c6
VS
9210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9211echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9212 no_cache=0
9213 # Check whether --enable-gif or --disable-gif was given.
9214if test "${enable_gif+set}" = set; then
9215 enableval="$enable_gif"
e6cc62c6 9216
10f2d63a
VZ
9217 if test "$enableval" = yes; then
9218 ac_cv_use_gif='wxUSE_GIF=yes'
9219 else
9220 ac_cv_use_gif='wxUSE_GIF=no'
9221 fi
e6cc62c6 9222
10f2d63a 9223else
e6cc62c6 9224
10f2d63a
VZ
9225 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9226 if test "x$LINE" != x ; then
9227 eval "DEFAULT_$LINE"
9228 else
9229 no_cache=1
9230 fi
9231
9232 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9233
e6cc62c6 9234fi;
10f2d63a
VZ
9235
9236 eval "$ac_cv_use_gif"
9237 if test "$no_cache" != 1; then
9238 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9239 fi
9240
9241 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9242 echo "$as_me:$LINENO: result: yes" >&5
9243echo "${ECHO_T}yes" >&6
10f2d63a 9244 else
e6cc62c6
VS
9245 echo "$as_me:$LINENO: result: no" >&5
9246echo "${ECHO_T}no" >&6
10f2d63a 9247 fi
e6cc62c6 9248
10f2d63a 9249
5005acfe 9250 enablestring=
e6cc62c6
VS
9251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9252echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9253 no_cache=0
9254 # Check whether --enable-pcx or --disable-pcx was given.
9255if test "${enable_pcx+set}" = set; then
9256 enableval="$enable_pcx"
e6cc62c6 9257
10f2d63a
VZ
9258 if test "$enableval" = yes; then
9259 ac_cv_use_pcx='wxUSE_PCX=yes'
9260 else
9261 ac_cv_use_pcx='wxUSE_PCX=no'
9262 fi
e6cc62c6 9263
10f2d63a 9264else
e6cc62c6 9265
10f2d63a
VZ
9266 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9267 if test "x$LINE" != x ; then
9268 eval "DEFAULT_$LINE"
9269 else
9270 no_cache=1
9271 fi
9272
9273 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9274
e6cc62c6 9275fi;
10f2d63a
VZ
9276
9277 eval "$ac_cv_use_pcx"
9278 if test "$no_cache" != 1; then
9279 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9280 fi
9281
9282 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9283 echo "$as_me:$LINENO: result: yes" >&5
9284echo "${ECHO_T}yes" >&6
10f2d63a 9285 else
e6cc62c6
VS
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
10f2d63a 9288 fi
e6cc62c6 9289
10f2d63a 9290
5005acfe 9291 enablestring=
e6cc62c6
VS
9292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9293echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9294 no_cache=0
9295 # Check whether --enable-iff or --disable-iff was given.
9296if test "${enable_iff+set}" = set; then
9297 enableval="$enable_iff"
e6cc62c6 9298
4b6b4dfc
RR
9299 if test "$enableval" = yes; then
9300 ac_cv_use_iff='wxUSE_IFF=yes'
9301 else
9302 ac_cv_use_iff='wxUSE_IFF=no'
9303 fi
e6cc62c6 9304
4b6b4dfc 9305else
e6cc62c6 9306
4b6b4dfc
RR
9307 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9308 if test "x$LINE" != x ; then
9309 eval "DEFAULT_$LINE"
9310 else
9311 no_cache=1
9312 fi
9313
9314 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9315
e6cc62c6 9316fi;
4b6b4dfc
RR
9317
9318 eval "$ac_cv_use_iff"
9319 if test "$no_cache" != 1; then
9320 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9321 fi
9322
9323 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9324 echo "$as_me:$LINENO: result: yes" >&5
9325echo "${ECHO_T}yes" >&6
4b6b4dfc 9326 else
e6cc62c6
VS
9327 echo "$as_me:$LINENO: result: no" >&5
9328echo "${ECHO_T}no" >&6
4b6b4dfc 9329 fi
e6cc62c6 9330
4b6b4dfc 9331
5005acfe 9332 enablestring=
e6cc62c6
VS
9333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9334echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9335 no_cache=0
9336 # Check whether --enable-pnm or --disable-pnm was given.
9337if test "${enable_pnm+set}" = set; then
9338 enableval="$enable_pnm"
e6cc62c6 9339
10f2d63a
VZ
9340 if test "$enableval" = yes; then
9341 ac_cv_use_pnm='wxUSE_PNM=yes'
9342 else
9343 ac_cv_use_pnm='wxUSE_PNM=no'
9344 fi
e6cc62c6 9345
10f2d63a 9346else
e6cc62c6 9347
10f2d63a
VZ
9348 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9349 if test "x$LINE" != x ; then
9350 eval "DEFAULT_$LINE"
9351 else
9352 no_cache=1
9353 fi
9354
9355 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9356
e6cc62c6 9357fi;
10f2d63a
VZ
9358
9359 eval "$ac_cv_use_pnm"
9360 if test "$no_cache" != 1; then
9361 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9362 fi
9363
9364 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9365 echo "$as_me:$LINENO: result: yes" >&5
9366echo "${ECHO_T}yes" >&6
10f2d63a 9367 else
e6cc62c6
VS
9368 echo "$as_me:$LINENO: result: no" >&5
9369echo "${ECHO_T}no" >&6
10f2d63a 9370 fi
e6cc62c6 9371
10f2d63a 9372
5005acfe 9373 enablestring=
e6cc62c6
VS
9374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9375echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9376 no_cache=0
69d27ff7
MB
9377 # Check whether --enable-xpm or --disable-xpm was given.
9378if test "${enable_xpm+set}" = set; then
9379 enableval="$enable_xpm"
e6cc62c6 9380
0046ff7c 9381 if test "$enableval" = yes; then
69d27ff7 9382 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9383 else
69d27ff7 9384 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9385 fi
e6cc62c6 9386
0046ff7c 9387else
e6cc62c6 9388
0046ff7c
VS
9389 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9390 if test "x$LINE" != x ; then
9391 eval "DEFAULT_$LINE"
9392 else
9393 no_cache=1
9394 fi
9395
69d27ff7 9396 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9397
e6cc62c6 9398fi;
0046ff7c 9399
69d27ff7 9400 eval "$ac_cv_use_xpm"
0046ff7c 9401 if test "$no_cache" != 1; then
69d27ff7 9402 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9403 fi
9404
9405 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9406 echo "$as_me:$LINENO: result: yes" >&5
9407echo "${ECHO_T}yes" >&6
0046ff7c 9408 else
e6cc62c6
VS
9409 echo "$as_me:$LINENO: result: no" >&5
9410echo "${ECHO_T}no" >&6
0046ff7c 9411 fi
e6cc62c6 9412
0046ff7c 9413
5005acfe 9414 enablestring=
e6cc62c6
VS
9415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9416echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9417 no_cache=0
c7206e64
VS
9418 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9419if test "${enable_ico_cur+set}" = set; then
9420 enableval="$enable_ico_cur"
e6cc62c6 9421
658974ae 9422 if test "$enableval" = yes; then
c7206e64 9423 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9424 else
c7206e64 9425 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9426 fi
e6cc62c6 9427
658974ae 9428else
e6cc62c6 9429
658974ae
VS
9430 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9431 if test "x$LINE" != x ; then
9432 eval "DEFAULT_$LINE"
9433 else
9434 no_cache=1
9435 fi
9436
c7206e64 9437 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9438
e6cc62c6 9439fi;
658974ae 9440
c7206e64 9441 eval "$ac_cv_use_ico_cur"
658974ae 9442 if test "$no_cache" != 1; then
c7206e64 9443 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9444 fi
9445
9446 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9447 echo "$as_me:$LINENO: result: yes" >&5
9448echo "${ECHO_T}yes" >&6
658974ae 9449 else
e6cc62c6
VS
9450 echo "$as_me:$LINENO: result: no" >&5
9451echo "${ECHO_T}no" >&6
658974ae 9452 fi
e6cc62c6 9453
658974ae 9454
b12915c1
VZ
9455fi
9456
029b47ad
VS
9457
9458
9459 enablestring=
9460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9461echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9462 no_cache=0
9463 # Check whether --enable-official_build or --disable-official_build was given.
9464if test "${enable_official_build+set}" = set; then
9465 enableval="$enable_official_build"
9466
9467 if test "$enableval" = yes; then
9468 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9469 else
9470 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9471 fi
9472
9473else
9474
9475 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9476 if test "x$LINE" != x ; then
9477 eval "DEFAULT_$LINE"
9478 else
9479 no_cache=1
9480 fi
9481
9482 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9483
9484fi;
9485
9486 eval "$ac_cv_use_official_build"
9487 if test "$no_cache" != 1; then
9488 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9489 fi
9490
9491 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9492 echo "$as_me:$LINENO: result: yes" >&5
9493echo "${ECHO_T}yes" >&6
9494 else
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
9497 fi
9498
9499# Check whether --enable-vendor or --disable-vendor was given.
9500if test "${enable_vendor+set}" = set; then
9501 enableval="$enable_vendor"
9502 VENDOR="$enableval"
9503fi;
9504if test "x$VENDOR" = "x"; then
9505 VENDOR="custom"
9506fi
9507
d558c907
VS
9508case "${host}" in
9509 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9510 PATH_IFS=';'
9511 LEX_STEM="lexyy"
d558c907
VS
9512 ;;
9513 *)
9514 PATH_IFS=':'
9515 LEX_STEM="lex.yy"
9516 ;;
9517esac
9518
8284b0c5
MB
9519
9520
10f2d63a
VZ
9521 echo "saving argument cache $wx_arg_cache_file"
9522 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9523
8284b0c5 9524
e6cc62c6
VS
9525
9526echo "$as_me:$LINENO: checking for toolkit" >&5
9527echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9528
9529# In Wine, we need to default to MSW, not GTK or MOTIF
9530if test "$wxUSE_WINE" = "yes"; then
9531 DEFAULT_DEFAULT_wxUSE_GTK=0
9532 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9533 DEFAULT_DEFAULT_wxUSE_MSW=1
9534fi
10f2d63a
VZ
9535
9536if test "$wxUSE_GUI" = "yes"; then
9537
3a922bb4 9538 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9539 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9540echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9541 { (exit 1); exit 1; }; }
3a922bb4 9542 fi
b12915c1 9543
3a922bb4
RL
9544 if test "$TOOLKIT_GIVEN" = 1; then
9545 for toolkit in `echo $ALL_TOOLKITS`; do
9546 var=wxUSE_$toolkit
9547 eval "value=\$${var}"
9548 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9549 done
10f2d63a 9550 else
3a922bb4
RL
9551 for toolkit in `echo $ALL_TOOLKITS`; do
9552 if test "$has_toolkit_in_cache" != 1; then
9553 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9554 else
9555 var=DEFAULT_wxUSE_$toolkit
9556 fi
9557 eval "wxUSE_$toolkit=\$${var}"
9558 done
10f2d63a 9559 fi
10f2d63a 9560
ac0c4cc3
DE
9561 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9562 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9563 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9564
d558c907 9565 case "${host}" in
6fa882bd 9566 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9567 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9568 esac
10f2d63a 9569
3a922bb4
RL
9570 case "$NUM_TOOLKITS" in
9571 1)
9572 ;;
9573 0)
e6cc62c6
VS
9574 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9575echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9576 { (exit 1); exit 1; }; }
3a922bb4
RL
9577 ;;
9578 *)
e6cc62c6
VS
9579 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9580echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9581 { (exit 1); exit 1; }; }
3a922bb4 9582 esac
10f2d63a 9583
3a922bb4
RL
9584 for toolkit in `echo $ALL_TOOLKITS`; do
9585 var=wxUSE_$toolkit
9586 eval "value=\$${var}"
9587 if test "x$value" != x; then
9588 cache_var=CACHE_$toolkit
9589 eval "cache=\$${cache_var}"
9590 if test "$cache" = 1; then
9591 echo "$var=$value" >> ${wx_arg_cache_file}
9592 fi
9593 if test "$value" = 1; then
9594 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9595 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9596echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9597 fi
9598 fi
9599 done
10f2d63a 9600else
9de9b8f0
VZ
9601 if test "x$host_alias" != "x"; then
9602 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9603echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9604 else
9605 echo "$as_me:$LINENO: result: base only" >&5
9606echo "${ECHO_T}base only" >&6
9607 fi
10f2d63a
VZ
9608fi
9609
43d99b6d
VS
9610wants_win32=0
9611doesnt_want_win32=0
17234b26
MB
9612case "${host}" in
9613 *-*-cygwin*)
9614 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9615 wants_win32=1
9616 else
9617 doesnt_want_win32=1
17234b26
MB
9618 fi
9619 ;;
9620 *-*-mingw*)
43d99b6d 9621 wants_win32=1
17234b26
MB
9622 ;;
9623esac
9624
89e6bf6d
VZ
9625if test "$wxUSE_WINE" = "yes"; then
9626 wants_win32=1
9627 CC=winegcc
9628 CXX=wineg++
9629 RESCOMP=wrc
9630fi
9631
43d99b6d 9632if test "$wants_win32" = 1 ; then
17234b26
MB
9633 USE_UNIX=0
9634 USE_WIN32=1
e6cc62c6 9635 cat >>confdefs.h <<\_ACEOF
17234b26 9636#define __WIN32__ 1
e6cc62c6 9637_ACEOF
17234b26 9638
e6cc62c6 9639 cat >>confdefs.h <<\_ACEOF
17234b26 9640#define __WIN95__ 1
e6cc62c6 9641_ACEOF
17234b26 9642
e6cc62c6 9643 cat >>confdefs.h <<\_ACEOF
17234b26 9644#define __WINDOWS__ 1
e6cc62c6 9645_ACEOF
17234b26 9646
e6cc62c6 9647 cat >>confdefs.h <<\_ACEOF
17234b26 9648#define __GNUWIN32__ 1
e6cc62c6 9649_ACEOF
17234b26 9650
e6cc62c6 9651 cat >>confdefs.h <<\_ACEOF
17234b26 9652#define STRICT 1
e6cc62c6 9653_ACEOF
17234b26 9654
e6cc62c6 9655 cat >>confdefs.h <<\_ACEOF
17234b26 9656#define WINVER 0x0400
e6cc62c6 9657_ACEOF
17234b26 9658
43d99b6d
VS
9659fi
9660if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9661 USE_UNIX=1
9662 USE_WIN32=0
9663fi
9664
9665if test "$USE_UNIX" = 1 ; then
9666 wxUSE_UNIX=yes
e6cc62c6 9667 cat >>confdefs.h <<\_ACEOF
17234b26 9668#define __UNIX__ 1
e6cc62c6 9669_ACEOF
17234b26
MB
9670
9671fi
9672
8284b0c5 9673
e6cc62c6 9674cat >confcache <<\_ACEOF
10f2d63a
VZ
9675# This file is a shell script that caches the results of configure
9676# tests run on this system so they can be shared between configure
e6cc62c6
VS
9677# scripts and configure runs, see configure's option --config-cache.
9678# It is not useful on other systems. If it contains results you don't
9679# want to keep, you may remove or edit it.
10f2d63a 9680#
e6cc62c6
VS
9681# config.status only pays attention to the cache file if you give it
9682# the --recheck option to rerun configure.
10f2d63a 9683#
e6cc62c6
VS
9684# `ac_cv_env_foo' variables (set or unset) will be overridden when
9685# loading this file, other *unset* `ac_cv_foo' will be assigned the
9686# following values.
9687
9688_ACEOF
9689
10f2d63a
VZ
9690# The following way of writing the cache mishandles newlines in values,
9691# but we know of no workaround that is simple, portable, and efficient.
9692# So, don't put newlines in cache variables' values.
9693# Ultrix sh set writes to stderr and can't be redirected directly,
9694# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9695{
9696 (set) 2>&1 |
9697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9698 *ac_space=\ *)
9699 # `set' does not quote correctly, so add quotes (double-quote
9700 # substitution turns \\\\ into \\, and sed turns \\ into \).
9701 sed -n \
9702 "s/'/'\\\\''/g;
9703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9704 ;;
9705 *)
9706 # `set' quotes correctly as required by POSIX, so do not add quotes.
9707 sed -n \
9708 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9709 ;;
9710 esac;
9711} |
9712 sed '
9713 t clear
9714 : clear
9715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9716 t end
9717 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9718 : end' >>confcache
9719if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9720 if test -w $cache_file; then
e6cc62c6
VS
9721 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9722 cat confcache >$cache_file
10f2d63a
VZ
9723 else
9724 echo "not updating unwritable cache $cache_file"
9725 fi
9726fi
9727rm -f confcache
9728
e59890c3 9729if test "$build" != "$host" ; then
9d353d4a 9730 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9731 CC=$host_alias-gcc
9732 CXX=$host_alias-c++
9733 AR=$host_alias-ar
9734 RANLIB=$host_alias-ranlib
9735 DLLTOOL=$host_alias-dlltool
9736 RESCOMP=$host_alias-windres
9737 LD=$host_alias-ld
9738 NM=$host_alias-nm
9739 STRIP=$host_alias-strip
9740 else
e6cc62c6
VS
9741 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9742echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9743 { (exit 1); exit 1; }; }
3a922bb4 9744 fi
10f2d63a
VZ
9745fi
9746
ec603395 9747CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9748ac_ext=c
9749ac_cpp='$CPP $CPPFLAGS'
9750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753if test -n "$ac_tool_prefix"; then
9754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9755set dummy ${ac_tool_prefix}gcc; ac_word=$2
9756echo "$as_me:$LINENO: checking for $ac_word" >&5
9757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9758if test "${ac_cv_prog_CC+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761 if test -n "$CC"; then
9762 ac_cv_prog_CC="$CC" # Let the user override the test.
9763else
9764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765for as_dir in $PATH
9766do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775done
9776done
9777
9778fi
9779fi
9780CC=$ac_cv_prog_CC
9781if test -n "$CC"; then
9782 echo "$as_me:$LINENO: result: $CC" >&5
9783echo "${ECHO_T}$CC" >&6
9784else
9785 echo "$as_me:$LINENO: result: no" >&5
9786echo "${ECHO_T}no" >&6
9787fi
9788
9789fi
9790if test -z "$ac_cv_prog_CC"; then
9791 ac_ct_CC=$CC
9792 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9793set dummy gcc; ac_word=$2
e6cc62c6
VS
9794echo "$as_me:$LINENO: checking for $ac_word" >&5
9795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799 if test -n "$ac_ct_CC"; then
9800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9801else
9802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9803for as_dir in $PATH
9804do
9805 IFS=$as_save_IFS
9806 test -z "$as_dir" && as_dir=.
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9809 ac_cv_prog_ac_ct_CC="gcc"
9810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9811 break 2
9812 fi
9813done
9814done
9815
9816fi
9817fi
9818ac_ct_CC=$ac_cv_prog_ac_ct_CC
9819if test -n "$ac_ct_CC"; then
9820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9821echo "${ECHO_T}$ac_ct_CC" >&6
9822else
9823 echo "$as_me:$LINENO: result: no" >&5
9824echo "${ECHO_T}no" >&6
9825fi
9826
9827 CC=$ac_ct_CC
9828else
9829 CC="$ac_cv_prog_CC"
9830fi
9831
9832if test -z "$CC"; then
9833 if test -n "$ac_tool_prefix"; then
9834 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9835set dummy ${ac_tool_prefix}cc; ac_word=$2
9836echo "$as_me:$LINENO: checking for $ac_word" >&5
9837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9838if test "${ac_cv_prog_CC+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9840else
9841 if test -n "$CC"; then
9842 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9843else
e6cc62c6
VS
9844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845for as_dir in $PATH
9846do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
9850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851 ac_cv_prog_CC="${ac_tool_prefix}cc"
9852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9854 fi
9855done
9856done
9857
10f2d63a 9858fi
6232543b 9859fi
e6cc62c6 9860CC=$ac_cv_prog_CC
6232543b 9861if test -n "$CC"; then
e6cc62c6
VS
9862 echo "$as_me:$LINENO: result: $CC" >&5
9863echo "${ECHO_T}$CC" >&6
9864else
9865 echo "$as_me:$LINENO: result: no" >&5
9866echo "${ECHO_T}no" >&6
9867fi
9868
9869fi
9870if test -z "$ac_cv_prog_CC"; then
9871 ac_ct_CC=$CC
9872 # Extract the first word of "cc", so it can be a program name with args.
9873set dummy cc; ac_word=$2
9874echo "$as_me:$LINENO: checking for $ac_word" >&5
9875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879 if test -n "$ac_ct_CC"; then
9880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9881else
9882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889 ac_cv_prog_ac_ct_CC="cc"
9890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9892 fi
9893done
9894done
9895
9896fi
9897fi
9898ac_ct_CC=$ac_cv_prog_ac_ct_CC
9899if test -n "$ac_ct_CC"; then
9900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9901echo "${ECHO_T}$ac_ct_CC" >&6
9902else
9903 echo "$as_me:$LINENO: result: no" >&5
9904echo "${ECHO_T}no" >&6
9905fi
9906
9907 CC=$ac_ct_CC
247f5006 9908else
e6cc62c6 9909 CC="$ac_cv_prog_CC"
247f5006
VZ
9910fi
9911
e6cc62c6 9912fi
5c6fa7d2
RR
9913if test -z "$CC"; then
9914 # Extract the first word of "cc", so it can be a program name with args.
9915set dummy cc; ac_word=$2
e6cc62c6
VS
9916echo "$as_me:$LINENO: checking for $ac_word" >&5
9917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9918if test "${ac_cv_prog_CC+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9920else
9921 if test -n "$CC"; then
9922 ac_cv_prog_CC="$CC" # Let the user override the test.
9923else
9924 ac_prog_rejected=no
e6cc62c6
VS
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9933 ac_prog_rejected=yes
9934 continue
9935 fi
9936 ac_cv_prog_CC="cc"
9937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9939 fi
9940done
9941done
9942
328a083c
RR
9943if test $ac_prog_rejected = yes; then
9944 # We found a bogon in the path, so make sure we never use it.
9945 set dummy $ac_cv_prog_CC
9946 shift
e6cc62c6 9947 if test $# != 0; then
328a083c 9948 # We chose a different compiler from the bogus one.
1e487827
VS
9949 # However, it has the same basename, so the bogon will be chosen
9950 # first if we set CC to just the basename; use the full file name.
9951 shift
e6cc62c6 9952 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9953 fi
1e487827
VS
9954fi
9955fi
9956fi
e6cc62c6 9957CC=$ac_cv_prog_CC
1e487827 9958if test -n "$CC"; then
e6cc62c6
VS
9959 echo "$as_me:$LINENO: result: $CC" >&5
9960echo "${ECHO_T}$CC" >&6
703e0a69 9961else
e6cc62c6
VS
9962 echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
703e0a69 9964fi
1e487827 9965
e6cc62c6
VS
9966fi
9967if test -z "$CC"; then
9968 if test -n "$ac_tool_prefix"; then
9969 for ac_prog in cl
9970 do
9971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9973echo "$as_me:$LINENO: checking for $ac_word" >&5
9974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9975if test "${ac_cv_prog_CC+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9977else
9978 if test -n "$CC"; then
9979 ac_cv_prog_CC="$CC" # Let the user override the test.
9980else
e6cc62c6
VS
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9991 fi
9992done
9993done
9994
f09359cf
VS
9995fi
9996fi
e6cc62c6 9997CC=$ac_cv_prog_CC
f09359cf 9998if test -n "$CC"; then
e6cc62c6
VS
9999 echo "$as_me:$LINENO: result: $CC" >&5
10000echo "${ECHO_T}$CC" >&6
f09359cf 10001else
e6cc62c6
VS
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
5c6fa7d2 10004fi
1e487827 10005
e6cc62c6
VS
10006 test -n "$CC" && break
10007 done
10008fi
10009if test -z "$CC"; then
10010 ac_ct_CC=$CC
10011 for ac_prog in cl
10012do
10013 # Extract the first word of "$ac_prog", so it can be a program name with args.
10014set dummy $ac_prog; ac_word=$2
10015echo "$as_me:$LINENO: checking for $ac_word" >&5
10016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 if test -n "$ac_ct_CC"; then
10021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10022else
10023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_prog_ac_ct_CC="$ac_prog"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035done
f09359cf 10036
e6cc62c6
VS
10037fi
10038fi
10039ac_ct_CC=$ac_cv_prog_ac_ct_CC
10040if test -n "$ac_ct_CC"; then
10041 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10042echo "${ECHO_T}$ac_ct_CC" >&6
10043else
10044 echo "$as_me:$LINENO: result: no" >&5
10045echo "${ECHO_T}no" >&6
10046fi
f09359cf 10047
e6cc62c6
VS
10048 test -n "$ac_ct_CC" && break
10049done
247f5006 10050
e6cc62c6
VS
10051 CC=$ac_ct_CC
10052fi
10053
10054fi
10055
10056
10057test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10058See \`config.log' for more details." >&5
10059echo "$as_me: error: no acceptable C compiler found in \$PATH
10060See \`config.log' for more details." >&2;}
10061 { (exit 1); exit 1; }; }
10062
10063# Provide some information about the compiler.
10064echo "$as_me:$LINENO:" \
10065 "checking for C compiler version" >&5
10066ac_compiler=`set X $ac_compile; echo $2`
10067{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10068 (eval $ac_compiler --version </dev/null >&5) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }
10072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10073 (eval $ac_compiler -v </dev/null >&5) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }
10077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10078 (eval $ac_compiler -V </dev/null >&5) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }
10082
10083cat >conftest.$ac_ext <<_ACEOF
10084#line $LINENO "configure"
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
10090
10091int
10092main ()
10093{
247f5006 10094
e6cc62c6
VS
10095 ;
10096 return 0;
10097}
10098_ACEOF
10099ac_clean_files_save=$ac_clean_files
10100ac_clean_files="$ac_clean_files a.out a.exe b.out"
10101# Try to create an executable without -o first, disregard a.out.
10102# It will help us diagnose broken compilers, and finding out an intuition
10103# of exeext.
10104echo "$as_me:$LINENO: checking for C compiler default output" >&5
10105echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10106ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10107if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10108 (eval $ac_link_default) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; then
10112 # Find the output, starting from the most likely. This scheme is
10113# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10114# resort.
10115
10116# Be careful to initialize this variable, since it used to be cached.
10117# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10118ac_cv_exeext=
10119# b.out is created by i960 compilers.
10120for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10121do
10122 test -f "$ac_file" || continue
10123 case $ac_file in
10124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10125 ;;
10126 conftest.$ac_ext )
10127 # This is the source file.
10128 ;;
10129 [ab].out )
10130 # We found the default executable, but exeext='' is most
10131 # certainly right.
10132 break;;
10133 *.* )
10134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10135 # FIXME: I believe we export ac_cv_exeext for Libtool,
10136 # but it would be cool to find out if it's true. Does anybody
10137 # maintain Libtool? --akim.
10138 export ac_cv_exeext
10139 break;;
10140 * )
10141 break;;
10142 esac
10143done
10144else
10145 echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
10148{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10149See \`config.log' for more details." >&5
10150echo "$as_me: error: C compiler cannot create executables
10151See \`config.log' for more details." >&2;}
10152 { (exit 77); exit 77; }; }
10153fi
10154
10155ac_exeext=$ac_cv_exeext
10156echo "$as_me:$LINENO: result: $ac_file" >&5
10157echo "${ECHO_T}$ac_file" >&6
10158
10159# Check the compiler produces executables we can run. If not, either
10160# the compiler is broken, or we cross compile.
10161echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10162echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10163# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10164# If not cross compiling, check that we can run a simple program.
10165if test "$cross_compiling" != yes; then
10166 if { ac_try='./$ac_file'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 cross_compiling=no
698dcdb6 10173 else
e6cc62c6
VS
10174 if test "$cross_compiling" = maybe; then
10175 cross_compiling=yes
10176 else
10177 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10178If you meant to cross compile, use \`--host'.
10179See \`config.log' for more details." >&5
10180echo "$as_me: error: cannot run C compiled programs.
10181If you meant to cross compile, use \`--host'.
10182See \`config.log' for more details." >&2;}
10183 { (exit 1); exit 1; }; }
10184 fi
698dcdb6 10185 fi
52127426 10186fi
e6cc62c6
VS
10187echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189
10190rm -f a.out a.exe conftest$ac_cv_exeext b.out
10191ac_clean_files=$ac_clean_files_save
10192# Check the compiler produces executables we can run. If not, either
10193# the compiler is broken, or we cross compile.
10194echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10195echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10196echo "$as_me:$LINENO: result: $cross_compiling" >&5
10197echo "${ECHO_T}$cross_compiling" >&6
10198
10199echo "$as_me:$LINENO: checking for suffix of executables" >&5
10200echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; then
10206 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10207# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10208# work properly (i.e., refer to `conftest.exe'), while it won't with
10209# `rm'.
10210for ac_file in conftest.exe conftest conftest.*; do
10211 test -f "$ac_file" || continue
10212 case $ac_file in
10213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10215 export ac_cv_exeext
10216 break;;
10217 * ) break;;
10218 esac
10219done
5c6fa7d2 10220else
e6cc62c6
VS
10221 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10222See \`config.log' for more details." >&5
10223echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10224See \`config.log' for more details." >&2;}
10225 { (exit 1); exit 1; }; }
10226fi
10227
10228rm -f conftest$ac_cv_exeext
10229echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10230echo "${ECHO_T}$ac_cv_exeext" >&6
10231
10232rm -f conftest.$ac_ext
10233EXEEXT=$ac_cv_exeext
10234ac_exeext=$EXEEXT
10235echo "$as_me:$LINENO: checking for suffix of object files" >&5
10236echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10237if test "${ac_cv_objext+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 cat >conftest.$ac_ext <<_ACEOF
10241#line $LINENO "configure"
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247
10248int
10249main ()
10250{
f09359cf 10251
e6cc62c6
VS
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256rm -f conftest.o conftest.obj
10257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10263 case $ac_file in
10264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10266 break;;
10267 esac
10268done
a0b9e27f 10269else
e6cc62c6
VS
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10274See \`config.log' for more details." >&5
10275echo "$as_me: error: cannot compute suffix of object files: cannot compile
10276See \`config.log' for more details." >&2;}
10277 { (exit 1); exit 1; }; }
a0b9e27f 10278fi
247f5006 10279
e6cc62c6
VS
10280rm -f conftest.$ac_cv_objext conftest.$ac_ext
10281fi
10282echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10283echo "${ECHO_T}$ac_cv_objext" >&6
10284OBJEXT=$ac_cv_objext
10285ac_objext=$OBJEXT
10286echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10287echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10288if test "${ac_cv_c_compiler_gnu+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10290else
e6cc62c6
VS
10291 cat >conftest.$ac_ext <<_ACEOF
10292#line $LINENO "configure"
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298
10299int
10300main ()
10301{
10302#ifndef __GNUC__
10303 choke me
10304#endif
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext
10311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_compiler_gnu=yes
10323else
10324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327ac_compiler_gnu=no
10328fi
10329rm -f conftest.$ac_objext conftest.$ac_ext
10330ac_cv_c_compiler_gnu=$ac_compiler_gnu
10331
10332fi
10333echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10334echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10335GCC=`test $ac_compiler_gnu = yes && echo yes`
10336ac_test_CFLAGS=${CFLAGS+set}
10337ac_save_CFLAGS=$CFLAGS
10338CFLAGS="-g"
10339echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10340echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10341if test "${ac_cv_prog_cc_g+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344 cat >conftest.$ac_ext <<_ACEOF
10345#line $LINENO "configure"
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
10351
10352int
10353main ()
10354{
10355
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360rm -f conftest.$ac_objext
10361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10362 (eval $ac_compile) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -s conftest.$ac_objext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10f2d63a
VZ
10372 ac_cv_prog_cc_g=yes
10373else
e6cc62c6
VS
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10376
e6cc62c6 10377ac_cv_prog_cc_g=no
10f2d63a 10378fi
e6cc62c6
VS
10379rm -f conftest.$ac_objext conftest.$ac_ext
10380fi
10381echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10382echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10383if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10384 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10385elif test $ac_cv_prog_cc_g = yes; then
10386 if test "$GCC" = yes; then
10f2d63a
VZ
10387 CFLAGS="-g -O2"
10388 else
f09359cf 10389 CFLAGS="-g"
10f2d63a 10390 fi
5c0a20c3 10391else
f09359cf
VS
10392 if test "$GCC" = yes; then
10393 CFLAGS="-O2"
10394 else
10395 CFLAGS=
10396 fi
10f2d63a 10397fi
e6cc62c6
VS
10398echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10399echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10400if test "${ac_cv_prog_cc_stdc+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403 ac_cv_prog_cc_stdc=no
10404ac_save_CC=$CC
10405cat >conftest.$ac_ext <<_ACEOF
10406#line $LINENO "configure"
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412#include <stdarg.h>
10413#include <stdio.h>
10414#include <sys/types.h>
10415#include <sys/stat.h>
10416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10417struct buf { int x; };
10418FILE * (*rcsopen) (struct buf *, struct stat *, int);
10419static char *e (p, i)
10420 char **p;
10421 int i;
10422{
10423 return p[i];
10424}
10425static char *f (char * (*g) (char **, int), char **p, ...)
10426{
10427 char *s;
10428 va_list v;
10429 va_start (v,p);
10430 s = g (p, va_arg (v,int));
10431 va_end (v);
10432 return s;
10433}
10434int test (int i, double x);
10435struct s1 {int (*f) (int a);};
10436struct s2 {int (*f) (double a);};
10437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10438int argc;
10439char **argv;
10440int
10441main ()
10442{
10443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10444 ;
10445 return 0;
10446}
10447_ACEOF
10448# Don't try gcc -ansi; that turns off useful extensions and
10449# breaks some systems' header files.
10450# AIX -qlanglvl=ansi
10451# Ultrix and OSF/1 -std1
10452# HP-UX 10.20 and later -Ae
10453# HP-UX older versions -Aa -D_HPUX_SOURCE
10454# SVR4 -Xc -D__EXTENSIONS__
10455for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10456do
10457 CC="$ac_save_CC $ac_arg"
10458 rm -f conftest.$ac_objext
10459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460 (eval $ac_compile) 2>&5
10461 ac_status=$?
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -s conftest.$ac_objext'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 ac_cv_prog_cc_stdc=$ac_arg
10471break
10472else
10473 echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476fi
10477rm -f conftest.$ac_objext
10478done
10479rm -f conftest.$ac_ext conftest.$ac_objext
10480CC=$ac_save_CC
10481
10482fi
10483
10484case "x$ac_cv_prog_cc_stdc" in
10485 x|xno)
10486 echo "$as_me:$LINENO: result: none needed" >&5
10487echo "${ECHO_T}none needed" >&6 ;;
10488 *)
10489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10490echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10491 CC="$CC $ac_cv_prog_cc_stdc" ;;
10492esac
10493
10494# Some people use a C++ compiler to compile C. Since we use `exit',
10495# in C++ we need to declare it. In case someone uses the same compiler
10496# for both compiling C and C++ we need to have the C++ compiler decide
10497# the declaration of exit, since it's the most demanding environment.
10498cat >conftest.$ac_ext <<_ACEOF
10499#ifndef __cplusplus
10500 choke me
10501#endif
10502_ACEOF
10503rm -f conftest.$ac_objext
10504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 for ac_declaration in \
6f628073
VS
10516 ''\
10517 '#include <stdlib.h>' \
e6cc62c6
VS
10518 'extern "C" void std::exit (int) throw (); using std::exit;' \
10519 'extern "C" void std::exit (int); using std::exit;' \
10520 'extern "C" void exit (int) throw ();' \
10521 'extern "C" void exit (int);' \
10522 'void exit (int);'
10523do
10524 cat >conftest.$ac_ext <<_ACEOF
10525#line $LINENO "configure"
10526/* confdefs.h. */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h. */
71e83a03 10531#include <stdlib.h>
6f628073 10532$ac_declaration
e6cc62c6
VS
10533int
10534main ()
10535{
10536exit (42);
10537 ;
10538 return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext
10542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -s conftest.$ac_objext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 :
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558continue
10559fi
10560rm -f conftest.$ac_objext conftest.$ac_ext
10561 cat >conftest.$ac_ext <<_ACEOF
10562#line $LINENO "configure"
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
10568$ac_declaration
10569int
10570main ()
10571{
10572exit (42);
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 break
10590else
10591 echo "$as_me: failed program was:" >&5
10592sed 's/^/| /' conftest.$ac_ext >&5
10593
10594fi
10595rm -f conftest.$ac_objext conftest.$ac_ext
10596done
10597rm -f conftest*
10598if test -n "$ac_declaration"; then
10599 echo '#ifdef __cplusplus' >>confdefs.h
10600 echo $ac_declaration >>confdefs.h
10601 echo '#endif' >>confdefs.h
10602fi
10603
10604else
10605 echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608fi
10609rm -f conftest.$ac_objext conftest.$ac_ext
10610ac_ext=c
10611ac_cpp='$CPP $CPPFLAGS'
10612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10615
10616
e6cc62c6
VS
10617
10618ac_ext=c
10619ac_cpp='$CPP $CPPFLAGS'
10620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10624echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10625# On Suns, sometimes $CPP names a directory.
10626if test -n "$CPP" && test -d "$CPP"; then
10627 CPP=
10628fi
10629if test -z "$CPP"; then
e6cc62c6
VS
10630 if test "${ac_cv_prog_CPP+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 # Double quotes because CPP needs to be expanded
10634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10635 do
10636 ac_preproc_ok=false
10637for ac_c_preproc_warn_flag in '' yes
10638do
10639 # Use a header file that comes with gcc, so configuring glibc
10640 # with a fresh cross-compiler works.
10641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 # <limits.h> exists even on freestanding compilers.
10f2d63a 10643 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10644 # not just through cpp. "Syntax error" is here to catch this case.
10645 cat >conftest.$ac_ext <<_ACEOF
10646#line $LINENO "configure"
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h. */
10652#ifdef __STDC__
10653# include <limits.h>
10654#else
10655# include <assert.h>
10656#endif
10657 Syntax error
10658_ACEOF
10659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } >/dev/null; then
10667 if test -s conftest.err; then
10668 ac_cpp_err=$ac_c_preproc_warn_flag
10669 else
10670 ac_cpp_err=
10671 fi
10f2d63a 10672else
e6cc62c6
VS
10673 ac_cpp_err=yes
10674fi
10675if test -z "$ac_cpp_err"; then
a0b9e27f 10676 :
247f5006 10677else
e6cc62c6
VS
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 # Broken: fails on valid input.
10682continue
10683fi
10684rm -f conftest.err conftest.$ac_ext
10685
10686 # OK, works on sane cases. Now check whether non-existent headers
10687 # can be detected and how.
10688 cat >conftest.$ac_ext <<_ACEOF
10689#line $LINENO "configure"
10690/* confdefs.h. */
10691_ACEOF
10692cat confdefs.h >>conftest.$ac_ext
10693cat >>conftest.$ac_ext <<_ACEOF
10694/* end confdefs.h. */
10695#include <ac_nonexistent.h>
10696_ACEOF
10697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } >/dev/null; then
10705 if test -s conftest.err; then
10706 ac_cpp_err=$ac_c_preproc_warn_flag
10707 else
10708 ac_cpp_err=
10709 fi
10f2d63a 10710else
e6cc62c6 10711 ac_cpp_err=yes
579d8138 10712fi
e6cc62c6
VS
10713if test -z "$ac_cpp_err"; then
10714 # Broken: success on invalid input.
10715continue
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 # Passes both tests.
10721ac_preproc_ok=:
10722break
52127426 10723fi
e6cc62c6
VS
10724rm -f conftest.err conftest.$ac_ext
10725
10726done
10727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728rm -f conftest.err conftest.$ac_ext
10729if $ac_preproc_ok; then
10730 break
8284b0c5 10731fi
e6cc62c6
VS
10732
10733 done
10734 ac_cv_prog_CPP=$CPP
10735
10736fi
10737 CPP=$ac_cv_prog_CPP
10738else
10739 ac_cv_prog_CPP=$CPP
10740fi
10741echo "$as_me:$LINENO: result: $CPP" >&5
10742echo "${ECHO_T}$CPP" >&6
10743ac_preproc_ok=false
10744for ac_c_preproc_warn_flag in '' yes
10745do
10746 # Use a header file that comes with gcc, so configuring glibc
10747 # with a fresh cross-compiler works.
10748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 # <limits.h> exists even on freestanding compilers.
10750 # On the NeXT, cc -E runs the code through the compiler's parser,
10751 # not just through cpp. "Syntax error" is here to catch this case.
10752 cat >conftest.$ac_ext <<_ACEOF
10753#line $LINENO "configure"
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759#ifdef __STDC__
10760# include <limits.h>
10761#else
10762# include <assert.h>
10763#endif
10764 Syntax error
10765_ACEOF
10766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null; then
10774 if test -s conftest.err; then
10775 ac_cpp_err=$ac_c_preproc_warn_flag
10776 else
10777 ac_cpp_err=
10778 fi
10779else
10780 ac_cpp_err=yes
10781fi
10782if test -z "$ac_cpp_err"; then
10783 :
10784else
10785 echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 # Broken: fails on valid input.
10789continue
10790fi
10791rm -f conftest.err conftest.$ac_ext
10792
10793 # OK, works on sane cases. Now check whether non-existent headers
10794 # can be detected and how.
10795 cat >conftest.$ac_ext <<_ACEOF
10796#line $LINENO "configure"
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802#include <ac_nonexistent.h>
10803_ACEOF
10804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } >/dev/null; then
10812 if test -s conftest.err; then
10813 ac_cpp_err=$ac_c_preproc_warn_flag
10814 else
10815 ac_cpp_err=
10816 fi
10817else
10818 ac_cpp_err=yes
10819fi
10820if test -z "$ac_cpp_err"; then
10821 # Broken: success on invalid input.
10822continue
10823else
10824 echo "$as_me: failed program was:" >&5
10825sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 # Passes both tests.
10828ac_preproc_ok=:
10829break
a0b9e27f 10830fi
e6cc62c6
VS
10831rm -f conftest.err conftest.$ac_ext
10832
10833done
10834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10835rm -f conftest.err conftest.$ac_ext
10836if $ac_preproc_ok; then
10837 :
10838else
10839 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10840See \`config.log' for more details." >&5
10841echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10842See \`config.log' for more details." >&2;}
10843 { (exit 1); exit 1; }; }
10844fi
10845
10846ac_ext=c
10847ac_cpp='$CPP $CPPFLAGS'
10848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851
10852
10853echo "$as_me:$LINENO: checking for egrep" >&5
10854echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10855if test "${ac_cv_prog_egrep+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10857else
e6cc62c6
VS
10858 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10859 then ac_cv_prog_egrep='grep -E'
10860 else ac_cv_prog_egrep='egrep'
10861 fi
10f2d63a 10862fi
e6cc62c6
VS
10863echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10864echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10865 EGREP=$ac_cv_prog_egrep
10866
10f2d63a 10867
e6cc62c6
VS
10868if test $ac_cv_c_compiler_gnu = yes; then
10869 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10870echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10871if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10873else
10874 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10875 cat >conftest.$ac_ext <<_ACEOF
10876#line $LINENO "configure"
10877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
10f2d63a
VZ
10882#include <sgtty.h>
10883Autoconf TIOCGETP
e6cc62c6 10884_ACEOF
10f2d63a 10885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10886 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10887 ac_cv_prog_gcc_traditional=yes
10888else
10f2d63a
VZ
10889 ac_cv_prog_gcc_traditional=no
10890fi
10891rm -f conftest*
10892
8284b0c5 10893
10f2d63a 10894 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10895 cat >conftest.$ac_ext <<_ACEOF
10896#line $LINENO "configure"
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10f2d63a
VZ
10902#include <termio.h>
10903Autoconf TCGETA
e6cc62c6 10904_ACEOF
10f2d63a 10905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10906 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10907 ac_cv_prog_gcc_traditional=yes
10908fi
10909rm -f conftest*
10910
10911 fi
10912fi
e6cc62c6
VS
10913echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10914echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10915 if test $ac_cv_prog_gcc_traditional = yes; then
10916 CC="$CC -traditional"
10917 fi
10918fi
10919
8284b0c5
MB
10920
10921
e6cc62c6
VS
10922
10923ac_ext=cc
1e487827 10924ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10928
698dcdb6 10929
ec603395 10930CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10931ac_ext=cc
10932ac_cpp='$CXXCPP $CPPFLAGS'
10933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10936if test -n "$ac_tool_prefix"; then
10937 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10938 do
10939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10941echo "$as_me:$LINENO: checking for $ac_word" >&5
10942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10943if test "${ac_cv_prog_CXX+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10945else
10946 if test -n "$CXX"; then
10947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10948else
e6cc62c6
VS
10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950for as_dir in $PATH
10951do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 break 2
10959 fi
10960done
10961done
10962
10f2d63a
VZ
10963fi
10964fi
e6cc62c6 10965CXX=$ac_cv_prog_CXX
10f2d63a 10966if test -n "$CXX"; then
e6cc62c6
VS
10967 echo "$as_me:$LINENO: result: $CXX" >&5
10968echo "${ECHO_T}$CXX" >&6
10f2d63a 10969else
e6cc62c6
VS
10970 echo "$as_me:$LINENO: result: no" >&5
10971echo "${ECHO_T}no" >&6
10f2d63a
VZ
10972fi
10973
e6cc62c6
VS
10974 test -n "$CXX" && break
10975 done
10976fi
10977if test -z "$CXX"; then
10978 ac_ct_CXX=$CXX
10979 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10980do
10981 # Extract the first word of "$ac_prog", so it can be a program name with args.
10982set dummy $ac_prog; ac_word=$2
10983echo "$as_me:$LINENO: checking for $ac_word" >&5
10984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10985if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 if test -n "$ac_ct_CXX"; then
10989 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10990else
10991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992for as_dir in $PATH
10993do
10994 IFS=$as_save_IFS
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10998 ac_cv_prog_ac_ct_CXX="$ac_prog"
10999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 break 2
11001 fi
11002done
10f2d63a 11003done
a0b9e27f 11004
8284b0c5 11005fi
a0b9e27f 11006fi
e6cc62c6
VS
11007ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11008if test -n "$ac_ct_CXX"; then
11009 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11010echo "${ECHO_T}$ac_ct_CXX" >&6
11011else
11012 echo "$as_me:$LINENO: result: no" >&5
11013echo "${ECHO_T}no" >&6
a0b9e27f 11014fi
10f2d63a 11015
e6cc62c6
VS
11016 test -n "$ac_ct_CXX" && break
11017done
11018test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11019
11020 CXX=$ac_ct_CXX
11021fi
11022
11023
11024# Provide some information about the compiler.
11025echo "$as_me:$LINENO:" \
11026 "checking for C++ compiler version" >&5
11027ac_compiler=`set X $ac_compile; echo $2`
11028{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11029 (eval $ac_compiler --version </dev/null >&5) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }
11033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11034 (eval $ac_compiler -v </dev/null >&5) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }
11038{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11039 (eval $ac_compiler -V </dev/null >&5) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }
11043
11044echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11045echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11046if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 cat >conftest.$ac_ext <<_ACEOF
11050#line $LINENO "configure"
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056
11057int
11058main ()
11059{
11060#ifndef __GNUC__
11061 choke me
11062#endif
10f2d63a 11063
e6cc62c6
VS
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068rm -f conftest.$ac_objext
11069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11070 (eval $ac_compile) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -s conftest.$ac_objext'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_compiler_gnu=yes
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085ac_compiler_gnu=no
11086fi
11087rm -f conftest.$ac_objext conftest.$ac_ext
11088ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11089
11090fi
11091echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11092echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11093GXX=`test $ac_compiler_gnu = yes && echo yes`
11094ac_test_CXXFLAGS=${CXXFLAGS+set}
11095ac_save_CXXFLAGS=$CXXFLAGS
11096CXXFLAGS="-g"
11097echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11098echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11099if test "${ac_cv_prog_cxx_g+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101else
11102 cat >conftest.$ac_ext <<_ACEOF
11103#line $LINENO "configure"
11104/* confdefs.h. */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h. */
11109
11110int
11111main ()
11112{
f09359cf 11113
e6cc62c6
VS
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118rm -f conftest.$ac_objext
11119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11120 (eval $ac_compile) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
10f2d63a
VZ
11130 ac_cv_prog_cxx_g=yes
11131else
e6cc62c6
VS
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11134
e6cc62c6 11135ac_cv_prog_cxx_g=no
10f2d63a 11136fi
e6cc62c6
VS
11137rm -f conftest.$ac_objext conftest.$ac_ext
11138fi
11139echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11140echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11141if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11142 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11143elif test $ac_cv_prog_cxx_g = yes; then
11144 if test "$GXX" = yes; then
10f2d63a
VZ
11145 CXXFLAGS="-g -O2"
11146 else
f09359cf 11147 CXXFLAGS="-g"
10f2d63a 11148 fi
5c0a20c3 11149else
f09359cf
VS
11150 if test "$GXX" = yes; then
11151 CXXFLAGS="-O2"
11152 else
11153 CXXFLAGS=
11154 fi
10f2d63a 11155fi
e6cc62c6 11156for ac_declaration in \
6f628073
VS
11157 ''\
11158 '#include <stdlib.h>' \
e6cc62c6
VS
11159 'extern "C" void std::exit (int) throw (); using std::exit;' \
11160 'extern "C" void std::exit (int); using std::exit;' \
11161 'extern "C" void exit (int) throw ();' \
11162 'extern "C" void exit (int);' \
11163 'void exit (int);'
11164do
11165 cat >conftest.$ac_ext <<_ACEOF
11166#line $LINENO "configure"
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h. */
71e83a03 11172#include <stdlib.h>
6f628073 11173$ac_declaration
e6cc62c6
VS
11174int
11175main ()
11176{
11177exit (42);
11178 ;
11179 return 0;
11180}
11181_ACEOF
11182rm -f conftest.$ac_objext
11183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11184 (eval $ac_compile) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 :
11195else
11196 echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199continue
11200fi
11201rm -f conftest.$ac_objext conftest.$ac_ext
11202 cat >conftest.$ac_ext <<_ACEOF
11203#line $LINENO "configure"
11204/* confdefs.h. */
11205_ACEOF
11206cat confdefs.h >>conftest.$ac_ext
11207cat >>conftest.$ac_ext <<_ACEOF
11208/* end confdefs.h. */
11209$ac_declaration
11210int
11211main ()
11212{
11213exit (42);
11214 ;
11215 return 0;
11216}
11217_ACEOF
11218rm -f conftest.$ac_objext
11219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220 (eval $ac_compile) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 break
11231else
11232 echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235fi
11236rm -f conftest.$ac_objext conftest.$ac_ext
11237done
11238rm -f conftest*
11239if test -n "$ac_declaration"; then
11240 echo '#ifdef __cplusplus' >>confdefs.h
11241 echo $ac_declaration >>confdefs.h
11242 echo '#endif' >>confdefs.h
11243fi
11244
11245ac_ext=cc
11246ac_cpp='$CXXCPP $CPPFLAGS'
11247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11250
11251
10f2d63a 11252ac_ext=c
10f2d63a 11253ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11256ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11257
11258
e6cc62c6
VS
11259if test -n "$ac_tool_prefix"; then
11260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11261set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11262echo "$as_me:$LINENO: checking for $ac_word" >&5
11263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11264if test "${ac_cv_prog_RANLIB+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11266else
11267 if test -n "$RANLIB"; then
11268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11269else
e6cc62c6
VS
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281done
11282done
11283
10f2d63a
VZ
11284fi
11285fi
e6cc62c6 11286RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11287if test -n "$RANLIB"; then
e6cc62c6
VS
11288 echo "$as_me:$LINENO: result: $RANLIB" >&5
11289echo "${ECHO_T}$RANLIB" >&6
11290else
11291 echo "$as_me:$LINENO: result: no" >&5
11292echo "${ECHO_T}no" >&6
11293fi
11294
11295fi
11296if test -z "$ac_cv_prog_RANLIB"; then
11297 ac_ct_RANLIB=$RANLIB
11298 # Extract the first word of "ranlib", so it can be a program name with args.
11299set dummy ranlib; ac_word=$2
11300echo "$as_me:$LINENO: checking for $ac_word" >&5
11301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11302if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11304else
e6cc62c6
VS
11305 if test -n "$ac_ct_RANLIB"; then
11306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11307else
11308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309for as_dir in $PATH
11310do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_ac_ct_RANLIB="ranlib"
11316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 break 2
11318 fi
11319done
11320done
11321
11322 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11323fi
11324fi
11325ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11326if test -n "$ac_ct_RANLIB"; then
11327 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11328echo "${ECHO_T}$ac_ct_RANLIB" >&6
11329else
11330 echo "$as_me:$LINENO: result: no" >&5
11331echo "${ECHO_T}no" >&6
11332fi
11333
11334 RANLIB=$ac_ct_RANLIB
11335else
11336 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11337fi
11338
10f2d63a
VZ
11339
11340# Extract the first word of "ar", so it can be a program name with args.
11341set dummy ar; ac_word=$2
e6cc62c6
VS
11342echo "$as_me:$LINENO: checking for $ac_word" >&5
11343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11344if test "${ac_cv_prog_AR+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11346else
11347 if test -n "$AR"; then
11348 ac_cv_prog_AR="$AR" # Let the user override the test.
11349else
e6cc62c6
VS
11350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357 ac_cv_prog_AR="ar"
11358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11360 fi
11361done
11362done
11363
10f2d63a
VZ
11364 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11365fi
11366fi
e6cc62c6 11367AR=$ac_cv_prog_AR
10f2d63a 11368if test -n "$AR"; then
e6cc62c6
VS
11369 echo "$as_me:$LINENO: result: $AR" >&5
11370echo "${ECHO_T}$AR" >&6
10f2d63a 11371else
e6cc62c6
VS
11372 echo "$as_me:$LINENO: result: no" >&5
11373echo "${ECHO_T}no" >&6
10f2d63a
VZ
11374fi
11375
8284b0c5 11376
6054113a 11377# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11378# so one script is as good as another. But avoid the broken or
11379# incompatible versions:
11380# SysV /etc/install, /usr/sbin/install
11381# SunOS /usr/etc/install
11382# IRIX /sbin/install
11383# AIX /bin/install
e6cc62c6 11384# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11388# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11389echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11390echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11391if test -z "$INSTALL"; then
e6cc62c6
VS
11392if test "${ac_cv_path_install+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 # Account for people who put trailing slashes in PATH elements.
11401case $as_dir/ in
11402 ./ | .// | /cC/* | \
11403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11404 /usr/ucb/* ) ;;
11405 *)
11406 # OSF1 and SCO ODT 3.0 have their own names for install.
11407 # Don't use installbsd from OSF since it installs stuff as root
11408 # by default.
11409 for ac_prog in ginstall scoinst install; do
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11412 if test $ac_prog = install &&
11413 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11414 # AIX install. It has an incompatible calling convention.
11415 :
11416 elif test $ac_prog = install &&
11417 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11418 # program-specific install script used by HP pwplus--don't use.
11419 :
11420 else
11421 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11422 break 3
11423 fi
11424 fi
10f2d63a 11425 done
e6cc62c6
VS
11426 done
11427 ;;
11428esac
11429done
11430
10f2d63a
VZ
11431
11432fi
11433 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11434 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11435 else
11436 # As a last resort, use the slow shell script. We don't cache a
11437 # path for INSTALL within a source directory, because that will
11438 # break other packages using the cache if that directory is
11439 # removed, or if the path is relative.
e6cc62c6 11440 INSTALL=$ac_install_sh
10f2d63a
VZ
11441 fi
11442fi
e6cc62c6
VS
11443echo "$as_me:$LINENO: result: $INSTALL" >&5
11444echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11445
11446# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11447# It thinks the first close brace ends the variable substitution.
11448test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11449
e6cc62c6 11450test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11451
10f2d63a
VZ
11452test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11453
8284b0c5 11454
1d1b75ac
VZ
11455case ${INSTALL} in
11456 /* ) # Absolute
11457 ;;
4f5a7f74
VZ
11458 ?:* ) # Drive letter, considered as absolute.
11459 ;;
3bd8fb5f 11460 *)
1d1b75ac
VZ
11461 INSTALL=`pwd`/${INSTALL} ;;
11462esac
11463
4f5a7f74
VZ
11464case ${host} in
11465 *-hp-hpux* )
11466 INSTALL_DIR="mkdir"
11467 ;;
11468
11469 *) INSTALL_DIR="$INSTALL -d"
11470 ;;
11471esac
11472
8284b0c5 11473
6054113a
GD
11474case "${host}" in
11475
b5853384 11476 powerpc-*-darwin* )
eb99ae0b
GD
11477 INSTALL_PROGRAM="cp -fp"
11478 INSTALL_DATA="cp -fp"
6054113a
GD
11479 ;;
11480 *)
11481 ;;
d6853540 11482esac
698dcdb6 11483
10f2d63a
VZ
11484# Extract the first word of "strip", so it can be a program name with args.
11485set dummy strip; ac_word=$2
e6cc62c6
VS
11486echo "$as_me:$LINENO: checking for $ac_word" >&5
11487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11488if test "${ac_cv_prog_STRIP+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11490else
11491 if test -n "$STRIP"; then
11492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11493else
e6cc62c6
VS
11494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11501 ac_cv_prog_STRIP="strip"
11502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505done
11506done
11507
10f2d63a
VZ
11508 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11509fi
11510fi
e6cc62c6 11511STRIP=$ac_cv_prog_STRIP
10f2d63a 11512if test -n "$STRIP"; then
e6cc62c6
VS
11513 echo "$as_me:$LINENO: result: $STRIP" >&5
11514echo "${ECHO_T}$STRIP" >&6
10f2d63a 11515else
e6cc62c6
VS
11516 echo "$as_me:$LINENO: result: no" >&5
11517echo "${ECHO_T}no" >&6
10f2d63a
VZ
11518fi
11519
5c6fa7d2 11520
e6cc62c6
VS
11521echo "$as_me:$LINENO: checking if make is GNU make" >&5
11522echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11523if test "${wx_cv_prog_makeisgnu+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11525else
e6cc62c6 11526
414eab6d 11527 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11528 egrep -s GNU > /dev/null); then
414eab6d
VZ
11529 wx_cv_prog_makeisgnu="yes"
11530 else
11531 wx_cv_prog_makeisgnu="no"
11532 fi
11533
11534fi
e6cc62c6
VS
11535echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11536echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11537
11538if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11539 IF_GNU_MAKE=""
11540else
11541 IF_GNU_MAKE="#"
11542fi
11543
8284b0c5
MB
11544
11545
414eab6d 11546if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11547echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11548echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11549if test "${wx_cv_prog_makevpath+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11551else
e6cc62c6 11552
10f2d63a
VZ
11553cat - << EOF > confMake
11554check : file
11555 cp \$? \$@
11556 cp \$? final_file
11557EOF
11558
11559if test ! -d sub ; then
11560 mkdir sub
11561fi
11562echo dummy > sub/file
f6bcfd97 11563${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11564RESULT=$?
11565rm -f sub/file check final_file confMake
11566rmdir sub
11567if test "$RESULT" = 0; then
04e7a216 11568 wx_cv_prog_makevpath="yes"
10f2d63a 11569else
04e7a216
VZ
11570 wx_cv_prog_makevpath="no"
11571fi
11572
11573fi
e6cc62c6
VS
11574echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11575echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11576
11577if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11578{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11579You need a make-utility that is able to use the variable
11580VPATH correctly.
11581If your version of make does not support VPATH correctly,
11582please install GNU-make (possibly as gmake), and start
11583configure with the following command:
11584export MAKE=gmake; ./configure for sh-type shells
11585setenv MAKE gmake; ./configure for csh-type shells
11586Also please do remember to use gmake in this case every time
11587you are trying to compile.
e6cc62c6
VS
11588" >&5
11589echo "$as_me: error:
11590You need a make-utility that is able to use the variable
11591VPATH correctly.
11592If your version of make does not support VPATH correctly,
11593please install GNU-make (possibly as gmake), and start
11594configure with the following command:
11595export MAKE=gmake; ./configure for sh-type shells
11596setenv MAKE gmake; ./configure for csh-type shells
11597Also please do remember to use gmake in this case every time
11598you are trying to compile.
11599" >&2;}
11600 { (exit 1); exit 1; }; }
11601fi fi
10f2d63a
VZ
11602for ac_prog in 'bison -y' byacc
11603do
e6cc62c6 11604 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11605set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11606echo "$as_me:$LINENO: checking for $ac_word" >&5
11607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11608if test "${ac_cv_prog_YACC+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11610else
11611 if test -n "$YACC"; then
11612 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11613else
e6cc62c6
VS
11614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615for as_dir in $PATH
11616do
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621 ac_cv_prog_YACC="$ac_prog"
11622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 break 2
11624 fi
11625done
11626done
11627
10f2d63a
VZ
11628fi
11629fi
e6cc62c6 11630YACC=$ac_cv_prog_YACC
10f2d63a 11631if test -n "$YACC"; then
e6cc62c6
VS
11632 echo "$as_me:$LINENO: result: $YACC" >&5
11633echo "${ECHO_T}$YACC" >&6
10f2d63a 11634else
e6cc62c6
VS
11635 echo "$as_me:$LINENO: result: no" >&5
11636echo "${ECHO_T}no" >&6
10f2d63a
VZ
11637fi
11638
e6cc62c6 11639 test -n "$YACC" && break
10f2d63a
VZ
11640done
11641test -n "$YACC" || YACC="yacc"
11642
8284b0c5 11643
e6cc62c6
VS
11644for ac_prog in flex lex
11645do
11646 # Extract the first word of "$ac_prog", so it can be a program name with args.
11647set dummy $ac_prog; ac_word=$2
11648echo "$as_me:$LINENO: checking for $ac_word" >&5
11649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11650if test "${ac_cv_prog_LEX+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11652else
11653 if test -n "$LEX"; then
11654 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11655else
e6cc62c6
VS
11656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_prog_LEX="$ac_prog"
11664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11666 fi
11667done
11668done
11669
10f2d63a
VZ
11670fi
11671fi
e6cc62c6 11672LEX=$ac_cv_prog_LEX
10f2d63a 11673if test -n "$LEX"; then
e6cc62c6
VS
11674 echo "$as_me:$LINENO: result: $LEX" >&5
11675echo "${ECHO_T}$LEX" >&6
10f2d63a 11676else
e6cc62c6
VS
11677 echo "$as_me:$LINENO: result: no" >&5
11678echo "${ECHO_T}no" >&6
10f2d63a
VZ
11679fi
11680
e6cc62c6
VS
11681 test -n "$LEX" && break
11682done
11683test -n "$LEX" || LEX=":"
11684
10f2d63a
VZ
11685if test -z "$LEXLIB"
11686then
e6cc62c6
VS
11687 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11688echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11689if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 ac_check_lib_save_LIBS=$LIBS
11693LIBS="-lfl $LIBS"
11694cat >conftest.$ac_ext <<_ACEOF
11695#line $LINENO "configure"
11696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
11701
11702/* Override any gcc2 internal prototype to avoid an error. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706/* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708char yywrap ();
11709int
11710main ()
11711{
11712yywrap ();
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_fl_yywrap=yes
11730else
11731 echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734ac_cv_lib_fl_yywrap=no
11735fi
11736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737LIBS=$ac_check_lib_save_LIBS
11738fi
11739echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11740echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11741if test $ac_cv_lib_fl_yywrap = yes; then
11742 LEXLIB="-lfl"
11743else
11744 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11745echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11746if test "${ac_cv_lib_l_yywrap+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748else
11749 ac_check_lib_save_LIBS=$LIBS
11750LIBS="-ll $LIBS"
11751cat >conftest.$ac_ext <<_ACEOF
11752#line $LINENO "configure"
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758
247f5006 11759/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11760#ifdef __cplusplus
11761extern "C"
11762#endif
247f5006 11763/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11764 builtin and then its argument prototype would still apply. */
11765char yywrap ();
11766int
11767main ()
11768{
11769yywrap ();
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext conftest$ac_exeext
11775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_cv_lib_l_yywrap=yes
11787else
11788 echo "$as_me: failed program was:" >&5
11789sed 's/^/| /' conftest.$ac_ext >&5
11790
11791ac_cv_lib_l_yywrap=no
11792fi
11793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11794LIBS=$ac_check_lib_save_LIBS
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11797echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11798if test $ac_cv_lib_l_yywrap = yes; then
11799 LEXLIB="-ll"
11800fi
10f2d63a 11801
10f2d63a 11802fi
8284b0c5 11803
10f2d63a 11804fi
e6cc62c6
VS
11805
11806if test "x$LEX" != "x:"; then
11807 echo "$as_me:$LINENO: checking lex output file root" >&5
11808echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11809if test "${ac_cv_prog_lex_root+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811else
11812 # The minimal lex program is just a single line: %%. But some broken lexes
11813# (Solaris, I think it was) want two %% lines, so accommodate them.
11814cat >conftest.l <<_ACEOF
11815%%
11816%%
11817_ACEOF
11818{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11819 (eval $LEX conftest.l) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }
11823if test -f lex.yy.c; then
11824 ac_cv_prog_lex_root=lex.yy
11825elif test -f lexyy.c; then
11826 ac_cv_prog_lex_root=lexyy
8284b0c5 11827else
e6cc62c6
VS
11828 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11829echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11830 { (exit 1); exit 1; }; }
10f2d63a 11831fi
a0b9e27f 11832fi
e6cc62c6
VS
11833echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11834echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11835rm -f conftest.l
11836LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11837
e6cc62c6
VS
11838echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11839echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11840if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11842else
e6cc62c6
VS
11843 # POSIX says lex can declare yytext either as a pointer or an array; the
11844# default is implementation-dependent. Figure out which it is, since
11845# not all implementations provide the %pointer and %array declarations.
11846ac_cv_prog_lex_yytext_pointer=no
11847echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11848ac_save_LIBS=$LIBS
11849LIBS="$LIBS $LEXLIB"
11850cat >conftest.$ac_ext <<_ACEOF
11851`cat $LEX_OUTPUT_ROOT.c`
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11866else
e6cc62c6
VS
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
10f2d63a 11870fi
e6cc62c6
VS
11871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11872LIBS=$ac_save_LIBS
11873rm -f "${LEX_OUTPUT_ROOT}.c"
11874
11875fi
11876echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11877echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11878if test $ac_cv_prog_lex_yytext_pointer = yes; then
11879
11880cat >>confdefs.h <<\_ACEOF
11881#define YYTEXT_POINTER 1
11882_ACEOF
11883
a0b9e27f 11884fi
e6cc62c6
VS
11885
11886fi
11887
11888echo "$as_me:$LINENO: checking whether ln -s works" >&5
11889echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11890LN_S=$as_ln_s
11891if test "$LN_S" = "ln -s"; then
11892 echo "$as_me:$LINENO: result: yes" >&5
11893echo "${ECHO_T}yes" >&6
10f2d63a 11894else
e6cc62c6
VS
11895 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11896echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11897fi
5c6fa7d2 11898
247f5006 11899
2b5f62a0
VZ
11900case "${host}" in
11901 *-pc-os2_emx | *-pc-os2-emx )
11902 LIBS="$LIBS -lstdcpp"
11903 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11904 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11905echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11906if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11908else
e6cc62c6 11909 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11910LIBS="-lcExt $LIBS"
e6cc62c6
VS
11911cat >conftest.$ac_ext <<_ACEOF
11912#line $LINENO "configure"
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918
2b5f62a0 11919/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11920#ifdef __cplusplus
11921extern "C"
11922#endif
2b5f62a0 11923/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11924 builtin and then its argument prototype would still apply. */
11925char drand48 ();
11926int
11927main ()
11928{
11929drand48 ();
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext conftest$ac_exeext
11935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_lib_cExt_drand48=yes
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951ac_cv_lib_cExt_drand48=no
11952fi
11953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954LIBS=$ac_check_lib_save_LIBS
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11957echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11958if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11959 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11960fi
11961
11962 else
11963 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11964 fi
11965 ;;
11966esac
11967
a0b9e27f 11968
01aa5863
VS
11969if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11970 echo "$as_me:$LINENO: checking for strings.h" >&5
11971echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11972if test "${ac_cv_header_strings_h+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 ac_cv_header_strings_h=no
11976fi
11977echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11978echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11979 if test "$ac_cv_header_strings_h" = "no"; then
11980 echo "$as_me:$LINENO: result: forced no into cache" >&5
11981echo "${ECHO_T}forced no into cache" >&6
11982 else
11983 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11984echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11985 fi
11986fi
11987echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11988echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11989if test "${ac_cv_header_stdc+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 cat >conftest.$ac_ext <<_ACEOF
11993#line $LINENO "configure"
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999#include <stdlib.h>
12000#include <stdarg.h>
12001#include <string.h>
12002#include <float.h>
247f5006 12003
e6cc62c6
VS
12004int
12005main ()
12006{
90dd450c 12007
e6cc62c6
VS
12008 ;
12009 return 0;
12010}
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_header_stdc=yes
8284b0c5 12025else
e6cc62c6
VS
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029ac_cv_header_stdc=no
21d1c967 12030fi
e6cc62c6 12031rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12032
e6cc62c6
VS
12033if test $ac_cv_header_stdc = yes; then
12034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12035 cat >conftest.$ac_ext <<_ACEOF
12036#line $LINENO "configure"
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#include <string.h>
12043
12044_ACEOF
12045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12046 $EGREP "memchr" >/dev/null 2>&1; then
12047 :
12048else
12049 ac_cv_header_stdc=no
3a922bb4 12050fi
a0b9e27f 12051rm -f conftest*
e6cc62c6 12052
90dd450c 12053fi
e6cc62c6
VS
12054
12055if test $ac_cv_header_stdc = yes; then
12056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12057 cat >conftest.$ac_ext <<_ACEOF
12058#line $LINENO "configure"
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064#include <stdlib.h>
12065
12066_ACEOF
12067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12068 $EGREP "free" >/dev/null 2>&1; then
12069 :
a0b9e27f 12070else
e6cc62c6 12071 ac_cv_header_stdc=no
21d1c967 12072fi
e6cc62c6 12073rm -f conftest*
247f5006
VZ
12074
12075fi
e6cc62c6
VS
12076
12077if test $ac_cv_header_stdc = yes; then
12078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12079 if test "$cross_compiling" = yes; then
12080 :
12081else
12082 cat >conftest.$ac_ext <<_ACEOF
12083#line $LINENO "configure"
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089#include <ctype.h>
12090#if ((' ' & 0x0FF) == 0x020)
12091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12093#else
12094# define ISLOWER(c) \
12095 (('a' <= (c) && (c) <= 'i') \
12096 || ('j' <= (c) && (c) <= 'r') \
12097 || ('s' <= (c) && (c) <= 'z'))
12098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12099#endif
12100
12101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12102int
12103main ()
12104{
12105 int i;
12106 for (i = 0; i < 256; i++)
12107 if (XOR (islower (i), ISLOWER (i))
12108 || toupper (i) != TOUPPER (i))
12109 exit(2);
12110 exit (0);
12111}
12112_ACEOF
12113rm -f conftest$ac_exeext
12114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 :
a0b9e27f 12125else
e6cc62c6
VS
12126 echo "$as_me: program exited with status $ac_status" >&5
12127echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130( exit $ac_status )
12131ac_cv_header_stdc=no
12132fi
12133rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12134fi
12135fi
12136fi
12137echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12138echo "${ECHO_T}$ac_cv_header_stdc" >&6
12139if test $ac_cv_header_stdc = yes; then
12140
12141cat >>confdefs.h <<\_ACEOF
12142#define STDC_HEADERS 1
12143_ACEOF
12144
a0b9e27f 12145fi
e6cc62c6
VS
12146
12147# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12158 inttypes.h stdint.h unistd.h
12159do
12160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12161echo "$as_me:$LINENO: checking for $ac_header" >&5
12162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12163if eval "test \"\${$as_ac_Header+set}\" = set"; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
12166 cat >conftest.$ac_ext <<_ACEOF
12167#line $LINENO "configure"
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173$ac_includes_default
12174
12175#include <$ac_header>
12176_ACEOF
12177rm -f conftest.$ac_objext
12178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 eval "$as_ac_Header=yes"
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194eval "$as_ac_Header=no"
12195fi
12196rm -f conftest.$ac_objext conftest.$ac_ext
12197fi
12198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12200if test `eval echo '${'$as_ac_Header'}'` = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12203_ACEOF
12204
12205fi
12206
a0b9e27f 12207done
90dd450c 12208
e6cc62c6
VS
12209
12210
12211for ac_header in strings.h
21d1c967 12212do
e6cc62c6
VS
12213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12214if eval "test \"\${$as_ac_Header+set}\" = set"; then
12215 echo "$as_me:$LINENO: checking for $ac_header" >&5
12216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12217if eval "test \"\${$as_ac_Header+set}\" = set"; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219fi
12220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12222else
12223 # Is the header compilable?
12224echo "$as_me:$LINENO: checking $ac_header usability" >&5
12225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12226cat >conftest.$ac_ext <<_ACEOF
12227#line $LINENO "configure"
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233$ac_includes_default
12234#include <$ac_header>
12235_ACEOF
12236rm -f conftest.$ac_objext
12237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12238 (eval $ac_compile) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_header_compiler=yes
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253ac_header_compiler=no
12254fi
12255rm -f conftest.$ac_objext conftest.$ac_ext
12256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12257echo "${ECHO_T}$ac_header_compiler" >&6
12258
12259# Is the header present?
12260echo "$as_me:$LINENO: checking $ac_header presence" >&5
12261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12262cat >conftest.$ac_ext <<_ACEOF
12263#line $LINENO "configure"
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269#include <$ac_header>
12270_ACEOF
12271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } >/dev/null; then
12279 if test -s conftest.err; then
12280 ac_cpp_err=$ac_c_preproc_warn_flag
12281 else
12282 ac_cpp_err=
12283 fi
12284else
12285 ac_cpp_err=yes
12286fi
12287if test -z "$ac_cpp_err"; then
12288 ac_header_preproc=yes
12289else
12290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293 ac_header_preproc=no
12294fi
12295rm -f conftest.err conftest.$ac_ext
12296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297echo "${ECHO_T}$ac_header_preproc" >&6
12298
12299# So? What about this header?
12300case $ac_header_compiler:$ac_header_preproc in
12301 yes:no )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 (
12307 cat <<\_ASBOX
12308## ------------------------------------ ##
12309## Report this to bug-autoconf@gnu.org. ##
12310## ------------------------------------ ##
12311_ASBOX
12312 ) |
12313 sed "s/^/$as_me: WARNING: /" >&2
12314 ;;
12315 no:yes )
12316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12322 (
12323 cat <<\_ASBOX
12324## ------------------------------------ ##
12325## Report this to bug-autoconf@gnu.org. ##
12326## ------------------------------------ ##
12327_ASBOX
12328 ) |
12329 sed "s/^/$as_me: WARNING: /" >&2
12330 ;;
12331esac
12332echo "$as_me:$LINENO: checking for $ac_header" >&5
12333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12338fi
e6cc62c6
VS
12339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12341
a0b9e27f 12342fi
e6cc62c6
VS
12343if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346_ACEOF
12347
12348fi
12349
12350done
12351
e6cc62c6
VS
12352
12353
12354for ac_header in stdlib.h
12355do
12356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357if eval "test \"\${$as_ac_Header+set}\" = set"; then
12358 echo "$as_me:$LINENO: checking for $ac_header" >&5
12359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12360if eval "test \"\${$as_ac_Header+set}\" = set"; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362fi
12363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12365else
12366 # Is the header compilable?
12367echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12369cat >conftest.$ac_ext <<_ACEOF
12370#line $LINENO "configure"
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376$ac_includes_default
12377#include <$ac_header>
12378_ACEOF
12379rm -f conftest.$ac_objext
12380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_header_compiler=yes
12392else
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396ac_header_compiler=no
12397fi
12398rm -f conftest.$ac_objext conftest.$ac_ext
12399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12400echo "${ECHO_T}$ac_header_compiler" >&6
12401
12402# Is the header present?
12403echo "$as_me:$LINENO: checking $ac_header presence" >&5
12404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12405cat >conftest.$ac_ext <<_ACEOF
12406#line $LINENO "configure"
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412#include <$ac_header>
12413_ACEOF
12414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 else
12425 ac_cpp_err=
12426 fi
12427else
12428 ac_cpp_err=yes
12429fi
12430if test -z "$ac_cpp_err"; then
12431 ac_header_preproc=yes
12432else
12433 echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_header_preproc=no
12437fi
12438rm -f conftest.err conftest.$ac_ext
12439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12440echo "${ECHO_T}$ac_header_preproc" >&6
12441
12442# So? What about this header?
12443case $ac_header_compiler:$ac_header_preproc in
12444 yes:no )
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12449 (
12450 cat <<\_ASBOX
12451## ------------------------------------ ##
12452## Report this to bug-autoconf@gnu.org. ##
12453## ------------------------------------ ##
12454_ASBOX
12455 ) |
12456 sed "s/^/$as_me: WARNING: /" >&2
12457 ;;
12458 no:yes )
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12465 (
12466 cat <<\_ASBOX
12467## ------------------------------------ ##
12468## Report this to bug-autoconf@gnu.org. ##
12469## ------------------------------------ ##
12470_ASBOX
12471 ) |
12472 sed "s/^/$as_me: WARNING: /" >&2
12473 ;;
12474esac
12475echo "$as_me:$LINENO: checking for $ac_header" >&5
12476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12477if eval "test \"\${$as_ac_Header+set}\" = set"; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12479else
e6cc62c6
VS
12480 eval "$as_ac_Header=$ac_header_preproc"
12481fi
12482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12484
21d1c967 12485fi
e6cc62c6
VS
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489_ACEOF
12490
12491fi
12492
21d1c967 12493done
4f14bcd8 12494
5c6fa7d2 12495
e6cc62c6 12496for ac_header in malloc.h
21d1c967 12497do
e6cc62c6
VS
12498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12499if eval "test \"\${$as_ac_Header+set}\" = set"; then
12500 echo "$as_me:$LINENO: checking for $ac_header" >&5
12501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12502if eval "test \"\${$as_ac_Header+set}\" = set"; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504fi
12505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12507else
12508 # Is the header compilable?
12509echo "$as_me:$LINENO: checking $ac_header usability" >&5
12510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12511cat >conftest.$ac_ext <<_ACEOF
12512#line $LINENO "configure"
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_includes_default
12519#include <$ac_header>
12520_ACEOF
12521rm -f conftest.$ac_objext
12522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -s conftest.$ac_objext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 ac_header_compiler=yes
12534else
12535 echo "$as_me: failed program was:" >&5
12536sed 's/^/| /' conftest.$ac_ext >&5
12537
12538ac_header_compiler=no
12539fi
12540rm -f conftest.$ac_objext conftest.$ac_ext
12541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12542echo "${ECHO_T}$ac_header_compiler" >&6
12543
12544# Is the header present?
12545echo "$as_me:$LINENO: checking $ac_header presence" >&5
12546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12547cat >conftest.$ac_ext <<_ACEOF
12548#line $LINENO "configure"
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554#include <$ac_header>
12555_ACEOF
12556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } >/dev/null; then
12564 if test -s conftest.err; then
12565 ac_cpp_err=$ac_c_preproc_warn_flag
12566 else
12567 ac_cpp_err=
12568 fi
12569else
12570 ac_cpp_err=yes
12571fi
12572if test -z "$ac_cpp_err"; then
12573 ac_header_preproc=yes
12574else
12575 echo "$as_me: failed program was:" >&5
12576sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 ac_header_preproc=no
12579fi
12580rm -f conftest.err conftest.$ac_ext
12581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12582echo "${ECHO_T}$ac_header_preproc" >&6
12583
12584# So? What about this header?
12585case $ac_header_compiler:$ac_header_preproc in
12586 yes:no )
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12591 (
12592 cat <<\_ASBOX
12593## ------------------------------------ ##
12594## Report this to bug-autoconf@gnu.org. ##
12595## ------------------------------------ ##
12596_ASBOX
12597 ) |
12598 sed "s/^/$as_me: WARNING: /" >&2
12599 ;;
12600 no:yes )
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 (
12608 cat <<\_ASBOX
12609## ------------------------------------ ##
12610## Report this to bug-autoconf@gnu.org. ##
12611## ------------------------------------ ##
12612_ASBOX
12613 ) |
12614 sed "s/^/$as_me: WARNING: /" >&2
12615 ;;
12616esac
12617echo "$as_me:$LINENO: checking for $ac_header" >&5
12618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12619if eval "test \"\${$as_ac_Header+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621else
12622 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12623fi
e6cc62c6
VS
12624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12626
21d1c967 12627fi
e6cc62c6
VS
12628if test `eval echo '${'$as_ac_Header'}'` = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12631_ACEOF
12632
12633fi
12634
12635done
12636
12637
12638for ac_header in unistd.h
12639do
12640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12641if eval "test \"\${$as_ac_Header+set}\" = set"; then
12642 echo "$as_me:$LINENO: checking for $ac_header" >&5
12643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12644if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646fi
12647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12649else
12650 # Is the header compilable?
12651echo "$as_me:$LINENO: checking $ac_header usability" >&5
12652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12653cat >conftest.$ac_ext <<_ACEOF
12654#line $LINENO "configure"
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660$ac_includes_default
12661#include <$ac_header>
12662_ACEOF
12663rm -f conftest.$ac_objext
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler=yes
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680ac_header_compiler=no
12681fi
12682rm -f conftest.$ac_objext conftest.$ac_ext
12683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684echo "${ECHO_T}$ac_header_compiler" >&6
12685
12686# Is the header present?
12687echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12689cat >conftest.$ac_ext <<_ACEOF
12690#line $LINENO "configure"
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
12696#include <$ac_header>
12697_ACEOF
12698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } >/dev/null; then
12706 if test -s conftest.err; then
12707 ac_cpp_err=$ac_c_preproc_warn_flag
12708 else
12709 ac_cpp_err=
12710 fi
a0b9e27f 12711else
e6cc62c6
VS
12712 ac_cpp_err=yes
12713fi
12714if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_preproc=no
12721fi
12722rm -f conftest.err conftest.$ac_ext
12723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724echo "${ECHO_T}$ac_header_preproc" >&6
12725
12726# So? What about this header?
12727case $ac_header_compiler:$ac_header_preproc in
12728 yes:no )
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12733 (
12734 cat <<\_ASBOX
12735## ------------------------------------ ##
12736## Report this to bug-autoconf@gnu.org. ##
12737## ------------------------------------ ##
12738_ASBOX
12739 ) |
12740 sed "s/^/$as_me: WARNING: /" >&2
12741 ;;
12742 no:yes )
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12749 (
12750 cat <<\_ASBOX
12751## ------------------------------------ ##
12752## Report this to bug-autoconf@gnu.org. ##
12753## ------------------------------------ ##
12754_ASBOX
12755 ) |
12756 sed "s/^/$as_me: WARNING: /" >&2
12757 ;;
12758esac
12759echo "$as_me:$LINENO: checking for $ac_header" >&5
12760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12761if eval "test \"\${$as_ac_Header+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763else
12764 eval "$as_ac_Header=$ac_header_preproc"
12765fi
12766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12768
12769fi
12770if test `eval echo '${'$as_ac_Header'}'` = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12773_ACEOF
12774
d4158b5d 12775fi
e6cc62c6 12776
21d1c967 12777done
f6bcfd97 12778
e6cc62c6
VS
12779
12780for ac_header in wchar.h
12781do
12782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12783if eval "test \"\${$as_ac_Header+set}\" = set"; then
12784 echo "$as_me:$LINENO: checking for $ac_header" >&5
12785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788fi
12789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791else
12792 # Is the header compilable?
12793echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12795cat >conftest.$ac_ext <<_ACEOF
12796#line $LINENO "configure"
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802$ac_includes_default
12803#include <$ac_header>
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_header_compiler=yes
12818else
12819 echo "$as_me: failed program was:" >&5
12820sed 's/^/| /' conftest.$ac_ext >&5
12821
12822ac_header_compiler=no
12823fi
12824rm -f conftest.$ac_objext conftest.$ac_ext
12825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826echo "${ECHO_T}$ac_header_compiler" >&6
12827
12828# Is the header present?
12829echo "$as_me:$LINENO: checking $ac_header presence" >&5
12830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12831cat >conftest.$ac_ext <<_ACEOF
12832#line $LINENO "configure"
12833/* confdefs.h. */
12834_ACEOF
12835cat confdefs.h >>conftest.$ac_ext
12836cat >>conftest.$ac_ext <<_ACEOF
12837/* end confdefs.h. */
12838#include <$ac_header>
12839_ACEOF
12840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } >/dev/null; then
12848 if test -s conftest.err; then
12849 ac_cpp_err=$ac_c_preproc_warn_flag
12850 else
12851 ac_cpp_err=
12852 fi
12853else
12854 ac_cpp_err=yes
12855fi
12856if test -z "$ac_cpp_err"; then
12857 ac_header_preproc=yes
12858else
12859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ac_header_preproc=no
12863fi
12864rm -f conftest.err conftest.$ac_ext
12865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12866echo "${ECHO_T}$ac_header_preproc" >&6
12867
12868# So? What about this header?
12869case $ac_header_compiler:$ac_header_preproc in
12870 yes:no )
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12875 (
12876 cat <<\_ASBOX
12877## ------------------------------------ ##
12878## Report this to bug-autoconf@gnu.org. ##
12879## ------------------------------------ ##
12880_ASBOX
12881 ) |
12882 sed "s/^/$as_me: WARNING: /" >&2
12883 ;;
12884 no:yes )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12891 (
12892 cat <<\_ASBOX
12893## ------------------------------------ ##
12894## Report this to bug-autoconf@gnu.org. ##
12895## ------------------------------------ ##
12896_ASBOX
12897 ) |
12898 sed "s/^/$as_me: WARNING: /" >&2
12899 ;;
12900esac
12901echo "$as_me:$LINENO: checking for $ac_header" >&5
12902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12903if eval "test \"\${$as_ac_Header+set}\" = set"; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905else
12906 eval "$as_ac_Header=$ac_header_preproc"
12907fi
12908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12910
90dd450c 12911fi
e6cc62c6
VS
12912if test `eval echo '${'$as_ac_Header'}'` = yes; then
12913 cat >>confdefs.h <<_ACEOF
12914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12915_ACEOF
12916
12917fi
12918
12919done
90dd450c 12920
e6cc62c6
VS
12921
12922if test "$ac_cv_header_wchar_h" != "yes"; then
12923
12924for ac_header in wcstr.h
21d1c967 12925do
e6cc62c6
VS
12926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12927if eval "test \"\${$as_ac_Header+set}\" = set"; then
12928 echo "$as_me:$LINENO: checking for $ac_header" >&5
12929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12930if eval "test \"\${$as_ac_Header+set}\" = set"; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932fi
12933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12935else
12936 # Is the header compilable?
12937echo "$as_me:$LINENO: checking $ac_header usability" >&5
12938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12939cat >conftest.$ac_ext <<_ACEOF
12940#line $LINENO "configure"
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946$ac_includes_default
12947#include <$ac_header>
12948_ACEOF
12949rm -f conftest.$ac_objext
12950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -s conftest.$ac_objext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_header_compiler=yes
12962else
12963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966ac_header_compiler=no
12967fi
12968rm -f conftest.$ac_objext conftest.$ac_ext
12969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12970echo "${ECHO_T}$ac_header_compiler" >&6
12971
12972# Is the header present?
12973echo "$as_me:$LINENO: checking $ac_header presence" >&5
12974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12975cat >conftest.$ac_ext <<_ACEOF
12976#line $LINENO "configure"
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982#include <$ac_header>
12983_ACEOF
12984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } >/dev/null; then
12992 if test -s conftest.err; then
12993 ac_cpp_err=$ac_c_preproc_warn_flag
12994 else
12995 ac_cpp_err=
12996 fi
12997else
12998 ac_cpp_err=yes
12999fi
13000if test -z "$ac_cpp_err"; then
13001 ac_header_preproc=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_header_preproc=no
13007fi
13008rm -f conftest.err conftest.$ac_ext
13009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13010echo "${ECHO_T}$ac_header_preproc" >&6
13011
13012# So? What about this header?
13013case $ac_header_compiler:$ac_header_preproc in
13014 yes:no )
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13019 (
13020 cat <<\_ASBOX
13021## ------------------------------------ ##
13022## Report this to bug-autoconf@gnu.org. ##
13023## ------------------------------------ ##
13024_ASBOX
13025 ) |
13026 sed "s/^/$as_me: WARNING: /" >&2
13027 ;;
13028 no:yes )
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13035 (
13036 cat <<\_ASBOX
13037## ------------------------------------ ##
13038## Report this to bug-autoconf@gnu.org. ##
13039## ------------------------------------ ##
13040_ASBOX
13041 ) |
13042 sed "s/^/$as_me: WARNING: /" >&2
13043 ;;
13044esac
13045echo "$as_me:$LINENO: checking for $ac_header" >&5
13046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13047if eval "test \"\${$as_ac_Header+set}\" = set"; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049else
13050 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13051fi
e6cc62c6
VS
13052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13054
4f14bcd8 13055fi
e6cc62c6
VS
13056if test `eval echo '${'$as_ac_Header'}'` = yes; then
13057 cat >>confdefs.h <<_ACEOF
13058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13059_ACEOF
13060
13061fi
13062
13063done
13064
13065fi
13066
13067
13068for ac_header in fnmatch.h
13069do
13070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13071if eval "test \"\${$as_ac_Header+set}\" = set"; then
13072 echo "$as_me:$LINENO: checking for $ac_header" >&5
13073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076fi
13077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13079else
13080 # Is the header compilable?
13081echo "$as_me:$LINENO: checking $ac_header usability" >&5
13082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13083cat >conftest.$ac_ext <<_ACEOF
13084#line $LINENO "configure"
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090$ac_includes_default
13091#include <$ac_header>
13092_ACEOF
13093rm -f conftest.$ac_objext
13094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_header_compiler=yes
13106else
13107 echo "$as_me: failed program was:" >&5
13108sed 's/^/| /' conftest.$ac_ext >&5
13109
13110ac_header_compiler=no
13111fi
13112rm -f conftest.$ac_objext conftest.$ac_ext
13113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114echo "${ECHO_T}$ac_header_compiler" >&6
13115
13116# Is the header present?
13117echo "$as_me:$LINENO: checking $ac_header presence" >&5
13118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13119cat >conftest.$ac_ext <<_ACEOF
13120#line $LINENO "configure"
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126#include <$ac_header>
13127_ACEOF
13128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null; then
13136 if test -s conftest.err; then
13137 ac_cpp_err=$ac_c_preproc_warn_flag
13138 else
13139 ac_cpp_err=
13140 fi
13141else
13142 ac_cpp_err=yes
13143fi
13144if test -z "$ac_cpp_err"; then
13145 ac_header_preproc=yes
13146else
13147 echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
13150 ac_header_preproc=no
13151fi
13152rm -f conftest.err conftest.$ac_ext
13153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13154echo "${ECHO_T}$ac_header_preproc" >&6
13155
13156# So? What about this header?
13157case $ac_header_compiler:$ac_header_preproc in
13158 yes:no )
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13163 (
13164 cat <<\_ASBOX
13165## ------------------------------------ ##
13166## Report this to bug-autoconf@gnu.org. ##
13167## ------------------------------------ ##
13168_ASBOX
13169 ) |
13170 sed "s/^/$as_me: WARNING: /" >&2
13171 ;;
13172 no:yes )
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13179 (
13180 cat <<\_ASBOX
13181## ------------------------------------ ##
13182## Report this to bug-autoconf@gnu.org. ##
13183## ------------------------------------ ##
13184_ASBOX
13185 ) |
13186 sed "s/^/$as_me: WARNING: /" >&2
13187 ;;
13188esac
13189echo "$as_me:$LINENO: checking for $ac_header" >&5
13190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13193else
e6cc62c6
VS
13194 eval "$as_ac_Header=$ac_header_preproc"
13195fi
13196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13198
21d1c967 13199fi
e6cc62c6
VS
13200if test `eval echo '${'$as_ac_Header'}'` = yes; then
13201 cat >>confdefs.h <<_ACEOF
13202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13203_ACEOF
13204
13205fi
13206
21d1c967 13207done
90dd450c 13208
5c6fa7d2 13209
a0b9e27f 13210if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13211
13212for ac_func in fnmatch
21d1c967 13213do
e6cc62c6
VS
13214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215echo "$as_me:$LINENO: checking for $ac_func" >&5
13216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13217if eval "test \"\${$as_ac_var+set}\" = set"; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220 cat >conftest.$ac_ext <<_ACEOF
13221#line $LINENO "configure"
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
a0b9e27f 13227/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13228 which can conflict with char $ac_func (); below.
13229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13230 <limits.h> exists even on freestanding compilers. */
13231#ifdef __STDC__
13232# include <limits.h>
13233#else
13234# include <assert.h>
13235#endif
a0b9e27f 13236/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13237#ifdef __cplusplus
13238extern "C"
13239{
13240#endif
a0b9e27f 13241/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13242 builtin and then its argument prototype would still apply. */
13243char $ac_func ();
a0b9e27f
MB
13244/* The GNU C library defines this for functions which it implements
13245 to always fail with ENOSYS. Some functions are actually named
13246 something starting with __ and the normal name is an alias. */
13247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13248choke me
13249#else
e6cc62c6
VS
13250char (*f) () = $ac_func;
13251#endif
13252#ifdef __cplusplus
13253}
a0b9e27f
MB
13254#endif
13255
e6cc62c6
VS
13256int
13257main ()
13258{
13259return f != $ac_func;
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264rm -f conftest.$ac_objext conftest$ac_exeext
13265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266 (eval $ac_link) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -s conftest$ac_exeext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 eval "$as_ac_var=yes"
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281eval "$as_ac_var=no"
13282fi
13283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13284fi
13285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13287if test `eval echo '${'$as_ac_var'}'` = yes; then
13288 cat >>confdefs.h <<_ACEOF
13289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13290_ACEOF
32832908 13291
21d1c967
GD
13292fi
13293done
90dd450c 13294
a0b9e27f 13295fi
90dd450c 13296
e6cc62c6
VS
13297
13298for ac_header in langinfo.h
21d1c967 13299do
e6cc62c6
VS
13300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306fi
13307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13309else
13310 # Is the header compilable?
13311echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313cat >conftest.$ac_ext <<_ACEOF
13314#line $LINENO "configure"
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320$ac_includes_default
13321#include <$ac_header>
13322_ACEOF
13323rm -f conftest.$ac_objext
13324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_header_compiler=yes
13336else
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340ac_header_compiler=no
13341fi
13342rm -f conftest.$ac_objext conftest.$ac_ext
13343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13344echo "${ECHO_T}$ac_header_compiler" >&6
13345
13346# Is the header present?
13347echo "$as_me:$LINENO: checking $ac_header presence" >&5
13348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13349cat >conftest.$ac_ext <<_ACEOF
13350#line $LINENO "configure"
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356#include <$ac_header>
13357_ACEOF
13358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } >/dev/null; then
13366 if test -s conftest.err; then
13367 ac_cpp_err=$ac_c_preproc_warn_flag
13368 else
13369 ac_cpp_err=
13370 fi
13371else
13372 ac_cpp_err=yes
13373fi
13374if test -z "$ac_cpp_err"; then
13375 ac_header_preproc=yes
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_header_preproc=no
13381fi
13382rm -f conftest.err conftest.$ac_ext
13383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384echo "${ECHO_T}$ac_header_preproc" >&6
13385
13386# So? What about this header?
13387case $ac_header_compiler:$ac_header_preproc in
13388 yes:no )
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13392echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13393 (
13394 cat <<\_ASBOX
13395## ------------------------------------ ##
13396## Report this to bug-autoconf@gnu.org. ##
13397## ------------------------------------ ##
13398_ASBOX
13399 ) |
13400 sed "s/^/$as_me: WARNING: /" >&2
13401 ;;
13402 no:yes )
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13409 (
13410 cat <<\_ASBOX
13411## ------------------------------------ ##
13412## Report this to bug-autoconf@gnu.org. ##
13413## ------------------------------------ ##
13414_ASBOX
13415 ) |
13416 sed "s/^/$as_me: WARNING: /" >&2
13417 ;;
13418esac
13419echo "$as_me:$LINENO: checking for $ac_header" >&5
13420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13421if eval "test \"\${$as_ac_Header+set}\" = set"; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
13424 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13425fi
e6cc62c6
VS
13426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428
4f14bcd8 13429fi
e6cc62c6
VS
13430if test `eval echo '${'$as_ac_Header'}'` = yes; then
13431 cat >>confdefs.h <<_ACEOF
13432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13433_ACEOF
13434
21d1c967 13435fi
e6cc62c6 13436
21d1c967 13437done
3a922bb4 13438
8284b0c5 13439
4f5a7f74
VZ
13440case "${host}" in
13441 *-pc-os2_emx | *-pc-os2-emx )
13442 if test $ac_cv_header_langinfo_h = "yes"; then
13443 LIBS="$LIBS -lintl"
13444 fi
13445 ;;
13446esac
1542ea39 13447
a0b9e27f
MB
13448if test "$wxUSE_GUI" = "yes"; then
13449 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13450
13451for ac_header in X11/XKBlib.h
21d1c967 13452do
e6cc62c6
VS
13453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13454if eval "test \"\${$as_ac_Header+set}\" = set"; then
13455 echo "$as_me:$LINENO: checking for $ac_header" >&5
13456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13457if eval "test \"\${$as_ac_Header+set}\" = set"; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459fi
13460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13462else
13463 # Is the header compilable?
13464echo "$as_me:$LINENO: checking $ac_header usability" >&5
13465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13466cat >conftest.$ac_ext <<_ACEOF
13467#line $LINENO "configure"
13468/* confdefs.h. */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h. */
13473$ac_includes_default
13474#include <$ac_header>
13475_ACEOF
13476rm -f conftest.$ac_objext
13477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 ac_header_compiler=yes
13489else
13490 echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493ac_header_compiler=no
13494fi
13495rm -f conftest.$ac_objext conftest.$ac_ext
13496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13497echo "${ECHO_T}$ac_header_compiler" >&6
13498
13499# Is the header present?
13500echo "$as_me:$LINENO: checking $ac_header presence" >&5
13501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13502cat >conftest.$ac_ext <<_ACEOF
13503#line $LINENO "configure"
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509#include <$ac_header>
13510_ACEOF
13511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } >/dev/null; then
13519 if test -s conftest.err; then
13520 ac_cpp_err=$ac_c_preproc_warn_flag
13521 else
13522 ac_cpp_err=
13523 fi
13524else
13525 ac_cpp_err=yes
13526fi
13527if test -z "$ac_cpp_err"; then
13528 ac_header_preproc=yes
13529else
13530 echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
13532
13533 ac_header_preproc=no
13534fi
13535rm -f conftest.err conftest.$ac_ext
13536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13537echo "${ECHO_T}$ac_header_preproc" >&6
13538
13539# So? What about this header?
13540case $ac_header_compiler:$ac_header_preproc in
13541 yes:no )
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13546 (
13547 cat <<\_ASBOX
13548## ------------------------------------ ##
13549## Report this to bug-autoconf@gnu.org. ##
13550## ------------------------------------ ##
13551_ASBOX
13552 ) |
13553 sed "s/^/$as_me: WARNING: /" >&2
13554 ;;
13555 no:yes )
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13562 (
13563 cat <<\_ASBOX
13564## ------------------------------------ ##
13565## Report this to bug-autoconf@gnu.org. ##
13566## ------------------------------------ ##
13567_ASBOX
13568 ) |
13569 sed "s/^/$as_me: WARNING: /" >&2
13570 ;;
13571esac
13572echo "$as_me:$LINENO: checking for $ac_header" >&5
13573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13574if eval "test \"\${$as_ac_Header+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576else
13577 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13578fi
e6cc62c6
VS
13579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13581
90dd450c 13582fi
e6cc62c6
VS
13583if test `eval echo '${'$as_ac_Header'}'` = yes; then
13584 cat >>confdefs.h <<_ACEOF
13585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13586_ACEOF
13587
247f5006 13588fi
e6cc62c6 13589
247f5006
VZ
13590done
13591
a0b9e27f
MB
13592 fi
13593fi
247f5006 13594
247f5006 13595
e6cc62c6
VS
13596echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13597echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13598if test "${ac_cv_c_const+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13600else
13601 cat >conftest.$ac_ext <<_ACEOF
13602#line $LINENO "configure"
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608
13609int
13610main ()
13611{
13612/* FIXME: Include the comments suggested by Paul. */
13613#ifndef __cplusplus
13614 /* Ultrix mips cc rejects this. */
13615 typedef int charset[2];
13616 const charset x;
13617 /* SunOS 4.1.1 cc rejects this. */
13618 char const *const *ccp;
13619 char **p;
13620 /* NEC SVR4.0.2 mips cc rejects this. */
13621 struct point {int x, y;};
13622 static struct point const zero = {0,0};
13623 /* AIX XL C 1.02.0.0 rejects this.
13624 It does not let you subtract one const X* pointer from another in
13625 an arm of an if-expression whose if-part is not a constant
13626 expression */
13627 const char *g = "string";
13628 ccp = &g + (g ? g-g : 0);
13629 /* HPUX 7.0 cc rejects these. */
13630 ++ccp;
13631 p = (char**) ccp;
13632 ccp = (char const *const *) p;
13633 { /* SCO 3.2v4 cc rejects this. */
13634 char *t;
13635 char const *s = 0 ? (char *) 0 : (char const *) 0;
13636
13637 *t++ = 0;
13638 }
13639 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13640 int x[] = {25, 17};
13641 const int *foo = &x[0];
13642 ++foo;
13643 }
13644 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13645 typedef const int *iptr;
13646 iptr p = 0;
13647 ++p;
13648 }
13649 { /* AIX XL C 1.02.0.0 rejects this saying
13650 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13651 struct s { int j; const int *ap[3]; };
13652 struct s *b; b->j = 5;
13653 }
13654 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13655 const int foo = 10;
13656 }
13657#endif
13658
13659 ;
13660 return 0;
13661}
13662_ACEOF
13663rm -f conftest.$ac_objext
13664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -s conftest.$ac_objext'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }; then
a0b9e27f 13675 ac_cv_c_const=yes
247f5006 13676else
e6cc62c6
VS
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680ac_cv_c_const=no
247f5006 13681fi
e6cc62c6 13682rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13683fi
e6cc62c6
VS
13684echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13685echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13686if test $ac_cv_c_const = no; then
e6cc62c6
VS
13687
13688cat >>confdefs.h <<\_ACEOF
13689#define const
13690_ACEOF
10f2d63a 13691
90dd450c 13692fi
81809c07 13693
e6cc62c6
VS
13694echo "$as_me:$LINENO: checking for inline" >&5
13695echo $ECHO_N "checking for inline... $ECHO_C" >&6
13696if test "${ac_cv_c_inline+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13698else
a0b9e27f
MB
13699 ac_cv_c_inline=no
13700for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13701 cat >conftest.$ac_ext <<_ACEOF
13702#line $LINENO "configure"
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
13708#ifndef __cplusplus
13709typedef int foo_t;
13710static $ac_kw foo_t static_foo () {return 0; }
13711$ac_kw foo_t foo () {return 0; }
13712#endif
a0b9e27f 13713
e6cc62c6
VS
13714_ACEOF
13715rm -f conftest.$ac_objext
13716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
a0b9e27f 13727 ac_cv_c_inline=$ac_kw; break
247f5006 13728else
e6cc62c6
VS
13729 echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
247f5006 13732fi
e6cc62c6 13733rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13734done
247f5006
VZ
13735
13736fi
e6cc62c6
VS
13737echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13738echo "${ECHO_T}$ac_cv_c_inline" >&6
13739case $ac_cv_c_inline in
a0b9e27f 13740 inline | yes) ;;
e6cc62c6
VS
13741 no)
13742cat >>confdefs.h <<\_ACEOF
13743#define inline
13744_ACEOF
a0b9e27f 13745 ;;
e6cc62c6 13746 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13747#define inline $ac_cv_c_inline
e6cc62c6 13748_ACEOF
a0b9e27f
MB
13749 ;;
13750esac
247f5006 13751
247f5006 13752
e6cc62c6
VS
13753echo "$as_me:$LINENO: checking for char" >&5
13754echo $ECHO_N "checking for char... $ECHO_C" >&6
13755if test "${ac_cv_type_char+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
13758 cat >conftest.$ac_ext <<_ACEOF
13759#line $LINENO "configure"
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
13765$ac_includes_default
13766int
13767main ()
13768{
13769if ((char *) 0)
13770 return 0;
13771if (sizeof (char))
13772 return 0;
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_cv_type_char=yes
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794ac_cv_type_char=no
13795fi
13796rm -f conftest.$ac_objext conftest.$ac_ext
13797fi
13798echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13799echo "${ECHO_T}$ac_cv_type_char" >&6
13800
13801echo "$as_me:$LINENO: checking size of char" >&5
13802echo $ECHO_N "checking size of char... $ECHO_C" >&6
13803if test "${ac_cv_sizeof_char+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 if test "$ac_cv_type_char" = yes; then
13807 # The cast to unsigned long works around a bug in the HP C Compiler
13808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13810 # This bug is HP SR number 8606223364.
a0b9e27f 13811 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13812 # Depending upon the size, compute the lo and hi bounds.
13813cat >conftest.$ac_ext <<_ACEOF
13814#line $LINENO "configure"
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821int
13822main ()
13823{
13824static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13825test_array [0] = 0
13826
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -s conftest.$ac_objext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_lo=0 ac_mid=0
13844 while :; do
13845 cat >conftest.$ac_ext <<_ACEOF
13846#line $LINENO "configure"
13847/* confdefs.h. */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
13851/* end confdefs.h. */
13852$ac_includes_default
13853int
13854main ()
13855{
13856static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13857test_array [0] = 0
13858
13859 ;
13860 return 0;
13861}
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13865 (eval $ac_compile) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
13869 { ac_try='test -s conftest.$ac_objext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_hi=$ac_mid; break
13876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880ac_lo=`expr $ac_mid + 1`
13881 if test $ac_lo -le $ac_mid; then
13882 ac_lo= ac_hi=
13883 break
13884 fi
13885 ac_mid=`expr 2 '*' $ac_mid + 1`
13886fi
13887rm -f conftest.$ac_objext conftest.$ac_ext
13888 done
a0b9e27f 13889else
e6cc62c6
VS
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893cat >conftest.$ac_ext <<_ACEOF
13894#line $LINENO "configure"
13895/* confdefs.h. */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h. */
13900$ac_includes_default
13901int
13902main ()
13903{
13904static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13905test_array [0] = 0
13906
13907 ;
13908 return 0;
13909}
13910_ACEOF
13911rm -f conftest.$ac_objext
13912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13913 (eval $ac_compile) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_hi=-1 ac_mid=-1
13924 while :; do
13925 cat >conftest.$ac_ext <<_ACEOF
13926#line $LINENO "configure"
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932$ac_includes_default
13933int
13934main ()
13935{
13936static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13937test_array [0] = 0
13938
13939 ;
13940 return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext
13944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -s conftest.$ac_objext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_lo=$ac_mid; break
13956else
13957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960ac_hi=`expr '(' $ac_mid ')' - 1`
13961 if test $ac_mid -le $ac_hi; then
13962 ac_lo= ac_hi=
13963 break
13964 fi
13965 ac_mid=`expr 2 '*' $ac_mid`
13966fi
13967rm -f conftest.$ac_objext conftest.$ac_ext
13968 done
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973ac_lo= ac_hi=
13974fi
13975rm -f conftest.$ac_objext conftest.$ac_ext
13976fi
13977rm -f conftest.$ac_objext conftest.$ac_ext
13978# Binary search between lo and hi bounds.
13979while test "x$ac_lo" != "x$ac_hi"; do
13980 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13981 cat >conftest.$ac_ext <<_ACEOF
13982#line $LINENO "configure"
13983/* confdefs.h. */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h. */
13988$ac_includes_default
13989int
13990main ()
13991{
13992static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13993test_array [0] = 0
13994
13995 ;
13996 return 0;
13997}
13998_ACEOF
13999rm -f conftest.$ac_objext
14000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -s conftest.$ac_objext'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_hi=$ac_mid
14012else
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016ac_lo=`expr '(' $ac_mid ')' + 1`
14017fi
14018rm -f conftest.$ac_objext conftest.$ac_ext
14019done
14020case $ac_lo in
14021?*) ac_cv_sizeof_char=$ac_lo;;
14022'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14023See \`config.log' for more details." >&5
14024echo "$as_me: error: cannot compute sizeof (char), 77
14025See \`config.log' for more details." >&2;}
14026 { (exit 1); exit 1; }; } ;;
14027esac
14028else
14029 if test "$cross_compiling" = yes; then
14030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14031See \`config.log' for more details." >&5
14032echo "$as_me: error: cannot run test program while cross compiling
14033See \`config.log' for more details." >&2;}
14034 { (exit 1); exit 1; }; }
14035else
14036 cat >conftest.$ac_ext <<_ACEOF
14037#line $LINENO "configure"
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
14043$ac_includes_default
14044long longval () { return (long) (sizeof (char)); }
14045unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14046#include <stdio.h>
e6cc62c6
VS
14047#include <stdlib.h>
14048int
14049main ()
247f5006 14050{
e6cc62c6
VS
14051
14052 FILE *f = fopen ("conftest.val", "w");
14053 if (! f)
14054 exit (1);
14055 if (((long) (sizeof (char))) < 0)
14056 {
14057 long i = longval ();
14058 if (i != ((long) (sizeof (char))))
14059 exit (1);
14060 fprintf (f, "%ld\n", i);
14061 }
14062 else
14063 {
14064 unsigned long i = ulongval ();
14065 if (i != ((long) (sizeof (char))))
14066 exit (1);
14067 fprintf (f, "%lu\n", i);
14068 }
14069 exit (ferror (f) || fclose (f) != 0);
14070
14071 ;
14072 return 0;
52127426 14073}
e6cc62c6
VS
14074_ACEOF
14075rm -f conftest$ac_exeext
14076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_sizeof_char=`cat conftest.val`
14087else
14088 echo "$as_me: program exited with status $ac_status" >&5
14089echo "$as_me: failed program was:" >&5
14090sed 's/^/| /' conftest.$ac_ext >&5
14091
14092( exit $ac_status )
14093{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14094See \`config.log' for more details." >&5
14095echo "$as_me: error: cannot compute sizeof (char), 77
14096See \`config.log' for more details." >&2;}
14097 { (exit 1); exit 1; }; }
14098fi
14099rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14100fi
14101fi
14102rm -f conftest.val
247f5006 14103else
a0b9e27f 14104 ac_cv_sizeof_char=0
247f5006 14105fi
247f5006 14106fi
e6cc62c6
VS
14107echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14108echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14109cat >>confdefs.h <<_ACEOF
14110#define SIZEOF_CHAR $ac_cv_sizeof_char
14111_ACEOF
14112
14113
14114echo "$as_me:$LINENO: checking for short" >&5
14115echo $ECHO_N "checking for short... $ECHO_C" >&6
14116if test "${ac_cv_type_short+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 cat >conftest.$ac_ext <<_ACEOF
14120#line $LINENO "configure"
14121/* confdefs.h. */
14122_ACEOF
14123cat confdefs.h >>conftest.$ac_ext
14124cat >>conftest.$ac_ext <<_ACEOF
14125/* end confdefs.h. */
14126$ac_includes_default
14127int
14128main ()
14129{
14130if ((short *) 0)
14131 return 0;
14132if (sizeof (short))
14133 return 0;
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_type_short=yes
14151else
14152 echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155ac_cv_type_short=no
14156fi
14157rm -f conftest.$ac_objext conftest.$ac_ext
14158fi
14159echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14160echo "${ECHO_T}$ac_cv_type_short" >&6
14161
14162echo "$as_me:$LINENO: checking size of short" >&5
14163echo $ECHO_N "checking size of short... $ECHO_C" >&6
14164if test "${ac_cv_sizeof_short+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166else
14167 if test "$ac_cv_type_short" = yes; then
14168 # The cast to unsigned long works around a bug in the HP C Compiler
14169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14171 # This bug is HP SR number 8606223364.
14172 if test "$cross_compiling" = yes; then
14173 # Depending upon the size, compute the lo and hi bounds.
14174cat >conftest.$ac_ext <<_ACEOF
14175#line $LINENO "configure"
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181$ac_includes_default
14182int
14183main ()
14184{
14185static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14186test_array [0] = 0
247f5006 14187
e6cc62c6
VS
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_lo=0 ac_mid=0
14205 while :; do
14206 cat >conftest.$ac_ext <<_ACEOF
14207#line $LINENO "configure"
14208/* confdefs.h. */
14209_ACEOF
14210cat confdefs.h >>conftest.$ac_ext
14211cat >>conftest.$ac_ext <<_ACEOF
14212/* end confdefs.h. */
14213$ac_includes_default
14214int
14215main ()
14216{
14217static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14218test_array [0] = 0
14219
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 ac_hi=$ac_mid; break
14237else
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241ac_lo=`expr $ac_mid + 1`
14242 if test $ac_lo -le $ac_mid; then
14243 ac_lo= ac_hi=
14244 break
14245 fi
14246 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14247fi
e6cc62c6
VS
14248rm -f conftest.$ac_objext conftest.$ac_ext
14249 done
14250else
14251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254cat >conftest.$ac_ext <<_ACEOF
14255#line $LINENO "configure"
14256/* confdefs.h. */
14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
14261$ac_includes_default
14262int
14263main ()
14264{
14265static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14266test_array [0] = 0
247f5006 14267
e6cc62c6
VS
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext
14273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_hi=-1 ac_mid=-1
14285 while :; do
14286 cat >conftest.$ac_ext <<_ACEOF
14287#line $LINENO "configure"
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294int
14295main ()
14296{
14297static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14298test_array [0] = 0
247f5006 14299
e6cc62c6
VS
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -s conftest.$ac_objext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_lo=$ac_mid; break
14317else
14318 echo "$as_me: failed program was:" >&5
14319sed 's/^/| /' conftest.$ac_ext >&5
14320
14321ac_hi=`expr '(' $ac_mid ')' - 1`
14322 if test $ac_mid -le $ac_hi; then
14323 ac_lo= ac_hi=
14324 break
14325 fi
14326 ac_mid=`expr 2 '*' $ac_mid`
14327fi
14328rm -f conftest.$ac_objext conftest.$ac_ext
14329 done
247f5006 14330else
e6cc62c6
VS
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_lo= ac_hi=
14335fi
14336rm -f conftest.$ac_objext conftest.$ac_ext
14337fi
14338rm -f conftest.$ac_objext conftest.$ac_ext
14339# Binary search between lo and hi bounds.
14340while test "x$ac_lo" != "x$ac_hi"; do
14341 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14342 cat >conftest.$ac_ext <<_ACEOF
14343#line $LINENO "configure"
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349$ac_includes_default
14350int
14351main ()
14352{
14353static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14354test_array [0] = 0
14355
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360rm -f conftest.$ac_objext
14361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
14372 ac_hi=$ac_mid
14373else
14374 echo "$as_me: failed program was:" >&5
14375sed 's/^/| /' conftest.$ac_ext >&5
14376
14377ac_lo=`expr '(' $ac_mid ')' + 1`
14378fi
14379rm -f conftest.$ac_objext conftest.$ac_ext
14380done
14381case $ac_lo in
14382?*) ac_cv_sizeof_short=$ac_lo;;
14383'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14384See \`config.log' for more details." >&5
14385echo "$as_me: error: cannot compute sizeof (short), 77
14386See \`config.log' for more details." >&2;}
14387 { (exit 1); exit 1; }; } ;;
14388esac
247f5006 14389else
e6cc62c6
VS
14390 if test "$cross_compiling" = yes; then
14391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14392See \`config.log' for more details." >&5
14393echo "$as_me: error: cannot run test program while cross compiling
14394See \`config.log' for more details." >&2;}
14395 { (exit 1); exit 1; }; }
14396else
14397 cat >conftest.$ac_ext <<_ACEOF
14398#line $LINENO "configure"
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404$ac_includes_default
14405long longval () { return (long) (sizeof (short)); }
14406unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14407#include <stdio.h>
e6cc62c6
VS
14408#include <stdlib.h>
14409int
14410main ()
a0b9e27f 14411{
e6cc62c6
VS
14412
14413 FILE *f = fopen ("conftest.val", "w");
14414 if (! f)
14415 exit (1);
14416 if (((long) (sizeof (short))) < 0)
14417 {
14418 long i = longval ();
14419 if (i != ((long) (sizeof (short))))
14420 exit (1);
14421 fprintf (f, "%ld\n", i);
14422 }
14423 else
14424 {
14425 unsigned long i = ulongval ();
14426 if (i != ((long) (sizeof (short))))
14427 exit (1);
14428 fprintf (f, "%lu\n", i);
14429 }
14430 exit (ferror (f) || fclose (f) != 0);
14431
14432 ;
14433 return 0;
a0b9e27f 14434}
e6cc62c6
VS
14435_ACEOF
14436rm -f conftest$ac_exeext
14437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_cv_sizeof_short=`cat conftest.val`
14448else
14449 echo "$as_me: program exited with status $ac_status" >&5
14450echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453( exit $ac_status )
14454{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14455See \`config.log' for more details." >&5
14456echo "$as_me: error: cannot compute sizeof (short), 77
14457See \`config.log' for more details." >&2;}
14458 { (exit 1); exit 1; }; }
14459fi
14460rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14461fi
14462fi
14463rm -f conftest.val
247f5006 14464else
a0b9e27f 14465 ac_cv_sizeof_short=0
247f5006 14466fi
247f5006 14467fi
e6cc62c6
VS
14468echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14469echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14470cat >>confdefs.h <<_ACEOF
14471#define SIZEOF_SHORT $ac_cv_sizeof_short
14472_ACEOF
14473
14474
14475echo "$as_me:$LINENO: checking for void *" >&5
14476echo $ECHO_N "checking for void *... $ECHO_C" >&6
14477if test "${ac_cv_type_void_p+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480 cat >conftest.$ac_ext <<_ACEOF
14481#line $LINENO "configure"
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487$ac_includes_default
14488int
14489main ()
14490{
14491if ((void * *) 0)
14492 return 0;
14493if (sizeof (void *))
14494 return 0;
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_cv_type_void_p=yes
14512else
14513 echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516ac_cv_type_void_p=no
14517fi
14518rm -f conftest.$ac_objext conftest.$ac_ext
14519fi
14520echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14521echo "${ECHO_T}$ac_cv_type_void_p" >&6
14522
14523echo "$as_me:$LINENO: checking size of void *" >&5
14524echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14525if test "${ac_cv_sizeof_void_p+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527else
14528 if test "$ac_cv_type_void_p" = yes; then
14529 # The cast to unsigned long works around a bug in the HP C Compiler
14530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14532 # This bug is HP SR number 8606223364.
14533 if test "$cross_compiling" = yes; then
14534 # Depending upon the size, compute the lo and hi bounds.
14535cat >conftest.$ac_ext <<_ACEOF
14536#line $LINENO "configure"
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
14541/* end confdefs.h. */
14542$ac_includes_default
14543int
14544main ()
14545{
14546static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14547test_array [0] = 0
14548
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -s conftest.$ac_objext'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_lo=0 ac_mid=0
14566 while :; do
14567 cat >conftest.$ac_ext <<_ACEOF
14568#line $LINENO "configure"
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575int
14576main ()
14577{
14578static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14579test_array [0] = 0
247f5006 14580
e6cc62c6
VS
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587 (eval $ac_compile) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_hi=$ac_mid; break
14598else
14599 echo "$as_me: failed program was:" >&5
14600sed 's/^/| /' conftest.$ac_ext >&5
14601
14602ac_lo=`expr $ac_mid + 1`
14603 if test $ac_lo -le $ac_mid; then
14604 ac_lo= ac_hi=
14605 break
14606 fi
14607 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14608fi
e6cc62c6
VS
14609rm -f conftest.$ac_objext conftest.$ac_ext
14610 done
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615cat >conftest.$ac_ext <<_ACEOF
14616#line $LINENO "configure"
14617/* confdefs.h. */
14618_ACEOF
14619cat confdefs.h >>conftest.$ac_ext
14620cat >>conftest.$ac_ext <<_ACEOF
14621/* end confdefs.h. */
14622$ac_includes_default
14623int
14624main ()
14625{
14626static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14627test_array [0] = 0
247f5006 14628
e6cc62c6
VS
14629 ;
14630 return 0;
14631}
14632_ACEOF
14633rm -f conftest.$ac_objext
14634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635 (eval $ac_compile) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_hi=-1 ac_mid=-1
14646 while :; do
14647 cat >conftest.$ac_ext <<_ACEOF
14648#line $LINENO "configure"
14649/* confdefs.h. */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h. */
14654$ac_includes_default
14655int
14656main ()
14657{
14658static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14659test_array [0] = 0
247f5006 14660
e6cc62c6
VS
14661 ;
14662 return 0;
14663}
14664_ACEOF
14665rm -f conftest.$ac_objext
14666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_lo=$ac_mid; break
14678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682ac_hi=`expr '(' $ac_mid ')' - 1`
14683 if test $ac_mid -le $ac_hi; then
14684 ac_lo= ac_hi=
14685 break
14686 fi
14687 ac_mid=`expr 2 '*' $ac_mid`
14688fi
14689rm -f conftest.$ac_objext conftest.$ac_ext
14690 done
a0b9e27f 14691else
e6cc62c6
VS
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695ac_lo= ac_hi=
14696fi
14697rm -f conftest.$ac_objext conftest.$ac_ext
14698fi
14699rm -f conftest.$ac_objext conftest.$ac_ext
14700# Binary search between lo and hi bounds.
14701while test "x$ac_lo" != "x$ac_hi"; do
14702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14703 cat >conftest.$ac_ext <<_ACEOF
14704#line $LINENO "configure"
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14715test_array [0] = 0
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -s conftest.$ac_objext'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ac_hi=$ac_mid
14734else
14735 echo "$as_me: failed program was:" >&5
14736sed 's/^/| /' conftest.$ac_ext >&5
14737
14738ac_lo=`expr '(' $ac_mid ')' + 1`
14739fi
14740rm -f conftest.$ac_objext conftest.$ac_ext
14741done
14742case $ac_lo in
14743?*) ac_cv_sizeof_void_p=$ac_lo;;
14744'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14745See \`config.log' for more details." >&5
14746echo "$as_me: error: cannot compute sizeof (void *), 77
14747See \`config.log' for more details." >&2;}
14748 { (exit 1); exit 1; }; } ;;
14749esac
247f5006 14750else
e6cc62c6
VS
14751 if test "$cross_compiling" = yes; then
14752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14753See \`config.log' for more details." >&5
14754echo "$as_me: error: cannot run test program while cross compiling
14755See \`config.log' for more details." >&2;}
14756 { (exit 1); exit 1; }; }
14757else
14758 cat >conftest.$ac_ext <<_ACEOF
14759#line $LINENO "configure"
14760/* confdefs.h. */
14761_ACEOF
14762cat confdefs.h >>conftest.$ac_ext
14763cat >>conftest.$ac_ext <<_ACEOF
14764/* end confdefs.h. */
14765$ac_includes_default
14766long longval () { return (long) (sizeof (void *)); }
14767unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14768#include <stdio.h>
e6cc62c6
VS
14769#include <stdlib.h>
14770int
14771main ()
247f5006 14772{
e6cc62c6
VS
14773
14774 FILE *f = fopen ("conftest.val", "w");
14775 if (! f)
14776 exit (1);
14777 if (((long) (sizeof (void *))) < 0)
14778 {
14779 long i = longval ();
14780 if (i != ((long) (sizeof (void *))))
14781 exit (1);
14782 fprintf (f, "%ld\n", i);
14783 }
14784 else
14785 {
14786 unsigned long i = ulongval ();
14787 if (i != ((long) (sizeof (void *))))
14788 exit (1);
14789 fprintf (f, "%lu\n", i);
14790 }
14791 exit (ferror (f) || fclose (f) != 0);
14792
14793 ;
14794 return 0;
5c6fa7d2 14795}
e6cc62c6
VS
14796_ACEOF
14797rm -f conftest$ac_exeext
14798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_cv_sizeof_void_p=`cat conftest.val`
14809else
14810 echo "$as_me: program exited with status $ac_status" >&5
14811echo "$as_me: failed program was:" >&5
14812sed 's/^/| /' conftest.$ac_ext >&5
14813
14814( exit $ac_status )
14815{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14816See \`config.log' for more details." >&5
14817echo "$as_me: error: cannot compute sizeof (void *), 77
14818See \`config.log' for more details." >&2;}
14819 { (exit 1); exit 1; }; }
14820fi
14821rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14822fi
14823fi
14824rm -f conftest.val
a0b9e27f 14825else
a0b9e27f
MB
14826 ac_cv_sizeof_void_p=0
14827fi
a0b9e27f 14828fi
e6cc62c6
VS
14829echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14830echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14831cat >>confdefs.h <<_ACEOF
14832#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14833_ACEOF
14834
14835
14836echo "$as_me:$LINENO: checking for int" >&5
14837echo $ECHO_N "checking for int... $ECHO_C" >&6
14838if test "${ac_cv_type_int+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840else
14841 cat >conftest.$ac_ext <<_ACEOF
14842#line $LINENO "configure"
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849int
14850main ()
14851{
14852if ((int *) 0)
14853 return 0;
14854if (sizeof (int))
14855 return 0;
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_type_int=yes
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877ac_cv_type_int=no
14878fi
14879rm -f conftest.$ac_objext conftest.$ac_ext
14880fi
14881echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14882echo "${ECHO_T}$ac_cv_type_int" >&6
14883
14884echo "$as_me:$LINENO: checking size of int" >&5
14885echo $ECHO_N "checking size of int... $ECHO_C" >&6
14886if test "${ac_cv_sizeof_int+set}" = set; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14888else
14889 if test "$ac_cv_type_int" = yes; then
14890 # The cast to unsigned long works around a bug in the HP C Compiler
14891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14893 # This bug is HP SR number 8606223364.
14894 if test "$cross_compiling" = yes; then
14895 # Depending upon the size, compute the lo and hi bounds.
14896cat >conftest.$ac_ext <<_ACEOF
14897#line $LINENO "configure"
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903$ac_includes_default
14904int
14905main ()
14906{
14907static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14908test_array [0] = 0
8284b0c5 14909
e6cc62c6
VS
14910 ;
14911 return 0;
14912}
14913_ACEOF
14914rm -f conftest.$ac_objext
14915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 ac_lo=0 ac_mid=0
14927 while :; do
14928 cat >conftest.$ac_ext <<_ACEOF
14929#line $LINENO "configure"
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935$ac_includes_default
14936int
14937main ()
14938{
14939static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14940test_array [0] = 0
14941
14942 ;
14943 return 0;
14944}
14945_ACEOF
14946rm -f conftest.$ac_objext
14947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948 (eval $ac_compile) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_hi=$ac_mid; break
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
14963ac_lo=`expr $ac_mid + 1`
14964 if test $ac_lo -le $ac_mid; then
14965 ac_lo= ac_hi=
14966 break
14967 fi
14968 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14969fi
e6cc62c6
VS
14970rm -f conftest.$ac_objext conftest.$ac_ext
14971 done
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976cat >conftest.$ac_ext <<_ACEOF
14977#line $LINENO "configure"
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983$ac_includes_default
14984int
14985main ()
14986{
14987static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14988test_array [0] = 0
247f5006 14989
e6cc62c6
VS
14990 ;
14991 return 0;
14992}
14993_ACEOF
14994rm -f conftest.$ac_objext
14995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996 (eval $ac_compile) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_hi=-1 ac_mid=-1
15007 while :; do
15008 cat >conftest.$ac_ext <<_ACEOF
15009#line $LINENO "configure"
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016int
15017main ()
15018{
15019static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15020test_array [0] = 0
247f5006 15021
e6cc62c6
VS
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_lo=$ac_mid; break
15039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043ac_hi=`expr '(' $ac_mid ')' - 1`
15044 if test $ac_mid -le $ac_hi; then
15045 ac_lo= ac_hi=
15046 break
15047 fi
15048 ac_mid=`expr 2 '*' $ac_mid`
15049fi
15050rm -f conftest.$ac_objext conftest.$ac_ext
15051 done
247f5006 15052else
e6cc62c6
VS
15053 echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
15056ac_lo= ac_hi=
15057fi
15058rm -f conftest.$ac_objext conftest.$ac_ext
15059fi
15060rm -f conftest.$ac_objext conftest.$ac_ext
15061# Binary search between lo and hi bounds.
15062while test "x$ac_lo" != "x$ac_hi"; do
15063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15064 cat >conftest.$ac_ext <<_ACEOF
15065#line $LINENO "configure"
15066/* confdefs.h. */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h. */
15071$ac_includes_default
15072int
15073main ()
15074{
15075static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15076test_array [0] = 0
15077
15078 ;
15079 return 0;
15080}
15081_ACEOF
15082rm -f conftest.$ac_objext
15083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084 (eval $ac_compile) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_hi=$ac_mid
15095else
15096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099ac_lo=`expr '(' $ac_mid ')' + 1`
15100fi
15101rm -f conftest.$ac_objext conftest.$ac_ext
15102done
15103case $ac_lo in
15104?*) ac_cv_sizeof_int=$ac_lo;;
15105'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15106See \`config.log' for more details." >&5
15107echo "$as_me: error: cannot compute sizeof (int), 77
15108See \`config.log' for more details." >&2;}
15109 { (exit 1); exit 1; }; } ;;
15110esac
a0b9e27f 15111else
e6cc62c6
VS
15112 if test "$cross_compiling" = yes; then
15113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15114See \`config.log' for more details." >&5
15115echo "$as_me: error: cannot run test program while cross compiling
15116See \`config.log' for more details." >&2;}
15117 { (exit 1); exit 1; }; }
15118else
15119 cat >conftest.$ac_ext <<_ACEOF
15120#line $LINENO "configure"
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126$ac_includes_default
15127long longval () { return (long) (sizeof (int)); }
15128unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15129#include <stdio.h>
e6cc62c6
VS
15130#include <stdlib.h>
15131int
15132main ()
247f5006 15133{
e6cc62c6
VS
15134
15135 FILE *f = fopen ("conftest.val", "w");
15136 if (! f)
15137 exit (1);
15138 if (((long) (sizeof (int))) < 0)
15139 {
15140 long i = longval ();
15141 if (i != ((long) (sizeof (int))))
15142 exit (1);
15143 fprintf (f, "%ld\n", i);
15144 }
15145 else
15146 {
15147 unsigned long i = ulongval ();
15148 if (i != ((long) (sizeof (int))))
15149 exit (1);
15150 fprintf (f, "%lu\n", i);
15151 }
15152 exit (ferror (f) || fclose (f) != 0);
15153
15154 ;
15155 return 0;
247f5006 15156}
e6cc62c6
VS
15157_ACEOF
15158rm -f conftest$ac_exeext
15159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160 (eval $ac_link) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_sizeof_int=`cat conftest.val`
15170else
15171 echo "$as_me: program exited with status $ac_status" >&5
15172echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175( exit $ac_status )
15176{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15177See \`config.log' for more details." >&5
15178echo "$as_me: error: cannot compute sizeof (int), 77
15179See \`config.log' for more details." >&2;}
15180 { (exit 1); exit 1; }; }
15181fi
15182rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15183fi
15184fi
15185rm -f conftest.val
6f72b082 15186else
a0b9e27f 15187 ac_cv_sizeof_int=0
21d1c967 15188fi
698dcdb6 15189fi
e6cc62c6
VS
15190echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15191echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15192cat >>confdefs.h <<_ACEOF
15193#define SIZEOF_INT $ac_cv_sizeof_int
15194_ACEOF
15195
15196
15197echo "$as_me:$LINENO: checking for long" >&5
15198echo $ECHO_N "checking for long... $ECHO_C" >&6
15199if test "${ac_cv_type_long+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
15202 cat >conftest.$ac_ext <<_ACEOF
15203#line $LINENO "configure"
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209$ac_includes_default
15210int
15211main ()
15212{
15213if ((long *) 0)
15214 return 0;
15215if (sizeof (long))
15216 return 0;
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_type_long=yes
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238ac_cv_type_long=no
15239fi
15240rm -f conftest.$ac_objext conftest.$ac_ext
15241fi
15242echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15243echo "${ECHO_T}$ac_cv_type_long" >&6
15244
15245echo "$as_me:$LINENO: checking size of long" >&5
15246echo $ECHO_N "checking size of long... $ECHO_C" >&6
15247if test "${ac_cv_sizeof_long+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249else
15250 if test "$ac_cv_type_long" = yes; then
15251 # The cast to unsigned long works around a bug in the HP C Compiler
15252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15254 # This bug is HP SR number 8606223364.
15255 if test "$cross_compiling" = yes; then
15256 # Depending upon the size, compute the lo and hi bounds.
15257cat >conftest.$ac_ext <<_ACEOF
15258#line $LINENO "configure"
15259/* confdefs.h. */
15260_ACEOF
15261cat confdefs.h >>conftest.$ac_ext
15262cat >>conftest.$ac_ext <<_ACEOF
15263/* end confdefs.h. */
15264$ac_includes_default
15265int
15266main ()
15267{
15268static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15269test_array [0] = 0
15270
15271 ;
15272 return 0;
15273}
15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277 (eval $ac_compile) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_lo=0 ac_mid=0
15288 while :; do
15289 cat >conftest.$ac_ext <<_ACEOF
15290#line $LINENO "configure"
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296$ac_includes_default
15297int
15298main ()
15299{
15300static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15301test_array [0] = 0
4f14bcd8 15302
e6cc62c6
VS
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307rm -f conftest.$ac_objext
15308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309 (eval $ac_compile) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_hi=$ac_mid; break
15320else
15321 echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324ac_lo=`expr $ac_mid + 1`
15325 if test $ac_lo -le $ac_mid; then
15326 ac_lo= ac_hi=
15327 break
15328 fi
15329 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15330fi
e6cc62c6
VS
15331rm -f conftest.$ac_objext conftest.$ac_ext
15332 done
15333else
15334 echo "$as_me: failed program was:" >&5
15335sed 's/^/| /' conftest.$ac_ext >&5
15336
15337cat >conftest.$ac_ext <<_ACEOF
15338#line $LINENO "configure"
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344$ac_includes_default
15345int
15346main ()
15347{
15348static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15349test_array [0] = 0
4f14bcd8 15350
e6cc62c6
VS
15351 ;
15352 return 0;
15353}
15354_ACEOF
15355rm -f conftest.$ac_objext
15356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357 (eval $ac_compile) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -s conftest.$ac_objext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_hi=-1 ac_mid=-1
15368 while :; do
15369 cat >conftest.$ac_ext <<_ACEOF
15370#line $LINENO "configure"
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
15375/* end confdefs.h. */
15376$ac_includes_default
15377int
15378main ()
15379{
15380static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15381test_array [0] = 0
5c6fa7d2 15382
e6cc62c6
VS
15383 ;
15384 return 0;
15385}
15386_ACEOF
15387rm -f conftest.$ac_objext
15388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_lo=$ac_mid; break
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_hi=`expr '(' $ac_mid ')' - 1`
15405 if test $ac_mid -le $ac_hi; then
15406 ac_lo= ac_hi=
15407 break
15408 fi
15409 ac_mid=`expr 2 '*' $ac_mid`
15410fi
15411rm -f conftest.$ac_objext conftest.$ac_ext
15412 done
247f5006 15413else
e6cc62c6
VS
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417ac_lo= ac_hi=
15418fi
15419rm -f conftest.$ac_objext conftest.$ac_ext
15420fi
15421rm -f conftest.$ac_objext conftest.$ac_ext
15422# Binary search between lo and hi bounds.
15423while test "x$ac_lo" != "x$ac_hi"; do
15424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15425 cat >conftest.$ac_ext <<_ACEOF
15426#line $LINENO "configure"
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
15436static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15437test_array [0] = 0
15438
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445 (eval $ac_compile) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest.$ac_objext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455 ac_hi=$ac_mid
15456else
15457 echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460ac_lo=`expr '(' $ac_mid ')' + 1`
15461fi
15462rm -f conftest.$ac_objext conftest.$ac_ext
15463done
15464case $ac_lo in
15465?*) ac_cv_sizeof_long=$ac_lo;;
15466'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15467See \`config.log' for more details." >&5
15468echo "$as_me: error: cannot compute sizeof (long), 77
15469See \`config.log' for more details." >&2;}
15470 { (exit 1); exit 1; }; } ;;
15471esac
247f5006 15472else
e6cc62c6
VS
15473 if test "$cross_compiling" = yes; then
15474 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15475See \`config.log' for more details." >&5
15476echo "$as_me: error: cannot run test program while cross compiling
15477See \`config.log' for more details." >&2;}
15478 { (exit 1); exit 1; }; }
15479else
15480 cat >conftest.$ac_ext <<_ACEOF
15481#line $LINENO "configure"
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487$ac_includes_default
15488long longval () { return (long) (sizeof (long)); }
15489unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15490#include <stdio.h>
e6cc62c6
VS
15491#include <stdlib.h>
15492int
15493main ()
247f5006 15494{
e6cc62c6
VS
15495
15496 FILE *f = fopen ("conftest.val", "w");
15497 if (! f)
15498 exit (1);
15499 if (((long) (sizeof (long))) < 0)
15500 {
15501 long i = longval ();
15502 if (i != ((long) (sizeof (long))))
15503 exit (1);
15504 fprintf (f, "%ld\n", i);
15505 }
15506 else
15507 {
15508 unsigned long i = ulongval ();
15509 if (i != ((long) (sizeof (long))))
15510 exit (1);
15511 fprintf (f, "%lu\n", i);
15512 }
15513 exit (ferror (f) || fclose (f) != 0);
15514
15515 ;
15516 return 0;
247f5006 15517}
e6cc62c6
VS
15518_ACEOF
15519rm -f conftest$ac_exeext
15520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>&5
15522 ac_status=$?
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 ac_cv_sizeof_long=`cat conftest.val`
15531else
15532 echo "$as_me: program exited with status $ac_status" >&5
15533echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
15536( exit $ac_status )
15537{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15538See \`config.log' for more details." >&5
15539echo "$as_me: error: cannot compute sizeof (long), 77
15540See \`config.log' for more details." >&2;}
15541 { (exit 1); exit 1; }; }
15542fi
15543rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15544fi
15545fi
15546rm -f conftest.val
247f5006 15547else
a0b9e27f 15548 ac_cv_sizeof_long=0
247f5006 15549fi
247f5006 15550fi
e6cc62c6
VS
15551echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15552echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15553cat >>confdefs.h <<_ACEOF
a0b9e27f 15554#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15555_ACEOF
247f5006 15556
a0b9e27f
MB
15557
15558
15559case "${host}" in
15560 arm-*-linux* )
e6cc62c6
VS
15561 echo "$as_me:$LINENO: checking for long long" >&5
15562echo $ECHO_N "checking for long long... $ECHO_C" >&6
15563if test "${ac_cv_type_long_long+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565else
15566 cat >conftest.$ac_ext <<_ACEOF
15567#line $LINENO "configure"
15568/* confdefs.h. */
15569_ACEOF
15570cat confdefs.h >>conftest.$ac_ext
15571cat >>conftest.$ac_ext <<_ACEOF
15572/* end confdefs.h. */
15573$ac_includes_default
15574int
15575main ()
15576{
15577if ((long long *) 0)
15578 return 0;
15579if (sizeof (long long))
15580 return 0;
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_type_long_long=yes
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_cv_type_long_long=no
15603fi
15604rm -f conftest.$ac_objext conftest.$ac_ext
15605fi
15606echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15607echo "${ECHO_T}$ac_cv_type_long_long" >&6
15608
15609echo "$as_me:$LINENO: checking size of long long" >&5
15610echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15611if test "${ac_cv_sizeof_long_long+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613else
15614 if test "$ac_cv_type_long_long" = yes; then
15615 # The cast to unsigned long works around a bug in the HP C Compiler
15616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15618 # This bug is HP SR number 8606223364.
a0b9e27f 15619 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15620 # Depending upon the size, compute the lo and hi bounds.
15621cat >conftest.$ac_ext <<_ACEOF
15622#line $LINENO "configure"
15623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
15628$ac_includes_default
15629int
15630main ()
15631{
15632static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15633test_array [0] = 0
15634
15635 ;
15636 return 0;
15637}
15638_ACEOF
15639rm -f conftest.$ac_objext
15640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -s conftest.$ac_objext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_lo=0 ac_mid=0
15652 while :; do
15653 cat >conftest.$ac_ext <<_ACEOF
15654#line $LINENO "configure"
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660$ac_includes_default
15661int
15662main ()
15663{
15664static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15665test_array [0] = 0
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext
15672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_hi=$ac_mid; break
15684else
15685 echo "$as_me: failed program was:" >&5
15686sed 's/^/| /' conftest.$ac_ext >&5
15687
15688ac_lo=`expr $ac_mid + 1`
15689 if test $ac_lo -le $ac_mid; then
15690 ac_lo= ac_hi=
15691 break
15692 fi
15693 ac_mid=`expr 2 '*' $ac_mid + 1`
15694fi
15695rm -f conftest.$ac_objext conftest.$ac_ext
15696 done
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701cat >conftest.$ac_ext <<_ACEOF
15702#line $LINENO "configure"
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708$ac_includes_default
15709int
15710main ()
15711{
15712static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15713test_array [0] = 0
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext
15720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_hi=-1 ac_mid=-1
15732 while :; do
15733 cat >conftest.$ac_ext <<_ACEOF
15734#line $LINENO "configure"
15735/* confdefs.h. */
15736_ACEOF
15737cat confdefs.h >>conftest.$ac_ext
15738cat >>conftest.$ac_ext <<_ACEOF
15739/* end confdefs.h. */
15740$ac_includes_default
15741int
15742main ()
15743{
15744static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15745test_array [0] = 0
15746
15747 ;
15748 return 0;
15749}
15750_ACEOF
15751rm -f conftest.$ac_objext
15752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_lo=$ac_mid; break
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768ac_hi=`expr '(' $ac_mid ')' - 1`
15769 if test $ac_mid -le $ac_hi; then
15770 ac_lo= ac_hi=
15771 break
15772 fi
15773 ac_mid=`expr 2 '*' $ac_mid`
15774fi
15775rm -f conftest.$ac_objext conftest.$ac_ext
15776 done
15777else
15778 echo "$as_me: failed program was:" >&5
15779sed 's/^/| /' conftest.$ac_ext >&5
15780
15781ac_lo= ac_hi=
15782fi
15783rm -f conftest.$ac_objext conftest.$ac_ext
15784fi
15785rm -f conftest.$ac_objext conftest.$ac_ext
15786# Binary search between lo and hi bounds.
15787while test "x$ac_lo" != "x$ac_hi"; do
15788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15789 cat >conftest.$ac_ext <<_ACEOF
15790#line $LINENO "configure"
15791/* confdefs.h. */
15792_ACEOF
15793cat confdefs.h >>conftest.$ac_ext
15794cat >>conftest.$ac_ext <<_ACEOF
15795/* end confdefs.h. */
15796$ac_includes_default
15797int
15798main ()
15799{
15800static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15801test_array [0] = 0
15802
15803 ;
15804 return 0;
15805}
15806_ACEOF
15807rm -f conftest.$ac_objext
15808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -s conftest.$ac_objext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15819 ac_hi=$ac_mid
15820else
15821 echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824ac_lo=`expr '(' $ac_mid ')' + 1`
15825fi
15826rm -f conftest.$ac_objext conftest.$ac_ext
15827done
15828case $ac_lo in
15829?*) ac_cv_sizeof_long_long=$ac_lo;;
15830'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15831See \`config.log' for more details." >&5
15832echo "$as_me: error: cannot compute sizeof (long long), 77
15833See \`config.log' for more details." >&2;}
15834 { (exit 1); exit 1; }; } ;;
15835esac
a0b9e27f 15836else
e6cc62c6
VS
15837 if test "$cross_compiling" = yes; then
15838 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15839See \`config.log' for more details." >&5
15840echo "$as_me: error: cannot run test program while cross compiling
15841See \`config.log' for more details." >&2;}
15842 { (exit 1); exit 1; }; }
15843else
15844 cat >conftest.$ac_ext <<_ACEOF
15845#line $LINENO "configure"
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851$ac_includes_default
15852long longval () { return (long) (sizeof (long long)); }
15853unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15854#include <stdio.h>
e6cc62c6
VS
15855#include <stdlib.h>
15856int
15857main ()
247f5006 15858{
e6cc62c6
VS
15859
15860 FILE *f = fopen ("conftest.val", "w");
15861 if (! f)
15862 exit (1);
15863 if (((long) (sizeof (long long))) < 0)
15864 {
15865 long i = longval ();
15866 if (i != ((long) (sizeof (long long))))
15867 exit (1);
15868 fprintf (f, "%ld\n", i);
15869 }
15870 else
15871 {
15872 unsigned long i = ulongval ();
15873 if (i != ((long) (sizeof (long long))))
15874 exit (1);
15875 fprintf (f, "%lu\n", i);
15876 }
15877 exit (ferror (f) || fclose (f) != 0);
15878
15879 ;
15880 return 0;
247f5006 15881}
e6cc62c6
VS
15882_ACEOF
15883rm -f conftest$ac_exeext
15884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 ac_cv_sizeof_long_long=`cat conftest.val`
15895else
15896 echo "$as_me: program exited with status $ac_status" >&5
15897echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900( exit $ac_status )
15901{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15902See \`config.log' for more details." >&5
15903echo "$as_me: error: cannot compute sizeof (long long), 77
15904See \`config.log' for more details." >&2;}
15905 { (exit 1); exit 1; }; }
15906fi
15907rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15908fi
15909fi
15910rm -f conftest.val
7b4a847f 15911else
a0b9e27f 15912 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15913fi
15914fi
e6cc62c6
VS
15915echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15916echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15917cat >>confdefs.h <<_ACEOF
15918#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15919_ACEOF
15920
15921
15922 ;;
15923 *-hp-hpux* )
15924 echo "$as_me:$LINENO: checking for long long" >&5
15925echo $ECHO_N "checking for long long... $ECHO_C" >&6
15926if test "${ac_cv_type_long_long+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928else
15929 cat >conftest.$ac_ext <<_ACEOF
15930#line $LINENO "configure"
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936$ac_includes_default
15937int
15938main ()
15939{
15940if ((long long *) 0)
15941 return 0;
15942if (sizeof (long long))
15943 return 0;
15944 ;
15945 return 0;
15946}
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15950 (eval $ac_compile) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_type_long_long=yes
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_cv_type_long_long=no
15966fi
15967rm -f conftest.$ac_objext conftest.$ac_ext
15968fi
15969echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15970echo "${ECHO_T}$ac_cv_type_long_long" >&6
15971
15972echo "$as_me:$LINENO: checking size of long long" >&5
15973echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15974if test "${ac_cv_sizeof_long_long+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15976else
15977 if test "$ac_cv_type_long_long" = yes; then
15978 # The cast to unsigned long works around a bug in the HP C Compiler
15979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15981 # This bug is HP SR number 8606223364.
15982 if test "$cross_compiling" = yes; then
15983 # Depending upon the size, compute the lo and hi bounds.
15984cat >conftest.$ac_ext <<_ACEOF
15985#line $LINENO "configure"
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991$ac_includes_default
15992int
15993main ()
15994{
15995static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15996test_array [0] = 0
15997
15998 ;
15999 return 0;
16000}
16001_ACEOF
16002rm -f conftest.$ac_objext
16003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_lo=0 ac_mid=0
16015 while :; do
16016 cat >conftest.$ac_ext <<_ACEOF
16017#line $LINENO "configure"
16018/* confdefs.h. */
16019_ACEOF
16020cat confdefs.h >>conftest.$ac_ext
16021cat >>conftest.$ac_ext <<_ACEOF
16022/* end confdefs.h. */
16023$ac_includes_default
16024int
16025main ()
16026{
16027static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16028test_array [0] = 0
8284b0c5 16029
e6cc62c6
VS
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034rm -f conftest.$ac_objext
16035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_hi=$ac_mid; break
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051ac_lo=`expr $ac_mid + 1`
16052 if test $ac_lo -le $ac_mid; then
16053 ac_lo= ac_hi=
16054 break
16055 fi
16056 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16057fi
e6cc62c6
VS
16058rm -f conftest.$ac_objext conftest.$ac_ext
16059 done
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064cat >conftest.$ac_ext <<_ACEOF
16065#line $LINENO "configure"
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071$ac_includes_default
16072int
16073main ()
16074{
16075static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16076test_array [0] = 0
a0b9e27f 16077
e6cc62c6
VS
16078 ;
16079 return 0;
16080}
16081_ACEOF
16082rm -f conftest.$ac_objext
16083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 ac_hi=-1 ac_mid=-1
16095 while :; do
16096 cat >conftest.$ac_ext <<_ACEOF
16097#line $LINENO "configure"
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104int
16105main ()
16106{
16107static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16108test_array [0] = 0
a0b9e27f 16109
e6cc62c6
VS
16110 ;
16111 return 0;
16112}
16113_ACEOF
16114rm -f conftest.$ac_objext
16115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_lo=$ac_mid; break
16127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131ac_hi=`expr '(' $ac_mid ')' - 1`
16132 if test $ac_mid -le $ac_hi; then
16133 ac_lo= ac_hi=
16134 break
16135 fi
16136 ac_mid=`expr 2 '*' $ac_mid`
16137fi
16138rm -f conftest.$ac_objext conftest.$ac_ext
16139 done
8284b0c5 16140else
e6cc62c6
VS
16141 echo "$as_me: failed program was:" >&5
16142sed 's/^/| /' conftest.$ac_ext >&5
16143
16144ac_lo= ac_hi=
16145fi
16146rm -f conftest.$ac_objext conftest.$ac_ext
16147fi
16148rm -f conftest.$ac_objext conftest.$ac_ext
16149# Binary search between lo and hi bounds.
16150while test "x$ac_lo" != "x$ac_hi"; do
16151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16152 cat >conftest.$ac_ext <<_ACEOF
16153#line $LINENO "configure"
16154/* confdefs.h. */
16155_ACEOF
16156cat confdefs.h >>conftest.$ac_ext
16157cat >>conftest.$ac_ext <<_ACEOF
16158/* end confdefs.h. */
16159$ac_includes_default
16160int
16161main ()
16162{
16163static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16164test_array [0] = 0
16165
16166 ;
16167 return 0;
16168}
16169_ACEOF
16170rm -f conftest.$ac_objext
16171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16172 (eval $ac_compile) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -s conftest.$ac_objext'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ac_hi=$ac_mid
16183else
16184 echo "$as_me: failed program was:" >&5
16185sed 's/^/| /' conftest.$ac_ext >&5
16186
16187ac_lo=`expr '(' $ac_mid ')' + 1`
16188fi
16189rm -f conftest.$ac_objext conftest.$ac_ext
16190done
16191case $ac_lo in
16192?*) ac_cv_sizeof_long_long=$ac_lo;;
16193'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16194See \`config.log' for more details." >&5
16195echo "$as_me: error: cannot compute sizeof (long long), 77
16196See \`config.log' for more details." >&2;}
16197 { (exit 1); exit 1; }; } ;;
16198esac
8284b0c5 16199else
e6cc62c6
VS
16200 if test "$cross_compiling" = yes; then
16201 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16202See \`config.log' for more details." >&5
16203echo "$as_me: error: cannot run test program while cross compiling
16204See \`config.log' for more details." >&2;}
16205 { (exit 1); exit 1; }; }
16206else
16207 cat >conftest.$ac_ext <<_ACEOF
16208#line $LINENO "configure"
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214$ac_includes_default
16215long longval () { return (long) (sizeof (long long)); }
16216unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16217#include <stdio.h>
e6cc62c6
VS
16218#include <stdlib.h>
16219int
16220main ()
8284b0c5 16221{
e6cc62c6
VS
16222
16223 FILE *f = fopen ("conftest.val", "w");
16224 if (! f)
16225 exit (1);
16226 if (((long) (sizeof (long long))) < 0)
16227 {
16228 long i = longval ();
16229 if (i != ((long) (sizeof (long long))))
16230 exit (1);
16231 fprintf (f, "%ld\n", i);
16232 }
16233 else
16234 {
16235 unsigned long i = ulongval ();
16236 if (i != ((long) (sizeof (long long))))
16237 exit (1);
16238 fprintf (f, "%lu\n", i);
16239 }
16240 exit (ferror (f) || fclose (f) != 0);
16241
16242 ;
16243 return 0;
8284b0c5 16244}
e6cc62c6
VS
16245_ACEOF
16246rm -f conftest$ac_exeext
16247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_sizeof_long_long=`cat conftest.val`
16258else
16259 echo "$as_me: program exited with status $ac_status" >&5
16260echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263( exit $ac_status )
16264{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16265See \`config.log' for more details." >&5
16266echo "$as_me: error: cannot compute sizeof (long long), 77
16267See \`config.log' for more details." >&2;}
16268 { (exit 1); exit 1; }; }
16269fi
16270rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16271fi
16272fi
16273rm -f conftest.val
5c6fa7d2
RR
16274else
16275 ac_cv_sizeof_long_long=0
52127426 16276fi
4f57cf11 16277fi
e6cc62c6
VS
16278echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16279echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16280cat >>confdefs.h <<_ACEOF
4f57cf11 16281#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16282_ACEOF
4f57cf11
GD
16283
16284
16285 if test "$ac_cv_sizeof_long_long" != "0"; then
16286 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16287 fi
16288 ;;
16289 * )
e6cc62c6
VS
16290 echo "$as_me:$LINENO: checking for long long" >&5
16291echo $ECHO_N "checking for long long... $ECHO_C" >&6
16292if test "${ac_cv_type_long_long+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16294else
16295 cat >conftest.$ac_ext <<_ACEOF
16296#line $LINENO "configure"
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302$ac_includes_default
16303int
16304main ()
16305{
16306if ((long long *) 0)
16307 return 0;
16308if (sizeof (long long))
16309 return 0;
16310 ;
16311 return 0;
16312}
16313_ACEOF
16314rm -f conftest.$ac_objext
16315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_cv_type_long_long=yes
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331ac_cv_type_long_long=no
16332fi
16333rm -f conftest.$ac_objext conftest.$ac_ext
16334fi
16335echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16336echo "${ECHO_T}$ac_cv_type_long_long" >&6
16337
16338echo "$as_me:$LINENO: checking size of long long" >&5
16339echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16340if test "${ac_cv_sizeof_long_long+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 if test "$ac_cv_type_long_long" = yes; then
16344 # The cast to unsigned long works around a bug in the HP C Compiler
16345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16347 # This bug is HP SR number 8606223364.
4f57cf11 16348 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16349 # Depending upon the size, compute the lo and hi bounds.
16350cat >conftest.$ac_ext <<_ACEOF
16351#line $LINENO "configure"
16352/* confdefs.h. */
16353_ACEOF
16354cat confdefs.h >>conftest.$ac_ext
16355cat >>conftest.$ac_ext <<_ACEOF
16356/* end confdefs.h. */
16357$ac_includes_default
16358int
16359main ()
16360{
16361static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16362test_array [0] = 0
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368rm -f conftest.$ac_objext
16369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16370 (eval $ac_compile) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_lo=0 ac_mid=0
16381 while :; do
16382 cat >conftest.$ac_ext <<_ACEOF
16383#line $LINENO "configure"
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
16389$ac_includes_default
16390int
16391main ()
16392{
16393static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16394test_array [0] = 0
16395
16396 ;
16397 return 0;
16398}
16399_ACEOF
16400rm -f conftest.$ac_objext
16401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402 (eval $ac_compile) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_hi=$ac_mid; break
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417ac_lo=`expr $ac_mid + 1`
16418 if test $ac_lo -le $ac_mid; then
16419 ac_lo= ac_hi=
16420 break
16421 fi
16422 ac_mid=`expr 2 '*' $ac_mid + 1`
16423fi
16424rm -f conftest.$ac_objext conftest.$ac_ext
16425 done
16426else
16427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
16429
16430cat >conftest.$ac_ext <<_ACEOF
16431#line $LINENO "configure"
16432/* confdefs.h. */
16433_ACEOF
16434cat confdefs.h >>conftest.$ac_ext
16435cat >>conftest.$ac_ext <<_ACEOF
16436/* end confdefs.h. */
16437$ac_includes_default
16438int
16439main ()
16440{
16441static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16442test_array [0] = 0
16443
16444 ;
16445 return 0;
16446}
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450 (eval $ac_compile) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_hi=-1 ac_mid=-1
16461 while :; do
16462 cat >conftest.$ac_ext <<_ACEOF
16463#line $LINENO "configure"
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470int
16471main ()
16472{
16473static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16474test_array [0] = 0
16475
16476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_lo=$ac_mid; break
16493else
16494 echo "$as_me: failed program was:" >&5
16495sed 's/^/| /' conftest.$ac_ext >&5
16496
16497ac_hi=`expr '(' $ac_mid ')' - 1`
16498 if test $ac_mid -le $ac_hi; then
16499 ac_lo= ac_hi=
16500 break
16501 fi
16502 ac_mid=`expr 2 '*' $ac_mid`
16503fi
16504rm -f conftest.$ac_objext conftest.$ac_ext
16505 done
4f57cf11 16506else
e6cc62c6
VS
16507 echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
16509
16510ac_lo= ac_hi=
16511fi
16512rm -f conftest.$ac_objext conftest.$ac_ext
16513fi
16514rm -f conftest.$ac_objext conftest.$ac_ext
16515# Binary search between lo and hi bounds.
16516while test "x$ac_lo" != "x$ac_hi"; do
16517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16518 cat >conftest.$ac_ext <<_ACEOF
16519#line $LINENO "configure"
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526int
16527main ()
16528{
16529static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16530test_array [0] = 0
16531
16532 ;
16533 return 0;
16534}
16535_ACEOF
16536rm -f conftest.$ac_objext
16537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16538 (eval $ac_compile) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr '(' $ac_mid ')' + 1`
16554fi
16555rm -f conftest.$ac_objext conftest.$ac_ext
16556done
16557case $ac_lo in
16558?*) ac_cv_sizeof_long_long=$ac_lo;;
16559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16560See \`config.log' for more details." >&5
16561echo "$as_me: error: cannot compute sizeof (long long), 77
16562See \`config.log' for more details." >&2;}
16563 { (exit 1); exit 1; }; } ;;
16564esac
16565else
16566 if test "$cross_compiling" = yes; then
16567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16568See \`config.log' for more details." >&5
16569echo "$as_me: error: cannot run test program while cross compiling
16570See \`config.log' for more details." >&2;}
16571 { (exit 1); exit 1; }; }
16572else
16573 cat >conftest.$ac_ext <<_ACEOF
16574#line $LINENO "configure"
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580$ac_includes_default
16581long longval () { return (long) (sizeof (long long)); }
16582unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16583#include <stdio.h>
e6cc62c6
VS
16584#include <stdlib.h>
16585int
16586main ()
4f57cf11 16587{
e6cc62c6
VS
16588
16589 FILE *f = fopen ("conftest.val", "w");
16590 if (! f)
16591 exit (1);
16592 if (((long) (sizeof (long long))) < 0)
16593 {
16594 long i = longval ();
16595 if (i != ((long) (sizeof (long long))))
16596 exit (1);
16597 fprintf (f, "%ld\n", i);
16598 }
16599 else
16600 {
16601 unsigned long i = ulongval ();
16602 if (i != ((long) (sizeof (long long))))
16603 exit (1);
16604 fprintf (f, "%lu\n", i);
16605 }
16606 exit (ferror (f) || fclose (f) != 0);
16607
16608 ;
16609 return 0;
4f57cf11 16610}
e6cc62c6
VS
16611_ACEOF
16612rm -f conftest$ac_exeext
16613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_sizeof_long_long=`cat conftest.val`
16624else
16625 echo "$as_me: program exited with status $ac_status" >&5
16626echo "$as_me: failed program was:" >&5
16627sed 's/^/| /' conftest.$ac_ext >&5
16628
16629( exit $ac_status )
16630{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16631See \`config.log' for more details." >&5
16632echo "$as_me: error: cannot compute sizeof (long long), 77
16633See \`config.log' for more details." >&2;}
16634 { (exit 1); exit 1; }; }
16635fi
16636rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16637fi
16638fi
16639rm -f conftest.val
4f57cf11 16640else
4f57cf11
GD
16641 ac_cv_sizeof_long_long=0
16642fi
7b4a847f 16643fi
e6cc62c6
VS
16644echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16645echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16646cat >>confdefs.h <<_ACEOF
21d1c967 16647#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16648_ACEOF
9e691f46 16649
8284b0c5 16650
21d1c967
GD
16651esac
16652
e6cc62c6
VS
16653echo "$as_me:$LINENO: checking size of wchar_t" >&5
16654echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16655if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16657else
e6cc62c6 16658
21d1c967 16659 if test "$cross_compiling" = yes; then
e6cc62c6 16660
2b5f62a0
VZ
16661 case "${host}" in
16662 *-pc-msdosdjgpp )
16663 wx_cv_sizeof_wchar_t=0
16664 ;;
16665 * )
16666 wx_cv_sizeof_wchar_t=4
16667 ;;
16668 esac
e6cc62c6
VS
16669
16670
6f72b082 16671else
e6cc62c6
VS
16672 cat >conftest.$ac_ext <<_ACEOF
16673#line $LINENO "configure"
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
21d1c967 16679
2b5f62a0
VZ
16680 /* DJGPP only has fake wchar_t: */
16681 #ifdef __DJGPP__
16682 # error "fake wchar_t"
16683 #endif
21d1c967
GD
16684 #ifdef HAVE_WCHAR_H
16685 # ifdef __CYGWIN__
16686 # include <stddef.h>
16687 # endif
16688 # include <wchar.h>
16689 #endif
16690 #ifdef HAVE_STDLIB_H
16691 # include <stdlib.h>
16692 #endif
16693 #include <stdio.h>
16694 int main()
16695 {
16696 FILE *f=fopen("conftestval", "w");
16697 if (!f) exit(1);
16698 fprintf(f, "%i", sizeof(wchar_t));
16699 exit(0);
16700 }
e6cc62c6
VS
16701
16702_ACEOF
16703rm -f conftest$ac_exeext
16704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16705 (eval $ac_link) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
21d1c967 16714 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16715else
e6cc62c6
VS
16716 echo "$as_me: program exited with status $ac_status" >&5
16717echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720( exit $ac_status )
16721wx_cv_sizeof_wchar_t=0
6f72b082 16722fi
e6cc62c6 16723rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16724fi
6f72b082 16725
3f345b47 16726fi
e6cc62c6
VS
16727echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16728echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16729
e6cc62c6 16730cat >>confdefs.h <<_ACEOF
21d1c967 16731#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16732_ACEOF
90dd450c 16733
8284b0c5 16734
21d1c967
GD
16735# Check whether --enable-largefile or --disable-largefile was given.
16736if test "${enable_largefile+set}" = set; then
16737 enableval="$enable_largefile"
3f345b47 16738
e6cc62c6 16739fi;
21d1c967
GD
16740if test "$enable_largefile" != no; then
16741 wx_largefile=no
e6cc62c6
VS
16742
16743 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16744echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16745if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
16748
16749 cat >conftest.$ac_ext <<_ACEOF
16750#line $LINENO "configure"
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
21d1c967
GD
16756#define _FILE_OFFSET_BITS 64
16757 #include <sys/types.h>
e6cc62c6
VS
16758int
16759main ()
16760{
21d1c967
GD
16761typedef struct {
16762 unsigned int field: sizeof(off_t) == 8;
16763} wxlf;
16764
e6cc62c6
VS
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest.$ac_objext
16770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -s conftest.$ac_objext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
21d1c967 16781 ac_cv_sys_file_offset_bits=64
f6bcfd97 16782else
e6cc62c6
VS
16783 echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786ac_cv_sys_file_offset_bits=no
247f5006 16787fi
e6cc62c6
VS
16788rm -f conftest.$ac_objext conftest.$ac_ext
16789
a0b9e27f 16790
e6cc62c6
VS
16791fi
16792echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16793echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16794
16795 if test "$ac_cv_sys_file_offset_bits" != no; then
16796 wx_largefile=yes
e6cc62c6 16797 cat >>confdefs.h <<_ACEOF
21d1c967 16798#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16799_ACEOF
21d1c967
GD
16800
16801 fi
16802
16803 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16804
16805 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16806echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16807if test "${ac_cv_sys_large_files+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809else
16810
16811 cat >conftest.$ac_ext <<_ACEOF
16812#line $LINENO "configure"
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
21d1c967
GD
16818#define _LARGE_FILES 1
16819 #include <sys/types.h>
e6cc62c6
VS
16820int
16821main ()
16822{
21d1c967
GD
16823typedef struct {
16824 unsigned int field: sizeof(off_t) == 8;
16825} wxlf;
16826
e6cc62c6
VS
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833 (eval $ac_compile) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
21d1c967 16843 ac_cv_sys_large_files=1
f6bcfd97 16844else
e6cc62c6
VS
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848ac_cv_sys_large_files=no
247f5006 16849fi
e6cc62c6 16850rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16851
e6cc62c6
VS
16852
16853fi
16854echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16855echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16856
21d1c967
GD
16857 if test "$ac_cv_sys_large_files" != no; then
16858 wx_largefile=yes
e6cc62c6 16859 cat >>confdefs.h <<_ACEOF
21d1c967 16860#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16861_ACEOF
90dd450c 16862
90dd450c
VZ
16863 fi
16864
90dd450c 16865 fi
90dd450c 16866
e6cc62c6
VS
16867 echo "$as_me:$LINENO: checking if large file support is available" >&5
16868echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16869 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16870 cat >>confdefs.h <<\_ACEOF
21d1c967 16871#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16872_ACEOF
90dd450c 16873
90dd450c 16874 fi
e6cc62c6
VS
16875 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16876echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16877fi
90dd450c 16878
8284b0c5 16879
f02444d0 16880if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16881 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16882 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16883 else
e26c13cf 16884 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16885 fi
e26c13cf 16886 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16887fi
16888
e6cc62c6
VS
16889echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16890echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16891if test "${ac_cv_c_bigendian+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16893else
21d1c967
GD
16894 ac_cv_c_bigendian=unknown
16895# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16896cat >conftest.$ac_ext <<_ACEOF
16897#line $LINENO "configure"
16898/* confdefs.h. */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h. */
21d1c967
GD
16903#include <sys/types.h>
16904#include <sys/param.h>
e6cc62c6
VS
16905int
16906main ()
16907{
21d1c967
GD
16908
16909#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16910 bogus endian macros
16911#endif
e6cc62c6
VS
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
16917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918 (eval $ac_compile) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
21d1c967 16928 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16929cat >conftest.$ac_ext <<_ACEOF
16930#line $LINENO "configure"
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
21d1c967
GD
16936#include <sys/types.h>
16937#include <sys/param.h>
e6cc62c6
VS
16938int
16939main ()
16940{
21d1c967
GD
16941
16942#if BYTE_ORDER != BIG_ENDIAN
16943 not big endian
16944#endif
e6cc62c6
VS
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext
16950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16951 (eval $ac_compile) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
21d1c967 16961 ac_cv_c_bigendian=yes
3f345b47 16962else
e6cc62c6
VS
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966ac_cv_c_bigendian=no
3f345b47 16967fi
e6cc62c6 16968rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16969else
e6cc62c6
VS
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
3f345b47 16973fi
e6cc62c6 16974rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16975if test $ac_cv_c_bigendian = unknown; then
16976if test "$cross_compiling" = yes; then
16977 ac_cv_c_bigendian=unknown
10f2d63a 16978else
e6cc62c6
VS
16979 cat >conftest.$ac_ext <<_ACEOF
16980#line $LINENO "configure"
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
21d1c967
GD
16986main () {
16987 /* Are we little or big endian? From Harbison&Steele. */
16988 union
16989 {
16990 long l;
16991 char c[sizeof (long)];
16992 } u;
16993 u.l = 1;
16994 exit (u.c[sizeof (long) - 1] == 1);
16995}
e6cc62c6
VS
16996_ACEOF
16997rm -f conftest$ac_exeext
16998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16999 (eval $ac_link) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
21d1c967 17008 ac_cv_c_bigendian=no
3f345b47 17009else
e6cc62c6
VS
17010 echo "$as_me: program exited with status $ac_status" >&5
17011echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014( exit $ac_status )
17015ac_cv_c_bigendian=yes
247f5006 17016fi
e6cc62c6 17017rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17018fi
3f345b47 17019fi
8168de4c 17020fi
e6cc62c6
VS
17021echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17022echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17023if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17024 { 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
17025echo "$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
17026fi
17027if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17028 cat >>confdefs.h <<\_ACEOF
247f5006 17029#define WORDS_BIGENDIAN 1
e6cc62c6 17030_ACEOF
247f5006
VZ
17031
17032fi
17033
17034
e6cc62c6
VS
17035
17036ac_ext=cc
17037ac_cpp='$CXXCPP $CPPFLAGS'
17038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17041echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17042echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17043if test -z "$CXXCPP"; then
e6cc62c6
VS
17044 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 # Double quotes because CXXCPP needs to be expanded
17048 for CXXCPP in "$CXX -E" "/lib/cpp"
17049 do
17050 ac_preproc_ok=false
17051for ac_cxx_preproc_warn_flag in '' yes
17052do
17053 # Use a header file that comes with gcc, so configuring glibc
17054 # with a fresh cross-compiler works.
17055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17056 # <limits.h> exists even on freestanding compilers.
17057 # On the NeXT, cc -E runs the code through the compiler's parser,
17058 # not just through cpp. "Syntax error" is here to catch this case.
17059 cat >conftest.$ac_ext <<_ACEOF
17060#line $LINENO "configure"
17061/* confdefs.h. */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h. */
17066#ifdef __STDC__
17067# include <limits.h>
17068#else
17069# include <assert.h>
17070#endif
17071 Syntax error
17072_ACEOF
17073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } >/dev/null; then
17081 if test -s conftest.err; then
17082 ac_cpp_err=$ac_cxx_preproc_warn_flag
17083 else
17084 ac_cpp_err=
17085 fi
247f5006 17086else
e6cc62c6
VS
17087 ac_cpp_err=yes
17088fi
17089if test -z "$ac_cpp_err"; then
17090 :
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 # Broken: fails on valid input.
17096continue
17097fi
17098rm -f conftest.err conftest.$ac_ext
17099
17100 # OK, works on sane cases. Now check whether non-existent headers
17101 # can be detected and how.
17102 cat >conftest.$ac_ext <<_ACEOF
17103#line $LINENO "configure"
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109#include <ac_nonexistent.h>
17110_ACEOF
17111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } >/dev/null; then
17119 if test -s conftest.err; then
17120 ac_cpp_err=$ac_cxx_preproc_warn_flag
17121 else
17122 ac_cpp_err=
17123 fi
17124else
17125 ac_cpp_err=yes
17126fi
17127if test -z "$ac_cpp_err"; then
17128 # Broken: success on invalid input.
17129continue
17130else
17131 echo "$as_me: failed program was:" >&5
17132sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 # Passes both tests.
17135ac_preproc_ok=:
17136break
17137fi
17138rm -f conftest.err conftest.$ac_ext
17139
17140done
17141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17142rm -f conftest.err conftest.$ac_ext
17143if $ac_preproc_ok; then
17144 break
17145fi
17146
17147 done
17148 ac_cv_prog_CXXCPP=$CXXCPP
17149
17150fi
17151 CXXCPP=$ac_cv_prog_CXXCPP
17152else
17153 ac_cv_prog_CXXCPP=$CXXCPP
17154fi
17155echo "$as_me:$LINENO: result: $CXXCPP" >&5
17156echo "${ECHO_T}$CXXCPP" >&6
17157ac_preproc_ok=false
17158for ac_cxx_preproc_warn_flag in '' yes
17159do
17160 # Use a header file that comes with gcc, so configuring glibc
17161 # with a fresh cross-compiler works.
17162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 # <limits.h> exists even on freestanding compilers.
17164 # On the NeXT, cc -E runs the code through the compiler's parser,
17165 # not just through cpp. "Syntax error" is here to catch this case.
17166 cat >conftest.$ac_ext <<_ACEOF
17167#line $LINENO "configure"
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173#ifdef __STDC__
17174# include <limits.h>
17175#else
17176# include <assert.h>
17177#endif
17178 Syntax error
17179_ACEOF
17180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } >/dev/null; then
17188 if test -s conftest.err; then
17189 ac_cpp_err=$ac_cxx_preproc_warn_flag
17190 else
17191 ac_cpp_err=
17192 fi
17193else
17194 ac_cpp_err=yes
17195fi
17196if test -z "$ac_cpp_err"; then
21d1c967 17197 :
698dcdb6 17198else
e6cc62c6
VS
17199 echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 # Broken: fails on valid input.
17203continue
17204fi
17205rm -f conftest.err conftest.$ac_ext
17206
17207 # OK, works on sane cases. Now check whether non-existent headers
17208 # can be detected and how.
17209 cat >conftest.$ac_ext <<_ACEOF
17210#line $LINENO "configure"
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216#include <ac_nonexistent.h>
17217_ACEOF
17218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } >/dev/null; then
17226 if test -s conftest.err; then
17227 ac_cpp_err=$ac_cxx_preproc_warn_flag
17228 else
17229 ac_cpp_err=
17230 fi
17231else
17232 ac_cpp_err=yes
247f5006 17233fi
e6cc62c6
VS
17234if test -z "$ac_cpp_err"; then
17235 # Broken: success on invalid input.
17236continue
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241 # Passes both tests.
17242ac_preproc_ok=:
17243break
328a083c 17244fi
e6cc62c6
VS
17245rm -f conftest.err conftest.$ac_ext
17246
17247done
17248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17249rm -f conftest.err conftest.$ac_ext
17250if $ac_preproc_ok; then
17251 :
17252else
17253 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17254See \`config.log' for more details." >&5
17255echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17256See \`config.log' for more details." >&2;}
17257 { (exit 1); exit 1; }; }
90dd450c 17258fi
e6cc62c6
VS
17259
17260ac_ext=cc
17261ac_cpp='$CXXCPP $CPPFLAGS'
17262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17265
1e6feb95 17266
1725144d 17267
21d1c967 17268 if test "$cross_compiling" = "yes"; then
e6cc62c6 17269 cat >>confdefs.h <<\_ACEOF
21d1c967 17270#define wxUSE_IOSTREAMH 1
e6cc62c6 17271_ACEOF
ab9b9eab 17272
21d1c967 17273 else
e6cc62c6
VS
17274
17275
17276 ac_ext=cc
5c6fa7d2 17277ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17281
52127426 17282
247f5006 17283
e6cc62c6 17284for ac_header in iostream
21d1c967 17285do
e6cc62c6
VS
17286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17287if eval "test \"\${$as_ac_Header+set}\" = set"; then
17288 echo "$as_me:$LINENO: checking for $ac_header" >&5
17289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17290if eval "test \"\${$as_ac_Header+set}\" = set"; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292fi
17293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17295else
17296 # Is the header compilable?
17297echo "$as_me:$LINENO: checking $ac_header usability" >&5
17298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17299cat >conftest.$ac_ext <<_ACEOF
17300#line $LINENO "configure"
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306$ac_includes_default
17307#include <$ac_header>
17308_ACEOF
17309rm -f conftest.$ac_objext
17310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17311 (eval $ac_compile) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_header_compiler=yes
17322else
17323 echo "$as_me: failed program was:" >&5
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
17326ac_header_compiler=no
17327fi
17328rm -f conftest.$ac_objext conftest.$ac_ext
17329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17330echo "${ECHO_T}$ac_header_compiler" >&6
17331
17332# Is the header present?
17333echo "$as_me:$LINENO: checking $ac_header presence" >&5
17334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17335cat >conftest.$ac_ext <<_ACEOF
17336#line $LINENO "configure"
17337/* confdefs.h. */
17338_ACEOF
17339cat confdefs.h >>conftest.$ac_ext
17340cat >>conftest.$ac_ext <<_ACEOF
17341/* end confdefs.h. */
17342#include <$ac_header>
17343_ACEOF
17344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } >/dev/null; then
17352 if test -s conftest.err; then
17353 ac_cpp_err=$ac_cxx_preproc_warn_flag
17354 else
17355 ac_cpp_err=
17356 fi
17357else
17358 ac_cpp_err=yes
17359fi
17360if test -z "$ac_cpp_err"; then
17361 ac_header_preproc=yes
17362else
17363 echo "$as_me: failed program was:" >&5
17364sed 's/^/| /' conftest.$ac_ext >&5
17365
17366 ac_header_preproc=no
17367fi
17368rm -f conftest.err conftest.$ac_ext
17369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17370echo "${ECHO_T}$ac_header_preproc" >&6
17371
17372# So? What about this header?
17373case $ac_header_compiler:$ac_header_preproc in
17374 yes:no )
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17379 (
17380 cat <<\_ASBOX
17381## ------------------------------------ ##
17382## Report this to bug-autoconf@gnu.org. ##
17383## ------------------------------------ ##
17384_ASBOX
17385 ) |
17386 sed "s/^/$as_me: WARNING: /" >&2
17387 ;;
17388 no:yes )
17389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17392echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17395 (
17396 cat <<\_ASBOX
17397## ------------------------------------ ##
17398## Report this to bug-autoconf@gnu.org. ##
17399## ------------------------------------ ##
17400_ASBOX
17401 ) |
17402 sed "s/^/$as_me: WARNING: /" >&2
17403 ;;
17404esac
17405echo "$as_me:$LINENO: checking for $ac_header" >&5
17406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17407if eval "test \"\${$as_ac_Header+set}\" = set"; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409else
17410 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17411fi
e6cc62c6
VS
17412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17414
90dd450c 17415fi
e6cc62c6
VS
17416if test `eval echo '${'$as_ac_Header'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17419_ACEOF
17420
90dd450c 17421fi
e6cc62c6 17422
21d1c967 17423done
10f2d63a 17424
8284b0c5 17425
21d1c967
GD
17426 if test "$ac_cv_header_iostream" = "yes" ; then
17427 :
17428 else
e6cc62c6 17429 cat >>confdefs.h <<\_ACEOF
21d1c967 17430#define wxUSE_IOSTREAMH 1
e6cc62c6 17431_ACEOF
788deba1 17432
90dd450c 17433 fi
ab9b9eab 17434
21d1c967 17435 ac_ext=c
21d1c967 17436ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17440
21d1c967 17441 fi
ab9b9eab 17442
52127426 17443
8284b0c5 17444
e6cc62c6
VS
17445 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17446echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17447if test "${wx_cv_cpp_bool+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17449else
e6cc62c6
VS
17450
17451
17452
17453 ac_ext=cc
5c6fa7d2 17454ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17458
8284b0c5 17459
e6cc62c6
VS
17460 cat >conftest.$ac_ext <<_ACEOF
17461#line $LINENO "configure"
17462/* confdefs.h. */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h. */
21d1c967 17467
e6cc62c6
VS
17468
17469int
17470main ()
17471{
21d1c967
GD
17472
17473 bool b = true;
17474
17475 return 0;
e6cc62c6
VS
17476
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext
17482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493
21d1c967 17494 wx_cv_cpp_bool=yes
e6cc62c6 17495
698dcdb6 17496else
e6cc62c6
VS
17497 echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
17499
17500
21d1c967 17501 wx_cv_cpp_bool=no
e6cc62c6
VS
17502
17503
698dcdb6 17504fi
e6cc62c6 17505rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17506
17507 ac_ext=c
21d1c967 17508ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17511ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17512
a0b9e27f 17513
e6cc62c6
VS
17514fi
17515echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17516echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17517
17518 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17519 cat >>confdefs.h <<\_ACEOF
21d1c967 17520#define HAVE_BOOL 1
e6cc62c6 17521_ACEOF
ab9b9eab 17522
21d1c967
GD
17523 fi
17524
52127426 17525
8284b0c5 17526
e6cc62c6
VS
17527 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17528echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17529if test "${wx_cv_explicit+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17531else
e6cc62c6
VS
17532
17533
17534
17535 ac_ext=cc
5c6fa7d2 17536ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17540
8284b0c5 17541
e6cc62c6
VS
17542 cat >conftest.$ac_ext <<_ACEOF
17543#line $LINENO "configure"
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
986ecc86
VZ
17549
17550 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17551
17552int
17553main ()
17554{
986ecc86
VZ
17555
17556 return 0;
e6cc62c6
VS
17557
17558 ;
17559 return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564 (eval $ac_compile) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -s conftest.$ac_objext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574
17575 cat >conftest.$ac_ext <<_ACEOF
17576#line $LINENO "configure"
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
986ecc86
VZ
17582
17583 class Foo { public: explicit Foo(int) {} };
17584 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17585
17586int
17587main ()
17588{
986ecc86
VZ
17589
17590 TakeFoo(17);
17591 return 0;
e6cc62c6
VS
17592
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597rm -f conftest.$ac_objext
17598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599 (eval $ac_compile) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
986ecc86
VZ
17609 wx_cv_explicit=no
17610else
e6cc62c6
VS
17611 echo "$as_me: failed program was:" >&5
17612sed 's/^/| /' conftest.$ac_ext >&5
17613
17614wx_cv_explicit=yes
17615
986ecc86 17616fi
e6cc62c6
VS
17617rm -f conftest.$ac_objext conftest.$ac_ext
17618
986ecc86 17619else
e6cc62c6
VS
17620 echo "$as_me: failed program was:" >&5
17621sed 's/^/| /' conftest.$ac_ext >&5
17622
17623wx_cv_explicit=no
17624
986ecc86 17625fi
e6cc62c6 17626rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17627
17628 ac_ext=c
986ecc86 17629ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17632ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17633
a0b9e27f 17634
e6cc62c6
VS
17635fi
17636echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17637echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17638
17639 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17640 cat >>confdefs.h <<\_ACEOF
986ecc86 17641#define HAVE_EXPLICIT 1
e6cc62c6 17642_ACEOF
986ecc86
VZ
17643
17644 fi
17645
8284b0c5 17646
e6cc62c6
VS
17647echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17648echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17649if test "${ac_cv_cxx_const_cast+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17651else
521196a2 17652
521196a2 17653
e6cc62c6
VS
17654 ac_ext=cc
17655ac_cpp='$CXXCPP $CPPFLAGS'
17656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17659
17660 cat >conftest.$ac_ext <<_ACEOF
17661#line $LINENO "configure"
17662/* confdefs.h. */
17663_ACEOF
17664cat confdefs.h >>conftest.$ac_ext
17665cat >>conftest.$ac_ext <<_ACEOF
17666/* end confdefs.h. */
17667
17668int
17669main ()
17670{
521196a2 17671int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17672 ;
17673 return 0;
17674}
17675_ACEOF
17676rm -f conftest.$ac_objext
17677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678 (eval $ac_compile) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
521196a2
MB
17688 ac_cv_cxx_const_cast=yes
17689else
e6cc62c6
VS
17690 echo "$as_me: failed program was:" >&5
17691sed 's/^/| /' conftest.$ac_ext >&5
17692
17693ac_cv_cxx_const_cast=no
521196a2 17694fi
e6cc62c6 17695rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17696 ac_ext=c
521196a2 17697ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17700ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17701
17702
17703fi
e6cc62c6
VS
17704echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17705echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17706if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17707
17708cat >>confdefs.h <<\_ACEOF
17709#define HAVE_CONST_CAST
17710_ACEOF
521196a2
MB
17711
17712fi
17713
17714
e87b7833
MB
17715if test "$wxUSE_STL" = "yes"; then
17716 ac_ext=cc
17717ac_cpp='$CXXCPP $CPPFLAGS'
17718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722
17723 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17724echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17725 cat >conftest.$ac_ext <<_ACEOF
17726#line $LINENO "configure"
17727/* confdefs.h. */
17728_ACEOF
17729cat confdefs.h >>conftest.$ac_ext
17730cat >>conftest.$ac_ext <<_ACEOF
17731/* end confdefs.h. */
17732#include <string>
17733 #include <functional>
17734 #include <algorithm>
17735 #include <vector>
17736 #include <list>
17737int
17738main ()
17739{
17740std::vector<int> moo;
17741 std::list<int> foo;
17742 std::vector<int>::iterator it =
17743 std::find_if(moo.begin(), moo.end(),
17744 std::bind2nd(std::less<int>(), 3));
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext
17750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 echo "$as_me:$LINENO: result: yes" >&5
17762echo "${ECHO_T}yes" >&6
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767echo "$as_me:$LINENO: result: no" >&5
17768echo "${ECHO_T}no" >&6
17769 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17770echo "$as_me: error: Basic STL functionality missing" >&2;}
17771 { (exit 1); exit 1; }; }
17772fi
17773rm -f conftest.$ac_objext conftest.$ac_ext
17774
17775 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17776echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17778#line $LINENO "configure"
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784#include <string>
17785int
17786main ()
17787{
17788std::wstring foo;
17789 ;
17790 return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext
17794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 echo "$as_me:$LINENO: result: yes" >&5
17806echo "${ECHO_T}yes" >&6
17807 cat >>confdefs.h <<\_ACEOF
17808#define HAVE_STD_WSTRING 1
17809_ACEOF
17810
17811else
17812 echo "$as_me: failed program was:" >&5
17813sed 's/^/| /' conftest.$ac_ext >&5
17814
17815echo "$as_me:$LINENO: result: no" >&5
17816echo "${ECHO_T}no" >&6
17817fi
17818rm -f conftest.$ac_objext conftest.$ac_ext
17819
17820 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17821echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17822 cat >conftest.$ac_ext <<_ACEOF
17823#line $LINENO "configure"
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829#include <string>
17830int
17831main ()
17832{
17833std::string foo, bar;
17834 foo.compare(bar);
17835 foo.compare(1, 1, bar);
17836 foo.compare(1, 1, bar, 1, 1);
17837 foo.compare("");
17838 foo.compare(1, 1, "");
17839 foo.compare(1, 1, "", 2);
17840 ;
17841 return 0;
17842}
17843_ACEOF
17844rm -f conftest.$ac_objext
17845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846 (eval $ac_compile) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -s conftest.$ac_objext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 echo "$as_me:$LINENO: result: yes" >&5
17857echo "${ECHO_T}yes" >&6
17858 cat >>confdefs.h <<\_ACEOF
17859#define HAVE_STD_STRING_COMPARE 1
17860_ACEOF
17861
17862else
17863 echo "$as_me: failed program was:" >&5
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
17866echo "$as_me:$LINENO: result: no" >&5
17867echo "${ECHO_T}no" >&6
17868fi
17869rm -f conftest.$ac_objext conftest.$ac_ext
17870
17871 ac_ext=c
17872ac_cpp='$CPP $CPPFLAGS'
17873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17875ac_compiler_gnu=$ac_cv_c_compiler_gnu
17876
17877fi
17878
8284b0c5 17879
21d1c967
GD
17880SEARCH_INCLUDE="\
17881 /usr/local/include \
17882 \
17883 /usr/Motif-1.2/include \
17884 /usr/Motif-2.1/include \
17885 \
17886 /usr/include/Motif1.2 \
17887 /opt/xpm/include/X11 \
17888 /opt/GBxpm/include/ \
17889 /opt/GBxpm/X11/include/ \
17890 \
17891 /usr/Motif1.2/include \
17892 /usr/dt/include \
17893 /usr/openwin/include \
17894 \
17895 /usr/include/Xm \
17896 \
17897 /usr/X11R6/include \
17898 /usr/X11R6.4/include \
17899 /usr/X11R5/include \
17900 /usr/X11R4/include \
17901 \
17902 /usr/include/X11R6 \
17903 /usr/include/X11R5 \
17904 /usr/include/X11R4 \
17905 \
17906 /usr/local/X11R6/include \
17907 /usr/local/X11R5/include \
17908 /usr/local/X11R4/include \
17909 \
17910 /usr/local/include/X11R6 \
17911 /usr/local/include/X11R5 \
17912 /usr/local/include/X11R4 \
17913 \
17914 /usr/X11/include \
17915 /usr/include/X11 \
17916 /usr/local/X11/include \
17917 /usr/local/include/X11 \
17918 \
17919 /usr/X386/include \
17920 /usr/x386/include \
17921 /usr/XFree86/include/X11 \
17922 \
17923 X:/XFree86/include \
17924 X:/XFree86/include/X11 \
17925 \
17926 /usr/include/gtk \
17927 /usr/local/include/gtk \
17928 /usr/include/glib \
17929 /usr/local/include/glib \
17930 \
17931 /usr/include/qt \
17932 /usr/local/include/qt \
17933 \
17934 /usr/include/windows \
17935 /usr/include/wine \
17936 /usr/local/include/wine \
17937 \
17938 /usr/unsupported/include \
17939 /usr/athena/include \
17940 /usr/local/x11r5/include \
17941 /usr/lpp/Xamples/include \
17942 \
2b5f62a0 17943 /usr/openwin/share/include"
21d1c967
GD
17944
17945SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17946
8284b0c5 17947
e6cc62c6 17948cat >confcache <<\_ACEOF
21d1c967
GD
17949# This file is a shell script that caches the results of configure
17950# tests run on this system so they can be shared between configure
e6cc62c6
VS
17951# scripts and configure runs, see configure's option --config-cache.
17952# It is not useful on other systems. If it contains results you don't
17953# want to keep, you may remove or edit it.
21d1c967 17954#
e6cc62c6
VS
17955# config.status only pays attention to the cache file if you give it
17956# the --recheck option to rerun configure.
21d1c967 17957#
e6cc62c6
VS
17958# `ac_cv_env_foo' variables (set or unset) will be overridden when
17959# loading this file, other *unset* `ac_cv_foo' will be assigned the
17960# following values.
17961
17962_ACEOF
17963
21d1c967
GD
17964# The following way of writing the cache mishandles newlines in values,
17965# but we know of no workaround that is simple, portable, and efficient.
17966# So, don't put newlines in cache variables' values.
17967# Ultrix sh set writes to stderr and can't be redirected directly,
17968# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17969{
17970 (set) 2>&1 |
17971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17972 *ac_space=\ *)
17973 # `set' does not quote correctly, so add quotes (double-quote
17974 # substitution turns \\\\ into \\, and sed turns \\ into \).
17975 sed -n \
17976 "s/'/'\\\\''/g;
17977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17978 ;;
17979 *)
17980 # `set' quotes correctly as required by POSIX, so do not add quotes.
17981 sed -n \
17982 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17983 ;;
17984 esac;
17985} |
17986 sed '
17987 t clear
17988 : clear
17989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17990 t end
17991 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17992 : end' >>confcache
17993if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17994 if test -w $cache_file; then
e6cc62c6
VS
17995 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17996 cat confcache >$cache_file
21d1c967
GD
17997 else
17998 echo "not updating unwritable cache $cache_file"
17999 fi
ab9b9eab 18000fi
21d1c967 18001rm -f confcache
ab9b9eab 18002
fe0895cf 18003if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18004 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18005echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18006if test "${wx_cv_lib_glibc21+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008else
18009
18010 cat >conftest.$ac_ext <<_ACEOF
18011#line $LINENO "configure"
18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
21d1c967 18017#include <features.h>
e6cc62c6
VS
18018int
18019main ()
18020{
ab9b9eab 18021
21d1c967
GD
18022 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18023 #error not glibc2.1
18024 #endif
e6cc62c6
VS
18025
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest.$ac_objext
18031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -s conftest.$ac_objext'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042
21d1c967 18043 wx_cv_lib_glibc21=yes
e6cc62c6 18044
698dcdb6 18045else
e6cc62c6
VS
18046 echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
18049
21d1c967 18050 wx_cv_lib_glibc21=no
e6cc62c6
VS
18051
18052
247f5006 18053fi
e6cc62c6 18054rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18055
e6cc62c6
VS
18056fi
18057echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18058echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18059 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18060 cat >>confdefs.h <<\_ACEOF
21d1c967 18061#define wxHAVE_GLIBC2 1
e6cc62c6 18062_ACEOF
1e487827 18063
90dd450c 18064 fi
ab9b9eab
VZ
18065fi
18066
5c0a20c3
VZ
18067if test "x$wx_cv_lib_glibc21" = "xyes"; then
18068 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18069 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18070#define _GNU_SOURCE 1
e6cc62c6 18071_ACEOF
5c0a20c3
VZ
18072
18073 fi
18074fi
18075
8284b0c5
MB
18076
18077
21d1c967
GD
18078REGEX_INCLUDE=
18079if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18080 cat >>confdefs.h <<\_ACEOF
21d1c967 18081#define wxUSE_REGEX 1
e6cc62c6 18082_ACEOF
698dcdb6 18083
8284b0c5 18084
21d1c967 18085 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18086 if test "${ac_cv_header_regex_h+set}" = set; then
18087 echo "$as_me:$LINENO: checking for regex.h" >&5
18088echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18089if test "${ac_cv_header_regex_h+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091fi
18092echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18093echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18094else
18095 # Is the header compilable?
18096echo "$as_me:$LINENO: checking regex.h usability" >&5
18097echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18098cat >conftest.$ac_ext <<_ACEOF
18099#line $LINENO "configure"
18100/* confdefs.h. */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h. */
18105$ac_includes_default
247f5006 18106#include <regex.h>
e6cc62c6
VS
18107_ACEOF
18108rm -f conftest.$ac_objext
18109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18110 (eval $ac_compile) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -s conftest.$ac_objext'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_header_compiler=yes
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125ac_header_compiler=no
18126fi
18127rm -f conftest.$ac_objext conftest.$ac_ext
18128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18129echo "${ECHO_T}$ac_header_compiler" >&6
18130
18131# Is the header present?
18132echo "$as_me:$LINENO: checking regex.h presence" >&5
18133echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18134cat >conftest.$ac_ext <<_ACEOF
18135#line $LINENO "configure"
18136/* confdefs.h. */
18137_ACEOF
18138cat confdefs.h >>conftest.$ac_ext
18139cat >>conftest.$ac_ext <<_ACEOF
18140/* end confdefs.h. */
18141#include <regex.h>
18142_ACEOF
18143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } >/dev/null; then
18151 if test -s conftest.err; then
18152 ac_cpp_err=$ac_c_preproc_warn_flag
18153 else
18154 ac_cpp_err=
18155 fi
18156else
18157 ac_cpp_err=yes
18158fi
18159if test -z "$ac_cpp_err"; then
18160 ac_header_preproc=yes
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_header_preproc=no
18166fi
18167rm -f conftest.err conftest.$ac_ext
18168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18169echo "${ECHO_T}$ac_header_preproc" >&6
18170
18171# So? What about this header?
18172case $ac_header_compiler:$ac_header_preproc in
18173 yes:no )
18174 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18175echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18176 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18177echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18178 (
18179 cat <<\_ASBOX
18180## ------------------------------------ ##
18181## Report this to bug-autoconf@gnu.org. ##
18182## ------------------------------------ ##
18183_ASBOX
18184 ) |
18185 sed "s/^/$as_me: WARNING: /" >&2
18186 ;;
18187 no:yes )
18188 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18189echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18190 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18191echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18192 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18193echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18194 (
18195 cat <<\_ASBOX
18196## ------------------------------------ ##
18197## Report this to bug-autoconf@gnu.org. ##
18198## ------------------------------------ ##
18199_ASBOX
18200 ) |
18201 sed "s/^/$as_me: WARNING: /" >&2
18202 ;;
18203esac
18204echo "$as_me:$LINENO: checking for regex.h" >&5
18205echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18206if test "${ac_cv_header_regex_h+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18210fi
e6cc62c6
VS
18211echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18212echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18213
698dcdb6 18214fi
e6cc62c6
VS
18215if test $ac_cv_header_regex_h = yes; then
18216
18217for ac_func in regcomp
21d1c967 18218do
e6cc62c6
VS
18219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18220echo "$as_me:$LINENO: checking for $ac_func" >&5
18221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18222if eval "test \"\${$as_ac_var+set}\" = set"; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 cat >conftest.$ac_ext <<_ACEOF
18226#line $LINENO "configure"
18227/* confdefs.h. */
18228_ACEOF
18229cat confdefs.h >>conftest.$ac_ext
18230cat >>conftest.$ac_ext <<_ACEOF
18231/* end confdefs.h. */
a0b9e27f 18232/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18233 which can conflict with char $ac_func (); below.
18234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18235 <limits.h> exists even on freestanding compilers. */
18236#ifdef __STDC__
18237# include <limits.h>
18238#else
18239# include <assert.h>
18240#endif
21d1c967 18241/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18242#ifdef __cplusplus
18243extern "C"
18244{
18245#endif
21d1c967 18246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18247 builtin and then its argument prototype would still apply. */
18248char $ac_func ();
21d1c967
GD
18249/* The GNU C library defines this for functions which it implements
18250 to always fail with ENOSYS. Some functions are actually named
18251 something starting with __ and the normal name is an alias. */
18252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18253choke me
18254#else
e6cc62c6
VS
18255char (*f) () = $ac_func;
18256#endif
18257#ifdef __cplusplus
18258}
21d1c967 18259#endif
90dd450c 18260
e6cc62c6
VS
18261int
18262main ()
18263{
18264return f != $ac_func;
18265 ;
18266 return 0;
18267}
18268_ACEOF
18269rm -f conftest.$ac_objext conftest$ac_exeext
18270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 eval "$as_ac_var=yes"
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286eval "$as_ac_var=no"
18287fi
18288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18289fi
18290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18292if test `eval echo '${'$as_ac_var'}'` = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18295_ACEOF
5c6fa7d2 18296
698dcdb6 18297fi
21d1c967
GD
18298done
18299
ab9b9eab
VZ
18300fi
18301
8284b0c5 18302
e6cc62c6 18303
21d1c967
GD
18304 if test "x$ac_cv_func_regcomp" != "xyes"; then
18305 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18306 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18307echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18308 { (exit 1); exit 1; }; }
21d1c967 18309 else
e6cc62c6
VS
18310 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18311echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18312 wxUSE_REGEX=builtin
18313 fi
18314 else
18315 wxUSE_REGEX=sys
18316 fi
ab9b9eab 18317 fi
90dd450c 18318
21d1c967
GD
18319 if test "$wxUSE_REGEX" = "builtin" ; then
18320 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18321 fi
21d1c967 18322fi
90dd450c 18323
8284b0c5 18324
21d1c967
GD
18325ZLIB_INCLUDE=
18326ZLIB_LINK=
18327if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18328 cat >>confdefs.h <<\_ACEOF
21d1c967 18329#define wxUSE_ZLIB 1
e6cc62c6 18330_ACEOF
21d1c967 18331
8284b0c5 18332
21d1c967 18333 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18334 if test "$USE_DARWIN" = 1; then
18335 system_zlib_h_ok="yes"
18336 else
e6cc62c6
VS
18337 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18338echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18339if test "${ac_cv_header_zlib_h+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18341else
18342 if test "$cross_compiling" = yes; then
89e6bf6d 18343 unset ac_cv_header_zlib_h
e6cc62c6 18344
d643b80e 18345else
e6cc62c6
VS
18346 cat >conftest.$ac_ext <<_ACEOF
18347#line $LINENO "configure"
18348/* confdefs.h. */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h. */
18353
ef33c576 18354 #include <zlib.h>
d775acfa 18355 #include <stdio.h>
d643b80e 18356
d775acfa
VZ
18357 int main()
18358 {
18359 FILE *f=fopen("conftestval", "w");
18360 if (!f) exit(1);
18361 fprintf(f, "%s",
18362 ZLIB_VERSION[0] == '1' &&
18363 (ZLIB_VERSION[2] > '1' ||
18364 (ZLIB_VERSION[2] == '1' &&
18365 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18366 exit(0);
18367 }
e6cc62c6
VS
18368
18369_ACEOF
18370rm -f conftest$ac_exeext
18371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18372 (eval $ac_link) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
d643b80e
VZ
18381 ac_cv_header_zlib_h=`cat conftestval`
18382else
e6cc62c6
VS
18383 echo "$as_me: program exited with status $ac_status" >&5
18384echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
18387( exit $ac_status )
18388ac_cv_header_zlib_h=no
d643b80e 18389fi
e6cc62c6 18390rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18391fi
18392
d643b80e 18393fi
e6cc62c6
VS
18394echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18395echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18396 if test "${ac_cv_header_zlib_h+set}" = set; then
18397 echo "$as_me:$LINENO: checking for zlib.h" >&5
18398echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18399if test "${ac_cv_header_zlib_h+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401fi
18402echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18403echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18404else
e6cc62c6
VS
18405 # Is the header compilable?
18406echo "$as_me:$LINENO: checking zlib.h usability" >&5
18407echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18408cat >conftest.$ac_ext <<_ACEOF
18409#line $LINENO "configure"
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415$ac_includes_default
89e6bf6d 18416#include <zlib.h>
e6cc62c6
VS
18417_ACEOF
18418rm -f conftest.$ac_objext
18419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18420 (eval $ac_compile) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -s conftest.$ac_objext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_header_compiler=yes
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435ac_header_compiler=no
18436fi
18437rm -f conftest.$ac_objext conftest.$ac_ext
18438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18439echo "${ECHO_T}$ac_header_compiler" >&6
18440
18441# Is the header present?
18442echo "$as_me:$LINENO: checking zlib.h presence" >&5
18443echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18444cat >conftest.$ac_ext <<_ACEOF
18445#line $LINENO "configure"
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
18451#include <zlib.h>
18452_ACEOF
18453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } >/dev/null; then
18461 if test -s conftest.err; then
18462 ac_cpp_err=$ac_c_preproc_warn_flag
18463 else
18464 ac_cpp_err=
18465 fi
18466else
18467 ac_cpp_err=yes
18468fi
18469if test -z "$ac_cpp_err"; then
18470 ac_header_preproc=yes
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ac_header_preproc=no
18476fi
18477rm -f conftest.err conftest.$ac_ext
18478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18479echo "${ECHO_T}$ac_header_preproc" >&6
18480
18481# So? What about this header?
18482case $ac_header_compiler:$ac_header_preproc in
18483 yes:no )
18484 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18485echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18486 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18487echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18488 (
18489 cat <<\_ASBOX
18490## ------------------------------------ ##
18491## Report this to bug-autoconf@gnu.org. ##
18492## ------------------------------------ ##
18493_ASBOX
18494 ) |
18495 sed "s/^/$as_me: WARNING: /" >&2
18496 ;;
18497 no:yes )
18498 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18499echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18501echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18503echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18504 (
18505 cat <<\_ASBOX
18506## ------------------------------------ ##
18507## Report this to bug-autoconf@gnu.org. ##
18508## ------------------------------------ ##
18509_ASBOX
18510 ) |
18511 sed "s/^/$as_me: WARNING: /" >&2
18512 ;;
18513esac
18514echo "$as_me:$LINENO: checking for zlib.h" >&5
18515echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18516if test "${ac_cv_header_zlib_h+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18518else
e6cc62c6
VS
18519 ac_cv_header_zlib_h=$ac_header_preproc
18520fi
18521echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18522echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18523
89e6bf6d
VZ
18524fi
18525
d643b80e 18526
e6cc62c6 18527
d775acfa
VZ
18528 system_zlib_h_ok=$ac_cv_header_zlib_h
18529 fi
18530
18531 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18532 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18533echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18534if test "${ac_cv_lib_z_deflate+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18536else
e6cc62c6 18537 ac_check_lib_save_LIBS=$LIBS
21d1c967 18538LIBS="-lz $LIBS"
e6cc62c6
VS
18539cat >conftest.$ac_ext <<_ACEOF
18540#line $LINENO "configure"
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546
21d1c967 18547/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18548#ifdef __cplusplus
18549extern "C"
18550#endif
21d1c967 18551/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18552 builtin and then its argument prototype would still apply. */
18553char deflate ();
18554int
18555main ()
18556{
18557deflate ();
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext conftest$ac_exeext
18563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18564 (eval $ac_link) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -s conftest$ac_exeext'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 ac_cv_lib_z_deflate=yes
18575else
18576 echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579ac_cv_lib_z_deflate=no
18580fi
18581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18582LIBS=$ac_check_lib_save_LIBS
18583fi
18584echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18585echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18586if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18587 ZLIB_LINK=" -lz"
a0b9e27f 18588fi
698dcdb6 18589
d643b80e 18590 fi
247f5006 18591
21d1c967
GD
18592 if test "x$ZLIB_LINK" = "x" ; then
18593 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18594 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18595echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18596 { (exit 1); exit 1; }; }
21d1c967 18597 else
e6cc62c6
VS
18598 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18599echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18600 wxUSE_ZLIB=builtin
18601 fi
18602 else
18603 wxUSE_ZLIB=sys
18604 fi
18605 fi
18606
18607 if test "$wxUSE_ZLIB" = "builtin" ; then
18608 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18609 fi
ab9b9eab
VZ
18610fi
18611
8284b0c5 18612
21d1c967
GD
18613PNG_INCLUDE=
18614PNG_LINK=
18615if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18616 cat >>confdefs.h <<\_ACEOF
21d1c967 18617#define wxUSE_LIBPNG 1
e6cc62c6 18618_ACEOF
90dd450c 18619
8284b0c5 18620
21d1c967 18621 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18622 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18623echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18624 wxUSE_LIBPNG=sys
18625 fi
90dd450c 18626
21d1c967 18627 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18628 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18629echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18630 wxUSE_LIBPNG=builtin
18631 fi
18632
18633 if test "$wxUSE_MGL" != 1 ; then
18634 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18635 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18636echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18637if test "${ac_cv_header_png_h+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18639else
18640 if test "$cross_compiling" = yes; then
89e6bf6d 18641 unset ac_cv_header_png_h
e6cc62c6 18642
5d3f766d 18643else
e6cc62c6
VS
18644 cat >conftest.$ac_ext <<_ACEOF
18645#line $LINENO "configure"
18646/* confdefs.h. */
18647_ACEOF
18648cat confdefs.h >>conftest.$ac_ext
18649cat >>conftest.$ac_ext <<_ACEOF
18650/* end confdefs.h. */
18651
ef33c576 18652 #include <png.h>
5d3f766d
VZ
18653 #include <stdio.h>
18654
18655 int main()
18656 {
18657 FILE *f=fopen("conftestval", "w");
18658 if (!f) exit(1);
18659 fprintf(f, "%s",
18660 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18661 exit(0);
18662 }
e6cc62c6
VS
18663
18664_ACEOF
18665rm -f conftest$ac_exeext
18666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18667 (eval $ac_link) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
5d3f766d
VZ
18676 ac_cv_header_png_h=`cat conftestval`
18677else
e6cc62c6
VS
18678 echo "$as_me: program exited with status $ac_status" >&5
18679echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682( exit $ac_status )
18683ac_cv_header_png_h=no
5d3f766d 18684fi
e6cc62c6 18685rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18686fi
18687
5d3f766d 18688fi
e6cc62c6
VS
18689echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18690echo "${ECHO_T}$ac_cv_header_png_h" >&6
18691 if test "${ac_cv_header_png_h+set}" = set; then
18692 echo "$as_me:$LINENO: checking for png.h" >&5
18693echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18694if test "${ac_cv_header_png_h+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18696fi
18697echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18698echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18699else
e6cc62c6
VS
18700 # Is the header compilable?
18701echo "$as_me:$LINENO: checking png.h usability" >&5
18702echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18703cat >conftest.$ac_ext <<_ACEOF
18704#line $LINENO "configure"
18705/* confdefs.h. */
18706_ACEOF
18707cat confdefs.h >>conftest.$ac_ext
18708cat >>conftest.$ac_ext <<_ACEOF
18709/* end confdefs.h. */
18710$ac_includes_default
89e6bf6d 18711#include <png.h>
e6cc62c6
VS
18712_ACEOF
18713rm -f conftest.$ac_objext
18714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18715 (eval $ac_compile) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_header_compiler=yes
18726else
18727 echo "$as_me: failed program was:" >&5
18728sed 's/^/| /' conftest.$ac_ext >&5
18729
18730ac_header_compiler=no
18731fi
18732rm -f conftest.$ac_objext conftest.$ac_ext
18733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18734echo "${ECHO_T}$ac_header_compiler" >&6
18735
18736# Is the header present?
18737echo "$as_me:$LINENO: checking png.h presence" >&5
18738echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18739cat >conftest.$ac_ext <<_ACEOF
18740#line $LINENO "configure"
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746#include <png.h>
18747_ACEOF
18748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } >/dev/null; then
18756 if test -s conftest.err; then
18757 ac_cpp_err=$ac_c_preproc_warn_flag
18758 else
18759 ac_cpp_err=
18760 fi
18761else
18762 ac_cpp_err=yes
18763fi
18764if test -z "$ac_cpp_err"; then
18765 ac_header_preproc=yes
18766else
18767 echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 ac_header_preproc=no
18771fi
18772rm -f conftest.err conftest.$ac_ext
18773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18774echo "${ECHO_T}$ac_header_preproc" >&6
18775
18776# So? What about this header?
18777case $ac_header_compiler:$ac_header_preproc in
18778 yes:no )
18779 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18780echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18781 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18782echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18783 (
18784 cat <<\_ASBOX
18785## ------------------------------------ ##
18786## Report this to bug-autoconf@gnu.org. ##
18787## ------------------------------------ ##
18788_ASBOX
18789 ) |
18790 sed "s/^/$as_me: WARNING: /" >&2
18791 ;;
18792 no:yes )
18793 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18794echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18795 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18796echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18797 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18798echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18799 (
18800 cat <<\_ASBOX
18801## ------------------------------------ ##
18802## Report this to bug-autoconf@gnu.org. ##
18803## ------------------------------------ ##
18804_ASBOX
18805 ) |
18806 sed "s/^/$as_me: WARNING: /" >&2
18807 ;;
18808esac
18809echo "$as_me:$LINENO: checking for png.h" >&5
18810echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18811if test "${ac_cv_header_png_h+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18813else
e6cc62c6
VS
18814 ac_cv_header_png_h=$ac_header_preproc
18815fi
18816echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18817echo "${ECHO_T}$ac_cv_header_png_h" >&6
18818
89e6bf6d
VZ
18819fi
18820
5d3f766d 18821
e6cc62c6 18822
5d3f766d 18823 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18824 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18825echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18826if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18828else
e6cc62c6 18829 ac_check_lib_save_LIBS=$LIBS
21d1c967 18830LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18831cat >conftest.$ac_ext <<_ACEOF
18832#line $LINENO "configure"
18833/* confdefs.h. */
18834_ACEOF
18835cat confdefs.h >>conftest.$ac_ext
18836cat >>conftest.$ac_ext <<_ACEOF
18837/* end confdefs.h. */
18838
21d1c967 18839/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18840#ifdef __cplusplus
18841extern "C"
18842#endif
21d1c967 18843/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18844 builtin and then its argument prototype would still apply. */
18845char png_check_sig ();
18846int
18847main ()
18848{
18849png_check_sig ();
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext conftest$ac_exeext
18855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18856 (eval $ac_link) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_lib_png_png_check_sig=yes
18867else
18868 echo "$as_me: failed program was:" >&5
18869sed 's/^/| /' conftest.$ac_ext >&5
18870
18871ac_cv_lib_png_png_check_sig=no
18872fi
18873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18874LIBS=$ac_check_lib_save_LIBS
18875fi
18876echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18877echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18878if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18879 PNG_LINK=" -lpng"
a0b9e27f 18880fi
90dd450c 18881
5d3f766d 18882 fi
247f5006 18883
21d1c967
GD
18884 if test "x$PNG_LINK" = "x" ; then
18885 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18886 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18887echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18888 { (exit 1); exit 1; }; }
21d1c967 18889 else
e6cc62c6
VS
18890 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18891echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18892 wxUSE_LIBPNG=builtin
18893 fi
18894 else
2b5f62a0 18895 wxUSE_LIBPNG=sys
21d1c967
GD
18896 fi
18897 fi
18898 fi
90dd450c 18899
21d1c967
GD
18900 if test "$wxUSE_LIBPNG" = "builtin" ; then
18901 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18902 fi
90dd450c 18903
21d1c967 18904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18905fi
18906
8284b0c5 18907
21d1c967
GD
18908JPEG_INCLUDE=
18909JPEG_LINK=
18910if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18911 cat >>confdefs.h <<\_ACEOF
21d1c967 18912#define wxUSE_LIBJPEG 1
e6cc62c6 18913_ACEOF
90dd450c 18914
8284b0c5 18915
21d1c967 18916 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18917 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18918echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18919 wxUSE_LIBJPEG=sys
18920 fi
90dd450c 18921
21d1c967
GD
18922 if test "$wxUSE_MGL" != 1 ; then
18923 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18924 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18925echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18926 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928else
18929 cat >conftest.$ac_ext <<_ACEOF
18930#line $LINENO "configure"
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
90dd450c 18936
21d1c967
GD
18937 #undef HAVE_STDLIB_H
18938 #include <stdio.h>
18939 #include <jpeglib.h>
90dd450c 18940
e6cc62c6
VS
18941int
18942main ()
18943{
18944
18945
18946 ;
18947 return 0;
18948}
18949_ACEOF
18950rm -f conftest.$ac_objext
18951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
21d1c967 18962 ac_cv_header_jpeglib_h=yes
90dd450c 18963else
e6cc62c6
VS
18964 echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967ac_cv_header_jpeglib_h=no
18968
90dd450c 18969fi
e6cc62c6
VS
18970rm -f conftest.$ac_objext conftest.$ac_ext
18971
90dd450c
VZ
18972fi
18973
e6cc62c6
VS
18974 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18975echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18976
21d1c967 18977 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18978 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18979echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18980if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18982else
e6cc62c6 18983 ac_check_lib_save_LIBS=$LIBS
21d1c967 18984LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18985cat >conftest.$ac_ext <<_ACEOF
18986#line $LINENO "configure"
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
18992
21d1c967 18993/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18994#ifdef __cplusplus
18995extern "C"
18996#endif
21d1c967 18997/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18998 builtin and then its argument prototype would still apply. */
18999char jpeg_read_header ();
19000int
19001main ()
19002{
19003jpeg_read_header ();
19004 ;
19005 return 0;
19006}
19007_ACEOF
19008rm -f conftest.$ac_objext conftest$ac_exeext
19009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19010 (eval $ac_link) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -s conftest$ac_exeext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_lib_jpeg_jpeg_read_header=yes
19021else
19022 echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
19025ac_cv_lib_jpeg_jpeg_read_header=no
19026fi
19027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19028LIBS=$ac_check_lib_save_LIBS
19029fi
19030echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19031echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19032if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19033 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19034fi
19035
21d1c967 19036 fi
90dd450c 19037
21d1c967
GD
19038 if test "x$JPEG_LINK" = "x" ; then
19039 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19040 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19041echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19042 { (exit 1); exit 1; }; }
21d1c967 19043 else
e6cc62c6
VS
19044 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19045echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19046 wxUSE_LIBJPEG=builtin
19047 fi
19048 else
19049 wxUSE_LIBJPEG=sys
19050 fi
19051 fi
19052 fi
90dd450c 19053
21d1c967
GD
19054 if test "$wxUSE_LIBJPEG" = "builtin" ; then
19055 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19056 fi
19057fi
90dd450c 19058
8284b0c5 19059
21d1c967
GD
19060TIFF_INCLUDE=
19061TIFF_LINK=
2b5f62a0 19062TIFF_PREREQ_LINKS=-lm
21d1c967 19063if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19064 cat >>confdefs.h <<\_ACEOF
21d1c967 19065#define wxUSE_LIBTIFF 1
e6cc62c6 19066_ACEOF
21d1c967 19067
8284b0c5 19068
21d1c967 19069 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19070 if test "$wxUSE_LIBJPEG" = "sys"; then
19071 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19072 fi
19073 if test "$wxUSE_ZLIB" = "sys"; then
19074 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19075 fi
e6cc62c6
VS
19076 if test "${ac_cv_header_tiffio_h+set}" = set; then
19077 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19078echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19079if test "${ac_cv_header_tiffio_h+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081fi
19082echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19083echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19084else
19085 # Is the header compilable?
19086echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19087echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19088cat >conftest.$ac_ext <<_ACEOF
19089#line $LINENO "configure"
19090/* confdefs.h. */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h. */
19095$ac_includes_default
247f5006 19096#include <tiffio.h>
e6cc62c6
VS
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } &&
19104 { ac_try='test -s conftest.$ac_objext'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_header_compiler=yes
19111else
19112 echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115ac_header_compiler=no
19116fi
19117rm -f conftest.$ac_objext conftest.$ac_ext
19118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19119echo "${ECHO_T}$ac_header_compiler" >&6
19120
19121# Is the header present?
19122echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19123echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19124cat >conftest.$ac_ext <<_ACEOF
19125#line $LINENO "configure"
19126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
19131#include <tiffio.h>
19132_ACEOF
19133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19135 ac_status=$?
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } >/dev/null; then
19141 if test -s conftest.err; then
19142 ac_cpp_err=$ac_c_preproc_warn_flag
19143 else
19144 ac_cpp_err=
19145 fi
19146else
19147 ac_cpp_err=yes
19148fi
19149if test -z "$ac_cpp_err"; then
19150 ac_header_preproc=yes
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_header_preproc=no
19156fi
19157rm -f conftest.err conftest.$ac_ext
19158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19159echo "${ECHO_T}$ac_header_preproc" >&6
19160
19161# So? What about this header?
19162case $ac_header_compiler:$ac_header_preproc in
19163 yes:no )
19164 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19165echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19167echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19168 (
19169 cat <<\_ASBOX
19170## ------------------------------------ ##
19171## Report this to bug-autoconf@gnu.org. ##
19172## ------------------------------------ ##
19173_ASBOX
19174 ) |
19175 sed "s/^/$as_me: WARNING: /" >&2
19176 ;;
19177 no:yes )
19178 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19179echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19180 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19181echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19182 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19183echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19184 (
19185 cat <<\_ASBOX
19186## ------------------------------------ ##
19187## Report this to bug-autoconf@gnu.org. ##
19188## ------------------------------------ ##
19189_ASBOX
19190 ) |
19191 sed "s/^/$as_me: WARNING: /" >&2
19192 ;;
19193esac
19194echo "$as_me:$LINENO: checking for tiffio.h" >&5
19195echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19196if test "${ac_cv_header_tiffio_h+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19200fi
e6cc62c6
VS
19201echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19202echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19203
21d1c967 19204fi
e6cc62c6
VS
19205if test $ac_cv_header_tiffio_h = yes; then
19206 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19207echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19208if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19210else
e6cc62c6 19211 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19212LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19213cat >conftest.$ac_ext <<_ACEOF
19214#line $LINENO "configure"
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220
ab9b9eab 19221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19222#ifdef __cplusplus
19223extern "C"
19224#endif
ab9b9eab 19225/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19226 builtin and then its argument prototype would still apply. */
19227char TIFFError ();
19228int
19229main ()
19230{
19231TIFFError ();
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext conftest$ac_exeext
19237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_lib_tiff_TIFFError=yes
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253ac_cv_lib_tiff_TIFFError=no
19254fi
19255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19256LIBS=$ac_check_lib_save_LIBS
19257fi
19258echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19259echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19260if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19261 TIFF_LINK=" -ltiff"
a0b9e27f 19262fi
cd6d6d5b 19263
e6cc62c6 19264
a0b9e27f 19265fi
8284b0c5 19266
247f5006 19267
e6cc62c6 19268
21d1c967
GD
19269 if test "x$TIFF_LINK" = "x" ; then
19270 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19271 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19272echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19273 { (exit 1); exit 1; }; }
90dd450c 19274 else
e6cc62c6
VS
19275 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19276echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19277 wxUSE_LIBTIFF=builtin
d8356fa3 19278 fi
d8356fa3 19279 else
21d1c967 19280 wxUSE_LIBTIFF=sys
d8356fa3 19281 fi
21d1c967 19282 fi
d8356fa3 19283
21d1c967
GD
19284 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19285 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19286 fi
21d1c967 19287fi
10f2d63a 19288
8284b0c5 19289
672abd7a
VS
19290if test "$wxUSE_EXPAT" != "no"; then
19291 wxUSE_XML=1
19292 cat >>confdefs.h <<\_ACEOF
19293#define wxUSE_EXPAT 1
19294_ACEOF
19295
19296 cat >>confdefs.h <<\_ACEOF
19297#define wxUSE_XML 1
19298_ACEOF
19299
19300
19301 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19302 if test "${ac_cv_header_expat_h+set}" = set; then
19303 echo "$as_me:$LINENO: checking for expat.h" >&5
19304echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19305if test "${ac_cv_header_expat_h+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307fi
19308echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19309echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19310else
19311 # Is the header compilable?
19312echo "$as_me:$LINENO: checking expat.h usability" >&5
19313echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19314cat >conftest.$ac_ext <<_ACEOF
19315#line $LINENO "configure"
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
19321$ac_includes_default
19322#include <expat.h>
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 ac_header_compiler=yes
19337else
19338 echo "$as_me: failed program was:" >&5
19339sed 's/^/| /' conftest.$ac_ext >&5
19340
19341ac_header_compiler=no
19342fi
19343rm -f conftest.$ac_objext conftest.$ac_ext
19344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19345echo "${ECHO_T}$ac_header_compiler" >&6
19346
19347# Is the header present?
19348echo "$as_me:$LINENO: checking expat.h presence" >&5
19349echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19350cat >conftest.$ac_ext <<_ACEOF
19351#line $LINENO "configure"
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357#include <expat.h>
19358_ACEOF
19359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } >/dev/null; then
19367 if test -s conftest.err; then
19368 ac_cpp_err=$ac_c_preproc_warn_flag
19369 else
19370 ac_cpp_err=
19371 fi
19372else
19373 ac_cpp_err=yes
19374fi
19375if test -z "$ac_cpp_err"; then
19376 ac_header_preproc=yes
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 ac_header_preproc=no
19382fi
19383rm -f conftest.err conftest.$ac_ext
19384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19385echo "${ECHO_T}$ac_header_preproc" >&6
19386
19387# So? What about this header?
19388case $ac_header_compiler:$ac_header_preproc in
19389 yes:no )
19390 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19391echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19393echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19394 (
19395 cat <<\_ASBOX
19396## ------------------------------------ ##
19397## Report this to bug-autoconf@gnu.org. ##
19398## ------------------------------------ ##
19399_ASBOX
19400 ) |
19401 sed "s/^/$as_me: WARNING: /" >&2
19402 ;;
19403 no:yes )
19404 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19405echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19406 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19407echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19408 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19409echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19410 (
19411 cat <<\_ASBOX
19412## ------------------------------------ ##
19413## Report this to bug-autoconf@gnu.org. ##
19414## ------------------------------------ ##
19415_ASBOX
19416 ) |
19417 sed "s/^/$as_me: WARNING: /" >&2
19418 ;;
19419esac
19420echo "$as_me:$LINENO: checking for expat.h" >&5
19421echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19422if test "${ac_cv_header_expat_h+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 ac_cv_header_expat_h=$ac_header_preproc
19426fi
19427echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19428echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19429
19430fi
5f0b6dff
VS
19431if test $ac_cv_header_expat_h = yes; then
19432 found_expat_h=1
19433fi
19434
19435
19436 if test "x$found_expat_h" = "x1"; then
19437 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19438echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19439if test "${wx_cv_expat_is_not_broken+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441else
19442
19443
672abd7a 19444
5f0b6dff
VS
19445 ac_ext=cc
19446ac_cpp='$CXXCPP $CPPFLAGS'
19447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19450
19451 cat >conftest.$ac_ext <<_ACEOF
19452#line $LINENO "configure"
19453/* confdefs.h. */
19454_ACEOF
19455cat confdefs.h >>conftest.$ac_ext
19456cat >>conftest.$ac_ext <<_ACEOF
19457/* end confdefs.h. */
19458#include <expat.h>
19459int
19460main ()
19461{
672abd7a 19462
5f0b6dff
VS
19463 ;
19464 return 0;
19465}
19466_ACEOF
19467rm -f conftest.$ac_objext
19468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19469 (eval $ac_compile) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 wx_cv_expat_is_not_broken=yes
19480else
19481 echo "$as_me: failed program was:" >&5
19482sed 's/^/| /' conftest.$ac_ext >&5
19483
19484wx_cv_expat_is_not_broken=no
19485
19486fi
19487rm -f conftest.$ac_objext conftest.$ac_ext
19488 ac_ext=c
19489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494
19495
19496fi
19497echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19498echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19499 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19500 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19501echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19502if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504else
19505 ac_check_lib_save_LIBS=$LIBS
19506LIBS="-lexpat $LIBS"
19507cat >conftest.$ac_ext <<_ACEOF
19508#line $LINENO "configure"
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514
19515/* Override any gcc2 internal prototype to avoid an error. */
19516#ifdef __cplusplus
19517extern "C"
19518#endif
19519/* We use char because int might match the return type of a gcc2
19520 builtin and then its argument prototype would still apply. */
19521char XML_ParserCreate ();
19522int
19523main ()
19524{
19525XML_ParserCreate ();
19526 ;
19527 return 0;
19528}
19529_ACEOF
19530rm -f conftest.$ac_objext conftest$ac_exeext
19531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19532 (eval $ac_link) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -s conftest$ac_exeext'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; }; then
19542 ac_cv_lib_expat_XML_ParserCreate=yes
19543else
19544 echo "$as_me: failed program was:" >&5
19545sed 's/^/| /' conftest.$ac_ext >&5
19546
19547ac_cv_lib_expat_XML_ParserCreate=no
19548fi
19549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19550LIBS=$ac_check_lib_save_LIBS
19551fi
19552echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19553echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19554if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19555 EXPAT_LINK=" -lexpat"
19556fi
19557
5f0b6dff 19558 fi
672abd7a
VS
19559 fi
19560 if test "x$EXPAT_LINK" = "x" ; then
19561 if test "$wxUSE_EXPAT" = "sys" ; then
19562 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19563echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19564 { (exit 1); exit 1; }; }
19565 else
19566 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19567echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19568 wxUSE_EXPAT=builtin
19569 fi
19570 else
19571 wxUSE_EXPAT=sys
19572 fi
19573 fi
19574 if test "$wxUSE_EXPAT" = "builtin" ; then
19575
19576
19577subdirs="$subdirs src/expat"
19578
19579 fi
19580fi
19581
19582
19583
21d1c967 19584AFMINSTALL=
2b5f62a0 19585WIN32INSTALL=
90dd450c 19586
21d1c967
GD
19587TOOLKIT=
19588TOOLKIT_INCLUDE=
19589WIDGET_SET=
19590
19591if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19592
19593for ac_header in w32api.h
21d1c967 19594do
e6cc62c6
VS
19595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19596if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo "$as_me:$LINENO: checking for $ac_header" >&5
19598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19599if eval "test \"\${$as_ac_Header+set}\" = set"; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601fi
19602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19604else
19605 # Is the header compilable?
19606echo "$as_me:$LINENO: checking $ac_header usability" >&5
19607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19608cat >conftest.$ac_ext <<_ACEOF
19609#line $LINENO "configure"
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615$ac_includes_default
19616#include <$ac_header>
19617_ACEOF
19618rm -f conftest.$ac_objext
19619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620 (eval $ac_compile) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -s conftest.$ac_objext'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 ac_header_compiler=yes
19631else
19632 echo "$as_me: failed program was:" >&5
19633sed 's/^/| /' conftest.$ac_ext >&5
19634
19635ac_header_compiler=no
19636fi
19637rm -f conftest.$ac_objext conftest.$ac_ext
19638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19639echo "${ECHO_T}$ac_header_compiler" >&6
19640
19641# Is the header present?
19642echo "$as_me:$LINENO: checking $ac_header presence" >&5
19643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19644cat >conftest.$ac_ext <<_ACEOF
19645#line $LINENO "configure"
19646/* confdefs.h. */
19647_ACEOF
19648cat confdefs.h >>conftest.$ac_ext
19649cat >>conftest.$ac_ext <<_ACEOF
19650/* end confdefs.h. */
19651#include <$ac_header>
19652_ACEOF
19653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } >/dev/null; then
19661 if test -s conftest.err; then
19662 ac_cpp_err=$ac_c_preproc_warn_flag
19663 else
19664 ac_cpp_err=
19665 fi
19666else
19667 ac_cpp_err=yes
19668fi
19669if test -z "$ac_cpp_err"; then
19670 ac_header_preproc=yes
19671else
19672 echo "$as_me: failed program was:" >&5
19673sed 's/^/| /' conftest.$ac_ext >&5
19674
19675 ac_header_preproc=no
19676fi
19677rm -f conftest.err conftest.$ac_ext
19678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19679echo "${ECHO_T}$ac_header_preproc" >&6
19680
19681# So? What about this header?
19682case $ac_header_compiler:$ac_header_preproc in
19683 yes:no )
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19688 (
19689 cat <<\_ASBOX
19690## ------------------------------------ ##
19691## Report this to bug-autoconf@gnu.org. ##
19692## ------------------------------------ ##
19693_ASBOX
19694 ) |
19695 sed "s/^/$as_me: WARNING: /" >&2
19696 ;;
19697 no:yes )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19704 (
19705 cat <<\_ASBOX
19706## ------------------------------------ ##
19707## Report this to bug-autoconf@gnu.org. ##
19708## ------------------------------------ ##
19709_ASBOX
19710 ) |
19711 sed "s/^/$as_me: WARNING: /" >&2
19712 ;;
19713esac
19714echo "$as_me:$LINENO: checking for $ac_header" >&5
19715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19716if eval "test \"\${$as_ac_Header+set}\" = set"; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718else
19719 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19720fi
e6cc62c6
VS
19721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19723
21d1c967 19724fi
e6cc62c6
VS
19725if test `eval echo '${'$as_ac_Header'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19728_ACEOF
19729
21d1c967 19730fi
e6cc62c6 19731
21d1c967 19732done
f79bd02d 19733
e6cc62c6
VS
19734 if test "${ac_cv_header_windows_h+set}" = set; then
19735 echo "$as_me:$LINENO: checking for windows.h" >&5
19736echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19737if test "${ac_cv_header_windows_h+set}" = set; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739fi
19740echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19741echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19742else
19743 # Is the header compilable?
19744echo "$as_me:$LINENO: checking windows.h usability" >&5
19745echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19746cat >conftest.$ac_ext <<_ACEOF
19747#line $LINENO "configure"
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
19752/* end confdefs.h. */
19753$ac_includes_default
247f5006 19754#include <windows.h>
e6cc62c6
VS
19755_ACEOF
19756rm -f conftest.$ac_objext
19757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19758 (eval $ac_compile) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -s conftest.$ac_objext'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_header_compiler=yes
19769else
19770 echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773ac_header_compiler=no
19774fi
19775rm -f conftest.$ac_objext conftest.$ac_ext
19776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19777echo "${ECHO_T}$ac_header_compiler" >&6
19778
19779# Is the header present?
19780echo "$as_me:$LINENO: checking windows.h presence" >&5
19781echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19782cat >conftest.$ac_ext <<_ACEOF
19783#line $LINENO "configure"
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
19789#include <windows.h>
19790_ACEOF
19791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } >/dev/null; then
19799 if test -s conftest.err; then
19800 ac_cpp_err=$ac_c_preproc_warn_flag
19801 else
19802 ac_cpp_err=
19803 fi
19804else
19805 ac_cpp_err=yes
19806fi
19807if test -z "$ac_cpp_err"; then
19808 ac_header_preproc=yes
19809else
19810 echo "$as_me: failed program was:" >&5
19811sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_header_preproc=no
19814fi
19815rm -f conftest.err conftest.$ac_ext
19816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19817echo "${ECHO_T}$ac_header_preproc" >&6
19818
19819# So? What about this header?
19820case $ac_header_compiler:$ac_header_preproc in
19821 yes:no )
19822 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19823echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19825echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19826 (
19827 cat <<\_ASBOX
19828## ------------------------------------ ##
19829## Report this to bug-autoconf@gnu.org. ##
19830## ------------------------------------ ##
19831_ASBOX
19832 ) |
19833 sed "s/^/$as_me: WARNING: /" >&2
19834 ;;
19835 no:yes )
19836 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19837echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19838 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19839echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19841echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19842 (
19843 cat <<\_ASBOX
19844## ------------------------------------ ##
19845## Report this to bug-autoconf@gnu.org. ##
19846## ------------------------------------ ##
19847_ASBOX
19848 ) |
19849 sed "s/^/$as_me: WARNING: /" >&2
19850 ;;
19851esac
19852echo "$as_me:$LINENO: checking for windows.h" >&5
19853echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19854if test "${ac_cv_header_windows_h+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856else
19857 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19858fi
e6cc62c6
VS
19859echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19860echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19861
90dd450c 19862fi
e6cc62c6 19863if test $ac_cv_header_windows_h = yes; then
21d1c967 19864 :
90dd450c 19865else
21d1c967 19866
e6cc62c6
VS
19867 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19868echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19869 { (exit 1); exit 1; }; }
19870
5c6fa7d2 19871fi
7b4a847f 19872
5c6fa7d2 19873
e6cc62c6 19874
b3dfbbc9 19875 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19876
7bb2947d
MB
19877 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19878 LIBS="$LIBS -loleacc"
19879 fi
19880
21d1c967
GD
19881 case "${host}" in
19882 *-*-cygwin* )
b3dfbbc9 19883 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19884 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19885 esac
f79bd02d 19886
8647bec6
RG
19887 if test "$wxUSE_ODBC" = "sys" ; then
19888 wxUSE_ODBC = "yes"
21d1c967 19889 fi
8647bec6
RG
19890 if test "$wxUSE_ODBC" = "yes" ; then
19891 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19892 cat >>confdefs.h <<\_ACEOF
8647bec6 19893#define wxUSE_ODBC 1
e6cc62c6 19894_ACEOF
f79bd02d 19895
8647bec6 19896 fi
e6cc62c6 19897
21d1c967
GD
19898 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19899 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19900
19901 WIN32INSTALL=win32install
f79bd02d 19902fi
f79bd02d 19903
21d1c967
GD
19904if test "$wxUSE_GUI" = "yes"; then
19905 USE_GUI=1
f79bd02d 19906
21d1c967 19907 GUI_TK_LIBRARY=
f79bd02d 19908
21d1c967
GD
19909 WXGTK12=
19910 WXGTK127=
19911 WXGTK20=
f79bd02d 19912
21d1c967
GD
19913 if test "$wxUSE_MSW" = 1 ; then
19914 TOOLKIT=MSW
19915 GUIDIST=MSW_DIST
f79bd02d
JS
19916 fi
19917
21d1c967 19918 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19919 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19920echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19921
19922 gtk_version_cached=1
e6cc62c6
VS
19923 if test "${wx_cv_lib_gtk+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19925else
e6cc62c6 19926
21d1c967 19927 gtk_version_cached=0
e6cc62c6
VS
19928 echo "$as_me:$LINENO: result: " >&5
19929echo "${ECHO_T}" >&6
f79bd02d 19930
21d1c967
GD
19931 GTK_MODULES=
19932 if test "$wxUSE_THREADS" = "yes"; then
19933 GTK_MODULES=gthread
19934 fi
f79bd02d 19935
2b5f62a0 19936 wx_cv_lib_gtk=
21d1c967
GD
19937 if test "x$wxUSE_GTK2" = "xyes"; then
19938 # Check whether --enable-gtktest or --disable-gtktest was given.
19939if test "${enable_gtktest+set}" = set; then
19940 enableval="$enable_gtktest"
e6cc62c6 19941
f79bd02d 19942else
21d1c967 19943 enable_gtktest=yes
e6cc62c6 19944fi;
f79bd02d 19945
21d1c967
GD
19946 pkg_config_args=gtk+-2.0
19947 for module in . $GTK_MODULES
19948 do
19949 case "$module" in
e6cc62c6 19950 gthread)
21d1c967
GD
19951 pkg_config_args="$pkg_config_args gthread-2.0"
19952 ;;
19953 esac
19954 done
19955
19956 no_gtk=""
f79bd02d 19957
21d1c967
GD
19958 # Extract the first word of "pkg-config", so it can be a program name with args.
19959set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19960echo "$as_me:$LINENO: checking for $ac_word" >&5
19961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19962if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19964else
e6cc62c6
VS
19965 case $PKG_CONFIG in
19966 [\\/]* | ?:[\\/]*)
21d1c967
GD
19967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19968 ;;
21d1c967 19969 *)
e6cc62c6
VS
19970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971for as_dir in $PATH
19972do
19973 IFS=$as_save_IFS
19974 test -z "$as_dir" && as_dir=.
19975 for ac_exec_ext in '' $ac_executable_extensions; do
19976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19979 break 2
19980 fi
19981done
19982done
19983
21d1c967
GD
19984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19985 ;;
19986esac
f79bd02d 19987fi
e6cc62c6
VS
19988PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19989
21d1c967 19990if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19991 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19992echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19993else
e6cc62c6
VS
19994 echo "$as_me:$LINENO: result: no" >&5
19995echo "${ECHO_T}no" >&6
f79bd02d
JS
19996fi
19997
8284b0c5 19998
21d1c967
GD
19999 if test x$PKG_CONFIG != xno ; then
20000 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20001 :
20002 else
20003 echo *** pkg-config too old; version 0.7 or better required.
20004 no_gtk=yes
20005 PKG_CONFIG=no
20006 fi
20007 else
20008 no_gtk=yes
20009 fi
f79bd02d 20010
21d1c967 20011 min_gtk_version=2.0.0
e6cc62c6
VS
20012 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20013echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20014
21d1c967
GD
20015 if test x$PKG_CONFIG != xno ; then
20016 ## don't try to run the test against uninstalled libtool libs
20017 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20018 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20019 enable_gtktest=no
20020 fi
f79bd02d 20021
21d1c967
GD
20022 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20023 :
20024 else
20025 no_gtk=yes
20026 fi
20027 fi
f79bd02d 20028
21d1c967
GD
20029 if test x"$no_gtk" = x ; then
20030 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20031 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20032 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20034 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20036 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20038 if test "x$enable_gtktest" = "xyes" ; then
20039 ac_save_CFLAGS="$CFLAGS"
20040 ac_save_LIBS="$LIBS"
20041 CFLAGS="$CFLAGS $GTK_CFLAGS"
20042 LIBS="$GTK_LIBS $LIBS"
20043 rm -f conf.gtktest
20044 if test "$cross_compiling" = yes; then
20045 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20046else
e6cc62c6
VS
20047 cat >conftest.$ac_ext <<_ACEOF
20048#line $LINENO "configure"
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
f79bd02d 20054
21d1c967
GD
20055#include <gtk/gtk.h>
20056#include <stdio.h>
20057#include <stdlib.h>
f79bd02d 20058
e6cc62c6 20059int
21d1c967
GD
20060main ()
20061{
20062 int major, minor, micro;
20063 char *tmp_version;
f79bd02d 20064
21d1c967 20065 system ("touch conf.gtktest");
f79bd02d 20066
21d1c967
GD
20067 /* HP/UX 9 (%@#!) writes to sscanf strings */
20068 tmp_version = g_strdup("$min_gtk_version");
20069 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20070 printf("%s, bad version string\n", "$min_gtk_version");
20071 exit(1);
20072 }
f79bd02d 20073
21d1c967
GD
20074 if ((gtk_major_version != $gtk_config_major_version) ||
20075 (gtk_minor_version != $gtk_config_minor_version) ||
20076 (gtk_micro_version != $gtk_config_micro_version))
20077 {
e6cc62c6 20078 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20079 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20080 gtk_major_version, gtk_minor_version, gtk_micro_version);
20081 printf ("*** was found! If pkg-config was correct, then it is best\n");
20082 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20083 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20084 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20085 printf("*** required on your system.\n");
20086 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20087 printf("*** to point to the correct configuration files\n");
e6cc62c6 20088 }
21d1c967
GD
20089 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20090 (gtk_minor_version != GTK_MINOR_VERSION) ||
20091 (gtk_micro_version != GTK_MICRO_VERSION))
20092 {
20093 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20094 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20095 printf("*** library (version %d.%d.%d)\n",
20096 gtk_major_version, gtk_minor_version, gtk_micro_version);
20097 }
20098 else
20099 {
20100 if ((gtk_major_version > major) ||
20101 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20102 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20103 {
20104 return 0;
20105 }
20106 else
20107 {
20108 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20109 gtk_major_version, gtk_minor_version, gtk_micro_version);
20110 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20111 major, minor, micro);
20112 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20113 printf("***\n");
20114 printf("*** If you have already installed a sufficiently new version, this error\n");
20115 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20116 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20117 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20118 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20119 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20120 printf("*** so that the correct libraries are found at run-time))\n");
20121 }
20122 }
20123 return 1;
20124}
f79bd02d 20125
e6cc62c6
VS
20126_ACEOF
20127rm -f conftest$ac_exeext
20128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129 (eval $ac_link) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
21d1c967 20138 :
f79bd02d 20139else
e6cc62c6
VS
20140 echo "$as_me: program exited with status $ac_status" >&5
20141echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144( exit $ac_status )
20145no_gtk=yes
f79bd02d 20146fi
e6cc62c6 20147rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20148fi
21d1c967
GD
20149 CFLAGS="$ac_save_CFLAGS"
20150 LIBS="$ac_save_LIBS"
20151 fi
20152 fi
20153 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20154 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20155echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20156 wx_cv_lib_gtk=2.0
21d1c967 20157 else
e6cc62c6
VS
20158 echo "$as_me:$LINENO: result: no" >&5
20159echo "${ECHO_T}no" >&6
21d1c967
GD
20160 if test "$PKG_CONFIG" = "no" ; then
20161 echo "*** A new enough version of pkg-config was not found."
20162 echo "*** See http://pkgconfig.sourceforge.net"
20163 else
20164 if test -f conf.gtktest ; then
20165 :
20166 else
20167 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20168 ac_save_CFLAGS="$CFLAGS"
20169 ac_save_LIBS="$LIBS"
21d1c967
GD
20170 CFLAGS="$CFLAGS $GTK_CFLAGS"
20171 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20172 cat >conftest.$ac_ext <<_ACEOF
20173#line $LINENO "configure"
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
21d1c967
GD
20179
20180#include <gtk/gtk.h>
20181#include <stdio.h>
f79bd02d 20182
e6cc62c6
VS
20183int
20184main ()
20185{
20186 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext conftest$ac_exeext
20192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
21d1c967
GD
20203 echo "*** The test program compiled, but did not run. This usually means"
20204 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20205 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20206 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20207 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20208 echo "*** is required on your system"
20209 echo "***"
20210 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20211 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20212else
e6cc62c6
VS
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20217 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20218fi
e6cc62c6 20219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20220 CFLAGS="$ac_save_CFLAGS"
20221 LIBS="$ac_save_LIBS"
20222 fi
20223 fi
20224 GTK_CFLAGS=""
20225 GTK_LIBS=""
20226 :
20227 fi
e6cc62c6
VS
20228
20229
21d1c967 20230 rm -f conf.gtktest
f79bd02d 20231
2b5f62a0 20232 else
e6cc62c6
VS
20233
20234# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20235if test "${with_gtk_prefix+set}" = set; then
20236 withval="$with_gtk_prefix"
20237 gtk_config_prefix="$withval"
20238else
20239 gtk_config_prefix=""
e6cc62c6 20240fi;
f79bd02d 20241
21d1c967
GD
20242# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20243if test "${with_gtk_exec_prefix+set}" = set; then
20244 withval="$with_gtk_exec_prefix"
20245 gtk_config_exec_prefix="$withval"
20246else
20247 gtk_config_exec_prefix=""
e6cc62c6 20248fi;
21d1c967
GD
20249# Check whether --enable-gtktest or --disable-gtktest was given.
20250if test "${enable_gtktest+set}" = set; then
20251 enableval="$enable_gtktest"
e6cc62c6 20252
21d1c967
GD
20253else
20254 enable_gtktest=yes
e6cc62c6 20255fi;
21d1c967
GD
20256
20257 for module in . $GTK_MODULES
20258 do
20259 case "$module" in
e6cc62c6 20260 gthread)
21d1c967
GD
20261 gtk_config_args="$gtk_config_args gthread"
20262 ;;
20263 esac
20264 done
20265
20266 if test x$gtk_config_exec_prefix != x ; then
20267 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20268 if test x${GTK_CONFIG+set} != xset ; then
20269 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20270 fi
20271 fi
20272 if test x$gtk_config_prefix != x ; then
20273 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20274 if test x${GTK_CONFIG+set} != xset ; then
20275 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20276 fi
20277 fi
20278
20279 # Extract the first word of "gtk-config", so it can be a program name with args.
20280set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20281echo "$as_me:$LINENO: checking for $ac_word" >&5
20282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20283if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20285else
e6cc62c6
VS
20286 case $GTK_CONFIG in
20287 [\\/]* | ?:[\\/]*)
21d1c967
GD
20288 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20289 ;;
21d1c967 20290 *)
e6cc62c6
VS
20291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20292for as_dir in $PATH
20293do
20294 IFS=$as_save_IFS
20295 test -z "$as_dir" && as_dir=.
20296 for ac_exec_ext in '' $ac_executable_extensions; do
20297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20298 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20300 break 2
20301 fi
20302done
20303done
20304
21d1c967
GD
20305 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20306 ;;
20307esac
20308fi
e6cc62c6
VS
20309GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20310
21d1c967 20311if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20312 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20313echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20314else
e6cc62c6
VS
20315 echo "$as_me:$LINENO: result: no" >&5
20316echo "${ECHO_T}no" >&6
21d1c967
GD
20317fi
20318
20319 min_gtk_version=1.2.7
e6cc62c6
VS
20320 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20321echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20322 no_gtk=""
20323 if test "$GTK_CONFIG" = "no" ; then
20324 no_gtk=yes
20325 else
20326 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20327 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20328 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20329 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20330 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20331 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20332 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20333 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20334 if test "x$enable_gtktest" = "xyes" ; then
20335 ac_save_CFLAGS="$CFLAGS"
20336 ac_save_LIBS="$LIBS"
20337 CFLAGS="$CFLAGS $GTK_CFLAGS"
20338 LIBS="$GTK_LIBS $LIBS"
20339 rm -f conf.gtktest
20340 if test "$cross_compiling" = yes; then
20341 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20342else
e6cc62c6
VS
20343 cat >conftest.$ac_ext <<_ACEOF
20344#line $LINENO "configure"
20345/* confdefs.h. */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h. */
f79bd02d 20350
21d1c967
GD
20351#include <gtk/gtk.h>
20352#include <stdio.h>
20353#include <stdlib.h>
f79bd02d 20354
e6cc62c6 20355int
21d1c967
GD
20356main ()
20357{
20358 int major, minor, micro;
20359 char *tmp_version;
20360
20361 system ("touch conf.gtktest");
20362
20363 /* HP/UX 9 (%@#!) writes to sscanf strings */
20364 tmp_version = g_strdup("$min_gtk_version");
20365 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20366 printf("%s, bad version string\n", "$min_gtk_version");
20367 exit(1);
20368 }
90dd450c 20369
21d1c967
GD
20370 if ((gtk_major_version != $gtk_config_major_version) ||
20371 (gtk_minor_version != $gtk_config_minor_version) ||
20372 (gtk_micro_version != $gtk_config_micro_version))
20373 {
e6cc62c6 20374 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20375 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20376 gtk_major_version, gtk_minor_version, gtk_micro_version);
20377 printf ("*** was found! If gtk-config was correct, then it is best\n");
20378 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20379 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20380 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20381 printf("*** required on your system.\n");
20382 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20383 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20384 printf("*** before re-running configure\n");
e6cc62c6 20385 }
21d1c967
GD
20386#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20387 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20388 (gtk_minor_version != GTK_MINOR_VERSION) ||
20389 (gtk_micro_version != GTK_MICRO_VERSION))
20390 {
20391 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20392 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20393 printf("*** library (version %d.%d.%d)\n",
20394 gtk_major_version, gtk_minor_version, gtk_micro_version);
20395 }
20396#endif /* defined (GTK_MAJOR_VERSION) ... */
20397 else
20398 {
20399 if ((gtk_major_version > major) ||
20400 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20401 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20402 {
20403 return 0;
20404 }
20405 else
20406 {
20407 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20408 gtk_major_version, gtk_minor_version, gtk_micro_version);
20409 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20410 major, minor, micro);
20411 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20412 printf("***\n");
20413 printf("*** If you have already installed a sufficiently new version, this error\n");
20414 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20415 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20416 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20417 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20418 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20419 printf("*** so that the correct libraries are found at run-time))\n");
20420 }
20421 }
20422 return 1;
20423}
20424
e6cc62c6
VS
20425_ACEOF
20426rm -f conftest$ac_exeext
20427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428 (eval $ac_link) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
21d1c967
GD
20437 :
20438else
e6cc62c6
VS
20439 echo "$as_me: program exited with status $ac_status" >&5
20440echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
20443( exit $ac_status )
20444no_gtk=yes
21d1c967 20445fi
e6cc62c6 20446rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20447fi
21d1c967
GD
20448 CFLAGS="$ac_save_CFLAGS"
20449 LIBS="$ac_save_LIBS"
20450 fi
20451 fi
20452 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20453 echo "$as_me:$LINENO: result: yes" >&5
20454echo "${ECHO_T}yes" >&6
20455 wx_cv_lib_gtk=1.2.7
21d1c967 20456 else
e6cc62c6
VS
20457 echo "$as_me:$LINENO: result: no" >&5
20458echo "${ECHO_T}no" >&6
21d1c967
GD
20459 if test "$GTK_CONFIG" = "no" ; then
20460 echo "*** The gtk-config script installed by GTK could not be found"
20461 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20462 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20463 echo "*** full path to gtk-config."
20464 else
20465 if test -f conf.gtktest ; then
20466 :
20467 else
20468 echo "*** Could not run GTK test program, checking why..."
20469 CFLAGS="$CFLAGS $GTK_CFLAGS"
20470 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20471 cat >conftest.$ac_ext <<_ACEOF
20472#line $LINENO "configure"
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
21d1c967
GD
20478
20479#include <gtk/gtk.h>
20480#include <stdio.h>
20481
e6cc62c6
VS
20482int
20483main ()
20484{
20485 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext conftest$ac_exeext
20491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492 (eval $ac_link) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
20496 { ac_try='test -s conftest$ac_exeext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
21d1c967
GD
20502 echo "*** The test program compiled, but did not run. This usually means"
20503 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20504 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20505 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20506 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20507 echo "*** is required on your system"
20508 echo "***"
20509 echo "*** If you have an old version installed, it is best to remove it, although"
20510 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20511 echo "***"
20512 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20513 echo "*** came with the system with the command"
20514 echo "***"
e6cc62c6 20515 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20516else
e6cc62c6
VS
20517 echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20521 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20522 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20523 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20524fi
e6cc62c6 20525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20526 CFLAGS="$ac_save_CFLAGS"
20527 LIBS="$ac_save_LIBS"
20528 fi
20529 fi
20530 GTK_CFLAGS=""
20531 GTK_LIBS=""
20532 :
20533 fi
e6cc62c6
VS
20534
20535
21d1c967
GD
20536 rm -f conf.gtktest
20537
21d1c967 20538
2b5f62a0 20539 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20540
20541# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20542if test "${with_gtk_prefix+set}" = set; then
20543 withval="$with_gtk_prefix"
20544 gtk_config_prefix="$withval"
20545else
20546 gtk_config_prefix=""
e6cc62c6 20547fi;
f79bd02d 20548
21d1c967
GD
20549# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20550if test "${with_gtk_exec_prefix+set}" = set; then
20551 withval="$with_gtk_exec_prefix"
20552 gtk_config_exec_prefix="$withval"
20553else
20554 gtk_config_exec_prefix=""
e6cc62c6 20555fi;
21d1c967
GD
20556# Check whether --enable-gtktest or --disable-gtktest was given.
20557if test "${enable_gtktest+set}" = set; then
20558 enableval="$enable_gtktest"
e6cc62c6 20559
90dd450c 20560else
21d1c967 20561 enable_gtktest=yes
e6cc62c6 20562fi;
21d1c967
GD
20563
20564 for module in . $GTK_MODULES
20565 do
20566 case "$module" in
e6cc62c6 20567 gthread)
21d1c967
GD
20568 gtk_config_args="$gtk_config_args gthread"
20569 ;;
20570 esac
20571 done
20572
20573 if test x$gtk_config_exec_prefix != x ; then
20574 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20575 if test x${GTK_CONFIG+set} != xset ; then
20576 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20577 fi
20578 fi
20579 if test x$gtk_config_prefix != x ; then
20580 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20581 if test x${GTK_CONFIG+set} != xset ; then
20582 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20583 fi
20584 fi
20585
20586 # Extract the first word of "gtk-config", so it can be a program name with args.
20587set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20588echo "$as_me:$LINENO: checking for $ac_word" >&5
20589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20590if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20592else
e6cc62c6
VS
20593 case $GTK_CONFIG in
20594 [\\/]* | ?:[\\/]*)
21d1c967
GD
20595 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20596 ;;
21d1c967 20597 *)
e6cc62c6
VS
20598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20599for as_dir in $PATH
20600do
20601 IFS=$as_save_IFS
20602 test -z "$as_dir" && as_dir=.
20603 for ac_exec_ext in '' $ac_executable_extensions; do
20604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20605 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20607 break 2
20608 fi
20609done
20610done
20611
21d1c967
GD
20612 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20613 ;;
20614esac
20615fi
e6cc62c6
VS
20616GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20617
21d1c967 20618if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20619 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20620echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20621else
e6cc62c6
VS
20622 echo "$as_me:$LINENO: result: no" >&5
20623echo "${ECHO_T}no" >&6
21d1c967
GD
20624fi
20625
20626 min_gtk_version=1.2.3
e6cc62c6
VS
20627 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20628echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20629 no_gtk=""
20630 if test "$GTK_CONFIG" = "no" ; then
20631 no_gtk=yes
20632 else
20633 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20634 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20635 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20636 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20637 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20638 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20639 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20641 if test "x$enable_gtktest" = "xyes" ; then
20642 ac_save_CFLAGS="$CFLAGS"
20643 ac_save_LIBS="$LIBS"
20644 CFLAGS="$CFLAGS $GTK_CFLAGS"
20645 LIBS="$GTK_LIBS $LIBS"
20646 rm -f conf.gtktest
20647 if test "$cross_compiling" = yes; then
20648 echo $ac_n "cross compiling; assumed OK... $ac_c"
20649else
e6cc62c6
VS
20650 cat >conftest.$ac_ext <<_ACEOF
20651#line $LINENO "configure"
20652/* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
21d1c967
GD
20657
20658#include <gtk/gtk.h>
20659#include <stdio.h>
20660#include <stdlib.h>
20661
e6cc62c6 20662int
21d1c967
GD
20663main ()
20664{
20665 int major, minor, micro;
20666 char *tmp_version;
20667
20668 system ("touch conf.gtktest");
20669
20670 /* HP/UX 9 (%@#!) writes to sscanf strings */
20671 tmp_version = g_strdup("$min_gtk_version");
20672 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20673 printf("%s, bad version string\n", "$min_gtk_version");
20674 exit(1);
20675 }
20676
20677 if ((gtk_major_version != $gtk_config_major_version) ||
20678 (gtk_minor_version != $gtk_config_minor_version) ||
20679 (gtk_micro_version != $gtk_config_micro_version))
20680 {
e6cc62c6 20681 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20682 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20683 gtk_major_version, gtk_minor_version, gtk_micro_version);
20684 printf ("*** was found! If gtk-config was correct, then it is best\n");
20685 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20686 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20687 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20688 printf("*** required on your system.\n");
20689 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20690 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20691 printf("*** before re-running configure\n");
e6cc62c6 20692 }
21d1c967
GD
20693#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20694 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20695 (gtk_minor_version != GTK_MINOR_VERSION) ||
20696 (gtk_micro_version != GTK_MICRO_VERSION))
20697 {
20698 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20699 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20700 printf("*** library (version %d.%d.%d)\n",
20701 gtk_major_version, gtk_minor_version, gtk_micro_version);
20702 }
20703#endif /* defined (GTK_MAJOR_VERSION) ... */
20704 else
20705 {
20706 if ((gtk_major_version > major) ||
20707 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20708 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20709 {
20710 return 0;
20711 }
20712 else
20713 {
20714 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20715 gtk_major_version, gtk_minor_version, gtk_micro_version);
20716 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20717 major, minor, micro);
20718 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20719 printf("***\n");
20720 printf("*** If you have already installed a sufficiently new version, this error\n");
20721 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20722 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20723 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20724 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20725 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20726 printf("*** so that the correct libraries are found at run-time))\n");
20727 }
20728 }
20729 return 1;
20730}
20731
e6cc62c6
VS
20732_ACEOF
20733rm -f conftest$ac_exeext
20734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20735 (eval $ac_link) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; }; then
21d1c967
GD
20744 :
20745else
e6cc62c6
VS
20746 echo "$as_me: program exited with status $ac_status" >&5
20747echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750( exit $ac_status )
20751no_gtk=yes
21d1c967 20752fi
e6cc62c6 20753rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20754fi
21d1c967
GD
20755 CFLAGS="$ac_save_CFLAGS"
20756 LIBS="$ac_save_LIBS"
20757 fi
20758 fi
20759 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20760 echo "$as_me:$LINENO: result: yes" >&5
20761echo "${ECHO_T}yes" >&6
20762 wx_cv_lib_gtk=1.2.3
21d1c967 20763 else
e6cc62c6
VS
20764 echo "$as_me:$LINENO: result: no" >&5
20765echo "${ECHO_T}no" >&6
21d1c967
GD
20766 if test "$GTK_CONFIG" = "no" ; then
20767 echo "*** The gtk-config script installed by GTK could not be found"
20768 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20769 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20770 echo "*** full path to gtk-config."
20771 else
20772 if test -f conf.gtktest ; then
20773 :
20774 else
20775 echo "*** Could not run GTK test program, checking why..."
20776 CFLAGS="$CFLAGS $GTK_CFLAGS"
20777 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20778 cat >conftest.$ac_ext <<_ACEOF
20779#line $LINENO "configure"
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
21d1c967
GD
20785
20786#include <gtk/gtk.h>
20787#include <stdio.h>
f79bd02d 20788
e6cc62c6
VS
20789int
20790main ()
20791{
20792 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20793 ;
20794 return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext conftest$ac_exeext
20798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799 (eval $ac_link) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -s conftest$ac_exeext'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
21d1c967
GD
20809 echo "*** The test program compiled, but did not run. This usually means"
20810 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20811 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20812 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20813 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20814 echo "*** is required on your system"
20815 echo "***"
20816 echo "*** If you have an old version installed, it is best to remove it, although"
20817 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20818 echo "***"
20819 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20820 echo "*** came with the system with the command"
20821 echo "***"
e6cc62c6 20822 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20823else
e6cc62c6
VS
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20828 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20829 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20830 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20831fi
e6cc62c6 20832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20833 CFLAGS="$ac_save_CFLAGS"
20834 LIBS="$ac_save_LIBS"
20835 fi
20836 fi
20837 GTK_CFLAGS=""
20838 GTK_LIBS=""
20839 :
20840 fi
e6cc62c6
VS
20841
20842
21d1c967 20843 rm -f conf.gtktest
f79bd02d 20844
2b5f62a0 20845 fi
21d1c967
GD
20846 fi
20847
20848 if test -z "$wx_cv_lib_gtk"; then
20849 wx_cv_lib_gtk=none
20850 else
20851 wx_cv_cflags_gtk=$GTK_CFLAGS
20852 wx_cv_libs_gtk=$GTK_LIBS
20853 fi
e6cc62c6
VS
20854
20855
5c6fa7d2 20856fi
52127426 20857
8284b0c5 20858
21d1c967 20859 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20860 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20861echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20862 fi
20863
20864 case "$wx_cv_lib_gtk" in
20865 2.0) WXGTK20=1
2b5f62a0 20866 TOOLKIT_VERSION=2
21d1c967
GD
20867 ;;
20868 1.2.7) WXGTK127=1
20869 WXGTK12=1
20870 ;;
20871 1.2.3) WXGTK12=1
20872 ;;
e6cc62c6
VS
20873 *) { { echo "$as_me:$LINENO: error:
20874Please check that gtk-config is in path, the directory
20875where GTK+ libraries are installed (returned by
20876'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20877equivalent variable and GTK+ is version 1.2.3 or above.
20878 " >&5
20879echo "$as_me: error:
247f5006
VZ
20880Please check that gtk-config is in path, the directory
20881where GTK+ libraries are installed (returned by
20882'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20883equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20884 " >&2;}
20885 { (exit 1); exit 1; }; }
21d1c967
GD
20886 ;;
20887 esac
20888
b13cd66e
VZ
20889 if test "$WXGTK20" = 1; then
20890 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20891
f09359cf
VS
20892 succeeded=no
20893
20894 if test -z "$PKG_CONFIG"; then
20895 # Extract the first word of "pkg-config", so it can be a program name with args.
20896set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20897echo "$as_me:$LINENO: checking for $ac_word" >&5
20898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20899if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20901else
e6cc62c6
VS
20902 case $PKG_CONFIG in
20903 [\\/]* | ?:[\\/]*)
f09359cf
VS
20904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20905 ;;
f09359cf 20906 *)
e6cc62c6
VS
20907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20908for as_dir in $PATH
20909do
20910 IFS=$as_save_IFS
20911 test -z "$as_dir" && as_dir=.
20912 for ac_exec_ext in '' $ac_executable_extensions; do
20913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20916 break 2
20917 fi
20918done
20919done
20920
f09359cf
VS
20921 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20922 ;;
20923esac
20924fi
e6cc62c6
VS
20925PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20926
f09359cf 20927if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20928 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20929echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20930else
e6cc62c6
VS
20931 echo "$as_me:$LINENO: result: no" >&5
20932echo "${ECHO_T}no" >&6
f09359cf
VS
20933fi
20934
20935 fi
20936
20937 if test "$PKG_CONFIG" = "no" ; then
20938 echo "*** The pkg-config script could not be found. Make sure it is"
20939 echo "*** in your path, or set the PKG_CONFIG environment variable"
20940 echo "*** to the full path to pkg-config."
20941 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20942 else
20943 PKG_CONFIG_MIN_VERSION=0.9.0
20944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20945 echo "$as_me:$LINENO: checking for pangoft2" >&5
20946echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20947
20948 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20949 echo "$as_me:$LINENO: result: yes" >&5
20950echo "${ECHO_T}yes" >&6
f09359cf
VS
20951 succeeded=yes
20952
e6cc62c6
VS
20953 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20954echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20955 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20956 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20957echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20958
e6cc62c6
VS
20959 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20960echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20961 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20962 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20963echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20964 else
20965 PANGOFT2_CFLAGS=""
20966 PANGOFT2_LIBS=""
e6cc62c6 20967 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20968 ## do set a variable so people can do so.
20969 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20970
f09359cf
VS
20971 fi
20972
e6cc62c6
VS
20973
20974
f09359cf
VS
20975 else
20976 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20977 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20978 fi
20979 fi
20980
20981 if test $succeeded = yes; then
e6cc62c6 20982
b13cd66e 20983 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20985
f09359cf 20986 else
e6cc62c6
VS
20987
20988 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20989echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20990 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20991
20992
f09359cf
VS
20993 fi
20994
b13cd66e 20995 fi
2b5f62a0
VZ
20996 else
20997 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20998 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20999echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21000 wxUSE_UNICODE=no
21001 fi
21002 fi
21003
21004 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21005
21006for ac_func in poll
2b5f62a0 21007do
e6cc62c6
VS
21008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21009echo "$as_me:$LINENO: checking for $ac_func" >&5
21010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21011if eval "test \"\${$as_ac_var+set}\" = set"; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013else
21014 cat >conftest.$ac_ext <<_ACEOF
21015#line $LINENO "configure"
21016/* confdefs.h. */
21017_ACEOF
21018cat confdefs.h >>conftest.$ac_ext
21019cat >>conftest.$ac_ext <<_ACEOF
21020/* end confdefs.h. */
2b5f62a0 21021/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21022 which can conflict with char $ac_func (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21025#ifdef __STDC__
21026# include <limits.h>
21027#else
21028# include <assert.h>
21029#endif
2b5f62a0 21030/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21031#ifdef __cplusplus
21032extern "C"
21033{
21034#endif
2b5f62a0 21035/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21036 builtin and then its argument prototype would still apply. */
21037char $ac_func ();
2b5f62a0
VZ
21038/* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21042choke me
21043#else
e6cc62c6
VS
21044char (*f) () = $ac_func;
21045#endif
21046#ifdef __cplusplus
21047}
2b5f62a0
VZ
21048#endif
21049
e6cc62c6
VS
21050int
21051main ()
21052{
21053return f != $ac_func;
21054 ;
21055 return 0;
21056}
21057_ACEOF
21058rm -f conftest.$ac_objext conftest$ac_exeext
21059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 eval "$as_ac_var=yes"
21071else
21072 echo "$as_me: failed program was:" >&5
21073sed 's/^/| /' conftest.$ac_ext >&5
21074
21075eval "$as_ac_var=no"
21076fi
21077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21078fi
21079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21081if test `eval echo '${'$as_ac_var'}'` = yes; then
21082 cat >>confdefs.h <<_ACEOF
21083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21084_ACEOF
2b5f62a0 21085
2b5f62a0
VZ
21086fi
21087done
21088
f09359cf
VS
21089 fi
21090
21d1c967 21091 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21092 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21093
21094 AFMINSTALL=afminstall
21095 TOOLKIT=GTK
21096 GUIDIST=GTK_DIST
21097
e6cc62c6
VS
21098 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21099echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21100if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21102else
e6cc62c6 21103 ac_check_lib_save_LIBS=$LIBS
21d1c967 21104LIBS="-lgdk $LIBS"
e6cc62c6
VS
21105cat >conftest.$ac_ext <<_ACEOF
21106#line $LINENO "configure"
21107/* confdefs.h. */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h. */
21112
5c6fa7d2 21113/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21114#ifdef __cplusplus
21115extern "C"
21116#endif
5c6fa7d2 21117/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21118 builtin and then its argument prototype would still apply. */
21119char gdk_im_open ();
21120int
21121main ()
21122{
21123gdk_im_open ();
21124 ;
21125 return 0;
21126}
21127_ACEOF
21128rm -f conftest.$ac_objext conftest$ac_exeext
21129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21130 (eval $ac_link) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_lib_gdk_gdk_im_open=yes
21141else
21142 echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
21145ac_cv_lib_gdk_gdk_im_open=no
21146fi
21147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21148LIBS=$ac_check_lib_save_LIBS
21149fi
21150echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21151echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21152if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21153 cat >>confdefs.h <<\_ACEOF
21d1c967 21154#define HAVE_XIM 1
e6cc62c6 21155_ACEOF
21d1c967 21156
90dd450c 21157fi
1e6feb95 21158
21d1c967 21159 fi
1e6feb95 21160
21d1c967 21161 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21162 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21163echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21164 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21165 echo "$as_me:$LINENO: result: not found" >&5
21166echo "${ECHO_T}not found" >&6
21167 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21168echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21169 { (exit 1); exit 1; }; }
21d1c967 21170 else
e6cc62c6
VS
21171 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21172echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21173 fi
21174
e6cc62c6
VS
21175 echo "$as_me:$LINENO: checking for libmgl location" >&5
21176echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
21177 case "${host}" in
21178 *-*-linux* )
63a76696
VS
21179 if test "x$wxUSE_SHARED" = xyes ; then
21180 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21181 else
21182 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21183 fi
21d1c967
GD
21184 ;;
21185 *-pc-msdosdjgpp )
63a76696 21186 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21187 ;;
21188 *)
e6cc62c6
VS
21189 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21190echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21191 { (exit 1); exit 1; }; }
21d1c967 21192 esac
1e6feb95 21193
21d1c967 21194 mgl_lib_type=""
63a76696
VS
21195 mgl_os=""
21196
21197 for mgl_os_i in $mgl_os_candidates ; do
21198 if test "x$mgl_os" = x ; then
21199 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21200 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21201 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21202 mgl_lib_type=debug
21203 mgl_os=$mgl_os_i
21204 fi
21205 fi
21206 if test "x$mgl_lib_type" = x ; then
21207 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21208 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21209 mgl_lib_type=release
21210 mgl_os=$mgl_os_i
21211 fi
21212 fi
21d1c967 21213 fi
63a76696 21214 done
2224580a 21215
63a76696 21216 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21217 echo "$as_me:$LINENO: result: not found" >&5
21218echo "${ECHO_T}not found" >&6
21219 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21220echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21221 { (exit 1); exit 1; }; }
63a76696 21222 fi
e6cc62c6
VS
21223 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21224echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21225
1d1b75ac
VZ
21226 wxUSE_UNIVERSAL="yes"
21227
21d1c967
GD
21228 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21229 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21230
90dd450c 21231 AFMINSTALL=afminstall
21d1c967
GD
21232 TOOLKIT=MGL
21233 GUIDIST=MGL_DIST
21234 fi
dad6c0ea 21235
21d1c967 21236 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21237 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21238echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21239 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21240 echo "$as_me:$LINENO: result: not found" >&5
21241echo "${ECHO_T}not found" >&6
21242 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21243echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21244 { (exit 1); exit 1; }; }
21d1c967 21245 else
e6cc62c6
VS
21246 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21247echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21248 fi
f6bcfd97 21249
21d1c967 21250 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21251 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21252echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21253 else
e6cc62c6
VS
21254 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21255echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21256 { (exit 1); exit 1; }; }
90dd450c 21257 fi
0b2effe9 21258
21d1c967
GD
21259 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21260 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21261
1d1b75ac
VZ
21262 wxUSE_UNIVERSAL="yes"
21263
21d1c967
GD
21264 AFMINSTALL=afminstall
21265 TOOLKIT=MICROWIN
21266 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21267
21268 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21269 fi
f6bcfd97 21270
21d1c967 21271 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21272 echo "$as_me:$LINENO: checking for X" >&5
21273echo $ECHO_N "checking for X... $ECHO_C" >&6
21274
d8356fa3 21275
21d1c967
GD
21276# Check whether --with-x or --without-x was given.
21277if test "${with_x+set}" = set; then
21278 withval="$with_x"
2224580a 21279
e6cc62c6 21280fi;
21d1c967
GD
21281# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21282if test "x$with_x" = xno; then
21283 # The user explicitly disabled X.
21284 have_x=disabled
21285else
21286 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21287 # Both variables are already set.
21288 have_x=yes
21289 else
e6cc62c6
VS
21290 if test "${ac_cv_have_x+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21292else
21293 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21294ac_x_includes=no ac_x_libraries=no
21295rm -fr conftest.dir
21296if mkdir conftest.dir; then
21297 cd conftest.dir
21d1c967 21298 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21299 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21300acfindx:
21301 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21302_ACEOF
21d1c967
GD
21303 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21304 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21305 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21306 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21307 for ac_extension in a so sl; do
21308 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21309 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21310 ac_im_usrlibdir=$ac_im_libdir; break
21311 fi
21312 done
21313 # Screen out bogus values from the imake configuration. They are
21314 # bogus both because they are the default anyway, and because
21315 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21316 case $ac_im_incroot in
21d1c967 21317 /usr/include) ;;
e6cc62c6 21318 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21319 esac
e6cc62c6 21320 case $ac_im_usrlibdir in
21d1c967 21321 /usr/lib | /lib) ;;
e6cc62c6 21322 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21323 esac
21324 fi
21325 cd ..
e6cc62c6 21326 rm -fr conftest.dir
21d1c967 21327fi
10f2d63a 21328
e6cc62c6
VS
21329# Standard set of common directories for X headers.
21330# Check X11 before X11Rn because it is often a symlink to the current release.
21331ac_x_header_dirs='
21332/usr/X11/include
21333/usr/X11R6/include
21334/usr/X11R5/include
21335/usr/X11R4/include
21336
21337/usr/include/X11
21338/usr/include/X11R6
21339/usr/include/X11R5
21340/usr/include/X11R4
21341
21342/usr/local/X11/include
21343/usr/local/X11R6/include
21344/usr/local/X11R5/include
21345/usr/local/X11R4/include
21346
21347/usr/local/include/X11
21348/usr/local/include/X11R6
21349/usr/local/include/X11R5
21350/usr/local/include/X11R4
21351
21352/usr/X386/include
21353/usr/x386/include
21354/usr/XFree86/include/X11
21355
21356/usr/include
21357/usr/local/include
21358/usr/unsupported/include
21359/usr/athena/include
21360/usr/local/x11r5/include
21361/usr/lpp/Xamples/include
21362
21363/usr/openwin/include
21364/usr/openwin/share/include'
21365
21366if test "$ac_x_includes" = no; then
21367 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21368 # First, try using that file with no special directory specified.
e6cc62c6
VS
21369 cat >conftest.$ac_ext <<_ACEOF
21370#line $LINENO "configure"
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376#include <X11/Intrinsic.h>
21377_ACEOF
21378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } >/dev/null; then
21386 if test -s conftest.err; then
21387 ac_cpp_err=$ac_c_preproc_warn_flag
21388 else
21389 ac_cpp_err=
21390 fi
21391else
21392 ac_cpp_err=yes
21393fi
21394if test -z "$ac_cpp_err"; then
21d1c967
GD
21395 # We can compile using X headers with no special include directory.
21396ac_x_includes=
90dd450c 21397else
e6cc62c6
VS
21398 echo "$as_me: failed program was:" >&5
21399sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 for ac_dir in $ac_x_header_dirs; do
21402 if test -r "$ac_dir/X11/Intrinsic.h"; then
21403 ac_x_includes=$ac_dir
21404 break
21405 fi
21406done
3a922bb4 21407fi
e6cc62c6
VS
21408rm -f conftest.err conftest.$ac_ext
21409fi # $ac_x_includes = no
10f2d63a 21410
e6cc62c6 21411if test "$ac_x_libraries" = no; then
21d1c967 21412 # Check for the libraries.
21d1c967
GD
21413 # See if we find them without any special options.
21414 # Don't add to $LIBS permanently.
e6cc62c6
VS
21415 ac_save_LIBS=$LIBS
21416 LIBS="-lXt $LIBS"
21417 cat >conftest.$ac_ext <<_ACEOF
21418#line $LINENO "configure"
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424#include <X11/Intrinsic.h>
21425int
21426main ()
21427{
21428XtMalloc (0)
21429 ;
21430 return 0;
21431}
21432_ACEOF
21433rm -f conftest.$ac_objext conftest$ac_exeext
21434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435 (eval $ac_link) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } &&
21439 { ac_try='test -s conftest$ac_exeext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 LIBS=$ac_save_LIBS
21d1c967
GD
21446# We can link X programs with no special library path.
21447ac_x_libraries=
3a922bb4 21448else
e6cc62c6
VS
21449 echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452LIBS=$ac_save_LIBS
21453for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21454do
e6cc62c6 21455 # Don't even attempt the hair of trying to link an X program!
21d1c967 21456 for ac_extension in a so sl; do
e6cc62c6 21457 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21458 ac_x_libraries=$ac_dir
21459 break 2
21460 fi
21461 done
21462done
3a922bb4 21463fi
e6cc62c6
VS
21464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21465fi # $ac_x_libraries = no
90dd450c 21466
e6cc62c6 21467if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21468 # Didn't find X anywhere. Cache the known absence of X.
21469 ac_cv_have_x="have_x=no"
21470else
21471 # Record where we found X for the cache.
21472 ac_cv_have_x="have_x=yes \
21473 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21474fi
21d1c967 21475fi
e6cc62c6 21476
21d1c967
GD
21477 fi
21478 eval "$ac_cv_have_x"
21479fi # $with_x != no
90dd450c 21480
21d1c967 21481if test "$have_x" != yes; then
e6cc62c6
VS
21482 echo "$as_me:$LINENO: result: $have_x" >&5
21483echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21484 no_x=yes
21485else
21486 # If each of the values was on the command line, it overrides each guess.
21487 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21488 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21489 # Update the cache value to reflect the command line values.
21490 ac_cv_have_x="have_x=yes \
21491 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21492 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21493echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21494fi
90dd450c 21495
21d1c967 21496if test "$no_x" = yes; then
90dd450c 21497 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21498
21499cat >>confdefs.h <<\_ACEOF
90dd450c 21500#define X_DISPLAY_MISSING 1
e6cc62c6 21501_ACEOF
90dd450c
VZ
21502
21503 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21504else
21505 if test -n "$x_includes"; then
21506 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21507 fi
3a922bb4 21508
90dd450c
VZ
21509 # It would also be nice to do this for all -L options, not just this one.
21510 if test -n "$x_libraries"; then
21511 X_LIBS="$X_LIBS -L$x_libraries"
21512 # For Solaris; some versions of Sun CC require a space after -R and
21513 # others require no space. Words are not sufficient . . . .
e6cc62c6 21514 case `(uname -sr) 2>/dev/null` in
90dd450c 21515 "SunOS 5"*)
e6cc62c6
VS
21516 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21517echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21518 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21519 cat >conftest.$ac_ext <<_ACEOF
21520#line $LINENO "configure"
21521/* confdefs.h. */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h. */
21526
21527int
21528main ()
21529{
90dd450c 21530
e6cc62c6
VS
21531 ;
21532 return 0;
21533}
21534_ACEOF
21535rm -f conftest.$ac_objext conftest$ac_exeext
21536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21537 (eval $ac_link) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -s conftest$ac_exeext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
90dd450c 21547 ac_R_nospace=yes
3a922bb4 21548else
e6cc62c6
VS
21549 echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
21552ac_R_nospace=no
3a922bb4 21553fi
e6cc62c6 21554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21555 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21556 echo "$as_me:$LINENO: result: no" >&5
21557echo "${ECHO_T}no" >&6
90dd450c
VZ
21558 X_LIBS="$X_LIBS -R$x_libraries"
21559 else
21560 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21561 cat >conftest.$ac_ext <<_ACEOF
21562#line $LINENO "configure"
21563/* confdefs.h. */
21564_ACEOF
21565cat confdefs.h >>conftest.$ac_ext
21566cat >>conftest.$ac_ext <<_ACEOF
21567/* end confdefs.h. */
21568
21569int
21570main ()
21571{
6f754473 21572
e6cc62c6
VS
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest.$ac_objext conftest$ac_exeext
21578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21579 (eval $ac_link) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -s conftest$ac_exeext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
90dd450c
VZ
21589 ac_R_space=yes
21590else
e6cc62c6
VS
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
21594ac_R_space=no
90dd450c 21595fi
e6cc62c6 21596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21597 if test $ac_R_space = yes; then
e6cc62c6
VS
21598 echo "$as_me:$LINENO: result: yes" >&5
21599echo "${ECHO_T}yes" >&6
90dd450c
VZ
21600 X_LIBS="$X_LIBS -R $x_libraries"
21601 else
e6cc62c6
VS
21602 echo "$as_me:$LINENO: result: neither works" >&5
21603echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21604 fi
21605 fi
e6cc62c6 21606 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21607 esac
21608 fi
21609
21610 # Check for system-dependent libraries X programs must link with.
21611 # Do this before checking for the system-independent R6 libraries
21612 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21613
90dd450c
VZ
21614 if test "$ISC" = yes; then
21615 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21616 else
e6cc62c6
VS
21617 # Martyn Johnson says this is needed for Ultrix, if the X
21618 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21619 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21620 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21621 cat >conftest.$ac_ext <<_ACEOF
21622#line $LINENO "configure"
21623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
21628
247f5006 21629/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21630#ifdef __cplusplus
21631extern "C"
21632#endif
247f5006 21633/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21634 builtin and then its argument prototype would still apply. */
21635char XOpenDisplay ();
21636int
21637main ()
21638{
21639XOpenDisplay ();
21640 ;
21641 return 0;
21642}
21643_ACEOF
21644rm -f conftest.$ac_objext conftest$ac_exeext
21645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21646 (eval $ac_link) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -s conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 :
21657else
21658 echo "$as_me: failed program was:" >&5
21659sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21660
e6cc62c6
VS
21661echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21662echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21663if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21665else
e6cc62c6
VS
21666 ac_check_lib_save_LIBS=$LIBS
21667LIBS="-ldnet $LIBS"
21668cat >conftest.$ac_ext <<_ACEOF
21669#line $LINENO "configure"
21670/* confdefs.h. */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h. */
a0b9e27f 21675
e6cc62c6
VS
21676/* Override any gcc2 internal prototype to avoid an error. */
21677#ifdef __cplusplus
21678extern "C"
21679#endif
21680/* We use char because int might match the return type of a gcc2
21681 builtin and then its argument prototype would still apply. */
21682char dnet_ntoa ();
21683int
21684main ()
21685{
21686dnet_ntoa ();
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
21692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 ac_cv_lib_dnet_dnet_ntoa=yes
21704else
21705 echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708ac_cv_lib_dnet_dnet_ntoa=no
21709fi
21710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21711LIBS=$ac_check_lib_save_LIBS
21712fi
21713echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21714echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21715if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21716 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21717fi
21718
90dd450c 21719 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21720 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21721echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21722if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21724else
e6cc62c6 21725 ac_check_lib_save_LIBS=$LIBS
90dd450c 21726LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21727cat >conftest.$ac_ext <<_ACEOF
21728#line $LINENO "configure"
21729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
21734
90dd450c 21735/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21736#ifdef __cplusplus
21737extern "C"
21738#endif
90dd450c 21739/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21740 builtin and then its argument prototype would still apply. */
21741char dnet_ntoa ();
21742int
21743main ()
21744{
21745dnet_ntoa ();
21746 ;
21747 return 0;
21748}
21749_ACEOF
21750rm -f conftest.$ac_objext conftest$ac_exeext
21751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21752 (eval $ac_link) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
21756 { ac_try='test -s conftest$ac_exeext'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767ac_cv_lib_dnet_stub_dnet_ntoa=no
21768fi
21769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21770LIBS=$ac_check_lib_save_LIBS
21771fi
21772echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21773echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21774if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21776fi
21777
90dd450c 21778 fi
e6cc62c6
VS
21779fi
21780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21781 LIBS="$ac_xsave_LIBS"
978f1259 21782
90dd450c
VZ
21783 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21784 # to get the SysV transport functions.
e6cc62c6 21785 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21786 # needs -lnsl.
21787 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21788 # on Irix 5.2, according to T.E. Dickey.
21789 # The functions gethostbyname, getservbyname, and inet_addr are
21790 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21791 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21792echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21793if test "${ac_cv_func_gethostbyname+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795else
21796 cat >conftest.$ac_ext <<_ACEOF
21797#line $LINENO "configure"
21798/* confdefs.h. */
21799_ACEOF
21800cat confdefs.h >>conftest.$ac_ext
21801cat >>conftest.$ac_ext <<_ACEOF
21802/* end confdefs.h. */
90dd450c 21803/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21804 which can conflict with char gethostbyname (); below.
21805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21806 <limits.h> exists even on freestanding compilers. */
21807#ifdef __STDC__
21808# include <limits.h>
21809#else
21810# include <assert.h>
21811#endif
90dd450c 21812/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21813#ifdef __cplusplus
21814extern "C"
21815{
21816#endif
90dd450c 21817/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21818 builtin and then its argument prototype would still apply. */
21819char gethostbyname ();
90dd450c
VZ
21820/* The GNU C library defines this for functions which it implements
21821 to always fail with ENOSYS. Some functions are actually named
21822 something starting with __ and the normal name is an alias. */
21823#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21824choke me
21825#else
e6cc62c6
VS
21826char (*f) () = gethostbyname;
21827#endif
21828#ifdef __cplusplus
21829}
90dd450c 21830#endif
978f1259 21831
e6cc62c6
VS
21832int
21833main ()
21834{
21835return f != gethostbyname;
21836 ;
21837 return 0;
21838}
21839_ACEOF
21840rm -f conftest.$ac_objext conftest$ac_exeext
21841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21842 (eval $ac_link) 2>&5
21843 ac_status=$?
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } &&
21846 { ac_try='test -s conftest$ac_exeext'
21847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21848 (eval $ac_try) 2>&5
21849 ac_status=$?
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; }; then
21852 ac_cv_func_gethostbyname=yes
21853else
21854 echo "$as_me: failed program was:" >&5
21855sed 's/^/| /' conftest.$ac_ext >&5
21856
21857ac_cv_func_gethostbyname=no
21858fi
21859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21860fi
21861echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21862echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21863
90dd450c 21864 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21865 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21866echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21867if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21869else
e6cc62c6 21870 ac_check_lib_save_LIBS=$LIBS
90dd450c 21871LIBS="-lnsl $LIBS"
e6cc62c6
VS
21872cat >conftest.$ac_ext <<_ACEOF
21873#line $LINENO "configure"
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879
90dd450c 21880/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21881#ifdef __cplusplus
21882extern "C"
21883#endif
90dd450c 21884/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21885 builtin and then its argument prototype would still apply. */
21886char gethostbyname ();
21887int
21888main ()
21889{
21890gethostbyname ();
21891 ;
21892 return 0;
21893}
21894_ACEOF
21895rm -f conftest.$ac_objext conftest$ac_exeext
21896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21897 (eval $ac_link) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -s conftest$ac_exeext'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 ac_cv_lib_nsl_gethostbyname=yes
21908else
21909 echo "$as_me: failed program was:" >&5
21910sed 's/^/| /' conftest.$ac_ext >&5
21911
21912ac_cv_lib_nsl_gethostbyname=no
21913fi
21914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21915LIBS=$ac_check_lib_save_LIBS
21916fi
21917echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21918echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21919if test $ac_cv_lib_nsl_gethostbyname = yes; then
21920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21921fi
247f5006 21922
e6cc62c6
VS
21923 if test $ac_cv_lib_nsl_gethostbyname = no; then
21924 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21925echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21926if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21928else
e6cc62c6
VS
21929 ac_check_lib_save_LIBS=$LIBS
21930LIBS="-lbsd $LIBS"
21931cat >conftest.$ac_ext <<_ACEOF
21932#line $LINENO "configure"
21933/* confdefs.h. */
21934_ACEOF
21935cat confdefs.h >>conftest.$ac_ext
21936cat >>conftest.$ac_ext <<_ACEOF
21937/* end confdefs.h. */
21938
21939/* Override any gcc2 internal prototype to avoid an error. */
21940#ifdef __cplusplus
21941extern "C"
21942#endif
21943/* We use char because int might match the return type of a gcc2
21944 builtin and then its argument prototype would still apply. */
21945char gethostbyname ();
21946int
21947main ()
21948{
21949gethostbyname ();
21950 ;
21951 return 0;
21952}
21953_ACEOF
21954rm -f conftest.$ac_objext conftest$ac_exeext
21955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21956 (eval $ac_link) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
21960 { ac_try='test -s conftest$ac_exeext'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966 ac_cv_lib_bsd_gethostbyname=yes
21967else
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971ac_cv_lib_bsd_gethostbyname=no
21972fi
21973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21974LIBS=$ac_check_lib_save_LIBS
21975fi
21976echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21977echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21978if test $ac_cv_lib_bsd_gethostbyname = yes; then
21979 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21980fi
b12915c1 21981
e6cc62c6 21982 fi
90dd450c
VZ
21983 fi
21984
21985 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21986 # socket/setsockopt and other routines are undefined under SCO ODT
21987 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21988 # on later versions), says Simon Leinen: it contains gethostby*
21989 # variants that don't use the name server (or something). -lsocket
21990 # must be given before -lnsl if both are needed. We assume that
21991 # if connect needs -lnsl, so does gethostbyname.
21992 echo "$as_me:$LINENO: checking for connect" >&5
21993echo $ECHO_N "checking for connect... $ECHO_C" >&6
21994if test "${ac_cv_func_connect+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996else
21997 cat >conftest.$ac_ext <<_ACEOF
21998#line $LINENO "configure"
21999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
90dd450c 22004/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22005 which can conflict with char connect (); below.
22006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22007 <limits.h> exists even on freestanding compilers. */
22008#ifdef __STDC__
22009# include <limits.h>
22010#else
22011# include <assert.h>
22012#endif
90dd450c 22013/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22014#ifdef __cplusplus
22015extern "C"
22016{
22017#endif
90dd450c 22018/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22019 builtin and then its argument prototype would still apply. */
22020char connect ();
90dd450c
VZ
22021/* The GNU C library defines this for functions which it implements
22022 to always fail with ENOSYS. Some functions are actually named
22023 something starting with __ and the normal name is an alias. */
22024#if defined (__stub_connect) || defined (__stub___connect)
22025choke me
22026#else
e6cc62c6
VS
22027char (*f) () = connect;
22028#endif
22029#ifdef __cplusplus
22030}
90dd450c
VZ
22031#endif
22032
e6cc62c6
VS
22033int
22034main ()
22035{
22036return f != connect;
22037 ;
22038 return 0;
22039}
22040_ACEOF
22041rm -f conftest.$ac_objext conftest$ac_exeext
22042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22043 (eval $ac_link) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
22047 { ac_try='test -s conftest$ac_exeext'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ac_cv_func_connect=yes
22054else
22055 echo "$as_me: failed program was:" >&5
22056sed 's/^/| /' conftest.$ac_ext >&5
22057
22058ac_cv_func_connect=no
22059fi
22060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22061fi
22062echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22063echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22064
90dd450c 22065 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22066 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22067echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22068if test "${ac_cv_lib_socket_connect+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22070else
e6cc62c6 22071 ac_check_lib_save_LIBS=$LIBS
90dd450c 22072LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22073cat >conftest.$ac_ext <<_ACEOF
22074#line $LINENO "configure"
22075/* confdefs.h. */
22076_ACEOF
22077cat confdefs.h >>conftest.$ac_ext
22078cat >>conftest.$ac_ext <<_ACEOF
22079/* end confdefs.h. */
22080
90dd450c 22081/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22082#ifdef __cplusplus
22083extern "C"
22084#endif
90dd450c 22085/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22086 builtin and then its argument prototype would still apply. */
22087char connect ();
22088int
22089main ()
22090{
22091connect ();
22092 ;
22093 return 0;
22094}
22095_ACEOF
22096rm -f conftest.$ac_objext conftest$ac_exeext
22097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>&5
22099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } &&
22102 { ac_try='test -s conftest$ac_exeext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 ac_cv_lib_socket_connect=yes
22109else
22110 echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
22113ac_cv_lib_socket_connect=no
22114fi
22115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22116LIBS=$ac_check_lib_save_LIBS
22117fi
22118echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22119echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22120if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22121 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22122fi
77e13408 22123
90dd450c 22124 fi
25d0687a 22125
e6cc62c6
VS
22126 # Guillermo Gomez says -lposix is necessary on A/UX.
22127 echo "$as_me:$LINENO: checking for remove" >&5
22128echo $ECHO_N "checking for remove... $ECHO_C" >&6
22129if test "${ac_cv_func_remove+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22131else
22132 cat >conftest.$ac_ext <<_ACEOF
22133#line $LINENO "configure"
22134/* confdefs.h. */
22135_ACEOF
22136cat confdefs.h >>conftest.$ac_ext
22137cat >>conftest.$ac_ext <<_ACEOF
22138/* end confdefs.h. */
90dd450c 22139/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22140 which can conflict with char remove (); below.
22141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22142 <limits.h> exists even on freestanding compilers. */
22143#ifdef __STDC__
22144# include <limits.h>
22145#else
22146# include <assert.h>
22147#endif
90dd450c 22148/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22149#ifdef __cplusplus
22150extern "C"
22151{
22152#endif
90dd450c 22153/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22154 builtin and then its argument prototype would still apply. */
22155char remove ();
90dd450c
VZ
22156/* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159#if defined (__stub_remove) || defined (__stub___remove)
22160choke me
22161#else
e6cc62c6
VS
22162char (*f) () = remove;
22163#endif
22164#ifdef __cplusplus
22165}
90dd450c 22166#endif
55e80573 22167
e6cc62c6
VS
22168int
22169main ()
22170{
22171return f != remove;
22172 ;
22173 return 0;
22174}
22175_ACEOF
22176rm -f conftest.$ac_objext conftest$ac_exeext
22177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22178 (eval $ac_link) 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } &&
22182 { ac_try='test -s conftest$ac_exeext'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; }; then
22188 ac_cv_func_remove=yes
22189else
22190 echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193ac_cv_func_remove=no
22194fi
22195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22196fi
22197echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22198echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22199
90dd450c 22200 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22201 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22202echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22203if test "${ac_cv_lib_posix_remove+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22205else
e6cc62c6 22206 ac_check_lib_save_LIBS=$LIBS
90dd450c 22207LIBS="-lposix $LIBS"
e6cc62c6
VS
22208cat >conftest.$ac_ext <<_ACEOF
22209#line $LINENO "configure"
22210/* confdefs.h. */
22211_ACEOF
22212cat confdefs.h >>conftest.$ac_ext
22213cat >>conftest.$ac_ext <<_ACEOF
22214/* end confdefs.h. */
22215
90dd450c 22216/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22217#ifdef __cplusplus
22218extern "C"
22219#endif
90dd450c 22220/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22221 builtin and then its argument prototype would still apply. */
22222char remove ();
22223int
22224main ()
22225{
22226remove ();
22227 ;
22228 return 0;
22229}
22230_ACEOF
22231rm -f conftest.$ac_objext conftest$ac_exeext
22232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22233 (eval $ac_link) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } &&
22237 { ac_try='test -s conftest$ac_exeext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 ac_cv_lib_posix_remove=yes
22244else
22245 echo "$as_me: failed program was:" >&5
22246sed 's/^/| /' conftest.$ac_ext >&5
22247
22248ac_cv_lib_posix_remove=no
22249fi
22250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22251LIBS=$ac_check_lib_save_LIBS
22252fi
22253echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22254echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22255if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22257fi
f6bcfd97 22258
6fa882bd
RR
22259 fi
22260
90dd450c 22261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22262 echo "$as_me:$LINENO: checking for shmat" >&5
22263echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22264if test "${ac_cv_func_shmat+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266else
22267 cat >conftest.$ac_ext <<_ACEOF
22268#line $LINENO "configure"
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
90dd450c 22274/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22275 which can conflict with char shmat (); below.
22276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22277 <limits.h> exists even on freestanding compilers. */
22278#ifdef __STDC__
22279# include <limits.h>
22280#else
22281# include <assert.h>
22282#endif
90dd450c 22283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22284#ifdef __cplusplus
22285extern "C"
22286{
22287#endif
90dd450c 22288/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22289 builtin and then its argument prototype would still apply. */
22290char shmat ();
90dd450c
VZ
22291/* The GNU C library defines this for functions which it implements
22292 to always fail with ENOSYS. Some functions are actually named
22293 something starting with __ and the normal name is an alias. */
22294#if defined (__stub_shmat) || defined (__stub___shmat)
22295choke me
22296#else
e6cc62c6
VS
22297char (*f) () = shmat;
22298#endif
22299#ifdef __cplusplus
22300}
90dd450c 22301#endif
10f2d63a 22302
e6cc62c6
VS
22303int
22304main ()
22305{
22306return f != shmat;
22307 ;
22308 return 0;
22309}
22310_ACEOF
22311rm -f conftest.$ac_objext conftest$ac_exeext
22312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } &&
22317 { ac_try='test -s conftest$ac_exeext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_func_shmat=yes
22324else
22325 echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328ac_cv_func_shmat=no
22329fi
22330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22331fi
22332echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22333echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22334
90dd450c 22335 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22336 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22337echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22338if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22340else
e6cc62c6 22341 ac_check_lib_save_LIBS=$LIBS
90dd450c 22342LIBS="-lipc $LIBS"
e6cc62c6
VS
22343cat >conftest.$ac_ext <<_ACEOF
22344#line $LINENO "configure"
22345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350
8284b0c5 22351/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22352#ifdef __cplusplus
22353extern "C"
22354#endif
90dd450c 22355/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22356 builtin and then its argument prototype would still apply. */
22357char shmat ();
22358int
22359main ()
22360{
22361shmat ();
22362 ;
22363 return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext conftest$ac_exeext
22367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22368 (eval $ac_link) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
22372 { ac_try='test -s conftest$ac_exeext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_cv_lib_ipc_shmat=yes
22379else
22380 echo "$as_me: failed program was:" >&5
22381sed 's/^/| /' conftest.$ac_ext >&5
22382
22383ac_cv_lib_ipc_shmat=no
22384fi
22385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22386LIBS=$ac_check_lib_save_LIBS
22387fi
22388echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22389echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22390if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22392fi
22393
d558c907 22394 fi
90dd450c 22395 fi
3a922bb4 22396
90dd450c 22397 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22398 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22399 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22400 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22401 # check for ICE first), but we must link in the order -lSM -lICE or
22402 # we get undefined symbols. So assume we have SM if we have ICE.
22403 # These have to be linked with before -lX11, unlike the other
22404 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22405 # John Interrante, Karl Berry
22406 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22407echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22408if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22410else
22411 ac_check_lib_save_LIBS=$LIBS
f09359cf 22412LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22413cat >conftest.$ac_ext <<_ACEOF
22414#line $LINENO "configure"
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420
90dd450c 22421/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22422#ifdef __cplusplus
22423extern "C"
22424#endif
90dd450c 22425/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22426 builtin and then its argument prototype would still apply. */
22427char IceConnectionNumber ();
22428int
22429main ()
22430{
22431IceConnectionNumber ();
22432 ;
22433 return 0;
22434}
22435_ACEOF
22436rm -f conftest.$ac_objext conftest$ac_exeext
22437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438 (eval $ac_link) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try='test -s conftest$ac_exeext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_lib_ICE_IceConnectionNumber=yes
22449else
22450 echo "$as_me: failed program was:" >&5
22451sed 's/^/| /' conftest.$ac_ext >&5
22452
22453ac_cv_lib_ICE_IceConnectionNumber=no
22454fi
22455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22456LIBS=$ac_check_lib_save_LIBS
22457fi
22458echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22459echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22460if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22461 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22462fi
10f2d63a 22463
e6cc62c6 22464 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22465
22466fi
22467
8284b0c5 22468
90dd450c 22469 if test "$no_x" = "yes"; then
e6cc62c6
VS
22470 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22471echo "$as_me: error: X11 not found" >&2;}
22472 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22473 fi
22474
22475 GUI_TK_LIBRARY="$X_LIBS"
22476 TOOLKIT_INCLUDE="$X_CFLAGS"
22477 AFMINSTALL=afminstall
22478 COMPILED_X_PROGRAM=0
22479
21d1c967 22480 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22481 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22482echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22483 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22484 echo "$as_me:$LINENO: result: not found" >&5
22485echo "${ECHO_T}not found" >&6
22486 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22487echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22488 { (exit 1); exit 1; }; }
90dd450c 22489 else
e6cc62c6
VS
22490 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22491echo "${ECHO_T}$MICROWIN" >&6
22492 cat >>confdefs.h <<\_ACEOF
21d1c967 22493#define wxUSE_NANOX 1
e6cc62c6 22494_ACEOF
21d1c967 22495
90dd450c
VZ
22496 fi
22497 fi
22498
22499 xpm_link=
e6cc62c6
VS
22500 echo "$as_me:$LINENO: checking for Xpm library" >&5
22501echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22502
90dd450c 22503ac_find_libraries=
2b5f62a0 22504for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22505 do
22506 for ac_extension in a so sl dylib; do
22507 if test -f "$ac_dir/libXpm.$ac_extension"; then
22508 ac_find_libraries=$ac_dir
22509 break 2
22510 fi
22511 done
22512 done
22513
22514 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22515
90dd450c
VZ
22516 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22517 result=$?
22518 if test $result = 0; then
22519 ac_path_to_link=""
22520 else
22521 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22522 fi
90dd450c 22523
21d1c967
GD
22524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22525 xpm_link=" -lXpm"
e6cc62c6 22526 cat >>confdefs.h <<\_ACEOF
21d1c967 22527#define wxHAVE_LIB_XPM 1
e6cc62c6 22528_ACEOF
90dd450c 22529
e6cc62c6
VS
22530 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22531echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22532 else
e6cc62c6
VS
22533 cat >conftest.$ac_ext <<_ACEOF
22534#line $LINENO "configure"
22535/* confdefs.h. */
22536_ACEOF
22537cat confdefs.h >>conftest.$ac_ext
22538cat >>conftest.$ac_ext <<_ACEOF
22539/* end confdefs.h. */
90dd450c 22540
21d1c967 22541 #include <X11/xpm.h>
e6cc62c6
VS
22542
22543int
22544main ()
22545{
6f72b082 22546
21d1c967
GD
22547 int version;
22548 version = XpmLibraryVersion();
e6cc62c6
VS
22549
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566
21d1c967 22567 xpm_link=" -lXpm"
e6cc62c6 22568 cat >>confdefs.h <<\_ACEOF
21d1c967 22569#define wxHAVE_LIB_XPM 1
e6cc62c6 22570_ACEOF
90dd450c 22571
e6cc62c6
VS
22572 echo "$as_me:$LINENO: result: found in default search path" >&5
22573echo "${ECHO_T}found in default search path" >&6
21d1c967 22574 COMPILED_X_PROGRAM=0
e6cc62c6 22575
21d1c967 22576else
e6cc62c6
VS
22577 echo "$as_me: failed program was:" >&5
22578sed 's/^/| /' conftest.$ac_ext >&5
22579
22580
22581 echo "$as_me:$LINENO: result: no" >&5
22582echo "${ECHO_T}no" >&6
22583 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22584echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22585
22586
6f72b082 22587fi
e6cc62c6 22588rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22589 fi
90dd450c 22590
e6cc62c6
VS
22591 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22592echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22593if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22595else
e6cc62c6 22596 ac_check_lib_save_LIBS=$LIBS
f7f78039 22597LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22598cat >conftest.$ac_ext <<_ACEOF
22599#line $LINENO "configure"
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
22605
f7f78039 22606/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22607#ifdef __cplusplus
22608extern "C"
22609#endif
f7f78039 22610/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22611 builtin and then its argument prototype would still apply. */
22612char XShapeQueryExtension ();
22613int
22614main ()
22615{
22616XShapeQueryExtension ();
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621rm -f conftest.$ac_objext conftest$ac_exeext
22622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22623 (eval $ac_link) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
22627 { ac_try='test -s conftest$ac_exeext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 ac_cv_lib_Xext_XShapeQueryExtension=yes
22634else
22635 echo "$as_me: failed program was:" >&5
22636sed 's/^/| /' conftest.$ac_ext >&5
22637
22638ac_cv_lib_Xext_XShapeQueryExtension=no
22639fi
22640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22641LIBS=$ac_check_lib_save_LIBS
22642fi
22643echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22644echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22645if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22646
f7f78039
MB
22647 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22648 wxHAVE_XEXT_LIB=1
e6cc62c6 22649
f7f78039
MB
22650fi
22651
22652
2b5f62a0 22653 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22654
2b5f62a0 22655 succeeded=no
90dd450c 22656
2b5f62a0
VZ
22657 if test -z "$PKG_CONFIG"; then
22658 # Extract the first word of "pkg-config", so it can be a program name with args.
22659set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22660echo "$as_me:$LINENO: checking for $ac_word" >&5
22661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22662if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22664else
e6cc62c6
VS
22665 case $PKG_CONFIG in
22666 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22668 ;;
2b5f62a0 22669 *)
e6cc62c6
VS
22670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22671for as_dir in $PATH
22672do
22673 IFS=$as_save_IFS
22674 test -z "$as_dir" && as_dir=.
22675 for ac_exec_ext in '' $ac_executable_extensions; do
22676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22679 break 2
22680 fi
22681done
22682done
22683
2b5f62a0
VZ
22684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22685 ;;
22686esac
22687fi
e6cc62c6
VS
22688PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22689
2b5f62a0 22690if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22691 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22692echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22693else
e6cc62c6
VS
22694 echo "$as_me:$LINENO: result: no" >&5
22695echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22696fi
22697
22698 fi
22699
22700 if test "$PKG_CONFIG" = "no" ; then
22701 echo "*** The pkg-config script could not be found. Make sure it is"
22702 echo "*** in your path, or set the PKG_CONFIG environment variable"
22703 echo "*** to the full path to pkg-config."
22704 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22705 else
22706 PKG_CONFIG_MIN_VERSION=0.9.0
22707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22708 echo "$as_me:$LINENO: checking for pangox" >&5
22709echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22710
22711 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22712 echo "$as_me:$LINENO: result: yes" >&5
22713echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22714 succeeded=yes
22715
e6cc62c6
VS
22716 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22717echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22718 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22719 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22720echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22721
e6cc62c6
VS
22722 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22723echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22724 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22725 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22726echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22727 else
22728 PANGOX_CFLAGS=""
22729 PANGOX_LIBS=""
e6cc62c6 22730 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22731 ## do set a variable so people can do so.
22732 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22733
2b5f62a0
VZ
22734 fi
22735
e6cc62c6
VS
22736
22737
2b5f62a0
VZ
22738 else
22739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22741 fi
22742 fi
22743
22744 if test $succeeded = yes; then
e6cc62c6 22745
2b5f62a0 22746 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22747 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22748
2b5f62a0 22749 else
e6cc62c6
VS
22750
22751 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22752echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22753 { (exit 1); exit 1; }; }
22754
22755
2b5f62a0
VZ
22756 fi
22757
e6cc62c6 22758
2b5f62a0
VZ
22759 succeeded=no
22760
22761 if test -z "$PKG_CONFIG"; then
22762 # Extract the first word of "pkg-config", so it can be a program name with args.
22763set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22764echo "$as_me:$LINENO: checking for $ac_word" >&5
22765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22766if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22768else
e6cc62c6
VS
22769 case $PKG_CONFIG in
22770 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22772 ;;
2b5f62a0 22773 *)
e6cc62c6
VS
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775for as_dir in $PATH
22776do
22777 IFS=$as_save_IFS
22778 test -z "$as_dir" && as_dir=.
22779 for ac_exec_ext in '' $ac_executable_extensions; do
22780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22783 break 2
22784 fi
22785done
22786done
22787
2b5f62a0
VZ
22788 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22789 ;;
22790esac
22791fi
e6cc62c6
VS
22792PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22793
2b5f62a0 22794if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22795 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22796echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22797else
e6cc62c6
VS
22798 echo "$as_me:$LINENO: result: no" >&5
22799echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22800fi
22801
22802 fi
22803
22804 if test "$PKG_CONFIG" = "no" ; then
22805 echo "*** The pkg-config script could not be found. Make sure it is"
22806 echo "*** in your path, or set the PKG_CONFIG environment variable"
22807 echo "*** to the full path to pkg-config."
22808 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22809 else
22810 PKG_CONFIG_MIN_VERSION=0.9.0
22811 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22812 echo "$as_me:$LINENO: checking for pangoft2" >&5
22813echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22814
22815 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22816 echo "$as_me:$LINENO: result: yes" >&5
22817echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22818 succeeded=yes
22819
e6cc62c6
VS
22820 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22821echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22822 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22823 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22824echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22825
e6cc62c6
VS
22826 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22827echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22828 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22829 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22830echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22831 else
22832 PANGOFT2_CFLAGS=""
22833 PANGOFT2_LIBS=""
e6cc62c6 22834 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22835 ## do set a variable so people can do so.
22836 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22837
2b5f62a0
VZ
22838 fi
22839
e6cc62c6
VS
22840
22841
2b5f62a0
VZ
22842 else
22843 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22844 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22845 fi
22846 fi
22847
22848 if test $succeeded = yes; then
e6cc62c6 22849
2b5f62a0 22850 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22851 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22852
2b5f62a0 22853 else
e6cc62c6
VS
22854
22855 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22856echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22857 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22858
22859
2b5f62a0
VZ
22860 fi
22861
e6cc62c6 22862
2b5f62a0
VZ
22863 succeeded=no
22864
22865 if test -z "$PKG_CONFIG"; then
22866 # Extract the first word of "pkg-config", so it can be a program name with args.
22867set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22868echo "$as_me:$LINENO: checking for $ac_word" >&5
22869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22870if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22872else
e6cc62c6
VS
22873 case $PKG_CONFIG in
22874 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22876 ;;
2b5f62a0 22877 *)
e6cc62c6
VS
22878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22879for as_dir in $PATH
22880do
22881 IFS=$as_save_IFS
22882 test -z "$as_dir" && as_dir=.
22883 for ac_exec_ext in '' $ac_executable_extensions; do
22884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22887 break 2
22888 fi
22889done
22890done
22891
2b5f62a0
VZ
22892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22893 ;;
22894esac
22895fi
e6cc62c6
VS
22896PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22897
2b5f62a0 22898if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22899 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22900echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22901else
e6cc62c6
VS
22902 echo "$as_me:$LINENO: result: no" >&5
22903echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22904fi
22905
22906 fi
22907
22908 if test "$PKG_CONFIG" = "no" ; then
22909 echo "*** The pkg-config script could not be found. Make sure it is"
22910 echo "*** in your path, or set the PKG_CONFIG environment variable"
22911 echo "*** to the full path to pkg-config."
22912 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22913 else
22914 PKG_CONFIG_MIN_VERSION=0.9.0
22915 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22916 echo "$as_me:$LINENO: checking for pangoxft" >&5
22917echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22918
22919 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22920 echo "$as_me:$LINENO: result: yes" >&5
22921echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22922 succeeded=yes
22923
e6cc62c6
VS
22924 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22925echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22926 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22927 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22928echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22929
e6cc62c6
VS
22930 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22931echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22932 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22933 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22934echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22935 else
22936 PANGOXFT_CFLAGS=""
22937 PANGOXFT_LIBS=""
e6cc62c6 22938 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22939 ## do set a variable so people can do so.
22940 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22941
2b5f62a0
VZ
22942 fi
22943
e6cc62c6
VS
22944
22945
2b5f62a0
VZ
22946 else
22947 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22948 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22949 fi
22950 fi
22951
22952 if test $succeeded = yes; then
e6cc62c6 22953
2b5f62a0 22954 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22955 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22956
2b5f62a0 22957 else
e6cc62c6
VS
22958
22959 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22960echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22961
22962
2b5f62a0
VZ
22963 fi
22964
22965 fi
22966
22967 wxUSE_UNIVERSAL="yes"
22968
22969 if test "$wxUSE_NANOX" = "yes"; then
22970 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22971 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
22972 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22973 else
22974 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22975 fi
22976
22977 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22978 TOOLKIT=X11
22979 GUIDIST=X11_DIST
22980 fi
22981
21d1c967
GD
22982 if test "$wxUSE_MOTIF" = 1; then
22983 if test "$no_x" = yes; then
22984 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22985
22986cat >>confdefs.h <<\_ACEOF
21d1c967 22987#define X_DISPLAY_MISSING 1
e6cc62c6 22988_ACEOF
21d1c967
GD
22989
22990 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22991else
22992 if test -n "$x_includes"; then
22993 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22994 fi
22995
21d1c967
GD
22996 # It would also be nice to do this for all -L options, not just this one.
22997 if test -n "$x_libraries"; then
22998 X_LIBS="$X_LIBS -L$x_libraries"
22999 # For Solaris; some versions of Sun CC require a space after -R and
23000 # others require no space. Words are not sufficient . . . .
e6cc62c6 23001 case `(uname -sr) 2>/dev/null` in
21d1c967 23002 "SunOS 5"*)
e6cc62c6
VS
23003 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23004echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23005 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23006 cat >conftest.$ac_ext <<_ACEOF
23007#line $LINENO "configure"
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013
23014int
23015main ()
23016{
21d1c967 23017
e6cc62c6
VS
23018 ;
23019 return 0;
23020}
23021_ACEOF
23022rm -f conftest.$ac_objext conftest$ac_exeext
23023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23024 (eval $ac_link) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } &&
23028 { ac_try='test -s conftest$ac_exeext'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
21d1c967 23034 ac_R_nospace=yes
698dcdb6 23035else
e6cc62c6
VS
23036 echo "$as_me: failed program was:" >&5
23037sed 's/^/| /' conftest.$ac_ext >&5
23038
23039ac_R_nospace=no
10f2d63a 23040fi
e6cc62c6 23041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23042 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23043 echo "$as_me:$LINENO: result: no" >&5
23044echo "${ECHO_T}no" >&6
21d1c967
GD
23045 X_LIBS="$X_LIBS -R$x_libraries"
23046 else
23047 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
23048 cat >conftest.$ac_ext <<_ACEOF
23049#line $LINENO "configure"
23050/* confdefs.h. */
23051_ACEOF
23052cat confdefs.h >>conftest.$ac_ext
23053cat >>conftest.$ac_ext <<_ACEOF
23054/* end confdefs.h. */
23055
23056int
23057main ()
23058{
f0c87536 23059
e6cc62c6
VS
23060 ;
23061 return 0;
23062}
23063_ACEOF
23064rm -f conftest.$ac_objext conftest$ac_exeext
23065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23066 (eval $ac_link) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } &&
23070 { ac_try='test -s conftest$ac_exeext'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
21d1c967
GD
23076 ac_R_space=yes
23077else
e6cc62c6
VS
23078 echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081ac_R_space=no
21d1c967 23082fi
e6cc62c6 23083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23084 if test $ac_R_space = yes; then
e6cc62c6
VS
23085 echo "$as_me:$LINENO: result: yes" >&5
23086echo "${ECHO_T}yes" >&6
21d1c967
GD
23087 X_LIBS="$X_LIBS -R $x_libraries"
23088 else
e6cc62c6
VS
23089 echo "$as_me:$LINENO: result: neither works" >&5
23090echo "${ECHO_T}neither works" >&6
21d1c967
GD
23091 fi
23092 fi
e6cc62c6 23093 LIBS=$ac_xsave_LIBS
21d1c967
GD
23094 esac
23095 fi
90dd450c 23096
21d1c967
GD
23097 # Check for system-dependent libraries X programs must link with.
23098 # Do this before checking for the system-independent R6 libraries
23099 # (-lICE), since we may need -lsocket or whatever for X linking.
23100
23101 if test "$ISC" = yes; then
23102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23103 else
e6cc62c6
VS
23104 # Martyn Johnson says this is needed for Ultrix, if the X
23105 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23106 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23107 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23108 cat >conftest.$ac_ext <<_ACEOF
23109#line $LINENO "configure"
23110/* confdefs.h. */
23111_ACEOF
23112cat confdefs.h >>conftest.$ac_ext
23113cat >>conftest.$ac_ext <<_ACEOF
23114/* end confdefs.h. */
23115
247f5006 23116/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23117#ifdef __cplusplus
23118extern "C"
23119#endif
247f5006 23120/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23121 builtin and then its argument prototype would still apply. */
23122char XOpenDisplay ();
23123int
23124main ()
23125{
23126XOpenDisplay ();
23127 ;
23128 return 0;
23129}
23130_ACEOF
23131rm -f conftest.$ac_objext conftest$ac_exeext
23132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133 (eval $ac_link) 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -s conftest$ac_exeext'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 :
23144else
23145 echo "$as_me: failed program was:" >&5
23146sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23147
e6cc62c6
VS
23148echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23149echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23150if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23152else
e6cc62c6
VS
23153 ac_check_lib_save_LIBS=$LIBS
23154LIBS="-ldnet $LIBS"
23155cat >conftest.$ac_ext <<_ACEOF
23156#line $LINENO "configure"
23157/* confdefs.h. */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h. */
a0b9e27f 23162
e6cc62c6
VS
23163/* Override any gcc2 internal prototype to avoid an error. */
23164#ifdef __cplusplus
23165extern "C"
23166#endif
23167/* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169char dnet_ntoa ();
23170int
23171main ()
23172{
23173dnet_ntoa ();
23174 ;
23175 return 0;
23176}
23177_ACEOF
23178rm -f conftest.$ac_objext conftest$ac_exeext
23179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180 (eval $ac_link) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -s conftest$ac_exeext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 ac_cv_lib_dnet_dnet_ntoa=yes
23191else
23192 echo "$as_me: failed program was:" >&5
23193sed 's/^/| /' conftest.$ac_ext >&5
23194
23195ac_cv_lib_dnet_dnet_ntoa=no
23196fi
23197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23198LIBS=$ac_check_lib_save_LIBS
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23201echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23202if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23203 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23204fi
0fb0dd83 23205
21d1c967 23206 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23207 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23208echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23209if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23211else
e6cc62c6 23212 ac_check_lib_save_LIBS=$LIBS
21d1c967 23213LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23214cat >conftest.$ac_ext <<_ACEOF
23215#line $LINENO "configure"
23216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
23221
21d1c967 23222/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23223#ifdef __cplusplus
23224extern "C"
23225#endif
21d1c967 23226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23227 builtin and then its argument prototype would still apply. */
23228char dnet_ntoa ();
23229int
23230main ()
23231{
23232dnet_ntoa ();
23233 ;
23234 return 0;
23235}
23236_ACEOF
23237rm -f conftest.$ac_objext conftest$ac_exeext
23238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239 (eval $ac_link) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } &&
23243 { ac_try='test -s conftest$ac_exeext'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }; then
23249 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23250else
23251 echo "$as_me: failed program was:" >&5
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
23254ac_cv_lib_dnet_stub_dnet_ntoa=no
23255fi
23256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23257LIBS=$ac_check_lib_save_LIBS
23258fi
23259echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23260echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23261if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23262 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23263fi
23264
21d1c967 23265 fi
e6cc62c6
VS
23266fi
23267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23268 LIBS="$ac_xsave_LIBS"
90dd450c 23269
21d1c967
GD
23270 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23271 # to get the SysV transport functions.
e6cc62c6 23272 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23273 # needs -lnsl.
23274 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23275 # on Irix 5.2, according to T.E. Dickey.
23276 # The functions gethostbyname, getservbyname, and inet_addr are
23277 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23278 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23279echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23280if test "${ac_cv_func_gethostbyname+set}" = set; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23282else
23283 cat >conftest.$ac_ext <<_ACEOF
23284#line $LINENO "configure"
23285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
21d1c967 23290/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23291 which can conflict with char gethostbyname (); below.
23292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23293 <limits.h> exists even on freestanding compilers. */
23294#ifdef __STDC__
23295# include <limits.h>
23296#else
23297# include <assert.h>
23298#endif
21d1c967 23299/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23300#ifdef __cplusplus
23301extern "C"
23302{
23303#endif
21d1c967 23304/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23305 builtin and then its argument prototype would still apply. */
23306char gethostbyname ();
21d1c967
GD
23307/* The GNU C library defines this for functions which it implements
23308 to always fail with ENOSYS. Some functions are actually named
23309 something starting with __ and the normal name is an alias. */
23310#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23311choke me
23312#else
e6cc62c6
VS
23313char (*f) () = gethostbyname;
23314#endif
23315#ifdef __cplusplus
23316}
21d1c967 23317#endif
90dd450c 23318
e6cc62c6
VS
23319int
23320main ()
23321{
23322return f != gethostbyname;
23323 ;
23324 return 0;
23325}
23326_ACEOF
23327rm -f conftest.$ac_objext conftest$ac_exeext
23328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23329 (eval $ac_link) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } &&
23333 { ac_try='test -s conftest$ac_exeext'
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; }; then
23339 ac_cv_func_gethostbyname=yes
23340else
23341 echo "$as_me: failed program was:" >&5
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344ac_cv_func_gethostbyname=no
23345fi
23346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23347fi
23348echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23349echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23350
21d1c967 23351 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23352 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23353echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23354if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23356else
e6cc62c6 23357 ac_check_lib_save_LIBS=$LIBS
21d1c967 23358LIBS="-lnsl $LIBS"
e6cc62c6
VS
23359cat >conftest.$ac_ext <<_ACEOF
23360#line $LINENO "configure"
23361/* confdefs.h. */
23362_ACEOF
23363cat confdefs.h >>conftest.$ac_ext
23364cat >>conftest.$ac_ext <<_ACEOF
23365/* end confdefs.h. */
23366
21d1c967 23367/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23368#ifdef __cplusplus
23369extern "C"
23370#endif
21d1c967 23371/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23372 builtin and then its argument prototype would still apply. */
23373char gethostbyname ();
23374int
23375main ()
23376{
23377gethostbyname ();
23378 ;
23379 return 0;
23380}
23381_ACEOF
23382rm -f conftest.$ac_objext conftest$ac_exeext
23383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384 (eval $ac_link) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try='test -s conftest$ac_exeext'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_lib_nsl_gethostbyname=yes
23395else
23396 echo "$as_me: failed program was:" >&5
23397sed 's/^/| /' conftest.$ac_ext >&5
23398
23399ac_cv_lib_nsl_gethostbyname=no
23400fi
23401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23402LIBS=$ac_check_lib_save_LIBS
23403fi
23404echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23405echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23406if test $ac_cv_lib_nsl_gethostbyname = yes; then
23407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23408fi
247f5006 23409
e6cc62c6
VS
23410 if test $ac_cv_lib_nsl_gethostbyname = no; then
23411 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23412echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23413if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23415else
e6cc62c6
VS
23416 ac_check_lib_save_LIBS=$LIBS
23417LIBS="-lbsd $LIBS"
23418cat >conftest.$ac_ext <<_ACEOF
23419#line $LINENO "configure"
23420/* confdefs.h. */
23421_ACEOF
23422cat confdefs.h >>conftest.$ac_ext
23423cat >>conftest.$ac_ext <<_ACEOF
23424/* end confdefs.h. */
23425
23426/* Override any gcc2 internal prototype to avoid an error. */
23427#ifdef __cplusplus
23428extern "C"
23429#endif
23430/* We use char because int might match the return type of a gcc2
23431 builtin and then its argument prototype would still apply. */
23432char gethostbyname ();
23433int
23434main ()
23435{
23436gethostbyname ();
23437 ;
23438 return 0;
23439}
23440_ACEOF
23441rm -f conftest.$ac_objext conftest$ac_exeext
23442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>&5
23444 ac_status=$?
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -s conftest$ac_exeext'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 ac_cv_lib_bsd_gethostbyname=yes
23454else
23455 echo "$as_me: failed program was:" >&5
23456sed 's/^/| /' conftest.$ac_ext >&5
23457
23458ac_cv_lib_bsd_gethostbyname=no
23459fi
23460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23461LIBS=$ac_check_lib_save_LIBS
23462fi
23463echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23464echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23465if test $ac_cv_lib_bsd_gethostbyname = yes; then
23466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23467fi
90dd450c 23468
e6cc62c6 23469 fi
90dd450c
VZ
23470 fi
23471
21d1c967
GD
23472 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23473 # socket/setsockopt and other routines are undefined under SCO ODT
23474 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23475 # on later versions), says Simon Leinen: it contains gethostby*
23476 # variants that don't use the name server (or something). -lsocket
23477 # must be given before -lnsl if both are needed. We assume that
23478 # if connect needs -lnsl, so does gethostbyname.
23479 echo "$as_me:$LINENO: checking for connect" >&5
23480echo $ECHO_N "checking for connect... $ECHO_C" >&6
23481if test "${ac_cv_func_connect+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23483else
23484 cat >conftest.$ac_ext <<_ACEOF
23485#line $LINENO "configure"
23486/* confdefs.h. */
23487_ACEOF
23488cat confdefs.h >>conftest.$ac_ext
23489cat >>conftest.$ac_ext <<_ACEOF
23490/* end confdefs.h. */
21d1c967 23491/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23492 which can conflict with char connect (); below.
23493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23494 <limits.h> exists even on freestanding compilers. */
23495#ifdef __STDC__
23496# include <limits.h>
23497#else
23498# include <assert.h>
23499#endif
21d1c967 23500/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23501#ifdef __cplusplus
23502extern "C"
23503{
23504#endif
21d1c967 23505/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23506 builtin and then its argument prototype would still apply. */
23507char connect ();
21d1c967
GD
23508/* The GNU C library defines this for functions which it implements
23509 to always fail with ENOSYS. Some functions are actually named
23510 something starting with __ and the normal name is an alias. */
23511#if defined (__stub_connect) || defined (__stub___connect)
23512choke me
23513#else
e6cc62c6
VS
23514char (*f) () = connect;
23515#endif
23516#ifdef __cplusplus
23517}
21d1c967 23518#endif
90dd450c 23519
e6cc62c6
VS
23520int
23521main ()
23522{
23523return f != connect;
23524 ;
23525 return 0;
23526}
23527_ACEOF
23528rm -f conftest.$ac_objext conftest$ac_exeext
23529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530 (eval $ac_link) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
23534 { ac_try='test -s conftest$ac_exeext'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_cv_func_connect=yes
23541else
23542 echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545ac_cv_func_connect=no
23546fi
23547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23548fi
23549echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23550echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23551
21d1c967 23552 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23553 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23554echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23555if test "${ac_cv_lib_socket_connect+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23557else
e6cc62c6 23558 ac_check_lib_save_LIBS=$LIBS
21d1c967 23559LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23560cat >conftest.$ac_ext <<_ACEOF
23561#line $LINENO "configure"
23562/* confdefs.h. */
23563_ACEOF
23564cat confdefs.h >>conftest.$ac_ext
23565cat >>conftest.$ac_ext <<_ACEOF
23566/* end confdefs.h. */
23567
21d1c967 23568/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23569#ifdef __cplusplus
23570extern "C"
23571#endif
21d1c967 23572/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23573 builtin and then its argument prototype would still apply. */
23574char connect ();
23575int
23576main ()
23577{
23578connect ();
23579 ;
23580 return 0;
23581}
23582_ACEOF
23583rm -f conftest.$ac_objext conftest$ac_exeext
23584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585 (eval $ac_link) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } &&
23589 { ac_try='test -s conftest$ac_exeext'
23590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_lib_socket_connect=yes
23596else
23597 echo "$as_me: failed program was:" >&5
23598sed 's/^/| /' conftest.$ac_ext >&5
23599
23600ac_cv_lib_socket_connect=no
23601fi
23602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23603LIBS=$ac_check_lib_save_LIBS
23604fi
23605echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23606echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23607if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23608 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23609fi
90dd450c 23610
21d1c967 23611 fi
90dd450c 23612
e6cc62c6
VS
23613 # Guillermo Gomez says -lposix is necessary on A/UX.
23614 echo "$as_me:$LINENO: checking for remove" >&5
23615echo $ECHO_N "checking for remove... $ECHO_C" >&6
23616if test "${ac_cv_func_remove+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23618else
23619 cat >conftest.$ac_ext <<_ACEOF
23620#line $LINENO "configure"
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
21d1c967 23626/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23627 which can conflict with char remove (); below.
23628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23629 <limits.h> exists even on freestanding compilers. */
23630#ifdef __STDC__
23631# include <limits.h>
23632#else
23633# include <assert.h>
23634#endif
21d1c967 23635/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23636#ifdef __cplusplus
23637extern "C"
23638{
23639#endif
21d1c967 23640/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23641 builtin and then its argument prototype would still apply. */
23642char remove ();
21d1c967
GD
23643/* The GNU C library defines this for functions which it implements
23644 to always fail with ENOSYS. Some functions are actually named
23645 something starting with __ and the normal name is an alias. */
23646#if defined (__stub_remove) || defined (__stub___remove)
23647choke me
23648#else
e6cc62c6
VS
23649char (*f) () = remove;
23650#endif
23651#ifdef __cplusplus
23652}
21d1c967 23653#endif
90dd450c 23654
e6cc62c6
VS
23655int
23656main ()
23657{
23658return f != remove;
23659 ;
23660 return 0;
23661}
23662_ACEOF
23663rm -f conftest.$ac_objext conftest$ac_exeext
23664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665 (eval $ac_link) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
23669 { ac_try='test -s conftest$ac_exeext'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
23675 ac_cv_func_remove=yes
23676else
23677 echo "$as_me: failed program was:" >&5
23678sed 's/^/| /' conftest.$ac_ext >&5
23679
23680ac_cv_func_remove=no
23681fi
23682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23683fi
23684echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23685echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23686
21d1c967 23687 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23688 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23689echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23690if test "${ac_cv_lib_posix_remove+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23692else
e6cc62c6 23693 ac_check_lib_save_LIBS=$LIBS
21d1c967 23694LIBS="-lposix $LIBS"
e6cc62c6
VS
23695cat >conftest.$ac_ext <<_ACEOF
23696#line $LINENO "configure"
23697/* confdefs.h. */
23698_ACEOF
23699cat confdefs.h >>conftest.$ac_ext
23700cat >>conftest.$ac_ext <<_ACEOF
23701/* end confdefs.h. */
23702
21d1c967 23703/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23704#ifdef __cplusplus
23705extern "C"
23706#endif
21d1c967 23707/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23708 builtin and then its argument prototype would still apply. */
23709char remove ();
23710int
23711main ()
23712{
23713remove ();
23714 ;
23715 return 0;
23716}
23717_ACEOF
23718rm -f conftest.$ac_objext conftest$ac_exeext
23719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720 (eval $ac_link) 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try='test -s conftest$ac_exeext'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 ac_cv_lib_posix_remove=yes
23731else
23732 echo "$as_me: failed program was:" >&5
23733sed 's/^/| /' conftest.$ac_ext >&5
23734
23735ac_cv_lib_posix_remove=no
23736fi
23737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23738LIBS=$ac_check_lib_save_LIBS
23739fi
23740echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23741echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23742if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23743 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23744fi
19bc6aad 23745
90dd450c 23746 fi
19bc6aad 23747
21d1c967 23748 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23749 echo "$as_me:$LINENO: checking for shmat" >&5
23750echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23751if test "${ac_cv_func_shmat+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753else
23754 cat >conftest.$ac_ext <<_ACEOF
23755#line $LINENO "configure"
23756/* confdefs.h. */
23757_ACEOF
23758cat confdefs.h >>conftest.$ac_ext
23759cat >>conftest.$ac_ext <<_ACEOF
23760/* end confdefs.h. */
21d1c967 23761/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23762 which can conflict with char shmat (); below.
23763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23764 <limits.h> exists even on freestanding compilers. */
23765#ifdef __STDC__
23766# include <limits.h>
23767#else
23768# include <assert.h>
23769#endif
21d1c967 23770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23771#ifdef __cplusplus
23772extern "C"
23773{
23774#endif
21d1c967 23775/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23776 builtin and then its argument prototype would still apply. */
23777char shmat ();
21d1c967
GD
23778/* The GNU C library defines this for functions which it implements
23779 to always fail with ENOSYS. Some functions are actually named
23780 something starting with __ and the normal name is an alias. */
23781#if defined (__stub_shmat) || defined (__stub___shmat)
23782choke me
23783#else
e6cc62c6
VS
23784char (*f) () = shmat;
23785#endif
23786#ifdef __cplusplus
23787}
21d1c967 23788#endif
90dd450c 23789
e6cc62c6
VS
23790int
23791main ()
23792{
23793return f != shmat;
23794 ;
23795 return 0;
23796}
23797_ACEOF
23798rm -f conftest.$ac_objext conftest$ac_exeext
23799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800 (eval $ac_link) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } &&
23804 { ac_try='test -s conftest$ac_exeext'
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ac_cv_func_shmat=yes
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815ac_cv_func_shmat=no
23816fi
23817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23818fi
23819echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23820echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23821
21d1c967 23822 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23823 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23824echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23825if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23827else
e6cc62c6 23828 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23829LIBS="-lipc $LIBS"
e6cc62c6
VS
23830cat >conftest.$ac_ext <<_ACEOF
23831#line $LINENO "configure"
23832/* confdefs.h. */
23833_ACEOF
23834cat confdefs.h >>conftest.$ac_ext
23835cat >>conftest.$ac_ext <<_ACEOF
23836/* end confdefs.h. */
23837
5c6fa7d2 23838/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23839#ifdef __cplusplus
23840extern "C"
23841#endif
5c6fa7d2 23842/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23843 builtin and then its argument prototype would still apply. */
23844char shmat ();
23845int
23846main ()
23847{
23848shmat ();
23849 ;
23850 return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext conftest$ac_exeext
23854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23855 (eval $ac_link) 2>&5
23856 ac_status=$?
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -s conftest$ac_exeext'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; }; then
23865 ac_cv_lib_ipc_shmat=yes
23866else
23867 echo "$as_me: failed program was:" >&5
23868sed 's/^/| /' conftest.$ac_ext >&5
23869
23870ac_cv_lib_ipc_shmat=no
23871fi
23872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23873LIBS=$ac_check_lib_save_LIBS
23874fi
23875echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23876echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23877if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23879fi
90dd450c 23880
90dd450c 23881 fi
21d1c967 23882 fi
10f2d63a 23883
21d1c967 23884 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23885 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23886 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23887 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23888 # check for ICE first), but we must link in the order -lSM -lICE or
23889 # we get undefined symbols. So assume we have SM if we have ICE.
23890 # These have to be linked with before -lX11, unlike the other
23891 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23892 # John Interrante, Karl Berry
23893 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23894echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23895if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23897else
23898 ac_check_lib_save_LIBS=$LIBS
f09359cf 23899LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23900cat >conftest.$ac_ext <<_ACEOF
23901#line $LINENO "configure"
23902/* confdefs.h. */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h. */
23907
21d1c967 23908/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23909#ifdef __cplusplus
23910extern "C"
23911#endif
21d1c967 23912/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23913 builtin and then its argument prototype would still apply. */
23914char IceConnectionNumber ();
23915int
23916main ()
23917{
23918IceConnectionNumber ();
23919 ;
23920 return 0;
23921}
23922_ACEOF
23923rm -f conftest.$ac_objext conftest$ac_exeext
23924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23925 (eval $ac_link) 2>&5
23926 ac_status=$?
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -s conftest$ac_exeext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23935 ac_cv_lib_ICE_IceConnectionNumber=yes
23936else
23937 echo "$as_me: failed program was:" >&5
23938sed 's/^/| /' conftest.$ac_ext >&5
23939
23940ac_cv_lib_ICE_IceConnectionNumber=no
23941fi
23942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23943LIBS=$ac_check_lib_save_LIBS
23944fi
23945echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23946echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23947if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23949fi
21d1c967 23950
e6cc62c6 23951 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23952
10f2d63a
VZ
23953fi
23954
8284b0c5 23955
21d1c967 23956 if test "$no_x" = "yes"; then
e6cc62c6
VS
23957 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23958echo "$as_me: error: X11 not found" >&2;}
23959 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23960 fi
23961
2b5f62a0
VZ
23962 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23963 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23964 AFMINSTALL=afminstall
23965 COMPILED_X_PROGRAM=0
23966
e6cc62c6
VS
23967 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23968echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23969
21d1c967 23970ac_find_includes=
2b5f62a0 23971for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23972 do
23973 if test -f "$ac_dir/Xm/Xm.h"; then
23974 ac_find_includes=$ac_dir
23975 break
23976 fi
23977 done
23978
23979 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23980 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23981echo "${ECHO_T}found in $ac_find_includes" >&6
23982
2b5f62a0 23983 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23984 ac_path_to_include=""
23985 else
2b5f62a0
VZ
23986 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23987 result=$?
23988 if test $result = 0; then
23989 ac_path_to_include=""
23990 else
23991 ac_path_to_include=" -I$ac_find_includes"
23992 fi
dd0e4a90
VZ
23993 fi
23994
23995 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23996 else
e6cc62c6
VS
23997 cat >conftest.$ac_ext <<_ACEOF
23998#line $LINENO "configure"
23999/* confdefs.h. */
24000_ACEOF
24001cat confdefs.h >>conftest.$ac_ext
24002cat >>conftest.$ac_ext <<_ACEOF
24003/* end confdefs.h. */
21d1c967
GD
24004
24005 #include <Xm/Xm.h>
e6cc62c6
VS
24006
24007int
24008main ()
24009{
21d1c967
GD
24010
24011 int version;
24012 version = xmUseVersion;
e6cc62c6
VS
24013
24014 ;
24015 return 0;
24016}
24017_ACEOF
24018rm -f conftest.$ac_objext
24019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24020 (eval $ac_compile) 2>&5
24021 ac_status=$?
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } &&
24024 { ac_try='test -s conftest.$ac_objext'
24025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026 (eval $ac_try) 2>&5
24027 ac_status=$?
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); }; }; then
24030
24031 echo "$as_me:$LINENO: result: found in default search path" >&5
24032echo "${ECHO_T}found in default search path" >&6
21d1c967 24033 COMPILED_X_PROGRAM=1
e6cc62c6 24034
10f2d63a 24035else
e6cc62c6
VS
24036 echo "$as_me: failed program was:" >&5
24037sed 's/^/| /' conftest.$ac_ext >&5
24038
24039
24040 echo "$as_me:$LINENO: result: no" >&5
24041echo "${ECHO_T}no" >&6
24042 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24043echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24044 { (exit 1); exit 1; }; }
24045
24046
10f2d63a 24047fi
e6cc62c6 24048rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24049 fi
10f2d63a 24050
21d1c967 24051 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24052 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24053echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24054
21d1c967 24055ac_find_libraries=
2b5f62a0 24056for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24057 do
24058 for ac_extension in a so sl dylib; do
24059 if test -f "$ac_dir/libXm.$ac_extension"; then
24060 ac_find_libraries=$ac_dir
24061 break 2
24062 fi
24063 done
24064 done
24065
24066 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24067 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24068echo "${ECHO_T}found at $ac_find_libraries" >&6
24069
21d1c967 24070
21d1c967
GD
24071 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24072 result=$?
24073 if test $result = 0; then
24074 ac_path_to_link=""
24075 else
24076 ac_path_to_link=" -L$ac_find_libraries"
24077 fi
24078
21d1c967 24079 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24080 else
dd0e4a90
VZ
24081 save_CFLAGS=$CFLAGS
24082 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24083
e6cc62c6
VS
24084 cat >conftest.$ac_ext <<_ACEOF
24085#line $LINENO "configure"
24086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
21d1c967
GD
24091
24092 #include <Xm/Xm.h>
e6cc62c6
VS
24093
24094int
24095main ()
24096{
21d1c967
GD
24097
24098 int version;
24099 version = xmUseVersion;
e6cc62c6
VS
24100
24101 ;
24102 return 0;
24103}
24104_ACEOF
24105rm -f conftest.$ac_objext
24106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24107 (eval $ac_compile) 2>&5
24108 ac_status=$?
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
24111 { ac_try='test -s conftest.$ac_objext'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; }; then
24117
24118 echo "$as_me:$LINENO: result: found in default search path" >&5
24119echo "${ECHO_T}found in default search path" >&6
21d1c967 24120 COMPILED_X_PROGRAM=1
e6cc62c6 24121
d836ee96 24122else
e6cc62c6
VS
24123 echo "$as_me: failed program was:" >&5
24124sed 's/^/| /' conftest.$ac_ext >&5
24125
24126
24127 echo "$as_me:$LINENO: result: no" >&5
24128echo "${ECHO_T}no" >&6
24129 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24130echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24131 { (exit 1); exit 1; }; }
24132
24133
d836ee96 24134fi
e6cc62c6 24135rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24136
24137 CFLAGS=$save_CFLAGS
21d1c967
GD
24138 fi
24139 fi
24140
24141 xpm_link=
e6cc62c6
VS
24142 echo "$as_me:$LINENO: checking for Xpm library" >&5
24143echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24144
21d1c967 24145ac_find_libraries=
2b5f62a0 24146for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24147 do
24148 for ac_extension in a so sl dylib; do
24149 if test -f "$ac_dir/libXpm.$ac_extension"; then
24150 ac_find_libraries=$ac_dir
24151 break 2
24152 fi
24153 done
24154 done
24155
24156 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24157
21d1c967
GD
24158 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24159 result=$?
24160 if test $result = 0; then
24161 ac_path_to_link=""
24162 else
24163 ac_path_to_link=" -L$ac_find_libraries"
24164 fi
24165
24166 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24167
21d1c967 24168 xpm_link=" -lXpm"
e6cc62c6 24169 cat >>confdefs.h <<\_ACEOF
21d1c967 24170#define wxHAVE_LIB_XPM 1
e6cc62c6 24171_ACEOF
90dd450c 24172
e6cc62c6
VS
24173 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24174echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24175 else
dd0e4a90
VZ
24176 save_CFLAGS=$CFLAGS
24177 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24178
e6cc62c6
VS
24179 cat >conftest.$ac_ext <<_ACEOF
24180#line $LINENO "configure"
24181/* confdefs.h. */
24182_ACEOF
24183cat confdefs.h >>conftest.$ac_ext
24184cat >>conftest.$ac_ext <<_ACEOF
24185/* end confdefs.h. */
21d1c967
GD
24186
24187 #include <X11/xpm.h>
e6cc62c6
VS
24188
24189int
24190main ()
24191{
21d1c967
GD
24192
24193 int version;
24194 version = XpmLibraryVersion();
e6cc62c6
VS
24195
24196 ;
24197 return 0;
24198}
24199_ACEOF
24200rm -f conftest.$ac_objext
24201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24202 (eval $ac_compile) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } &&
24206 { ac_try='test -s conftest.$ac_objext'
24207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); }; }; then
24212
21d1c967 24213 xpm_link=" -lXpm"
e6cc62c6 24214 cat >>confdefs.h <<\_ACEOF
21d1c967 24215#define wxHAVE_LIB_XPM 1
e6cc62c6 24216_ACEOF
21d1c967 24217
e6cc62c6
VS
24218 echo "$as_me:$LINENO: result: found in default search path" >&5
24219echo "${ECHO_T}found in default search path" >&6
21d1c967 24220 COMPILED_X_PROGRAM=0
e6cc62c6 24221
d836ee96 24222else
e6cc62c6
VS
24223 echo "$as_me: failed program was:" >&5
24224sed 's/^/| /' conftest.$ac_ext >&5
24225
24226
24227 echo "$as_me:$LINENO: result: no" >&5
24228echo "${ECHO_T}no" >&6
24229 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24230echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24231
24232
d836ee96 24233fi
e6cc62c6 24234rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24235
24236 CFLAGS=$save_CFLAGS
21d1c967
GD
24237 fi
24238
e6cc62c6
VS
24239 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24240echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24241 libp_link=""
24242 libsm_ice_link=""
24243 libs_found=0
24244 for libp in "" " -lXp"; do
24245 if test "$libs_found" = "0"; then
24246 for libsm_ice in " -lSM -lICE"; do
e26c13cf 24247 if test "$libs_found" = "0"; then
6a30f1c8
MB
24248 save_LIBS="$LIBS"
24249 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24250 save_CFLAGS=$CFLAGS
24251 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24252
e6cc62c6
VS
24253 cat >conftest.$ac_ext <<_ACEOF
24254#line $LINENO "configure"
24255/* confdefs.h. */
24256_ACEOF
24257cat confdefs.h >>conftest.$ac_ext
24258cat >>conftest.$ac_ext <<_ACEOF
24259/* end confdefs.h. */
17234b26 24260
6a30f1c8
MB
24261 #include <Xm/Xm.h>
24262 #include <Xm/List.h>
e6cc62c6
VS
24263
24264int
24265main ()
24266{
6a30f1c8
MB
24267
24268 XmString string = NULL;
24269 Widget w = NULL;
24270 int position = 0;
24271 XmListAddItem(w, string, position);
e6cc62c6
VS
24272
24273 ;
24274 return 0;
24275}
24276_ACEOF
24277rm -f conftest.$ac_objext conftest$ac_exeext
24278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24279 (eval $ac_link) 2>&5
24280 ac_status=$?
24281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282 (exit $ac_status); } &&
24283 { ac_try='test -s conftest$ac_exeext'
24284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); }; }; then
24289
6a30f1c8
MB
24290 libp_link="$libp"
24291 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24292 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24293echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24294 libs_found=1
e6cc62c6 24295
6a30f1c8 24296else
e6cc62c6
VS
24297 echo "$as_me: failed program was:" >&5
24298sed 's/^/| /' conftest.$ac_ext >&5
24299
24300
24301
6a30f1c8 24302fi
e6cc62c6 24303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24304
6a30f1c8 24305 LIBS="$save_LIBS"
dd0e4a90 24306 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24307 fi
24308 done
24309 fi
24310 done
24311
24312 if test "$libs_found" = "0"; then
e6cc62c6
VS
24313 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24314echo "${ECHO_T}can't find the right libraries" >&6
24315 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24316echo "$as_me: error: can't link a simple motif program" >&2;}
24317 { (exit 1); exit 1; }; }
6a30f1c8
MB
24318 fi
24319
da494b40
MB
24320 save_CFLAGS=$CFLAGS
24321 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24322 echo "$as_me:$LINENO: checking for Motif 2" >&5
24323echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24324 cat >conftest.$ac_ext <<_ACEOF
24325#line $LINENO "configure"
24326/* confdefs.h. */
24327_ACEOF
24328cat confdefs.h >>conftest.$ac_ext
24329cat >>conftest.$ac_ext <<_ACEOF
24330/* end confdefs.h. */
da494b40
MB
24331
24332 #include <Xm/Xm.h>
e6cc62c6
VS
24333
24334int
24335main ()
24336{
da494b40
MB
24337
24338 #if XmVersion < 2000
24339 #error "Not Motif 2"
24340 #endif
e6cc62c6
VS
24341
24342 ;
24343 return 0;
24344}
24345_ACEOF
24346rm -f conftest.$ac_objext
24347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24348 (eval $ac_compile) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -s conftest.$ac_objext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358
24359 cat >>confdefs.h <<\_ACEOF
da494b40 24360#define __WXMOTIF20__ 1
e6cc62c6
VS
24361_ACEOF
24362
24363 echo "$as_me:$LINENO: result: found" >&5
24364echo "${ECHO_T}found" >&6
da494b40 24365
da494b40 24366else
e6cc62c6
VS
24367 echo "$as_me: failed program was:" >&5
24368sed 's/^/| /' conftest.$ac_ext >&5
24369
24370
24371 cat >>confdefs.h <<\_ACEOF
da494b40 24372#define __WXMOTIF20__ 0
e6cc62c6
VS
24373_ACEOF
24374
24375 echo "$as_me:$LINENO: result: not found" >&5
24376echo "${ECHO_T}not found" >&6
da494b40 24377
da494b40 24378fi
e6cc62c6 24379rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24380 CFLAGS=$save_CFLAGS
24381
6a30f1c8 24382 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24383 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24384 TOOLKIT=MOTIF
24385 GUIDIST=MOTIF_DIST
f7f78039
MB
24386 wxHAVE_XEXT_LIB=1
24387 fi
24388
24389 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24390 test "$wxHAVE_XEXT_LIB" = 1; then
24391 save_CFLAGS="$CFLAGS"
24392 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24393
e6cc62c6
VS
24394 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24395echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24396 cat >conftest.$ac_ext <<_ACEOF
24397#line $LINENO "configure"
24398/* confdefs.h. */
24399_ACEOF
24400cat confdefs.h >>conftest.$ac_ext
24401cat >>conftest.$ac_ext <<_ACEOF
24402/* end confdefs.h. */
24403
24404 #include <X11/Xlib.h>
f7f78039 24405 #include <X11/extensions/shape.h>
e6cc62c6
VS
24406
24407int
24408main ()
24409{
f7f78039
MB
24410
24411 int dummy1, dummy2;
24412 XShapeQueryExtension((Display*)NULL,
24413 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24414
24415 ;
24416 return 0;
24417}
24418_ACEOF
24419rm -f conftest.$ac_objext
24420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24421 (eval $ac_compile) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
24425 { ac_try='test -s conftest.$ac_objext'
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24431
24432 cat >>confdefs.h <<\_ACEOF
f7f78039 24433#define HAVE_XSHAPE 1
e6cc62c6
VS
24434_ACEOF
24435
24436 echo "$as_me:$LINENO: result: found" >&5
24437echo "${ECHO_T}found" >&6
f7f78039 24438
f7f78039 24439else
e6cc62c6
VS
24440 echo "$as_me: failed program was:" >&5
24441sed 's/^/| /' conftest.$ac_ext >&5
24442
24443
24444 echo "$as_me:$LINENO: result: not found" >&5
24445echo "${ECHO_T}not found" >&6
24446
f7f78039 24447fi
e6cc62c6 24448rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24449 CFLAGS="$save_CFLAGS"
21d1c967
GD
24450 fi
24451
24452 if test "$wxUSE_MAC" = 1; then
0c98a14e 24453 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24454
0c98a14e 24455 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24456 TOOLKIT=MAC
24457 GUIDIST=MACX_DIST
cf615ebb 24458 WXBASEPORT="_carbon"
21d1c967
GD
24459 fi
24460
ac0c4cc3
DE
24461 if test "$wxUSE_COCOA" = 1; then
24462 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24463 TOOLKIT=COCOA
24464 GUIDIST=COCOA_DIST
24465 fi
24466
21d1c967
GD
24467 if test "$wxUSE_PM" = 1; then
24468 TOOLKIT=PM
24469 GUIDIST=GTK_DIST
e6cc62c6
VS
24470 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24471echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24472 wxUSE_THREADS="no"
21d1c967
GD
24473 fi
24474
24475 if test "$TOOLKIT" = "PM" ; then
24476 TOOLKIT_DIR="os2"
24477 else
24478 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24479 fi
24480
24481 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24482
24483 if test "$wxUSE_UNIVERSAL" = "yes"; then
24484 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24485
24486 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24487 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24488
24489 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24490 if test "$wxUSE_X11" = 1; then
24491 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24492 else
24493 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24494 fi
24495 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24496 WIDGET_SET=univ
24497 else
24498 ALL_OBJECTS="\$(GUIOBJS)"
24499 ALL_SOURCES="\$(ALL_SOURCES)"
24500 ALL_HEADERS="\$(ALL_HEADERS)"
24501 fi
24502
24503 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24504
24505 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24506 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24507 fi
24508
24509 if test "$wxUSE_HTML" = "yes"; then
24510 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24511 fi
24512
24513 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24514 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24515 fi
24516 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24517 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24518 fi
24519 if test "$wxUSE_LIBPNG" = "builtin" ; then
24520 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24521 fi
24522
24523 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24524 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24525else
21d1c967
GD
24526 USE_GUI=0
24527
24528 TOOLKIT_DIR="base"
24529
24530 if test "$USE_WIN32" = 1 ; then
24531 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24532 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24533
24534 TOOLKIT="MSW"
24535 else
24536 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24537 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24538 fi
24539
24540 ALL_SOURCES="\$(ALL_SOURCES)"
24541 ALL_HEADERS="\$(ALL_HEADERS)"
24542
24543 PORT_FILES="\${top_srcdir}/src/files.lst"
24544
24545 GUIDIST="BASE_DIST"
24546 DISTDIR="wxBase"
d836ee96
VZ
24547fi
24548
8284b0c5 24549
8647bec6
RG
24550
24551
24552IODBC_C_SRC=""
24553
24554
24555if test "$TOOLKIT" != "MSW" ; then
24556
bb41dcbe 24557 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24558
bb41dcbe 24559 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24560 echo "$as_me:$LINENO: checking for sql.h" >&5
24561echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24562if test "${ac_cv_header_sql_h+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24564fi
24565echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24566echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24567else
24568 # Is the header compilable?
24569echo "$as_me:$LINENO: checking sql.h usability" >&5
24570echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24571cat >conftest.$ac_ext <<_ACEOF
24572#line $LINENO "configure"
24573/* confdefs.h. */
24574_ACEOF
24575cat confdefs.h >>conftest.$ac_ext
24576cat >>conftest.$ac_ext <<_ACEOF
24577/* end confdefs.h. */
24578$ac_includes_default
8647bec6 24579#include <sql.h>
e6cc62c6
VS
24580_ACEOF
24581rm -f conftest.$ac_objext
24582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24583 (eval $ac_compile) 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } &&
24587 { ac_try='test -s conftest.$ac_objext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24593 ac_header_compiler=yes
24594else
24595 echo "$as_me: failed program was:" >&5
24596sed 's/^/| /' conftest.$ac_ext >&5
24597
24598ac_header_compiler=no
24599fi
24600rm -f conftest.$ac_objext conftest.$ac_ext
24601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24602echo "${ECHO_T}$ac_header_compiler" >&6
24603
24604# Is the header present?
24605echo "$as_me:$LINENO: checking sql.h presence" >&5
24606echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24607cat >conftest.$ac_ext <<_ACEOF
24608#line $LINENO "configure"
24609/* confdefs.h. */
24610_ACEOF
24611cat confdefs.h >>conftest.$ac_ext
24612cat >>conftest.$ac_ext <<_ACEOF
24613/* end confdefs.h. */
24614#include <sql.h>
24615_ACEOF
24616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24618 ac_status=$?
24619 grep -v '^ *+' conftest.er1 >conftest.err
24620 rm -f conftest.er1
24621 cat conftest.err >&5
24622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623 (exit $ac_status); } >/dev/null; then
24624 if test -s conftest.err; then
24625 ac_cpp_err=$ac_c_preproc_warn_flag
24626 else
24627 ac_cpp_err=
24628 fi
24629else
24630 ac_cpp_err=yes
24631fi
24632if test -z "$ac_cpp_err"; then
24633 ac_header_preproc=yes
24634else
24635 echo "$as_me: failed program was:" >&5
24636sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 ac_header_preproc=no
24639fi
24640rm -f conftest.err conftest.$ac_ext
24641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24642echo "${ECHO_T}$ac_header_preproc" >&6
24643
24644# So? What about this header?
24645case $ac_header_compiler:$ac_header_preproc in
24646 yes:no )
24647 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24648echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24649 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24650echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24651 (
24652 cat <<\_ASBOX
24653## ------------------------------------ ##
24654## Report this to bug-autoconf@gnu.org. ##
24655## ------------------------------------ ##
24656_ASBOX
24657 ) |
24658 sed "s/^/$as_me: WARNING: /" >&2
24659 ;;
24660 no:yes )
24661 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24662echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24663 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24664echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24665 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24666echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24667 (
24668 cat <<\_ASBOX
24669## ------------------------------------ ##
24670## Report this to bug-autoconf@gnu.org. ##
24671## ------------------------------------ ##
24672_ASBOX
24673 ) |
24674 sed "s/^/$as_me: WARNING: /" >&2
24675 ;;
24676esac
24677echo "$as_me:$LINENO: checking for sql.h" >&5
24678echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24679if test "${ac_cv_header_sql_h+set}" = set; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24681else
e6cc62c6
VS
24682 ac_cv_header_sql_h=$ac_header_preproc
24683fi
24684echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24685echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24686
bb41dcbe
VS
24687fi
24688if test $ac_cv_header_sql_h = yes; then
24689 found_sql_h=1
8647bec6
RG
24690fi
24691
e6cc62c6 24692
bb41dcbe
VS
24693 if test "x$found_sql_h" = "x1" ; then
24694 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24695echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24696if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24697 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24698else
bb41dcbe
VS
24699 ac_check_lib_save_LIBS=$LIBS
24700LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24701cat >conftest.$ac_ext <<_ACEOF
24702#line $LINENO "configure"
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708
8647bec6 24709/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24710#ifdef __cplusplus
24711extern "C"
24712#endif
8647bec6 24713/* We use char because int might match the return type of a gcc2
e6cc62c6 24714 builtin and then its argument prototype would still apply. */
bb41dcbe 24715char iodbc ();
e6cc62c6
VS
24716int
24717main ()
24718{
bb41dcbe 24719iodbc ();
e6cc62c6
VS
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724rm -f conftest.$ac_objext conftest$ac_exeext
24725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24726 (eval $ac_link) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -s conftest$ac_exeext'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
bb41dcbe 24736 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24737else
e6cc62c6
VS
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
bb41dcbe 24741ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24742fi
e6cc62c6 24743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24744LIBS=$ac_check_lib_save_LIBS
24745fi
24746echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24747echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24748if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24749 ODBC_LINK=" -liodbc"
24750else
24751
24752 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24753echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24754if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756else
24757 ac_check_lib_save_LIBS=$LIBS
24758LIBS="-lSQLAllocEnv $LIBS"
24759cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24760#line $LINENO "configure"
24761/* confdefs.h. */
24762_ACEOF
24763cat confdefs.h >>conftest.$ac_ext
24764cat >>conftest.$ac_ext <<_ACEOF
24765/* end confdefs.h. */
24766
8647bec6 24767/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24768#ifdef __cplusplus
24769extern "C"
24770#endif
8647bec6 24771/* We use char because int might match the return type of a gcc2
e6cc62c6 24772 builtin and then its argument prototype would still apply. */
bb41dcbe 24773char unixodbc ();
e6cc62c6
VS
24774int
24775main ()
24776{
bb41dcbe 24777unixodbc ();
e6cc62c6
VS
24778 ;
24779 return 0;
24780}
24781_ACEOF
24782rm -f conftest.$ac_objext conftest$ac_exeext
24783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24784 (eval $ac_link) 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } &&
24788 { ac_try='test -s conftest$ac_exeext'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; }; then
bb41dcbe 24794 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24795else
e6cc62c6
VS
24796 echo "$as_me: failed program was:" >&5
24797sed 's/^/| /' conftest.$ac_ext >&5
24798
bb41dcbe 24799ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24800fi
e6cc62c6 24801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24802LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24803fi
bb41dcbe
VS
24804echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24805echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24806if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24807 ODBC_LINK=" -lunixodbc"
24808else
24809
24810 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24811echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24812if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24814else
24815 ac_check_lib_save_LIBS=$LIBS
24816LIBS="-lSQLAllocEnv $LIBS"
24817cat >conftest.$ac_ext <<_ACEOF
24818#line $LINENO "configure"
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
e6cc62c6 24824
bb41dcbe
VS
24825/* Override any gcc2 internal prototype to avoid an error. */
24826#ifdef __cplusplus
24827extern "C"
24828#endif
24829/* We use char because int might match the return type of a gcc2
24830 builtin and then its argument prototype would still apply. */
24831char odbc ();
24832int
24833main ()
24834{
24835odbc ();
24836 ;
24837 return 0;
24838}
24839_ACEOF
24840rm -f conftest.$ac_objext conftest$ac_exeext
24841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24842 (eval $ac_link) 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } &&
24846 { ac_try='test -s conftest$ac_exeext'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; }; then
24852 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24853else
bb41dcbe
VS
24854 echo "$as_me: failed program was:" >&5
24855sed 's/^/| /' conftest.$ac_ext >&5
24856
24857ac_cv_lib_SQLAllocEnv_odbc=no
24858fi
24859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24860LIBS=$ac_check_lib_save_LIBS
24861fi
24862echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24863echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24864if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24865 ODBC_LINK=" -lodbc"
24866fi
24867
24868
24869fi
e6cc62c6 24870
e6cc62c6 24871
8647bec6 24872fi
e6cc62c6 24873
fd3d7534 24874 fi
bb41dcbe
VS
24875 if test "x$ODBC_LINK" = "x" ; then
24876 if test "$wxUSE_ODBC" = "sys" ; then
24877 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24878echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24879 { (exit 1); exit 1; }; }
24880 else
24881 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24882echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24883 wxUSE_ODBC=builtin
24884 fi
24885 else
24886 wxUSE_ODBC=sys
8647bec6 24887 fi
8647bec6 24888 fi
bb41dcbe
VS
24889 if test "$wxUSE_ODBC" != "no" ; then
24890 cat >>confdefs.h <<\_ACEOF
24891#define wxUSE_ODBC 1
24892_ACEOF
e6cc62c6 24893
bb41dcbe
VS
24894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24895
24896 WXODBCFLAG="-D_IODBC_"
24897 fi
6232543b 24898fi
21d1c967
GD
24899
24900if test "$wxUSE_REGEX" = "builtin" ; then
24901 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24902fi
21d1c967
GD
24903if test "$wxUSE_ZLIB" = "builtin" ; then
24904 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24905fi
24906
8284b0c5 24907
4d264332 24908USE_OPENGL=0
21d1c967 24909if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24910 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24911 OPENGL_LIBS="-framework OpenGL -framework AGL"
24912 elif test "$wxUSE_MSW" = 1; then
24913 OPENGL_LIBS="-lopengl32 -lglu32"
24914 else
01aa5863
VS
24915
24916
24917ac_find_includes=
24918for ac_dir in $SEARCH_INCLUDE /usr/include;
24919 do
24920 if test -f "$ac_dir/GL/gl.h"; then
24921 ac_find_includes=$ac_dir
24922 break
24923 fi
24924 done
24925
24926 if test "$ac_find_includes" != "" ; then
24927 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24928echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24929
24930 if test "x$ac_find_includes" = "x/usr/include"; then
24931 ac_path_to_include=""
24932 else
24933 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24934 result=$?
24935 if test $result = 0; then
24936 ac_path_to_include=""
24937 else
24938 ac_path_to_include=" -I$ac_find_includes"
24939 fi
24940 fi
24941
24942 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24943 fi
24944
e6cc62c6
VS
24945 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24946 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24947echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24948if test "${ac_cv_header_GL_gl_h+set}" = set; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950fi
24951echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24952echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24953else
24954 # Is the header compilable?
24955echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24956echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24957cat >conftest.$ac_ext <<_ACEOF
24958#line $LINENO "configure"
24959/* confdefs.h. */
24960_ACEOF
24961cat confdefs.h >>conftest.$ac_ext
24962cat >>conftest.$ac_ext <<_ACEOF
24963/* end confdefs.h. */
24964$ac_includes_default
21d1c967 24965#include <GL/gl.h>
e6cc62c6
VS
24966_ACEOF
24967rm -f conftest.$ac_objext
24968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24969 (eval $ac_compile) 2>&5
24970 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); } &&
24973 { ac_try='test -s conftest.$ac_objext'
24974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }; }; then
24979 ac_header_compiler=yes
24980else
24981 echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984ac_header_compiler=no
24985fi
24986rm -f conftest.$ac_objext conftest.$ac_ext
24987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24988echo "${ECHO_T}$ac_header_compiler" >&6
24989
24990# Is the header present?
24991echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24992echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24993cat >conftest.$ac_ext <<_ACEOF
24994#line $LINENO "configure"
24995/* confdefs.h. */
24996_ACEOF
24997cat confdefs.h >>conftest.$ac_ext
24998cat >>conftest.$ac_ext <<_ACEOF
24999/* end confdefs.h. */
25000#include <GL/gl.h>
25001_ACEOF
25002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25004 ac_status=$?
25005 grep -v '^ *+' conftest.er1 >conftest.err
25006 rm -f conftest.er1
25007 cat conftest.err >&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } >/dev/null; then
25010 if test -s conftest.err; then
25011 ac_cpp_err=$ac_c_preproc_warn_flag
25012 else
25013 ac_cpp_err=
25014 fi
25015else
25016 ac_cpp_err=yes
25017fi
25018if test -z "$ac_cpp_err"; then
25019 ac_header_preproc=yes
25020else
25021 echo "$as_me: failed program was:" >&5
25022sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 ac_header_preproc=no
25025fi
25026rm -f conftest.err conftest.$ac_ext
25027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25028echo "${ECHO_T}$ac_header_preproc" >&6
25029
25030# So? What about this header?
25031case $ac_header_compiler:$ac_header_preproc in
25032 yes:no )
25033 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25034echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25035 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25036echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25037 (
25038 cat <<\_ASBOX
25039## ------------------------------------ ##
25040## Report this to bug-autoconf@gnu.org. ##
25041## ------------------------------------ ##
25042_ASBOX
25043 ) |
25044 sed "s/^/$as_me: WARNING: /" >&2
25045 ;;
25046 no:yes )
25047 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25048echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25049 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25050echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25051 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25052echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25053 (
25054 cat <<\_ASBOX
25055## ------------------------------------ ##
25056## Report this to bug-autoconf@gnu.org. ##
25057## ------------------------------------ ##
25058_ASBOX
25059 ) |
25060 sed "s/^/$as_me: WARNING: /" >&2
25061 ;;
25062esac
25063echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25064echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25065if test "${ac_cv_header_GL_gl_h+set}" = set; then
25066 echo $ECHO_N "(cached) $ECHO_C" >&6
25067else
25068 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25069fi
e6cc62c6
VS
25070echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25071echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25072
698dcdb6 25073fi
e6cc62c6
VS
25074if test $ac_cv_header_GL_gl_h = yes; then
25075
89e3b3e4
VZ
25076 found_gl=0
25077
e6cc62c6
VS
25078 echo "$as_me:$LINENO: checking for -lGL" >&5
25079echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25080
21d1c967 25081ac_find_libraries=
2b5f62a0 25082for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25083 do
25084 for ac_extension in a so sl dylib; do
25085 if test -f "$ac_dir/libGL.$ac_extension"; then
25086 ac_find_libraries=$ac_dir
25087 break 2
25088 fi
25089 done
25090 done
25091
25092 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25093
21d1c967
GD
25094 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25095 result=$?
25096 if test $result = 0; then
25097 ac_path_to_link=""
25098 else
25099 ac_path_to_link=" -L$ac_find_libraries"
25100 fi
25101
89e3b3e4
VZ
25102 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25103 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25104 fi
89e3b3e4 25105
e6cc62c6 25106
89e3b3e4
VZ
25107ac_find_libraries=
25108for ac_dir in $SEARCH_LIB /usr/lib;
25109 do
25110 for ac_extension in a so sl dylib; do
25111 if test -f "$ac_dir/libGLU.$ac_extension"; then
25112 ac_find_libraries=$ac_dir
25113 break 2
25114 fi
25115 done
25116 done
25117
25118 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25119
89e3b3e4
VZ
25120 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25121 result=$?
25122 if test $result = 0; then
25123 ac_path_to_link=""
25124 else
25125 ac_path_to_link=" -L$ac_find_libraries"
25126 fi
25127
25128 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25129 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25130 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25131 fi
25132
25133 found_gl=1
25134 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25135 echo "$as_me:$LINENO: result: yes" >&5
25136echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25137 fi
25138 fi
25139
bb41dcbe 25140 if test "$found_gl" != 1; then
e6cc62c6
VS
25141 echo "$as_me:$LINENO: result: no" >&5
25142echo "${ECHO_T}no" >&6
25143 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25144echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25145
21d1c967 25146ac_find_libraries=
2b5f62a0 25147for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25148 do
25149 for ac_extension in a so sl dylib; do
25150 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25151 ac_find_libraries=$ac_dir
25152 break 2
25153 fi
25154 done
25155 done
25156
25157 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25158
21d1c967
GD
25159 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25160 result=$?
25161 if test $result = 0; then
25162 ac_path_to_link=""
25163 else
25164 ac_path_to_link=" -L$ac_find_libraries"
25165 fi
25166
25167 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25168 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25169 echo "$as_me:$LINENO: result: yes" >&5
25170echo "${ECHO_T}yes" >&6
21d1c967 25171 else
e6cc62c6
VS
25172 echo "$as_me:$LINENO: result: no" >&5
25173echo "${ECHO_T}no" >&6
21d1c967
GD
25174 fi
25175 fi
e6cc62c6 25176
5c6fa7d2 25177fi
52127426 25178
8284b0c5 25179
e6cc62c6 25180
21d1c967 25181 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25182 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25183echo "$as_me: error: OpenGL libraries not available" >&2;}
25184 { (exit 1); exit 1; }; }
21d1c967
GD
25185 fi
25186 fi
90dd450c 25187
21d1c967 25188 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25189 USE_OPENGL=1
e6cc62c6 25190 cat >>confdefs.h <<\_ACEOF
21d1c967 25191#define wxUSE_OPENGL 1
e6cc62c6 25192_ACEOF
21d1c967 25193
e6cc62c6 25194 cat >>confdefs.h <<\_ACEOF
21d1c967 25195#define wxUSE_GLCANVAS 1
e6cc62c6 25196_ACEOF
21d1c967 25197
520755bb 25198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25199 fi
10f2d63a 25200fi
21d1c967
GD
25201
25202if test -z "$TOOLKIT_VPATH" ; then
25203 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25204fi
21d1c967
GD
25205
25206if test -n "$TOOLKIT" ; then
25207 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25208fi
25209
fe0895cf 25210UNICODE=0
21d1c967
GD
25211lib_unicode_suffix=
25212if test "$wxUSE_UNICODE" = "yes"; then
25213 lib_unicode_suffix=u
fe0895cf 25214 UNICODE=1
90dd450c 25215fi
698dcdb6 25216
21d1c967 25217lib_debug_suffix=
6c67131a 25218DEBUG_FLAG=0
21d1c967
GD
25219if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25220 lib_debug_suffix=d
6c67131a
VS
25221 DEBUG_FLAG=1
25222fi
25223
25224DEBUG_INFO=0
25225if test "$wxUSE_DEBUG_INFO" = "yes"; then
25226 DEBUG_INFO=1
21d1c967 25227fi
698dcdb6 25228
1cbb95a2 25229WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25230
25231TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25232TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25233
25234if test "$cross_compiling" = "yes"; then
25235 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25236 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25237 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25238fi
25239
25240WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25241WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25242WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25243WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25244
25245WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25246WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25247
25248WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25249WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25250WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25251WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25252
25253case "${host}" in
25254 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25255 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25256 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25257 ;;
25258
25259 *-*-darwin* )
e6cc62c6 25260
05159a27
GD
25261 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25262 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25263
25264 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25265 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25266 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25267 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25268
21d1c967 25269 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25270 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25271 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25272 fi
25273 ;;
25274esac
25275
25276WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25277WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25278
25279WXCONFIG_LIBS="-l${WX_LIBRARY}"
25280WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25281
25282if test "$wxUSE_OPENGL" = "yes"; then
25283 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25284 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25285fi
25286
8284b0c5
MB
25287
25288
21d1c967
GD
25289if test "$wxUSE_SHARED" = "yes"; then
25290 case "${host}" in
25291 *-pc-os2_emx | *-pc-os2-emx | \
25292 *-pc-msdosdjgpp )
25293 wxUSE_SHARED=no
e6cc62c6
VS
25294 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25295echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25296 ;;
25297 esac
25298fi
25299
fe0895cf 25300SHARED=0
2b5f62a0 25301if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25302 SHARED=1
2b5f62a0 25303
e6cc62c6 25304
2b5f62a0
VZ
25305 found_versioning=no
25306
e6cc62c6 25307
2b5f62a0 25308 if test $found_versioning = no ; then
e6cc62c6
VS
25309 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25310echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25311if test "${wx_cv_version_script+set}" = set; then
25312 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25313else
e6cc62c6 25314
2b5f62a0
VZ
25315 echo "VER_1 { *; };" >conftest.sym
25316 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25317
2b5f62a0
VZ
25318 if { ac_try='
25319 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25320 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25326 if test -s conftest.stderr ; then
25327 wx_cv_version_script=no
25328 else
25329 wx_cv_version_script=yes
25330 fi
25331 else
25332 wx_cv_version_script=no
25333 fi
25334 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25335
e6cc62c6
VS
25336fi
25337echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25338echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25339 if test $wx_cv_version_script = yes ; then
e6cc62c6 25340 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25341 fi
25342 fi
21d1c967 25343
21d1c967 25344
21d1c967 25345 case "${host}" in
fe0895cf 25346 *-*-linux* | *-*-gnu* )
e6cc62c6 25347 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
25348 ;;
25349
25350 *-*-solaris2* )
25351 if test "$GCC" = yes ; then
25352 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25353
25354 saveLdflags="$LDFLAGS"
25355 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25356 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25357echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25358 cat >conftest.$ac_ext <<_ACEOF
25359#line $LINENO "configure"
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
25365
25366int
25367main ()
25368{
fe0895cf 25369
e6cc62c6
VS
25370 ;
25371 return 0;
25372}
25373_ACEOF
25374rm -f conftest.$ac_objext conftest$ac_exeext
25375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376 (eval $ac_link) 2>&5
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
25380 { ac_try='test -s conftest$ac_exeext'
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
25386
25387 echo "$as_me:$LINENO: result: yes" >&5
25388echo "${ECHO_T}yes" >&6
25389 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25390
25391else
25392 echo "$as_me: failed program was:" >&5
25393sed 's/^/| /' conftest.$ac_ext >&5
25394
25395
25396 echo "$as_me:$LINENO: result: no" >&5
25397echo "${ECHO_T}no" >&6
25398 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25399echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25400 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25401 cat >conftest.$ac_ext <<_ACEOF
25402#line $LINENO "configure"
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408
25409int
25410main ()
25411{
25412
25413 ;
25414 return 0;
25415}
25416_ACEOF
25417rm -f conftest.$ac_objext conftest$ac_exeext
25418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25419 (eval $ac_link) 2>&5
25420 ac_status=$?
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); } &&
25423 { ac_try='test -s conftest$ac_exeext'
25424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25425 (eval $ac_try) 2>&5
25426 ac_status=$?
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); }; }; then
25429
25430 echo "$as_me:$LINENO: result: yes" >&5
25431echo "${ECHO_T}yes" >&6
25432 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25433else
25434 echo "$as_me: failed program was:" >&5
25435sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25436
fe0895cf 25437
e6cc62c6
VS
25438 echo "$as_me:$LINENO: result: no" >&5
25439echo "${ECHO_T}no" >&6
25440
fe0895cf 25441fi
e6cc62c6
VS
25442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25443
25444fi
25445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25446 LDFLAGS="$saveLdflags"
21d1c967
GD
25447 else
25448 SHARED_LD="${CXX} -G -o"
25449 PIC_FLAG="-KPIC"
e6cc62c6 25450 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25451 fi
25452 ;;
21d1c967
GD
25453 esac
25454
25455 if test "x$WX_TARGET_LIBRARY" = "x"; then
25456 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25457 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25458 fi
25459
25460 WX_TARGET_LIBRARY_TYPE="so"
25461 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25462fi
10f2d63a 25463
21d1c967
GD
25464if test "$wxUSE_SHARED" = "no"; then
25465
25466 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25467 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25468 fi
25469
ac0c4cc3 25470 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25471 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25472 fi
25473
25474 if test "$wxUSE_OPENGL" = "yes"; then
25475 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25476 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25477 else
25478 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25479 fi
25480
25481 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25482 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25483
25484 WX_TARGET_LIBRARY_TYPE="a"
25485 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25486
25487 STATIC_FLAG="yes"
25488else
25489 STATIC_FLAG="no"
90dd450c 25490fi
1e487827 25491
93fac604
VZ
25492MACRESCOMP="@#"
25493MACSETFILE="@#"
36825681 25494MACRESWXCONFIG="#"
21d1c967 25495if test "$wxUSE_MAC" = 1; then
e6cc62c6 25496 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25497 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25498 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25499 # Extract the first word of "Rez", so it can be a program name with args.
25500set dummy Rez; ac_word=$2
e6cc62c6
VS
25501echo "$as_me:$LINENO: checking for $ac_word" >&5
25502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25503if test "${ac_cv_prog_RESCOMP+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25505else
21d1c967
GD
25506 if test -n "$RESCOMP"; then
25507 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25508else
e6cc62c6
VS
25509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25510for as_dir in $PATH
25511do
25512 IFS=$as_save_IFS
25513 test -z "$as_dir" && as_dir=.
25514 for ac_exec_ext in '' $ac_executable_extensions; do
25515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25516 ac_cv_prog_RESCOMP="Rez"
25517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25518 break 2
25519 fi
25520done
25521done
25522
21d1c967 25523 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25524fi
b93d0d08 25525fi
e6cc62c6 25526RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25527if test -n "$RESCOMP"; then
e6cc62c6
VS
25528 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25529echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25530else
e6cc62c6
VS
25531 echo "$as_me:$LINENO: result: no" >&5
25532echo "${ECHO_T}no" >&6
90dd450c 25533fi
b93d0d08 25534
21d1c967
GD
25535 # Extract the first word of "DeRez", so it can be a program name with args.
25536set dummy DeRez; ac_word=$2
e6cc62c6
VS
25537echo "$as_me:$LINENO: checking for $ac_word" >&5
25538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25539if test "${ac_cv_prog_DEREZ+set}" = set; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25541else
21d1c967
GD
25542 if test -n "$DEREZ"; then
25543 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25544else
e6cc62c6
VS
25545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25546for as_dir in $PATH
25547do
25548 IFS=$as_save_IFS
25549 test -z "$as_dir" && as_dir=.
25550 for ac_exec_ext in '' $ac_executable_extensions; do
25551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25552 ac_cv_prog_DEREZ="DeRez"
25553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25554 break 2
25555 fi
25556done
25557done
25558
21d1c967 25559 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25560fi
90dd450c 25561fi
e6cc62c6 25562DEREZ=$ac_cv_prog_DEREZ
21d1c967 25563if test -n "$DEREZ"; then
e6cc62c6
VS
25564 echo "$as_me:$LINENO: result: $DEREZ" >&5
25565echo "${ECHO_T}$DEREZ" >&6
90dd450c 25566else
e6cc62c6
VS
25567 echo "$as_me:$LINENO: result: no" >&5
25568echo "${ECHO_T}no" >&6
3a922bb4 25569fi
698dcdb6 25570
36825681
GD
25571 # Extract the first word of "SetFile", so it can be a program name with args.
25572set dummy SetFile; ac_word=$2
e6cc62c6
VS
25573echo "$as_me:$LINENO: checking for $ac_word" >&5
25574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25575if test "${ac_cv_prog_SETFILE+set}" = set; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25577else
25578 if test -n "$SETFILE"; then
25579 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25580else
e6cc62c6
VS
25581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25582for as_dir in $PATH
25583do
25584 IFS=$as_save_IFS
25585 test -z "$as_dir" && as_dir=.
25586 for ac_exec_ext in '' $ac_executable_extensions; do
25587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25588 ac_cv_prog_SETFILE="SetFile"
25589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25590 break 2
25591 fi
25592done
25593done
25594
36825681
GD
25595 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25596fi
25597fi
e6cc62c6 25598SETFILE=$ac_cv_prog_SETFILE
36825681 25599if test -n "$SETFILE"; then
e6cc62c6
VS
25600 echo "$as_me:$LINENO: result: $SETFILE" >&5
25601echo "${ECHO_T}$SETFILE" >&6
36825681 25602else
e6cc62c6
VS
25603 echo "$as_me:$LINENO: result: no" >&5
25604echo "${ECHO_T}no" >&6
36825681
GD
25605fi
25606
21d1c967 25607 MACOSX_BUNDLE="bundle"
36825681
GD
25608 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25609 MACSETFILE="\$(SETFILE)"
9711d31e 25610 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25611elif test "$wxUSE_COCOA" = 1; then
25612 # Extract the first word of "Rez", so it can be a program name with args.
25613set dummy Rez; ac_word=$2
e6cc62c6
VS
25614echo "$as_me:$LINENO: checking for $ac_word" >&5
25615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25616if test "${ac_cv_prog_RESCOMP+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25618else
25619 if test -n "$RESCOMP"; then
25620 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25621else
e6cc62c6
VS
25622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25623for as_dir in $PATH
25624do
25625 IFS=$as_save_IFS
25626 test -z "$as_dir" && as_dir=.
25627 for ac_exec_ext in '' $ac_executable_extensions; do
25628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25629 ac_cv_prog_RESCOMP="Rez"
25630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25631 break 2
25632 fi
25633done
25634done
25635
64440d77
DE
25636 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25637fi
25638fi
e6cc62c6 25639RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25640if test -n "$RESCOMP"; then
e6cc62c6
VS
25641 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25642echo "${ECHO_T}$RESCOMP" >&6
64440d77 25643else
e6cc62c6
VS
25644 echo "$as_me:$LINENO: result: no" >&5
25645echo "${ECHO_T}no" >&6
64440d77
DE
25646fi
25647
25648 # Extract the first word of "DeRez", so it can be a program name with args.
25649set dummy DeRez; ac_word=$2
e6cc62c6
VS
25650echo "$as_me:$LINENO: checking for $ac_word" >&5
25651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25652if test "${ac_cv_prog_DEREZ+set}" = set; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25654else
25655 if test -n "$DEREZ"; then
25656 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25657else
e6cc62c6
VS
25658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25659for as_dir in $PATH
25660do
25661 IFS=$as_save_IFS
25662 test -z "$as_dir" && as_dir=.
25663 for ac_exec_ext in '' $ac_executable_extensions; do
25664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25665 ac_cv_prog_DEREZ="DeRez"
25666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25667 break 2
25668 fi
25669done
25670done
25671
64440d77
DE
25672 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25673fi
25674fi
e6cc62c6 25675DEREZ=$ac_cv_prog_DEREZ
64440d77 25676if test -n "$DEREZ"; then
e6cc62c6
VS
25677 echo "$as_me:$LINENO: result: $DEREZ" >&5
25678echo "${ECHO_T}$DEREZ" >&6
64440d77 25679else
e6cc62c6
VS
25680 echo "$as_me:$LINENO: result: no" >&5
25681echo "${ECHO_T}no" >&6
64440d77
DE
25682fi
25683
25684 # Extract the first word of "SetFile", so it can be a program name with args.
25685set dummy SetFile; ac_word=$2
e6cc62c6
VS
25686echo "$as_me:$LINENO: checking for $ac_word" >&5
25687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25688if test "${ac_cv_prog_SETFILE+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25690else
25691 if test -n "$SETFILE"; then
25692 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25693else
e6cc62c6
VS
25694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25695for as_dir in $PATH
25696do
25697 IFS=$as_save_IFS
25698 test -z "$as_dir" && as_dir=.
25699 for ac_exec_ext in '' $ac_executable_extensions; do
25700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25701 ac_cv_prog_SETFILE="SetFile"
25702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25703 break 2
25704 fi
25705done
25706done
25707
64440d77
DE
25708 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25709fi
25710fi
e6cc62c6 25711SETFILE=$ac_cv_prog_SETFILE
64440d77 25712if test -n "$SETFILE"; then
e6cc62c6
VS
25713 echo "$as_me:$LINENO: result: $SETFILE" >&5
25714echo "${ECHO_T}$SETFILE" >&6
64440d77 25715else
e6cc62c6
VS
25716 echo "$as_me:$LINENO: result: no" >&5
25717echo "${ECHO_T}no" >&6
64440d77
DE
25718fi
25719
25720 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25721 MACSETFILE="\$(SETFILE)"
9711d31e 25722 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25723else
25724 if test "$wxUSE_PM" = 1; then
36825681 25725 MACRESCOMP="emxbind -ep"
90dd450c 25726 fi
4f14bcd8 25727fi
10f2d63a 25728
8284b0c5 25729
e6cc62c6
VS
25730echo "$as_me:$LINENO: checking for mode_t" >&5
25731echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25732if test "${ac_cv_type_mode_t+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25734else
e6cc62c6
VS
25735 cat >conftest.$ac_ext <<_ACEOF
25736#line $LINENO "configure"
25737/* confdefs.h. */
25738_ACEOF
25739cat confdefs.h >>conftest.$ac_ext
25740cat >>conftest.$ac_ext <<_ACEOF
25741/* end confdefs.h. */
25742$ac_includes_default
25743int
25744main ()
25745{
25746if ((mode_t *) 0)
25747 return 0;
25748if (sizeof (mode_t))
25749 return 0;
25750 ;
25751 return 0;
25752}
25753_ACEOF
25754rm -f conftest.$ac_objext
25755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756 (eval $ac_compile) 2>&5
25757 ac_status=$?
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } &&
25760 { ac_try='test -s conftest.$ac_objext'
25761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); }; }; then
25766 ac_cv_type_mode_t=yes
a0b9e27f 25767else
e6cc62c6
VS
25768 echo "$as_me: failed program was:" >&5
25769sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25770
e6cc62c6 25771ac_cv_type_mode_t=no
a0b9e27f 25772fi
e6cc62c6 25773rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25774fi
e6cc62c6
VS
25775echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25776echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25777if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25778 :
25779else
a0b9e27f 25780
e6cc62c6
VS
25781cat >>confdefs.h <<_ACEOF
25782#define mode_t int
25783_ACEOF
8284b0c5
MB
25784
25785fi
25786
e6cc62c6
VS
25787echo "$as_me:$LINENO: checking for off_t" >&5
25788echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25789if test "${ac_cv_type_off_t+set}" = set; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25791else
e6cc62c6
VS
25792 cat >conftest.$ac_ext <<_ACEOF
25793#line $LINENO "configure"
25794/* confdefs.h. */
25795_ACEOF
25796cat confdefs.h >>conftest.$ac_ext
25797cat >>conftest.$ac_ext <<_ACEOF
25798/* end confdefs.h. */
25799$ac_includes_default
25800int
25801main ()
25802{
25803if ((off_t *) 0)
25804 return 0;
25805if (sizeof (off_t))
25806 return 0;
25807 ;
25808 return 0;
25809}
25810_ACEOF
25811rm -f conftest.$ac_objext
25812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25813 (eval $ac_compile) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } &&
25817 { ac_try='test -s conftest.$ac_objext'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25820 ac_status=$?
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; }; then
25823 ac_cv_type_off_t=yes
5c6fa7d2 25824else
e6cc62c6
VS
25825 echo "$as_me: failed program was:" >&5
25826sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25827
e6cc62c6 25828ac_cv_type_off_t=no
8284b0c5 25829fi
e6cc62c6 25830rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25831fi
e6cc62c6
VS
25832echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25833echo "${ECHO_T}$ac_cv_type_off_t" >&6
25834if test $ac_cv_type_off_t = yes; then
25835 :
247f5006
VZ
25836else
25837
e6cc62c6 25838cat >>confdefs.h <<_ACEOF
90dd450c 25839#define off_t long
e6cc62c6 25840_ACEOF
10f2d63a 25841
90dd450c 25842fi
10f2d63a 25843
e6cc62c6
VS
25844echo "$as_me:$LINENO: checking for pid_t" >&5
25845echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25846if test "${ac_cv_type_pid_t+set}" = set; then
25847 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25848else
e6cc62c6
VS
25849 cat >conftest.$ac_ext <<_ACEOF
25850#line $LINENO "configure"
25851/* confdefs.h. */
25852_ACEOF
25853cat confdefs.h >>conftest.$ac_ext
25854cat >>conftest.$ac_ext <<_ACEOF
25855/* end confdefs.h. */
25856$ac_includes_default
25857int
25858main ()
25859{
25860if ((pid_t *) 0)
25861 return 0;
25862if (sizeof (pid_t))
25863 return 0;
25864 ;
25865 return 0;
25866}
25867_ACEOF
25868rm -f conftest.$ac_objext
25869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>&5
25871 ac_status=$?
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
90dd450c 25880 ac_cv_type_pid_t=yes
698dcdb6 25881else
e6cc62c6
VS
25882 echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25884
e6cc62c6
VS
25885ac_cv_type_pid_t=no
25886fi
25887rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25888fi
e6cc62c6
VS
25889echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25890echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25891if test $ac_cv_type_pid_t = yes; then
25892 :
25893else
25894
25895cat >>confdefs.h <<_ACEOF
90dd450c 25896#define pid_t int
e6cc62c6 25897_ACEOF
10f2d63a 25898
7b4a847f
RR
25899fi
25900
e6cc62c6
VS
25901echo "$as_me:$LINENO: checking for size_t" >&5
25902echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25903if test "${ac_cv_type_size_t+set}" = set; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25905else
e6cc62c6
VS
25906 cat >conftest.$ac_ext <<_ACEOF
25907#line $LINENO "configure"
25908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
25913$ac_includes_default
25914int
25915main ()
25916{
25917if ((size_t *) 0)
25918 return 0;
25919if (sizeof (size_t))
25920 return 0;
25921 ;
25922 return 0;
25923}
25924_ACEOF
25925rm -f conftest.$ac_objext
25926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25927 (eval $ac_compile) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
25931 { ac_try='test -s conftest.$ac_objext'
25932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25934 ac_status=$?
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); }; }; then
90dd450c 25937 ac_cv_type_size_t=yes
18dbb1f6 25938else
e6cc62c6
VS
25939 echo "$as_me: failed program was:" >&5
25940sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25941
e6cc62c6 25942ac_cv_type_size_t=no
a0b9e27f 25943fi
e6cc62c6
VS
25944rm -f conftest.$ac_objext conftest.$ac_ext
25945fi
25946echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25947echo "${ECHO_T}$ac_cv_type_size_t" >&6
25948if test $ac_cv_type_size_t = yes; then
25949 :
25950else
25951
25952cat >>confdefs.h <<_ACEOF
90dd450c 25953#define size_t unsigned
e6cc62c6 25954_ACEOF
90dd450c
VZ
25955
25956fi
25957
e6cc62c6
VS
25958echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25959echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25960if test "${ac_cv_type_uid_t+set}" = set; then
25961 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25962else
e6cc62c6
VS
25963 cat >conftest.$ac_ext <<_ACEOF
25964#line $LINENO "configure"
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
90dd450c 25970#include <sys/types.h>
e6cc62c6
VS
25971
25972_ACEOF
90dd450c 25973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25974 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25975 ac_cv_type_uid_t=yes
b3e8d00a 25976else
90dd450c 25977 ac_cv_type_uid_t=no
b3e8d00a 25978fi
90dd450c 25979rm -f conftest*
b3e8d00a 25980
4f14bcd8 25981fi
e6cc62c6
VS
25982echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25983echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25984if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25985
25986cat >>confdefs.h <<\_ACEOF
90dd450c 25987#define uid_t int
e6cc62c6 25988_ACEOF
247f5006 25989
e6cc62c6
VS
25990
25991cat >>confdefs.h <<\_ACEOF
90dd450c 25992#define gid_t int
e6cc62c6 25993_ACEOF
4f14bcd8 25994
b3e8d00a 25995fi
b3e8d00a 25996
8284b0c5
MB
25997
25998
e6cc62c6
VS
25999
26000ac_ext=cc
4f14bcd8 26001ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26005
26006echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26007echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26008if test "${wx_cv_size_t_is_uint+set}" = set; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26010else
26011
26012 cat >conftest.$ac_ext <<_ACEOF
26013#line $LINENO "configure"
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
90dd450c 26019#include <stddef.h>
e6cc62c6
VS
26020int
26021main ()
26022{
90dd450c
VZ
26023
26024 return 0; }
26025
26026 struct Foo { void foo(size_t); void foo(unsigned int); };
26027
26028 int bar() {
e6cc62c6
VS
26029
26030 ;
26031 return 0;
26032}
26033_ACEOF
26034rm -f conftest.$ac_objext
26035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26036 (eval $ac_compile) 2>&5
26037 ac_status=$?
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
90dd450c 26046 wx_cv_size_t_is_uint=no
698dcdb6 26047else
e6cc62c6
VS
26048 echo "$as_me: failed program was:" >&5
26049sed 's/^/| /' conftest.$ac_ext >&5
26050
26051wx_cv_size_t_is_uint=yes
8284b0c5 26052
247f5006 26053fi
e6cc62c6
VS
26054rm -f conftest.$ac_objext conftest.$ac_ext
26055
a0b9e27f 26056
e6cc62c6
VS
26057fi
26058echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26059echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26060
90dd450c 26061if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26062 cat >>confdefs.h <<\_ACEOF
90dd450c 26063#define wxSIZE_T_IS_UINT 1
e6cc62c6 26064_ACEOF
698dcdb6 26065
90dd450c 26066else
e6cc62c6
VS
26067 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26068echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26069if test "${wx_cv_size_t_is_ulong+set}" = set; then
26070 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26071else
e6cc62c6
VS
26072 cat >conftest.$ac_ext <<_ACEOF
26073#line $LINENO "configure"
26074/* confdefs.h. */
26075_ACEOF
26076cat confdefs.h >>conftest.$ac_ext
26077cat >>conftest.$ac_ext <<_ACEOF
26078/* end confdefs.h. */
90dd450c 26079#include <stddef.h>
e6cc62c6
VS
26080int
26081main ()
26082{
90dd450c
VZ
26083
26084 return 0; }
26085
26086 struct Foo { void foo(size_t); void foo(unsigned long); };
26087
26088 int bar() {
e6cc62c6
VS
26089
26090 ;
26091 return 0;
26092}
26093_ACEOF
26094rm -f conftest.$ac_objext
26095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096 (eval $ac_compile) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -s conftest.$ac_objext'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
90dd450c 26106 wx_cv_size_t_is_ulong=no
698dcdb6 26107else
e6cc62c6
VS
26108 echo "$as_me: failed program was:" >&5
26109sed 's/^/| /' conftest.$ac_ext >&5
26110
26111wx_cv_size_t_is_ulong=yes
26112
247f5006 26113fi
e6cc62c6 26114rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26115
e6cc62c6
VS
26116fi
26117echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26118echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26119
90dd450c 26120 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26121 cat >>confdefs.h <<\_ACEOF
90dd450c 26122#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26123_ACEOF
4f14bcd8
GD
26124
26125 fi
90dd450c 26126fi
1e487827 26127
90dd450c 26128ac_ext=c
4f14bcd8 26129ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26132ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26133
5c6fa7d2 26134
8284b0c5 26135
e6cc62c6
VS
26136echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26137echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26138if test "${wx_cv_struct_pw_gecos+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26140else
e6cc62c6
VS
26141
26142 cat >conftest.$ac_ext <<_ACEOF
26143#line $LINENO "configure"
26144/* confdefs.h. */
26145_ACEOF
26146cat confdefs.h >>conftest.$ac_ext
26147cat >>conftest.$ac_ext <<_ACEOF
26148/* end confdefs.h. */
90dd450c 26149#include <pwd.h>
e6cc62c6
VS
26150int
26151main ()
26152{
f6bcfd97 26153
90dd450c
VZ
26154 char *p;
26155 struct passwd *pw;
26156 p = pw->pw_gecos;
e6cc62c6
VS
26157
26158 ;
26159 return 0;
26160}
26161_ACEOF
26162rm -f conftest.$ac_objext
26163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26164 (eval $ac_compile) 2>&5
26165 ac_status=$?
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } &&
26168 { ac_try='test -s conftest.$ac_objext'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; }; then
26174
90dd450c 26175 wx_cv_struct_pw_gecos=yes
e6cc62c6 26176
10f2d63a 26177else
e6cc62c6
VS
26178 echo "$as_me: failed program was:" >&5
26179sed 's/^/| /' conftest.$ac_ext >&5
26180
26181
90dd450c 26182 wx_cv_struct_pw_gecos=no
e6cc62c6 26183
247f5006
VZ
26184
26185fi
e6cc62c6 26186rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26187
e6cc62c6
VS
26188
26189fi
26190echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26191echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26192
90dd450c 26193if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26194 cat >>confdefs.h <<\_ACEOF
90dd450c 26195#define HAVE_PW_GECOS 1
e6cc62c6 26196_ACEOF
c521c494 26197
90dd450c 26198fi
4f14bcd8 26199
8284b0c5 26200
d29b553b 26201if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26202 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26203#define wxUSE_WCHAR_T 1
e6cc62c6 26204_ACEOF
d74f4b5a 26205
8284b0c5 26206
d74f4b5a
VZ
26207 WCSLEN_FOUND=0
26208 WCHAR_LINK=
e6cc62c6
VS
26209
26210for ac_func in wcslen
7a30264c 26211do
e6cc62c6
VS
26212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26213echo "$as_me:$LINENO: checking for $ac_func" >&5
26214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26215if eval "test \"\${$as_ac_var+set}\" = set"; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26217else
26218 cat >conftest.$ac_ext <<_ACEOF
26219#line $LINENO "configure"
26220/* confdefs.h. */
26221_ACEOF
26222cat confdefs.h >>conftest.$ac_ext
26223cat >>conftest.$ac_ext <<_ACEOF
26224/* end confdefs.h. */
7a30264c 26225/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26226 which can conflict with char $ac_func (); below.
26227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26228 <limits.h> exists even on freestanding compilers. */
26229#ifdef __STDC__
26230# include <limits.h>
26231#else
26232# include <assert.h>
26233#endif
4f14bcd8 26234/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26235#ifdef __cplusplus
26236extern "C"
26237{
26238#endif
4f14bcd8 26239/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26240 builtin and then its argument prototype would still apply. */
26241char $ac_func ();
7a30264c
VZ
26242/* The GNU C library defines this for functions which it implements
26243 to always fail with ENOSYS. Some functions are actually named
26244 something starting with __ and the normal name is an alias. */
26245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26246choke me
26247#else
e6cc62c6
VS
26248char (*f) () = $ac_func;
26249#endif
26250#ifdef __cplusplus
26251}
7a30264c
VZ
26252#endif
26253
e6cc62c6
VS
26254int
26255main ()
26256{
26257return f != $ac_func;
26258 ;
26259 return 0;
26260}
26261_ACEOF
26262rm -f conftest.$ac_objext conftest$ac_exeext
26263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26264 (eval $ac_link) 2>&5
26265 ac_status=$?
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } &&
26268 { ac_try='test -s conftest$ac_exeext'
26269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26270 (eval $ac_try) 2>&5
26271 ac_status=$?
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); }; }; then
26274 eval "$as_ac_var=yes"
26275else
26276 echo "$as_me: failed program was:" >&5
26277sed 's/^/| /' conftest.$ac_ext >&5
26278
26279eval "$as_ac_var=no"
26280fi
26281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26282fi
26283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26285if test `eval echo '${'$as_ac_var'}'` = yes; then
26286 cat >>confdefs.h <<_ACEOF
26287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26288_ACEOF
d74f4b5a 26289 WCSLEN_FOUND=1
7a30264c
VZ
26290fi
26291done
9d8deca0 26292
8284b0c5 26293
d74f4b5a 26294 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26295 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26296 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26297echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26298if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26300else
e6cc62c6 26301 ac_check_lib_save_LIBS=$LIBS
7a30264c 26302LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26303cat >conftest.$ac_ext <<_ACEOF
26304#line $LINENO "configure"
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
4f14bcd8 26311/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26312#ifdef __cplusplus
26313extern "C"
26314#endif
4f14bcd8 26315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26316 builtin and then its argument prototype would still apply. */
26317char wcslen ();
26318int
26319main ()
26320{
26321wcslen ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328 (eval $ac_link) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -s conftest$ac_exeext'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; }; then
26338 ac_cv_lib_msvcrt_wcslen=yes
26339else
26340 echo "$as_me: failed program was:" >&5
26341sed 's/^/| /' conftest.$ac_ext >&5
26342
26343ac_cv_lib_msvcrt_wcslen=no
26344fi
26345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26346LIBS=$ac_check_lib_save_LIBS
26347fi
26348echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26349echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26350if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26351 WCHAR_OK=1
d29b553b 26352fi
698dcdb6 26353
7a30264c 26354 else
e6cc62c6
VS
26355 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26356echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26357if test "${ac_cv_lib_w_wcslen+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26359else
e6cc62c6 26360 ac_check_lib_save_LIBS=$LIBS
7a30264c 26361LIBS="-lw $LIBS"
e6cc62c6
VS
26362cat >conftest.$ac_ext <<_ACEOF
26363#line $LINENO "configure"
26364/* confdefs.h. */
26365_ACEOF
26366cat confdefs.h >>conftest.$ac_ext
26367cat >>conftest.$ac_ext <<_ACEOF
26368/* end confdefs.h. */
26369
4f14bcd8 26370/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26371#ifdef __cplusplus
26372extern "C"
26373#endif
4f14bcd8 26374/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26375 builtin and then its argument prototype would still apply. */
26376char wcslen ();
26377int
26378main ()
26379{
26380wcslen ();
26381 ;
26382 return 0;
26383}
26384_ACEOF
26385rm -f conftest.$ac_objext conftest$ac_exeext
26386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26387 (eval $ac_link) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } &&
26391 { ac_try='test -s conftest$ac_exeext'
26392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_cv_lib_w_wcslen=yes
26398else
26399 echo "$as_me: failed program was:" >&5
26400sed 's/^/| /' conftest.$ac_ext >&5
26401
26402ac_cv_lib_w_wcslen=no
26403fi
26404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26405LIBS=$ac_check_lib_save_LIBS
26406fi
26407echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26408echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26409if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26410
7a30264c 26411 WCHAR_LINK=" -lw"
d74f4b5a 26412 WCSLEN_FOUND=1
e6cc62c6 26413
4f14bcd8 26414fi
10f2d63a 26415
7a30264c 26416 fi
d29b553b 26417 fi
95c8801c 26418
d74f4b5a 26419 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26420 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26421#define HAVE_WCSLEN 1
e6cc62c6 26422_ACEOF
10f2d63a 26423
d74f4b5a 26424 fi
52127426 26425
e6cc62c6
VS
26426
26427for ac_func in wcsrtombs
eb4efbdc 26428do
e6cc62c6
VS
26429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26430echo "$as_me:$LINENO: checking for $ac_func" >&5
26431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26432if eval "test \"\${$as_ac_var+set}\" = set"; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26434else
26435 cat >conftest.$ac_ext <<_ACEOF
26436#line $LINENO "configure"
26437/* confdefs.h. */
26438_ACEOF
26439cat confdefs.h >>conftest.$ac_ext
26440cat >>conftest.$ac_ext <<_ACEOF
26441/* end confdefs.h. */
eb4efbdc 26442/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26443 which can conflict with char $ac_func (); below.
26444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26445 <limits.h> exists even on freestanding compilers. */
26446#ifdef __STDC__
26447# include <limits.h>
26448#else
26449# include <assert.h>
26450#endif
eb4efbdc 26451/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26452#ifdef __cplusplus
26453extern "C"
26454{
26455#endif
4f14bcd8 26456/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26457 builtin and then its argument prototype would still apply. */
26458char $ac_func ();
10f2d63a
VZ
26459/* The GNU C library defines this for functions which it implements
26460 to always fail with ENOSYS. Some functions are actually named
26461 something starting with __ and the normal name is an alias. */
247f5006 26462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26463choke me
26464#else
e6cc62c6
VS
26465char (*f) () = $ac_func;
26466#endif
26467#ifdef __cplusplus
26468}
10f2d63a
VZ
26469#endif
26470
e6cc62c6
VS
26471int
26472main ()
26473{
26474return f != $ac_func;
26475 ;
26476 return 0;
26477}
26478_ACEOF
26479rm -f conftest.$ac_objext conftest$ac_exeext
26480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26481 (eval $ac_link) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -s conftest$ac_exeext'
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
26491 eval "$as_ac_var=yes"
26492else
26493 echo "$as_me: failed program was:" >&5
26494sed 's/^/| /' conftest.$ac_ext >&5
26495
26496eval "$as_ac_var=no"
26497fi
26498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26499fi
26500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26502if test `eval echo '${'$as_ac_var'}'` = yes; then
26503 cat >>confdefs.h <<_ACEOF
26504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26505_ACEOF
270a909e 26506
4f14bcd8 26507fi
247f5006 26508done
1e487827 26509
af15babd 26510else
e6cc62c6
VS
26511 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26512echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26513fi
52127426 26514
8284b0c5 26515
e6cc62c6
VS
26516
26517ac_ext=cc
247f5006 26518ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26522
af15babd 26523
247f5006
VZ
26524
26525for ac_func in vsnprintf
26526do
e6cc62c6
VS
26527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26528echo "$as_me:$LINENO: checking for $ac_func" >&5
26529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26530if eval "test \"\${$as_ac_var+set}\" = set"; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532else
26533 cat >conftest.$ac_ext <<_ACEOF
26534#line $LINENO "configure"
26535/* confdefs.h. */
26536_ACEOF
26537cat confdefs.h >>conftest.$ac_ext
26538cat >>conftest.$ac_ext <<_ACEOF
26539/* end confdefs.h. */
247f5006 26540/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26541 which can conflict with char $ac_func (); below.
26542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26543 <limits.h> exists even on freestanding compilers. */
26544#ifdef __STDC__
26545# include <limits.h>
26546#else
26547# include <assert.h>
26548#endif
247f5006
VZ
26549/* Override any gcc2 internal prototype to avoid an error. */
26550#ifdef __cplusplus
26551extern "C"
e6cc62c6 26552{
247f5006
VZ
26553#endif
26554/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26555 builtin and then its argument prototype would still apply. */
26556char $ac_func ();
247f5006
VZ
26557/* The GNU C library defines this for functions which it implements
26558 to always fail with ENOSYS. Some functions are actually named
26559 something starting with __ and the normal name is an alias. */
26560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26561choke me
26562#else
e6cc62c6
VS
26563char (*f) () = $ac_func;
26564#endif
26565#ifdef __cplusplus
26566}
247f5006 26567#endif
af15babd 26568
e6cc62c6
VS
26569int
26570main ()
26571{
26572return f != $ac_func;
26573 ;
26574 return 0;
26575}
26576_ACEOF
26577rm -f conftest.$ac_objext conftest$ac_exeext
26578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26579 (eval $ac_link) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); } &&
26583 { ac_try='test -s conftest$ac_exeext'
26584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585 (eval $ac_try) 2>&5
26586 ac_status=$?
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); }; }; then
26589 eval "$as_ac_var=yes"
26590else
26591 echo "$as_me: failed program was:" >&5
26592sed 's/^/| /' conftest.$ac_ext >&5
26593
26594eval "$as_ac_var=no"
26595fi
26596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26597fi
26598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26600if test `eval echo '${'$as_ac_var'}'` = yes; then
26601 cat >>confdefs.h <<_ACEOF
26602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26603_ACEOF
52127426 26604
5c6fa7d2 26605fi
247f5006 26606done
8284b0c5 26607
4f14bcd8 26608
8d90d2f2 26609if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26610 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26611echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26612if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26614else
e6cc62c6
VS
26615
26616 cat >conftest.$ac_ext <<_ACEOF
26617#line $LINENO "configure"
26618/* confdefs.h. */
26619_ACEOF
26620cat confdefs.h >>conftest.$ac_ext
26621cat >>conftest.$ac_ext <<_ACEOF
26622/* end confdefs.h. */
8d90d2f2
VZ
26623
26624 #include <stdio.h>
26625 #include <stdarg.h>
e6cc62c6
VS
26626
26627int
26628main ()
26629{
8d90d2f2
VZ
26630
26631 char *buf;
26632 va_list ap;
26633 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26634
26635 ;
26636 return 0;
26637}
26638_ACEOF
26639rm -f conftest.$ac_objext
26640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26641 (eval $ac_compile) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
26645 { ac_try='test -s conftest.$ac_objext'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
8d90d2f2
VZ
26651 wx_cv_func_vsnprintf_decl=yes
26652else
e6cc62c6
VS
26653 echo "$as_me: failed program was:" >&5
26654sed 's/^/| /' conftest.$ac_ext >&5
26655
26656wx_cv_func_vsnprintf_decl=no
26657
8d90d2f2 26658fi
e6cc62c6
VS
26659rm -f conftest.$ac_objext conftest.$ac_ext
26660
8d90d2f2 26661
e6cc62c6
VS
26662fi
26663echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26664echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26665
26666 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26667 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26668#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26669_ACEOF
8d90d2f2
VZ
26670
26671 fi
26672fi
26673
247f5006 26674if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26675
26676
26677
26678for ac_func in fputwc wprintf vswprintf
d74f4b5a 26679do
e6cc62c6
VS
26680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26681echo "$as_me:$LINENO: checking for $ac_func" >&5
26682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26683if eval "test \"\${$as_ac_var+set}\" = set"; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26685else
26686 cat >conftest.$ac_ext <<_ACEOF
26687#line $LINENO "configure"
26688/* confdefs.h. */
26689_ACEOF
26690cat confdefs.h >>conftest.$ac_ext
26691cat >>conftest.$ac_ext <<_ACEOF
26692/* end confdefs.h. */
d74f4b5a 26693/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26694 which can conflict with char $ac_func (); below.
26695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26696 <limits.h> exists even on freestanding compilers. */
26697#ifdef __STDC__
26698# include <limits.h>
26699#else
26700# include <assert.h>
26701#endif
d74f4b5a 26702/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26703#ifdef __cplusplus
26704extern "C"
e6cc62c6 26705{
247f5006 26706#endif
d74f4b5a 26707/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26708 builtin and then its argument prototype would still apply. */
26709char $ac_func ();
d74f4b5a
VZ
26710/* The GNU C library defines this for functions which it implements
26711 to always fail with ENOSYS. Some functions are actually named
26712 something starting with __ and the normal name is an alias. */
26713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26714choke me
26715#else
e6cc62c6
VS
26716char (*f) () = $ac_func;
26717#endif
26718#ifdef __cplusplus
26719}
d74f4b5a
VZ
26720#endif
26721
e6cc62c6
VS
26722int
26723main ()
26724{
26725return f != $ac_func;
26726 ;
26727 return 0;
26728}
26729_ACEOF
26730rm -f conftest.$ac_objext conftest$ac_exeext
26731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26732 (eval $ac_link) 2>&5
26733 ac_status=$?
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
26736 { ac_try='test -s conftest$ac_exeext'
26737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26738 (eval $ac_try) 2>&5
26739 ac_status=$?
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); }; }; then
26742 eval "$as_ac_var=yes"
26743else
26744 echo "$as_me: failed program was:" >&5
26745sed 's/^/| /' conftest.$ac_ext >&5
26746
26747eval "$as_ac_var=no"
26748fi
26749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26750fi
26751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26753if test `eval echo '${'$as_ac_var'}'` = yes; then
26754 cat >>confdefs.h <<_ACEOF
26755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26756_ACEOF
d74f4b5a 26757
d74f4b5a
VZ
26758fi
26759done
26760
8d90d2f2 26761
e6cc62c6
VS
26762 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26763echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26765#line $LINENO "configure"
26766/* confdefs.h. */
26767_ACEOF
26768cat confdefs.h >>conftest.$ac_ext
26769cat >>conftest.$ac_ext <<_ACEOF
26770/* end confdefs.h. */
79668cae 26771#include <wchar.h>
e6cc62c6
VS
26772int
26773main ()
26774{
79668cae 26775&_vsnwprintf;
e6cc62c6
VS
26776 ;
26777 return 0;
26778}
26779_ACEOF
26780rm -f conftest.$ac_objext
26781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782 (eval $ac_compile) 2>&5
26783 ac_status=$?
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
26786 { ac_try='test -s conftest.$ac_objext'
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 echo "$as_me:$LINENO: result: yes" >&5
26793echo "${ECHO_T}yes" >&6
26794 cat >>confdefs.h <<\_ACEOF
79668cae 26795#define HAVE__VSNWPRINTF 1
e6cc62c6 26796_ACEOF
79668cae
MB
26797
26798else
e6cc62c6
VS
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802echo "$as_me:$LINENO: result: no" >&5
26803echo "${ECHO_T}no" >&6
79668cae 26804fi
e6cc62c6 26805rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26806fi
26807
247f5006
VZ
26808ac_ext=c
26809ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26813
26814
26815
26816
4f14bcd8 26817if test "$TOOLKIT" != "MSW"; then
af15babd 26818
8284b0c5
MB
26819
26820
e6cc62c6
VS
26821
26822ac_ext=cc
4f14bcd8 26823ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26827
52127426 26828
e6cc62c6
VS
26829
26830
26831# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26832if test "${with_libiconv_prefix+set}" = set; then
26833 withval="$with_libiconv_prefix"
e6cc62c6 26834
b040e242
VS
26835 for dir in `echo "$withval" | tr : ' '`; do
26836 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26837 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26838 done
b040e242 26839
e6cc62c6 26840fi;
b040e242 26841
e6cc62c6
VS
26842 echo "$as_me:$LINENO: checking for iconv" >&5
26843echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26844if test "${am_cv_func_iconv+set}" = set; then
26845 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26846else
e6cc62c6 26847
b040e242
VS
26848 am_cv_func_iconv="no, consider installing GNU libiconv"
26849 am_cv_lib_iconv=no
e6cc62c6
VS
26850 cat >conftest.$ac_ext <<_ACEOF
26851#line $LINENO "configure"
26852/* confdefs.h. */
26853_ACEOF
26854cat confdefs.h >>conftest.$ac_ext
26855cat >>conftest.$ac_ext <<_ACEOF
26856/* end confdefs.h. */
b040e242 26857#include <stdlib.h>
4f14bcd8 26858#include <iconv.h>
e6cc62c6
VS
26859int
26860main ()
26861{
b040e242
VS
26862iconv_t cd = iconv_open("","");
26863 iconv(cd,NULL,NULL,NULL,NULL);
26864 iconv_close(cd);
e6cc62c6
VS
26865 ;
26866 return 0;
26867}
26868_ACEOF
26869rm -f conftest.$ac_objext conftest$ac_exeext
26870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26871 (eval $ac_link) 2>&5
26872 ac_status=$?
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
26875 { ac_try='test -s conftest$ac_exeext'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
b040e242 26881 am_cv_func_iconv=yes
af15babd 26882else
e6cc62c6
VS
26883 echo "$as_me: failed program was:" >&5
26884sed 's/^/| /' conftest.$ac_ext >&5
26885
b040e242 26886fi
e6cc62c6 26887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26888 if test "$am_cv_func_iconv" != yes; then
26889 am_save_LIBS="$LIBS"
26890 LIBS="$LIBS -liconv"
e6cc62c6
VS
26891 cat >conftest.$ac_ext <<_ACEOF
26892#line $LINENO "configure"
26893/* confdefs.h. */
26894_ACEOF
26895cat confdefs.h >>conftest.$ac_ext
26896cat >>conftest.$ac_ext <<_ACEOF
26897/* end confdefs.h. */
b040e242
VS
26898#include <stdlib.h>
26899#include <iconv.h>
e6cc62c6
VS
26900int
26901main ()
26902{
b040e242
VS
26903iconv_t cd = iconv_open("","");
26904 iconv(cd,NULL,NULL,NULL,NULL);
26905 iconv_close(cd);
e6cc62c6
VS
26906 ;
26907 return 0;
26908}
26909_ACEOF
26910rm -f conftest.$ac_objext conftest$ac_exeext
26911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26912 (eval $ac_link) 2>&5
26913 ac_status=$?
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } &&
26916 { ac_try='test -s conftest$ac_exeext'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; }; then
b040e242
VS
26922 am_cv_lib_iconv=yes
26923 am_cv_func_iconv=yes
26924else
e6cc62c6
VS
26925 echo "$as_me: failed program was:" >&5
26926sed 's/^/| /' conftest.$ac_ext >&5
26927
af15babd 26928fi
e6cc62c6 26929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26930 LIBS="$am_save_LIBS"
26931 fi
247f5006 26932
e6cc62c6
VS
26933fi
26934echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26935echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26936 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26937
26938cat >>confdefs.h <<\_ACEOF
b040e242 26939#define HAVE_ICONV 1
e6cc62c6 26940_ACEOF
b040e242 26941
e6cc62c6
VS
26942 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26943echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26944if test "${wx_cv_func_iconv_const+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26946else
e6cc62c6
VS
26947 cat >conftest.$ac_ext <<_ACEOF
26948#line $LINENO "configure"
26949/* confdefs.h. */
26950_ACEOF
26951cat confdefs.h >>conftest.$ac_ext
26952cat >>conftest.$ac_ext <<_ACEOF
26953/* end confdefs.h. */
b040e242
VS
26954
26955#include <stdlib.h>
26956#include <iconv.h>
26957extern
26958#ifdef __cplusplus
26959"C"
26960#endif
26961#if defined(__STDC__) || defined(__cplusplus)
26962size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26963#else
26964size_t iconv();
26965#endif
af15babd 26966
e6cc62c6
VS
26967int
26968main ()
26969{
26970
26971 ;
26972 return 0;
26973}
26974_ACEOF
26975rm -f conftest.$ac_objext
26976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26977 (eval $ac_compile) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -s conftest.$ac_objext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
b7043674 26987 wx_cv_func_iconv_const="no"
b040e242 26988else
e6cc62c6
VS
26989 echo "$as_me: failed program was:" >&5
26990sed 's/^/| /' conftest.$ac_ext >&5
26991
26992wx_cv_func_iconv_const="yes"
26993
247f5006 26994fi
e6cc62c6 26995rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26996
e6cc62c6
VS
26997fi
26998echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26999echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27000
27001 iconv_const=
1c405bb5 27002 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27003 iconv_const="const"
27004 fi
27005
e6cc62c6
VS
27006
27007cat >>confdefs.h <<_ACEOF
f09359cf 27008#define ICONV_CONST $iconv_const
e6cc62c6 27009_ACEOF
b040e242
VS
27010
27011 fi
27012 LIBICONV=
27013 if test "$am_cv_lib_iconv" = yes; then
27014 LIBICONV="-liconv"
27015 fi
e6cc62c6 27016
b040e242
VS
27017
27018LIBS="$LIBICONV $LIBS"
4f14bcd8 27019ac_ext=c
4f14bcd8 27020ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27023ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27024
5c6fa7d2 27025
8284b0c5 27026if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27027
27028for ac_func in sigaction
af15babd 27029do
e6cc62c6
VS
27030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27031echo "$as_me:$LINENO: checking for $ac_func" >&5
27032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27033if eval "test \"\${$as_ac_var+set}\" = set"; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27035else
27036 cat >conftest.$ac_ext <<_ACEOF
27037#line $LINENO "configure"
27038/* confdefs.h. */
27039_ACEOF
27040cat confdefs.h >>conftest.$ac_ext
27041cat >>conftest.$ac_ext <<_ACEOF
27042/* end confdefs.h. */
af15babd 27043/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27044 which can conflict with char $ac_func (); below.
27045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27046 <limits.h> exists even on freestanding compilers. */
27047#ifdef __STDC__
27048# include <limits.h>
27049#else
27050# include <assert.h>
27051#endif
af15babd 27052/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27053#ifdef __cplusplus
27054extern "C"
27055{
27056#endif
af15babd 27057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27058 builtin and then its argument prototype would still apply. */
27059char $ac_func ();
af15babd
VZ
27060/* The GNU C library defines this for functions which it implements
27061 to always fail with ENOSYS. Some functions are actually named
27062 something starting with __ and the normal name is an alias. */
27063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27064choke me
27065#else
e6cc62c6
VS
27066char (*f) () = $ac_func;
27067#endif
27068#ifdef __cplusplus
27069}
af15babd
VZ
27070#endif
27071
e6cc62c6
VS
27072int
27073main ()
27074{
27075return f != $ac_func;
27076 ;
27077 return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext conftest$ac_exeext
27081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27082 (eval $ac_link) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
27086 { ac_try='test -s conftest$ac_exeext'
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; }; then
27092 eval "$as_ac_var=yes"
27093else
27094 echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097eval "$as_ac_var=no"
27098fi
27099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27100fi
27101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27103if test `eval echo '${'$as_ac_var'}'` = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27106_ACEOF
7b4a847f 27107
4f14bcd8
GD
27108fi
27109done
27110
8284b0c5 27111
4f14bcd8 27112 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27113 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27114echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27115 wxUSE_ON_FATAL_EXCEPTION=no
27116 fi
27117
27118 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27119
27120
27121 ac_ext=cc
5c6fa7d2 27122ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27126
5c6fa7d2 27127
e6cc62c6
VS
27128 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27129echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27130if test "${wx_cv_type_sa_handler+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27132else
e6cc62c6
VS
27133
27134 cat >conftest.$ac_ext <<_ACEOF
27135#line $LINENO "configure"
27136/* confdefs.h. */
27137_ACEOF
27138cat confdefs.h >>conftest.$ac_ext
27139cat >>conftest.$ac_ext <<_ACEOF
27140/* end confdefs.h. */
4f14bcd8 27141#include <signal.h>
e6cc62c6
VS
27142int
27143main ()
27144{
4f14bcd8
GD
27145
27146 extern void testSigHandler(int);
27147
27148 struct sigaction sa;
27149 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27150
27151 ;
27152 return 0;
27153}
27154_ACEOF
27155rm -f conftest.$ac_objext
27156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27157 (eval $ac_compile) 2>&5
27158 ac_status=$?
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } &&
27161 { ac_try='test -s conftest.$ac_objext'
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; }; then
27167
4f14bcd8 27168 wx_cv_type_sa_handler=int
e6cc62c6 27169
af15babd 27170else
e6cc62c6
VS
27171 echo "$as_me: failed program was:" >&5
27172sed 's/^/| /' conftest.$ac_ext >&5
27173
27174
4f14bcd8 27175 wx_cv_type_sa_handler=void
e6cc62c6 27176
247f5006 27177fi
e6cc62c6 27178rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27179
e6cc62c6
VS
27180fi
27181echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27182echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27183
27184 ac_ext=c
4f14bcd8 27185ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27188ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27189
8284b0c5 27190
e6cc62c6 27191 cat >>confdefs.h <<_ACEOF
4f14bcd8 27192#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27193_ACEOF
af15babd 27194
4f14bcd8
GD
27195 fi
27196fi
af15babd 27197
e6cc62c6
VS
27198
27199
a1d22ad7 27200for ac_func in mkstemp mktemp
af15babd 27201do
e6cc62c6
VS
27202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27203echo "$as_me:$LINENO: checking for $ac_func" >&5
27204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27205if eval "test \"\${$as_ac_var+set}\" = set"; then
27206 echo $ECHO_N "(cached) $ECHO_C" >&6
27207else
27208 cat >conftest.$ac_ext <<_ACEOF
27209#line $LINENO "configure"
27210/* confdefs.h. */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h. */
af15babd 27215/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27216 which can conflict with char $ac_func (); below.
27217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27218 <limits.h> exists even on freestanding compilers. */
27219#ifdef __STDC__
27220# include <limits.h>
27221#else
27222# include <assert.h>
27223#endif
af15babd 27224/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27225#ifdef __cplusplus
27226extern "C"
27227{
27228#endif
af15babd 27229/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27230 builtin and then its argument prototype would still apply. */
27231char $ac_func ();
af15babd
VZ
27232/* The GNU C library defines this for functions which it implements
27233 to always fail with ENOSYS. Some functions are actually named
27234 something starting with __ and the normal name is an alias. */
27235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27236choke me
27237#else
e6cc62c6
VS
27238char (*f) () = $ac_func;
27239#endif
27240#ifdef __cplusplus
27241}
af15babd
VZ
27242#endif
27243
e6cc62c6
VS
27244int
27245main ()
27246{
27247return f != $ac_func;
27248 ;
27249 return 0;
27250}
27251_ACEOF
27252rm -f conftest.$ac_objext conftest$ac_exeext
27253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254 (eval $ac_link) 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } &&
27258 { ac_try='test -s conftest$ac_exeext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 eval "$as_ac_var=yes"
27265else
27266 echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269eval "$as_ac_var=no"
27270fi
27271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27272fi
27273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27275if test `eval echo '${'$as_ac_var'}'` = yes; then
27276 cat >>confdefs.h <<_ACEOF
27277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27278_ACEOF
ade35f11 27279 break
ade35f11
VZ
27280fi
27281done
27282
8284b0c5 27283
e6cc62c6
VS
27284echo "$as_me:$LINENO: checking for statfs" >&5
27285echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27286if test "${wx_cv_func_statfs+set}" = set; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27288else
e6cc62c6
VS
27289 cat >conftest.$ac_ext <<_ACEOF
27290#line $LINENO "configure"
27291/* confdefs.h. */
27292_ACEOF
27293cat confdefs.h >>conftest.$ac_ext
27294cat >>conftest.$ac_ext <<_ACEOF
27295/* end confdefs.h. */
4f14bcd8
GD
27296
27297 #if defined(__BSD__)
27298 #include <sys/param.h>
27299 #include <sys/mount.h>
27300 #else
27301 #include <sys/vfs.h>
27302 #endif
e6cc62c6
VS
27303
27304int
27305main ()
27306{
4f14bcd8
GD
27307
27308 long l;
27309 struct statfs fs;
27310 statfs("/", &fs);
27311 l = fs.f_bsize;
27312 l += fs.f_blocks;
27313 l += fs.f_bavail;
e6cc62c6
VS
27314
27315 ;
27316 return 0;
27317}
27318_ACEOF
27319rm -f conftest.$ac_objext
27320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27321 (eval $ac_compile) 2>&5
27322 ac_status=$?
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -s conftest.$ac_objext'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; }; then
27331
4f14bcd8 27332 wx_cv_func_statfs=yes
e6cc62c6 27333
4f14bcd8 27334else
e6cc62c6
VS
27335 echo "$as_me: failed program was:" >&5
27336sed 's/^/| /' conftest.$ac_ext >&5
27337
27338
4f14bcd8 27339 wx_cv_func_statfs=no
e6cc62c6 27340
8284b0c5 27341
247f5006 27342fi
e6cc62c6 27343rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27344
e6cc62c6
VS
27345fi
27346echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27347echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27348
27349if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27350 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27351 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27352#define HAVE_STATFS 1
e6cc62c6 27353_ACEOF
4f14bcd8
GD
27354
27355else
e6cc62c6
VS
27356 echo "$as_me:$LINENO: checking for statvfs" >&5
27357echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27358if test "${wx_cv_func_statvfs+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27360else
e6cc62c6
VS
27361 cat >conftest.$ac_ext <<_ACEOF
27362#line $LINENO "configure"
27363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
af15babd 27368
54ab82b3
VZ
27369 #include <stddef.h>
27370 #include <sys/statvfs.h>
e6cc62c6
VS
27371
27372int
27373main ()
27374{
af15babd 27375
54ab82b3 27376 statvfs("/", NULL);
e6cc62c6
VS
27377
27378 ;
27379 return 0;
27380}
27381_ACEOF
27382rm -f conftest.$ac_objext
27383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27384 (eval $ac_compile) 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -s conftest.$ac_objext'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
54ab82b3 27394 wx_cv_func_statvfs=yes
af15babd 27395else
e6cc62c6
VS
27396 echo "$as_me: failed program was:" >&5
27397sed 's/^/| /' conftest.$ac_ext >&5
27398
27399wx_cv_func_statvfs=no
27400
247f5006 27401fi
e6cc62c6 27402rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27403
e6cc62c6
VS
27404fi
27405echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27406echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27407
4f14bcd8 27408 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27409
27410
27411 ac_ext=cc
54ab82b3 27412ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27416
27417
e6cc62c6
VS
27418 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27419echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27420if test "${wx_cv_type_statvfs_t+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27422else
e6cc62c6
VS
27423 cat >conftest.$ac_ext <<_ACEOF
27424#line $LINENO "configure"
27425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
54ab82b3
VZ
27430
27431 #include <sys/statvfs.h>
e6cc62c6
VS
27432
27433int
27434main ()
27435{
54ab82b3
VZ
27436
27437 long l;
27438 statvfs_t fs;
27439 statvfs("/", &fs);
27440 l = fs.f_bsize;
27441 l += fs.f_blocks;
27442 l += fs.f_bavail;
e6cc62c6
VS
27443
27444 ;
27445 return 0;
27446}
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450 (eval $ac_compile) 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -s conftest.$ac_objext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
54ab82b3
VZ
27460 wx_cv_type_statvfs_t=statvfs_t
27461else
e6cc62c6
VS
27462 echo "$as_me: failed program was:" >&5
27463sed 's/^/| /' conftest.$ac_ext >&5
27464
27465
27466 cat >conftest.$ac_ext <<_ACEOF
27467#line $LINENO "configure"
27468/* confdefs.h. */
27469_ACEOF
27470cat confdefs.h >>conftest.$ac_ext
27471cat >>conftest.$ac_ext <<_ACEOF
27472/* end confdefs.h. */
54ab82b3
VZ
27473
27474 #include <sys/statvfs.h>
e6cc62c6
VS
27475
27476int
27477main ()
27478{
54ab82b3
VZ
27479
27480 long l;
65d8ef1e 27481 struct statvfs fs;
54ab82b3
VZ
27482 statvfs("/", &fs);
27483 l = fs.f_bsize;
27484 l += fs.f_blocks;
27485 l += fs.f_bavail;
e6cc62c6
VS
27486
27487 ;
27488 return 0;
27489}
27490_ACEOF
27491rm -f conftest.$ac_objext
27492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27493 (eval $ac_compile) 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } &&
27497 { ac_try='test -s conftest.$ac_objext'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; }; then
54ab82b3
VZ
27503 wx_cv_type_statvfs_t="struct statvfs"
27504else
e6cc62c6
VS
27505 echo "$as_me: failed program was:" >&5
27506sed 's/^/| /' conftest.$ac_ext >&5
27507
27508wx_cv_type_statvfs_t="unknown"
27509
54ab82b3 27510fi
e6cc62c6
VS
27511rm -f conftest.$ac_objext conftest.$ac_ext
27512
27513
54ab82b3 27514fi
e6cc62c6 27515rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27516
e6cc62c6
VS
27517fi
27518echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27519echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27520
27521 ac_ext=c
54ab82b3 27522ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27525ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27526
27527
27528 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27529 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27530#define HAVE_STATVFS 1
e6cc62c6 27531_ACEOF
af15babd 27532
54ab82b3 27533 fi
4f14bcd8 27534 else
54ab82b3 27535 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27536 fi
27537fi
af15babd 27538
54ab82b3 27539if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27540 cat >>confdefs.h <<_ACEOF
54ab82b3 27541#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27542_ACEOF
54ab82b3
VZ
27543
27544else
e6cc62c6
VS
27545 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27546echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27547fi
27548
4f14bcd8 27549if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27550
27551
27552for ac_func in fcntl flock
af15babd 27553do
e6cc62c6
VS
27554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27555echo "$as_me:$LINENO: checking for $ac_func" >&5
27556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27557if eval "test \"\${$as_ac_var+set}\" = set"; then
27558 echo $ECHO_N "(cached) $ECHO_C" >&6
27559else
27560 cat >conftest.$ac_ext <<_ACEOF
27561#line $LINENO "configure"
27562/* confdefs.h. */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h. */
af15babd 27567/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27568 which can conflict with char $ac_func (); below.
27569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27570 <limits.h> exists even on freestanding compilers. */
27571#ifdef __STDC__
27572# include <limits.h>
27573#else
27574# include <assert.h>
27575#endif
af15babd 27576/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27577#ifdef __cplusplus
27578extern "C"
27579{
27580#endif
af15babd 27581/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27582 builtin and then its argument prototype would still apply. */
27583char $ac_func ();
af15babd
VZ
27584/* The GNU C library defines this for functions which it implements
27585 to always fail with ENOSYS. Some functions are actually named
27586 something starting with __ and the normal name is an alias. */
27587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27588choke me
27589#else
e6cc62c6
VS
27590char (*f) () = $ac_func;
27591#endif
27592#ifdef __cplusplus
27593}
af15babd
VZ
27594#endif
27595
e6cc62c6
VS
27596int
27597main ()
27598{
27599return f != $ac_func;
27600 ;
27601 return 0;
27602}
27603_ACEOF
27604rm -f conftest.$ac_objext conftest$ac_exeext
27605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27606 (eval $ac_link) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } &&
27610 { ac_try='test -s conftest$ac_exeext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 eval "$as_ac_var=yes"
27617else
27618 echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621eval "$as_ac_var=no"
27622fi
27623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27624fi
27625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27627if test `eval echo '${'$as_ac_var'}'` = yes; then
27628 cat >>confdefs.h <<_ACEOF
27629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27630_ACEOF
4f14bcd8 27631 break
af15babd
VZ
27632fi
27633done
27634
8284b0c5 27635
4f14bcd8 27636 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27637 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27638echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27639 wxUSE_SNGLINST_CHECKER=no
27640 fi
27641fi
af15babd 27642
e6cc62c6 27643
4f14bcd8 27644for ac_func in timegm
af15babd 27645do
e6cc62c6
VS
27646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27647echo "$as_me:$LINENO: checking for $ac_func" >&5
27648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27649if eval "test \"\${$as_ac_var+set}\" = set"; then
27650 echo $ECHO_N "(cached) $ECHO_C" >&6
27651else
27652 cat >conftest.$ac_ext <<_ACEOF
27653#line $LINENO "configure"
27654/* confdefs.h. */
27655_ACEOF
27656cat confdefs.h >>conftest.$ac_ext
27657cat >>conftest.$ac_ext <<_ACEOF
27658/* end confdefs.h. */
af15babd 27659/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27660 which can conflict with char $ac_func (); below.
27661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27662 <limits.h> exists even on freestanding compilers. */
27663#ifdef __STDC__
27664# include <limits.h>
27665#else
27666# include <assert.h>
27667#endif
af15babd 27668/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27669#ifdef __cplusplus
27670extern "C"
27671{
27672#endif
af15babd 27673/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27674 builtin and then its argument prototype would still apply. */
27675char $ac_func ();
af15babd
VZ
27676/* The GNU C library defines this for functions which it implements
27677 to always fail with ENOSYS. Some functions are actually named
27678 something starting with __ and the normal name is an alias. */
247f5006
VZ
27679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27680choke me
27681#else
e6cc62c6
VS
27682char (*f) () = $ac_func;
27683#endif
27684#ifdef __cplusplus
27685}
247f5006
VZ
27686#endif
27687
e6cc62c6
VS
27688int
27689main ()
27690{
27691return f != $ac_func;
27692 ;
27693 return 0;
27694}
27695_ACEOF
27696rm -f conftest.$ac_objext conftest$ac_exeext
27697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27698 (eval $ac_link) 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -s conftest$ac_exeext'
27703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704 (eval $ac_try) 2>&5
27705 ac_status=$?
27706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707 (exit $ac_status); }; }; then
27708 eval "$as_ac_var=yes"
27709else
27710 echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713eval "$as_ac_var=no"
27714fi
27715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27716fi
27717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27719if test `eval echo '${'$as_ac_var'}'` = yes; then
27720 cat >>confdefs.h <<_ACEOF
27721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27722_ACEOF
703e0a69 27723
af15babd
VZ
27724fi
27725done
27726
8284b0c5 27727
e6cc62c6
VS
27728
27729
4f14bcd8 27730for ac_func in putenv setenv
10f2d63a 27731do
e6cc62c6
VS
27732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27733echo "$as_me:$LINENO: checking for $ac_func" >&5
27734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27735if eval "test \"\${$as_ac_var+set}\" = set"; then
27736 echo $ECHO_N "(cached) $ECHO_C" >&6
27737else
27738 cat >conftest.$ac_ext <<_ACEOF
27739#line $LINENO "configure"
27740/* confdefs.h. */
27741_ACEOF
27742cat confdefs.h >>conftest.$ac_ext
27743cat >>conftest.$ac_ext <<_ACEOF
27744/* end confdefs.h. */
af15babd 27745/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27746 which can conflict with char $ac_func (); below.
27747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27748 <limits.h> exists even on freestanding compilers. */
27749#ifdef __STDC__
27750# include <limits.h>
27751#else
27752# include <assert.h>
27753#endif
af15babd 27754/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27755#ifdef __cplusplus
27756extern "C"
27757{
27758#endif
af15babd 27759/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27760 builtin and then its argument prototype would still apply. */
27761char $ac_func ();
af15babd
VZ
27762/* The GNU C library defines this for functions which it implements
27763 to always fail with ENOSYS. Some functions are actually named
27764 something starting with __ and the normal name is an alias. */
27765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27766choke me
27767#else
e6cc62c6
VS
27768char (*f) () = $ac_func;
27769#endif
27770#ifdef __cplusplus
27771}
af15babd
VZ
27772#endif
27773
e6cc62c6
VS
27774int
27775main ()
27776{
27777return f != $ac_func;
27778 ;
27779 return 0;
27780}
27781_ACEOF
27782rm -f conftest.$ac_objext conftest$ac_exeext
27783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27784 (eval $ac_link) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } &&
27788 { ac_try='test -s conftest$ac_exeext'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
27794 eval "$as_ac_var=yes"
27795else
27796 echo "$as_me: failed program was:" >&5
27797sed 's/^/| /' conftest.$ac_ext >&5
27798
27799eval "$as_ac_var=no"
27800fi
27801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27802fi
27803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27804echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27805if test `eval echo '${'$as_ac_var'}'` = yes; then
27806 cat >>confdefs.h <<_ACEOF
27807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27808_ACEOF
4f14bcd8 27809 break
af15babd 27810fi
af15babd
VZ
27811done
27812
8284b0c5 27813
4f14bcd8
GD
27814HAVE_SOME_SLEEP_FUNC=0
27815if test "$USE_BEOS" = 1; then
e6cc62c6 27816 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27817#define HAVE_SLEEP 1
e6cc62c6 27818_ACEOF
af15babd 27819
4f14bcd8 27820 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27821fi
27822
4f14bcd8 27823if test "$USE_DARWIN" = 1; then
e6cc62c6 27824 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27825#define HAVE_USLEEP 1
e6cc62c6 27826_ACEOF
10f2d63a 27827
4f14bcd8 27828 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27829fi
27830
4f14bcd8
GD
27831if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27832 POSIX4_LINK=
e6cc62c6
VS
27833
27834for ac_func in nanosleep
4f14bcd8 27835do
e6cc62c6
VS
27836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27837echo "$as_me:$LINENO: checking for $ac_func" >&5
27838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27839if eval "test \"\${$as_ac_var+set}\" = set"; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27841else
27842 cat >conftest.$ac_ext <<_ACEOF
27843#line $LINENO "configure"
27844/* confdefs.h. */
27845_ACEOF
27846cat confdefs.h >>conftest.$ac_ext
27847cat >>conftest.$ac_ext <<_ACEOF
27848/* end confdefs.h. */
4f14bcd8 27849/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27850 which can conflict with char $ac_func (); below.
27851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27852 <limits.h> exists even on freestanding compilers. */
27853#ifdef __STDC__
27854# include <limits.h>
27855#else
27856# include <assert.h>
27857#endif
10f2d63a 27858/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27859#ifdef __cplusplus
27860extern "C"
27861{
27862#endif
10f2d63a 27863/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27864 builtin and then its argument prototype would still apply. */
27865char $ac_func ();
4f14bcd8
GD
27866/* The GNU C library defines this for functions which it implements
27867 to always fail with ENOSYS. Some functions are actually named
27868 something starting with __ and the normal name is an alias. */
27869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27870choke me
27871#else
e6cc62c6
VS
27872char (*f) () = $ac_func;
27873#endif
27874#ifdef __cplusplus
27875}
4f14bcd8
GD
27876#endif
27877
e6cc62c6
VS
27878int
27879main ()
27880{
27881return f != $ac_func;
27882 ;
27883 return 0;
27884}
27885_ACEOF
27886rm -f conftest.$ac_objext conftest$ac_exeext
27887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27888 (eval $ac_link) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
27892 { ac_try='test -s conftest$ac_exeext'
27893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894 (eval $ac_try) 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 eval "$as_ac_var=yes"
27899else
27900 echo "$as_me: failed program was:" >&5
27901sed 's/^/| /' conftest.$ac_ext >&5
27902
27903eval "$as_ac_var=no"
27904fi
27905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27906fi
27907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27909if test `eval echo '${'$as_ac_var'}'` = yes; then
27910 cat >>confdefs.h <<_ACEOF
27911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27912_ACEOF
27913 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27914#define HAVE_NANOSLEEP 1
e6cc62c6 27915_ACEOF
4f14bcd8 27916
10f2d63a 27917else
e6cc62c6
VS
27918
27919 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27920echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27921if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27923else
e6cc62c6 27924 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27925LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27926cat >conftest.$ac_ext <<_ACEOF
27927#line $LINENO "configure"
27928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
27933
10f2d63a 27934/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27935#ifdef __cplusplus
27936extern "C"
27937#endif
10f2d63a 27938/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27939 builtin and then its argument prototype would still apply. */
27940char nanosleep ();
27941int
27942main ()
27943{
27944nanosleep ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
27949rm -f conftest.$ac_objext conftest$ac_exeext
27950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27951 (eval $ac_link) 2>&5
27952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } &&
27955 { ac_try='test -s conftest$ac_exeext'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27958 ac_status=$?
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_lib_posix4_nanosleep=yes
27962else
27963 echo "$as_me: failed program was:" >&5
27964sed 's/^/| /' conftest.$ac_ext >&5
27965
27966ac_cv_lib_posix4_nanosleep=no
27967fi
27968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27969LIBS=$ac_check_lib_save_LIBS
27970fi
27971echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27972echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27973if test $ac_cv_lib_posix4_nanosleep = yes; then
27974
27975 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27976#define HAVE_NANOSLEEP 1
e6cc62c6 27977_ACEOF
4f14bcd8 27978
3d63bc3a 27979 POSIX4_LINK=" -lposix4"
e6cc62c6 27980
10f2d63a 27981else
10f2d63a 27982
e6cc62c6
VS
27983
27984for ac_func in usleep
4f14bcd8 27985do
e6cc62c6
VS
27986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987echo "$as_me:$LINENO: checking for $ac_func" >&5
27988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989if eval "test \"\${$as_ac_var+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27991else
27992 cat >conftest.$ac_ext <<_ACEOF
27993#line $LINENO "configure"
27994/* confdefs.h. */
27995_ACEOF
27996cat confdefs.h >>conftest.$ac_ext
27997cat >>conftest.$ac_ext <<_ACEOF
27998/* end confdefs.h. */
4f14bcd8 27999/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28000 which can conflict with char $ac_func (); below.
28001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28002 <limits.h> exists even on freestanding compilers. */
28003#ifdef __STDC__
28004# include <limits.h>
28005#else
28006# include <assert.h>
28007#endif
4f14bcd8 28008/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28009#ifdef __cplusplus
28010extern "C"
28011{
28012#endif
4f14bcd8 28013/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28014 builtin and then its argument prototype would still apply. */
28015char $ac_func ();
4f14bcd8
GD
28016/* The GNU C library defines this for functions which it implements
28017 to always fail with ENOSYS. Some functions are actually named
28018 something starting with __ and the normal name is an alias. */
28019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28020choke me
28021#else
e6cc62c6
VS
28022char (*f) () = $ac_func;
28023#endif
28024#ifdef __cplusplus
28025}
4f14bcd8
GD
28026#endif
28027
e6cc62c6
VS
28028int
28029main ()
28030{
28031return f != $ac_func;
28032 ;
28033 return 0;
28034}
28035_ACEOF
28036rm -f conftest.$ac_objext conftest$ac_exeext
28037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28038 (eval $ac_link) 2>&5
28039 ac_status=$?
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
28042 { ac_try='test -s conftest$ac_exeext'
28043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; }; then
28048 eval "$as_ac_var=yes"
28049else
28050 echo "$as_me: failed program was:" >&5
28051sed 's/^/| /' conftest.$ac_ext >&5
28052
28053eval "$as_ac_var=no"
28054fi
28055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28056fi
28057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28059if test `eval echo '${'$as_ac_var'}'` = yes; then
28060 cat >>confdefs.h <<_ACEOF
28061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28062_ACEOF
28063 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28064#define HAVE_USLEEP 1
e6cc62c6 28065_ACEOF
4f14bcd8 28066
698dcdb6 28067else
e6cc62c6
VS
28068 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28069echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28070
10f2d63a 28071fi
4f14bcd8 28072done
10f2d63a 28073
e6cc62c6
VS
28074
28075
6232543b 28076fi
10f2d63a 28077
e6cc62c6
VS
28078
28079
1e487827 28080fi
4f14bcd8 28081done
703e0a69 28082
10f2d63a
VZ
28083fi
28084
e6cc62c6
VS
28085
28086
4f14bcd8 28087for ac_func in uname gethostname
70846f0a 28088do
e6cc62c6
VS
28089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090echo "$as_me:$LINENO: checking for $ac_func" >&5
28091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092if eval "test \"\${$as_ac_var+set}\" = set"; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095 cat >conftest.$ac_ext <<_ACEOF
28096#line $LINENO "configure"
28097/* confdefs.h. */
28098_ACEOF
28099cat confdefs.h >>conftest.$ac_ext
28100cat >>conftest.$ac_ext <<_ACEOF
28101/* end confdefs.h. */
70846f0a 28102/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28103 which can conflict with char $ac_func (); below.
28104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28105 <limits.h> exists even on freestanding compilers. */
28106#ifdef __STDC__
28107# include <limits.h>
28108#else
28109# include <assert.h>
28110#endif
70846f0a 28111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28112#ifdef __cplusplus
28113extern "C"
28114{
28115#endif
70846f0a 28116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28117 builtin and then its argument prototype would still apply. */
28118char $ac_func ();
70846f0a
VZ
28119/* The GNU C library defines this for functions which it implements
28120 to always fail with ENOSYS. Some functions are actually named
28121 something starting with __ and the normal name is an alias. */
28122#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28123choke me
28124#else
e6cc62c6
VS
28125char (*f) () = $ac_func;
28126#endif
28127#ifdef __cplusplus
28128}
70846f0a
VZ
28129#endif
28130
e6cc62c6
VS
28131int
28132main ()
28133{
28134return f != $ac_func;
28135 ;
28136 return 0;
28137}
28138_ACEOF
28139rm -f conftest.$ac_objext conftest$ac_exeext
28140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28141 (eval $ac_link) 2>&5
28142 ac_status=$?
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); } &&
28145 { ac_try='test -s conftest$ac_exeext'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; }; then
28151 eval "$as_ac_var=yes"
28152else
28153 echo "$as_me: failed program was:" >&5
28154sed 's/^/| /' conftest.$ac_ext >&5
28155
28156eval "$as_ac_var=no"
28157fi
28158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28159fi
28160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28162if test `eval echo '${'$as_ac_var'}'` = yes; then
28163 cat >>confdefs.h <<_ACEOF
28164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28165_ACEOF
4f14bcd8 28166 break
70846f0a
VZ
28167fi
28168done
28169
8284b0c5
MB
28170
28171
e6cc62c6
VS
28172
28173ac_ext=cc
4f14bcd8 28174ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28178
8284b0c5 28179
4f14bcd8
GD
28180
28181for ac_func in strtok_r
10f2d63a 28182do
e6cc62c6
VS
28183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28184echo "$as_me:$LINENO: checking for $ac_func" >&5
28185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28186if eval "test \"\${$as_ac_var+set}\" = set"; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28188else
28189 cat >conftest.$ac_ext <<_ACEOF
28190#line $LINENO "configure"
28191/* confdefs.h. */
28192_ACEOF
28193cat confdefs.h >>conftest.$ac_ext
28194cat >>conftest.$ac_ext <<_ACEOF
28195/* end confdefs.h. */
4f14bcd8 28196/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28197 which can conflict with char $ac_func (); below.
28198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199 <limits.h> exists even on freestanding compilers. */
28200#ifdef __STDC__
28201# include <limits.h>
28202#else
28203# include <assert.h>
28204#endif
4f14bcd8
GD
28205/* Override any gcc2 internal prototype to avoid an error. */
28206#ifdef __cplusplus
28207extern "C"
e6cc62c6 28208{
4f14bcd8
GD
28209#endif
28210/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28211 builtin and then its argument prototype would still apply. */
28212char $ac_func ();
4f14bcd8
GD
28213/* The GNU C library defines this for functions which it implements
28214 to always fail with ENOSYS. Some functions are actually named
28215 something starting with __ and the normal name is an alias. */
28216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28217choke me
28218#else
e6cc62c6
VS
28219char (*f) () = $ac_func;
28220#endif
28221#ifdef __cplusplus
28222}
4f14bcd8
GD
28223#endif
28224
e6cc62c6
VS
28225int
28226main ()
28227{
28228return f != $ac_func;
28229 ;
28230 return 0;
28231}
28232_ACEOF
28233rm -f conftest.$ac_objext conftest$ac_exeext
28234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28235 (eval $ac_link) 2>&5
28236 ac_status=$?
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } &&
28239 { ac_try='test -s conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28242 ac_status=$?
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 eval "$as_ac_var=yes"
28246else
28247 echo "$as_me: failed program was:" >&5
28248sed 's/^/| /' conftest.$ac_ext >&5
28249
28250eval "$as_ac_var=no"
28251fi
28252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28253fi
28254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28256if test `eval echo '${'$as_ac_var'}'` = yes; then
28257 cat >>confdefs.h <<_ACEOF
28258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28259_ACEOF
4f14bcd8 28260
10f2d63a
VZ
28261fi
28262done
28263
8284b0c5 28264
4f14bcd8 28265ac_ext=c
4f14bcd8 28266ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28269ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28270
5c6fa7d2 28271
8284b0c5 28272INET_LINK=
e6cc62c6 28273
4f14bcd8
GD
28274for ac_func in inet_addr
28275do
e6cc62c6
VS
28276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28277echo "$as_me:$LINENO: checking for $ac_func" >&5
28278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28279if eval "test \"\${$as_ac_var+set}\" = set"; then
28280 echo $ECHO_N "(cached) $ECHO_C" >&6
28281else
28282 cat >conftest.$ac_ext <<_ACEOF
28283#line $LINENO "configure"
28284/* confdefs.h. */
28285_ACEOF
28286cat confdefs.h >>conftest.$ac_ext
28287cat >>conftest.$ac_ext <<_ACEOF
28288/* end confdefs.h. */
4f14bcd8 28289/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28290 which can conflict with char $ac_func (); below.
28291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28292 <limits.h> exists even on freestanding compilers. */
28293#ifdef __STDC__
28294# include <limits.h>
28295#else
28296# include <assert.h>
28297#endif
10f2d63a 28298/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28299#ifdef __cplusplus
28300extern "C"
28301{
28302#endif
10f2d63a 28303/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28304 builtin and then its argument prototype would still apply. */
28305char $ac_func ();
4f14bcd8
GD
28306/* The GNU C library defines this for functions which it implements
28307 to always fail with ENOSYS. Some functions are actually named
28308 something starting with __ and the normal name is an alias. */
28309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28310choke me
28311#else
e6cc62c6
VS
28312char (*f) () = $ac_func;
28313#endif
28314#ifdef __cplusplus
28315}
4f14bcd8
GD
28316#endif
28317
e6cc62c6
VS
28318int
28319main ()
28320{
28321return f != $ac_func;
28322 ;
28323 return 0;
28324}
28325_ACEOF
28326rm -f conftest.$ac_objext conftest$ac_exeext
28327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } &&
28332 { ac_try='test -s conftest$ac_exeext'
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; }; then
28338 eval "$as_ac_var=yes"
28339else
28340 echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343eval "$as_ac_var=no"
28344fi
28345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28346fi
28347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28349if test `eval echo '${'$as_ac_var'}'` = yes; then
28350 cat >>confdefs.h <<_ACEOF
28351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28352_ACEOF
28353 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28354#define HAVE_INET_ADDR 1
e6cc62c6 28355_ACEOF
10f2d63a
VZ
28356
28357else
e6cc62c6
VS
28358
28359 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28360echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28361if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28362 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28363else
e6cc62c6 28364 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28365LIBS="-lnsl $LIBS"
e6cc62c6
VS
28366cat >conftest.$ac_ext <<_ACEOF
28367#line $LINENO "configure"
28368/* confdefs.h. */
28369_ACEOF
28370cat confdefs.h >>conftest.$ac_ext
28371cat >>conftest.$ac_ext <<_ACEOF
28372/* end confdefs.h. */
28373
10f2d63a 28374/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28375#ifdef __cplusplus
28376extern "C"
28377#endif
10f2d63a 28378/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28379 builtin and then its argument prototype would still apply. */
28380char inet_addr ();
28381int
28382main ()
28383{
28384inet_addr ();
28385 ;
28386 return 0;
28387}
28388_ACEOF
28389rm -f conftest.$ac_objext conftest$ac_exeext
28390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28391 (eval $ac_link) 2>&5
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -s conftest$ac_exeext'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28398 ac_status=$?
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; }; then
28401 ac_cv_lib_nsl_inet_addr=yes
28402else
28403 echo "$as_me: failed program was:" >&5
28404sed 's/^/| /' conftest.$ac_ext >&5
28405
28406ac_cv_lib_nsl_inet_addr=no
28407fi
28408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28409LIBS=$ac_check_lib_save_LIBS
28410fi
28411echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28412echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28413if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28414 INET_LINK="nsl"
10f2d63a 28415else
e6cc62c6
VS
28416 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28417echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28418if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28420else
e6cc62c6 28421 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28422LIBS="-lresolv $LIBS"
e6cc62c6
VS
28423cat >conftest.$ac_ext <<_ACEOF
28424#line $LINENO "configure"
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430
5c6fa7d2 28431/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28432#ifdef __cplusplus
28433extern "C"
28434#endif
5c6fa7d2 28435/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28436 builtin and then its argument prototype would still apply. */
28437char inet_addr ();
28438int
28439main ()
28440{
28441inet_addr ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
28446rm -f conftest.$ac_objext conftest$ac_exeext
28447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448 (eval $ac_link) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -s conftest$ac_exeext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_lib_resolv_inet_addr=yes
28459else
28460 echo "$as_me: failed program was:" >&5
28461sed 's/^/| /' conftest.$ac_ext >&5
28462
28463ac_cv_lib_resolv_inet_addr=no
28464fi
28465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28466LIBS=$ac_check_lib_save_LIBS
28467fi
28468echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28469echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28470if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28471 INET_LINK="resolv"
698dcdb6 28472else
e6cc62c6
VS
28473 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28474echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28475if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28477else
e6cc62c6 28478 ac_check_lib_save_LIBS=$LIBS
3c011993 28479LIBS="-lsocket $LIBS"
e6cc62c6
VS
28480cat >conftest.$ac_ext <<_ACEOF
28481#line $LINENO "configure"
28482/* confdefs.h. */
28483_ACEOF
28484cat confdefs.h >>conftest.$ac_ext
28485cat >>conftest.$ac_ext <<_ACEOF
28486/* end confdefs.h. */
28487
3c011993 28488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28489#ifdef __cplusplus
28490extern "C"
28491#endif
3c011993 28492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28493 builtin and then its argument prototype would still apply. */
28494char inet_addr ();
28495int
28496main ()
28497{
28498inet_addr ();
28499 ;
28500 return 0;
28501}
28502_ACEOF
28503rm -f conftest.$ac_objext conftest$ac_exeext
28504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28505 (eval $ac_link) 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511 (eval $ac_try) 2>&5
28512 ac_status=$?
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_lib_socket_inet_addr=yes
28516else
28517 echo "$as_me: failed program was:" >&5
28518sed 's/^/| /' conftest.$ac_ext >&5
28519
28520ac_cv_lib_socket_inet_addr=no
28521fi
28522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28523LIBS=$ac_check_lib_save_LIBS
28524fi
28525echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28526echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28527if test $ac_cv_lib_socket_inet_addr = yes; then
28528 INET_LINK="socket"
4f14bcd8 28529
8284b0c5 28530fi
e6cc62c6 28531
698dcdb6 28532
7b4a847f 28533fi
e6cc62c6
VS
28534
28535
a0b9e27f 28536fi
579d8138 28537
e6cc62c6
VS
28538
28539
5c6fa7d2 28540fi
e6cc62c6
VS
28541done
28542
28543
28544
28545for ac_func in inet_aton
28546do
28547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28548echo "$as_me:$LINENO: checking for $ac_func" >&5
28549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28550if eval "test \"\${$as_ac_var+set}\" = set"; then
28551 echo $ECHO_N "(cached) $ECHO_C" >&6
28552else
28553 cat >conftest.$ac_ext <<_ACEOF
28554#line $LINENO "configure"
28555/* confdefs.h. */
28556_ACEOF
28557cat confdefs.h >>conftest.$ac_ext
28558cat >>conftest.$ac_ext <<_ACEOF
28559/* end confdefs.h. */
28560/* System header to define __stub macros and hopefully few prototypes,
28561 which can conflict with char $ac_func (); below.
28562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28563 <limits.h> exists even on freestanding compilers. */
28564#ifdef __STDC__
28565# include <limits.h>
28566#else
28567# include <assert.h>
28568#endif
28569/* Override any gcc2 internal prototype to avoid an error. */
28570#ifdef __cplusplus
28571extern "C"
28572{
28573#endif
28574/* We use char because int might match the return type of a gcc2
28575 builtin and then its argument prototype would still apply. */
28576char $ac_func ();
28577/* The GNU C library defines this for functions which it implements
28578 to always fail with ENOSYS. Some functions are actually named
28579 something starting with __ and the normal name is an alias. */
28580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28581choke me
28582#else
28583char (*f) () = $ac_func;
28584#endif
28585#ifdef __cplusplus
28586}
28587#endif
28588
28589int
28590main ()
28591{
28592return f != $ac_func;
28593 ;
28594 return 0;
28595}
28596_ACEOF
28597rm -f conftest.$ac_objext conftest$ac_exeext
28598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599 (eval $ac_link) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } &&
28603 { ac_try='test -s conftest$ac_exeext'
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 eval "$as_ac_var=yes"
28610else
28611 echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
28614eval "$as_ac_var=no"
28615fi
28616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28617fi
28618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28620if test `eval echo '${'$as_ac_var'}'` = yes; then
28621 cat >>confdefs.h <<_ACEOF
28622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28623_ACEOF
28624 cat >>confdefs.h <<\_ACEOF
28625#define HAVE_INET_ATON 1
28626_ACEOF
28627
28628else
28629
28630 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28631echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28632echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28633if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28635else
28636 ac_check_lib_save_LIBS=$LIBS
28637LIBS="-l$INET_LINK $LIBS"
28638cat >conftest.$ac_ext <<_ACEOF
28639#line $LINENO "configure"
28640/* confdefs.h. */
28641_ACEOF
28642cat confdefs.h >>conftest.$ac_ext
28643cat >>conftest.$ac_ext <<_ACEOF
28644/* end confdefs.h. */
28645
28646/* Override any gcc2 internal prototype to avoid an error. */
28647#ifdef __cplusplus
28648extern "C"
28649#endif
28650/* We use char because int might match the return type of a gcc2
28651 builtin and then its argument prototype would still apply. */
28652char inet_aton ();
28653int
28654main ()
28655{
28656inet_aton ();
28657 ;
28658 return 0;
28659}
28660_ACEOF
28661rm -f conftest.$ac_objext conftest$ac_exeext
28662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28663 (eval $ac_link) 2>&5
28664 ac_status=$?
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } &&
28667 { ac_try='test -s conftest$ac_exeext'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; }; then
28673 eval "$as_ac_Lib=yes"
28674else
28675 echo "$as_me: failed program was:" >&5
28676sed 's/^/| /' conftest.$ac_ext >&5
28677
28678eval "$as_ac_Lib=no"
28679fi
28680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28681LIBS=$ac_check_lib_save_LIBS
28682fi
28683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28684echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28685if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28686 cat >>confdefs.h <<\_ACEOF
28687#define HAVE_INET_ATON 1
28688_ACEOF
52127426 28689
a0b9e27f 28690fi
247f5006 28691
8284b0c5 28692
698dcdb6 28693fi
4f14bcd8
GD
28694done
28695
8284b0c5 28696
e6cc62c6
VS
28697if test "x$INET_LINK" != "x"; then
28698 cat >>confdefs.h <<\_ACEOF
28699#define HAVE_INET_ADDR 1
28700_ACEOF
28701
28702 INET_LINK=" -l$INET_LINK"
28703fi
28704
28705fi
a0b9e27f 28706
a0b9e27f 28707
4f14bcd8 28708
edd891e2
VS
28709EXTRALIBS_ESD=
28710echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28711echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28712if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28713 echo $ECHO_N "(cached) $ECHO_C" >&6
28714else
28715 ac_check_lib_save_LIBS=$LIBS
28716LIBS="-lesd $LIBS"
28717cat >conftest.$ac_ext <<_ACEOF
28718#line $LINENO "configure"
28719/* confdefs.h. */
28720_ACEOF
28721cat confdefs.h >>conftest.$ac_ext
28722cat >>conftest.$ac_ext <<_ACEOF
28723/* end confdefs.h. */
28724
28725/* Override any gcc2 internal prototype to avoid an error. */
28726#ifdef __cplusplus
28727extern "C"
28728#endif
28729/* We use char because int might match the return type of a gcc2
28730 builtin and then its argument prototype would still apply. */
28731char esd_close ();
28732int
28733main ()
28734{
28735esd_close ();
28736 ;
28737 return 0;
28738}
28739_ACEOF
28740rm -f conftest.$ac_objext conftest$ac_exeext
28741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28742 (eval $ac_link) 2>&5
28743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
28746 { ac_try='test -s conftest$ac_exeext'
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 ac_cv_lib_esd_esd_close=yes
28753else
28754 echo "$as_me: failed program was:" >&5
28755sed 's/^/| /' conftest.$ac_ext >&5
28756
28757ac_cv_lib_esd_esd_close=no
28758fi
28759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28760LIBS=$ac_check_lib_save_LIBS
28761fi
28762echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28763echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28764if test $ac_cv_lib_esd_esd_close = yes; then
28765
28766
28767for ac_header in esd.h
28768do
28769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28770if eval "test \"\${$as_ac_Header+set}\" = set"; then
28771 echo "$as_me:$LINENO: checking for $ac_header" >&5
28772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28773if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28774 echo $ECHO_N "(cached) $ECHO_C" >&6
28775fi
edd891e2
VS
28776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28778else
28779 # Is the header compilable?
edd891e2
VS
28780echo "$as_me:$LINENO: checking $ac_header usability" >&5
28781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28782cat >conftest.$ac_ext <<_ACEOF
28783#line $LINENO "configure"
28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
28789$ac_includes_default
edd891e2 28790#include <$ac_header>
e6cc62c6
VS
28791_ACEOF
28792rm -f conftest.$ac_objext
28793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28794 (eval $ac_compile) 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
28798 { ac_try='test -s conftest.$ac_objext'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 ac_header_compiler=yes
28805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
28809ac_header_compiler=no
28810fi
28811rm -f conftest.$ac_objext conftest.$ac_ext
28812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28813echo "${ECHO_T}$ac_header_compiler" >&6
28814
28815# Is the header present?
edd891e2
VS
28816echo "$as_me:$LINENO: checking $ac_header presence" >&5
28817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28818cat >conftest.$ac_ext <<_ACEOF
28819#line $LINENO "configure"
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
edd891e2 28825#include <$ac_header>
e6cc62c6
VS
28826_ACEOF
28827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28829 ac_status=$?
28830 grep -v '^ *+' conftest.er1 >conftest.err
28831 rm -f conftest.er1
28832 cat conftest.err >&5
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); } >/dev/null; then
28835 if test -s conftest.err; then
28836 ac_cpp_err=$ac_c_preproc_warn_flag
28837 else
28838 ac_cpp_err=
28839 fi
a0b9e27f 28840else
e6cc62c6
VS
28841 ac_cpp_err=yes
28842fi
28843if test -z "$ac_cpp_err"; then
28844 ac_header_preproc=yes
28845else
28846 echo "$as_me: failed program was:" >&5
28847sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 ac_header_preproc=no
28850fi
28851rm -f conftest.err conftest.$ac_ext
28852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28853echo "${ECHO_T}$ac_header_preproc" >&6
28854
28855# So? What about this header?
28856case $ac_header_compiler:$ac_header_preproc in
28857 yes:no )
edd891e2
VS
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28862 (
28863 cat <<\_ASBOX
28864## ------------------------------------ ##
28865## Report this to bug-autoconf@gnu.org. ##
28866## ------------------------------------ ##
28867_ASBOX
28868 ) |
28869 sed "s/^/$as_me: WARNING: /" >&2
28870 ;;
28871 no:yes )
edd891e2
VS
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28878 (
28879 cat <<\_ASBOX
28880## ------------------------------------ ##
28881## Report this to bug-autoconf@gnu.org. ##
28882## ------------------------------------ ##
28883_ASBOX
28884 ) |
28885 sed "s/^/$as_me: WARNING: /" >&2
28886 ;;
28887esac
edd891e2
VS
28888echo "$as_me:$LINENO: checking for $ac_header" >&5
28889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28890if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28891 echo $ECHO_N "(cached) $ECHO_C" >&6
28892else
edd891e2 28893 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28894fi
edd891e2
VS
28895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28897
e6cc62c6 28898fi
edd891e2
VS
28899if test `eval echo '${'$as_ac_Header'}'` = yes; then
28900 cat >>confdefs.h <<_ACEOF
28901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28902_ACEOF
e6cc62c6 28903
edd891e2 28904 EXTRALIBS_ESD="-lesd"
4f14bcd8 28905
a0b9e27f 28906fi
247f5006 28907
edd891e2 28908done
8284b0c5 28909
4f14bcd8 28910
6232543b 28911fi
10f2d63a 28912
703e0a69 28913
8284b0c5 28914
e6cc62c6
VS
28915
28916
28917cat >confcache <<\_ACEOF
4f14bcd8
GD
28918# This file is a shell script that caches the results of configure
28919# tests run on this system so they can be shared between configure
e6cc62c6
VS
28920# scripts and configure runs, see configure's option --config-cache.
28921# It is not useful on other systems. If it contains results you don't
28922# want to keep, you may remove or edit it.
4f14bcd8 28923#
e6cc62c6
VS
28924# config.status only pays attention to the cache file if you give it
28925# the --recheck option to rerun configure.
4f14bcd8 28926#
e6cc62c6
VS
28927# `ac_cv_env_foo' variables (set or unset) will be overridden when
28928# loading this file, other *unset* `ac_cv_foo' will be assigned the
28929# following values.
28930
28931_ACEOF
28932
4f14bcd8
GD
28933# The following way of writing the cache mishandles newlines in values,
28934# but we know of no workaround that is simple, portable, and efficient.
28935# So, don't put newlines in cache variables' values.
28936# Ultrix sh set writes to stderr and can't be redirected directly,
28937# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28938{
28939 (set) 2>&1 |
28940 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28941 *ac_space=\ *)
28942 # `set' does not quote correctly, so add quotes (double-quote
28943 # substitution turns \\\\ into \\, and sed turns \\ into \).
28944 sed -n \
28945 "s/'/'\\\\''/g;
28946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28947 ;;
28948 *)
28949 # `set' quotes correctly as required by POSIX, so do not add quotes.
28950 sed -n \
28951 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28952 ;;
28953 esac;
28954} |
28955 sed '
28956 t clear
28957 : clear
28958 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28959 t end
28960 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28961 : end' >>confcache
28962if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28963 if test -w $cache_file; then
e6cc62c6
VS
28964 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28965 cat confcache >$cache_file
f6bcfd97 28966 else
4f14bcd8 28967 echo "not updating unwritable cache $cache_file"
f6bcfd97 28968 fi
4f14bcd8
GD
28969fi
28970rm -f confcache
f6bcfd97 28971
8284b0c5 28972
009fead0 28973CPP_MT_FLAG=
4f14bcd8
GD
28974if test "$TOOLKIT" != "MSW"; then
28975
e6cc62c6 28976
7274f1c7 28977 THREADS_LINK=
009fead0 28978 THREADS_CFLAGS=
7274f1c7
RL
28979
28980 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28981 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28982 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28983echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28984 wxUSE_THREADS="no"
28985 fi
4f14bcd8 28986 fi
4f14bcd8 28987
7274f1c7 28988 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28989
28990
009fead0
VZ
28991 THREAD_OPTS="-pthread"
28992 case "${host}" in
28993 *-*-solaris2* | *-*-sunos4* )
28994 if test "x$GCC" = "xyes"; then
126be6b4 28995 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28996 else
28997 THREAD_OPTS="-mt $THREAD_OPTS"
28998 fi
28999 ;;
29000 *-*-freebsd*)
29001 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29002 ;;
17234b26
MB
29003 *-*-darwin* | *-*-cygwin* )
29004 THREAD_OPTS=""
4101db81 29005 ;;
8f4a9a10 29006 *-*-aix*)
009fead0
VZ
29007 THREAD_OPTS="pthreads"
29008 ;;
4f5a7f74
VZ
29009 *-hp-hpux* )
29010 if test "x$GCC" != "xyes"; then
29011 THREAD_OPTS=""
29012 fi
89e3b3e4
VZ
29013 ;;
29014
29015 *-*-irix* )
29016 if test "x$GCC" = "xyes"; then
29017 THREAD_OPTS=""
29018 fi
29019 ;;
29020
29021 *-*-*UnixWare*)
29022 if test "x$GCC" != "xyes"; then
29023 THREAD_OPTS="-Ethread"
29024 fi
29025 ;;
009fead0 29026 esac
4f14bcd8 29027
02a1dfba 29028 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29029
009fead0
VZ
29030 THREADS_OK=no
29031 for flag in $THREAD_OPTS; do
29032 case $flag in
29033 none)
e6cc62c6
VS
29034 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29035echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29036 ;;
698dcdb6 29037
009fead0 29038 -*)
e6cc62c6
VS
29039 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29040echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29041 THREADS_CFLAGS="$flag"
29042 ;;
698dcdb6 29043
009fead0 29044 *)
e6cc62c6
VS
29045 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29046echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29047 THREADS_LINK="-l$flag"
29048 ;;
29049 esac
10f2d63a 29050
009fead0
VZ
29051 save_LIBS="$LIBS"
29052 save_CFLAGS="$CFLAGS"
29053 LIBS="$THREADS_LINK $LIBS"
04727afd 29054 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29055
e6cc62c6
VS
29056 cat >conftest.$ac_ext <<_ACEOF
29057#line $LINENO "configure"
29058/* confdefs.h. */
29059_ACEOF
29060cat confdefs.h >>conftest.$ac_ext
29061cat >>conftest.$ac_ext <<_ACEOF
29062/* end confdefs.h. */
009fead0 29063#include <pthread.h>
e6cc62c6
VS
29064int
29065main ()
29066{
009fead0 29067pthread_create(0,0,0,0);
e6cc62c6
VS
29068 ;
29069 return 0;
29070}
29071_ACEOF
29072rm -f conftest.$ac_objext conftest$ac_exeext
29073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29074 (eval $ac_link) 2>&5
29075 ac_status=$?
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); } &&
29078 { ac_try='test -s conftest$ac_exeext'
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29081 ac_status=$?
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; }; then
009fead0 29084 THREADS_OK=yes
10f2d63a 29085else
e6cc62c6
VS
29086 echo "$as_me: failed program was:" >&5
29087sed 's/^/| /' conftest.$ac_ext >&5
29088
6232543b 29089fi
e6cc62c6 29090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29091
009fead0
VZ
29092 LIBS="$save_LIBS"
29093 CFLAGS="$save_CFLAGS"
d9b9876f 29094
e6cc62c6
VS
29095 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29096echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29097 if test "x$THREADS_OK" = "xyes"; then
29098 break;
29099 fi
d9b9876f 29100
009fead0
VZ
29101 THREADS_LINK=""
29102 THREADS_CFLAGS=""
29103 done
4f14bcd8 29104
009fead0
VZ
29105 if test "x$THREADS_OK" != "xyes"; then
29106 wxUSE_THREADS=no
e6cc62c6
VS
29107 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29108echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29109 else
db82f09e
VZ
29110 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29111 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29112
e6cc62c6
VS
29113 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29114echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29115 flag=no
29116 case "${host}" in
2b5f62a0
VZ
29117 *-aix*)
29118 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29119 flag="-D_THREAD_SAFE"
29120 ;;
29121 *-freebsd*)
009fead0
VZ
29122 flag="-D_THREAD_SAFE"
29123 ;;
06313569
GD
29124 *-hp-hpux* )
29125 flag="-D_REENTRANT"
4f5a7f74
VZ
29126 if test "x$GCC" != "xyes"; then
29127 flag="$flag -D_RWSTD_MULTI_THREAD"
29128 fi
06313569 29129 ;;
009fead0
VZ
29130 *solaris* | alpha*-osf*)
29131 flag="-D_REENTRANT"
29132 ;;
29133 esac
e6cc62c6
VS
29134 echo "$as_me:$LINENO: result: ${flag}" >&5
29135echo "${ECHO_T}${flag}" >&6
009fead0 29136 if test "x$flag" != xno; then
04727afd 29137 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29138 fi
29139
009fead0 29140 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29141 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29142 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29143 fi
29144 fi
4f14bcd8 29145 fi
4f14bcd8 29146
7274f1c7 29147 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29148
29149for ac_func in thr_setconcurrency
4f14bcd8 29150do
e6cc62c6
VS
29151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29152echo "$as_me:$LINENO: checking for $ac_func" >&5
29153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29154if eval "test \"\${$as_ac_var+set}\" = set"; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29156else
29157 cat >conftest.$ac_ext <<_ACEOF
29158#line $LINENO "configure"
29159/* confdefs.h. */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h. */
4f14bcd8 29164/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29165 which can conflict with char $ac_func (); below.
29166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29167 <limits.h> exists even on freestanding compilers. */
29168#ifdef __STDC__
29169# include <limits.h>
29170#else
29171# include <assert.h>
29172#endif
4f14bcd8 29173/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29174#ifdef __cplusplus
29175extern "C"
29176{
29177#endif
4f14bcd8 29178/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29179 builtin and then its argument prototype would still apply. */
29180char $ac_func ();
4f14bcd8
GD
29181/* The GNU C library defines this for functions which it implements
29182 to always fail with ENOSYS. Some functions are actually named
29183 something starting with __ and the normal name is an alias. */
29184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29185choke me
29186#else
e6cc62c6
VS
29187char (*f) () = $ac_func;
29188#endif
29189#ifdef __cplusplus
29190}
4f14bcd8
GD
29191#endif
29192
e6cc62c6
VS
29193int
29194main ()
29195{
29196return f != $ac_func;
29197 ;
29198 return 0;
29199}
29200_ACEOF
29201rm -f conftest.$ac_objext conftest$ac_exeext
29202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29203 (eval $ac_link) 2>&5
29204 ac_status=$?
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try='test -s conftest$ac_exeext'
29208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29209 (eval $ac_try) 2>&5
29210 ac_status=$?
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); }; }; then
29213 eval "$as_ac_var=yes"
29214else
29215 echo "$as_me: failed program was:" >&5
29216sed 's/^/| /' conftest.$ac_ext >&5
29217
29218eval "$as_ac_var=no"
29219fi
29220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29221fi
29222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29224if test `eval echo '${'$as_ac_var'}'` = yes; then
29225 cat >>confdefs.h <<_ACEOF
29226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29227_ACEOF
698dcdb6 29228
10f2d63a 29229fi
4f14bcd8 29230done
10f2d63a 29231
8284b0c5 29232
e6cc62c6
VS
29233
29234for ac_header in sched.h
4f14bcd8 29235do
e6cc62c6
VS
29236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29237if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238 echo "$as_me:$LINENO: checking for $ac_header" >&5
29239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29240if eval "test \"\${$as_ac_Header+set}\" = set"; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29242fi
29243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29245else
29246 # Is the header compilable?
29247echo "$as_me:$LINENO: checking $ac_header usability" >&5
29248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29249cat >conftest.$ac_ext <<_ACEOF
29250#line $LINENO "configure"
29251/* confdefs.h. */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h. */
29256$ac_includes_default
29257#include <$ac_header>
29258_ACEOF
29259rm -f conftest.$ac_objext
29260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29261 (eval $ac_compile) 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } &&
29265 { ac_try='test -s conftest.$ac_objext'
29266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267 (eval $ac_try) 2>&5
29268 ac_status=$?
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); }; }; then
29271 ac_header_compiler=yes
29272else
29273 echo "$as_me: failed program was:" >&5
29274sed 's/^/| /' conftest.$ac_ext >&5
29275
29276ac_header_compiler=no
29277fi
29278rm -f conftest.$ac_objext conftest.$ac_ext
29279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29280echo "${ECHO_T}$ac_header_compiler" >&6
29281
29282# Is the header present?
29283echo "$as_me:$LINENO: checking $ac_header presence" >&5
29284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29285cat >conftest.$ac_ext <<_ACEOF
29286#line $LINENO "configure"
29287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
29292#include <$ac_header>
29293_ACEOF
29294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29296 ac_status=$?
29297 grep -v '^ *+' conftest.er1 >conftest.err
29298 rm -f conftest.er1
29299 cat conftest.err >&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); } >/dev/null; then
29302 if test -s conftest.err; then
29303 ac_cpp_err=$ac_c_preproc_warn_flag
29304 else
29305 ac_cpp_err=
29306 fi
29307else
29308 ac_cpp_err=yes
29309fi
29310if test -z "$ac_cpp_err"; then
29311 ac_header_preproc=yes
29312else
29313 echo "$as_me: failed program was:" >&5
29314sed 's/^/| /' conftest.$ac_ext >&5
29315
29316 ac_header_preproc=no
29317fi
29318rm -f conftest.err conftest.$ac_ext
29319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29320echo "${ECHO_T}$ac_header_preproc" >&6
29321
29322# So? What about this header?
29323case $ac_header_compiler:$ac_header_preproc in
29324 yes:no )
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29329 (
29330 cat <<\_ASBOX
29331## ------------------------------------ ##
29332## Report this to bug-autoconf@gnu.org. ##
29333## ------------------------------------ ##
29334_ASBOX
29335 ) |
29336 sed "s/^/$as_me: WARNING: /" >&2
29337 ;;
29338 no:yes )
29339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29345 (
29346 cat <<\_ASBOX
29347## ------------------------------------ ##
29348## Report this to bug-autoconf@gnu.org. ##
29349## ------------------------------------ ##
29350_ASBOX
29351 ) |
29352 sed "s/^/$as_me: WARNING: /" >&2
29353 ;;
29354esac
29355echo "$as_me:$LINENO: checking for $ac_header" >&5
29356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29357if eval "test \"\${$as_ac_Header+set}\" = set"; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29359else
29360 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29361fi
e6cc62c6
VS
29362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29364
10f2d63a 29365fi
e6cc62c6
VS
29366if test `eval echo '${'$as_ac_Header'}'` = yes; then
29367 cat >>confdefs.h <<_ACEOF
29368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29369_ACEOF
29370
f6bcfd97 29371fi
e6cc62c6 29372
4f14bcd8 29373done
f6bcfd97 29374
009fead0 29375 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29376 echo "$as_me:$LINENO: checking for sched_yield" >&5
29377echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29378if test "${ac_cv_func_sched_yield+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29380else
29381 cat >conftest.$ac_ext <<_ACEOF
29382#line $LINENO "configure"
29383/* confdefs.h. */
29384_ACEOF
29385cat confdefs.h >>conftest.$ac_ext
29386cat >>conftest.$ac_ext <<_ACEOF
29387/* end confdefs.h. */
009fead0 29388/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29389 which can conflict with char sched_yield (); below.
29390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29391 <limits.h> exists even on freestanding compilers. */
29392#ifdef __STDC__
29393# include <limits.h>
29394#else
29395# include <assert.h>
29396#endif
4f14bcd8 29397/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29398#ifdef __cplusplus
29399extern "C"
29400{
29401#endif
4f14bcd8 29402/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29403 builtin and then its argument prototype would still apply. */
29404char sched_yield ();
009fead0
VZ
29405/* The GNU C library defines this for functions which it implements
29406 to always fail with ENOSYS. Some functions are actually named
29407 something starting with __ and the normal name is an alias. */
29408#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29409choke me
29410#else
e6cc62c6
VS
29411char (*f) () = sched_yield;
29412#endif
29413#ifdef __cplusplus
29414}
009fead0
VZ
29415#endif
29416
e6cc62c6
VS
29417int
29418main ()
29419{
29420return f != sched_yield;
29421 ;
29422 return 0;
29423}
29424_ACEOF
29425rm -f conftest.$ac_objext conftest$ac_exeext
29426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29427 (eval $ac_link) 2>&5
29428 ac_status=$?
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); } &&
29431 { ac_try='test -s conftest$ac_exeext'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29434 ac_status=$?
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29437 ac_cv_func_sched_yield=yes
29438else
29439 echo "$as_me: failed program was:" >&5
29440sed 's/^/| /' conftest.$ac_ext >&5
29441
29442ac_cv_func_sched_yield=no
29443fi
29444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29445fi
29446echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29447echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29448if test $ac_cv_func_sched_yield = yes; then
29449 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29450#define HAVE_SCHED_YIELD 1
e6cc62c6 29451_ACEOF
10f2d63a 29452
4f14bcd8 29453else
009fead0 29454
e6cc62c6
VS
29455 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29456echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29457if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29459else
e6cc62c6 29460 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29461LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29462cat >conftest.$ac_ext <<_ACEOF
29463#line $LINENO "configure"
29464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
29469
4f14bcd8 29470/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29471#ifdef __cplusplus
29472extern "C"
29473#endif
4f14bcd8 29474/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29475 builtin and then its argument prototype would still apply. */
29476char sched_yield ();
29477int
29478main ()
29479{
29480sched_yield ();
29481 ;
29482 return 0;
29483}
29484_ACEOF
29485rm -f conftest.$ac_objext conftest$ac_exeext
29486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29487 (eval $ac_link) 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
29491 { ac_try='test -s conftest$ac_exeext'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_lib_posix4_sched_yield=yes
29498else
29499 echo "$as_me: failed program was:" >&5
29500sed 's/^/| /' conftest.$ac_ext >&5
29501
29502ac_cv_lib_posix4_sched_yield=no
29503fi
29504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29505LIBS=$ac_check_lib_save_LIBS
29506fi
29507echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29508echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29509if test $ac_cv_lib_posix4_sched_yield = yes; then
29510 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29511#define HAVE_SCHED_YIELD 1
e6cc62c6 29512_ACEOF
3d63bc3a 29513 POSIX4_LINK=" -lposix4"
4f14bcd8 29514else
e6cc62c6
VS
29515 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29516echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29517
54276ccf
VZ
29518fi
29519
e6cc62c6
VS
29520
29521
4f14bcd8 29522fi
698dcdb6 29523
009fead0 29524 fi
10f2d63a 29525
7274f1c7 29526 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29527 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29528echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29529if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29531else
29532 cat >conftest.$ac_ext <<_ACEOF
29533#line $LINENO "configure"
29534/* confdefs.h. */
29535_ACEOF
29536cat confdefs.h >>conftest.$ac_ext
29537cat >>conftest.$ac_ext <<_ACEOF
29538/* end confdefs.h. */
009fead0 29539/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29540 which can conflict with char pthread_attr_getschedpolicy (); below.
29541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29542 <limits.h> exists even on freestanding compilers. */
29543#ifdef __STDC__
29544# include <limits.h>
29545#else
29546# include <assert.h>
29547#endif
4f14bcd8 29548/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29549#ifdef __cplusplus
29550extern "C"
29551{
29552#endif
4f14bcd8 29553/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29554 builtin and then its argument prototype would still apply. */
29555char pthread_attr_getschedpolicy ();
009fead0
VZ
29556/* The GNU C library defines this for functions which it implements
29557 to always fail with ENOSYS. Some functions are actually named
29558 something starting with __ and the normal name is an alias. */
29559#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29560choke me
29561#else
e6cc62c6
VS
29562char (*f) () = pthread_attr_getschedpolicy;
29563#endif
29564#ifdef __cplusplus
29565}
009fead0
VZ
29566#endif
29567
e6cc62c6
VS
29568int
29569main ()
29570{
29571return f != pthread_attr_getschedpolicy;
29572 ;
29573 return 0;
29574}
29575_ACEOF
29576rm -f conftest.$ac_objext conftest$ac_exeext
29577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29578 (eval $ac_link) 2>&5
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } &&
29582 { ac_try='test -s conftest$ac_exeext'
29583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584 (eval $ac_try) 2>&5
29585 ac_status=$?
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
29588 ac_cv_func_pthread_attr_getschedpolicy=yes
29589else
29590 echo "$as_me: failed program was:" >&5
29591sed 's/^/| /' conftest.$ac_ext >&5
29592
29593ac_cv_func_pthread_attr_getschedpolicy=no
29594fi
29595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29596fi
29597echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29598echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29599if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29600 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29601echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29602if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29604else
29605 cat >conftest.$ac_ext <<_ACEOF
29606#line $LINENO "configure"
29607/* confdefs.h. */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
29611/* end confdefs.h. */
a0b9e27f 29612/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29613 which can conflict with char pthread_attr_setschedparam (); below.
29614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29615 <limits.h> exists even on freestanding compilers. */
29616#ifdef __STDC__
29617# include <limits.h>
29618#else
29619# include <assert.h>
29620#endif
422107f9 29621/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29622#ifdef __cplusplus
29623extern "C"
29624{
29625#endif
422107f9 29626/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29627 builtin and then its argument prototype would still apply. */
29628char pthread_attr_setschedparam ();
009fead0
VZ
29629/* The GNU C library defines this for functions which it implements
29630 to always fail with ENOSYS. Some functions are actually named
29631 something starting with __ and the normal name is an alias. */
29632#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29633choke me
29634#else
e6cc62c6
VS
29635char (*f) () = pthread_attr_setschedparam;
29636#endif
29637#ifdef __cplusplus
29638}
009fead0
VZ
29639#endif
29640
e6cc62c6
VS
29641int
29642main ()
29643{
29644return f != pthread_attr_setschedparam;
29645 ;
29646 return 0;
29647}
29648_ACEOF
29649rm -f conftest.$ac_objext conftest$ac_exeext
29650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29651 (eval $ac_link) 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } &&
29655 { ac_try='test -s conftest$ac_exeext'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29661 ac_cv_func_pthread_attr_setschedparam=yes
29662else
29663 echo "$as_me: failed program was:" >&5
29664sed 's/^/| /' conftest.$ac_ext >&5
29665
29666ac_cv_func_pthread_attr_setschedparam=no
29667fi
29668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29669fi
29670echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29671echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29672if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29673 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29674echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29675if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29677else
29678 cat >conftest.$ac_ext <<_ACEOF
29679#line $LINENO "configure"
29680/* confdefs.h. */
29681_ACEOF
29682cat confdefs.h >>conftest.$ac_ext
29683cat >>conftest.$ac_ext <<_ACEOF
29684/* end confdefs.h. */
ef33c576 29685/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29686 which can conflict with char sched_get_priority_max (); below.
29687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29688 <limits.h> exists even on freestanding compilers. */
29689#ifdef __STDC__
29690# include <limits.h>
29691#else
29692# include <assert.h>
29693#endif
4f14bcd8 29694/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29695#ifdef __cplusplus
29696extern "C"
29697{
29698#endif
4f14bcd8 29699/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29700 builtin and then its argument prototype would still apply. */
29701char sched_get_priority_max ();
009fead0
VZ
29702/* The GNU C library defines this for functions which it implements
29703 to always fail with ENOSYS. Some functions are actually named
29704 something starting with __ and the normal name is an alias. */
29705#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29706choke me
29707#else
e6cc62c6
VS
29708char (*f) () = sched_get_priority_max;
29709#endif
29710#ifdef __cplusplus
29711}
009fead0
VZ
29712#endif
29713
e6cc62c6
VS
29714int
29715main ()
29716{
29717return f != sched_get_priority_max;
29718 ;
29719 return 0;
29720}
29721_ACEOF
29722rm -f conftest.$ac_objext conftest$ac_exeext
29723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29724 (eval $ac_link) 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } &&
29728 { ac_try='test -s conftest$ac_exeext'
29729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); }; }; then
29734 ac_cv_func_sched_get_priority_max=yes
29735else
29736 echo "$as_me: failed program was:" >&5
29737sed 's/^/| /' conftest.$ac_ext >&5
29738
29739ac_cv_func_sched_get_priority_max=no
29740fi
29741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29742fi
29743echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29744echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29745if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29746 HAVE_PRIOR_FUNCS=1
29747else
e6cc62c6
VS
29748 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29749echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29750if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29751 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29752else
e6cc62c6 29753 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29754LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29755cat >conftest.$ac_ext <<_ACEOF
29756#line $LINENO "configure"
29757/* confdefs.h. */
29758_ACEOF
29759cat confdefs.h >>conftest.$ac_ext
29760cat >>conftest.$ac_ext <<_ACEOF
29761/* end confdefs.h. */
29762
422107f9 29763/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29764#ifdef __cplusplus
29765extern "C"
29766#endif
422107f9 29767/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29768 builtin and then its argument prototype would still apply. */
29769char sched_get_priority_max ();
29770int
29771main ()
29772{
29773sched_get_priority_max ();
29774 ;
29775 return 0;
29776}
29777_ACEOF
29778rm -f conftest.$ac_objext conftest$ac_exeext
29779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780 (eval $ac_link) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 ac_cv_lib_posix4_sched_get_priority_max=yes
29791else
29792 echo "$as_me: failed program was:" >&5
29793sed 's/^/| /' conftest.$ac_ext >&5
29794
29795ac_cv_lib_posix4_sched_get_priority_max=no
29796fi
29797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29798LIBS=$ac_check_lib_save_LIBS
29799fi
29800echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29801echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29802if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29803
7274f1c7
RL
29804 HAVE_PRIOR_FUNCS=1
29805 POSIX4_LINK=" -lposix4"
e6cc62c6 29806
4f14bcd8 29807fi
463abc64 29808
e6cc62c6 29809
328a083c 29810fi
463abc64 29811
e6cc62c6 29812
7b4a847f 29813fi
579d8138 29814
e6cc62c6 29815
5c6fa7d2 29816fi
52127426 29817
8284b0c5 29818
7274f1c7 29819 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29820 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29821#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29822_ACEOF
463abc64 29823
7274f1c7 29824 else
e6cc62c6
VS
29825 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29826echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29827 fi
463abc64 29828
e6cc62c6
VS
29829 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29830echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29831if test "${ac_cv_func_pthread_cancel+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833else
29834 cat >conftest.$ac_ext <<_ACEOF
29835#line $LINENO "configure"
29836/* confdefs.h. */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h. */
009fead0 29841/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29842 which can conflict with char pthread_cancel (); below.
29843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29844 <limits.h> exists even on freestanding compilers. */
29845#ifdef __STDC__
29846# include <limits.h>
29847#else
29848# include <assert.h>
29849#endif
422107f9 29850/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29851#ifdef __cplusplus
29852extern "C"
29853{
29854#endif
422107f9 29855/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29856 builtin and then its argument prototype would still apply. */
29857char pthread_cancel ();
009fead0
VZ
29858/* The GNU C library defines this for functions which it implements
29859 to always fail with ENOSYS. Some functions are actually named
29860 something starting with __ and the normal name is an alias. */
29861#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29862choke me
29863#else
e6cc62c6
VS
29864char (*f) () = pthread_cancel;
29865#endif
29866#ifdef __cplusplus
29867}
009fead0
VZ
29868#endif
29869
e6cc62c6
VS
29870int
29871main ()
29872{
29873return f != pthread_cancel;
29874 ;
29875 return 0;
29876}
29877_ACEOF
29878rm -f conftest.$ac_objext conftest$ac_exeext
29879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29880 (eval $ac_link) 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } &&
29884 { ac_try='test -s conftest$ac_exeext'
29885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_func_pthread_cancel=yes
29891else
29892 echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895ac_cv_func_pthread_cancel=no
29896fi
29897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29898fi
29899echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29900echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29901if test $ac_cv_func_pthread_cancel = yes; then
29902 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29903#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29904_ACEOF
4f14bcd8 29905
698dcdb6 29906else
e6cc62c6
VS
29907 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29908echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29909fi
29910
5c6fa7d2 29911
e6cc62c6
VS
29912 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29913echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29914if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29916else
e6cc62c6
VS
29917
29918 cat >conftest.$ac_ext <<_ACEOF
29919#line $LINENO "configure"
29920/* confdefs.h. */
29921_ACEOF
29922cat confdefs.h >>conftest.$ac_ext
29923cat >>conftest.$ac_ext <<_ACEOF
29924/* end confdefs.h. */
4f14bcd8 29925#include <pthread.h>
e6cc62c6
VS
29926int
29927main ()
29928{
4f14bcd8 29929
7274f1c7
RL
29930 pthread_cleanup_push(NULL, NULL);
29931 pthread_cleanup_pop(0);
e6cc62c6
VS
29932
29933 ;
29934 return 0;
29935}
29936_ACEOF
29937rm -f conftest.$ac_objext
29938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29939 (eval $ac_compile) 2>&5
29940 ac_status=$?
29941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 (exit $ac_status); } &&
29943 { ac_try='test -s conftest.$ac_objext'
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29946 ac_status=$?
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949
7274f1c7 29950 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29951
4f14bcd8 29952else
e6cc62c6
VS
29953 echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956
7274f1c7 29957 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29958
247f5006 29959fi
e6cc62c6 29960rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29961
e6cc62c6
VS
29962fi
29963echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29964echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29965
7274f1c7 29966 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29967 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29968#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29969_ACEOF
c7a2bf27 29970
7274f1c7 29971 fi
4f14bcd8 29972
e6cc62c6
VS
29973
29974 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29975echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29976if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29977 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29978else
e6cc62c6
VS
29979
29980 cat >conftest.$ac_ext <<_ACEOF
29981#line $LINENO "configure"
29982/* confdefs.h. */
29983_ACEOF
29984cat confdefs.h >>conftest.$ac_ext
29985cat >>conftest.$ac_ext <<_ACEOF
29986/* end confdefs.h. */
4f14bcd8 29987#include <pthread.h>
e6cc62c6
VS
29988int
29989main ()
29990{
4f14bcd8 29991
7274f1c7
RL
29992 pthread_mutexattr_t attr;
29993 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29994
29995 ;
29996 return 0;
29997}
29998_ACEOF
29999rm -f conftest.$ac_objext
30000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30001 (eval $ac_compile) 2>&5
30002 ac_status=$?
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
30005 { ac_try='test -s conftest.$ac_objext'
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30008 ac_status=$?
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; }; then
30011
7274f1c7 30012 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30013
3fed1840 30014else
e6cc62c6
VS
30015 echo "$as_me: failed program was:" >&5
30016sed 's/^/| /' conftest.$ac_ext >&5
30017
30018
7274f1c7 30019 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30020
30021
247f5006 30022fi
e6cc62c6 30023rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30024
e6cc62c6
VS
30025fi
30026echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30027echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30028
7274f1c7 30029 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30030 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30031#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30032_ACEOF
4f14bcd8 30033
7274f1c7 30034 else
e6cc62c6
VS
30035 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30036echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30037if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30039else
30040
30041 cat >conftest.$ac_ext <<_ACEOF
30042#line $LINENO "configure"
30043/* confdefs.h. */
30044_ACEOF
30045cat confdefs.h >>conftest.$ac_ext
30046cat >>conftest.$ac_ext <<_ACEOF
30047/* end confdefs.h. */
4f14bcd8 30048#include <pthread.h>
e6cc62c6
VS
30049int
30050main ()
30051{
4f14bcd8 30052
7274f1c7 30053 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30054
30055 ;
30056 return 0;
30057}
30058_ACEOF
30059rm -f conftest.$ac_objext
30060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30061 (eval $ac_compile) 2>&5
30062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
30065 { ac_try='test -s conftest.$ac_objext'
30066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067 (eval $ac_try) 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; }; then
30071
7274f1c7 30072 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30073
698dcdb6 30074else
e6cc62c6
VS
30075 echo "$as_me: failed program was:" >&5
30076sed 's/^/| /' conftest.$ac_ext >&5
30077
30078
7274f1c7 30079 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30080
30081
247f5006 30082fi
e6cc62c6 30083rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30084
e6cc62c6
VS
30085fi
30086echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30087echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30088 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30089 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30090#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30091_ACEOF
3fed1840 30092
7274f1c7 30093 else
e6cc62c6
VS
30094 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30095echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30096 fi
30097 fi
7274f1c7 30098 fi
3fed1840 30099
a0b9e27f
MB
30100else
30101 if test "$wxUSE_THREADS" = "yes" ; then
30102 case "${host}" in
30103 *-*-mingw32* )
e6cc62c6
VS
30104 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30105echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30106if test "${wx_cv_cflags_mthread+set}" = set; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30108else
e6cc62c6 30109
ca8e52b3
VZ
30110 CFLAGS_OLD="$CFLAGS"
30111 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30112 cat >conftest.$ac_ext <<_ACEOF
30113#line $LINENO "configure"
30114/* confdefs.h. */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h. */
30119
30120int
30121main ()
30122{
ca8e52b3 30123
e6cc62c6
VS
30124 ;
30125 return 0;
30126}
30127_ACEOF
30128rm -f conftest.$ac_objext
30129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30130 (eval $ac_compile) 2>&5
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); } &&
30134 { ac_try='test -s conftest.$ac_objext'
30135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136 (eval $ac_try) 2>&5
30137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; }; then
ca8e52b3
VZ
30140 wx_cv_cflags_mthread=yes
30141else
e6cc62c6
VS
30142 echo "$as_me: failed program was:" >&5
30143sed 's/^/| /' conftest.$ac_ext >&5
30144
30145wx_cv_cflags_mthread=no
30146
ca8e52b3 30147fi
e6cc62c6
VS
30148rm -f conftest.$ac_objext conftest.$ac_ext
30149
ca8e52b3 30150
e6cc62c6
VS
30151fi
30152echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30153echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30154
30155 if test "$wx_cv_cflags_mthread" = "yes"; then
30156 CXXFLAGS="$CXXFLAGS -mthreads"
30157 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30158 LDFLAGS="$LDFLAGS -mthreads"
30159 else
30160 CFLAGS="$CFLAGS_OLD"
30161 fi
a0b9e27f
MB
30162 ;;
30163 esac
30164 fi
4f14bcd8
GD
30165fi
30166
30167if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30168 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30169#define wxUSE_THREADS 1
e6cc62c6 30170_ACEOF
7b6058cd 30171
8284b0c5 30172
4f14bcd8 30173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30174else
4f14bcd8 30175 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30176 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30177echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30178 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30179 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30180 echo "$as_me:$LINENO: result: yes" >&5
30181echo "${ECHO_T}yes" >&6
4f14bcd8 30182 else
e6cc62c6
VS
30183 echo "$as_me:$LINENO: result: no" >&5
30184echo "${ECHO_T}no" >&6
4f14bcd8
GD
30185 fi
30186 fi
30187fi
30188
30189if test "$WXGTK20" = 1 ; then
e6cc62c6 30190 cat >>confdefs.h <<_ACEOF
4f14bcd8 30191#define __WXGTK20__ $WXGTK20
e6cc62c6 30192_ACEOF
4f14bcd8
GD
30193
30194 WXGTK12=1
10f2d63a 30195fi
4f14bcd8
GD
30196
30197if test "$WXGTK12" = 1 ; then
e6cc62c6 30198 cat >>confdefs.h <<_ACEOF
4f14bcd8 30199#define __WXGTK12__ $WXGTK12
e6cc62c6 30200_ACEOF
4f14bcd8 30201
10f2d63a 30202fi
698dcdb6 30203
4f14bcd8 30204if test "$WXGTK127" = 1 ; then
e6cc62c6 30205 cat >>confdefs.h <<_ACEOF
4f14bcd8 30206#define __WXGTK127__ $WXGTK127
e6cc62c6 30207_ACEOF
4f14bcd8 30208
698dcdb6 30209fi
10f2d63a 30210
4f14bcd8
GD
30211WXDEBUG=
30212
30213if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30214 WXDEBUG="-g"
30215 wxUSE_OPTIMISE=no
698dcdb6 30216fi
4f14bcd8
GD
30217
30218if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30219 wxUSE_DEBUG_INFO=yes
30220 WXDEBUG="-ggdb"
10f2d63a
VZ
30221fi
30222
4f14bcd8 30223if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30224 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30225#define WXDEBUG 1
e6cc62c6 30226_ACEOF
4f14bcd8
GD
30227
30228 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30229else
4f14bcd8
GD
30230 if test "$wxUSE_GTK" = 1 ; then
30231 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30232 fi
30233fi
30234
30235if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30236 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30237#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30238_ACEOF
4f14bcd8 30239
e6cc62c6 30240 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30241#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30242_ACEOF
4f14bcd8 30243
e6cc62c6 30244 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30245#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30246_ACEOF
4f14bcd8
GD
30247
30248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30249fi
30250
30251if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30252 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30253fi
30254
30255PROFILE=
30256if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30257 PROFILE=" -pg"
10f2d63a
VZ
30258fi
30259
009fead0
VZ
30260CODE_GEN_FLAGS=
30261CODE_GEN_FLAGS_CXX=
88e30f2b 30262if test "$GCC" = "yes" ; then
4f14bcd8
GD
30263 if test "$wxUSE_NO_RTTI" = "yes" ; then
30264 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30265 fi
4f14bcd8
GD
30266 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30267 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30268 fi
30269 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30270 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30271 fi
1d1b75ac 30272
2b5f62a0 30273 case "${host}" in
1d1b75ac
VZ
30274 powerpc*-*-aix* )
30275 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30276 ;;
2b5f62a0
VZ
30277 *-hppa* )
30278 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30279 ;;
1d1b75ac 30280 esac
4f14bcd8
GD
30281fi
30282
af7b5345 30283OPTIMISE=
4f14bcd8 30284if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30285 if test "$GCC" = yes ; then
30286 OPTIMISE="-O0"
30287 fi
4f14bcd8
GD
30288else
30289 if test "$GCC" = yes ; then
30290 OPTIMISE="-O2"
af7b5345
VZ
30291
30292 case "${host}" in
4f14bcd8
GD
30293 i586-*-*|i686-*-* )
30294 OPTIMISE="${OPTIMISE} "
30295 ;;
30296 esac
30297 else
30298 OPTIMISE="-O"
30299 fi
30300fi
30301
8d90d2f2 30302
4f14bcd8 30303if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 30304 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30305#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 30306_ACEOF
4f14bcd8 30307
8284b0c5 30308
4f14bcd8
GD
30309 WXWIN_COMPATIBILITY_2_2="yes"
30310fi
30311
65d8ef1e 30312if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30313 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30314#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30315_ACEOF
4f14bcd8 30316
8d90d2f2
VZ
30317
30318 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30319fi
30320
65d8ef1e 30321if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30322 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30323#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30324_ACEOF
65d8ef1e
VS
30325
30326fi
30327
8284b0c5 30328
10f2d63a 30329if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30330 cat >>confdefs.h <<\_ACEOF
10f2d63a 30331#define wxUSE_GUI 1
e6cc62c6 30332_ACEOF
10f2d63a 30333
8284b0c5 30334
10f2d63a 30335 else
e6cc62c6 30336 cat >>confdefs.h <<\_ACEOF
10f2d63a 30337#define wxUSE_NOGUI 1
e6cc62c6 30338_ACEOF
10f2d63a
VZ
30339
30340fi
30341
8284b0c5 30342
10f2d63a 30343if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30344 cat >>confdefs.h <<\_ACEOF
10f2d63a 30345#define wxUSE_UNIX 1
e6cc62c6 30346_ACEOF
10f2d63a
VZ
30347
30348fi
30349
8284b0c5 30350
df5168c4
MB
30351if test "$wxUSE_STL" = "yes"; then
30352 cat >>confdefs.h <<\_ACEOF
30353#define wxUSE_STL 1
30354_ACEOF
30355
30356fi
30357
10f2d63a 30358if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30359 cat >>confdefs.h <<\_ACEOF
10f2d63a 30360#define wxUSE_APPLE_IEEE 1
e6cc62c6 30361_ACEOF
10f2d63a
VZ
30362
30363fi
30364
1e6feb95 30365if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30366 cat >>confdefs.h <<\_ACEOF
1e6feb95 30367#define wxUSE_TIMER 1
e6cc62c6 30368_ACEOF
1e6feb95
VZ
30369
30370fi
30371
10f2d63a 30372if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30373 cat >>confdefs.h <<\_ACEOF
10f2d63a 30374#define wxUSE_WAVE 1
e6cc62c6 30375_ACEOF
10f2d63a
VZ
30376
30377fi
30378
1e6feb95 30379if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30380 cat >>confdefs.h <<\_ACEOF
1e6feb95 30381#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30382_ACEOF
1e6feb95
VZ
30383
30384fi
30385
30386if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30387 cat >>confdefs.h <<\_ACEOF
1e6feb95 30388#define wxUSE_STOPWATCH 1
e6cc62c6 30389_ACEOF
1e6feb95
VZ
30390
30391fi
30392
30393if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30394 cat >>confdefs.h <<\_ACEOF
1e6feb95 30395#define wxUSE_DATETIME 1
e6cc62c6 30396_ACEOF
1e6feb95
VZ
30397
30398fi
30399
10f2d63a 30400if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30401 cat >>confdefs.h <<\_ACEOF
10f2d63a 30402#define wxUSE_FILE 1
e6cc62c6 30403_ACEOF
10f2d63a
VZ
30404
30405fi
30406
1e6feb95 30407if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30408 cat >>confdefs.h <<\_ACEOF
1e6feb95 30409#define wxUSE_FFILE 1
e6cc62c6 30410_ACEOF
1e6feb95
VZ
30411
30412fi
30413
24528b0c 30414if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30415 cat >>confdefs.h <<\_ACEOF
24528b0c 30416#define wxUSE_FILESYSTEM 1
e6cc62c6 30417_ACEOF
24528b0c
VS
30418
30419fi
30420
10f2d63a 30421if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30422 cat >>confdefs.h <<\_ACEOF
10f2d63a 30423#define wxUSE_FS_ZIP 1
e6cc62c6 30424_ACEOF
10f2d63a
VZ
30425
30426fi
30427
30428if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30429 cat >>confdefs.h <<\_ACEOF
10f2d63a 30430#define wxUSE_ZIPSTREAM 1
e6cc62c6 30431_ACEOF
10f2d63a
VZ
30432
30433fi
30434
eb4efbdc 30435if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30436 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30437#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30438_ACEOF
eb4efbdc
VZ
30439
30440fi
30441
4f3c5f06 30442if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30443 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30444#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30445_ACEOF
4f3c5f06
VZ
30446
30447fi
30448
10f2d63a 30449if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30450 cat >>confdefs.h <<\_ACEOF
10f2d63a 30451#define wxUSE_BUSYINFO 1
e6cc62c6 30452_ACEOF
10f2d63a
VZ
30453
30454fi
30455
30456if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30457 cat >>confdefs.h <<\_ACEOF
10f2d63a 30458#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30459_ACEOF
10f2d63a
VZ
30460
30461fi
30462
a3a584a7 30463if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30464 cat >>confdefs.h <<\_ACEOF
a3a584a7 30465#define wxUSE_TEXTBUFFER 1
e6cc62c6 30466_ACEOF
a3a584a7
VZ
30467
30468fi
30469
10f2d63a 30470if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30471 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30472 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30473echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30474 else
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
10f2d63a 30476#define wxUSE_TEXTFILE 1
e6cc62c6 30477_ACEOF
10f2d63a
VZ
30478
30479 fi
30480fi
30481
30482if test "$wxUSE_CONFIG" = "yes" ; then
30483 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30484 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30485echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30486 else
e6cc62c6 30487 cat >>confdefs.h <<\_ACEOF
10f2d63a 30488#define wxUSE_CONFIG 1
e6cc62c6 30489_ACEOF
10f2d63a
VZ
30490
30491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30492 fi
30493fi
30494
30495if test "$wxUSE_INTL" = "yes" ; then
30496 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30497 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30498echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30499 else
e6cc62c6 30500 cat >>confdefs.h <<\_ACEOF
10f2d63a 30501#define wxUSE_INTL 1
e6cc62c6 30502_ACEOF
10f2d63a
VZ
30503
30504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30505 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30506 fi
30507fi
30508
30509if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30510 cat >>confdefs.h <<\_ACEOF
10f2d63a 30511#define wxUSE_LOG 1
e6cc62c6 30512_ACEOF
10f2d63a 30513
8284b0c5 30514
d73be714 30515 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30516 cat >>confdefs.h <<\_ACEOF
d73be714 30517#define wxUSE_LOGGUI 1
e6cc62c6 30518_ACEOF
d73be714
VZ
30519
30520 fi
30521
30522 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30523 cat >>confdefs.h <<\_ACEOF
d73be714 30524#define wxUSE_LOGWINDOW 1
e6cc62c6 30525_ACEOF
69d27ff7
MB
30526
30527 fi
30528
30529 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30530 cat >>confdefs.h <<\_ACEOF
69d27ff7 30531#define wxUSE_LOG_DIALOG 1
e6cc62c6 30532_ACEOF
d73be714
VZ
30533
30534 fi
10f2d63a
VZ
30535fi
30536
30537if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30538 cat >>confdefs.h <<\_ACEOF
10f2d63a 30539#define wxUSE_LONGLONG 1
e6cc62c6 30540_ACEOF
10f2d63a
VZ
30541
30542fi
30543
e8f65ba6 30544if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30545 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30546#define wxUSE_GEOMETRY 1
e6cc62c6 30547_ACEOF
e8f65ba6
RR
30548
30549fi
30550
10f2d63a 30551if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30552 cat >>confdefs.h <<\_ACEOF
10f2d63a 30553#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30554_ACEOF
10f2d63a 30555
70f7a477 30556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30557fi
30558
30559if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30560 cat >>confdefs.h <<\_ACEOF
10f2d63a 30561#define wxUSE_STREAMS 1
e6cc62c6 30562_ACEOF
10f2d63a
VZ
30563
30564fi
30565
5c6fa7d2 30566
8284b0c5 30567if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30568
30569for ac_func in strptime
83307f33 30570do
e6cc62c6
VS
30571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30572echo "$as_me:$LINENO: checking for $ac_func" >&5
30573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30574if eval "test \"\${$as_ac_var+set}\" = set"; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576else
30577 cat >conftest.$ac_ext <<_ACEOF
30578#line $LINENO "configure"
30579/* confdefs.h. */
30580_ACEOF
30581cat confdefs.h >>conftest.$ac_ext
30582cat >>conftest.$ac_ext <<_ACEOF
30583/* end confdefs.h. */
83307f33 30584/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30585 which can conflict with char $ac_func (); below.
30586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30587 <limits.h> exists even on freestanding compilers. */
30588#ifdef __STDC__
30589# include <limits.h>
30590#else
30591# include <assert.h>
30592#endif
83307f33 30593/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30594#ifdef __cplusplus
30595extern "C"
30596{
30597#endif
83307f33 30598/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30599 builtin and then its argument prototype would still apply. */
30600char $ac_func ();
83307f33
VZ
30601/* The GNU C library defines this for functions which it implements
30602 to always fail with ENOSYS. Some functions are actually named
30603 something starting with __ and the normal name is an alias. */
30604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30605choke me
30606#else
e6cc62c6
VS
30607char (*f) () = $ac_func;
30608#endif
30609#ifdef __cplusplus
30610}
83307f33
VZ
30611#endif
30612
e6cc62c6
VS
30613int
30614main ()
30615{
30616return f != $ac_func;
30617 ;
30618 return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext conftest$ac_exeext
30622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30623 (eval $ac_link) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
30627 { ac_try='test -s conftest$ac_exeext'
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; }; then
30633 eval "$as_ac_var=yes"
30634else
30635 echo "$as_me: failed program was:" >&5
30636sed 's/^/| /' conftest.$ac_ext >&5
30637
30638eval "$as_ac_var=no"
30639fi
30640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30641fi
30642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30644if test `eval echo '${'$as_ac_var'}'` = yes; then
30645 cat >>confdefs.h <<_ACEOF
30646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30647_ACEOF
83307f33 30648
83307f33
VZ
30649fi
30650done
30651
5c6fa7d2 30652
e6cc62c6
VS
30653 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30654echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30655if test "${wx_cv_var_timezone+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30657else
e6cc62c6
VS
30658
30659 cat >conftest.$ac_ext <<_ACEOF
30660#line $LINENO "configure"
30661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
360d6699 30666
b4085ce6 30667 #include <time.h>
e6cc62c6
VS
30668
30669int
30670main ()
30671{
360d6699
VZ
30672
30673 int tz;
4f11a343 30674 tz = timezone;
e6cc62c6
VS
30675
30676 ;
30677 return 0;
30678}
30679_ACEOF
30680rm -f conftest.$ac_objext
30681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30682 (eval $ac_compile) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
30686 { ac_try='test -s conftest.$ac_objext'
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; }; then
30692
4f11a343 30693 wx_cv_var_timezone=timezone
e6cc62c6 30694
360d6699 30695else
e6cc62c6
VS
30696 echo "$as_me: failed program was:" >&5
30697sed 's/^/| /' conftest.$ac_ext >&5
30698
30699
30700 cat >conftest.$ac_ext <<_ACEOF
30701#line $LINENO "configure"
30702/* confdefs.h. */
30703_ACEOF
30704cat confdefs.h >>conftest.$ac_ext
30705cat >>conftest.$ac_ext <<_ACEOF
30706/* end confdefs.h. */
360d6699 30707
b4085ce6 30708 #include <time.h>
e6cc62c6
VS
30709
30710int
30711main ()
30712{
360d6699
VZ
30713
30714 int tz;
30715 tz = _timezone;
e6cc62c6
VS
30716
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext
30722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30723 (eval $ac_compile) 2>&5
30724 ac_status=$?
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
30727 { ac_try='test -s conftest.$ac_objext'
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30733
360d6699 30734 wx_cv_var_timezone=_timezone
e6cc62c6 30735
5357c8e8 30736else
e6cc62c6
VS
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740
30741 cat >conftest.$ac_ext <<_ACEOF
30742#line $LINENO "configure"
30743/* confdefs.h. */
30744_ACEOF
30745cat confdefs.h >>conftest.$ac_ext
30746cat >>conftest.$ac_ext <<_ACEOF
30747/* end confdefs.h. */
5357c8e8 30748
b4085ce6 30749 #include <time.h>
e6cc62c6
VS
30750
30751int
30752main ()
30753{
5357c8e8
VZ
30754
30755 int tz;
4f11a343 30756 tz = __timezone;
e6cc62c6
VS
30757
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext
30763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30764 (eval $ac_compile) 2>&5
30765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
30768 { ac_try='test -s conftest.$ac_objext'
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; }; then
30774
4f11a343 30775 wx_cv_var_timezone=__timezone
e6cc62c6 30776
360d6699 30777else
e6cc62c6
VS
30778 echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
30781
f9bc1684 30782 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30783 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30784echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30785 fi
e6cc62c6
VS
30786
30787
7b4a847f 30788fi
e6cc62c6
VS
30789rm -f conftest.$ac_objext conftest.$ac_ext
30790
30791
5c6fa7d2 30792fi
e6cc62c6
VS
30793rm -f conftest.$ac_objext conftest.$ac_ext
30794
30795
247f5006 30796fi
e6cc62c6 30797rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30798
e6cc62c6
VS
30799
30800fi
30801echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30802echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30803
f9bc1684 30804 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30805 cat >>confdefs.h <<_ACEOF
360d6699 30806#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30807_ACEOF
360d6699 30808
f9bc1684 30809 fi
698dcdb6 30810
e6cc62c6
VS
30811
30812for ac_func in localtime
afc31813 30813do
e6cc62c6
VS
30814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30815echo "$as_me:$LINENO: checking for $ac_func" >&5
30816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30817if eval "test \"\${$as_ac_var+set}\" = set"; then
30818 echo $ECHO_N "(cached) $ECHO_C" >&6
30819else
30820 cat >conftest.$ac_ext <<_ACEOF
30821#line $LINENO "configure"
30822/* confdefs.h. */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h. */
afc31813 30827/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30828 which can conflict with char $ac_func (); below.
30829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30830 <limits.h> exists even on freestanding compilers. */
30831#ifdef __STDC__
30832# include <limits.h>
30833#else
30834# include <assert.h>
30835#endif
afc31813 30836/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30837#ifdef __cplusplus
30838extern "C"
30839{
30840#endif
afc31813 30841/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30842 builtin and then its argument prototype would still apply. */
30843char $ac_func ();
afc31813
VZ
30844/* The GNU C library defines this for functions which it implements
30845 to always fail with ENOSYS. Some functions are actually named
30846 something starting with __ and the normal name is an alias. */
30847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30848choke me
30849#else
e6cc62c6
VS
30850char (*f) () = $ac_func;
30851#endif
30852#ifdef __cplusplus
30853}
afc31813
VZ
30854#endif
30855
e6cc62c6
VS
30856int
30857main ()
30858{
30859return f != $ac_func;
30860 ;
30861 return 0;
30862}
30863_ACEOF
30864rm -f conftest.$ac_objext conftest$ac_exeext
30865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30866 (eval $ac_link) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } &&
30870 { ac_try='test -s conftest$ac_exeext'
30871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872 (eval $ac_try) 2>&5
30873 ac_status=$?
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; }; then
30876 eval "$as_ac_var=yes"
30877else
30878 echo "$as_me: failed program was:" >&5
30879sed 's/^/| /' conftest.$ac_ext >&5
30880
30881eval "$as_ac_var=no"
30882fi
30883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30884fi
30885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30887if test `eval echo '${'$as_ac_var'}'` = yes; then
30888 cat >>confdefs.h <<_ACEOF
30889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30890_ACEOF
afc31813 30891
afc31813
VZ
30892fi
30893done
30894
5c6fa7d2 30895
8284b0c5 30896 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30897 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30898echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30899if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30900 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30901else
e6cc62c6
VS
30902
30903 cat >conftest.$ac_ext <<_ACEOF
30904#line $LINENO "configure"
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
0470b1e6 30910
b4085ce6 30911 #include <time.h>
e6cc62c6
VS
30912
30913int
30914main ()
30915{
0470b1e6
VZ
30916
30917 struct tm tm;
30918 tm.tm_gmtoff++;
e6cc62c6
VS
30919
30920 ;
30921 return 0;
30922}
30923_ACEOF
30924rm -f conftest.$ac_objext
30925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30926 (eval $ac_compile) 2>&5
30927 ac_status=$?
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); } &&
30930 { ac_try='test -s conftest.$ac_objext'
30931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932 (eval $ac_try) 2>&5
30933 ac_status=$?
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); }; }; then
30936
f03a98d8 30937 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30938
0470b1e6 30939else
e6cc62c6
VS
30940 echo "$as_me: failed program was:" >&5
30941sed 's/^/| /' conftest.$ac_ext >&5
30942
30943wx_cv_struct_tm_has_gmtoff=no
30944
247f5006 30945fi
e6cc62c6 30946rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30947
e6cc62c6
VS
30948fi
30949echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30950echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30951 fi
30952
30953 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30954 cat >>confdefs.h <<\_ACEOF
6232543b 30955#define WX_GMTOFF_IN_TM 1
e6cc62c6 30956_ACEOF
0470b1e6 30957
3fcdd07b
VZ
30958 fi
30959
e6cc62c6
VS
30960
30961
30962for ac_func in gettimeofday ftime
3fcdd07b 30963do
e6cc62c6
VS
30964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30965echo "$as_me:$LINENO: checking for $ac_func" >&5
30966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30967if eval "test \"\${$as_ac_var+set}\" = set"; then
30968 echo $ECHO_N "(cached) $ECHO_C" >&6
30969else
30970 cat >conftest.$ac_ext <<_ACEOF
30971#line $LINENO "configure"
30972/* confdefs.h. */
30973_ACEOF
30974cat confdefs.h >>conftest.$ac_ext
30975cat >>conftest.$ac_ext <<_ACEOF
30976/* end confdefs.h. */
3fcdd07b 30977/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30978 which can conflict with char $ac_func (); below.
30979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30980 <limits.h> exists even on freestanding compilers. */
30981#ifdef __STDC__
30982# include <limits.h>
30983#else
30984# include <assert.h>
30985#endif
3fcdd07b 30986/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30987#ifdef __cplusplus
30988extern "C"
30989{
30990#endif
3fcdd07b 30991/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30992 builtin and then its argument prototype would still apply. */
30993char $ac_func ();
3fcdd07b
VZ
30994/* The GNU C library defines this for functions which it implements
30995 to always fail with ENOSYS. Some functions are actually named
30996 something starting with __ and the normal name is an alias. */
30997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30998choke me
30999#else
e6cc62c6
VS
31000char (*f) () = $ac_func;
31001#endif
31002#ifdef __cplusplus
31003}
3fcdd07b
VZ
31004#endif
31005
e6cc62c6
VS
31006int
31007main ()
31008{
31009return f != $ac_func;
31010 ;
31011 return 0;
31012}
31013_ACEOF
31014rm -f conftest.$ac_objext conftest$ac_exeext
31015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31016 (eval $ac_link) 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; }; then
31026 eval "$as_ac_var=yes"
31027else
31028 echo "$as_me: failed program was:" >&5
31029sed 's/^/| /' conftest.$ac_ext >&5
31030
31031eval "$as_ac_var=no"
31032fi
31033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31034fi
31035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31037if test `eval echo '${'$as_ac_var'}'` = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31040_ACEOF
3fcdd07b 31041 break
3fcdd07b
VZ
31042fi
31043done
31044
698dcdb6 31045
8284b0c5 31046 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
31047 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31048echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31049if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31051else
31052
31053
31054
31055 ac_ext=cc
5c6fa7d2 31056ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 31060
8284b0c5 31061
e6cc62c6
VS
31062 cat >conftest.$ac_ext <<_ACEOF
31063#line $LINENO "configure"
31064/* confdefs.h. */
31065_ACEOF
31066cat confdefs.h >>conftest.$ac_ext
31067cat >>conftest.$ac_ext <<_ACEOF
31068/* end confdefs.h. */
afc31813
VZ
31069
31070 #include <sys/time.h>
31071 #include <unistd.h>
e6cc62c6
VS
31072
31073int
31074main ()
31075{
afc31813
VZ
31076
31077 struct timeval tv;
776862b4 31078 gettimeofday(&tv, NULL);
e6cc62c6
VS
31079
31080 ;
31081 return 0;
31082}
31083_ACEOF
31084rm -f conftest.$ac_objext
31085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31086 (eval $ac_compile) 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); } &&
31090 { ac_try='test -s conftest.$ac_objext'
31091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31092 (eval $ac_try) 2>&5
31093 ac_status=$?
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); }; }; then
afc31813 31096 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31097else
e6cc62c6
VS
31098 echo "$as_me: failed program was:" >&5
31099sed 's/^/| /' conftest.$ac_ext >&5
31100
31101cat >conftest.$ac_ext <<_ACEOF
31102#line $LINENO "configure"
31103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
afc31813
VZ
31108
31109 #include <sys/time.h>
31110 #include <unistd.h>
e6cc62c6
VS
31111
31112int
31113main ()
31114{
afc31813
VZ
31115
31116 struct timeval tv;
31117 gettimeofday(&tv);
e6cc62c6
VS
31118
31119 ;
31120 return 0;
31121}
31122_ACEOF
31123rm -f conftest.$ac_objext
31124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31125 (eval $ac_compile) 2>&5
31126 ac_status=$?
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } &&
31129 { ac_try='test -s conftest.$ac_objext'
31130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131 (eval $ac_try) 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
afc31813 31135 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31136else
e6cc62c6
VS
31137 echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
31140
31141 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31142echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31143 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31144
31145
10f2d63a 31146fi
e6cc62c6
VS
31147rm -f conftest.$ac_objext conftest.$ac_ext
31148
10f2d63a 31149fi
e6cc62c6 31150rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31151 ac_ext=c
10f2d63a 31152ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31156
a0b9e27f 31157
e6cc62c6
VS
31158fi
31159echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31160echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31161
afc31813 31162 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31163 cat >>confdefs.h <<\_ACEOF
afc31813 31164#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31165_ACEOF
afc31813
VZ
31166
31167 fi
31168 fi
31169
afc31813
VZ
31170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31171fi
31172
8284b0c5 31173
52127426 31174if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31175 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31176 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31177echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31178 wxUSE_SOCKETS="no"
31179 fi
3879ecda
VZ
31180 if test "$wxUSE_COCOA" = "1"; then
31181 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31182echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31183 wxUSE_SOCKETS="no"
31184 fi
0feee163 31185fi
b089607b 31186
0feee163
VZ
31187if test "$wxUSE_SOCKETS" = "yes"; then
31188 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31189 echo "$as_me:$LINENO: checking for socket" >&5
31190echo $ECHO_N "checking for socket... $ECHO_C" >&6
31191if test "${ac_cv_func_socket+set}" = set; then
31192 echo $ECHO_N "(cached) $ECHO_C" >&6
31193else
31194 cat >conftest.$ac_ext <<_ACEOF
31195#line $LINENO "configure"
31196/* confdefs.h. */
31197_ACEOF
31198cat confdefs.h >>conftest.$ac_ext
31199cat >>conftest.$ac_ext <<_ACEOF
31200/* end confdefs.h. */
c63c7106 31201/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31202 which can conflict with char socket (); below.
31203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31204 <limits.h> exists even on freestanding compilers. */
31205#ifdef __STDC__
31206# include <limits.h>
31207#else
31208# include <assert.h>
31209#endif
c63c7106 31210/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31211#ifdef __cplusplus
31212extern "C"
31213{
31214#endif
c63c7106 31215/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31216 builtin and then its argument prototype would still apply. */
31217char socket ();
c63c7106
VZ
31218/* The GNU C library defines this for functions which it implements
31219 to always fail with ENOSYS. Some functions are actually named
31220 something starting with __ and the normal name is an alias. */
31221#if defined (__stub_socket) || defined (__stub___socket)
31222choke me
31223#else
e6cc62c6
VS
31224char (*f) () = socket;
31225#endif
31226#ifdef __cplusplus
31227}
c63c7106
VZ
31228#endif
31229
e6cc62c6
VS
31230int
31231main ()
31232{
31233return f != socket;
31234 ;
31235 return 0;
31236}
31237_ACEOF
31238rm -f conftest.$ac_objext conftest$ac_exeext
31239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31240 (eval $ac_link) 2>&5
31241 ac_status=$?
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); } &&
31244 { ac_try='test -s conftest$ac_exeext'
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
31250 ac_cv_func_socket=yes
31251else
31252 echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
31255ac_cv_func_socket=no
31256fi
31257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31258fi
31259echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31260echo "${ECHO_T}$ac_cv_func_socket" >&6
31261if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31262 :
31263else
e6cc62c6
VS
31264 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31265echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31266if test "${ac_cv_lib_socket_socket+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31268else
e6cc62c6 31269 ac_check_lib_save_LIBS=$LIBS
c63c7106 31270LIBS="-lsocket $LIBS"
e6cc62c6
VS
31271cat >conftest.$ac_ext <<_ACEOF
31272#line $LINENO "configure"
31273/* confdefs.h. */
31274_ACEOF
31275cat confdefs.h >>conftest.$ac_ext
31276cat >>conftest.$ac_ext <<_ACEOF
31277/* end confdefs.h. */
31278
c63c7106 31279/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31280#ifdef __cplusplus
31281extern "C"
31282#endif
c63c7106 31283/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31284 builtin and then its argument prototype would still apply. */
31285char socket ();
31286int
31287main ()
31288{
31289socket ();
31290 ;
31291 return 0;
31292}
31293_ACEOF
31294rm -f conftest.$ac_objext conftest$ac_exeext
31295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31296 (eval $ac_link) 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); } &&
31300 { ac_try='test -s conftest$ac_exeext'
31301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302 (eval $ac_try) 2>&5
31303 ac_status=$?
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); }; }; then
31306 ac_cv_lib_socket_socket=yes
31307else
31308 echo "$as_me: failed program was:" >&5
31309sed 's/^/| /' conftest.$ac_ext >&5
31310
31311ac_cv_lib_socket_socket=no
31312fi
31313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31314LIBS=$ac_check_lib_save_LIBS
31315fi
31316echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31317echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31318if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31319 if test "$INET_LINK" != " -lsocket"; then
31320 INET_LINK="$INET_LINK -lsocket"
31321 fi
c63c7106 31322else
afc31813 31323
e6cc62c6
VS
31324 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31325echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31326 wxUSE_SOCKETS=no
e6cc62c6
VS
31327
31328
6232543b 31329fi
b089607b 31330
e6cc62c6 31331
1e487827 31332fi
afc31813 31333
3a922bb4 31334 fi
0feee163 31335fi
51a9faba 31336
0feee163
VZ
31337if test "$wxUSE_SOCKETS" = "yes" ; then
31338 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31339 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31340echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31341if test "${wx_cv_type_getsockname3+set}" = set; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31343else
e6cc62c6
VS
31344
31345 cat >conftest.$ac_ext <<_ACEOF
31346#line $LINENO "configure"
31347/* confdefs.h. */
31348_ACEOF
31349cat confdefs.h >>conftest.$ac_ext
31350cat >>conftest.$ac_ext <<_ACEOF
31351/* end confdefs.h. */
51a9faba 31352
3a922bb4
RL
31353 #include <sys/types.h>
31354 #include <sys/socket.h>
e6cc62c6
VS
31355
31356int
31357main ()
31358{
51a9faba 31359
3a922bb4
RL
31360 socklen_t len;
31361 getsockname(0, 0, &len);
e6cc62c6
VS
31362
31363 ;
31364 return 0;
31365}
31366_ACEOF
31367rm -f conftest.$ac_objext
31368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31369 (eval $ac_compile) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } &&
31373 { ac_try='test -s conftest.$ac_objext'
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
51a9faba 31379 wx_cv_type_getsockname3=socklen_t
afc31813 31380else
e6cc62c6
VS
31381 echo "$as_me: failed program was:" >&5
31382sed 's/^/| /' conftest.$ac_ext >&5
31383
31384
9711d31e
GD
31385 CFLAGS_OLD="$CFLAGS"
31386 if test "$GCC" = yes ; then
31387 CFLAGS="$CFLAGS -Werror"
31388 fi
31389
e6cc62c6
VS
31390 cat >conftest.$ac_ext <<_ACEOF
31391#line $LINENO "configure"
31392/* confdefs.h. */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h. */
51a9faba 31397
9711d31e
GD
31398 #include <sys/types.h>
31399 #include <sys/socket.h>
e6cc62c6
VS
31400
31401int
31402main ()
31403{
51a9faba 31404
9711d31e
GD
31405 size_t len;
31406 getsockname(0, 0, &len);
e6cc62c6
VS
31407
31408 ;
31409 return 0;
31410}
31411_ACEOF
31412rm -f conftest.$ac_objext
31413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31414 (eval $ac_compile) 2>&5
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); } &&
31418 { ac_try='test -s conftest.$ac_objext'
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31421 ac_status=$?
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; }; then
51a9faba 31424 wx_cv_type_getsockname3=size_t
afc31813 31425else
e6cc62c6
VS
31426 echo "$as_me: failed program was:" >&5
31427sed 's/^/| /' conftest.$ac_ext >&5
31428
31429cat >conftest.$ac_ext <<_ACEOF
31430#line $LINENO "configure"
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
51a9faba 31436
9711d31e
GD
31437 #include <sys/types.h>
31438 #include <sys/socket.h>
e6cc62c6
VS
31439
31440int
31441main ()
31442{
51a9faba 31443
9711d31e
GD
31444 int len;
31445 getsockname(0, 0, &len);
e6cc62c6
VS
31446
31447 ;
31448 return 0;
31449}
31450_ACEOF
31451rm -f conftest.$ac_objext
31452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31453 (eval $ac_compile) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
31457 { ac_try='test -s conftest.$ac_objext'
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; }; then
51a9faba 31463 wx_cv_type_getsockname3=int
afc31813 31464else
e6cc62c6
VS
31465 echo "$as_me: failed program was:" >&5
31466sed 's/^/| /' conftest.$ac_ext >&5
31467
31468wx_cv_type_getsockname3=unknown
31469
afc31813 31470fi
e6cc62c6
VS
31471rm -f conftest.$ac_objext conftest.$ac_ext
31472
afc31813 31473fi
e6cc62c6 31474rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31475
31476 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31477
31478
247f5006 31479fi
e6cc62c6 31480rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31481
e6cc62c6
VS
31482fi
31483echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31484echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31485
3a922bb4
RL
31486 if test "$wx_cv_type_getsockname3" = "unknown"; then
31487 wxUSE_SOCKETS=no
e6cc62c6
VS
31488 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31489echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31490 else
e6cc62c6 31491 cat >>confdefs.h <<_ACEOF
51a9faba 31492#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31493_ACEOF
51a9faba 31494
3a922bb4 31495 fi
51a9faba
VZ
31496 fi
31497fi
afc31813 31498
51a9faba 31499if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31500 cat >>confdefs.h <<\_ACEOF
afc31813 31501#define wxUSE_SOCKETS 1
e6cc62c6 31502_ACEOF
afc31813 31503
70f7a477 31504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31505fi
31506
3879ecda
VZ
31507if test "$wxUSE_PROTOCOL" = "yes"; then
31508 if test "$wxUSE_SOCKETS" != "yes"; then
31509 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31510echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31511 wxUSE_PROTOCOL=no
31512 fi
31513fi
31514
31515if test "$wxUSE_PROTOCOL" = "yes"; then
31516 cat >>confdefs.h <<\_ACEOF
31517#define wxUSE_PROTOCOL 1
31518_ACEOF
31519
31520
31521 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31522 cat >>confdefs.h <<\_ACEOF
31523#define wxUSE_PROTOCOL_HTTP 1
31524_ACEOF
31525
31526 fi
31527 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31528 cat >>confdefs.h <<\_ACEOF
31529#define wxUSE_PROTOCOL_FTP 1
31530_ACEOF
31531
31532 fi
31533 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31534 cat >>confdefs.h <<\_ACEOF
31535#define wxUSE_PROTOCOL_FILE 1
31536_ACEOF
31537
31538 fi
31539else
31540 if test "$wxUSE_FS_INET" = "yes"; then
31541 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31542echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31543 wxUSE_FS_INET="no"
31544 fi
31545fi
31546
31547if test "$wxUSE_URL" = "yes"; then
31548 if test "$wxUSE_PROTOCOL" != "yes"; then
31549 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31550echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31551 wxUSE_URL=no
31552 fi
31553 if test "$wxUSE_URL" = "yes"; then
31554 cat >>confdefs.h <<\_ACEOF
31555#define wxUSE_URL 1
31556_ACEOF
31557
31558 fi
31559fi
31560
31561if test "$wxUSE_FS_INET" = "yes"; then
31562 cat >>confdefs.h <<\_ACEOF
31563#define wxUSE_FS_INET 1
31564_ACEOF
31565
31566fi
31567
8284b0c5 31568
dc3d889d
VZ
31569if test "$wxUSE_GUI" = "yes"; then
31570
ac0c4cc3 31571 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31572 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31573echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31574 wxUSE_JOYSTICK=no
156b2523
GD
31575 fi
31576
131f235d 31577 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31578 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31579
31580for ac_header in linux/joystick.h
10f2d63a 31581do
e6cc62c6
VS
31582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31583if eval "test \"\${$as_ac_Header+set}\" = set"; then
31584 echo "$as_me:$LINENO: checking for $ac_header" >&5
31585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31586if eval "test \"\${$as_ac_Header+set}\" = set"; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31588fi
31589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31591else
31592 # Is the header compilable?
31593echo "$as_me:$LINENO: checking $ac_header usability" >&5
31594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31595cat >conftest.$ac_ext <<_ACEOF
31596#line $LINENO "configure"
31597/* confdefs.h. */
31598_ACEOF
31599cat confdefs.h >>conftest.$ac_ext
31600cat >>conftest.$ac_ext <<_ACEOF
31601/* end confdefs.h. */
31602$ac_includes_default
31603#include <$ac_header>
31604_ACEOF
31605rm -f conftest.$ac_objext
31606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31607 (eval $ac_compile) 2>&5
31608 ac_status=$?
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } &&
31611 { ac_try='test -s conftest.$ac_objext'
31612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613 (eval $ac_try) 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; }; then
31617 ac_header_compiler=yes
31618else
31619 echo "$as_me: failed program was:" >&5
31620sed 's/^/| /' conftest.$ac_ext >&5
31621
31622ac_header_compiler=no
31623fi
31624rm -f conftest.$ac_objext conftest.$ac_ext
31625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31626echo "${ECHO_T}$ac_header_compiler" >&6
31627
31628# Is the header present?
31629echo "$as_me:$LINENO: checking $ac_header presence" >&5
31630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31631cat >conftest.$ac_ext <<_ACEOF
31632#line $LINENO "configure"
31633/* confdefs.h. */
31634_ACEOF
31635cat confdefs.h >>conftest.$ac_ext
31636cat >>conftest.$ac_ext <<_ACEOF
31637/* end confdefs.h. */
31638#include <$ac_header>
31639_ACEOF
31640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31642 ac_status=$?
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } >/dev/null; then
31648 if test -s conftest.err; then
31649 ac_cpp_err=$ac_c_preproc_warn_flag
31650 else
31651 ac_cpp_err=
31652 fi
31653else
31654 ac_cpp_err=yes
31655fi
31656if test -z "$ac_cpp_err"; then
31657 ac_header_preproc=yes
31658else
31659 echo "$as_me: failed program was:" >&5
31660sed 's/^/| /' conftest.$ac_ext >&5
31661
31662 ac_header_preproc=no
31663fi
31664rm -f conftest.err conftest.$ac_ext
31665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31666echo "${ECHO_T}$ac_header_preproc" >&6
31667
31668# So? What about this header?
31669case $ac_header_compiler:$ac_header_preproc in
31670 yes:no )
31671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31675 (
31676 cat <<\_ASBOX
31677## ------------------------------------ ##
31678## Report this to bug-autoconf@gnu.org. ##
31679## ------------------------------------ ##
31680_ASBOX
31681 ) |
31682 sed "s/^/$as_me: WARNING: /" >&2
31683 ;;
31684 no:yes )
31685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31691 (
31692 cat <<\_ASBOX
31693## ------------------------------------ ##
31694## Report this to bug-autoconf@gnu.org. ##
31695## ------------------------------------ ##
31696_ASBOX
31697 ) |
31698 sed "s/^/$as_me: WARNING: /" >&2
31699 ;;
31700esac
31701echo "$as_me:$LINENO: checking for $ac_header" >&5
31702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31703if eval "test \"\${$as_ac_Header+set}\" = set"; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31705else
31706 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31707fi
e6cc62c6
VS
31708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31710
10f2d63a 31711fi
e6cc62c6
VS
31712if test `eval echo '${'$as_ac_Header'}'` = yes; then
31713 cat >>confdefs.h <<_ACEOF
31714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31715_ACEOF
31716
247f5006 31717fi
e6cc62c6 31718
10f2d63a
VZ
31719done
31720
3a922bb4
RL
31721 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31722 wxUSE_JOYSTICK=no
e6cc62c6
VS
31723 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31724echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31725 fi
31726 fi
31727 fi
b089607b 31728
3a922bb4 31729 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31730 cat >>confdefs.h <<\_ACEOF
10f2d63a 31731#define wxUSE_JOYSTICK 1
e6cc62c6 31732_ACEOF
10f2d63a 31733
3a922bb4
RL
31734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31735 fi
dc3d889d
VZ
31736fi
31737
8284b0c5 31738
b089607b
VZ
31739if test "$TOOLKIT" != "MSW"; then
31740
3a922bb4
RL
31741 HAVE_DL_FUNCS=0
31742 HAVE_SHL_FUNCS=0
0b9ab0bd 31743 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31744 if test "$USE_DARWIN" = 1; then
31745 HAVE_DL_FUNCS=1
31746 else
e6cc62c6
VS
31747
31748for ac_func in dlopen
10f2d63a 31749do
e6cc62c6
VS
31750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31751echo "$as_me:$LINENO: checking for $ac_func" >&5
31752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31753if eval "test \"\${$as_ac_var+set}\" = set"; then
31754 echo $ECHO_N "(cached) $ECHO_C" >&6
31755else
31756 cat >conftest.$ac_ext <<_ACEOF
31757#line $LINENO "configure"
31758/* confdefs.h. */
31759_ACEOF
31760cat confdefs.h >>conftest.$ac_ext
31761cat >>conftest.$ac_ext <<_ACEOF
31762/* end confdefs.h. */
10f2d63a 31763/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31764 which can conflict with char $ac_func (); below.
31765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31766 <limits.h> exists even on freestanding compilers. */
31767#ifdef __STDC__
31768# include <limits.h>
31769#else
31770# include <assert.h>
31771#endif
10f2d63a 31772/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31773#ifdef __cplusplus
31774extern "C"
31775{
31776#endif
10f2d63a 31777/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31778 builtin and then its argument prototype would still apply. */
31779char $ac_func ();
10f2d63a
VZ
31780/* The GNU C library defines this for functions which it implements
31781 to always fail with ENOSYS. Some functions are actually named
31782 something starting with __ and the normal name is an alias. */
31783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31784choke me
31785#else
e6cc62c6
VS
31786char (*f) () = $ac_func;
31787#endif
31788#ifdef __cplusplus
31789}
10f2d63a
VZ
31790#endif
31791
e6cc62c6
VS
31792int
31793main ()
31794{
31795return f != $ac_func;
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext conftest$ac_exeext
31801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31802 (eval $ac_link) 2>&5
31803 ac_status=$?
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } &&
31806 { ac_try='test -s conftest$ac_exeext'
31807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808 (eval $ac_try) 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }; then
31812 eval "$as_ac_var=yes"
31813else
31814 echo "$as_me: failed program was:" >&5
31815sed 's/^/| /' conftest.$ac_ext >&5
31816
31817eval "$as_ac_var=no"
31818fi
31819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31820fi
31821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31823if test `eval echo '${'$as_ac_var'}'` = yes; then
31824 cat >>confdefs.h <<_ACEOF
31825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31826_ACEOF
31827
31828 cat >>confdefs.h <<\_ACEOF
10f2d63a 31829#define HAVE_DLOPEN 1
e6cc62c6 31830_ACEOF
10f2d63a 31831
3a922bb4 31832 HAVE_DL_FUNCS=1
e6cc62c6 31833
10f2d63a 31834else
e6cc62c6
VS
31835
31836 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31837echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31838if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31839 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31840else
e6cc62c6 31841 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31842LIBS="-ldl $LIBS"
e6cc62c6
VS
31843cat >conftest.$ac_ext <<_ACEOF
31844#line $LINENO "configure"
31845/* confdefs.h. */
31846_ACEOF
31847cat confdefs.h >>conftest.$ac_ext
31848cat >>conftest.$ac_ext <<_ACEOF
31849/* end confdefs.h. */
31850
10f2d63a 31851/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31852#ifdef __cplusplus
31853extern "C"
31854#endif
10f2d63a 31855/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31856 builtin and then its argument prototype would still apply. */
31857char dlopen ();
31858int
31859main ()
31860{
31861dlopen ();
31862 ;
31863 return 0;
31864}
31865_ACEOF
31866rm -f conftest.$ac_objext conftest$ac_exeext
31867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31868 (eval $ac_link) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); } &&
31872 { ac_try='test -s conftest$ac_exeext'
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31875 ac_status=$?
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 ac_cv_lib_dl_dlopen=yes
31879else
31880 echo "$as_me: failed program was:" >&5
31881sed 's/^/| /' conftest.$ac_ext >&5
31882
31883ac_cv_lib_dl_dlopen=no
31884fi
31885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31886LIBS=$ac_check_lib_save_LIBS
31887fi
31888echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31889echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31890if test $ac_cv_lib_dl_dlopen = yes; then
31891
31892 cat >>confdefs.h <<\_ACEOF
10f2d63a 31893#define HAVE_DLOPEN 1
e6cc62c6 31894_ACEOF
10f2d63a 31895
3a922bb4 31896 HAVE_DL_FUNCS=1
3d63bc3a 31897 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31898
10f2d63a 31899else
10f2d63a 31900
e6cc62c6
VS
31901
31902for ac_func in shl_load
10f2d63a 31903do
e6cc62c6
VS
31904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31905echo "$as_me:$LINENO: checking for $ac_func" >&5
31906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31907if eval "test \"\${$as_ac_var+set}\" = set"; then
31908 echo $ECHO_N "(cached) $ECHO_C" >&6
31909else
31910 cat >conftest.$ac_ext <<_ACEOF
31911#line $LINENO "configure"
31912/* confdefs.h. */
31913_ACEOF
31914cat confdefs.h >>conftest.$ac_ext
31915cat >>conftest.$ac_ext <<_ACEOF
31916/* end confdefs.h. */
10f2d63a 31917/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31918 which can conflict with char $ac_func (); below.
31919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31920 <limits.h> exists even on freestanding compilers. */
31921#ifdef __STDC__
31922# include <limits.h>
31923#else
31924# include <assert.h>
31925#endif
10f2d63a 31926/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31927#ifdef __cplusplus
31928extern "C"
31929{
31930#endif
10f2d63a 31931/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31932 builtin and then its argument prototype would still apply. */
31933char $ac_func ();
10f2d63a
VZ
31934/* The GNU C library defines this for functions which it implements
31935 to always fail with ENOSYS. Some functions are actually named
31936 something starting with __ and the normal name is an alias. */
31937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31938choke me
31939#else
e6cc62c6
VS
31940char (*f) () = $ac_func;
31941#endif
31942#ifdef __cplusplus
31943}
10f2d63a
VZ
31944#endif
31945
e6cc62c6
VS
31946int
31947main ()
31948{
31949return f != $ac_func;
31950 ;
31951 return 0;
31952}
31953_ACEOF
31954rm -f conftest.$ac_objext conftest$ac_exeext
31955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31956 (eval $ac_link) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } &&
31960 { ac_try='test -s conftest$ac_exeext'
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 eval "$as_ac_var=yes"
31967else
31968 echo "$as_me: failed program was:" >&5
31969sed 's/^/| /' conftest.$ac_ext >&5
31970
31971eval "$as_ac_var=no"
31972fi
31973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31974fi
31975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31977if test `eval echo '${'$as_ac_var'}'` = yes; then
31978 cat >>confdefs.h <<_ACEOF
31979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31980_ACEOF
31981
31982 cat >>confdefs.h <<\_ACEOF
10f2d63a 31983#define HAVE_SHL_LOAD 1
e6cc62c6 31984_ACEOF
10f2d63a 31985
3a922bb4 31986 HAVE_SHL_FUNCS=1
e6cc62c6 31987
10f2d63a 31988else
e6cc62c6
VS
31989
31990 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31991echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31992if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31993 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31994else
e6cc62c6 31995 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31996LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31997cat >conftest.$ac_ext <<_ACEOF
31998#line $LINENO "configure"
31999/* confdefs.h. */
32000_ACEOF
32001cat confdefs.h >>conftest.$ac_ext
32002cat >>conftest.$ac_ext <<_ACEOF
32003/* end confdefs.h. */
32004
8284b0c5 32005/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32006#ifdef __cplusplus
32007extern "C"
32008#endif
f6bcfd97 32009/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32010 builtin and then its argument prototype would still apply. */
32011char dld ();
32012int
32013main ()
32014{
32015dld ();
32016 ;
32017 return 0;
32018}
32019_ACEOF
32020rm -f conftest.$ac_objext conftest$ac_exeext
32021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022 (eval $ac_link) 2>&5
32023 ac_status=$?
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -s conftest$ac_exeext'
32027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028 (eval $ac_try) 2>&5
32029 ac_status=$?
32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031 (exit $ac_status); }; }; then
32032 ac_cv_lib_shl_load_dld=yes
32033else
32034 echo "$as_me: failed program was:" >&5
32035sed 's/^/| /' conftest.$ac_ext >&5
32036
32037ac_cv_lib_shl_load_dld=no
32038fi
32039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32040LIBS=$ac_check_lib_save_LIBS
32041fi
32042echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32043echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32044if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 32045
3a922bb4 32046 HAVE_SHL_FUNCS=1
3d63bc3a 32047 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 32048
f6bcfd97
BP
32049fi
32050
e6cc62c6 32051
10f2d63a
VZ
32052fi
32053done
32054
e6cc62c6 32055
10f2d63a
VZ
32056fi
32057
e6cc62c6 32058
10f2d63a
VZ
32059fi
32060done
32061
5c6fa7d2 32062
8284b0c5 32063 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32064
32065for ac_func in dlerror
f6bcfd97 32066do
e6cc62c6
VS
32067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32068echo "$as_me:$LINENO: checking for $ac_func" >&5
32069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32070if eval "test \"\${$as_ac_var+set}\" = set"; then
32071 echo $ECHO_N "(cached) $ECHO_C" >&6
32072else
32073 cat >conftest.$ac_ext <<_ACEOF
32074#line $LINENO "configure"
32075/* confdefs.h. */
32076_ACEOF
32077cat confdefs.h >>conftest.$ac_ext
32078cat >>conftest.$ac_ext <<_ACEOF
32079/* end confdefs.h. */
f6bcfd97 32080/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32081 which can conflict with char $ac_func (); below.
32082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32083 <limits.h> exists even on freestanding compilers. */
32084#ifdef __STDC__
32085# include <limits.h>
32086#else
32087# include <assert.h>
32088#endif
f6bcfd97 32089/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32090#ifdef __cplusplus
32091extern "C"
32092{
32093#endif
f6bcfd97 32094/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32095 builtin and then its argument prototype would still apply. */
32096char $ac_func ();
f6bcfd97
BP
32097/* The GNU C library defines this for functions which it implements
32098 to always fail with ENOSYS. Some functions are actually named
32099 something starting with __ and the normal name is an alias. */
32100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32101choke me
32102#else
e6cc62c6
VS
32103char (*f) () = $ac_func;
32104#endif
32105#ifdef __cplusplus
32106}
f6bcfd97
BP
32107#endif
32108
e6cc62c6
VS
32109int
32110main ()
32111{
32112return f != $ac_func;
32113 ;
32114 return 0;
32115}
32116_ACEOF
32117rm -f conftest.$ac_objext conftest$ac_exeext
32118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32119 (eval $ac_link) 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
32123 { ac_try='test -s conftest$ac_exeext'
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 eval "$as_ac_var=yes"
32130else
32131 echo "$as_me: failed program was:" >&5
32132sed 's/^/| /' conftest.$ac_ext >&5
32133
32134eval "$as_ac_var=no"
32135fi
32136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32137fi
32138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32140if test `eval echo '${'$as_ac_var'}'` = yes; then
32141 cat >>confdefs.h <<_ACEOF
32142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32143_ACEOF
32144 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32145#define HAVE_DLERROR 1
e6cc62c6 32146_ACEOF
f6bcfd97
BP
32147
32148else
e6cc62c6
VS
32149 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32150echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32151if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32152 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32153else
e6cc62c6 32154 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32155LIBS="-ldl $LIBS"
e6cc62c6
VS
32156cat >conftest.$ac_ext <<_ACEOF
32157#line $LINENO "configure"
32158/* confdefs.h. */
32159_ACEOF
32160cat confdefs.h >>conftest.$ac_ext
32161cat >>conftest.$ac_ext <<_ACEOF
32162/* end confdefs.h. */
32163
f6bcfd97 32164/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32165#ifdef __cplusplus
32166extern "C"
32167#endif
f6bcfd97 32168/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32169 builtin and then its argument prototype would still apply. */
32170char dlerror ();
32171int
32172main ()
32173{
32174dlerror ();
32175 ;
32176 return 0;
32177}
32178_ACEOF
32179rm -f conftest.$ac_objext conftest$ac_exeext
32180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32181 (eval $ac_link) 2>&5
32182 ac_status=$?
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); } &&
32185 { ac_try='test -s conftest$ac_exeext'
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; }; then
32191 ac_cv_lib_dl_dlerror=yes
32192else
32193 echo "$as_me: failed program was:" >&5
32194sed 's/^/| /' conftest.$ac_ext >&5
32195
32196ac_cv_lib_dl_dlerror=no
32197fi
32198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32199LIBS=$ac_check_lib_save_LIBS
32200fi
32201echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32202echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32203if test $ac_cv_lib_dl_dlerror = yes; then
32204 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32205#define HAVE_DLERROR 1
e6cc62c6 32206_ACEOF
f6bcfd97 32207
f6bcfd97
BP
32208fi
32209
32210fi
32211done
32212
3a922bb4
RL
32213 fi
32214 fi
f6bcfd97 32215
3a922bb4
RL
32216 if test "$HAVE_DL_FUNCS" = 0; then
32217 if test "$HAVE_SHL_FUNCS" = 0; then
32218 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32219 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32220echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32221 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32222 wxUSE_DYNLIB_CLASS=no
32223 else
e6cc62c6
VS
32224 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32225echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32226 fi
32227 fi
10f2d63a
VZ
32228 fi
32229 fi
32230fi
32231
0b9ab0bd 32232if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32233 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32234#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32235_ACEOF
0b9ab0bd 32236
1948bb32
VS
32237fi
32238if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32239 cat >>confdefs.h <<\_ACEOF
10f2d63a 32240#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32241_ACEOF
10f2d63a
VZ
32242
32243fi
32244
8284b0c5 32245
1e6feb95 32246if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32247 cat >>confdefs.h <<\_ACEOF
1e6feb95 32248#define wxUSE_FONTMAP 1
e6cc62c6 32249_ACEOF
1e6feb95
VZ
32250
32251fi
32252
10f2d63a 32253if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32254 cat >>confdefs.h <<\_ACEOF
10f2d63a 32255#define wxUSE_UNICODE 1
e6cc62c6 32256_ACEOF
10f2d63a 32257
8284b0c5 32258
eb854003 32259 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32260 wxUSE_UNICODE_MSLU=no
32261 fi
a72a4bfa 32262
eb854003 32263 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32264 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32265echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32266if test "${ac_cv_lib_unicows_main+set}" = set; then
32267 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32268else
e6cc62c6 32269 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32270LIBS="-lunicows $LIBS"
e6cc62c6
VS
32271cat >conftest.$ac_ext <<_ACEOF
32272#line $LINENO "configure"
32273/* confdefs.h. */
32274_ACEOF
32275cat confdefs.h >>conftest.$ac_ext
32276cat >>conftest.$ac_ext <<_ACEOF
32277/* end confdefs.h. */
a72a4bfa 32278
8284b0c5 32279
e6cc62c6
VS
32280int
32281main ()
32282{
32283main ();
32284 ;
32285 return 0;
32286}
32287_ACEOF
32288rm -f conftest.$ac_objext conftest$ac_exeext
32289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32290 (eval $ac_link) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
32294 { ac_try='test -s conftest$ac_exeext'
32295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32296 (eval $ac_try) 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32300 ac_cv_lib_unicows_main=yes
32301else
32302 echo "$as_me: failed program was:" >&5
32303sed 's/^/| /' conftest.$ac_ext >&5
32304
32305ac_cv_lib_unicows_main=no
32306fi
32307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32308LIBS=$ac_check_lib_save_LIBS
32309fi
32310echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32311echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32312if test $ac_cv_lib_unicows_main = yes; then
32313
32314 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32315#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32316_ACEOF
32317
a72a4bfa 32318
a72a4bfa 32319else
a72a4bfa 32320
e6cc62c6
VS
32321 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32322 Applications will only run on Windows NT/2000/XP!" >&5
32323echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32324 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32325 wxUSE_UNICODE_MSLU=no
e6cc62c6 32326
a72a4bfa
VS
32327fi
32328
32329 fi
10f2d63a
VZ
32330fi
32331
10f2d63a 32332if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32333 cat >>confdefs.h <<\_ACEOF
10f2d63a 32334#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32335_ACEOF
10f2d63a
VZ
32336
32337fi
32338
8284b0c5 32339
10f2d63a 32340if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32341 cat >>confdefs.h <<\_ACEOF
10f2d63a 32342#define wxUSE_POSTSCRIPT 1
e6cc62c6 32343_ACEOF
10f2d63a
VZ
32344
32345fi
32346
e6cc62c6 32347cat >>confdefs.h <<\_ACEOF
10f2d63a 32348#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32349_ACEOF
10f2d63a 32350
8284b0c5 32351
e6cc62c6 32352cat >>confdefs.h <<\_ACEOF
10f2d63a 32353#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32354_ACEOF
10f2d63a 32355
8284b0c5
MB
32356
32357
10f2d63a 32358if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32359 cat >>confdefs.h <<\_ACEOF
10f2d63a 32360#define wxUSE_CONSTRAINTS 1
e6cc62c6 32361_ACEOF
10f2d63a
VZ
32362
32363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32364fi
32365
3879ecda 32366if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32367 cat >>confdefs.h <<\_ACEOF
10f2d63a 32368#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32369_ACEOF
10f2d63a 32370
1772d20c 32371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32372fi
32373
32374if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32375 cat >>confdefs.h <<\_ACEOF
10f2d63a 32376#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32377_ACEOF
10f2d63a
VZ
32378
32379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32380 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32382 fi
32383fi
32384
32385if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32386 cat >>confdefs.h <<\_ACEOF
10f2d63a 32387#define wxUSE_HELP 1
e6cc62c6 32388_ACEOF
10f2d63a
VZ
32389
32390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32391
77e13408 32392 if test "$wxUSE_MSW" = 1; then
031d8228 32393 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32394 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32395#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32396_ACEOF
29fd3c0c 32397
3e44f09d 32398 fi
3379ed37 32399 fi
031d8228
VS
32400
32401 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32402 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32403 cat >>confdefs.h <<\_ACEOF
031d8228 32404#define wxUSE_WXHTML_HELP 1
e6cc62c6 32405_ACEOF
031d8228
VS
32406
32407 else
e6cc62c6
VS
32408 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32409echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32410 wxUSE_WXHTML_HELP=no
32411 fi
32412 fi
10f2d63a
VZ
32413fi
32414
32415if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32416 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32417 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32418echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32419 else
e6cc62c6 32420 cat >>confdefs.h <<\_ACEOF
10f2d63a 32421#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32422_ACEOF
10f2d63a
VZ
32423
32424 fi
32425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32426fi
32427
e6cc62c6
VS
32428if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32429 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32430echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32431 { (exit 1); exit 1; }; }
32432fi
32433
32434
32435if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32436 -o "$wxUSE_CLIPBOARD" = "yes" \
32437 -o "$wxUSE_OLE" = "yes" \
32438 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32439
32440for ac_header in ole2.h
32441do
32442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32443if eval "test \"\${$as_ac_Header+set}\" = set"; then
32444 echo "$as_me:$LINENO: checking for $ac_header" >&5
32445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32446if eval "test \"\${$as_ac_Header+set}\" = set"; then
32447 echo $ECHO_N "(cached) $ECHO_C" >&6
32448fi
32449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32451else
32452 # Is the header compilable?
32453echo "$as_me:$LINENO: checking $ac_header usability" >&5
32454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32455cat >conftest.$ac_ext <<_ACEOF
32456#line $LINENO "configure"
32457/* confdefs.h. */
32458_ACEOF
32459cat confdefs.h >>conftest.$ac_ext
32460cat >>conftest.$ac_ext <<_ACEOF
32461/* end confdefs.h. */
32462$ac_includes_default
32463#include <$ac_header>
32464_ACEOF
32465rm -f conftest.$ac_objext
32466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32467 (eval $ac_compile) 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } &&
32471 { ac_try='test -s conftest.$ac_objext'
32472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32473 (eval $ac_try) 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
32477 ac_header_compiler=yes
32478else
32479 echo "$as_me: failed program was:" >&5
32480sed 's/^/| /' conftest.$ac_ext >&5
32481
32482ac_header_compiler=no
32483fi
32484rm -f conftest.$ac_objext conftest.$ac_ext
32485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32486echo "${ECHO_T}$ac_header_compiler" >&6
32487
32488# Is the header present?
32489echo "$as_me:$LINENO: checking $ac_header presence" >&5
32490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32491cat >conftest.$ac_ext <<_ACEOF
32492#line $LINENO "configure"
32493/* confdefs.h. */
32494_ACEOF
32495cat confdefs.h >>conftest.$ac_ext
32496cat >>conftest.$ac_ext <<_ACEOF
32497/* end confdefs.h. */
32498#include <$ac_header>
32499_ACEOF
32500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32502 ac_status=$?
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } >/dev/null; then
32508 if test -s conftest.err; then
32509 ac_cpp_err=$ac_c_preproc_warn_flag
32510 else
32511 ac_cpp_err=
32512 fi
32513else
32514 ac_cpp_err=yes
32515fi
32516if test -z "$ac_cpp_err"; then
32517 ac_header_preproc=yes
32518else
32519 echo "$as_me: failed program was:" >&5
32520sed 's/^/| /' conftest.$ac_ext >&5
32521
32522 ac_header_preproc=no
32523fi
32524rm -f conftest.err conftest.$ac_ext
32525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32526echo "${ECHO_T}$ac_header_preproc" >&6
32527
32528# So? What about this header?
32529case $ac_header_compiler:$ac_header_preproc in
32530 yes:no )
32531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32535 (
32536 cat <<\_ASBOX
32537## ------------------------------------ ##
32538## Report this to bug-autoconf@gnu.org. ##
32539## ------------------------------------ ##
32540_ASBOX
32541 ) |
32542 sed "s/^/$as_me: WARNING: /" >&2
32543 ;;
32544 no:yes )
32545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32551 (
32552 cat <<\_ASBOX
32553## ------------------------------------ ##
32554## Report this to bug-autoconf@gnu.org. ##
32555## ------------------------------------ ##
32556_ASBOX
32557 ) |
32558 sed "s/^/$as_me: WARNING: /" >&2
32559 ;;
32560esac
32561echo "$as_me:$LINENO: checking for $ac_header" >&5
32562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32563if eval "test \"\${$as_ac_Header+set}\" = set"; then
32564 echo $ECHO_N "(cached) $ECHO_C" >&6
32565else
32566 eval "$as_ac_Header=$ac_header_preproc"
32567fi
32568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32570
10f2d63a 32571fi
e6cc62c6
VS
32572if test `eval echo '${'$as_ac_Header'}'` = yes; then
32573 cat >>confdefs.h <<_ACEOF
32574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32575_ACEOF
10f2d63a 32576
10f2d63a 32577fi
e6cc62c6 32578
10f2d63a
VZ
32579done
32580
8284b0c5 32581
2b9bdf71
VZ
32582 if test "$ac_cv_header_ole2_h" = "yes" ; then
32583 if test "$GCC" = yes ; then
8284b0c5
MB
32584
32585
e6cc62c6
VS
32586 ac_ext=cc
32587ac_cpp='$CXXCPP $CPPFLAGS'
32588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32591
32592
32593 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32594echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32595 cat >conftest.$ac_ext <<_ACEOF
32596#line $LINENO "configure"
32597/* confdefs.h. */
32598_ACEOF
32599cat confdefs.h >>conftest.$ac_ext
32600cat >>conftest.$ac_ext <<_ACEOF
32601/* end confdefs.h. */
8284b0c5
MB
32602#include <windows.h>
32603 #include <ole2.h>
e6cc62c6
VS
32604int
32605main ()
32606{
8284b0c5 32607
e6cc62c6
VS
32608 ;
32609 return 0;
32610}
32611_ACEOF
32612rm -f conftest.$ac_objext
32613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32614 (eval $ac_compile) 2>&5
32615 ac_status=$?
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } &&
32618 { ac_try='test -s conftest.$ac_objext'
32619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620 (eval $ac_try) 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 echo "$as_me:$LINENO: result: no" >&5
32625echo "${ECHO_T}no" >&6
32626else
32627 echo "$as_me: failed program was:" >&5
32628sed 's/^/| /' conftest.$ac_ext >&5
32629
32630echo "$as_me:$LINENO: result: yes" >&5
32631echo "${ECHO_T}yes" >&6
8284b0c5
MB
32632 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32633fi
e6cc62c6 32634rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32635 ac_ext=c
8284b0c5 32636ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32639ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32640
2b9bdf71 32641 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32642 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32643 cat >>confdefs.h <<\_ACEOF
4f11a343 32644#define wxUSE_OLE 1
e6cc62c6 32645_ACEOF
4f11a343 32646
8284b0c5 32647
2b9bdf71
VZ
32648 fi
32649
e6cc62c6 32650 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32651#define wxUSE_DATAOBJ 1
e6cc62c6 32652_ACEOF
2b9bdf71
VZ
32653
32654 else
e6cc62c6
VS
32655 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32656echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32657
32658 wxUSE_CLIPBOARD=no
32659 wxUSE_DRAG_AND_DROP=no
32660 wxUSE_DATAOBJ=no
3bce6687
JS
32661 wxUSE_OLE=no
32662 fi
32663
32664 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32665 cat >>confdefs.h <<\_ACEOF
3bce6687 32666#define wxUSE_METAFILE 1
e6cc62c6 32667_ACEOF
3bce6687
JS
32668
32669
e6cc62c6 32670 cat >>confdefs.h <<\_ACEOF
3bce6687 32671#define wxUSE_ENH_METAFILE 1
e6cc62c6 32672_ACEOF
3bce6687
JS
32673
32674 fi
32675fi
32676
2b9bdf71
VZ
32677if test "$wxUSE_IPC" = "yes"; then
32678 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32679 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32680echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32681 fi
32682
e6cc62c6 32683 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32684#define wxUSE_IPC 1
e6cc62c6 32685_ACEOF
2b9bdf71
VZ
32686
32687fi
32688
32689if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32690 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32691 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32692echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32693 wxUSE_CLIPBOARD=no
32694 fi
32695
32696 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32697 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32698#define wxUSE_CLIPBOARD 1
e6cc62c6 32699_ACEOF
2b9bdf71 32700
8284b0c5 32701
e6cc62c6 32702 cat >>confdefs.h <<\_ACEOF
673f4220 32703#define wxUSE_DATAOBJ 1
e6cc62c6 32704_ACEOF
673f4220 32705
6c657b52 32706 fi
2b9bdf71
VZ
32707fi
32708
32709if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32710 if test "$wxUSE_GTK" = 1; then
32711 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32712 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32713echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32714 wxUSE_DRAG_AND_DROP=no
32715 fi
32716 fi
32717
2b9bdf71 32718 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32719 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32720echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32721 wxUSE_DRAG_AND_DROP=no
32722 fi
32723
f79bd02d 32724 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32725 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32726echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32727 wxUSE_DRAG_AND_DROP=no
32728 fi
32729
6c657b52 32730 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32731 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32732echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32733 wxUSE_DRAG_AND_DROP=no
32734 fi
32735
10f2d63a 32736 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32737 cat >>confdefs.h <<\_ACEOF
10f2d63a 32738#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32739_ACEOF
10f2d63a
VZ
32740
32741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32742 fi
32743
32744fi
32745
32746if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32747 cat >>confdefs.h <<\_ACEOF
10f2d63a 32748#define wxUSE_SPLINES 1
e6cc62c6 32749_ACEOF
10f2d63a
VZ
32750
32751fi
32752
8284b0c5 32753
1e6feb95
VZ
32754USES_CONTROLS=0
32755if test "$wxUSE_CONTROLS" = "yes"; then
32756 USES_CONTROLS=1
32757fi
32758
10f2d63a 32759if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32760 cat >>confdefs.h <<\_ACEOF
10f2d63a 32761#define wxUSE_ACCEL 1
e6cc62c6 32762_ACEOF
10f2d63a 32763
1e6feb95
VZ
32764 USES_CONTROLS=1
32765fi
32766
32767if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32768 cat >>confdefs.h <<\_ACEOF
1e6feb95 32769#define wxUSE_BUTTON 1
e6cc62c6 32770_ACEOF
1e6feb95
VZ
32771
32772 USES_CONTROLS=1
32773fi
32774
32775if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32776 cat >>confdefs.h <<\_ACEOF
1e6feb95 32777#define wxUSE_BMPBUTTON 1
e6cc62c6 32778_ACEOF
1e6feb95
VZ
32779
32780 USES_CONTROLS=1
32781fi
32782
32783if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32784 cat >>confdefs.h <<\_ACEOF
1e6feb95 32785#define wxUSE_CALENDARCTRL 1
e6cc62c6 32786_ACEOF
1e6feb95
VZ
32787
32788 USES_CONTROLS=1
32789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32790fi
32791
32792if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
10f2d63a 32794#define wxUSE_CARET 1
e6cc62c6 32795_ACEOF
10f2d63a 32796
1e6feb95 32797 USES_CONTROLS=1
10f2d63a
VZ
32798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32799fi
32800
32801if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32802 cat >>confdefs.h <<\_ACEOF
10f2d63a 32803#define wxUSE_COMBOBOX 1
e6cc62c6 32804_ACEOF
10f2d63a 32805
1e6feb95 32806 USES_CONTROLS=1
10f2d63a
VZ
32807fi
32808
32809if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32810 cat >>confdefs.h <<\_ACEOF
10f2d63a 32811#define wxUSE_CHOICE 1
e6cc62c6 32812_ACEOF
10f2d63a 32813
1e6feb95 32814 USES_CONTROLS=1
10f2d63a
VZ
32815fi
32816
32817if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32818 cat >>confdefs.h <<\_ACEOF
10f2d63a 32819#define wxUSE_CHECKBOX 1
e6cc62c6 32820_ACEOF
10f2d63a 32821
1e6feb95 32822 USES_CONTROLS=1
10f2d63a
VZ
32823fi
32824
32825if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32826 cat >>confdefs.h <<\_ACEOF
10f2d63a 32827#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32828_ACEOF
10f2d63a 32829
1e6feb95 32830 USES_CONTROLS=1
10f2d63a
VZ
32831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32832fi
32833
da494b40 32834if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
da494b40 32836#define wxUSE_DISPLAY 1
e6cc62c6 32837_ACEOF
da494b40
MB
32838
32839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32840fi
32841
10f2d63a 32842if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32843 cat >>confdefs.h <<\_ACEOF
10f2d63a 32844#define wxUSE_GAUGE 1
e6cc62c6 32845_ACEOF
10f2d63a 32846
1e6feb95 32847 USES_CONTROLS=1
10f2d63a
VZ
32848fi
32849
d6a55c4b 32850if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32851 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32852#define wxUSE_GRID 1
e6cc62c6 32853_ACEOF
10f2d63a 32854
1e6feb95 32855 USES_CONTROLS=1
d6a55c4b 32856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32857fi
32858
32859if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32860 cat >>confdefs.h <<\_ACEOF
10f2d63a 32861#define wxUSE_IMAGLIST 1
e6cc62c6 32862_ACEOF
10f2d63a
VZ
32863
32864fi
32865
32866if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32867 cat >>confdefs.h <<\_ACEOF
10f2d63a 32868#define wxUSE_LISTBOX 1
e6cc62c6 32869_ACEOF
10f2d63a 32870
1e6feb95 32871 USES_CONTROLS=1
10f2d63a
VZ
32872fi
32873
32874if test "$wxUSE_LISTCTRL" = "yes"; then
32875 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32876 cat >>confdefs.h <<\_ACEOF
10f2d63a 32877#define wxUSE_LISTCTRL 1
e6cc62c6 32878_ACEOF
10f2d63a 32879
1e6feb95 32880 USES_CONTROLS=1
10f2d63a
VZ
32881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32882 else
e6cc62c6
VS
32883 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32884echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32885 fi
32886fi
32887
32888if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32889 cat >>confdefs.h <<\_ACEOF
10f2d63a 32890#define wxUSE_NOTEBOOK 1
e6cc62c6 32891_ACEOF
10f2d63a 32892
1e6feb95 32893 USES_CONTROLS=1
10f2d63a
VZ
32894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32895fi
32896
24176f2c 32897
10f2d63a 32898if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32899 cat >>confdefs.h <<\_ACEOF
10f2d63a 32900#define wxUSE_RADIOBOX 1
e6cc62c6 32901_ACEOF
10f2d63a 32902
1e6feb95 32903 USES_CONTROLS=1
10f2d63a
VZ
32904fi
32905
32906if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32907 cat >>confdefs.h <<\_ACEOF
10f2d63a 32908#define wxUSE_RADIOBTN 1
e6cc62c6 32909_ACEOF
10f2d63a 32910
1e6feb95 32911 USES_CONTROLS=1
10f2d63a
VZ
32912fi
32913
32914if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32915 cat >>confdefs.h <<\_ACEOF
10f2d63a 32916#define wxUSE_SASH 1
e6cc62c6 32917_ACEOF
10f2d63a
VZ
32918
32919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32920fi
32921
32922if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32923 cat >>confdefs.h <<\_ACEOF
10f2d63a 32924#define wxUSE_SCROLLBAR 1
e6cc62c6 32925_ACEOF
10f2d63a 32926
1e6feb95 32927 USES_CONTROLS=1
741a9306 32928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32929fi
32930
32931if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32932 cat >>confdefs.h <<\_ACEOF
10f2d63a 32933#define wxUSE_SLIDER 1
e6cc62c6 32934_ACEOF
10f2d63a 32935
1e6feb95 32936 USES_CONTROLS=1
10f2d63a
VZ
32937fi
32938
32939if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32940 cat >>confdefs.h <<\_ACEOF
10f2d63a 32941#define wxUSE_SPINBTN 1
e6cc62c6 32942_ACEOF
10f2d63a 32943
1e6feb95 32944 USES_CONTROLS=1
10f2d63a
VZ
32945fi
32946
56cfaa52 32947if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32948 cat >>confdefs.h <<\_ACEOF
56cfaa52 32949#define wxUSE_SPINCTRL 1
e6cc62c6 32950_ACEOF
56cfaa52 32951
1e6feb95 32952 USES_CONTROLS=1
56cfaa52
RR
32953fi
32954
10f2d63a 32955if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32956 cat >>confdefs.h <<\_ACEOF
10f2d63a 32957#define wxUSE_SPLITTER 1
e6cc62c6 32958_ACEOF
10f2d63a
VZ
32959
32960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32961fi
32962
32963if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32964 cat >>confdefs.h <<\_ACEOF
10f2d63a 32965#define wxUSE_STATBMP 1
e6cc62c6 32966_ACEOF
10f2d63a 32967
1e6feb95 32968 USES_CONTROLS=1
10f2d63a
VZ
32969fi
32970
32971if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32972 cat >>confdefs.h <<\_ACEOF
10f2d63a 32973#define wxUSE_STATBOX 1
e6cc62c6 32974_ACEOF
10f2d63a 32975
1e6feb95
VZ
32976 USES_CONTROLS=1
32977fi
32978
32979if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32980 cat >>confdefs.h <<\_ACEOF
1e6feb95 32981#define wxUSE_STATTEXT 1
e6cc62c6 32982_ACEOF
1e6feb95
VZ
32983
32984 USES_CONTROLS=1
10f2d63a
VZ
32985fi
32986
32987if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32988 cat >>confdefs.h <<\_ACEOF
10f2d63a 32989#define wxUSE_STATLINE 1
e6cc62c6 32990_ACEOF
10f2d63a 32991
89e6bf6d 32992 USES_CONTROLS=1
10f2d63a
VZ
32993fi
32994
32995if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32996 cat >>confdefs.h <<\_ACEOF
10f2d63a 32997#define wxUSE_STATUSBAR 1
e6cc62c6 32998_ACEOF
10f2d63a 32999
1e6feb95 33000 USES_CONTROLS=1
698dcdb6 33001
2286341c 33002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
33003fi
33004
33005if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
10f2d63a 33007#define wxUSE_TAB_DIALOG 1
e6cc62c6 33008_ACEOF
10f2d63a
VZ
33009
33010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33011fi
33012
1e6feb95 33013if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 33014 cat >>confdefs.h <<\_ACEOF
1e6feb95 33015#define wxUSE_TEXTCTRL 1
e6cc62c6 33016_ACEOF
1e6feb95
VZ
33017
33018 USES_CONTROLS=1
33019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33020fi
33021
1db8dc4a 33022if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 33023 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33024 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33025echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
33026 wxUSE_TOGGLEBTN=no
33027 fi
33028 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33029 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33030echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
33031 wxUSE_TOGGLEBTN=no
33032 fi
33033
33034 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 33035 cat >>confdefs.h <<\_ACEOF
1db8dc4a 33036#define wxUSE_TOGGLEBTN 1
e6cc62c6 33037_ACEOF
1db8dc4a 33038
1e6feb95 33039 USES_CONTROLS=1
a45d7ab7 33040 fi
1db8dc4a
VZ
33041fi
33042
360d6699 33043if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 33044 cat >>confdefs.h <<\_ACEOF
360d6699 33045#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 33046_ACEOF
360d6699
VZ
33047
33048 wxUSE_TOOLBAR="yes"
1e6feb95 33049 USES_CONTROLS=1
360d6699
VZ
33050fi
33051
10f2d63a 33052if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33053 cat >>confdefs.h <<\_ACEOF
10f2d63a 33054#define wxUSE_TOOLBAR 1
e6cc62c6 33055_ACEOF
10f2d63a 33056
1e6feb95 33057 USES_CONTROLS=1
698dcdb6 33058
360d6699
VZ
33059 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33060 wxUSE_TOOLBAR_NATIVE="yes"
33061 fi
33062
1e6feb95 33063 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33064 cat >>confdefs.h <<\_ACEOF
360d6699 33065#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33066_ACEOF
360d6699 33067
1e6feb95
VZ
33068 USES_CONTROLS=1
33069 fi
33070
33071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33072fi
33073
10f2d63a
VZ
33074if test "$wxUSE_TOOLTIPS" = "yes"; then
33075 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33076 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33077echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33078 else
89e6bf6d 33079 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33080 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33081echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33082 else
e6cc62c6 33083 cat >>confdefs.h <<\_ACEOF
10f2d63a 33084#define wxUSE_TOOLTIPS 1
e6cc62c6 33085_ACEOF
10f2d63a
VZ
33086
33087 fi
33088 fi
33089fi
33090
33091if test "$wxUSE_TREECTRL" = "yes"; then
33092 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33093 cat >>confdefs.h <<\_ACEOF
10f2d63a 33094#define wxUSE_TREECTRL 1
e6cc62c6 33095_ACEOF
10f2d63a 33096
1e6feb95 33097 USES_CONTROLS=1
10f2d63a
VZ
33098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33099 else
e6cc62c6
VS
33100 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33101echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33102 fi
33103fi
33104
9f41d601 33105if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33106 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33107 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33108echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33109 else
485cf710 33110 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33111 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33112echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33113 else
3c011993 33114 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33115 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33116echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33117 else
e6cc62c6 33118 cat >>confdefs.h <<\_ACEOF
9f41d601 33119#define wxUSE_POPUPWIN 1
e6cc62c6 33120_ACEOF
9f41d601 33121
8284b0c5 33122
3c011993
VZ
33123 USES_CONTROLS=1
33124 fi
485cf710 33125 fi
6abe4b65 33126 fi
9f41d601
RR
33127fi
33128
dd964dcc 33129if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33130 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33131 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33132echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33133 else
e6cc62c6 33134 cat >>confdefs.h <<\_ACEOF
dd964dcc 33135#define wxUSE_TIPWINDOW 1
e6cc62c6 33136_ACEOF
dd964dcc 33137
3c011993 33138 fi
dd964dcc
VZ
33139fi
33140
1e6feb95 33141if test "$USES_CONTROLS" = 1; then
e6cc62c6 33142 cat >>confdefs.h <<\_ACEOF
1e6feb95 33143#define wxUSE_CONTROLS 1
e6cc62c6 33144_ACEOF
10f2d63a 33145
10f2d63a
VZ
33146fi
33147
8284b0c5 33148
1e6feb95 33149
24fd6d87 33150if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33151 cat >>confdefs.h <<\_ACEOF
24fd6d87 33152#define wxUSE_DRAGIMAGE 1
e6cc62c6 33153_ACEOF
24fd6d87
VZ
33154
33155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33156fi
33157
7bb2947d 33158if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 33159 cat >>confdefs.h <<\_ACEOF
7bb2947d 33160#define wxUSE_ACCESSIBILITY 1
e6cc62c6 33161_ACEOF
7bb2947d
MB
33162
33163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33164fi
33165
1e6feb95 33166if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33167 cat >>confdefs.h <<\_ACEOF
1e6feb95 33168#define wxUSE_MENUS 1
e6cc62c6 33169_ACEOF
10f2d63a 33170
1e6feb95 33171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33172fi
33173
1e6feb95 33174if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33175 cat >>confdefs.h <<\_ACEOF
1e6feb95 33176#define wxUSE_METAFILE 1
e6cc62c6 33177_ACEOF
10f2d63a 33178
10f2d63a
VZ
33179fi
33180
1e6feb95 33181if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33182 cat >>confdefs.h <<\_ACEOF
1e6feb95 33183#define wxUSE_MIMETYPE 1
e6cc62c6 33184_ACEOF
10f2d63a 33185
10f2d63a
VZ
33186fi
33187
3e44f09d 33188if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33189 cat >>confdefs.h <<\_ACEOF
3e44f09d 33190#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33191_ACEOF
3e44f09d 33192
131f235d
VS
33193if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33194 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
33195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33196fi
33197
3e44f09d
VZ
33198fi
33199
10f2d63a 33200if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33201 cat >>confdefs.h <<\_ACEOF
10f2d63a 33202#define wxUSE_MINIFRAME 1
e6cc62c6 33203_ACEOF
10f2d63a
VZ
33204
33205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33206fi
33207
4d264332 33208USE_HTML=0
10f2d63a 33209if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33210 cat >>confdefs.h <<\_ACEOF
10f2d63a 33211#define wxUSE_HTML 1
e6cc62c6 33212_ACEOF
10f2d63a 33213
4d264332 33214 USE_HTML=1
c74dc163 33215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
33216fi
33217
33218if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33219 cat >>confdefs.h <<\_ACEOF
1e487827 33220#define wxUSE_VALIDATORS 1
e6cc62c6 33221_ACEOF
703e0a69 33222
698dcdb6
VZ
33223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33224fi
33225
edae8572 33226if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33227 cat >>confdefs.h <<\_ACEOF
edae8572 33228#define wxUSE_PALETTE 1
e6cc62c6 33229_ACEOF
edae8572
VZ
33230
33231fi
33232
698dcdb6 33233if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 33234 cat >>confdefs.h <<\_ACEOF
698dcdb6 33235#define wxUSE_IMAGE 1
e6cc62c6 33236_ACEOF
698dcdb6
VZ
33237
33238fi
33239
33240if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 33241 cat >>confdefs.h <<\_ACEOF
698dcdb6 33242#define wxUSE_GIF 1
e6cc62c6 33243_ACEOF
698dcdb6
VZ
33244
33245fi
33246
33247if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33248 cat >>confdefs.h <<\_ACEOF
698dcdb6 33249#define wxUSE_PCX 1
e6cc62c6 33250_ACEOF
698dcdb6
VZ
33251
33252fi
33253
4b6b4dfc 33254if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33255 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33256#define wxUSE_IFF 1
e6cc62c6 33257_ACEOF
4b6b4dfc
RR
33258
33259fi
33260
698dcdb6 33261if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33262 cat >>confdefs.h <<\_ACEOF
698dcdb6 33263#define wxUSE_PNM 1
e6cc62c6 33264_ACEOF
698dcdb6
VZ
33265
33266fi
33267
33268if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33269 cat >>confdefs.h <<\_ACEOF
698dcdb6 33270#define wxUSE_XPM 1
e6cc62c6 33271_ACEOF
698dcdb6
VZ
33272
33273fi
33274
658974ae 33275if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33276 cat >>confdefs.h <<\_ACEOF
658974ae 33277#define wxUSE_ICO_CUR 1
e6cc62c6 33278_ACEOF
658974ae
VS
33279
33280fi
33281
a72a4bfa
VS
33282if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33283 LIBS=" -lunicows $LIBS"
33284fi
33285
8284b0c5 33286
1e6feb95 33287if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33288 cat >>confdefs.h <<\_ACEOF
1e6feb95 33289#define wxUSE_CHOICEDLG 1
e6cc62c6 33290_ACEOF
1e6feb95
VZ
33291
33292fi
33293
33294if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33295 cat >>confdefs.h <<\_ACEOF
1e6feb95 33296#define wxUSE_COLOURDLG 1
e6cc62c6 33297_ACEOF
1e6feb95
VZ
33298
33299fi
33300
33301if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33302 cat >>confdefs.h <<\_ACEOF
1e6feb95 33303#define wxUSE_FILEDLG 1
e6cc62c6 33304_ACEOF
1e6feb95
VZ
33305
33306fi
33307
8db37e06 33308if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33309 cat >>confdefs.h <<\_ACEOF
8db37e06 33310#define wxUSE_FINDREPLDLG 1
e6cc62c6 33311_ACEOF
8db37e06
VZ
33312
33313fi
33314
1e6feb95 33315if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33316 cat >>confdefs.h <<\_ACEOF
1e6feb95 33317#define wxUSE_FONTDLG 1
e6cc62c6 33318_ACEOF
1e6feb95
VZ
33319
33320fi
33321
33322if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33323 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33324 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33325echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33326 else
e6cc62c6 33327 cat >>confdefs.h <<\_ACEOF
1e6feb95 33328#define wxUSE_DIRDLG 1
e6cc62c6 33329_ACEOF
1e6feb95 33330
1e6feb95
VZ
33331 fi
33332fi
33333
33334if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33335 cat >>confdefs.h <<\_ACEOF
1e6feb95 33336#define wxUSE_MSGDLG 1
e6cc62c6 33337_ACEOF
1e6feb95
VZ
33338
33339fi
33340
33341if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33342 cat >>confdefs.h <<\_ACEOF
1e6feb95 33343#define wxUSE_NUMBERDLG 1
e6cc62c6 33344_ACEOF
1e6feb95
VZ
33345
33346fi
33347
33348if test "$wxUSE_PROGRESSDLG" = "yes"; then
33349 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33350 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33351echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33352 else
e6cc62c6 33353 cat >>confdefs.h <<\_ACEOF
1e6feb95 33354#define wxUSE_PROGRESSDLG 1
e6cc62c6 33355_ACEOF
1e6feb95
VZ
33356
33357 fi
33358fi
33359
cbca9943 33360if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33361 cat >>confdefs.h <<\_ACEOF
cbca9943 33362#define wxUSE_SPLASH 1
e6cc62c6 33363_ACEOF
cbca9943
VZ
33364
33365fi
33366
1e6feb95
VZ
33367if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33368 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33369 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33370echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33371 else
e6cc62c6 33372 cat >>confdefs.h <<\_ACEOF
1e6feb95 33373#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33374_ACEOF
1e6feb95 33375
7b4a847f
RR
33376 fi
33377fi
579d8138 33378
8284b0c5 33379if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33380 cat >>confdefs.h <<\_ACEOF
8284b0c5 33381#define wxUSE_TEXTDLG 1
e6cc62c6 33382_ACEOF
8284b0c5
MB
33383
33384fi
33385
33386if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33387 cat >>confdefs.h <<\_ACEOF
8284b0c5 33388#define wxUSE_WIZARDDLG 1
e6cc62c6 33389_ACEOF
8284b0c5
MB
33390
33391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33392fi
33393
33394
33395if test "$cross_compiling" = "yes"; then
33396 OSINFO="\"$host\""
33397else
33398 OSINFO=`uname -s -r -m`
33399 OSINFO="\"$OSINFO\""
33400fi
33401
e6cc62c6 33402cat >>confdefs.h <<_ACEOF
8284b0c5 33403#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33404_ACEOF
8284b0c5
MB
33405
33406
33407
33408if test "x$prefix" != "xNONE"; then
33409 wxPREFIX=$prefix
33410else
33411 wxPREFIX=$ac_default_prefix
33412fi
33413
e6cc62c6 33414cat >>confdefs.h <<_ACEOF
8284b0c5 33415#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33416_ACEOF
8284b0c5
MB
33417
33418
e6cc62c6 33419top_builddir_wxconfig=`pwd`
52c71b80 33420
8284b0c5
MB
33421
33422
edd891e2
VS
33423CORE_BASE_LIBS="net base"
33424CORE_GUI_LIBS="adv core"
33425
33426if test "$wxUSE_XML" = "yes" ; then
33427 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33428fi
45293562
VS
33429if test "$wxUSE_ODBC" != "no" ; then
33430 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33431 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33432fi
33433if test "$wxUSE_HTML" = "yes" ; then
33434 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33435fi
33436
33437
33438
33439
33440
33441
33442
8284b0c5
MB
33443
33444if test "$wxUSE_MAC" = 1 ; then
33445 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33446fi
ac0c4cc3
DE
33447if test "$wxUSE_COCOA" = 1 ; then
33448 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33449fi
8284b0c5
MB
33450
33451
2b5f62a0
VZ
33452LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33453
33454have_cos=0
33455have_floor=0
e6cc62c6 33456
2b5f62a0
VZ
33457for ac_func in cos
33458do
e6cc62c6
VS
33459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33460echo "$as_me:$LINENO: checking for $ac_func" >&5
33461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33462if eval "test \"\${$as_ac_var+set}\" = set"; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33464else
33465 cat >conftest.$ac_ext <<_ACEOF
33466#line $LINENO "configure"
33467/* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
2b5f62a0 33472/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33473 which can conflict with char $ac_func (); below.
33474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33475 <limits.h> exists even on freestanding compilers. */
33476#ifdef __STDC__
33477# include <limits.h>
33478#else
33479# include <assert.h>
33480#endif
2b5f62a0 33481/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33482#ifdef __cplusplus
33483extern "C"
33484{
33485#endif
2b5f62a0 33486/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33487 builtin and then its argument prototype would still apply. */
33488char $ac_func ();
2b5f62a0
VZ
33489/* The GNU C library defines this for functions which it implements
33490 to always fail with ENOSYS. Some functions are actually named
33491 something starting with __ and the normal name is an alias. */
33492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33493choke me
33494#else
e6cc62c6
VS
33495char (*f) () = $ac_func;
33496#endif
33497#ifdef __cplusplus
33498}
2b5f62a0
VZ
33499#endif
33500
e6cc62c6
VS
33501int
33502main ()
33503{
33504return f != $ac_func;
33505 ;
33506 return 0;
33507}
33508_ACEOF
33509rm -f conftest.$ac_objext conftest$ac_exeext
33510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33511 (eval $ac_link) 2>&5
33512 ac_status=$?
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
33515 { ac_try='test -s conftest$ac_exeext'
33516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33517 (eval $ac_try) 2>&5
33518 ac_status=$?
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); }; }; then
33521 eval "$as_ac_var=yes"
33522else
33523 echo "$as_me: failed program was:" >&5
33524sed 's/^/| /' conftest.$ac_ext >&5
33525
33526eval "$as_ac_var=no"
33527fi
33528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33529fi
33530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33532if test `eval echo '${'$as_ac_var'}'` = yes; then
33533 cat >>confdefs.h <<_ACEOF
33534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33535_ACEOF
2b5f62a0 33536 have_cos=1
2b5f62a0
VZ
33537fi
33538done
33539
e6cc62c6 33540
2b5f62a0
VZ
33541for ac_func in floor
33542do
e6cc62c6
VS
33543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33544echo "$as_me:$LINENO: checking for $ac_func" >&5
33545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33546if eval "test \"\${$as_ac_var+set}\" = set"; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549 cat >conftest.$ac_ext <<_ACEOF
33550#line $LINENO "configure"
33551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
2b5f62a0 33556/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33557 which can conflict with char $ac_func (); below.
33558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33559 <limits.h> exists even on freestanding compilers. */
33560#ifdef __STDC__
33561# include <limits.h>
33562#else
33563# include <assert.h>
33564#endif
2b5f62a0 33565/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33566#ifdef __cplusplus
33567extern "C"
33568{
33569#endif
2b5f62a0 33570/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33571 builtin and then its argument prototype would still apply. */
33572char $ac_func ();
2b5f62a0
VZ
33573/* The GNU C library defines this for functions which it implements
33574 to always fail with ENOSYS. Some functions are actually named
33575 something starting with __ and the normal name is an alias. */
33576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33577choke me
33578#else
e6cc62c6
VS
33579char (*f) () = $ac_func;
33580#endif
33581#ifdef __cplusplus
33582}
2b5f62a0
VZ
33583#endif
33584
e6cc62c6
VS
33585int
33586main ()
33587{
33588return f != $ac_func;
33589 ;
33590 return 0;
33591}
33592_ACEOF
33593rm -f conftest.$ac_objext conftest$ac_exeext
33594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33595 (eval $ac_link) 2>&5
33596 ac_status=$?
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
33599 { ac_try='test -s conftest$ac_exeext'
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; }; then
33605 eval "$as_ac_var=yes"
33606else
33607 echo "$as_me: failed program was:" >&5
33608sed 's/^/| /' conftest.$ac_ext >&5
33609
33610eval "$as_ac_var=no"
33611fi
33612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33613fi
33614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33615echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33616if test `eval echo '${'$as_ac_var'}'` = yes; then
33617 cat >>confdefs.h <<_ACEOF
33618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33619_ACEOF
2b5f62a0 33620 have_floor=1
2b5f62a0
VZ
33621fi
33622done
33623
e6cc62c6
VS
33624echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33625echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33626if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33627 echo "$as_me:$LINENO: result: yes" >&5
33628echo "${ECHO_T}yes" >&6
2b5f62a0 33629else
e6cc62c6
VS
33630 echo "$as_me:$LINENO: result: no" >&5
33631echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33632 LIBS="$LIBS -lm"
33633 # use different functions to avoid configure caching
33634 have_sin=0
33635 have_ceil=0
e6cc62c6
VS
33636
33637for ac_func in sin
2b5f62a0 33638do
e6cc62c6
VS
33639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33640echo "$as_me:$LINENO: checking for $ac_func" >&5
33641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33642if eval "test \"\${$as_ac_var+set}\" = set"; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33644else
33645 cat >conftest.$ac_ext <<_ACEOF
33646#line $LINENO "configure"
33647/* confdefs.h. */
33648_ACEOF
33649cat confdefs.h >>conftest.$ac_ext
33650cat >>conftest.$ac_ext <<_ACEOF
33651/* end confdefs.h. */
2b5f62a0 33652/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
33656#ifdef __STDC__
33657# include <limits.h>
33658#else
33659# include <assert.h>
33660#endif
2b5f62a0 33661/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33662#ifdef __cplusplus
33663extern "C"
33664{
33665#endif
2b5f62a0 33666/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33667 builtin and then its argument prototype would still apply. */
33668char $ac_func ();
2b5f62a0
VZ
33669/* The GNU C library defines this for functions which it implements
33670 to always fail with ENOSYS. Some functions are actually named
33671 something starting with __ and the normal name is an alias. */
33672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33673choke me
33674#else
e6cc62c6
VS
33675char (*f) () = $ac_func;
33676#endif
33677#ifdef __cplusplus
33678}
2b5f62a0
VZ
33679#endif
33680
e6cc62c6
VS
33681int
33682main ()
33683{
33684return f != $ac_func;
33685 ;
33686 return 0;
33687}
33688_ACEOF
33689rm -f conftest.$ac_objext conftest$ac_exeext
33690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33691 (eval $ac_link) 2>&5
33692 ac_status=$?
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
33695 { ac_try='test -s conftest$ac_exeext'
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; }; then
33701 eval "$as_ac_var=yes"
33702else
33703 echo "$as_me: failed program was:" >&5
33704sed 's/^/| /' conftest.$ac_ext >&5
33705
33706eval "$as_ac_var=no"
33707fi
33708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33709fi
33710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33712if test `eval echo '${'$as_ac_var'}'` = yes; then
33713 cat >>confdefs.h <<_ACEOF
33714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33715_ACEOF
2b5f62a0 33716 have_sin=1
2b5f62a0
VZ
33717fi
33718done
33719
e6cc62c6
VS
33720
33721for ac_func in ceil
2b5f62a0 33722do
e6cc62c6
VS
33723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33724echo "$as_me:$LINENO: checking for $ac_func" >&5
33725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33726if eval "test \"\${$as_ac_var+set}\" = set"; then
33727 echo $ECHO_N "(cached) $ECHO_C" >&6
33728else
33729 cat >conftest.$ac_ext <<_ACEOF
33730#line $LINENO "configure"
33731/* confdefs.h. */
33732_ACEOF
33733cat confdefs.h >>conftest.$ac_ext
33734cat >>conftest.$ac_ext <<_ACEOF
33735/* end confdefs.h. */
2b5f62a0 33736/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33737 which can conflict with char $ac_func (); below.
33738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33739 <limits.h> exists even on freestanding compilers. */
33740#ifdef __STDC__
33741# include <limits.h>
33742#else
33743# include <assert.h>
33744#endif
2b5f62a0 33745/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33746#ifdef __cplusplus
33747extern "C"
33748{
33749#endif
2b5f62a0 33750/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33751 builtin and then its argument prototype would still apply. */
33752char $ac_func ();
2b5f62a0
VZ
33753/* The GNU C library defines this for functions which it implements
33754 to always fail with ENOSYS. Some functions are actually named
33755 something starting with __ and the normal name is an alias. */
33756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33757choke me
33758#else
e6cc62c6
VS
33759char (*f) () = $ac_func;
33760#endif
33761#ifdef __cplusplus
33762}
2b5f62a0
VZ
33763#endif
33764
e6cc62c6
VS
33765int
33766main ()
33767{
33768return f != $ac_func;
33769 ;
33770 return 0;
33771}
33772_ACEOF
33773rm -f conftest.$ac_objext conftest$ac_exeext
33774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33775 (eval $ac_link) 2>&5
33776 ac_status=$?
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); } &&
33779 { ac_try='test -s conftest$ac_exeext'
33780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33781 (eval $ac_try) 2>&5
33782 ac_status=$?
33783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784 (exit $ac_status); }; }; then
33785 eval "$as_ac_var=yes"
33786else
33787 echo "$as_me: failed program was:" >&5
33788sed 's/^/| /' conftest.$ac_ext >&5
33789
33790eval "$as_ac_var=no"
33791fi
33792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33793fi
33794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33796if test `eval echo '${'$as_ac_var'}'` = yes; then
33797 cat >>confdefs.h <<_ACEOF
33798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33799_ACEOF
2b5f62a0 33800 have_ceil=1
2b5f62a0
VZ
33801fi
33802done
33803
e6cc62c6
VS
33804 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33805echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33806 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33807 echo "$as_me:$LINENO: result: yes" >&5
33808echo "${ECHO_T}yes" >&6
2b5f62a0 33809 else
e6cc62c6
VS
33810 echo "$as_me:$LINENO: result: no" >&5
33811echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33812 # not sure we should warn the user, crash, etc.
33813 fi
33814fi
8284b0c5
MB
33815
33816if test "$wxUSE_GUI" = "yes"; then
33817
e6cc62c6 33818
8284b0c5
MB
33819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33820 drawing dynamic erase event exec font image \
1dd02ac0 33821 minimal propsize rotate shaped widgets render"
b625909c
VS
33822
33823 if test "$wxUSE_MONOLITHIC" != "yes"; then
33824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33825 fi
8284b0c5
MB
33826else
33827 SAMPLES_SUBDIRS="console"
33828fi
33829
33830
e6cc62c6 33831INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33832-I\${top_srcdir}/include \
33833$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33834$TOOLKIT_INCLUDE"
33835
fddeb06b
VS
33836if test "$GXX" = yes ; then
33837 CXXWARNINGS="-Wall"
33838 fi
33839
33840EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33841
95318f7d 33842CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33843CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33844CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33845
33846
fddeb06b 33847LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33848EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33849EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33850EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33851if test "$wxUSE_GUI" = "yes"; then
33852 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33853fi
34b08d2c
VS
33854if test "$wxUSE_OPENGL" = "yes"; then
33855 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33856fi
fddeb06b
VS
33857
33858LDFLAGS="$LDFLAGS $PROFILE"
33859
8284b0c5
MB
33860if test "$wxUSE_GTK" = 1; then
33861 WXCONFIG_INCLUDE=
33862else
33863 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33864fi
33865
67c13b6c
VS
33866WXCONFIG_EXTRALIBS="$LIBS"
33867
33868if test "$wxUSE_REGEX" = "builtin" ; then
33869 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33870fi
33871if test "$wxUSE_EXPAT" = "builtin" ; then
33872 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33873fi
33874if test "$wxUSE_ODBC" = "builtin" ; then
33875 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33876fi
33877if test "$wxUSE_LIBTIFF" = "builtin" ; then
33878 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33879fi
33880if test "$wxUSE_LIBJPEG" = "builtin" ; then
33881 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33882fi
33883if test "$wxUSE_LIBPNG" = "builtin" ; then
33884 wxconfig_3rdparty="$wxconfig_3rdparty png"
33885fi
33886if test "$wxUSE_ZLIB" = "builtin" ; then
33887 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33888fi
bb41dcbe
VS
33889if test "$wxUSE_ODBC" = "builtin" ; then
33890 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33891fi
67c13b6c
VS
33892
33893for i in $wxconfig_3rdparty ; do
33894 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33895done
33896
33897
fe0895cf
VS
33898if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33899 WXUNIV=1
33900else
33901 WXUNIV=0
8284b0c5
MB
33902fi
33903
8284b0c5
MB
33904
33905
33906
33907
33908
33909
33910
672abd7a 33911
9747f85d
VS
33912if test $wxUSE_MONOLITHIC = "yes" ; then
33913 MONOLITHIC=1
33914else
33915 MONOLITHIC=0
33916fi
8284b0c5 33917
bb41dcbe
VS
33918if test $wxUSE_ODBC != "no" ; then
33919 USE_ODBC=1
33920else
33921 USE_ODBC=0
33922fi
33923
029b47ad
VS
33924if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33925 OFFICIAL_BUILD=1
33926else
33927 OFFICIAL_BUILD=0
33928fi
33929
8ee2dd05
VS
33930
33931
33932
8284b0c5
MB
33933
33934
33935
33936
33937
33938
c74dc163 33939
34b08d2c 33940
672abd7a 33941
cf615ebb 33942
6c67131a
VS
33943
33944
bb41dcbe 33945
fe0895cf 33946TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33947
33948
33949
33950
33951
ea66c762 33952
fe0895cf 33953 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33954
33955 if test -n "$ac_tool_prefix"; then
33956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33958echo "$as_me:$LINENO: checking for $ac_word" >&5
33959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33960if test "${ac_cv_prog_RANLIB+set}" = set; then
33961 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33962else
fe0895cf
VS
33963 if test -n "$RANLIB"; then
33964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33965else
e6cc62c6
VS
33966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33967for as_dir in $PATH
33968do
33969 IFS=$as_save_IFS
33970 test -z "$as_dir" && as_dir=.
33971 for ac_exec_ext in '' $ac_executable_extensions; do
33972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33975 break 2
33976 fi
33977done
33978done
33979
10f2d63a 33980fi
10f2d63a 33981fi
e6cc62c6 33982RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33983if test -n "$RANLIB"; then
e6cc62c6
VS
33984 echo "$as_me:$LINENO: result: $RANLIB" >&5
33985echo "${ECHO_T}$RANLIB" >&6
33986else
33987 echo "$as_me:$LINENO: result: no" >&5
33988echo "${ECHO_T}no" >&6
33989fi
33990
33991fi
33992if test -z "$ac_cv_prog_RANLIB"; then
33993 ac_ct_RANLIB=$RANLIB
33994 # Extract the first word of "ranlib", so it can be a program name with args.
33995set dummy ranlib; ac_word=$2
33996echo "$as_me:$LINENO: checking for $ac_word" >&5
33997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33998if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33999 echo $ECHO_N "(cached) $ECHO_C" >&6
34000else
34001 if test -n "$ac_ct_RANLIB"; then
34002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34003else
34004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007 IFS=$as_save_IFS
34008 test -z "$as_dir" && as_dir=.
34009 for ac_exec_ext in '' $ac_executable_extensions; do
34010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34011 ac_cv_prog_ac_ct_RANLIB="ranlib"
34012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34013 break 2
34014 fi
34015done
34016done
34017
34018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34019fi
34020fi
34021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34022if test -n "$ac_ct_RANLIB"; then
34023 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34024echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 34025else
e6cc62c6
VS
34026 echo "$as_me:$LINENO: result: no" >&5
34027echo "${ECHO_T}no" >&6
34028fi
34029
34030 RANLIB=$ac_ct_RANLIB
34031else
34032 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 34033fi
665bbe97 34034
fe0895cf
VS
34035 # Find a good install program. We prefer a C program (faster),
34036# so one script is as good as another. But avoid the broken or
34037# incompatible versions:
34038# SysV /etc/install, /usr/sbin/install
34039# SunOS /usr/etc/install
34040# IRIX /sbin/install
34041# AIX /bin/install
e6cc62c6 34042# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34046# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34047echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34048echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34049if test -z "$INSTALL"; then
e6cc62c6
VS
34050if test "${ac_cv_path_install+set}" = set; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
34052else
34053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34054for as_dir in $PATH
34055do
34056 IFS=$as_save_IFS
34057 test -z "$as_dir" && as_dir=.
34058 # Account for people who put trailing slashes in PATH elements.
34059case $as_dir/ in
34060 ./ | .// | /cC/* | \
34061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34062 /usr/ucb/* ) ;;
34063 *)
34064 # OSF1 and SCO ODT 3.0 have their own names for install.
34065 # Don't use installbsd from OSF since it installs stuff as root
34066 # by default.
34067 for ac_prog in ginstall scoinst install; do
34068 for ac_exec_ext in '' $ac_executable_extensions; do
34069 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34070 if test $ac_prog = install &&
34071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34072 # AIX install. It has an incompatible calling convention.
34073 :
34074 elif test $ac_prog = install &&
34075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34076 # program-specific install script used by HP pwplus--don't use.
34077 :
34078 else
34079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34080 break 3
34081 fi
34082 fi
fe0895cf 34083 done
e6cc62c6
VS
34084 done
34085 ;;
34086esac
34087done
34088
fe0895cf
VS
34089
34090fi
34091 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34092 INSTALL=$ac_cv_path_install
fe0895cf
VS
34093 else
34094 # As a last resort, use the slow shell script. We don't cache a
34095 # path for INSTALL within a source directory, because that will
34096 # break other packages using the cache if that directory is
34097 # removed, or if the path is relative.
e6cc62c6 34098 INSTALL=$ac_install_sh
fe0895cf
VS
34099 fi
34100fi
e6cc62c6
VS
34101echo "$as_me:$LINENO: result: $INSTALL" >&5
34102echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34103
34104# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34105# It thinks the first close brace ends the variable substitution.
34106test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34107
e6cc62c6 34108test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34109
34110test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34111
e6cc62c6
VS
34112 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34113echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34114LN_S=$as_ln_s
34115if test "$LN_S" = "ln -s"; then
34116 echo "$as_me:$LINENO: result: yes" >&5
34117echo "${ECHO_T}yes" >&6
fe0895cf 34118else
e6cc62c6
VS
34119 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34120echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34121fi
34122
34123
e6cc62c6
VS
34124 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34125echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34126set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34127if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34129else
e6cc62c6 34130 cat >conftest.make <<\_ACEOF
fe0895cf 34131all:
e6cc62c6
VS
34132 @echo 'ac_maketemp="$(MAKE)"'
34133_ACEOF
fe0895cf 34134# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34135eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34136if test -n "$ac_maketemp"; then
34137 eval ac_cv_prog_make_${ac_make}_set=yes
34138else
34139 eval ac_cv_prog_make_${ac_make}_set=no
34140fi
e6cc62c6 34141rm -f conftest.make
fe0895cf
VS
34142fi
34143if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34144 echo "$as_me:$LINENO: result: yes" >&5
34145echo "${ECHO_T}yes" >&6
fe0895cf
VS
34146 SET_MAKE=
34147else
e6cc62c6
VS
34148 echo "$as_me:$LINENO: result: no" >&5
34149echo "${ECHO_T}no" >&6
fe0895cf
VS
34150 SET_MAKE="MAKE=${MAKE-make}"
34151fi
34152
e6cc62c6
VS
34153
34154
fe0895cf
VS
34155 if test "$build" != "$host" ; then
34156 AR=$host_alias-ar
34157 STRIP=$host_alias-strip
34158 else
34159 # Extract the first word of "ar", so it can be a program name with args.
34160set dummy ar; ac_word=$2
e6cc62c6
VS
34161echo "$as_me:$LINENO: checking for $ac_word" >&5
34162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34163if test "${ac_cv_prog_AR+set}" = set; then
34164 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34165else
34166 if test -n "$AR"; then
34167 ac_cv_prog_AR="$AR" # Let the user override the test.
34168else
e6cc62c6
VS
34169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34170for as_dir in $PATH
34171do
34172 IFS=$as_save_IFS
34173 test -z "$as_dir" && as_dir=.
34174 for ac_exec_ext in '' $ac_executable_extensions; do
34175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34176 ac_cv_prog_AR="ar"
34177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34178 break 2
34179 fi
34180done
34181done
34182
fe0895cf
VS
34183 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34184fi
34185fi
e6cc62c6 34186AR=$ac_cv_prog_AR
fe0895cf 34187if test -n "$AR"; then
e6cc62c6
VS
34188 echo "$as_me:$LINENO: result: $AR" >&5
34189echo "${ECHO_T}$AR" >&6
fe0895cf 34190else
e6cc62c6
VS
34191 echo "$as_me:$LINENO: result: no" >&5
34192echo "${ECHO_T}no" >&6
fe0895cf
VS
34193fi
34194
34195 # Extract the first word of "strip", so it can be a program name with args.
34196set dummy strip; ac_word=$2
e6cc62c6
VS
34197echo "$as_me:$LINENO: checking for $ac_word" >&5
34198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34199if test "${ac_cv_prog_STRIP+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34201else
34202 if test -n "$STRIP"; then
34203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34204else
e6cc62c6
VS
34205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34206for as_dir in $PATH
34207do
34208 IFS=$as_save_IFS
34209 test -z "$as_dir" && as_dir=.
34210 for ac_exec_ext in '' $ac_executable_extensions; do
34211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34212 ac_cv_prog_STRIP="strip"
34213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34214 break 2
34215 fi
34216done
34217done
34218
fe0895cf
VS
34219 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34220fi
34221fi
e6cc62c6 34222STRIP=$ac_cv_prog_STRIP
fe0895cf 34223if test -n "$STRIP"; then
e6cc62c6
VS
34224 echo "$as_me:$LINENO: result: $STRIP" >&5
34225echo "${ECHO_T}$STRIP" >&6
fe0895cf 34226else
e6cc62c6
VS
34227 echo "$as_me:$LINENO: result: no" >&5
34228echo "${ECHO_T}no" >&6
fe0895cf
VS
34229fi
34230
34231 fi
34232
34233 case ${host} in
34234 *-hp-hpux* )
34235 INSTALL_DIR="mkdir"
34236 ;;
34237 *) INSTALL_DIR="$INSTALL -d"
34238 ;;
34239 esac
e6cc62c6 34240
fe0895cf 34241
6b9d41a5
VS
34242 LDFLAGS_GUI=
34243 case ${host} in
34244 *-*-cygwin* | *-*-mingw32* )
34245 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34246 esac
34247
34248
fe0895cf 34249 fi
e6cc62c6
VS
34250
34251 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34252echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34253if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34254 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34255else
e6cc62c6 34256
fe0895cf
VS
34257 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34258 egrep -s GNU > /dev/null); then
34259 bakefile_cv_prog_makeisgnu="yes"
34260 else
34261 bakefile_cv_prog_makeisgnu="no"
34262 fi
fe0895cf 34263
e6cc62c6 34264fi
49b0a3aa
VS
34265echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34266echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34267
34268 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34269 IF_GNU_MAKE=""
34270 else
34271 IF_GNU_MAKE="#"
34272 fi
fe0895cf 34273
e6cc62c6
VS
34274
34275
fe0895cf
VS
34276 PLATFORM_UNIX=0
34277 PLATFORM_WIN32=0
34278 PLATFORM_MSDOS=0
34279 PLATFORM_MAC=0
34280 PLATFORM_MACOSX=0
e6cc62c6 34281
fe0895cf
VS
34282 case "${host}" in
34283 *-*-cygwin* | *-*-mingw32* )
34284 PLATFORM_WIN32=1
34285 ;;
34286 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34287 PLATFORM_MSDOS=1
34288 ;;
34289 powerpc-*-darwin* )
34290 PLATFORM_MAC=1
34291 PLATFORM_MACOSX=1
34292 ;;
34293 * )
34294 PLATFORM_UNIX=1
34295 ;;
34296 esac
34297
fe0895cf 34298
e6cc62c6
VS
34299
34300
34301
34302
34303
34304
fe0895cf 34305 SO_SUFFIX="so"
131f235d 34306 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34307 EXEEXT=""
34308 DLLPREFIX=lib
131f235d 34309 DLLPREFIX_MODULE=
e6cc62c6 34310
fe0895cf
VS
34311 case "${host}" in
34312 *-hp-hpux* )
34313 SO_SUFFIX="sl"
131f235d 34314 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34315 ;;
34316 *-*-aix* )
34317 SO_SUFFIX="a"
131f235d 34318 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34319 ;;
34320 *-*-cygwin* | *-*-mingw32* )
34321 SO_SUFFIX="dll"
131f235d 34322 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34323 EXEEXT=".exe"
34324 DLLPREFIX=""
34325 ;;
34326 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34327 EXEEXT=".exe"
34328 DLLPREFIX=""
34329 ;;
34330 powerpc-*-darwin* )
34331 SO_SUFFIX="dylib"
131f235d 34332 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34333 ;;
34334 esac
34335
fe0895cf 34336
e6cc62c6
VS
34337
34338
34339
34340
131f235d
VS
34341
34342
fe0895cf
VS
34343 SHARED_LD_CC="\$(CC) -shared -o"
34344 SHARED_LD_CXX="\$(CXX) -shared -o"
34345
34346 if test "x$GCC" = "xyes"; then
34347 PIC_FLAG="-fPIC"
34348 fi
34349
34350 case "${host}" in
34351 *-hp-hpux* )
34352 if test "x$GCC" = "xyes"; then
34353 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34354 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34355 else
34356 LDFLAGS="$LDFLAGS -L/usr/lib"
34357
34358 SHARED_LD_CC="${CC} -b -o"
34359 SHARED_LD_CXX="${CXX} -b -o"
34360 PIC_FLAG="+Z"
34361 fi
34362 ;;
34363
34364 *-*-linux* )
34365 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34366 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34367echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34368if test "${bakefile_cv_prog_icc+set}" = set; then
34369 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34370else
fe0895cf 34371
e6cc62c6
VS
34372 cat >conftest.$ac_ext <<_ACEOF
34373#line $LINENO "configure"
34374/* confdefs.h. */
34375_ACEOF
34376cat confdefs.h >>conftest.$ac_ext
34377cat >>conftest.$ac_ext <<_ACEOF
34378/* end confdefs.h. */
34379
34380int
34381main ()
34382{
fe0895cf
VS
34383
34384 #ifndef __INTEL_COMPILER
34385 #error Not icc
34386 #endif
e6cc62c6
VS
34387
34388 ;
34389 return 0;
34390}
34391_ACEOF
34392rm -f conftest.$ac_objext
34393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34394 (eval $ac_compile) 2>&5
34395 ac_status=$?
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); } &&
34398 { ac_try='test -s conftest.$ac_objext'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34401 ac_status=$?
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; }; then
fe0895cf
VS
34404 bakefile_cv_prog_icc=yes
34405else
e6cc62c6
VS
34406 echo "$as_me: failed program was:" >&5
34407sed 's/^/| /' conftest.$ac_ext >&5
34408
34409bakefile_cv_prog_icc=no
34410
fe0895cf 34411fi
e6cc62c6 34412rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34413
e6cc62c6
VS
34414fi
34415echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34416echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34417 if test "$bakefile_cv_prog_icc" = "yes"; then
34418 PIC_FLAG="-KPIC"
34419 fi
34420 fi
34421 ;;
34422
34423 *-*-solaris2* )
34424 if test "x$GCC" != xyes ; then
34425 SHARED_LD_CC="${CC} -G -o"
34426 SHARED_LD_CXX="${CXX} -G -o"
34427 PIC_FLAG="-KPIC"
34428 fi
34429 ;;
34430
34431 *-*-darwin* )
34432 CFLAGS="$CFLAGS -fno-common"
34433 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34434
34435
fe0895cf
VS
34436 cat <<EOF >shared-ld-sh
34437#!/bin/sh
34438#-----------------------------------------------------------------------------
34439#-- Name: distrib/mac/shared-ld-sh
34440#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34441#-- Author: Gilles Depeyrot
34442#-- Copyright: (c) 2002 Gilles Depeyrot
34443#-- Licence: any use permitted
34444#-----------------------------------------------------------------------------
34445
34446verbose=0
34447args=""
34448objects=""
131f235d 34449linking_flag="-dynamiclib"
fe0895cf
VS
34450
34451while test \${#} -gt 0; do
34452 case \${1} in
34453
34454 -v)
34455 verbose=1
34456 ;;
34457
34458 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34459 # collect these options and values
34460 args="\${args} \${1} \${2}"
34461 shift
34462 ;;
34463
34464 -l*|-L*|-flat_namespace)
34465 # collect these options
34466 args="\${args} \${1}"
34467 ;;
34468
131f235d
VS
34469 -dynamiclib|-bundle)
34470 linking_flag="\${1}"
fe0895cf
VS
34471 ;;
34472
34473 -*)
34474 echo "shared-ld: unhandled option '\${1}'"
34475 exit 1
34476 ;;
34477
4d264332 34478 *.o | *.a | *.dylib)
fe0895cf
VS
34479 # collect object files
34480 objects="\${objects} \${1}"
34481 ;;
34482
34483 *)
34484 echo "shared-ld: unhandled argument '\${1}'"
34485 exit 1
34486 ;;
34487
34488 esac
34489 shift
34490done
34491
34492#
34493# Link one module containing all the others
34494#
34495if test \${verbose} = 1; then
34496 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34497fi
34498c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34499status=\$?
34500if test \${status} != 0; then
34501 exit \${status}
34502fi
34503
34504#
34505# Link the shared library from the single module created
34506#
34507if test \${verbose} = 1; then
131f235d 34508 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34509fi
131f235d 34510c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34511status=\$?
34512if test \${status} != 0; then
34513 exit \${status}
34514fi
34515
34516#
34517# Remove intermediate module
34518#
34519rm -f master.\$\$.o
34520
34521exit 0
34522EOF
34523 chmod +x shared-ld-sh
34524
131f235d
VS
34525 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34526 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34527 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34528 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34529 PIC_FLAG="-dynamic -fPIC"
34530 ;;
34531
34532 *-*-aix* )
34533 if test "x$GCC" != "xyes"; then
34534 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34535set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34536echo "$as_me:$LINENO: checking for $ac_word" >&5
34537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34538if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34539 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34540else
34541 if test -n "$AIX_CXX_LD"; then
34542 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34543else
e6cc62c6
VS
34544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34545for as_dir in $PATH
34546do
34547 IFS=$as_save_IFS
34548 test -z "$as_dir" && as_dir=.
34549 for ac_exec_ext in '' $ac_executable_extensions; do
34550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34551 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34553 break 2
34554 fi
34555done
34556done
34557
fe0895cf
VS
34558 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34559fi
34560fi
e6cc62c6 34561AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34562if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34563 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34564echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34565else
e6cc62c6
VS
34566 echo "$as_me:$LINENO: result: no" >&5
34567echo "${ECHO_T}no" >&6
fe0895cf
VS
34568fi
34569
34570 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34571 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34572 fi
34573 ;;
34574
34575 *-*-beos* )
34576 SHARED_LD_CC="${LD} -shared -o"
34577 SHARED_LD_CXX="${LD} -shared -o"
34578 ;;
34579
34580 *-*-irix* )
34581 if test "x$GCC" != "xyes"; then
34582 PIC_FLAG="-KPIC"
34583 fi
34584 ;;
e6cc62c6 34585
fe0895cf
VS
34586 *-*-cygwin* | *-*-mingw32* )
34587 PIC_FLAG=""
34588 ;;
e6cc62c6 34589
fe0895cf
VS
34590 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34591 *-*-sunos4* | \
34592 *-*-osf* | \
34593 *-*-dgux5* | \
34594 *-*-sysv5* )
34595 ;;
34596
34597 *)
e6cc62c6
VS
34598 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34599echo "$as_me: error: unknown system type $host." >&2;}
34600 { (exit 1); exit 1; }; }
fe0895cf
VS
34601 esac
34602
131f235d
VS
34603 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34604 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34605 fi
34606 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34607 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34608 fi
34609
34610
34611
fe0895cf 34612
e6cc62c6
VS
34613
34614
34615
34616
fe0895cf
VS
34617 USE_SOVERSION=0
34618 USE_SOVERLINUX=0
34619 USE_SOVERSOLARIS=0
34620 USE_SOSYMLINKS=0
34621 USE_MACVERSION=0
34622 SONAME_FLAG=
34623
34624 case "${host}" in
34625 *-*-linux* )
34626 SONAME_FLAG="-Wl,-soname,"
34627 USE_SOVERSION=1
34628 USE_SOVERLINUX=1
34629 USE_SOSYMLINKS=1
34630 ;;
34631
34632 *-*-solaris2* )
34633 SONAME_FLAG="-h "
34634 USE_SOVERSION=1
34635 USE_SOVERSOLARIS=1
34636 USE_SOSYMLINKS=1
34637 ;;
34638
34639 *-*-darwin* )
34640 USE_MACVERSION=1
34641 USE_SOVERSION=1
34642 USE_SOSYMLINKS=1
e6cc62c6 34643 ;;
fe0895cf
VS
34644 esac
34645
fe0895cf 34646
e6cc62c6
VS
34647
34648
34649
34650
34651
34652
34653
49b0a3aa
VS
34654 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34655echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34656 DEPS_TRACKING=0
34657
fe0895cf 34658 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34659 DEPSMODE=gcc
34660 DEPS_TRACKING=1
3e5c3c83
VS
34661 case "${host}" in
34662 powerpc-*-darwin* )
34663 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34664 ;;
34665 * )
34666 DEPSFLAG_GCC="-MMD"
34667 ;;
34668 esac
49b0a3aa
VS
34669 echo "$as_me:$LINENO: result: gcc" >&5
34670echo "${ECHO_T}gcc" >&6
34671 else
34672 echo "$as_me:$LINENO: result: none" >&5
34673echo "${ECHO_T}none" >&6
34674 fi
34675
34676 if test $DEPS_TRACKING = 1 ; then
34677 cat <<EOF >bk-deps
34678#!/bin/sh
34679
45842500
VS
34680# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34681# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34682#
34683# Permission is given to use this file in any way.
34684
34685DEPSMODE=$DEPSMODE
34686DEPSDIR=.deps
3e5c3c83 34687DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34688
34689mkdir -p \$DEPSDIR
34690
34691if test \$DEPSMODE = gcc ; then
3e5c3c83 34692 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34693 status=\${?}
34694 if test \${status} != 0 ; then
34695 exit \${status}
34696 fi
34697 # move created file to the location we want it in:
34698 while test \${#} -gt 0; do
34699 case "\${1}" in
34700 -o )
34701 shift
34702 objfile=\${1}
34703 ;;
34704 -* )
34705 ;;
34706 * )
34707 srcfile=\${1}
34708 ;;
34709 esac
34710 shift
34711 done
34712 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34713 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34714 if test -f \$depfile ; then
34715 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34716 rm -f \$depfile
34717 else
34718 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34719 if test -f \$depfile ; then
4c8b7f4b 34720 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34721 rm -f \$depfile
34722 fi
34723 fi
49b0a3aa
VS
34724 exit 0
34725else
34726 \${*}
34727 exit \${?}
34728fi
34729EOF
34730 chmod +x bk-deps
fe0895cf 34731 fi
fe0895cf 34732
e6cc62c6
VS
34733
34734
34735
fe0895cf
VS
34736 RESCOMP=
34737 SETFILE=
34738
e6cc62c6 34739 case ${host} in
fe0895cf
VS
34740 *-*-cygwin* | *-*-mingw32* )
34741 if test "$build" != "$host" ; then
34742 RESCOMP=$host_alias-windres
34743 else
34744 # Extract the first word of "windres", so it can be a program name with args.
34745set dummy windres; ac_word=$2
e6cc62c6
VS
34746echo "$as_me:$LINENO: checking for $ac_word" >&5
34747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34748if test "${ac_cv_prog_RESCOMP+set}" = set; then
34749 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34750else
34751 if test -n "$RESCOMP"; then
34752 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34753else
e6cc62c6
VS
34754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34755for as_dir in $PATH
34756do
34757 IFS=$as_save_IFS
34758 test -z "$as_dir" && as_dir=.
34759 for ac_exec_ext in '' $ac_executable_extensions; do
34760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34761 ac_cv_prog_RESCOMP="windres"
34762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34763 break 2
34764 fi
34765done
34766done
34767
fe0895cf
VS
34768 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34769fi
34770fi
e6cc62c6 34771RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34772if test -n "$RESCOMP"; then
e6cc62c6
VS
34773 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34774echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34775else
e6cc62c6
VS
34776 echo "$as_me:$LINENO: result: no" >&5
34777echo "${ECHO_T}no" >&6
fe0895cf
VS
34778fi
34779
34780 fi
34781 ;;
e6cc62c6 34782
fe0895cf
VS
34783 *-*-darwin* )
34784 # Extract the first word of "Rez", so it can be a program name with args.
34785set dummy Rez; ac_word=$2
e6cc62c6
VS
34786echo "$as_me:$LINENO: checking for $ac_word" >&5
34787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34788if test "${ac_cv_prog_RESCOMP+set}" = set; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34790else
34791 if test -n "$RESCOMP"; then
34792 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34793else
e6cc62c6
VS
34794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34795for as_dir in $PATH
34796do
34797 IFS=$as_save_IFS
34798 test -z "$as_dir" && as_dir=.
34799 for ac_exec_ext in '' $ac_executable_extensions; do
34800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34801 ac_cv_prog_RESCOMP="Rez"
34802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34803 break 2
34804 fi
34805done
34806done
34807
fe0895cf
VS
34808 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34809fi
34810fi
e6cc62c6 34811RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34812if test -n "$RESCOMP"; then
e6cc62c6
VS
34813 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34814echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34815else
e6cc62c6
VS
34816 echo "$as_me:$LINENO: result: no" >&5
34817echo "${ECHO_T}no" >&6
fe0895cf
VS
34818fi
34819
34820 # Extract the first word of "SetFile", so it can be a program name with args.
34821set dummy SetFile; ac_word=$2
e6cc62c6
VS
34822echo "$as_me:$LINENO: checking for $ac_word" >&5
34823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34824if test "${ac_cv_prog_SETFILE+set}" = set; then
34825 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34826else
34827 if test -n "$SETFILE"; then
34828 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34829else
e6cc62c6
VS
34830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34831for as_dir in $PATH
34832do
34833 IFS=$as_save_IFS
34834 test -z "$as_dir" && as_dir=.
34835 for ac_exec_ext in '' $ac_executable_extensions; do
34836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34837 ac_cv_prog_SETFILE="SetFile"
34838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34839 break 2
34840 fi
34841done
34842done
34843
fe0895cf
VS
34844 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34845fi
34846fi
e6cc62c6 34847SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34848if test -n "$SETFILE"; then
e6cc62c6
VS
34849 echo "$as_me:$LINENO: result: $SETFILE" >&5
34850echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34851else
e6cc62c6
VS
34852 echo "$as_me:$LINENO: result: no" >&5
34853echo "${ECHO_T}no" >&6
fe0895cf
VS
34854fi
34855
34856 ;;
34857 esac
34858
fe0895cf
VS
34859
34860
e6cc62c6
VS
34861
34862
34863
34864
45842500
VS
34865
34866
34867
34868 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34869if test "${enable_precomp_headers+set}" = set; then
34870 enableval="$enable_precomp_headers"
34871 bk_use_pch="$enableval"
34872fi;
34873
34874 GCC_PCH=0
34875
34876 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34877 if test "x$GCC" = "xyes"; then
34878 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34879echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34880 cat >conftest.$ac_ext <<_ACEOF
34881#line $LINENO "configure"
34882/* confdefs.h. */
34883_ACEOF
34884cat confdefs.h >>conftest.$ac_ext
34885cat >>conftest.$ac_ext <<_ACEOF
34886/* end confdefs.h. */
34887
34888int
34889main ()
34890{
34891
34892 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) || \
34893 (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
34894 #error "no pch support"
34895 #endif
34896
34897 ;
34898 return 0;
34899}
34900_ACEOF
34901rm -f conftest.$ac_objext
34902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34903 (eval $ac_compile) 2>&5
34904 ac_status=$?
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); } &&
34907 { ac_try='test -s conftest.$ac_objext'
34908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34909 (eval $ac_try) 2>&5
34910 ac_status=$?
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); }; }; then
34913
34914 echo "$as_me:$LINENO: result: yes" >&5
34915echo "${ECHO_T}yes" >&6
34916 CPPFLAGS="-fpch-deps $CPPFLAGS"
34917 GCC_PCH=1
34918
34919else
34920 echo "$as_me: failed program was:" >&5
34921sed 's/^/| /' conftest.$ac_ext >&5
34922
34923
34924 echo "$as_me:$LINENO: result: no" >&5
34925echo "${ECHO_T}no" >&6
34926
34927fi
34928rm -f conftest.$ac_objext conftest.$ac_ext
34929 if test $GCC_PCH = 1 ; then
34930 cat <<EOF >bk-make-pch
34931#!/bin/sh
34932
34933# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34934# script. It is used to generated precompiled headers.
34935#
34936# Permission is given to use this file in any way.
34937
34938outfile="\${1}"
34939header="\${2}"
34940shift
34941shift
34942
34943compiler=
34944headerfile=
34945while test \${#} -gt 0; do
34946 case "\${1}" in
34947 -I* )
34948 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34949 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34950 headerfile="\${incdir}/\${header}"
34951 fi
34952 ;;
34953 esac
34954 compiler="\${compiler} \${1}"
34955 shift
34956done
34957
34958if test "x\${headerfile}" = "x" ; then
34959 echo "error: can't find header \${header} in include paths" >2
34960else
34961 if test -f \${outfile} ; then
34962 rm -f \${outfile}
34963 else
34964 mkdir -p \`dirname \${outfile}\`
34965 fi
34966 depsfile=".deps/\`basename \${outfile}\`.d"
34967 mkdir -p .deps
34968 # can do this because gcc is >= 3.4:
34969 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34970 exit \${?}
34971fi
34972EOF
34973 chmod +x bk-make-pch
34974 fi
34975 fi
34976 fi
34977
34978
34979
34980
34981
d78c94f2 34982 COND_BUILD_DEBUG="#"
6f628073 34983 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34984 COND_BUILD_DEBUG=""
6f628073
VS
34985 fi
34986
6c67131a
VS
34987 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
34988 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
34989 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
34990 fi
34991
34992 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
34993 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
34994 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
34995 fi
34996
d78c94f2 34997 COND_BUILD_RELEASE="#"
6f628073 34998 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34999 COND_BUILD_RELEASE=""
6b9d41a5
VS
35000 fi
35001
6c67131a
VS
35002 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35003 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35004 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35005 fi
35006
35007 COND_DEBUG_FLAG_1="#"
35008 if test "x$DEBUG_FLAG" = "x1" ; then
35009 COND_DEBUG_FLAG_1=""
35010 fi
35011
35012 COND_DEBUG_INFO_0="#"
35013 if test "x$DEBUG_INFO" = "x0" ; then
35014 COND_DEBUG_INFO_0=""
35015 fi
35016
35017 COND_DEBUG_INFO_1="#"
35018 if test "x$DEBUG_INFO" = "x1" ; then
35019 COND_DEBUG_INFO_1=""
35020 fi
35021
f95cd8fa
VS
35022 COND_DEPS_TRACKING_0="#"
35023 if test "x$DEPS_TRACKING" = "x0" ; then
35024 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35025 fi
35026
8ee2dd05
VS
35027 COND_DEPS_TRACKING_1="#"
35028 if test "x$DEPS_TRACKING" = "x1" ; then
35029 COND_DEPS_TRACKING_1=""
35030 fi
35031
45842500
VS
35032 COND_GCC_PCH_1="#"
35033 if test "x$GCC_PCH" = "x1" ; then
35034 COND_GCC_PCH_1=""
35035 fi
35036
6f628073
VS
35037 COND_MONOLITHIC_0="#"
35038 if test "x$MONOLITHIC" = "x0" ; then
35039 COND_MONOLITHIC_0=""
6b9d41a5
VS
35040 fi
35041
6f628073
VS
35042 COND_MONOLITHIC_0_SHARED_0="#"
35043 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35044 COND_MONOLITHIC_0_SHARED_0=""
35045 fi
35046
35047 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35048 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35049 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35050 fi
e6cc62c6 35051
8772a1a7
VS
35052 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35053 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35054 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35055 fi
35056
250700e4
RD
35057 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35058 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35059 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35060 fi
35061
8ee2dd05
VS
35062 COND_MONOLITHIC_0_SHARED_1="#"
35063 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35064 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35065 fi
e6cc62c6 35066
6f628073
VS
35067 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35068 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35069 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35070 fi
35071
8772a1a7
VS
35072 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35073 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35074 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35075 fi
35076
250700e4
RD
35077 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35078 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35079 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35080 fi
35081
3af038c0
VS
35082 COND_MONOLITHIC_1="#"
35083 if test "x$MONOLITHIC" = "x1" ; then
35084 COND_MONOLITHIC_1=""
35085 fi
35086
6f628073
VS
35087 COND_MONOLITHIC_1_SHARED_0="#"
35088 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35089 COND_MONOLITHIC_1_SHARED_0=""
35090 fi
35091
35092 COND_MONOLITHIC_1_SHARED_1="#"
35093 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35094 COND_MONOLITHIC_1_SHARED_1=""
35095 fi
35096
3af038c0
VS
35097 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35098 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35099 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35100 fi
35101
35102 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35103 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35104 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35105 fi
35106
6f628073
VS
35107 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35108 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35109 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35110 fi
35111
3af038c0
VS
35112 COND_PLATFORM_MACOSX_1="#"
35113 if test "x$PLATFORM_MACOSX" = "x1" ; then
35114 COND_PLATFORM_MACOSX_1=""
35115 fi
35116
250700e4
RD
35117 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35118 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35119 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35120 fi
35121
35122 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35123 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35124 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35125 fi
35126
35127 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35128 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35129 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35130 fi
35131
8ee2dd05
VS
35132 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35133 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35134 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35135 fi
35136
45842500
VS
35137 COND_PLATFORM_MAC_1="#"
35138 if test "x$PLATFORM_MAC" = "x1" ; then
35139 COND_PLATFORM_MAC_1=""
35140 fi
35141
8772a1a7
VS
35142 COND_PLATFORM_UNIX_0="#"
35143 if test "x$PLATFORM_UNIX" = "x0" ; then
35144 COND_PLATFORM_UNIX_0=""
35145 fi
35146
3af038c0
VS
35147 COND_PLATFORM_UNIX_1="#"
35148 if test "x$PLATFORM_UNIX" = "x1" ; then
35149 COND_PLATFORM_UNIX_1=""
35150 fi
35151
35152 COND_PLATFORM_WIN32_0="#"
35153 if test "x$PLATFORM_WIN32" = "x0" ; then
35154 COND_PLATFORM_WIN32_0=""
35155 fi
35156
35157 COND_PLATFORM_WIN32_1="#"
35158 if test "x$PLATFORM_WIN32" = "x1" ; then
35159 COND_PLATFORM_WIN32_1=""
35160 fi
35161
45842500
VS
35162 COND_SHARED_0="#"
35163 if test "x$SHARED" = "x0" ; then
35164 COND_SHARED_0=""
35165 fi
35166
250700e4
RD
35167 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35168 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35169 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35170 fi
35171
45842500
VS
35172 COND_SHARED_1="#"
35173 if test "x$SHARED" = "x1" ; then
35174 COND_SHARED_1=""
35175 fi
35176
250700e4
RD
35177 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35178 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35179 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35180 fi
35181
6f628073
VS
35182 COND_TOOLKIT_COCOA="#"
35183 if test "x$TOOLKIT" = "xCOCOA" ; then
35184 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35185 fi
35186
6f628073
VS
35187 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35188 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35189 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35190 fi
35191
6f628073
VS
35192 COND_TOOLKIT_GTK="#"
35193 if test "x$TOOLKIT" = "xGTK" ; then
35194 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35195 fi
35196
6f628073
VS
35197 COND_TOOLKIT_GTK_USE_GUI_1="#"
35198 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35199 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35200 fi
35201
6f628073
VS
35202 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35203 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35204 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35205 fi
35206
3af038c0
VS
35207 COND_TOOLKIT_MAC="#"
35208 if test "x$TOOLKIT" = "xMAC" ; then
35209 COND_TOOLKIT_MAC=""
35210 fi
35211
8772a1a7
VS
35212 COND_TOOLKIT_MAC_USE_GUI_1="#"
35213 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35214 COND_TOOLKIT_MAC_USE_GUI_1=""
35215 fi
35216
6f628073
VS
35217 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35218 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35219 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35220 fi
35221
6f628073
VS
35222 COND_TOOLKIT_MGL="#"
35223 if test "x$TOOLKIT" = "xMGL" ; then
35224 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35225 fi
35226
6f628073
VS
35227 COND_TOOLKIT_MGL_USE_GUI_1="#"
35228 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35229 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35230 fi
35231
6f628073
VS
35232 COND_TOOLKIT_MOTIF="#"
35233 if test "x$TOOLKIT" = "xMOTIF" ; then
35234 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35235 fi
35236
6f628073
VS
35237 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35238 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35239 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35240 fi
e6cc62c6 35241
6f628073
VS
35242 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35243 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35244 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35245 fi
35246
6f628073
VS
35247 COND_TOOLKIT_MSW="#"
35248 if test "x$TOOLKIT" = "xMSW" ; then
35249 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35250 fi
35251
6f628073
VS
35252 COND_TOOLKIT_MSW_USE_GUI_1="#"
35253 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35254 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35255 fi
e6cc62c6 35256
6f628073
VS
35257 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35258 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35259 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35260 fi
e6cc62c6 35261
6f628073
VS
35262 COND_TOOLKIT_OS2="#"
35263 if test "x$TOOLKIT" = "xOS2" ; then
35264 COND_TOOLKIT_OS2=""
9747f85d
VS
35265 fi
35266
8772a1a7
VS
35267 COND_TOOLKIT_OS2_USE_GUI_1="#"
35268 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35269 COND_TOOLKIT_OS2_USE_GUI_1=""
35270 fi
35271
6f628073
VS
35272 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35273 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35274 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35275 fi
35276
6f628073
VS
35277 COND_TOOLKIT_X11="#"
35278 if test "x$TOOLKIT" = "xX11" ; then
35279 COND_TOOLKIT_X11=""
9747f85d
VS
35280 fi
35281
6f628073
VS
35282 COND_TOOLKIT_X11_USE_GUI_1="#"
35283 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35284 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35285 fi
35286
3af038c0
VS
35287 COND_UNICODE_1="#"
35288 if test "x$UNICODE" = "x1" ; then
35289 COND_UNICODE_1=""
35290 fi
35291
35292 COND_USE_GUI_0="#"
35293 if test "x$USE_GUI" = "x0" ; then
35294 COND_USE_GUI_0=""
35295 fi
35296
35297 COND_USE_GUI_1="#"
35298 if test "x$USE_GUI" = "x1" ; then
35299 COND_USE_GUI_1=""
35300 fi
35301
e6cc62c6 35302 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35303 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35304 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35305 fi
e6cc62c6
VS
35306
35307 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35308 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35309 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35310 fi
35311
66a96744
VS
35312 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35313 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35314 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35315 fi
35316
35317 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35318 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35319 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35320 fi
35321
35322 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35323 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35324 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35325 fi
35326
6f628073
VS
35327 COND_USE_SOSYMLINKS_1="#"
35328 if test "x$USE_SOSYMLINKS" = "x1" ; then
35329 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35330 fi
35331
6f628073
VS
35332 COND_USE_SOVERLINUX_1="#"
35333 if test "x$USE_SOVERLINUX" = "x1" ; then
35334 COND_USE_SOVERLINUX_1=""
b625909c
VS
35335 fi
35336
6f628073
VS
35337 COND_USE_SOVERSION_0="#"
35338 if test "x$USE_SOVERSION" = "x0" ; then
35339 COND_USE_SOVERSION_0=""
fddeb06b 35340 fi
fe0895cf 35341
6f628073
VS
35342 COND_USE_SOVERSOLARIS_1="#"
35343 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35344 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35345 fi
fe0895cf 35346
3af038c0
VS
35347 COND_WXUNIV_1="#"
35348 if test "x$WXUNIV" = "x1" ; then
35349 COND_WXUNIV_1=""
35350 fi
35351
66a96744
VS
35352 COND_WXUSE_EXPAT_BUILTIN="#"
35353 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35354 COND_WXUSE_EXPAT_BUILTIN=""
35355 fi
35356
02980527
VS
35357 COND_WXUSE_LIBJPEG_BUILTIN="#"
35358 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35359 COND_WXUSE_LIBJPEG_BUILTIN=""
35360 fi
35361
35362 COND_WXUSE_LIBPNG_BUILTIN="#"
35363 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35364 COND_WXUSE_LIBPNG_BUILTIN=""
35365 fi
35366
35367 COND_WXUSE_LIBTIFF_BUILTIN="#"
35368 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35369 COND_WXUSE_LIBTIFF_BUILTIN=""
35370 fi
35371
35372 COND_WXUSE_ODBC_BUILTIN="#"
35373 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35374 COND_WXUSE_ODBC_BUILTIN=""
35375 fi
35376
35377 COND_WXUSE_REGEX_BUILTIN="#"
35378 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35379 COND_WXUSE_REGEX_BUILTIN=""
35380 fi
35381
35382 COND_WXUSE_ZLIB_BUILTIN="#"
35383 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35384 COND_WXUSE_ZLIB_BUILTIN=""
35385 fi
35386
1772d20c 35387
fe0895cf 35388
fe0895cf 35389
fe0895cf 35390
45842500
VS
35391if test $GCC_PCH = 1 ; then
35392 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35393else
35394 case "${host}" in
35395 powerpc-*-darwin* )
35396 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35397 ;;
35398 *)
35399 ;;
35400 esac
35401fi
fe0895cf
VS
35402
35403
fddeb06b 35404SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
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
fe0895cf 35499
f0290fca
VS
35500
35501
67c13b6c 35502
e6cc62c6
VS
35503
35504
35505echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35506echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35507set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35508if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35509 echo $ECHO_N "(cached) $ECHO_C" >&6
35510else
35511 cat >conftest.make <<\_ACEOF
35512all:
35513 @echo 'ac_maketemp="$(MAKE)"'
35514_ACEOF
35515# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35516eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35517if test -n "$ac_maketemp"; then
35518 eval ac_cv_prog_make_${ac_make}_set=yes
35519else
35520 eval ac_cv_prog_make_${ac_make}_set=no
35521fi
35522rm -f conftest.make
35523fi
35524if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35525 echo "$as_me:$LINENO: result: yes" >&5
35526echo "${ECHO_T}yes" >&6
35527 SET_MAKE=
35528else
35529 echo "$as_me:$LINENO: result: no" >&5
35530echo "${ECHO_T}no" >&6
35531 SET_MAKE="MAKE=${MAKE-make}"
35532fi
35533
35534
35535if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35536 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35537fi
35538
35539 ac_config_headers="$ac_config_headers setup.h"
35540
35541
81345eef 35542 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35543
35544
35545 ac_config_commands="$ac_config_commands default"
35546
35547
9de9b8f0 35548
6c3e36af
VZ
35549if test "$wxUSE_GUI" = "yes"; then
35550 SUBDIRS="samples demos utils contrib"
35551else SUBDIRS="samples utils"
35552fi
e6cc62c6 35553
166263e6 35554for subdir in `echo $SUBDIRS`; do
9747f85d 35555 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35556 if test "$wxUSE_GUI" = "yes"; then
166263e6 35557 if test ${subdir} = "samples"; then
8772a1a7
VS
35558 makefiles="samples/Makefile.in $makefiles"
35559 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35560 if test -d $srcdir/samples/$sample; then
35561 makefiles="samples/$sample/Makefile.in $makefiles"
35562 fi
35563 done
35564 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35565 fi
6c3e36af 35566 else if test ${subdir} = "samples"; then
8772a1a7 35567 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35568 else makefiles="utils/HelpGen/Makefile.in \
35569 utils/HelpGen/src/Makefile.in \
35570 utils/makegen/Makefile.in"
35571 fi
35572 fi
35573
9747f85d
VS
35574 for mkin in $makefiles ; do
35575 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35576 ac_config_files="$ac_config_files $mk"
e6cc62c6 35577
9747f85d
VS
35578 done
35579 fi
35580done
e6cc62c6 35581
9de9b8f0 35582
e6cc62c6
VS
35583cat >confcache <<\_ACEOF
35584# This file is a shell script that caches the results of configure
35585# tests run on this system so they can be shared between configure
35586# scripts and configure runs, see configure's option --config-cache.
35587# It is not useful on other systems. If it contains results you don't
35588# want to keep, you may remove or edit it.
35589#
35590# config.status only pays attention to the cache file if you give it
35591# the --recheck option to rerun configure.
35592#
35593# `ac_cv_env_foo' variables (set or unset) will be overridden when
35594# loading this file, other *unset* `ac_cv_foo' will be assigned the
35595# following values.
35596
35597_ACEOF
35598
35599# The following way of writing the cache mishandles newlines in values,
35600# but we know of no workaround that is simple, portable, and efficient.
35601# So, don't put newlines in cache variables' values.
35602# Ultrix sh set writes to stderr and can't be redirected directly,
35603# and sets the high bit in the cache file unless we assign to the vars.
35604{
35605 (set) 2>&1 |
35606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35607 *ac_space=\ *)
35608 # `set' does not quote correctly, so add quotes (double-quote
35609 # substitution turns \\\\ into \\, and sed turns \\ into \).
35610 sed -n \
35611 "s/'/'\\\\''/g;
35612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35613 ;;
35614 *)
35615 # `set' quotes correctly as required by POSIX, so do not add quotes.
35616 sed -n \
35617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35618 ;;
35619 esac;
35620} |
35621 sed '
35622 t clear
35623 : clear
35624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35625 t end
35626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35627 : end' >>confcache
35628if diff $cache_file confcache >/dev/null 2>&1; then :; else
35629 if test -w $cache_file; then
35630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35631 cat confcache >$cache_file
35632 else
35633 echo "not updating unwritable cache $cache_file"
35634 fi
35635fi
35636rm -f confcache
35637
35638test "x$prefix" = xNONE && prefix=$ac_default_prefix
35639# Let make expand exec_prefix.
35640test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35641
35642# VPATH may cause trouble with some makes, so we remove $(srcdir),
35643# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35644# trailing colons and then remove the whole line if VPATH becomes empty
35645# (actually we leave an empty line to preserve line numbers).
35646if test "x$srcdir" = x.; then
35647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35648s/:*\$(srcdir):*/:/;
35649s/:*\${srcdir}:*/:/;
35650s/:*@srcdir@:*/:/;
35651s/^\([^=]*=[ ]*\):*/\1/;
35652s/:*$//;
35653s/^[^=]*=[ ]*$//;
35654}'
35655fi
35656
35657DEFS=-DHAVE_CONFIG_H
35658
35659ac_libobjs=
35660ac_ltlibobjs=
35661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35662 # 1. Remove the extension, and $U if already installed.
35663 ac_i=`echo "$ac_i" |
35664 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35665 # 2. Add them.
35666 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35667 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35668done
35669LIBOBJS=$ac_libobjs
35670
35671LTLIBOBJS=$ac_ltlibobjs
35672
35673
35674
35675: ${CONFIG_STATUS=./config.status}
35676ac_clean_files_save=$ac_clean_files
35677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35678{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35679echo "$as_me: creating $CONFIG_STATUS" >&6;}
35680cat >$CONFIG_STATUS <<_ACEOF
35681#! $SHELL
35682# Generated by $as_me.
35683# Run this file to recreate the current configuration.
35684# Compiler output produced by configure, useful for debugging
35685# configure, is in config.log if it exists.
35686
35687debug=false
35688ac_cs_recheck=false
35689ac_cs_silent=false
35690SHELL=\${CONFIG_SHELL-$SHELL}
35691_ACEOF
35692
35693cat >>$CONFIG_STATUS <<\_ACEOF
35694## --------------------- ##
35695## M4sh Initialization. ##
35696## --------------------- ##
35697
35698# Be Bourne compatible
35699if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35700 emulate sh
35701 NULLCMD=:
35702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35703 # is contrary to our usage. Disable this feature.
35704 alias -g '${1+"$@"}'='"$@"'
35705elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35706 set -o posix
35707fi
35708
35709# Support unset when possible.
35710if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35711 as_unset=unset
35712else
35713 as_unset=false
35714fi
35715
35716
35717# Work around bugs in pre-3.0 UWIN ksh.
35718$as_unset ENV MAIL MAILPATH
35719PS1='$ '
35720PS2='> '
35721PS4='+ '
35722
35723# NLS nuisances.
35724for as_var in \
35725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35727 LC_TELEPHONE LC_TIME
35728do
35729 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35730 eval $as_var=C; export $as_var
35731 else
35732 $as_unset $as_var
35733 fi
35734done
35735
35736# Required to use basename.
35737if expr a : '\(a\)' >/dev/null 2>&1; then
35738 as_expr=expr
35739else
35740 as_expr=false
35741fi
35742
35743if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35744 as_basename=basename
35745else
35746 as_basename=false
35747fi
35748
35749
35750# Name of the executable.
35751as_me=`$as_basename "$0" ||
35752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35753 X"$0" : 'X\(//\)$' \| \
35754 X"$0" : 'X\(/\)$' \| \
35755 . : '\(.\)' 2>/dev/null ||
35756echo X/"$0" |
35757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35758 /^X\/\(\/\/\)$/{ s//\1/; q; }
35759 /^X\/\(\/\).*/{ s//\1/; q; }
35760 s/.*/./; q'`
35761
35762
35763# PATH needs CR, and LINENO needs CR and PATH.
35764# Avoid depending upon Character Ranges.
35765as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35766as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35767as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35768as_cr_digits='0123456789'
35769as_cr_alnum=$as_cr_Letters$as_cr_digits
35770
35771# The user is always right.
35772if test "${PATH_SEPARATOR+set}" != set; then
35773 echo "#! /bin/sh" >conf$$.sh
35774 echo "exit 0" >>conf$$.sh
35775 chmod +x conf$$.sh
35776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35777 PATH_SEPARATOR=';'
35778 else
35779 PATH_SEPARATOR=:
35780 fi
35781 rm -f conf$$.sh
35782fi
35783
35784
35785 as_lineno_1=$LINENO
35786 as_lineno_2=$LINENO
35787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35788 test "x$as_lineno_1" != "x$as_lineno_2" &&
35789 test "x$as_lineno_3" = "x$as_lineno_2" || {
35790 # Find who we are. Look in the path if we contain no path at all
35791 # relative or not.
35792 case $0 in
35793 *[\\/]* ) as_myself=$0 ;;
35794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35795for as_dir in $PATH
35796do
35797 IFS=$as_save_IFS
35798 test -z "$as_dir" && as_dir=.
35799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35800done
35801
35802 ;;
35803 esac
35804 # We did not find ourselves, most probably we were run as `sh COMMAND'
35805 # in which case we are not to be found in the path.
35806 if test "x$as_myself" = x; then
35807 as_myself=$0
35808 fi
35809 if test ! -f "$as_myself"; then
35810 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35811echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35812 { (exit 1); exit 1; }; }
35813 fi
35814 case $CONFIG_SHELL in
35815 '')
35816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35817for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35818do
35819 IFS=$as_save_IFS
35820 test -z "$as_dir" && as_dir=.
35821 for as_base in sh bash ksh sh5; do
35822 case $as_dir in
35823 /*)
35824 if ("$as_dir/$as_base" -c '
35825 as_lineno_1=$LINENO
35826 as_lineno_2=$LINENO
35827 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35828 test "x$as_lineno_1" != "x$as_lineno_2" &&
35829 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35830 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35831 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35832 CONFIG_SHELL=$as_dir/$as_base
35833 export CONFIG_SHELL
35834 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35835 fi;;
35836 esac
35837 done
35838done
35839;;
35840 esac
35841
35842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35843 # uniformly replaced by the line number. The first 'sed' inserts a
35844 # line-number line before each line; the second 'sed' does the real
35845 # work. The second script uses 'N' to pair each line-number line
35846 # with the numbered line, and appends trailing '-' during
35847 # substitution so that $LINENO is not a special case at line end.
35848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35849 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35850 sed '=' <$as_myself |
35851 sed '
35852 N
35853 s,$,-,
35854 : loop
35855 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35856 t loop
35857 s,-$,,
35858 s,^['$as_cr_digits']*\n,,
35859 ' >$as_me.lineno &&
35860 chmod +x $as_me.lineno ||
35861 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35862echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35863 { (exit 1); exit 1; }; }
35864
35865 # Don't try to exec as it changes $[0], causing all sort of problems
35866 # (the dirname of $[0] is not the place where we might find the
35867 # original and so on. Autoconf is especially sensible to this).
35868 . ./$as_me.lineno
35869 # Exit status is that of the last command.
35870 exit
35871}
35872
35873
35874case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35875 *c*,-n*) ECHO_N= ECHO_C='
35876' ECHO_T=' ' ;;
35877 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35878 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35879esac
35880
35881if expr a : '\(a\)' >/dev/null 2>&1; then
35882 as_expr=expr
35883else
35884 as_expr=false
35885fi
35886
35887rm -f conf$$ conf$$.exe conf$$.file
35888echo >conf$$.file
35889if ln -s conf$$.file conf$$ 2>/dev/null; then
35890 # We could just check for DJGPP; but this test a) works b) is more generic
35891 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35892 if test -f conf$$.exe; then
35893 # Don't use ln at all; we don't have any links
35894 as_ln_s='cp -p'
35895 else
35896 as_ln_s='ln -s'
35897 fi
35898elif ln conf$$.file conf$$ 2>/dev/null; then
35899 as_ln_s=ln
35900else
35901 as_ln_s='cp -p'
35902fi
35903rm -f conf$$ conf$$.exe conf$$.file
35904
35905if mkdir -p . 2>/dev/null; then
35906 as_mkdir_p=:
35907else
35908 as_mkdir_p=false
35909fi
35910
35911as_executable_p="test -f"
35912
35913# Sed expression to map a string onto a valid CPP name.
35914as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35915
35916# Sed expression to map a string onto a valid variable name.
35917as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35918
35919
35920# IFS
35921# We need space, tab and new line, in precisely that order.
35922as_nl='
35923'
35924IFS=" $as_nl"
35925
35926# CDPATH.
35927$as_unset CDPATH
35928
35929exec 6>&1
35930
35931# Open the log real soon, to keep \$[0] and so on meaningful, and to
35932# report actual input values of CONFIG_FILES etc. instead of their
35933# values after options handling. Logging --version etc. is OK.
35934exec 5>>config.log
35935{
35936 echo
35937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35938## Running $as_me. ##
35939_ASBOX
35940} >&5
35941cat >&5 <<_CSEOF
35942
35943This file was extended by wxWindows $as_me 2.5.0, which was
35944generated by GNU Autoconf 2.57. Invocation command line was
35945
35946 CONFIG_FILES = $CONFIG_FILES
35947 CONFIG_HEADERS = $CONFIG_HEADERS
35948 CONFIG_LINKS = $CONFIG_LINKS
35949 CONFIG_COMMANDS = $CONFIG_COMMANDS
35950 $ $0 $@
35951
35952_CSEOF
35953echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35954echo >&5
35955_ACEOF
35956
35957# Files that config.status was made for.
35958if test -n "$ac_config_files"; then
35959 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35960fi
35961
35962if test -n "$ac_config_headers"; then
35963 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35964fi
35965
35966if test -n "$ac_config_links"; then
35967 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35968fi
35969
35970if test -n "$ac_config_commands"; then
35971 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35972fi
35973
35974cat >>$CONFIG_STATUS <<\_ACEOF
35975
35976ac_cs_usage="\
35977\`$as_me' instantiates files from templates according to the
35978current configuration.
35979
35980Usage: $0 [OPTIONS] [FILE]...
35981
35982 -h, --help print this help, then exit
35983 -V, --version print version number, then exit
35984 -q, --quiet do not print progress messages
35985 -d, --debug don't remove temporary files
35986 --recheck update $as_me by reconfiguring in the same conditions
35987 --file=FILE[:TEMPLATE]
35988 instantiate the configuration file FILE
35989 --header=FILE[:TEMPLATE]
35990 instantiate the configuration header FILE
35991
35992Configuration files:
35993$config_files
35994
35995Configuration headers:
35996$config_headers
35997
35998Configuration commands:
35999$config_commands
36000
36001Report bugs to <bug-autoconf@gnu.org>."
36002_ACEOF
36003
36004cat >>$CONFIG_STATUS <<_ACEOF
36005ac_cs_version="\\
36006wxWindows config.status 2.5.0
36007configured by $0, generated by GNU Autoconf 2.57,
36008 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36009
36010Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36011Free Software Foundation, Inc.
36012This config.status script is free software; the Free Software Foundation
36013gives unlimited permission to copy, distribute and modify it."
36014srcdir=$srcdir
36015INSTALL="$INSTALL"
36016_ACEOF
36017
36018cat >>$CONFIG_STATUS <<\_ACEOF
36019# If no file are specified by the user, then we need to provide default
36020# value. By we need to know if files were specified by the user.
36021ac_need_defaults=:
36022while test $# != 0
36023do
36024 case $1 in
36025 --*=*)
36026 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36028 ac_shift=:
36029 ;;
36030 -*)
36031 ac_option=$1
36032 ac_optarg=$2
36033 ac_shift=shift
36034 ;;
36035 *) # This is not an option, so the user has probably given explicit
36036 # arguments.
36037 ac_option=$1
36038 ac_need_defaults=false;;
36039 esac
36040
36041 case $ac_option in
36042 # Handling of the options.
36043_ACEOF
36044cat >>$CONFIG_STATUS <<\_ACEOF
36045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36046 ac_cs_recheck=: ;;
36047 --version | --vers* | -V )
36048 echo "$ac_cs_version"; exit 0 ;;
36049 --he | --h)
36050 # Conflict between --help and --header
36051 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36052Try \`$0 --help' for more information." >&5
36053echo "$as_me: error: ambiguous option: $1
36054Try \`$0 --help' for more information." >&2;}
36055 { (exit 1); exit 1; }; };;
36056 --help | --hel | -h )
36057 echo "$ac_cs_usage"; exit 0 ;;
36058 --debug | --d* | -d )
36059 debug=: ;;
36060 --file | --fil | --fi | --f )
36061 $ac_shift
36062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36063 ac_need_defaults=false;;
36064 --header | --heade | --head | --hea )
36065 $ac_shift
36066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36067 ac_need_defaults=false;;
36068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36070 ac_cs_silent=: ;;
36071
36072 # This is an error.
36073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36074Try \`$0 --help' for more information." >&5
36075echo "$as_me: error: unrecognized option: $1
36076Try \`$0 --help' for more information." >&2;}
36077 { (exit 1); exit 1; }; } ;;
36078
36079 *) ac_config_targets="$ac_config_targets $1" ;;
36080
36081 esac
36082 shift
36083done
36084
36085ac_configure_extra_args=
36086
36087if $ac_cs_silent; then
36088 exec 6>/dev/null
36089 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36090fi
36091
e6cc62c6
VS
36092_ACEOF
36093cat >>$CONFIG_STATUS <<_ACEOF
36094if \$ac_cs_recheck; then
36095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36097fi
36098
e6cc62c6 36099_ACEOF
fe0895cf 36100
e6cc62c6 36101cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36102#
e6cc62c6 36103# INIT-COMMANDS section.
10f2d63a 36104#
10f2d63a 36105
a0b9e27f 36106
e6cc62c6
VS
36107 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36108 LN_S="${LN_S}"
10f2d63a 36109
10f2d63a 36110
10f2d63a 36111
e6cc62c6 36112_ACEOF
8284b0c5 36113
52127426 36114
247f5006 36115
e6cc62c6
VS
36116cat >>$CONFIG_STATUS <<\_ACEOF
36117for ac_config_target in $ac_config_targets
247f5006 36118do
e6cc62c6
VS
36119 case "$ac_config_target" in
36120 # Handling of arguments.
81345eef
VZ
36121 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36122 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36123 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36124 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36125 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36126 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36127 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36128echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36129 { (exit 1); exit 1; }; };;
247f5006
VZ
36130 esac
36131done
36132
e6cc62c6
VS
36133# If the user did not use the arguments to specify the items to instantiate,
36134# then the envvar interface is used. Set only those that are not.
36135# We use the long form for the default assignment because of an extremely
36136# bizarre bug on SunOS 4.1.3.
36137if $ac_need_defaults; then
36138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36139 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36140 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36141fi
36142
36143# Have a temporary directory for convenience. Make it in the build tree
36144# simply because there is no reason to put it here, and in addition,
36145# creating and moving files from /tmp can sometimes cause problems.
36146# Create a temporary directory, and hook for its removal unless debugging.
36147$debug ||
36148{
36149 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36150 trap '{ (exit 1); exit 1; }' 1 2 13 15
36151}
247f5006 36152
e6cc62c6 36153# Create a (secure) tmp directory for tmp files.
247f5006 36154
e6cc62c6
VS
36155{
36156 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36157 test -n "$tmp" && test -d "$tmp"
36158} ||
36159{
36160 tmp=./confstat$$-$RANDOM
36161 (umask 077 && mkdir $tmp)
36162} ||
36163{
36164 echo "$me: cannot create a temporary directory in ." >&2
36165 { (exit 1); exit 1; }
36166}
36167
36168_ACEOF
36169
36170cat >>$CONFIG_STATUS <<_ACEOF
36171
36172#
36173# CONFIG_FILES section.
36174#
247f5006 36175
e6cc62c6
VS
36176# No need to generate the scripts if there are no CONFIG_FILES.
36177# This happens for instance when ./config.status config.h
36178if test -n "\$CONFIG_FILES"; then
36179 # Protect against being on the right side of a sed subst in config.status.
36180 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36181 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36182s,@SHELL@,$SHELL,;t t
36183s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36184s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36185s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36186s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36187s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36188s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36189s,@exec_prefix@,$exec_prefix,;t t
36190s,@prefix@,$prefix,;t t
36191s,@program_transform_name@,$program_transform_name,;t t
36192s,@bindir@,$bindir,;t t
36193s,@sbindir@,$sbindir,;t t
36194s,@libexecdir@,$libexecdir,;t t
36195s,@datadir@,$datadir,;t t
36196s,@sysconfdir@,$sysconfdir,;t t
36197s,@sharedstatedir@,$sharedstatedir,;t t
36198s,@localstatedir@,$localstatedir,;t t
36199s,@libdir@,$libdir,;t t
36200s,@includedir@,$includedir,;t t
36201s,@oldincludedir@,$oldincludedir,;t t
36202s,@infodir@,$infodir,;t t
36203s,@mandir@,$mandir,;t t
36204s,@build_alias@,$build_alias,;t t
36205s,@host_alias@,$host_alias,;t t
36206s,@target_alias@,$target_alias,;t t
36207s,@DEFS@,$DEFS,;t t
36208s,@ECHO_C@,$ECHO_C,;t t
36209s,@ECHO_N@,$ECHO_N,;t t
36210s,@ECHO_T@,$ECHO_T,;t t
36211s,@LIBS@,$LIBS,;t t
36212s,@build@,$build,;t t
36213s,@build_cpu@,$build_cpu,;t t
36214s,@build_vendor@,$build_vendor,;t t
36215s,@build_os@,$build_os,;t t
36216s,@host@,$host,;t t
36217s,@host_cpu@,$host_cpu,;t t
36218s,@host_vendor@,$host_vendor,;t t
36219s,@host_os@,$host_os,;t t
36220s,@target@,$target,;t t
36221s,@target_cpu@,$target_cpu,;t t
36222s,@target_vendor@,$target_vendor,;t t
36223s,@target_os@,$target_os,;t t
36224s,@CC@,$CC,;t t
36225s,@CFLAGS@,$CFLAGS,;t t
36226s,@LDFLAGS@,$LDFLAGS,;t t
36227s,@CPPFLAGS@,$CPPFLAGS,;t t
36228s,@ac_ct_CC@,$ac_ct_CC,;t t
36229s,@EXEEXT@,$EXEEXT,;t t
36230s,@OBJEXT@,$OBJEXT,;t t
36231s,@CPP@,$CPP,;t t
36232s,@EGREP@,$EGREP,;t t
36233s,@CXX@,$CXX,;t t
36234s,@CXXFLAGS@,$CXXFLAGS,;t t
36235s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36236s,@RANLIB@,$RANLIB,;t t
36237s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36238s,@AR@,$AR,;t t
36239s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36240s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36241s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36242s,@STRIP@,$STRIP,;t t
36243s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36244s,@YACC@,$YACC,;t t
36245s,@LEX@,$LEX,;t t
36246s,@LEXLIB@,$LEXLIB,;t t
36247s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36248s,@LN_S@,$LN_S,;t t
36249s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36250s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36251s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36252s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36253s,@GTK_LIBS@,$GTK_LIBS,;t t
36254s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36255s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36256s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36257s,@X_CFLAGS@,$X_CFLAGS,;t t
36258s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36259s,@X_LIBS@,$X_LIBS,;t t
36260s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36261s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36262s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36263s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36264s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36265s,@RESCOMP@,$RESCOMP,;t t
36266s,@DEREZ@,$DEREZ,;t t
36267s,@SETFILE@,$SETFILE,;t t
36268s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36269s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36270s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36271s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36272s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36273s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36274s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36275s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36276s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36277s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36278s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36279s,@VENDOR@,$VENDOR,;t t
36280s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36281s,@WXUNIV@,$WXUNIV,;t t
36282s,@MONOLITHIC@,$MONOLITHIC,;t t
36283s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36284s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36285s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36286s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36287s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36288s,@UNICODE@,$UNICODE,;t t
36289s,@BUILD@,$BUILD,;t t
6c67131a
VS
36290s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36291s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36292s,@SHARED@,$SHARED,;t t
36293s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36294s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36295s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
ea66c762 36296s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36297s,@SET_MAKE@,$SET_MAKE,;t t
36298s,@MAKE_SET@,$MAKE_SET,;t t
36299s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36300s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36301s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36302s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36303s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36304s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36305s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36306s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36307s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36308s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36309s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36310s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36311s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36312s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36313s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36314s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36315s,@PIC_FLAG@,$PIC_FLAG,;t t
36316s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36317s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36318s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36319s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36320s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36321s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36322s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36323s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36324s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36325s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36326s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36327s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36328s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36329s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36330s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36331s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36332s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36333s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36334s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36335s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36336s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36337s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36338s,@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 36339s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
8ee2dd05 36340s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36341s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36342s,@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 36343s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
3af038c0 36344s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36345s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36346s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36347s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36348s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36349s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36350s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36351s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36352s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36353s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36354s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36355s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36356s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36357s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36358s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36359s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36360s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36361s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45842500 36362s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36363s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36364s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36365s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36366s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36367s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36368s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36369s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36370s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36371s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36372s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36373s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36374s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36375s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36376s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36377s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36378s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36379s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36380s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36381s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36382s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36383s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36384s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36385s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36386s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36387s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36388s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36389s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36390s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36391s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36392s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36393s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36394s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36395s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36396s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36397s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36398s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36399s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36400s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36401s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36402s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36403s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36404s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36405s,@LEX_STEM@,$LEX_STEM,;t t
36406s,@PATH_IFS@,$PATH_IFS,;t t
36407s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36408s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36409s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36410s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36411s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36412s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36413s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36414s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36415s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36416s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36417s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36418s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36419s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36420s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36421s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36422s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36423s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36424s,@WX_ALL@,$WX_ALL,;t t
36425s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36426s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36427s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36428s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36429s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36430s,@USE_GUI@,$USE_GUI,;t t
36431s,@AFMINSTALL@,$AFMINSTALL,;t t
36432s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36433s,@TOOLKIT@,$TOOLKIT,;t t
36434s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36435s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36436s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36437s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36438s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36439s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36440s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36441s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36442s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36443s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36444s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36445s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36446s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36447s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36448s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36449s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36450s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36451s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36452s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36453s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36454s,@GUIDIST@,$GUIDIST,;t t
36455s,@PORT_FILES@,$PORT_FILES,;t t
36456s,@DISTDIR@,$DISTDIR,;t t
36457s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36458s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36459s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36460s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36461s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36462s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36463s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36464s,@RESFLAGS@,$RESFLAGS,;t t
36465s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36466s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36467s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36468s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36469s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36470s,@MACRESCOMP@,$MACRESCOMP,;t t
36471s,@MACSETFILE@,$MACSETFILE,;t t
36472s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36473s,@GCC@,$GCC,;t t
36474s,@DLLTOOL@,$DLLTOOL,;t t
36475s,@AS@,$AS,;t t
36476s,@NM@,$NM,;t t
36477s,@LD@,$LD,;t t
36478s,@MAKEINFO@,$MAKEINFO,;t t
36479s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36480s,@LIBOBJS@,$LIBOBJS,;t t
36481s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36482CEOF
36483
e6cc62c6
VS
36484_ACEOF
36485
36486 cat >>$CONFIG_STATUS <<\_ACEOF
36487 # Split the substitutions into bite-sized pieces for seds with
36488 # small command number limits, like on Digital OSF/1 and HP-UX.
36489 ac_max_sed_lines=48
36490 ac_sed_frag=1 # Number of current file.
36491 ac_beg=1 # First line for current file.
36492 ac_end=$ac_max_sed_lines # Line after last line for current file.
36493 ac_more_lines=:
36494 ac_sed_cmds=
36495 while $ac_more_lines; do
36496 if test $ac_beg -gt 1; then
36497 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36498 else
e6cc62c6
VS
36499 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36500 fi
36501 if test ! -s $tmp/subs.frag; then
36502 ac_more_lines=false
36503 else
36504 # The purpose of the label and of the branching condition is to
36505 # speed up the sed processing (if there are no `@' at all, there
36506 # is no need to browse any of the substitutions).
36507 # These are the two extra sed commands mentioned above.
36508 (echo ':t
36509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36510 if test -z "$ac_sed_cmds"; then
36511 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36512 else
36513 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36514 fi
36515 ac_sed_frag=`expr $ac_sed_frag + 1`
36516 ac_beg=$ac_end
36517 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36518 fi
e6cc62c6
VS
36519 done
36520 if test -z "$ac_sed_cmds"; then
36521 ac_sed_cmds=cat
10f2d63a 36522 fi
e6cc62c6 36523fi # test -n "$CONFIG_FILES"
10f2d63a 36524
e6cc62c6
VS
36525_ACEOF
36526cat >>$CONFIG_STATUS <<\_ACEOF
36527for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36529 case $ac_file in
36530 - | *:- | *:-:* ) # input from stdin
36531 cat >$tmp/stdin
36532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36536 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36537 esac
247f5006 36538
e6cc62c6
VS
36539 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36540 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36541$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36542 X"$ac_file" : 'X\(//\)[^/]' \| \
36543 X"$ac_file" : 'X\(//\)$' \| \
36544 X"$ac_file" : 'X\(/\)' \| \
36545 . : '\(.\)' 2>/dev/null ||
36546echo X"$ac_file" |
36547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36549 /^X\(\/\/\)$/{ s//\1/; q; }
36550 /^X\(\/\).*/{ s//\1/; q; }
36551 s/.*/./; q'`
36552 { if $as_mkdir_p; then
36553 mkdir -p "$ac_dir"
a0b9e27f 36554 else
e6cc62c6
VS
36555 as_dir="$ac_dir"
36556 as_dirs=
36557 while test ! -d "$as_dir"; do
36558 as_dirs="$as_dir $as_dirs"
36559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36561 X"$as_dir" : 'X\(//\)[^/]' \| \
36562 X"$as_dir" : 'X\(//\)$' \| \
36563 X"$as_dir" : 'X\(/\)' \| \
36564 . : '\(.\)' 2>/dev/null ||
36565echo X"$as_dir" |
36566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36568 /^X\(\/\/\)$/{ s//\1/; q; }
36569 /^X\(\/\).*/{ s//\1/; q; }
36570 s/.*/./; q'`
36571 done
36572 test ! -n "$as_dirs" || mkdir $as_dirs
36573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36575 { (exit 1); exit 1; }; }; }
36576
36577 ac_builddir=.
36578
36579if test "$ac_dir" != .; then
36580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36581 # A "../" for each directory in $ac_dir_suffix.
36582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36583else
36584 ac_dir_suffix= ac_top_builddir=
36585fi
247f5006 36586
e6cc62c6
VS
36587case $srcdir in
36588 .) # No --srcdir option. We are building in place.
36589 ac_srcdir=.
36590 if test -z "$ac_top_builddir"; then
36591 ac_top_srcdir=.
36592 else
36593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36594 fi ;;
36595 [\\/]* | ?:[\\/]* ) # Absolute path.
36596 ac_srcdir=$srcdir$ac_dir_suffix;
36597 ac_top_srcdir=$srcdir ;;
247f5006 36598 *) # Relative path.
e6cc62c6
VS
36599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36601esac
36602# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36603# absolute.
36604ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36605ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36606ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36607ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36608
247f5006 36609
e6cc62c6
VS
36610 case $INSTALL in
36611 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36612 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36613 esac
247f5006 36614
e6cc62c6
VS
36615 if test x"$ac_file" != x-; then
36616 { echo "$as_me:$LINENO: creating $ac_file" >&5
36617echo "$as_me: creating $ac_file" >&6;}
36618 rm -f "$ac_file"
36619 fi
36620 # Let's still pretend it is `configure' which instantiates (i.e., don't
36621 # use $as_me), people would be surprised to read:
36622 # /* config.h. Generated by config.status. */
36623 if test x"$ac_file" = x-; then
36624 configure_input=
36625 else
36626 configure_input="$ac_file. "
36627 fi
36628 configure_input=$configure_input"Generated from `echo $ac_file_in |
36629 sed 's,.*/,,'` by configure."
36630
36631 # First look for the input files in the build tree, otherwise in the
36632 # src tree.
36633 ac_file_inputs=`IFS=:
36634 for f in $ac_file_in; do
36635 case $f in
36636 -) echo $tmp/stdin ;;
36637 [\\/$]*)
36638 # Absolute (can't be DOS-style, as IFS=:)
36639 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36640echo "$as_me: error: cannot find input file: $f" >&2;}
36641 { (exit 1); exit 1; }; }
36642 echo $f;;
36643 *) # Relative
36644 if test -f "$f"; then
36645 # Build tree
36646 echo $f
36647 elif test -f "$srcdir/$f"; then
36648 # Source tree
36649 echo $srcdir/$f
36650 else
36651 # /dev/null tree
36652 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36653echo "$as_me: error: cannot find input file: $f" >&2;}
36654 { (exit 1); exit 1; }; }
36655 fi;;
36656 esac
36657 done` || { (exit 1); exit 1; }
36658_ACEOF
36659cat >>$CONFIG_STATUS <<_ACEOF
36660 sed "$ac_vpsub
36661$extrasub
36662_ACEOF
36663cat >>$CONFIG_STATUS <<\_ACEOF
36664:t
36665/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36666s,@configure_input@,$configure_input,;t t
36667s,@srcdir@,$ac_srcdir,;t t
36668s,@abs_srcdir@,$ac_abs_srcdir,;t t
36669s,@top_srcdir@,$ac_top_srcdir,;t t
36670s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36671s,@builddir@,$ac_builddir,;t t
36672s,@abs_builddir@,$ac_abs_builddir,;t t
36673s,@top_builddir@,$ac_top_builddir,;t t
36674s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36675s,@INSTALL@,$ac_INSTALL,;t t
36676" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36677 rm -f $tmp/stdin
36678 if test x"$ac_file" != x-; then
36679 mv $tmp/out $ac_file
36680 else
36681 cat $tmp/out
36682 rm -f $tmp/out
36683 fi
36684
36685done
36686_ACEOF
36687cat >>$CONFIG_STATUS <<\_ACEOF
36688
36689#
36690# CONFIG_HEADER section.
36691#
10f2d63a
VZ
36692
36693# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36694# NAME is the cpp macro being defined and VALUE is the value it is being given.
36695#
36696# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36697ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36698ac_dB='[ ].*$,\1#\2'
36699ac_dC=' '
36700ac_dD=',;t'
36701# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36702ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36703ac_uB='$,\1#\2define\3'
10f2d63a 36704ac_uC=' '
e6cc62c6
VS
36705ac_uD=',;t'
36706
36707for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36709 case $ac_file in
36710 - | *:- | *:-:* ) # input from stdin
36711 cat >$tmp/stdin
36712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36716 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36717 esac
36718
e6cc62c6
VS
36719 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36720echo "$as_me: creating $ac_file" >&6;}
36721
36722 # First look for the input files in the build tree, otherwise in the
36723 # src tree.
36724 ac_file_inputs=`IFS=:
36725 for f in $ac_file_in; do
36726 case $f in
36727 -) echo $tmp/stdin ;;
36728 [\\/$]*)
36729 # Absolute (can't be DOS-style, as IFS=:)
36730 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36731echo "$as_me: error: cannot find input file: $f" >&2;}
36732 { (exit 1); exit 1; }; }
36733 echo $f;;
36734 *) # Relative
36735 if test -f "$f"; then
36736 # Build tree
36737 echo $f
36738 elif test -f "$srcdir/$f"; then
36739 # Source tree
36740 echo $srcdir/$f
36741 else
36742 # /dev/null tree
36743 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36744echo "$as_me: error: cannot find input file: $f" >&2;}
36745 { (exit 1); exit 1; }; }
36746 fi;;
36747 esac
36748 done` || { (exit 1); exit 1; }
36749 # Remove the trailing spaces.
36750 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36751
36752_ACEOF
36753
36754# Transform confdefs.h into two sed scripts, `conftest.defines' and
36755# `conftest.undefs', that substitutes the proper values into
36756# config.h.in to produce config.h. The first handles `#define'
36757# templates, and the second `#undef' templates.
36758# And first: Protect against being on the right side of a sed subst in
36759# config.status. Protect against being in an unquoted here document
36760# in config.status.
36761rm -f conftest.defines conftest.undefs
36762# Using a here document instead of a string reduces the quoting nightmare.
36763# Putting comments in sed scripts is not portable.
36764#
36765# `end' is used to avoid that the second main sed command (meant for
36766# 0-ary CPP macros) applies to n-ary macro definitions.
36767# See the Autoconf documentation for `clear'.
36768cat >confdef2sed.sed <<\_ACEOF
36769s/[\\&,]/\\&/g
36770s,[\\$`],\\&,g
36771t clear
36772: clear
36773s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36774t end
36775s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36776: end
36777_ACEOF
36778# If some macros were called several times there might be several times
36779# the same #defines, which is useless. Nevertheless, we may not want to
36780# sort them, since we want the *last* AC-DEFINE to be honored.
36781uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36782sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36783rm -f confdef2sed.sed
10f2d63a
VZ
36784
36785# This sed command replaces #undef with comments. This is necessary, for
36786# example, in the case of _POSIX_SOURCE, which is predefined and required
36787# on some systems where configure will not decide to define it.
e6cc62c6
VS
36788cat >>conftest.undefs <<\_ACEOF
36789s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36790_ACEOF
36791
36792# Break up conftest.defines because some shells have a limit on the size
36793# of here documents, and old seds have small limits too (100 cmds).
36794echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36795echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36796echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36797echo ' :' >>$CONFIG_STATUS
36798rm -f conftest.tail
36799while grep . conftest.defines >/dev/null
36800do
36801 # Write a limited-size here document to $tmp/defines.sed.
36802 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36803 # Speed up: don't consider the non `#define' lines.
36804 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36805 # Work around the forget-to-reset-the-flag bug.
36806 echo 't clr' >>$CONFIG_STATUS
36807 echo ': clr' >>$CONFIG_STATUS
36808 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36809 echo 'CEOF
36810 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36811 rm -f $tmp/in
36812 mv $tmp/out $tmp/in
36813' >>$CONFIG_STATUS
36814 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36815 rm -f conftest.defines
36816 mv conftest.tail conftest.defines
36817done
36818rm -f conftest.defines
36819echo ' fi # grep' >>$CONFIG_STATUS
36820echo >>$CONFIG_STATUS
10f2d63a 36821
e6cc62c6
VS
36822# Break up conftest.undefs because some shells have a limit on the size
36823# of here documents, and old seds have small limits too (100 cmds).
36824echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36825rm -f conftest.tail
e6cc62c6 36826while grep . conftest.undefs >/dev/null
10f2d63a 36827do
e6cc62c6
VS
36828 # Write a limited-size here document to $tmp/undefs.sed.
36829 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36830 # Speed up: don't consider the non `#undef'
36831 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36832 # Work around the forget-to-reset-the-flag bug.
36833 echo 't clr' >>$CONFIG_STATUS
36834 echo ': clr' >>$CONFIG_STATUS
36835 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36836 echo 'CEOF
e6cc62c6
VS
36837 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36838 rm -f $tmp/in
36839 mv $tmp/out $tmp/in
36840' >>$CONFIG_STATUS
36841 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36842 rm -f conftest.undefs
36843 mv conftest.tail conftest.undefs
10f2d63a 36844done
e6cc62c6
VS
36845rm -f conftest.undefs
36846
36847cat >>$CONFIG_STATUS <<\_ACEOF
36848 # Let's still pretend it is `configure' which instantiates (i.e., don't
36849 # use $as_me), people would be surprised to read:
36850 # /* config.h. Generated by config.status. */
36851 if test x"$ac_file" = x-; then
36852 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36853 else
e6cc62c6 36854 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36855 fi
e6cc62c6
VS
36856 cat $tmp/in >>$tmp/config.h
36857 rm -f $tmp/in
36858 if test x"$ac_file" != x-; then
36859 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36860 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36861echo "$as_me: $ac_file is unchanged" >&6;}
36862 else
36863 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36865 X"$ac_file" : 'X\(//\)[^/]' \| \
36866 X"$ac_file" : 'X\(//\)$' \| \
36867 X"$ac_file" : 'X\(/\)' \| \
36868 . : '\(.\)' 2>/dev/null ||
36869echo X"$ac_file" |
36870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36872 /^X\(\/\/\)$/{ s//\1/; q; }
36873 /^X\(\/\).*/{ s//\1/; q; }
36874 s/.*/./; q'`
36875 { if $as_mkdir_p; then
36876 mkdir -p "$ac_dir"
36877 else
36878 as_dir="$ac_dir"
36879 as_dirs=
36880 while test ! -d "$as_dir"; do
36881 as_dirs="$as_dir $as_dirs"
36882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36884 X"$as_dir" : 'X\(//\)[^/]' \| \
36885 X"$as_dir" : 'X\(//\)$' \| \
36886 X"$as_dir" : 'X\(/\)' \| \
36887 . : '\(.\)' 2>/dev/null ||
36888echo X"$as_dir" |
36889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36891 /^X\(\/\/\)$/{ s//\1/; q; }
36892 /^X\(\/\).*/{ s//\1/; q; }
36893 s/.*/./; q'`
36894 done
36895 test ! -n "$as_dirs" || mkdir $as_dirs
36896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36897echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36898 { (exit 1); exit 1; }; }; }
a0b9e27f 36899
e6cc62c6
VS
36900 rm -f $ac_file
36901 mv $tmp/config.h $ac_file
36902 fi
36903 else
36904 cat $tmp/config.h
36905 rm -f $tmp/config.h
36906 fi
36907done
36908_ACEOF
36909cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36910
e6cc62c6
VS
36911#
36912# CONFIG_COMMANDS section.
36913#
36914for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36917 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36918$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36919 X"$ac_dest" : 'X\(//\)[^/]' \| \
36920 X"$ac_dest" : 'X\(//\)$' \| \
36921 X"$ac_dest" : 'X\(/\)' \| \
36922 . : '\(.\)' 2>/dev/null ||
36923echo X"$ac_dest" |
36924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36926 /^X\(\/\/\)$/{ s//\1/; q; }
36927 /^X\(\/\).*/{ s//\1/; q; }
36928 s/.*/./; q'`
36929 ac_builddir=.
36930
36931if test "$ac_dir" != .; then
36932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36933 # A "../" for each directory in $ac_dir_suffix.
36934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36935else
36936 ac_dir_suffix= ac_top_builddir=
36937fi
36938
36939case $srcdir in
36940 .) # No --srcdir option. We are building in place.
36941 ac_srcdir=.
36942 if test -z "$ac_top_builddir"; then
36943 ac_top_srcdir=.
36944 else
36945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36946 fi ;;
36947 [\\/]* | ?:[\\/]* ) # Absolute path.
36948 ac_srcdir=$srcdir$ac_dir_suffix;
36949 ac_top_srcdir=$srcdir ;;
36950 *) # Relative path.
36951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36953esac
36954# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36955# absolute.
36956ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36957ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36958ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36959ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36960
36961
36962 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36963echo "$as_me: executing $ac_dest commands" >&6;}
36964 case $ac_dest in
36965 default )
652d930d 36966 if test ! -h wx-config; then
991a5759 36967 chmod +x wx-config
3a922bb4
RL
36968 mv wx-config wx${TOOLCHAIN_NAME}-config
36969 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36970 fi
665bbe97 36971
00cf1208
RR
36972 if test ! -d lib; then
36973 mkdir lib
36974 fi
36975 if test ! -d lib/wx; then
36976 mkdir lib/wx
36977 fi
36978 if test ! -d lib/wx/include; then
36979 mkdir lib/wx/include
36980 fi
3a922bb4
RL
36981 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36982 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36983 fi
3a922bb4
RL
36984 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36985 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36986 fi
36987 if test -f setup.h; then
3a922bb4 36988 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36989 fi
e6cc62c6
VS
36990 ;;
36991 esac
36992done
36993_ACEOF
2224580a 36994
e6cc62c6 36995cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36996
e6cc62c6
VS
36997{ (exit 0); exit 0; }
36998_ACEOF
36999chmod +x $CONFIG_STATUS
37000ac_clean_files=$ac_clean_files_save
37001
37002
37003# configure is writing to config.log, and then calls config.status.
37004# config.status does its own redirection, appending to config.log.
37005# Unfortunately, on DOS this fails, as config.log is still kept open
37006# by configure, so config.status won't be able to write to it; its
37007# output is simply discarded. So we exec the FD to /dev/null,
37008# effectively closing config.log, so it can be properly (re)opened and
37009# appended to by config.status. When coming back to configure, we
37010# need to make the FD available again.
37011if test "$no_create" != yes; then
37012 ac_cs_success=:
37013 ac_config_status_args=
37014 test "$silent" = yes &&
37015 ac_config_status_args="$ac_config_status_args --quiet"
37016 exec 5>/dev/null
37017 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37018 exec 5>>config.log
37019 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37020 # would make configure fail if this is the last instruction.
37021 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37022fi
37023
672abd7a
VS
37024#
37025# CONFIG_SUBDIRS section.
37026#
37027if test "$no_recursion" != yes; then
37028
37029 # Remove --cache-file and --srcdir arguments so they do not pile up.
37030 ac_sub_configure_args=
37031 ac_prev=
37032 for ac_arg in $ac_configure_args; do
37033 if test -n "$ac_prev"; then
37034 ac_prev=
37035 continue
37036 fi
37037 case $ac_arg in
37038 -cache-file | --cache-file | --cache-fil | --cache-fi \
37039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37040 ac_prev=cache_file ;;
37041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37043 | --c=*)
37044 ;;
37045 --config-cache | -C)
37046 ;;
37047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37048 ac_prev=srcdir ;;
37049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37050 ;;
37051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37052 ac_prev=prefix ;;
37053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37054 ;;
37055 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37056 esac
37057 done
37058
37059 # Always prepend --prefix to ensure using the same prefix
37060 # in subdir configurations.
37061 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37062
37063 ac_popdir=`pwd`
37064 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37065
37066 # Do not complain, so a configure script can configure whichever
37067 # parts of a large source tree are present.
37068 test -d $srcdir/$ac_dir || continue
37069
37070 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37071echo "$as_me: configuring in $ac_dir" >&6;}
37072 { if $as_mkdir_p; then
37073 mkdir -p "$ac_dir"
37074 else
37075 as_dir="$ac_dir"
37076 as_dirs=
37077 while test ! -d "$as_dir"; do
37078 as_dirs="$as_dir $as_dirs"
37079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37080$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37081 X"$as_dir" : 'X\(//\)[^/]' \| \
37082 X"$as_dir" : 'X\(//\)$' \| \
37083 X"$as_dir" : 'X\(/\)' \| \
37084 . : '\(.\)' 2>/dev/null ||
37085echo X"$as_dir" |
37086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37088 /^X\(\/\/\)$/{ s//\1/; q; }
37089 /^X\(\/\).*/{ s//\1/; q; }
37090 s/.*/./; q'`
37091 done
37092 test ! -n "$as_dirs" || mkdir $as_dirs
37093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37094echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37095 { (exit 1); exit 1; }; }; }
37096
37097 ac_builddir=.
37098
37099if test "$ac_dir" != .; then
37100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37101 # A "../" for each directory in $ac_dir_suffix.
37102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37103else
37104 ac_dir_suffix= ac_top_builddir=
37105fi
37106
37107case $srcdir in
37108 .) # No --srcdir option. We are building in place.
37109 ac_srcdir=.
37110 if test -z "$ac_top_builddir"; then
37111 ac_top_srcdir=.
37112 else
37113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37114 fi ;;
37115 [\\/]* | ?:[\\/]* ) # Absolute path.
37116 ac_srcdir=$srcdir$ac_dir_suffix;
37117 ac_top_srcdir=$srcdir ;;
37118 *) # Relative path.
37119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37121esac
37122# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37123# absolute.
37124ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37125ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37126ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37127ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37128
37129
37130 cd $ac_dir
37131
37132 # Check for guested configure; otherwise get Cygnus style configure.
37133 if test -f $ac_srcdir/configure.gnu; then
37134 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37135 elif test -f $ac_srcdir/configure; then
37136 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37137 elif test -f $ac_srcdir/configure.in; then
37138 ac_sub_configure=$ac_configure
37139 else
37140 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37141echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37142 ac_sub_configure=
37143 fi
37144
37145 # The recursion is here.
37146 if test -n "$ac_sub_configure"; then
37147 # Make the cache file name correct relative to the subdirectory.
37148 case $cache_file in
37149 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37150 *) # Relative path.
37151 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37152 esac
37153
37154 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37155echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37156 # The eval makes quoting arguments work.
37157 eval $ac_sub_configure $ac_sub_configure_args \
37158 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37159 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37160echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37161 { (exit 1); exit 1; }; }
37162 fi
37163
37164 cd $ac_popdir
37165 done
37166fi
37167
8284b0c5 37168
2b5f62a0
VZ
37169echo
37170echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37171echo ""
37172echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37173echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37174
37175echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37176echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37177echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37178
0c98a14e
GD
37179echo " What level of wxWindows compatibility should be enabled?"
37180echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
37181echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37182echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37183
2b5f62a0
VZ
37184echo " Which libraries should wxWindows use?"
37185echo " jpeg ${wxUSE_LIBJPEG-none}"
37186echo " png ${wxUSE_LIBPNG-none}"
37187echo " regex ${wxUSE_REGEX}"
37188echo " tiff ${wxUSE_LIBTIFF-none}"
37189echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37190echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37191echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37192
37193echo ""
37194